d7b8efc1eeef148259959326a4873432d74273e7
[gnulib.git] / ChangeLog
1 2011-05-07  Bruno Haible  <bruno@clisp.org>
2
3         fwriting: Move AC_LIBOBJ invocations to module description.
4         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5         here...
6         * modules/fwriting (configure.ac): ... to here.
7
8 2011-05-07  Bruno Haible  <bruno@clisp.org>
9
10         fwritable: Move AC_LIBOBJ invocations to module description.
11         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12         here...
13         * modules/fwritable (configure.ac): ... to here.
14
15 2011-05-07  Bruno Haible  <bruno@clisp.org>
16
17         futimens: Move AC_LIBOBJ invocations to module description.
18         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19         here...
20         * modules/futimens (configure.ac): ... to here.
21
22 2011-05-07  Bruno Haible  <bruno@clisp.org>
23
24         ftruncate: Move AC_LIBOBJ invocations to module description.
25         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
26         gl_PREREQ_FTRUNCATE invocations from here...
27         * modules/ftruncate (configure.ac): ... to here.
28
29 2011-05-07  Bruno Haible  <bruno@clisp.org>
30
31         fsync: Move AC_LIBOBJ invocations to module description.
32         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
33         invocations from here...
34         * modules/fsync (configure.ac): ... to here.
35
36 2011-05-07  Bruno Haible  <bruno@clisp.org>
37
38         fsusage: Move AC_LIBOBJ invocations to module description.
39         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
40         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
41         * modules/fsusage (configure.ac): ... to here.
42
43 2011-05-07  Bruno Haible  <bruno@clisp.org>
44
45         freopen: Move AC_LIBOBJ invocations to module description.
46         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
47         invocations from here...
48         * modules/freopen (configure.ac): ... to here.
49
50 2011-05-07  Bruno Haible  <bruno@clisp.org>
51
52         free: Move AC_LIBOBJ invocations to module description.
53         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54         invocations from here...
55         * modules/free (configure.ac): ... to here.
56
57 2011-05-07  Bruno Haible  <bruno@clisp.org>
58
59         freadable: Move AC_LIBOBJ invocations to module description.
60         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
61         here...
62         * modules/freadable (configure.ac): ... to here.
63
64 2011-05-07  Bruno Haible  <bruno@clisp.org>
65
66         fpurge: Move AC_LIBOBJ invocations to module description.
67         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
68         invocations from here...
69         * modules/fpurge (configure.ac): ... to here.
70
71 2011-05-07  Bruno Haible  <bruno@clisp.org>
72
73         fpending: Move AC_LIBOBJ invocations to module description.
74         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
75         gl_FUNC_FPENDING.
76         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
77         invocations from here...
78         * modules/fpending (configure.ac): ... to here.
79
80 2011-05-07  Bruno Haible  <bruno@clisp.org>
81
82         fopen: Move AC_LIBOBJ invocations to module description.
83         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
84         invocations from here...
85         * modules/fopen (configure.ac): ... to here.
86
87 2011-05-07  Bruno Haible  <bruno@clisp.org>
88
89         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
90         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
91         gl_FUNC_FNMATCH_POSIX.
92         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
93         invocations from here...
94         * modules/fnmatch (configure.ac): ... to here.
95         * modules/fnmatch-gnu (configure.ac): ... and here.
96
97 2011-05-07  Bruno Haible  <bruno@clisp.org>
98
99         flock: Move AC_LIBOBJ invocations to module description.
100         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
101         invocations from here...
102         * modules/flock (configure.ac): ... to here.
103
104 2011-05-07  Bruno Haible  <bruno@clisp.org>
105
106         fileblocks: Move AC_LIBOBJ invocations to module description.
107         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
108         gl_PREREQ_FILEBLOCKS invocations from here...
109         * modules/fileblocks (configure.ac): ... to here.
110
111 2011-05-06  Bruno Haible  <bruno@clisp.org>
112
113         fflush: Move AC_LIBOBJ invocations to module description.
114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
115         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
116         invocations from here...
117         * modules/fflush (configure.ac): ... to here.
118
119 2011-05-06  Bruno Haible  <bruno@clisp.org>
120
121         fdopendir: Move AC_LIBOBJ invocations to module description.
122         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
123         here...
124         * modules/fdopendir (configure.ac): ... to here.
125         (Depends-on): Improve conditions.
126
127 2011-05-06  Bruno Haible  <bruno@clisp.org>
128
129         _Exit: Move AC_LIBOBJ invocations to module description.
130         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
131         invocations from here...
132         * modules/_Exit (configure.ac): ... to here.
133
134 2011-05-21  Bruno Haible  <bruno@clisp.org>
135
136         euidaccess: Respect rules for use of AC_LIBOBJ.
137         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
138         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
139         from here...
140         * modules/euidaccess (configure.ac): ... to here.
141
142 2011-05-06  Bruno Haible  <bruno@clisp.org>
143
144         error: Move AC_LIBOBJ invocations to module description.
145         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
146         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
147         invocations from here...
148         * modules/error (configure.ac): ... to here.
149
150 2011-05-06  Bruno Haible  <bruno@clisp.org>
151
152         duplocale: Move AC_LIBOBJ invocations to module description.
153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
154         gl_PREREQ_DUPLOCALE invocations from here...
155         * modules/duplocale (configure.ac): ... to here.
156
157 2011-05-05  Bruno Haible  <bruno@clisp.org>
158
159         dirfd: Move AC_LIBOBJ invocations to module description.
160         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
161         gl_FUNC_DIRFD.
162         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
163         here...
164         * modules/dirfd (configure.ac): ... to here.
165         (Depends-on): Fix condition.
166
167 2011-05-05  Bruno Haible  <bruno@clisp.org>
168
169         chown: Respect rules for use of AC_LIBOBJ.
170         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
171         * modules/chown (configure.ac): ... to here.
172
173 2011-05-05  Bruno Haible  <bruno@clisp.org>
174
175         chdir-long: Move AC_LIBOBJ invocations to module description.
176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
177         gl_PREREQ_CHDIR_LONG invocations from here...
178         * modules/chdir-long (configure.ac): ... to here.
179
180 2011-05-05  Bruno Haible  <bruno@clisp.org>
181
182         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
183         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
184         from here...
185         * modules/canonicalize-lgpl (configure.ac): ... to here.
186
187 2011-05-05  Bruno Haible  <bruno@clisp.org>
188
189         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
190         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
191         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
192         REPLACE_CALLOC.
193         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
194         * modules/calloc-gnu (configure.ac): Likewise.
195
196 2011-05-05  Bruno Haible  <bruno@clisp.org>
197
198         btowc: Move AC_LIBOBJ invocations to module description.
199         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
200         invocations from here...
201         * modules/btowc (configure.ac): ... to here.
202
203 2011-05-21  Bruno Haible  <bruno@clisp.org>
204
205         atexit: Move AC_LIBOBJ invocations to module description.
206         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
208         here...
209         * modules/atexit (configure.ac): ... to here.
210
211 2011-05-05  Bruno Haible  <bruno@clisp.org>
212
213         atoll: Move AC_LIBOBJ invocations to module description.
214         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
215         invocations from here...
216         * modules/atoll (configure.ac): ... to here.
217
218 2011-05-05  Bruno Haible  <bruno@clisp.org>
219
220         argz: Move AC_LIBOBJ invocations to module description.
221         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
222         * modules/argz (configure.ac): ... to here.
223
224 2011-05-05  Bruno Haible  <bruno@clisp.org>
225
226         alphasort: Move AC_LIBOBJ invocations to module description.
227         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
228         gl_PREREQ_ALPHASORT invocations from here...
229         * modules/alphasort (configure.ac): ... to here.
230
231 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
232
233         verify: new macro verify_expr; verify_true deprecated
234         * NEWS: Mention this.
235         * doc/verify.texi (Compile-time Assertions): Document this.
236         * lib/verify.h (verify_true): Deprecate.
237         (verify_expr): New macro.
238         * tests/test-verify.c (function): Test verify_expr.
239
240 2011-06-14  Jim Meyering  <meyering@redhat.com>
241
242         init.sh: give more portable redirection-related advice in a comment
243         * tests/init.sh (stderr_fileno_): Update the advice in comments.
244         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
245         for lots of discussion.  Stefano Lattarini suggested the solution
246         of putting "9>&2" after the command.  Reported by Bruno Haible.
247
248 2011-06-13  Bruno Haible  <bruno@clisp.org>
249
250         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
251         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
252         'none'.
253
254 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
255
256         ftoastr: use strtof only if HAVE_STRTOF
257         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
259         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
260         * modules/ftoastr (configure.ac): Check for strtof.
261
262 2011-06-13  Bruno Haible  <bruno@clisp.org>
263
264         gnulib-tool: Addendum to 2011-06-08 commit.
265         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
266         and --witness-c-macro have been given, augment AM_CPPFLAGS.
267
268 2011-06-13  Bruno Haible  <bruno@clisp.org>
269
270         fseeko: Provide a non-inline replacement of fseek().
271         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
272         * modules/fseeko (Depends-on): Add fseek.
273         * modules/fseek (License): Change to LGPLv2+.
274
275 2011-06-13  Bruno Haible  <bruno@clisp.org>
276
277         ftello: Provide a non-inline replacement of ftell().
278         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
279         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
280         not have ftello() (such as on mingw).
281         * modules/ftello (Depends-on): Add ftell.
282         * modules/ftell (License): Change to LGPLv2+.
283
284 2011-05-07  Bruno Haible  <bruno@clisp.org>
285
286         ftell: Move AC_LIBOBJ invocations to module description.
287         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
288         * modules/ftell (configure.ac): ... to here.
289
290 2011-05-07  Bruno Haible  <bruno@clisp.org>
291
292         ftello: Respect rules for use of AC_LIBOBJ.
293         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
294         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
295         here...
296         * modules/ftello (configure.ac): ... to here.
297
298 2011-05-07  Bruno Haible  <bruno@clisp.org>
299
300         fseeko: Simplify.
301         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
302         (gl_FUNC_FSEEKO): Inline it here.
303
304 2011-05-07  Bruno Haible  <bruno@clisp.org>
305
306         fseek: Move AC_LIBOBJ invocations to module description.
307         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
308         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
309         * modules/fseek (configure.ac): ... to here.
310
311 2011-05-07  Bruno Haible  <bruno@clisp.org>
312
313         fseek: Respect rules for use of AC_LIBOBJ.
314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
315         here...
316         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
317
318 2011-05-07  Bruno Haible  <bruno@clisp.org>
319
320         fseeko: Respect rules for use of AC_LIBOBJ.
321         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
322         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
323         here...
324         * modules/fseeko (configure.ac): ... to here.
325
326 2011-06-13  Bruno Haible  <bruno@clisp.org>
327
328         gnulib-tool: Allow comments in the 'Depends-on' section.
329         * doc/gnulib.texi (Module description): Mention comment syntax in the
330         Depends-on section.
331         * gnulib-tool (func_get_dependencies): Filter out comment lines.
332
333 2011-06-13  Bruno Haible  <bruno@clisp.org>
334
335         file-set.h: guard __attibute__ use, now that it's not always defined
336         * lib/file-set.h (record_file): Use __attribute__ only with compiler
337         versions that support it.  This fixes a coreutils build failure with
338         the vendor cc on HP-UX 11.31.
339
340 2011-06-12  Bruno Haible  <bruno@clisp.org>
341
342         acl: Add support for HP-UX >= 11.11 JFS ACLs.
343         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
344         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
345         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
346         (acl, aclsort): New declarations.
347         (aclv_nontrivial): New declaration.
348         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
349         (file_has_acl): Read also the second kind of HP-UX ACLs.
350         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
351         kind of HP-UX ACLs if the first kind fails.
352         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
353         second kind of HP-UX ACLs.
354         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
355         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
356         agree.
357         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
358         hpuxjfs.
359         Handle hpuxjfs.
360         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
361         hpuxjfs.
362         Handle hpuxjfs.
363         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
364         (func_test_same_acls): Use both lsacl and getacl.
365         Handle hpuxjfs.
366         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
367         (func_test_same_acls): Use both lsacl and getacl.
368         Handle hpuxjfs.
369
370 2011-06-12  Bruno Haible  <bruno@clisp.org>
371
372         acl: Complete the 2010-08-10 fix.
373         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
374         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
375         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
376         explicitly.
377         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
378         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
379
380 2011-06-12  Bruno Haible  <bruno@clisp.org>
381
382         spawn-pipe tests: Comments.
383         * tests/test-spawn-pipe-child.c (main): Update comment.
384         Reported by James Youngman <jay@gnu.org>.
385
386 2011-06-11  James Youngman  <jay@gnu.org>
387
388         New module 'stat-size'.
389         * modules/stat-size: New module.  Provides macros for accessing
390         file size information in instances of struct stat.  Depends on the
391         fileblocks module because it calls st_blocks.
392         * lib/stat-size.h: New file, adapted from coreutils' system.h.
393         * doc/gnulib.texi: Include stat-size.texi.
394         * doc/stat-size.texi: Documentation for this module.
395         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
396         * m4/fileblocks.m4: Mention that stat-size depends on the call to
397         AC_STRUCT_ST_BLOCKS.
398
399 2011-06-09  Bruno Haible  <bruno@clisp.org>
400
401         thread: Support pthreads-win32.
402         * lib/glthread/thread.h (gl_thread_self): Define differently on
403         pthreads-win32.
404         (gl_null_thread): New declaration.
405         (gl_thread_self_pointer): New macro.
406         * lib/glthread/thread.c (gl_null_thread): New constant.
407         * tests/test-lock.c: Use gl_thread_self_pointer instead of
408         gl_thread_self.
409         * tests/test-tls.c: Likewise.
410         Suggested by Paul Eggert. Reported by Eric Blake.
411
412 2011-06-09  Bruno Haible  <bruno@clisp.org>
413
414         thread: Fix confusion between NULL and 0.
415         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
416         Reported by Paul Eggert.
417
418 2011-06-09  Bruno Haible  <bruno@clisp.org>
419
420         spawn-pipe tests: Avoid test failure on HP-UX 11.
421         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
422         is closed.
423
424 2011-06-09  Bruno Haible  <bruno@clisp.org>
425
426         acl tests: Fix compilation error on HP-UX 11.
427         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
428
429 2011-06-09  Bruno Haible  <bruno@clisp.org>
430
431         rmdir: Avoid test failure on HP-UX 10.20.
432         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
433         EEXIST.
434
435 2011-06-08  Eric Blake  <eblake@redhat.com>
436
437         perror: fix test on mingw
438         * modules/perror-tests (Depends-on): Add dup2.
439
440         strerror_r-posix: fix on MacOS
441         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
443         logic bug.
444         * lib/strerror_r.c (strerror_r): Fix the bug.
445         * lib/strerror.c (strerror): Likewise.
446         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
447         problem.
448         * doc/posix-functions/strerror.texi (strerror): Likewise.
449         * doc/posix-functions/perror.texi (perror): Likewise.
450         * tests/test-strerror.c (main): Enhance test.
451         * tests/test-strerror_r.c (main): Likewise.
452
453 2011-06-08  Bruno Haible  <bruno@clisp.org>
454
455         gnulib-tool: Better isolation between different gnulib-tool invocations.
456         * gnulib-tool: New option --witness-c-macro.
457         (witness_c_macro): New variable.
458         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
459         AM_CPPFLAGS define it as a C macro.
460         (func_emit_tests_Makefile_am): Likewise.
461         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
462         read it from there.
463         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
464         m4_define, not AC_DEFUN.
465         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
466         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
467         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
468         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
469         s|...|...|, to substitute the values of the GNULIB_* module indicator
470         variables.
471         * modules/dirent (Makefile.am): Likewise.
472         * modules/fcntl-h (Makefile.am): Likewise.
473         * modules/iconv-h (Makefile.am): Likewise.
474         * modules/langinfo (Makefile.am): Likewise.
475         * modules/locale (Makefile.am): Likewise.
476         * modules/math (Makefile.am): Likewise.
477         * modules/netdb (Makefile.am): Likewise.
478         * modules/poll-h (Makefile.am): Likewise.
479         * modules/pty (Makefile.am): Likewise.
480         * modules/search (Makefile.am): Likewise.
481         * modules/signal (Makefile.am): Likewise.
482         * modules/spawn (Makefile.am): Likewise.
483         * modules/stdio (Makefile.am): Likewise.
484         * modules/stdlib (Makefile.am): Likewise.
485         * modules/string (Makefile.am): Likewise.
486         * modules/sys_ioctl (Makefile.am): Likewise.
487         * modules/sys_select (Makefile.am): Likewise.
488         * modules/sys_socket (Makefile.am): Likewise.
489         * modules/sys_stat (Makefile.am): Likewise.
490         * modules/sys_times (Makefile.am): Likewise.
491         * modules/sys_utsname (Makefile.am): Likewise.
492         * modules/sys_wait (Makefile.am): Likewise.
493         * modules/termios (Makefile.am): Likewise.
494         * modules/time (Makefile.am): Likewise.
495         * modules/unistd (Makefile.am): Likewise.
496         * modules/wchar (Makefile.am): Likewise.
497
498 2011-06-08  Eric Blake  <eblake@redhat.com>
499
500         strerror: simplify replacement
501         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
502         * modules/strerror (configure.ac): No prereqs needed here...
503         * modules/strerror-override (configure.ac): ...but this needs it.
504         (Files): Add file for needed prereq macro.
505
506 2011-06-08  Bruno Haible  <bruno@clisp.org>
507
508         strerror_r-posix: Tweaks.
509         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
510         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
511         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
512         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
513         (gl_FUNC_STRERROR_R): ... to here.
514         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
515
516 2011-06-07  Eric Blake  <eblake@redhat.com>
517
518         perror: document fixed bugs
519         * doc/posix-functions/perror.texi (perror): Document recent
520         patches.
521
522 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
523
524         stat-time: get_stat_birthtime failure is better-defined
525         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
526         return a timestamp whose tv_sec and tv_nsec values are both -1.
527         Previously, the spec said only that the tv_nsec value was negative.
528         This upward-compatible change simplifies GNU tar a bit.
529
530 2011-06-07  Eric Blake  <eblake@redhat.com>
531
532         strerror_r-posix: work around cygwin 1.7.9
533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
534         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
535         bug without replacing strerror_r.
536         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
537         strerror_r is buggy, but without requiring strerror_r compilation.
538         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
539
540         test-perror: relax test to ignore cygwin bug
541         * tests/test-perror2.c (main): Relax test on requiring detection
542         of stream errors, and use unbuffered stream.
543         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
544         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
545         * doc/posix-functions/fputc.texi (fputc): Likewise.
546         * doc/posix-functions/fputs.texi (fputs): Likewise.
547         * doc/posix-functions/fputws.texi (fputws): Likewise.
548         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
549         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
550         * doc/posix-functions/getopt.texi (getopt): Likewise.
551         * doc/posix-functions/perror.texi (perror): Likewise.
552         * doc/posix-functions/printf.texi (printf): Likewise.
553         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
554         * doc/posix-functions/psignal.texi (psignal): Likewise.
555         * doc/posix-functions/putc.texi (putc): Likewise.
556         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
557         Likewise.
558         * doc/posix-functions/putchar.texi (putchar): Likewise.
559         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
560         Likewise.
561         * doc/posix-functions/puts.texi (puts): Likewise.
562         * doc/posix-functions/putwc.texi (putwc): Likewise.
563         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
564         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
565         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
566         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
567         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
568         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
569         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
570         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
571
572 2011-05-22  Bruno Haible  <bruno@clisp.org>
573
574         strerror: Move AC_LIBOBJ invocations to module description.
575         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
576         gl_PREREQ_STRERROR invocations from here...
577         * modules/strerror (configure.ac): ... to here.
578
579 2011-05-21  Bruno Haible  <bruno@clisp.org>
580
581         perror: Use common idiom.
582         * modules/perror (configure.ac): Reorder statements.
583
584 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
585
586         tests: fix usage message in 'mktempd_'
587         * tests/init.sh (mktempd_): In the usage message, use literal
588         'mktempd_', not '$ME' (which is even undefined), as the name of
589         the subroutine.
590
591 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
592
593         tests init: new function 'fatal_', for hard errors
594         Before this patch, the only way offered by tests/init.sh to
595         properly signal a hard error was the `framework_failure_'
596         function.  But the error message issued by that function,
597         as its name would suggest, refers to a set-up failure in the
598         testsuite, while hard errors can obviously also be due to
599         other reasons.  The best way to fix this inconsistency is to
600         introduce a new function with a more general error message.
601         * tests/init.sh (fatal_): New function.
602
603 2011-06-06  Eric Blake  <eblake@redhat.com>
604
605         canonicalize-lgpl: use common idiom
606         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
607         over newer POSIX -Rf.
608         Reported by Bruno Haible.
609
610         canonicalize-lgpl: work around AIX realpath bug
611         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
612         * doc/posix-functions/realpath.texi (realpath): Document it.
613         Reported by Bruno Haible.
614
615         strerror: work around FreeBSD bug
616         * lib/strerror.c (strerror): Special case 0.
617         Reported by Bruno Haible.
618
619         strerror-override: avoid bloating errno module
620         * modules/errno (Files, configure.ac): Move replacement strings...
621         * modules/strerror-override: ...to new module.
622         * modules/strerror (Depends-on): Add strerror-override.
623         * modules/strerror_r-posix (Depends-on): Likewise.
624         * MODULES.html.sh: Document new module.
625         Reported by Bruno Haible.
626
627 2011-06-06  Bruno Haible  <bruno@clisp.org>
628
629         spawn-pipe tests: Rename program.
630         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
631         * tests/test-spawn-pipe-child.c: Update comment.
632         * tests/test-spawn-pipe.sh: Update.
633         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
634
635         spawn-pipe tests: Link the child program only against libc.
636         * tests/test-spawn-pipe-child.c: New file, extracted from
637         tests/test-spawn-pipe.c.
638         (main): Expect only one argument.
639         (is_open): New function, copied from tests/test-pipe.c.
640         * tests/test-spawn-pipe.c: Don't include <errno.h>.
641         (child_main): Remove function.
642         (test_pipe): Pass only one argument to the child program.
643         (main): Remove child process code. Expect the child program's name as
644         first argument.
645         * tests/test-spawn-pipe.sh: Pass the child program's name as first
646         argument.
647         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
648         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
649         test-spawn-pipe-child against no libraries.
650
651 2011-06-06  Bruno Haible  <bruno@clisp.org>
652
653         careadlinkat: Avoid mismatch between ssize_t and int.
654         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
655         * lib/careadlinkat.c (careadlinkatcwd): Define always.
656
657 2011-06-06  Jim Meyering  <meyering@redhat.com>
658
659         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
660         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
661         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
662
663 2011-06-05  Bruno Haible  <bruno@clisp.org>
664
665         ansi-c++-opt: Interoperability with libtool.
666         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
667         set the variable to "no", not to ":".
668         * NEWS: Mention the change.
669
670 2011-06-05  Bruno Haible  <bruno@clisp.org>
671
672         acl: Fix test failure on AIX 7.
673         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
674         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
675
676 2011-06-05  Bruno Haible  <bruno@clisp.org>
677
678         pipe-filter-ii: Fix test failure on AIX and IRIX.
679         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
680         with EAGAIN, retry with a smaller buffer size.
681
682 2011-06-05  Bruno Haible  <bruno@clisp.org>
683
684         localename: Fix link dependencies.
685         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
686         * modules/localename-tests (Makefile.am): Link test-localename with
687         $(LIBTHREAD).
688
689 2011-06-05  Bruno Haible  <bruno@clisp.org>
690
691         error: Avoid gcc warning.
692         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
693
694 2011-06-05  Bruno Haible  <bruno@clisp.org>
695
696         unsetenv: Avoid gcc warning.
697         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
698
699 2011-06-05  Bruno Haible  <bruno@clisp.org>
700
701         setenv: Avoid gcc warning.
702         * lib/setenv.c (setenv): Provide declaration if system lacks it.
703
704 2011-06-05  Bruno Haible  <bruno@clisp.org>
705
706         sys_select: Ensure memset is declared also on AIX 7.
707         * lib/sys_select.in.h: Include <string.h> also on AIX.
708         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
709         self-contained also on AIX 7.1.
710
711 2011-06-04  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
714         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
715         function name, "error".
716         (_gl_translatable_diag_func_re): New configurable variable.
717
718 2011-06-04  Bruno Haible  <bruno@clisp.org>
719
720         getopt: Avoid gcc warning.
721         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
722
723 2011-06-04  Bruno Haible  <bruno@clisp.org>
724
725         strerror_r: Fix comments.
726         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
727         commit.
728
729 2011-06-04  Bruno Haible  <bruno@clisp.org>
730
731         perror: Fix compilation error.
732         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
733         Undefine fprintf, not sprintf.
734         * modules/perror (Depends-on): Remove intprops, verify.
735
736 2011-06-04  Bruno Haible  <bruno@clisp.org>
737
738         setlocale: Enable replacement on Cygwin 1.5.
739         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
740         Cygwin 1.5.x.
741         * doc/posix-functions/setlocale.texi: Mention that the problem with the
742         LC_CTYPE category also exists on Cygwin 1.5.x.
743
744 2011-06-04  Bruno Haible  <bruno@clisp.org>
745
746         strerror-override: Don't disable symbol renamings.
747         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
748         * lib/strerror-override.c: Include config.h.
749         (strerror_override): Don't undefine.
750
751 2011-06-03  Bruno Haible  <bruno@clisp.org>
752
753         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
754         * lib/localename.h: Update copyright header.
755         * lib/localename.c: Likewise.
756         * lib/relocatable.h: Likewise.
757         * lib/relocatable.c: Likewise.
758
759 2011-06-02  Bruno Haible  <bruno@clisp.org>
760
761         doc: Fix a module name.
762         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
763
764 2011-06-02  Bruno Haible  <bruno@clisp.org>
765
766         pipe2: Remove dependency on 'nonblocking' module.
767         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
768         O_NONBLOCK is defined by gnulib.
769         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
770         is zero.
771         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
772         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
773         defined by gnulib.
774         (get_nonblocking_flag): New function.
775         (main): Test O_NONBLOCK flag only if it is nonzero.
776         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
777
778 2011-06-03  Jim Meyering  <meyering@redhat.com>
779
780         maint: three new prohibit-header-without-use rules
781         Prohibit use of cloexec.h, posixver.h, same.h without use.
782         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
783         (sc_prohibit_posixver_without_use): Likewise.
784         (sc_prohibit_same_without_use): Likewise.
785
786 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
787
788         allocator: 'die' routine is now given requested size
789         * lib/allocator.h (struct allocator.die): New size arg.
790         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
791         If the actual problem is an ssize_t limitation, not a size_t or
792         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
793
794 2011-06-01  Eric Blake  <eblake@redhat.com>
795
796         strerror: drop strerror_r dependency
797         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
798         * lib/strerror-override.c (strerror_override): ...to new file.
799         * lib/strerror-override.h: Add prototype.
800         * lib/strerror-impl.h: Delete.
801         * lib/strerror.c (strerror): New implementation.
802         * modules/errno (Files): Add new files.
803         (configure.ac): Compile new file as appropriate.
804         * modules/strerror (Files): Drop unused file.
805         (Depends-on): Drop strerror_r-posix.
806         * MODULES.html.sh: Document strerror_r-posix.
807         Requested by Sam Steingold.
808
809         perror: call strerror_r directly
810         * modules/perror (Files): Drop strerror-impl.h.
811         * lib/perror.c (perror): Use our own stack buffer, rather than
812         calling a wrapper that uses static storage.
813         * doc/posix-functions/perror.texi (perror): Document a limitation
814         of our replacement.
815
816         strerror_r: fix includes for FreeBSD
817         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
818         since we use abort on some platforms.
819         Reported by Matthias Bolte.
820
821 2011-05-31  Bruno Haible  <bruno@clisp.org>
822
823         Fix link errors in tests: openat-die uses gettext-h.
824         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
825         against $(LIBINTL).
826         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
827         against $(LIBINTL).
828         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
829         $(LIBINTL).
830         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
831         against $(LIBINTL).
832         * modules/linkat-tests (Makefile.am): Link test-linkat against
833         $(LIBINTL).
834         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
835         $(LIBINTL).
836         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
837         against $(LIBINTL).
838         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
839         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
840         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
841         $(LIBINTL).
842         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
843         $(LIBINTL).
844         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
845         $(LIBINTL).
846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
847
848 2011-05-31  Bruno Haible  <bruno@clisp.org>
849
850         Fix link errors in tests: wait-process uses gettext-h.
851         * modules/nonblocking-pipe-tests (Makefile.am): Set
852         test_nonblocking_pipe_main_LDADD.
853         * modules/nonblocking-socket-tests (Makefile.am): Link
854         test-nonblocking-socket-main against $(LIBINTL).
855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
856
857 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
858
859         assert-h: work around 'verify' incompatibility
860         * lib/verify.h: Use @...@ directives, not ifdef.
861         * modules/assert-h (assert.h): Implement the directives.
862         (assert.h): Substitute the symbol-prefix more consistently.
863
864 2011-05-29  Jim Meyering  <meyering@redhat.com>
865
866         trim: remove three superfluous assignments
867         * lib/trim.c (trim2): Remove three superfluous assignments
868         and correct brace positioning.
869
870 2011-05-29  Bruno Haible  <bruno@clisp.org>
871
872         wctype-h: Avoid namespace pollution on Solaris 2.6.
873         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
874         identifiers.
875         * doc/posix-headers/wctype.texi: Mention the problem.
876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
877
878 2011-05-28  Jim Meyering  <meyering@redhat.com>
879
880         parse-datetime.y: accommodate -Wstrict-overflow
881         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
882         placate -Wstrict-overflow.
883
884         trim: avoid a warning from -O2 -Wstrict-overflow
885         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
886
887 2011-05-29  Bruno Haible  <bruno@clisp.org>
888
889         gnulib-tool: Fix bug in yesterday's commit.
890         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
891         twice.
892
893 2011-05-29  Bruno Haible  <bruno@clisp.org>
894
895         Allow multiple gnulib generated include files to be combined.
896         * gnulib-tool (func_compute_include_guard_prefix): New function.
897         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
898         ${gl_include_guard_prefix} references.
899         (func_import, func_create_testdir): Invoke
900         func_compute_include_guard_prefix.
901         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
902         * lib/ctype.in.h: Likewise.
903         * lib/dirent.in.h: Likewise.
904         * lib/errno.in.h: Likewise.
905         * lib/fcntl.in.h: Likewise.
906         * lib/float.in.h: Likewise.
907         * lib/getopt.in.h: Likewise.
908         * lib/iconv.in.h: Likewise.
909         * lib/langinfo.in.h: Likewise.
910         * lib/locale.in.h: Likewise.
911         * lib/math.in.h: Likewise.
912         * lib/netdb.in.h: Likewise.
913         * lib/netinet_in.in.h: Likewise.
914         * lib/poll.in.h: Likewise.
915         * lib/pthread.in.h: Likewise.
916         * lib/pty.in.h: Likewise.
917         * lib/sched.in.h: Likewise.
918         * lib/se-selinux.in.h: Likewise.
919         * lib/search.in.h: Likewise.
920         * lib/signal.in.h: Likewise.
921         * lib/spawn.in.h: Likewise.
922         * lib/stdarg.in.h: Likewise.
923         * lib/stddef.in.h: Likewise.
924         * lib/stdint.in.h: Likewise.
925         * lib/stdio.in.h: Likewise.
926         * lib/stdlib.in.h: Likewise.
927         * lib/string.in.h: Likewise.
928         * lib/strings.in.h: Likewise.
929         * lib/sys_file.in.h: Likewise.
930         * lib/sys_ioctl.in.h: Likewise.
931         * lib/sys_select.in.h: Likewise.
932         * lib/sys_socket.in.h: Likewise.
933         * lib/sys_stat.in.h: Likewise.
934         * lib/sys_time.in.h: Likewise.
935         * lib/sys_times.in.h: Likewise.
936         * lib/sys_uio.in.h: Likewise.
937         * lib/sys_utsname.in.h: Likewise.
938         * lib/sys_wait.in.h: Likewise.
939         * lib/sysexits.in.h: Likewise.
940         * lib/termios.in.h: Likewise.
941         * lib/time.in.h: Likewise.
942         * lib/unistd.in.h: Likewise.
943         * lib/wchar.in.h: Likewise.
944         * lib/wctype.in.h: Likewise.
945         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
946         * modules/ctype (Makefile.am): Likewise.
947         * modules/dirent (Makefile.am): Likewise.
948         * modules/errno (Makefile.am): Likewise.
949         * modules/fcntl-h (Makefile.am): Likewise.
950         * modules/float (Makefile.am): Likewise.
951         * modules/getopt-posix (Makefile.am): Likewise.
952         * modules/iconv-h (Makefile.am): Likewise.
953         * modules/langinfo (Makefile.am): Likewise.
954         * modules/locale (Makefile.am): Likewise.
955         * modules/math (Makefile.am): Likewise.
956         * modules/netdb (Makefile.am): Likewise.
957         * modules/netinet_in (Makefile.am): Likewise.
958         * modules/poll-h (Makefile.am): Likewise.
959         * modules/pthread (Makefile.am): Likewise.
960         * modules/pty (Makefile.am): Likewise.
961         * modules/sched (Makefile.am): Likewise.
962         * modules/search (Makefile.am): Likewise.
963         * modules/selinux-h (Makefile.am): Likewise.
964         * modules/signal (Makefile.am): Likewise.
965         * modules/spawn (Makefile.am): Likewise.
966         * modules/stdarg (Makefile.am): Likewise.
967         * modules/stddef (Makefile.am): Likewise.
968         * modules/stdint (Makefile.am): Likewise.
969         * modules/stdio (Makefile.am): Likewise.
970         * modules/stdlib (Makefile.am): Likewise.
971         * modules/string (Makefile.am): Likewise.
972         * modules/strings (Makefile.am): Likewise.
973         * modules/sys_file (Makefile.am): Likewise.
974         * modules/sys_ioctl (Makefile.am): Likewise.
975         * modules/sys_select (Makefile.am): Likewise.
976         * modules/sys_socket (Makefile.am): Likewise.
977         * modules/sys_stat (Makefile.am): Likewise.
978         * modules/sys_time (Makefile.am): Likewise.
979         * modules/sys_times (Makefile.am): Likewise.
980         * modules/sys_uio (Makefile.am): Likewise.
981         * modules/sys_utsname (Makefile.am): Likewise.
982         * modules/sys_wait (Makefile.am): Likewise.
983         * modules/sysexits (Makefile.am): Likewise.
984         * modules/termios (Makefile.am): Likewise.
985         * modules/time (Makefile.am): Likewise.
986         * modules/unistd (Makefile.am): Likewise.
987         * modules/wchar (Makefile.am): Likewise.
988         * modules/wctype-h (Makefile.am): Likewise.
989         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
990
991 2011-05-29  Bruno Haible  <bruno@clisp.org>
992
993         assert-h: Allow multiple gnulib generated replacements to coexist.
994         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
995
996 2011-05-29  Bruno Haible  <bruno@clisp.org>
997
998         argp: Allow coexistence with strerror_r-posix module.
999         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1000         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1001         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1002         not the glibc signature.
1003
1004 2011-05-28  Bruno Haible  <bruno@clisp.org>
1005
1006         gnulib-tool: Alternative structure of testdirs, similar to --import.
1007         * gnulib-tool: New option --single-configure.
1008         (func_usage): Document it.
1009         (single_configure): New variable.
1010         (func_modules_transitive_closure_separately,
1011         func_modules_transitive_closure_separately,
1012         func_determine_use_libtests, func_modules_add_dummy_separately,
1013         func_modules_to_filelist_separately): New functions, extracted from
1014         func_import.
1015         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1016         (func_import): Use the new functions.
1017         (func_create_testdir): Set final_modules. Handle $single_configure =
1018         true case.
1019
1020 2011-05-28  Bruno Haible  <bruno@clisp.org>
1021
1022         getloadavg: Remove an unreliable safety check.
1023         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1024         getloadavg.c is in place.
1025         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1026         Reported by Sam Steingold <sds@gnu.org>.
1027
1028 2011-05-28  Bruno Haible  <bruno@clisp.org>
1029
1030         doc: Cleanup yet another file produced by texinfo.tex.
1031         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1032
1033 2011-05-28  Bruno Haible  <bruno@clisp.org>
1034
1035         Finish the conditional dependencies mechanism.
1036         * gnulib-tool: New option --no-conditional-dependencies.
1037         (func_usage): Document it. Don't mark --conditional-dependencies as
1038         experimental.
1039         (cond_dependencies): The possible values can now be true, false, empty.
1040         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1041         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1042         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1043
1044 2011-05-28  Bruno Haible  <bruno@clisp.org>
1045
1046         doc: Use a recent texinfo.tex.
1047         * doc/Makefile (tex_opts): New variable.
1048         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1049
1050 2011-05-28  Jim Meyering  <meyering@redhat.com>
1051
1052         intprops.h: adjust comment to match code change
1053         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1054         only once, it *may* have side effects.  Also fix an unrelated typo.
1055         (_GL_INT_SIGNED): Likewise.
1056
1057 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1058
1059         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1060
1061 2011-05-26  Bruno Haible  <bruno@clisp.org>
1062
1063         mbsrchr: Avoid collision with system function on Interix.
1064         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1065         Reported by Markus Duft <mduft@gentoo.org>.
1066
1067 2011-05-15  James Youngman  <jay@gnu.org>
1068
1069         getopt: for ambiguous options, enumerate the possibilities.
1070         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1071         the ambiguous options when an ambiguous prefix is given. This was
1072         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1073         glibc change was
1074         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1075
1076 2011-05-25  Eric Blake  <eblake@redhat.com>
1077
1078         getcwd: work around mingw bug
1079         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1080         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1081         Reported by Matthias Bolte.
1082
1083 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         test-intprops: disable -Wtype-limits diagnostics
1086         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1087         diagnostics.  Otherwise, the integer overflow macros generate many
1088         diagnostics.  Reported by Jim Meyering in
1089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1090
1091         intprops: shorten, to pacify gcc -Woverlength-strings
1092         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1093         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1094         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1095         likely to run afoul of C compiler limits for string constant lengths.
1096         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1097
1098 2011-05-24  Eric Blake  <eblake@redhat.com>
1099
1100         docs: document recently fixed glibc printf bug
1101         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1102         * doc/posix-functions/printf.texi (printf): Likewise.
1103         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1104         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1105
1106         closein-tests: convert to init.sh
1107         * modules/closein-tests (Files): Add init.sh
1108         * tests/test-closein.sh Use it.
1109
1110         yesno-tests: convert to init.sh
1111         * modules/yesno-tests (Files): Add init.sh.
1112         * tests/test-yesno.sh: Use it.
1113
1114         atexit-tests: ensure reliable exit status
1115         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1116         Reported by Bruno Haible.
1117
1118 2011-05-24  Bruno Haible  <bruno@clisp.org>
1119
1120         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1121         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1122         gl_PREREQ_STRERROR_R invocations from here...
1123         * modules/strerror_r-posix (configure.ac): ... to here.
1124
1125 2011-05-24  Eric Blake  <eblake@redhat.com>
1126
1127         strerror_r: fix missing header
1128         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1129
1130         strerror_r: fix AIX test failures
1131         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1132         ERANGE failure.
1133
1134         strerror_r: fix Solaris test failures
1135         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1136         failures.
1137         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1138
1139         strerror_r: enforce POSIX recommendations
1140         * lib/strerror_r.c (safe_copy): New helper method.
1141         (strerror_r): Guarantee a non-empty string.
1142         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1143         recent POSIX rulings and to match our strerror guarantees.
1144         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1145
1146 2011-05-24  Jim Meyering  <meyering@redhat.com>
1147
1148         test-perror2.c: avoid warning about unused variable
1149         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1150
1151 2011-05-24  Eric Blake  <eblake@redhat.com>
1152
1153         perror: avoid spurious test failure on HP-UX
1154         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1155
1156         tests: fix logic bug in init.sh
1157         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1158         shell.
1159
1160 2011-05-24  Jim Meyering  <meyering@redhat.com>
1161
1162         utimensat: do not reference an out-of-scope buffer
1163         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1164         declared in an inner scope, yet "times" would be dereferenced outside
1165         the scope in which "ts" was valid.
1166         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1167         of ts[2] "out/up", so that the use of aliased "times" (via
1168         "times = ts;") does not end up referencing an out-of-scope "ts"
1169
1170         opendir-safer.c: don't clobber errno; don't close negative FD
1171         * lib/opendir-safer.c (opendir_safer):
1172         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1173         file descriptor, and more importantly, don't clobber the
1174         offending errno value with EINVAL.  Before, upon failure
1175         of dup_safer, we would pass the negative file descriptor to
1176         fdopendir, which would clobber errno.
1177
1178 2011-05-23  Bruno Haible  <bruno@clisp.org>
1179
1180         idcache: Fix module description.
1181         * modules/idcache (Include): Set to "idcache.h".
1182
1183 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1184
1185         gnulib-tool: fix portability problem with MacOS sed
1186         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1187         before the "}".  Problem reported by Leo in
1188         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1189         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1190         sed_extract_condition1, sed_extract_condition2.
1191
1192 2011-05-23  Bruno Haible  <bruno@clisp.org>
1193
1194         hash: Simplify autoconf macro.
1195         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1196
1197 2011-05-23  Bruno Haible  <bruno@clisp.org>
1198
1199         getugroups: Fix module description.
1200         * modules/getugroups (Include): Set to "getugroups.h".
1201
1202 2011-05-23  Bruno Haible  <bruno@clisp.org>
1203
1204         linkat: Simplify autoconf macro.
1205         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1206
1207 2011-05-23  Bruno Haible  <bruno@clisp.org>
1208             Eric Blake  <eblake@redhat.com>
1209
1210         linkat, renameat: Update dependencies.
1211         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1212         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1213         symlinkat.
1214
1215 2011-05-23  Jim Meyering  <meyering@redhat.com>
1216
1217         maint.mk: more tight_scope improvements
1218         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1219         (_gl_TS_headers): Define only in if-0'd block.
1220         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1221         sometimes we must *not* use it.  Adjust uses accordingly.
1222         (sc_tight_scope): Use much simpler grep-based test to determine
1223         whether we skip this rule.
1224
1225         maint.mk: generalize/improve the tight-scope rule
1226         * top/maint.mk: Emit a warning when the test is skipped.
1227         (_gl_TS_dir): Add $(srcdir)/ prefix.
1228         (_gl_TS_function_match): Simplify, rather than trying
1229         to enumerate common types.  Otherwise, it would fail to match an
1230         "extern unsigned char const *" declaration in idutils.
1231         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1232         a way to support use of that type of macro.
1233         (_gl_TS_var_match): Simplify regexp.
1234         (_gl_TS_obj_files): New configurable variable.
1235         (_gl_TS_headers): Likewise.
1236
1237 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         verify: fix bug when gnulib <assert.h> is also included
1240         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1241         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1242         Perhaps there's a better way, but this fixes the immediate problem.
1243         Problem reported by Bruno Haible in
1244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1245
1246 2011-05-22  Bruno Haible  <bruno@clisp.org>
1247
1248         xgetcwd: Simplify autoconf macro.
1249         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1250
1251 2011-05-22  Bruno Haible  <bruno@clisp.org>
1252
1253         New module 'mktime-internal'.
1254         * modules/mktime-internal: New file.
1255         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1256         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1257         mktime_internal as a C macro if libc has __mktime_internal.
1258         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1259         conditions.
1260         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1261
1262 2011-05-22  Bruno Haible  <bruno@clisp.org>
1263
1264         timegm: Correct mktime replacement statements.
1265         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1266         defining mktime as a C macro. This completes a 2009-07-28 commit.
1267
1268 2011-05-22  Bruno Haible  <bruno@clisp.org>
1269
1270         timegm: Simplify autoconf macro.
1271         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1272
1273 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1274
1275         clock-time: change to LGPLv2+.
1276         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1277         BSD-like but we have no mark for that; this is good enough for now.
1278
1279 2011-05-21  Bruno Haible  <bruno@clisp.org>
1280
1281         strerror_r: Fix comments.
1282         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1283
1284 2011-05-21  Bruno Haible  <bruno@clisp.org>
1285
1286         relocatable-prog-wrapper: Fix possible link error.
1287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1288         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1289         (gl_FUNC_SETENV): ... to here.
1290         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1291         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1292
1293 2011-05-21  Bruno Haible  <bruno@clisp.org>
1294
1295         relocatable-prog-wrapper: Assume strerror() exists.
1296         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1297         m4/strerror.m4.
1298         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1299         * lib/relocwrapper.c: Remove mention of strerror module.
1300         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1301         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1302         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1303         C macro.
1304
1305 2011-05-21  Bruno Haible  <bruno@clisp.org>
1306
1307         select: Simplify replacement idiom.
1308         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1309         Win32 platforms.
1310         * lib/sys_select.in.h (select): Simplify accordingly.
1311         * modules/select (Depends-on): Likewise.
1312
1313 2011-05-21  Bruno Haible  <bruno@clisp.org>
1314
1315         mkdir-p: Simplify autoconf macro.
1316         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1317         gl_FUNC_LCHOWN.
1318
1319 2011-05-21  Eric Blake  <eblake@redhat.com>
1320
1321         strerror_r: avoid clobbering strerror on cygwin
1322         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1323         fall back instead to sys_errlist.
1324         * modules/strerror (configure.ac): Add witness.
1325         * tests/test-strerror_r.c (main): Enhance test.
1326         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1327         * tests/test-perror2.c (main): Free memory before exit.
1328
1329 2011-05-21  Bruno Haible  <bruno@clisp.org>
1330
1331         mkdtemp: Use gnulib naming conventions.
1332         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1333         * modules/mkdtemp (configure.ac): Update.
1334
1335 2011-05-20  Eric Blake  <eblake@redhat.com>
1336
1337         strerror_r: avoid corrupting errno on Solaris
1338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1339         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1340
1341         strerror_r: avoid compiler warning
1342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1343
1344         strerror_r: simplify AIX code
1345         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1346
1347         test-perror: avoid spurious failure on FreeBSD
1348         * modules/perror-tests (Depends-on): Add strerror, now that
1349         strerror_r no longer pulls it in.
1350
1351 2011-05-20  Bruno Haible  <bruno@clisp.org>
1352
1353         strerror_r-posix: Remove unused dependencies.
1354         * modules/strerror_r-posix (Depends-on): Remove strerror.
1355         Reported by Eric Blake.
1356
1357 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         intprops: remove assumption about A|B representation
1360         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1361         is a valid integer if both A and B are.  Although this is true for
1362         all known practical hosts, the C standard doesn't guarantee it,
1363         and the code need not assume it.  Also, this change may work around
1364         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1366
1367 2011-05-20  Eric Blake  <eblake@redhat.com>
1368
1369         perror: work around FreeBSD bug
1370         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1371         is broken.  Move AC_LIBOBJ...
1372         * modules/perror (configure.ac): Here.
1373         * doc/posix-functions/perror.texi (perror): Document this.
1374         * tests/test-perror2.c (main): Enhance test.
1375
1376         test-perror: check for strerror interactions
1377         * tests/macros.h (STREQ): Add macro.
1378         * modules/perror-tests (Files): Add second test.
1379         * tests/test-perror2.c (main): New file.
1380         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1381
1382         test-perror: rewrite to use init script
1383         * modules/perror-tests (Files): Add init.sh.
1384         * tests/test-perror.sh: Use temporary directory.
1385
1386 2011-05-20  Jim Meyering  <meyering@redhat.com>
1387
1388         maint: replace misused "a" with "an"
1389         * doc/intprops.texi: "a integer"
1390         * doc/regex.texi: "a explanation"
1391         * lib/alignof.h: "a object"
1392         * lib/argmatch.h: "a explanation"
1393         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1394         * lib/stdint.in.h: "a integer"
1395         * lib/userspec.c: "a owner"
1396         * doc/gnulib.texi: Fix "a idea", and reword.
1397
1398 2011-05-19  Jim Meyering  <meyering@redhat.com>
1399
1400         maint: correct misuse of "a" and "an"
1401         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1402         * lib/argp-help.c: "an docum...": s/an/a/
1403         * lib/argp-parse.c: "An vector": s/An/A/
1404         * lib/execute.c: "an native": s/an/a/
1405         * lib/spawn-pipe.c: Likewise.
1406         * lib/gc.h: "an Gc_rc": s/an/a/
1407         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1408         * lib/fts.c: "an stat.st_dev": s/an/a/
1409
1410 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         intprops-tests: work around HP-UX 11.23 cc bug with constants
1413         * tests/test-intprops.c (VERIFY): New macro.
1414         (main): Use it, instead of verify, to work around the compiler bug; see
1415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1416
1417         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1418         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1419         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1420         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1421         (_GL_REMAINDER_OVERFLOW): Use it.
1422
1423         intprops-tests: revert unsigned part of previous change
1424         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1425         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1426         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1428
1429 2011-05-19  Bruno Haible  <bruno@clisp.org>
1430
1431         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1432         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1433         strerror_r() returned without filling the buffer.
1434         Reported by Eric Blake.
1435
1436 2011-05-19  Eric Blake  <eblake@redhat.com>
1437
1438         strerror_r: guarantee unchanged errno
1439         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1440         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1441         failure.
1442         * tests/test-strerror_r.c (main): Enhance test.
1443
1444 2011-05-19  Bruno Haible  <bruno@clisp.org>
1445
1446         strerror_r: Reorder #if blocks.
1447         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1448         for consistency with the previous commit.
1449
1450 2011-05-19  Bruno Haible  <bruno@clisp.org>
1451
1452         perror: Avoid clobbering the strerror buffer when possible.
1453         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1454         * lib/strerror.c: Include it.
1455         * modules/strerror (Files): Add lib/strerror-impl.h.
1456         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1457         (my_strerror): New function, defined through lib/strerror-impl.h.
1458         (perror): Use it instead of strerror.
1459         * modules/perror (Files): Add lib/strerror-impl.h.
1460         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1461
1462 2011-05-19  Eric Blake  <eblake@redhat.com>
1463
1464         strerror_r: fix on newer cygwin
1465         * lib/strerror_r.c (strerror_r): Cygwin now has
1466         __xpg_strerror_r, use it.
1467
1468 2011-05-19  Bruno Haible  <bruno@clisp.org>
1469
1470         strerror_r: Avoid clobbering the strerror buffer when possible.
1471         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1472         (sys_nerr, sys_errlist): New declarations.
1473         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1474         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1475         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1476
1477 2011-05-19  Bruno Haible  <bruno@clisp.org>
1478
1479         strerror_r: Fix test failure on mingw.
1480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1481         EXTEND_STRERROR_R.
1482         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1483         macros from errno.in.h instead.
1484
1485 2011-05-19  Eric Blake  <eblake@redhat.com>
1486
1487         strerror: relax test for Solaris
1488         * tests/test-strerror.c (main): Permit Solaris behavior.
1489         * tests/test-strerror_r.c (main): Likewise.
1490
1491         strerror: enforce POSIX ruling on strerror(0)
1492         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1493         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1494         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1495         * doc/posix-functions/strerror.texi (strerror): Document it.
1496         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1497         * tests/test-strerror.c (main): Strengthen test.
1498         * tests/test-strerror_r.c (main): Likewise.
1499
1500 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         intprop-tests: port to older and more-pedantic compilers
1503         * modules/intprops-tests (Files): Add tests/macros.h.
1504         * tests/test-intprops.c: Include macros.h.
1505         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1506         it's no longer documented to expand to an integer constant expression.
1507         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1508         argument is floating point, as it's no longer documented to expand
1509         to an integer constant expression in that case.
1510         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1511         compiler bugs reported by Bruno Haible.  See
1512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1513         (U0, U1): New constants, to work around the same bugs.  Also,
1514         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1515
1516         intprops: work around C compiler bugs
1517         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1518         bug in Sun C 5.11 2010/08/13 and other compilers; see
1519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1520
1521         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1522         * doc/intprops.texi (Integer Type Determination): Fix
1523         documentation for TYPE_IS_INTEGER: it returns an constant
1524         expression, not an integer constant expression.  Fix doc for
1525         TYPE_SIGNED: it returns an integer constant expression only if its
1526         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1527         hardly worth documented that way....)
1528
1529 2011-05-18  Bruno Haible  <bruno@clisp.org>
1530
1531         strerror_r: Avoid clobbering the strerror buffer when possible.
1532         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1533         Handle gnulib defined errno values here. When strerror() returns NULL
1534         or an empty string, return EINVAL.
1535         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1536         gnulib defined errno values here.
1537         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1538
1539 2011-05-18  Eric Blake  <eblake@redhat.com>
1540
1541         fnmatch: avoid compiler warning
1542         * lib/fnmatch_loop.c (FCT): Use correct type.
1543         Reported by Matthias Bolte.
1544
1545 2011-05-13  Jim Meyering  <meyering@redhat.com>
1546
1547         maint.mk: three new prohibit_<HDR>_without_use rules
1548         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1549         (sc_prohibit_stdio-safer_without_use): Likewise.
1550         (sc_prohibit_xfreopen_without_use): Likewise.
1551
1552 2011-05-17  Jim Meyering  <meyering@redhat.com>
1553
1554         announce-gen: fail if the NEWS delta is empty
1555         If there's nothing noteworthy in NEWS, then either you forgot
1556         or you shouldn't be releasing.
1557         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1558
1559 2011-05-17  Pádraig Brady <P@draigBrady.com>
1560
1561         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1562         reserved symbols starting with double underscore from the check.
1563
1564 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1565
1566         intprops: add doc
1567         * doc/intprops.texi: New file, documenting intprops.
1568         * doc/gnulib.texi (Particular Modules): Include it.
1569
1570         verify: add doc to gnulib manual and fix example
1571         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1572         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1573         (Compile-time Assertions): Fix example so it can't overflow.
1574
1575 2011-05-17  Jim Meyering  <meyering@redhat.com>
1576
1577         warnings.m4: don't usurp save_CPPFLAGS variable name
1578         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1579
1580         doc: fix typo
1581         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1582
1583 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1584             Bruno Haible  <bruno@clisp.org>
1585
1586         doc: Tweak recent change.
1587         * README (Portability guidelines): Tweak new text.
1588         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1589         Interix 6.1.
1590
1591 2011-05-16  Eric Blake  <eblake@redhat.com>
1592
1593         inttypes: avoid autoconf warning
1594         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1595         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1596
1597 2011-05-16  Sam Steingold <sds@gnu.org>
1598         and Eric Blake  <eblake@redhat.com>
1599
1600         vc-list-files: accept multiple directory operands
1601         * build-aux/vc-list-files: Iterate over all remaining operands.
1602
1603 2011-05-16  Bruno Haible  <bruno@clisp.org>
1604
1605         Fix confusion regarding deprecated modules.
1606         * modules/calloc (Status, Notice): Mark module as deprecated, not
1607         obsolete.
1608         * modules/fnmatch-posix (Status, Notice): Likewise.
1609         * modules/getdate (Status, Notice): Likewise.
1610         * modules/getopt (Status, Notice): Likewise.
1611         * modules/malloc (Status, Notice): Likewise.
1612         * modules/pipe (Status, Notice): Likewise.
1613         * modules/realloc (Status, Notice): Likewise.
1614         * modules/rename-dest-slash (Status, Notice): Likewise.
1615         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1616         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1617         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1618         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1619         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1620
1621 2011-05-16  Bruno Haible  <bruno@clisp.org>
1622
1623         doc: List the target platforms.
1624         * doc/gnulib-intro.texi (Target Platforms): New section.
1625         * doc/gnulib.texi (Introduction): Update menu.
1626         * README (Portability guidelines): Refer to the new section. Update
1627         statement about oldest supported environment. Remove rationale why
1628         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1629         unportable C89 function.
1630         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1631         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1632
1633 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1634
1635         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1636
1637 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1638
1639         intprops-tests: new module
1640         * modules/intprops-tests, tests/test-intprops.c: New files.
1641
1642         intprops: add safe, portable integer overflow checking
1643         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1644         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1645         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1646         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1647         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1648         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1649         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1650         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1651         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1652         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1653         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1654
1655 2011-05-12  James Youngman  <jay@gnu.org>
1656
1657         Add a test for glibc's Bugzilla bug #12378.
1658         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1659         doesn't allow the literal matching of a lone "[" (which is
1660         required by POSIX).
1661         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1662
1663 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1664
1665         Sync glibc change fixing Bugzilla bug #12378.
1666         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1667         beginning and fall back to matching as normal character if the
1668         string ends before the matching ']' is found.  This is what POSIX
1669         requires.
1670
1671 2011-05-13  Eric Blake  <eblake@redhat.com>
1672
1673         getcwd-lgpl: relax test for FreeBSD
1674         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1675         issue.
1676         * tests/test-getcwd-lgpl.c (main): Relax test.
1677         Reported by Matthias Bolte.
1678
1679 2011-05-11  Eric Blake  <eblake@redhat.com>
1680
1681         test-fflush: silence compiler warning
1682         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1683
1684 2011-05-11  Bruno Haible  <bruno@clisp.org>
1685
1686         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1687         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1688         * modules/canonicalize (Depends-on): Add 'nocrash'.
1689         * modules/canonicalize-lgpl (Depends-on): Likewise.
1690         * doc/posix-functions/realpath.texi: Update platforms list.
1691         Reported by Ryan Schmidt <ryandesign@macports.org>.
1692
1693 2011-05-11  Bruno Haible  <bruno@clisp.org>
1694
1695         group-member: Declare function in <unistd.h>.
1696         * lib/unistd.in.h (group_member): New declaration.
1697         * lib/group-member.h: Remove file.
1698         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1699         * tests/test-unistd-c++.cc: Check signature of group_member.
1700         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1701         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1702         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1703         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1704         HAVE_GROUP_MEMBER.
1705         * modules/group-member (Files): Remove lib/group-member.h.
1706         (Depends-on): Add unistd. Specify conditions.
1707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1708         (Include): Change to <unistd.h>.
1709         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1710         HAVE_GROUP_MEMBER.
1711         * NEWS: Mention the change.
1712         * lib/euidaccess.c: Don't include group-member.h.
1713
1714 2011-05-11  Bruno Haible  <bruno@clisp.org>
1715
1716         group-member: Document module.
1717         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1718         module.
1719
1720 2011-05-11  Bruno Haible  <bruno@clisp.org>
1721
1722         fclose: Fix mistake earlier today.
1723         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1724
1725 2011-05-11  Eric Blake  <eblake@redhat.com>
1726
1727         fclose: preserve fflush errors
1728         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1729         Reported by Jim Meyering.
1730
1731         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1732         * build-aux/bootstrap (check_versions): When no specific version
1733         is required, merely check that the app produces an exit status
1734         that indicates its existence.
1735
1736         maint.mk: drop redundant check
1737         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1738         the same but better.
1739
1740 2011-05-11  Bruno Haible  <bruno@clisp.org>
1741
1742         fclose: Fix possible link error.
1743         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1744         unregister_shadow_fd. Improve comments.
1745         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1746         Eric Blake.
1747
1748 2011-05-11  Jim Meyering  <meyering@redhat.com>
1749
1750         maint.mk: improve "can not" detection and generalize rule name
1751         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1752         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1753         Use the same technique as in sc_prohibit_doubled_word, so that
1754         we recognize "can not" also when the words are separated by a newline.
1755         Suggested by Eric Blake.
1756         (perl_filename_lineno_text_): Define.  Factored out of...
1757         (prohibit_doubled_word_): ...here.  Use the new definition.
1758         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1759         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1760         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1761
1762 2011-05-10  Eric Blake  <eblake@redhat.com>
1763
1764         fclose: avoid double close race when possible
1765         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1766         all but WINDOWS_SOCKETS.
1767
1768 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1769
1770         openat: correct new comment
1771         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1772
1773 2011-05-10  Jim Meyering  <meyering@redhat.com>
1774
1775         openat: add comments
1776         * lib/openat-proc.c (openat_proc_name): Add comments,
1777         mostly from Eric Blake.
1778
1779 2011-05-09  Eric Blake  <eblake@redhat.com>
1780
1781         openat: reduce syscalls in first probe of /proc
1782         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1783         be a directory.  Simplify the probe for .. bugs.
1784         * modules/openat (Depends-on): Drop same-inode.
1785         Reported by Bastien ROUCARIES.
1786
1787 2011-05-09  Jim Meyering  <meyering@redhat.com>
1788
1789         maint.mk: change semantics/name of tight_scope variables
1790         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1791         Rename variables to align with semantics that make them more useful.
1792
1793         maint.mk: tweak new rule's name not to impinge
1794         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1795         (sc_tight_scope): Use new rule name rather than $@-0.
1796
1797         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1798         * top/maint.mk (sc_tight_scope): New rule.
1799         (sc_tight_scope-0): New rule, ifdef'd out.
1800         (_gl_TS_dir): Default.
1801         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1802         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1803
1804 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1805
1806         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1807         Haible <bruno@clisp.org>.
1808
1809 2011-05-08  Bruno Haible  <bruno@clisp.org>
1810
1811         Comments.
1812         * m4/isnanf.m4: Add comment.
1813         * m4/isnanl.m4: Likewise.
1814
1815 2011-05-08  Bruno Haible  <bruno@clisp.org>
1816
1817         glob: Remove obsolete macro.
1818         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1819
1820 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1821
1822         intprops: Sun C 5.11 supports __typeof__
1823         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1824         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1825         which is new.
1826         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1827
1828         intprops: switch to usual gnulib indenting and naming
1829         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1830         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1831
1832         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1833
1834 2011-05-08  Jim Meyering  <meyering@redhat.com>
1835
1836         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1837         * top/maint.mk (release-prep): Use make's --no-print-directory
1838         option when generating the announcement.  This eliminates the
1839         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1840         generated announcement template.
1841
1842 2011-05-08  Bruno Haible  <bruno@clisp.org>
1843
1844         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1845         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1846         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1847
1848 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1849
1850         ignore-value, verify: Omit include files from lib_SOURCES.
1851         * modules/ignore-value, modules/verify (Makefile.am):
1852         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1853         that leads Automake to duplicate use of am__objects_... variables
1854         in Makefile.in.  See
1855         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1856
1857 2011-05-07  Bruno Haible  <bruno@clisp.org>
1858
1859         fclose: Simplify autoconf macro.
1860         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1861         defined.
1862
1863 2011-05-07  Bruno Haible  <bruno@clisp.org>
1864
1865         canonicalize-lgpl: Fix autoconf macro ordering bug.
1866         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1867         gl_STDLIB_H_DEFAULTS.
1868
1869 2011-05-06  Eric Blake  <eblake@redhat.com>
1870
1871         maintainer-makefile: make sc_po_check easier to tune
1872         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1873         to probe for strings, such as an alternate location for gnulib.
1874
1875         fclose: guarantee behavior on seekable stdin
1876         * modules/fclose (Depends-on): Add fflush.
1877         * doc/posix-functions/fclose.texi (fclose): Document this.
1878         * tests/test-fclose.c (main): Make test for this unconditional.
1879
1880 2011-05-06  Bruno Haible  <bruno@clisp.org>
1881
1882         fflush, fpurge: Relicense under LGPLv2+.
1883         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1884         * modules/fpurge (License): Likewise.
1885         With permission from Eric Blake and Jim Meyering.
1886         Suggested by Eric Blake.
1887
1888 2011-05-06  Karl Berry  <karl@gnu.org>
1889
1890         * MODULES.html.sh (func_all_modules): remove exit.
1891
1892 2011-05-06  Jim Meyering  <meyering@redhat.com>
1893
1894         maint.mk: use info-gnu@ as the default only for a stable release
1895         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1896         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1897         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1899
1900 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         assert-h: new module, which supports C1X-style static_assert
1903         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1904         * lib/verify.h: Revamp so that this can be copied into assert.h,
1905         while retaining the ability to use it standalone as before.
1906         Rename private identifiers so as not to encroach on the
1907         standard C namespace, since this is now used by assert.h.
1908         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1909         the old verify_true.
1910         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1911         the old verify_true.  Use _GL_VERIFY_TYPE.
1912         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1913         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1914         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1915         defined when this file is copied into the replacement assert.h.
1916         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1917         and _Static_assert is not built in.
1918         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1919         defined, and use the new macros mentioned above.
1920         * doc/posix-headers/assert.texi: Document this.
1921
1922 2011-05-05  Bruno Haible  <bruno@clisp.org>
1923
1924         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1925         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1926         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1927         gl_REPLACE_FCLOSE here.
1928         * modules/fflush (Depends-on): Remove fclose.
1929         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1930         combination with module 'fclose'.
1931
1932 2011-05-05  Bruno Haible  <bruno@clisp.org>
1933
1934         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1935         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1936         gl_FUNC_FFLUSH.
1937         (gl_FUNC_FFLUSH): Use it.
1938         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1939         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1940         gl_REPLACE_FSEEKO here.
1941
1942 2011-05-05  Bruno Haible  <bruno@clisp.org>
1943
1944         tzset: Relicense under LGPL.
1945         * modules/tzset (License): Change to LGPL.
1946         No agreement needed; it's a no-op.
1947
1948         strtoimax, strtoumax: Relicense under LGPL.
1949         * modules/strtoimax (License): Change to LGPL.
1950         * modules/strtoumax (License): Likewise.
1951         With permission from Jim Meyering, Paul Eggert:
1952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1954
1955         getgroups: Relicense under LGPL.
1956         * modules/getgroups (License): Change to LGPL.
1957         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1961
1962         nanosleep: Relicense under LGPL.
1963         * modules/nanosleep (License): Change to LGPL.
1964         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1965         Haible:
1966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1970
1971         futimens: Relicense under LGPL.
1972         * modules/futimens (License): Change to LGPL.
1973         With permission from Eric Blake:
1974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1975
1976         fflush: Relicense under LGPL.
1977         * modules/fflush (License): Change to LGPL.
1978         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1982
1983         tmpfile: Relicense under LGPL.
1984         * modules/tmpfile (License): Change to LGPL.
1985         With permission from Ben Pfaff:
1986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1987
1988         isfinite: Relicense under LGPL.
1989         * modules/isfinite (License): Change to LGPL.
1990         With permission from Ben Pfaff, Bruno Haible:
1991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1993
1994         acosl..tanl: Relicense under LGPL.
1995         * modules/acosl (License): Change to LGPL.
1996         * modules/asinl (License): Likewise.
1997         * modules/atanl (License): Likewise.
1998         * modules/cosl (License): Likewise.
1999         * modules/expl (License): Likewise.
2000         * modules/logl (License): Likewise.
2001         * modules/sinl (License): Likewise.
2002         * modules/sqrtl (License): Likewise.
2003         * modules/tanl (License): Likewise.
2004         Source code originally from glibc and Paolo Bonzini. Agreements:
2005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2007
2008 2011-05-05  Bruno Haible  <bruno@clisp.org>
2009
2010         signal: Define sighandler_t.
2011         * lib/signal.in.h (sighandler_t): New type.
2012         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2013         whether sighandler_t is defined.
2014         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2015         * modules/signal (Depends-on): Add extensions.
2016         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2017         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2018         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2019
2020 2011-05-05  Eric Blake  <eblake@redhat.com>
2021
2022         maint: remove useless REPLACE_*_H macros
2023         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2024         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2025         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2026         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2027         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2028         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2029         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2030         * m4/btowc.m4: Update callers.
2031         * m4/dirfd.m4: Likewise.
2032         * m4/duplocale.m4: Likewise.
2033         * m4/fchdir.m4: Likewise.
2034         * m4/fdopendir.m4: Likewise.
2035         * m4/inet_ntop.m4: Likewise.
2036         * m4/inet_pton.m4: Likewise.
2037         * m4/ioctl.m4: Likewise.
2038         * m4/mbrlen.m4: Likewise.
2039         * m4/mbrtowc.m4: Likewise.
2040         * m4/mbsinit.m4: Likewise.
2041         * m4/mbsnrtowcs.m4: Likewise.
2042         * m4/mbsrtowcs.m4: Likewise.
2043         * m4/poll.m4: Likewise.
2044         * m4/setlocale.m4: Likewise.
2045         * m4/wcrtomb.m4: Likewise.
2046         * m4/wcsnrtombs.m4: Likewise.
2047         * m4/wcsrtombs.m4: Likewise.
2048         * m4/wctob.m4: Likewise.
2049         * m4/wcwidth.m4: Likewise.
2050         * modules/posix_spawn: Likewise.
2051         * modules/posix_spawn_file_actions_addclose: Likewise.
2052         * modules/posix_spawn_file_actions_adddup2: Likewise.
2053         * modules/posix_spawn_file_actions_addopen: Likewise.
2054         * modules/posix_spawn_file_actions_destroy: Likewise.
2055         * modules/posix_spawn_file_actions_init: Likewise.
2056         * modules/posix_spawnattr_destroy: Likewise.
2057         * modules/posix_spawnattr_getflags: Likewise.
2058         * modules/posix_spawnattr_getpgroup: Likewise.
2059         * modules/posix_spawnattr_getschedparam: Likewise.
2060         * modules/posix_spawnattr_getschedpolicy: Likewise.
2061         * modules/posix_spawnattr_getsigdefault: Likewise.
2062         * modules/posix_spawnattr_getsigmask: Likewise.
2063         * modules/posix_spawnattr_init: Likewise.
2064         * modules/posix_spawnattr_setflags: Likewise.
2065         * modules/posix_spawnattr_setpgroup: Likewise.
2066         * modules/posix_spawnattr_setschedparam: Likewise.
2067         * modules/posix_spawnattr_setschedpolicy: Likewise.
2068         * modules/posix_spawnattr_setsigdefault: Likewise.
2069         * modules/posix_spawnattr_setsigmask: Likewise.
2070         * modules/posix_spawnp: Likewise.
2071
2072 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2073
2074         Add option to do-release-commit-and-tag to specify branch.
2075         * build-aux/do-release-commit-and-tag: Add --branch.
2076
2077 2011-05-03  Bruno Haible  <bruno@clisp.org>
2078
2079         Avoid unnecessary compilation units, through conditional dependencies.
2080         * modules/accept (Depends-on): Add conditions to the dependencies.
2081         * modules/acosl (Depends-on): Likewise.
2082         * modules/argz (Depends-on): Likewise.
2083         * modules/asinl (Depends-on): Likewise.
2084         * modules/atanl (Depends-on): Likewise.
2085         * modules/atoll (Depends-on): Likewise.
2086         * modules/bind (Depends-on): Likewise.
2087         * modules/btowc (Depends-on): Likewise.
2088         * modules/canonicalize-lgpl (Depends-on): Likewise.
2089         * modules/ceil (Depends-on): Likewise.
2090         * modules/ceilf (Depends-on): Likewise.
2091         * modules/ceill (Depends-on): Likewise.
2092         * modules/chdir-long (Depends-on): Likewise.
2093         * modules/chown (Depends-on): Likewise.
2094         * modules/close (Depends-on): Likewise.
2095         * modules/connect (Depends-on): Likewise.
2096         * modules/cosl (Depends-on): Likewise.
2097         * modules/dirfd (Depends-on): Likewise.
2098         * modules/dprintf (Depends-on): Likewise.
2099         * modules/dprintf-posix (Depends-on): Likewise.
2100         * modules/error (Depends-on): Likewise.
2101         * modules/euidaccess (Depends-on): Likewise.
2102         * modules/expl (Depends-on): Likewise.
2103         * modules/faccessat (Depends-on): Likewise.
2104         * modules/fchdir (Depends-on): Likewise.
2105         * modules/fclose (Depends-on): Likewise.
2106         * modules/fcntl (Depends-on): Likewise.
2107         * modules/fdopendir (Depends-on): Likewise.
2108         * modules/fflush (Depends-on): Likewise.
2109         * modules/floor (Depends-on): Likewise.
2110         * modules/floorf (Depends-on): Likewise.
2111         * modules/floorl (Depends-on): Likewise.
2112         * modules/fnmatch (Depends-on): Likewise.
2113         * modules/fopen (Depends-on): Likewise.
2114         * modules/fprintf-posix (Depends-on): Likewise.
2115         * modules/frexp (Depends-on): Likewise.
2116         * modules/frexp-nolibm (Depends-on): Likewise.
2117         * modules/frexpl (Depends-on): Likewise.
2118         * modules/frexpl-nolibm (Depends-on): Likewise.
2119         * modules/fseek (Depends-on): Likewise.
2120         * modules/fsusage (Depends-on): Likewise.
2121         * modules/ftell (Depends-on): Likewise.
2122         * modules/ftello (Depends-on): Likewise.
2123         * modules/futimens (Depends-on): Likewise.
2124         * modules/getcwd (Depends-on): Likewise.
2125         * modules/getcwd-lgpl (Depends-on): Likewise.
2126         * modules/getdelim (Depends-on): Likewise.
2127         * modules/getdomainname (Depends-on): Likewise.
2128         * modules/getgroups (Depends-on): Likewise.
2129         * modules/gethostname (Depends-on): Likewise.
2130         * modules/getline (Depends-on): Likewise.
2131         * modules/getlogin_r (Depends-on): Likewise.
2132         * modules/getopt-posix (Depends-on): Likewise.
2133         * modules/getpeername (Depends-on): Likewise.
2134         * modules/getsockname (Depends-on): Likewise.
2135         * modules/getsockopt (Depends-on): Likewise.
2136         * modules/getsubopt (Depends-on): Likewise.
2137         * modules/getusershell (Depends-on): Likewise.
2138         * modules/glob (Depends-on): Likewise.
2139         * modules/grantpt (Depends-on): Likewise.
2140         * modules/iconv_open (Depends-on): Likewise.
2141         * modules/iconv_open-utf (Depends-on): Likewise.
2142         * modules/inet_ntop (Depends-on): Likewise.
2143         * modules/inet_pton (Depends-on): Likewise.
2144         * modules/ioctl (Depends-on): Likewise.
2145         * modules/isapipe (Depends-on): Likewise.
2146         * modules/isfinite (Depends-on): Likewise.
2147         * modules/isinf (Depends-on): Likewise.
2148         * modules/lchown (Depends-on): Likewise.
2149         * modules/ldexpl (Depends-on): Likewise.
2150         * modules/link (Depends-on): Likewise.
2151         * modules/linkat (Depends-on): Likewise.
2152         * modules/listen (Depends-on): Likewise.
2153         * modules/logl (Depends-on): Likewise.
2154         * modules/lstat (Depends-on): Likewise.
2155         * modules/mbrlen (Depends-on): Likewise.
2156         * modules/mbrtowc (Depends-on): Likewise.
2157         * modules/mbsinit (Depends-on): Likewise.
2158         * modules/mbsnrtowcs (Depends-on): Likewise.
2159         * modules/mbsrtowcs (Depends-on): Likewise.
2160         * modules/mbtowc (Depends-on): Likewise.
2161         * modules/memcmp (Depends-on): Likewise.
2162         * modules/mkdir (Depends-on): Likewise.
2163         * modules/mkdtemp (Depends-on): Likewise.
2164         * modules/mkfifo (Depends-on): Likewise.
2165         * modules/mkfifoat (Depends-on): Likewise.
2166         * modules/mknod (Depends-on): Likewise.
2167         * modules/mkostemp (Depends-on): Likewise.
2168         * modules/mkostemps (Depends-on): Likewise.
2169         * modules/mkstemp (Depends-on): Likewise.
2170         * modules/mkstemps (Depends-on): Likewise.
2171         * modules/mktime (Depends-on): Likewise.
2172         * modules/nanosleep (Depends-on): Likewise.
2173         * modules/open (Depends-on): Likewise.
2174         * modules/openat (Depends-on): Likewise.
2175         * modules/perror (Depends-on): Likewise.
2176         * modules/poll (Depends-on): Likewise.
2177         * modules/popen (Depends-on): Likewise.
2178         * modules/posix_spawn (Depends-on): Likewise.
2179         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2180         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2181         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2182         * modules/posix_spawnp (Depends-on): Likewise.
2183         * modules/pread (Depends-on): Likewise.
2184         * modules/printf-posix (Depends-on): Likewise.
2185         * modules/ptsname (Depends-on): Likewise.
2186         * modules/putenv (Depends-on): Likewise.
2187         * modules/pwrite (Depends-on): Likewise.
2188         * modules/readline (Depends-on): Likewise.
2189         * modules/readlink (Depends-on): Likewise.
2190         * modules/readlinkat (Depends-on): Likewise.
2191         * modules/recv (Depends-on): Likewise.
2192         * modules/recvfrom (Depends-on): Likewise.
2193         * modules/regex (Depends-on): Likewise.
2194         * modules/remove (Depends-on): Likewise.
2195         * modules/rename (Depends-on): Likewise.
2196         * modules/renameat (Depends-on): Likewise.
2197         * modules/rmdir (Depends-on): Likewise.
2198         * modules/round (Depends-on): Likewise.
2199         * modules/roundf (Depends-on): Likewise.
2200         * modules/roundl (Depends-on): Likewise.
2201         * modules/rpmatch (Depends-on): Likewise.
2202         * modules/select (Depends-on): Likewise.
2203         * modules/send (Depends-on): Likewise.
2204         * modules/sendto (Depends-on): Likewise.
2205         * modules/setenv (Depends-on): Likewise.
2206         * modules/setlocale (Depends-on): Likewise.
2207         * modules/setsockopt (Depends-on): Likewise.
2208         * modules/shutdown (Depends-on): Likewise.
2209         * modules/sigaction (Depends-on): Likewise.
2210         * modules/signbit (Depends-on): Likewise.
2211         * modules/sigprocmask (Depends-on): Likewise.
2212         * modules/sinl (Depends-on): Likewise.
2213         * modules/sleep (Depends-on): Likewise.
2214         * modules/snprintf (Depends-on): Likewise.
2215         * modules/snprintf-posix (Depends-on): Likewise.
2216         * modules/socket (Depends-on): Likewise.
2217         * modules/sprintf-posix (Depends-on): Likewise.
2218         * modules/sqrtl (Depends-on): Likewise.
2219         * modules/stat (Depends-on): Likewise.
2220         * modules/strchrnul (Depends-on): Likewise.
2221         * modules/strdup-posix (Depends-on): Likewise.
2222         * modules/strerror (Depends-on): Likewise.
2223         * modules/strerror_r-posix (Depends-on): Likewise.
2224         * modules/strndup (Depends-on): Likewise.
2225         * modules/strnlen (Depends-on): Likewise.
2226         * modules/strptime (Depends-on): Likewise.
2227         * modules/strsep (Depends-on): Likewise.
2228         * modules/strsignal (Depends-on): Likewise.
2229         * modules/strstr-simple (Depends-on): Likewise.
2230         * modules/strtod (Depends-on): Likewise.
2231         * modules/strtoimax (Depends-on): Likewise.
2232         * modules/strtok_r (Depends-on): Likewise.
2233         * modules/strtoumax (Depends-on): Likewise.
2234         * modules/symlink (Depends-on): Likewise.
2235         * modules/symlinkat (Depends-on): Likewise.
2236         * modules/tanl (Depends-on): Likewise.
2237         * modules/tcgetsid (Depends-on): Likewise.
2238         * modules/tmpfile (Depends-on): Likewise.
2239         * modules/trunc (Depends-on): Likewise.
2240         * modules/truncf (Depends-on): Likewise.
2241         * modules/truncl (Depends-on): Likewise.
2242         * modules/uname (Depends-on): Likewise.
2243         * modules/unlink (Depends-on): Likewise.
2244         * modules/unlockpt (Depends-on): Likewise.
2245         * modules/unsetenv (Depends-on): Likewise.
2246         * modules/usleep (Depends-on): Likewise.
2247         * modules/utimensat (Depends-on): Likewise.
2248         * modules/vasprintf (Depends-on): Likewise.
2249         * modules/vdprintf (Depends-on): Likewise.
2250         * modules/vdprintf-posix (Depends-on): Likewise.
2251         * modules/vfprintf-posix (Depends-on): Likewise.
2252         * modules/vprintf-posix (Depends-on): Likewise.
2253         * modules/vsnprintf (Depends-on): Likewise.
2254         * modules/vsnprintf-posix (Depends-on): Likewise.
2255         * modules/vsprintf-posix (Depends-on): Likewise.
2256         * modules/wcrtomb (Depends-on): Likewise.
2257         * modules/wcscasecmp (Depends-on): Likewise.
2258         * modules/wcscspn (Depends-on): Likewise.
2259         * modules/wcsdup (Depends-on): Likewise.
2260         * modules/wcsncasecmp (Depends-on): Likewise.
2261         * modules/wcsnrtombs (Depends-on): Likewise.
2262         * modules/wcspbrk (Depends-on): Likewise.
2263         * modules/wcsrtombs (Depends-on): Likewise.
2264         * modules/wcsspn (Depends-on): Likewise.
2265         * modules/wcsstr (Depends-on): Likewise.
2266         * modules/wcstok (Depends-on): Likewise.
2267         * modules/wcswidth (Depends-on): Likewise.
2268         * modules/wctob (Depends-on): Likewise.
2269         * modules/wctomb (Depends-on): Likewise.
2270         * modules/wctype (Depends-on): Likewise.
2271         * modules/wcwidth (Depends-on): Likewise.
2272         * modules/write (Depends-on): Likewise.
2273
2274 2011-05-03  Bruno Haible  <bruno@clisp.org>
2275
2276         Support for conditional dependencies.
2277         * doc/gnulib.texi (Module description): Document the syntax of
2278         conditional dependencies.
2279         * gnulib-tool: New option --conditional-dependencies.
2280         (func_usage): Document it.
2281         (cond_dependencies): New variable.
2282         (func_get_automake_snippet_conditional,
2283         func_get_automake_snippet_unconditional): New functions, extracted from
2284         func_get_automake_snippet.
2285         (func_get_automake_snippet): Use them.
2286         (sed_first_32_chars): New variable.
2287         (func_module_shellfunc_name): New function.
2288         (func_module_shellvar_name): New function.
2289         (func_module_conditional_name): New function.
2290         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2291         func_cond_module_condition): New functions.
2292         (func_modules_transitive_closure): Add support for conditional
2293         dependencies.
2294         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2295         conditional automake snippet in an automake conditional.
2296         (func_emit_autoconf_snippets): Emit shell functions that contain the
2297         code for conditional modules.
2298         (func_import, func_create_testdir): Update specification.
2299
2300 2011-05-03  Eric Blake  <eblake@redhat.com>
2301
2302         test-getaddrinfo: report error information
2303         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2304
2305 2011-05-03  Jim Meyering  <meyering@redhat.com>
2306
2307         bootstrap: avoid build failure when $GZIP is set
2308         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2309         program name.  If defined at all, it is supposed to list gzip options.
2310         Reported by Alan Curry in http://debbugs.gnu.org/8609
2311
2312 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2313
2314         readme-release: new module with release instructions
2315         * modules/readme-release: New module.
2316         * top/README-release: New file, from coreutils, grep, diffutils.
2317         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2318
2319 2011-05-02  Eric Blake  <eblake@redhat.com>
2320
2321         fflush: also replace fclose when fixing fflush
2322         * modules/fflush (Depends-on): Add fclose.
2323         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2324         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2325         memstreams with no backing fd.
2326         * doc/posix-functions/fclose.texi (fclose): Document the use of
2327         fflush module to fix the bug.
2328         * tests/test-fclose.c (main): Relax test when fclose is used in
2329         isolation.
2330
2331         fclose: add some tests
2332         * modules/fclose-tests: New test module.
2333         * tests/test-fclose.c: New file.
2334         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2335
2336         fclose: reduced dependencies
2337         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2338         simpler lseek.
2339         * lib/fclose.c (rpl_fclose): Likewise.
2340         Reported by Simon Josefsson.
2341
2342         exit: drop remaining clients
2343         * modules/argmatch (Depends-on): Replace exit with stdlib.
2344         * modules/copy-file (Depends-on): Likewise.
2345         * modules/execute (Depends-on): Likewise.
2346         * modules/exitfail (Depends-on): Likewise.
2347         * modules/obstack (Depends-on): Likewise.
2348         * modules/pagealign_alloc (Depends-on): Likewise.
2349         * modules/pipe-filter-gi (Depends-on): Likewise.
2350         * modules/pipe-filter-ii (Depends-on): Likewise.
2351         * modules/savewd (Depends-on): Likewise.
2352         * modules/spawn-pipe (Depends-on): Likewise.
2353         * modules/wait-process (Depends-on): Likewise.
2354         * modules/xsetenv (Depends-on): Likewise.
2355         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2356         * modules/git-merge-changelog (Depends-on): Likewise.
2357         * modules/long-options (Depends-on): Likewise.
2358         * modules/pt_chown (Depends-on): Likewise.
2359         * modules/sysexits (Depends-on): Likewise.
2360
2361         freading: relax license from LGPLv3+ to LGPLv2+
2362         * modules/freading (License): Relax LGPL version.
2363
2364 2011-05-02  Bruno Haible  <bruno@clisp.org>
2365
2366         fchdir: Remove unused dependencies.
2367         * modules/fchdir (Depends-on): Remove include_next.
2368
2369 2011-05-02  Bruno Haible  <bruno@clisp.org>
2370
2371         gnulib-tool: Refactor.
2372         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2373         from func_emit_autoconf_snippets.
2374         (func_emit_autoconf_snippets): Use it.
2375
2376 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2377
2378         * NEWS: Document removal of 'exit'.
2379         * modules/exit: Remove file.
2380
2381 2011-05-01  Bruno Haible  <bruno@clisp.org>
2382
2383         Update DEPENDENCIES.
2384         * DEPENDENCIES (gettext): Recommend the newest release.
2385         Reported by Simon Josefsson.
2386
2387 2011-05-01  Bruno Haible  <bruno@clisp.org>
2388
2389         gnulib-tool: Reduce code duplication.
2390         * gnulib-tool (func_emit_autoconf_snippets): New function.
2391         (func_import, func_create_testdir): Use it.
2392
2393 2011-04-30  Eric Blake  <eblake@redhat.com>
2394
2395         fclose: don't fail on non-seekable input stream
2396         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2397         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2398         since fflush is allowed to fail in that case.
2399
2400 2011-04-30  Bruno Haible  <bruno@clisp.org>
2401
2402         dup3: cleanup
2403         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2404
2405 2011-04-30  Bruno Haible  <bruno@clisp.org>
2406
2407         netdb: Make it work in C++ mode.
2408         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2409         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2410         module.
2411         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2412         gl_MODULE_INDICATOR_FOR_TESTS.
2413         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2414         * modules/netdb-c++-tests: New file.
2415         * tests/test-netdb-c++.cc: New file.
2416
2417 2011-04-30  Bruno Haible  <bruno@clisp.org>
2418
2419         New modules 'vfscanf', 'vscanf'.
2420         * modules/vfscanf: New file.
2421         * modules/vscanf: New file.
2422         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2423         here.
2424         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2425         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2426
2427 2011-04-30  Bruno Haible  <bruno@clisp.org>
2428
2429         passfd: Add comments.
2430         * lib/passfd.c: Add comments about platforms.
2431
2432 2011-04-30  Bruno Haible  <bruno@clisp.org>
2433
2434         sys_uio: Make <sys/uio.h> self-contained.
2435         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2436         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2437
2438 2011-04-30  Bruno Haible  <bruno@clisp.org>
2439
2440         sys_socket: Ensure 'struct iovec' definition.
2441         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2442         <sys/socket.h>.
2443         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2444
2445 2011-04-30  Bruno Haible  <bruno@clisp.org>
2446
2447         sys_uio: Protect definition of 'struct iovec'.
2448         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2449         it as a C struct.
2450
2451 2011-04-30  Bruno Haible  <bruno@clisp.org>
2452
2453         manywarnings: fix indentation
2454         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2455
2456 2011-04-30  Pádraig Brady <P@draigBrady.com>
2457
2458         manywarnings: add -Wno-missing-field-initializers if needed.
2459         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2460         option if it's needed to allow initialization with { 0, }
2461
2462 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2463
2464         announce-gen: cosmetic improvement
2465         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2466
2467 2011-04-29  Jim Meyering  <meyering@redhat.com>
2468
2469         vc-list-files: indent with spaces, not TABs
2470         * build-aux/vc-list-files: Convert leading TABs to spaces,
2471         to match the style of most other files in gnulib.
2472
2473         announce-gen: indent with spaces, not TABs
2474         * build-aux/announce-gen: Convert all TABs to spaces, to match
2475         the style of most other files in gnulib.
2476
2477 2011-04-29  Eric Blake  <eblake@redhat.com>
2478
2479         quotearg: avoid uninitialized variable use
2480         * lib/quotearg.c (quoting_options_from_style): Initialize
2481         remaining fields, and ensure that custom styles are only used via
2482         quoting_options rather than quoting_style.
2483
2484 2011-04-29  Jim Meyering  <meyering@redhat.com>
2485
2486         maint.mk: remove unused VC-tag variable
2487         * top/maint.mk (VC-tag): Remove unused variable.
2488
2489 2011-04-29  Bruno Haible  <bruno@clisp.org>
2490
2491         netdb: fix gai_strerror replacements
2492         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2493         * modules/netdb: Substitute it.
2494
2495 2011-04-29  Jim Meyering  <meyering@redhat.com>
2496
2497         test-getcwd.c: avoid new set-but-not-used warning
2498         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2499         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2500         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2501         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2502
2503         test-hash.c: avoid a new shadowing warning
2504         * tests/test-hash.c (main): Don't shadow "dup".
2505
2506 2011-04-28  Eric Blake  <eblake@redhat.com>
2507
2508         getaddrinfo: fix gai_strerror signature
2509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2510         and work around mingw with UNICODE defined.
2511         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2512         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2513         * modules/netdb (Makefile.am): Substitute it.
2514         * lib/netdb.in.h (gai_strerror): Declare replacement.
2515         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2516         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2517         the fix.
2518
2519         getsockopt: avoid compiler warning
2520         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2521         Reported by Matthias Bolte.
2522
2523         tests: drop unused link dependency
2524         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2525         * modules/dirent-safer-tests (Makefile.am): Likewise.
2526         * modules/fdopendir-tests (Makefile.am): Likewise.
2527         * modules/mkfifoat-tests (Makefile.am): Likewise.
2528         * modules/openat-safer-tests (Makefile.am): Likewise.
2529         * modules/openat-tests (Makefile.am): Likewise.
2530         * modules/readlinkat-tests (Makefile.am): Likewise.
2531         * modules/symlinkat-tests (Makefile.am): Likewise.
2532         * modules/linkat-tests (Makefile.am): Likewise.
2533         (Depends-on): Switch to filenamecat-lgpl.
2534         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2535         LIBINTL.
2536         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2537         * tests/test-linkat.c (main): Don't require xalloc.
2538
2539         hash, mgetgroups: drop xalloc dependency
2540         * lib/hash.c (includes): Adjust includes.
2541         * lib/mgetgroups.c (includes): Likewise.
2542         (xgetgroups): Move...
2543         * lib/xgetgroups.c: ...to new file.
2544         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2545         * modules/xgetgroups: New file, split from...
2546         * modules/mgetgroups: ...here.
2547         (Depends-on): Add xalloc-oversized.
2548         * modules/hash (Depends-on): Likewise.
2549         * modules/hash-tests (Depends-on): Drop xalloc.
2550         (test_hash_LDADD): Drop unused library.
2551         * tests/test-hash.c (main): Break xalloc dependency.
2552         (includes): Drop unused include.
2553
2554         xalloc-oversized: new module
2555         * modules/xalloc-oversized: New module.
2556         * modules/xalloc (Depends-on): Add it.
2557         * lib/xalloc.h (xalloc_oversized): Move...
2558         * lib/xalloc-oversized.h: ...into new file.
2559
2560         utimecmp: drop dependency on xmalloc
2561         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2562         due to memory pressure.
2563         * modules/utimecmp (Depends-on): Drop xalloc.
2564
2565 2011-04-27  Eric Blake  <eblake@redhat.com>
2566
2567         getcwd: fix mingw bugs
2568         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2569         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2570         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2571
2572 2011-04-27  Bruno Haible  <bruno@clisp.org>
2573
2574         mkstemps: Ensure declaration on MacOS X 10.5.
2575         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2576         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2577         MacOS X.
2578
2579 2011-04-27  Bruno Haible  <bruno@clisp.org>
2580
2581         mkstemp: More documentation.
2582         * doc/posix-functions/mkstemp.texi: Document header file problem on
2583         MacOS X.
2584
2585 2011-04-27  Bruno Haible  <bruno@clisp.org>
2586
2587         mkstemp: Tweak configure message when cross-compiling.
2588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2589         result as a guess.
2590
2591 2011-04-27  Bruno Haible  <bruno@clisp.org>
2592
2593         clean-temp: Clarify what it does.
2594         * lib/clean-temp.h: Add more comments.
2595         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2596         module.
2597         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2598         * doc/glibc-functions/mkstemps.texi: Likewise.
2599         * doc/glibc-functions/mkostemps.texi: Likewise.
2600
2601 2011-04-27  Eric Blake  <eblake@redhat.com>
2602
2603         fchdir: avoid extra chdir and fix test
2604         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2605         getcwd-lgpl.
2606         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2607         have to be canonical.
2608         (canonicalize_file_name): Drop unused macro.
2609         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2610
2611         filenamecat-lgpl: fix licence
2612         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2613         when it was first created.
2614
2615         linkat, renameat: add missing dependency
2616         * modules/linkat (Depends-on): Require getcwd-lgpl.
2617         * modules/renameat (Depends-on): Likewise.
2618
2619         tests: reduce dependencies
2620         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2621         * tests/test-renameat.c (main): Likewise.
2622         * modules/linkat-tests (Depends-on): Relax dependency.
2623         * modules/renameat-tests (Depends-on): Likewise.
2624         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2625         dependency explicit.
2626
2627         save-cwd: reduce default dependency
2628         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2629         * lib/save-cwd.c: Update comments.
2630         * NEWS: Document the semantic change.
2631
2632         getcwd: enhance tests
2633         * tests/test-getcwd-lgpl.c: New file, taken from...
2634         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2635         repeat long path stress tests from m4 probe.
2636         * modules/getcwd-lgpl-tests: New module.
2637         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2638         * m4/getcwd-abort-bug.m4: Update comment.
2639         * m4/getcwd-path-max.m4: Likewise.
2640
2641         getcwd-lgpl: new module
2642         * modules/getcwd-lgpl: New module.
2643         * lib/getcwd-lgpl.c: New file.
2644         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2645         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2646         * modules/getcwd (configure.ac): Set C witness.
2647         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2648
2649         getcwd: tweak comments
2650         * m4/getcwd-abort-bug.m4: Fix comments.
2651         * m4/getcwd-path-max.m4: Likewise.
2652         * m4/getcwd.m4: Likewise.
2653
2654 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2655         and Eric Blake  <eblake@redhat.com>
2656
2657         mkstemp: replace if system version uses wrong permissions
2658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2659         read/write mode bits set in file created by mkstemp.
2660         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2661
2662 2011-04-27  Eric Blake  <eblake@redhat.com>
2663
2664         passfd: avoid compiler warning
2665         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2666         Reported by Laine Stump.
2667
2668 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2669
2670         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2671         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2672
2673 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2674         and Eric Blake  <eblake@redhat.com>
2675
2676         mkstemp: mention clean-temp module
2677         * lib/mkstemp.c: Add comment.
2678         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2679
2680 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2681
2682         inttypes: also provide default values for 32-bit tests
2683         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2684         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2685
2686 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         strtoumax: remove dependency on strtoimax
2689         This is like the strtoull change of yesterday.
2690         * modules/strtoumax (Files): Add lib/strtoimax.c.
2691         (Depends-on): Remove strtoimax and add verify.
2692
2693         inttypes-incomplete: new module
2694         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2695         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2696         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2697         of gl_INTTYPES_H.
2698         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2699         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2700         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2701         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2702         * modules/strtoumax, modules/xstrtol (Depends-on):
2703         Depend on inttypes-incomplete, not inttypes.
2704         * modules/inttypes-incomplete: New module, containing the contents
2705         of the old modules/inttypes module, except that the Files: section
2706         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2707         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2708         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2709         (Depends-on): Depend only on inttypes-incomplete.
2710         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2711
2712         inttypes: omit now-redundant strtoimax and strtoumax work
2713         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2714         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2715
2716         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2717         This supports apps that need pointers to strtoimax and strtoumax,
2718         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2719         nonexistent functions.  See
2720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2721         et seq.
2722         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2723         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2724         a macro.
2725         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2726
2727 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2728
2729         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2730
2731 2011-04-25  Bruno Haible  <bruno@clisp.org>
2732
2733         strtol, strtoul: Mark modules as obsolete.
2734         * modules/strtol (Status, Notice): New sections.
2735         * modules/strtoul (Status, Notice): New sections.
2736
2737 2011-04-25  Bruno Haible  <bruno@clisp.org>
2738
2739         strtod: Remove check for strtod, unless supporting old platforms.
2740         * modules/strtod-obsolete: New file.
2741         * m4/strtod-obsolete.m4: New file.
2742         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2743         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2744         * modules/strtod (Depends-on): Add strtod-obsolete.
2745         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2746
2747 2011-04-25  Bruno Haible  <bruno@clisp.org>
2748
2749         strcase: Make module obsolete.
2750         * modules/strcase (Status, Notice): New sections.
2751
2752 2011-04-25  Bruno Haible  <bruno@clisp.org>
2753
2754         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2755         * modules/dup2-obsolete: New file.
2756         * m4/dup2-obsolete.m4: New file.
2757         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2758         gl_FUNC_DUP2_OBSOLETE is not also defined.
2759         * modules/dup2 (Depends-on): Add dup2-obsolete.
2760         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2761
2762 2011-04-25  Bruno Haible  <bruno@clisp.org>
2763
2764         strnlen: Avoid memchr related link error on old obsolete platforms.
2765         * modules/memchr-obsolete: New file.
2766         * m4/memchr-obsolete.m4: New file.
2767         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2768         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2769         * modules/memchr (Depends-on): Add memchr-obsolete.
2770         * modules/strnlen (Depends-on): Likewise.
2771         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2772
2773 2011-04-25  Jim Meyering  <meyering@redhat.com>
2774
2775         maint.mk: makefile_at_at_check extend and clean up
2776         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2777         in addition to */Makefile.am.
2778         Exempt legitimate uses of @VAR@ notation, e.g.,
2779         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2780         Remove obsolete coreutils-specific comment.
2781         Prompted by discussion here:
2782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2783
2784 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         strtoul: remove dependency on strtol
2787         This is so that 'configure' need not check for strtol merely because
2788         the application needs strtoul.
2789         * modules/strtoul (Files): Add lib/strtol.c.
2790         (Depends-on): Remove strtol.
2791
2792         strtoull: remove dependency on strtoul
2793         This is like the strtoll change.
2794         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2795         (Depends-on): Remove strtoul.
2796
2797         strtoll: remove dependency on strtol
2798         This is so that 'configure' need not check for strtol merely because
2799         the application needs strtoll.
2800         * modules/strtoll (Files): Add lib/strtol.c.
2801         (Depends-on): Remove strtol.
2802
2803 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2804
2805         inttypes: Move some configure check to module 'imaxdiv'.
2806         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2807         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2809
2810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2811
2812         inttypes: Move some configure check to module 'imaxabs'.
2813         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2814         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2815         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2816
2817 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2818
2819         inttypes: Remove configure tests that are not needed since 2009-12-31.
2820         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2821         gl_cv_header_working_inttypes_h.
2822
2823 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2824
2825         * modules/strnlen (Depends-on): Remove memchr.
2826         The strnlen implementation doesn't need the memchr module's fixes; see
2827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2828
2829         strtol: remove dependency on wchar
2830         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2831         * modules/strtol (Depends-on): Remove wchar.
2832
2833 2011-04-21  Eric Blake  <eblake@redhat.com>
2834
2835         passfd: fix test regression on Linux
2836         * modules/passfd-tests (configure.ac): Correct socketpair check.
2837
2838         passfd: speed up configure and drop unused code
2839         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2840         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2841         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2842         Instead of probing at configure for unix_scm_rights_bsd44_way,
2843         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2844         check to a struct member probe.
2845         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2846         (sendfd, recvfd): Update preprocessor checks.
2847         * modules/passfd (Files): Reflect rename, and drop unused file.
2848         (Depends-on): Drop unused dependency.
2849
2850         passfd: allow compilation on mingw
2851         * modules/sys_socket (Depends-on): Add sys_uio.
2852         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2853         iovec and a minimal struct msghdr.
2854         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2855         * tests/test-sys_socket.c (main): Enhance test.
2856         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2857         guaranteed to provide what we need.
2858         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2859         * modules/passfd-tests (Depends-on): Add sys_wait.
2860         * tests/test-passfd.c (main): Skip test on mingw, for now.
2861         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2862         partial 'struct msghdr' implementation.
2863
2864         sys_uio: new module
2865         * modules/sys_uio: New module.
2866         * modules/sys_uio-tests: Likewise.
2867         * lib/sys_uio.in.h: New file.
2868         * m4/sys_uio_h.m4: Likewise.
2869         * tests/test-sys_uio.c: Likewise.
2870         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2871         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2872
2873 2011-04-20  Jim Meyering  <meyering@redhat.com>
2874
2875         useless-if-before-free: avoid false-positive
2876         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2877         disjunct so that it too requires a terminating ";".  Without that,
2878         this script would identify as useless one statement from gcc that
2879         was not:
2880           if (aligned_ptr)
2881             free (((void **) aligned_ptr) [-1]);
2882
2883 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2884
2885         doc: update users.txt.
2886         * users.txt: Add barcode.
2887
2888 2011-04-19  Bruno Haible  <bruno@clisp.org>
2889
2890         ioctl: Remove link dependency on native Windows.
2891         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2892         (gl_close_fn, gl_ioctl_fn): New types.
2893         (struct fd_hook): Renamed from struct close_hook. Change type of
2894         private_close_fn field. Add private_ioctl_fn field.
2895         (close_hook_fn): Add parameter for primary close method.
2896         (execute_close_hooks, execute_all_close_hooks): Likewise.
2897         (ioctl_hook_fn): New type.
2898         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2899         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2900         argument.
2901         (unregister_fd_hook): Renamed from unregister_close_hook.
2902         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2903         Don't include <unistd.h>.
2904         (close): Remove undef.
2905         (anchor): Update.
2906         (execute_close_hooks): Add argument for primary close method.
2907         (execute_all_close_hooks): Likewise.
2908         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2909         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2910         argument. Allow each argument to be NULL.
2911         (unregister_fd_hook): Renamed from unregister_close_hook.
2912         * lib/close.c (rpl_close): Pass 'close' function pointer to
2913         execute_all_close_hooks.
2914         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2915         (primary_ioctl): New function.
2916         (ioctl): Don't call ioctlsocket here. Instead, call
2917         execute_all_ioctl_hooks.
2918         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2919         close method.
2920         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2921         (fd_sockets_hook): Renamed from close_sockets_hook.
2922         (gl_sockets_startup, gl_sockets_cleanup): Update.
2923         * modules/fd-hook: Renamed from modules/close-hook. Update.
2924         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2925         * modules/sockets (Depends-on): Likewise.
2926         * modules/ioctl (Depends-on): Add fd-hook.
2927         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2928         GNULIB_SOCKET.
2929
2930 2011-04-19  Bruno Haible  <bruno@clisp.org>
2931
2932         Move the support of O_NONBLOCK in open() to the 'open' module.
2933         * modules/nonblocking (Depends-on): Remove 'open'.
2934         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2935         gl_cv_have_open_O_NONBLOCK.
2936         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2937         O_NONBLOCK support.
2938         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2939
2940 2011-04-17  Bruno Haible  <bruno@clisp.org>
2941
2942         pipe2: Simplify code.
2943         * lib/pipe2.c (pipe2): Reduce code duplication.
2944
2945 2011-04-17  Bruno Haible  <bruno@clisp.org>
2946
2947         nonblocking: Add comment.
2948         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2949
2950 2011-04-17  Bruno Haible  <bruno@clisp.org>
2951
2952         nonblocking: Add tests for sockets.
2953         * tests/test-nonblocking-socket.sh: New file.
2954         * tests/test-nonblocking-socket-main.c: New file.
2955         * tests/test-nonblocking-socket-child.c: New file.
2956         * tests/test-nonblocking-socket.h: New file.
2957         * tests/socket-server.h: New file.
2958         * tests/socket-client.h: New file.
2959         * modules/nonblocking-socket-tests: New file.
2960         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2961
2962 2011-04-17  Bruno Haible  <bruno@clisp.org>
2963
2964         nonblocking: Add tests for pipes.
2965         * tests/test-nonblocking-pipe.sh: New file.
2966         * tests/test-nonblocking-pipe-main.c: New file.
2967         * tests/test-nonblocking-pipe-child.c: New file.
2968         * tests/test-nonblocking-pipe.h: New file.
2969         * tests/test-nonblocking-writer.h: New file.
2970         * tests/test-nonblocking-reader.h: New file.
2971         * tests/test-nonblocking-misc.h: New file.
2972         * modules/nonblocking-pipe-tests: New file.
2973         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2974
2975 2011-04-16  Bruno Haible  <bruno@clisp.org>
2976
2977         gettext: Clarify the needed programmer actions.
2978         * modules/gettext (Notice): New field.
2979         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2980
2981 2011-04-16  Bruno Haible  <bruno@clisp.org>
2982
2983         strchrnul: Tweak last commit.
2984         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2985         bug.
2986         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2987         as in _GL_FUNCDECL_SYS.
2988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2989         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2990
2991 2011-04-15  Eric Blake  <eblake@redhat.com>
2992
2993         strchrnul: work around cygwin bug
2994         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2995         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2997         * modules/string (Makefile.am): Substitute it.
2998         * lib/string.in.h (strchrnul): Use it.
2999
3000 2011-04-15  Bruno Haible  <bruno@clisp.org>
3001
3002         Don't require lib/stdio-write.c when only module 'stdio' is used.
3003         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3004         invocation.
3005         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3006
3007 2011-04-14  Bruno Haible  <bruno@clisp.org>
3008
3009         Support non-blocking pipe I/O in read() on native Windows.
3010         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3011         (read): New declaration.
3012         * lib/read.c: New file.
3013         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3014         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3015         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3016         vscanf): New declarations.
3017         * lib/stdio-read.c: New file.
3018         * m4/read.m4: New file.
3019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3020         REPLACE_READ.
3021         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3022         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3023         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3024         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3025         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3026         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3027         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3028         * modules/read: New file.
3029         * modules/nonblocking (Files): Add lib/stdio-read.c.
3030         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3031         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3032         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3033         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3034         * modules/pread (Depends-on): Add read.
3035         * modules/safe-read (Depends-on): Likewise.
3036         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3037         gets, scanf, vfscanf, vscanf): Verify signatures.
3038         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3039         problem with non-blocking pipes.
3040         * doc/posix-functions/fgetc.texi: Likewise.
3041         * doc/posix-functions/fgets.texi: Likewise.
3042         * doc/posix-functions/fread.texi: Likewise.
3043         * doc/posix-functions/fscanf.texi: Likewise.
3044         * doc/posix-functions/getc.texi: Likewise.
3045         * doc/posix-functions/getchar.texi: Likewise.
3046         * doc/posix-functions/gets.texi: Likewise.
3047         * doc/posix-functions/scanf.texi: Likewise.
3048         * doc/posix-functions/vfscanf.texi: Likewise.
3049         * doc/posix-functions/vscanf.texi: Likewise.
3050
3051 2011-04-14  Bruno Haible  <bruno@clisp.org>
3052
3053         Support non-blocking pipe I/O in write() on native Windows.
3054         * lib/write.c (rpl_write): Split a write request that failed merely
3055         because the byte count was larger than the pipe buffer's size.
3056         * doc/posix-functions/write.texi: Mention the problem with large byte
3057         counts.
3058
3059 2011-04-14  Bruno Haible  <bruno@clisp.org>
3060
3061         wchar: Ensure that wchar_t gets defined on uClibc.
3062         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3063         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3064
3065 2011-04-13  Bruno Haible  <bruno@clisp.org>
3066
3067         safe-write, full-read: Avoid unnecessary compilation units.
3068         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3069         (Depends-on): Remove safe-read. Add ssize_t.
3070         * modules/full-read (Files): Add lib/full-write.c.
3071         (Depends-on): Add full-write.
3072
3073 2011-04-13  Bruno Haible  <bruno@clisp.org>
3074
3075         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3076         * modules/pwrite (Depends-on): Add 'write'.
3077
3078 2011-04-13  Bruno Haible  <bruno@clisp.org>
3079
3080         Support non-blocking pipe I/O in write() on native Windows.
3081         * lib/unistd.in.h (write): Enable replacement also if
3082         GNULIB_UNISTD_H_NONBLOCKING is 1.
3083         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3084         (rpl_write): When failing to write on a non-blocking pipe, change
3085         errno from ENOSPC to EAGAIN.
3086         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3087         putchar, puts, vfprintf, vprintf): Enable replacement also if
3088         GNULIB_STDIO_H_NONBLOCKING is 1.
3089         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3090         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3091         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3092         CALL_WITH_SIGPIPE_EMULATION.
3093         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3094         * m4/nonblocking.m4: New file.
3095         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3096         for non-blocking I/O support.
3097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3098         GNULIB_UNISTD_H_NONBLOCKING.
3099         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3100         required for non-blocking I/O support.
3101         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3102         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3103         lib/stdio-write.c, m4/asm-underscore.m4.
3104         (Depends-on): Add stdio, unistd.
3105         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3106         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3107         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3108         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3109         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3110         problem with non-blocking pipes.
3111         * doc/posix-functions/fputc.texi: Likewise.
3112         * doc/posix-functions/fputs.texi: Likewise.
3113         * doc/posix-functions/fwrite.texi: Likewise.
3114         * doc/posix-functions/printf.texi: Likewise.
3115         * doc/posix-functions/putc.texi: Likewise.
3116         * doc/posix-functions/putchar.texi: Likewise.
3117         * doc/posix-functions/puts.texi: Likewise.
3118         * doc/posix-functions/vfprintf.texi: Likewise.
3119         * doc/posix-functions/vprintf.texi: Likewise.
3120         * doc/posix-functions/write.texi: Likewise.
3121
3122 2011-04-10  Jim Meyering  <meyering@redhat.com>
3123
3124         maint.mk: prohibit doubled words
3125         Detect them also when they're separated by a newline.
3126         There are 3 ways to customize it:
3127           - disable the test on a per file basis, as usual with rules using
3128             $(VC_LIST_EXCEPT)
3129           - replace the default doubled-word-selecting regexp (affects all files)
3130           - ignore a particular file-vs-doubled-word match
3131         I nearly used that last one to ignore the "is is" match in
3132         coreutils' NEWS file, since the text was "ls -is is ..."
3133         To do that, I would have added this line to cfg.mk:
3134           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3135         but it would have ignored any "is is" match in NEWS.
3136         Low probability, but still...
3137         Instead, I changed the text, slightly:
3138           -  ls -is is now consistent with ls -lis in ignoring values returned
3139           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3140         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3141         (prohibit_doubled_word_): Define.
3142         (sc_prohibit_doubled_word): New rule.
3143         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3144
3145 2011-04-10  Jim Meyering  <meyering@redhat.com>
3146
3147         maint: fix doubled-word typo in comment
3148         * m4/gethostname.m4: s/is is/it is/
3149         * m4/getdomainname.m4: Likewise.
3150
3151 2011-04-10  Jim Meyering  <meyering@redhat.com>
3152
3153         maint: remove doubled word: s/it it/it/
3154         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3155
3156 2011-04-10  Jim Meyering  <meyering@redhat.com>
3157
3158         maint.mk: remove useless semicolon and backslash
3159         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3160         semicolon and backslash.
3161
3162 2011-04-10  Bruno Haible  <bruno@clisp.org>
3163
3164         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3165         * modules/stdint-tests (Depends-on): Add wchar.
3166
3167 2011-04-10  Jim Meyering  <meyering@redhat.com>
3168
3169         maint: remove doubled words in comments, e.g., s/a a/a/
3170         * lib/strptime.c (day_of_the_week): s/the the/the/
3171         * tests/test-chown.h (test_chown): s/a a/a/
3172
3173         test-chown.h: correct a cast
3174         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3175         when the destination is a stat.st_gid.
3176
3177 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3178
3179         getaddrinfo: Fix test for sa_len member.
3180         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3181         include <sys/types.h> before <sys/socket.h>.
3182
3183 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3184
3185         maint: change "can not" to "cannot"
3186         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3187         boundaries.
3188
3189 2011-04-09  Jim Meyering  <meyering@redhat.com>
3190
3191         maint: change "a a" to "a"
3192         * tests/test-lchown.h (test_lchown): s/a a/a/
3193
3194         maint.mk: prohibit \<the the\>
3195         * top/maint.mk (sc_prohibit_the_the): New rule.
3196
3197         maint: fix "the the" in comment
3198         * lib/count-one-bits.h: s/the the/the/
3199
3200         maint: change "can not" to "cannot"
3201         But do not change the occurrences in maintain.texi or in
3202         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3203         * doc/gnulib-tool.texi: s/can not/cannot/
3204         * doc/posix-functions/accept.texi (accept): Likewise.
3205         * doc/posix-functions/socket.texi (socket): Likewise.
3206         * lib/mbrtowc.c: Likewise.
3207
3208         maint.mk: prohibit use of "can not"
3209         * top/maint.mk (sc_prohibit_can_not): New rule.
3210         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3211
3212 2011-04-09  Bruno Haible  <bruno@clisp.org>
3213
3214         careadlinkat: Guard against misuse of careadlinkatcwd.
3215         * lib/careadlinkat.c: Include <stdlib.h>.
3216         (careadlinkatcwd): Check that the fd argument is as expected.
3217
3218 2011-04-09  Bruno Haible  <bruno@clisp.org>
3219
3220         careadlinkat: Use common coding style.
3221         * lib/careadlinkat.c: Move gnulib includes after system includes.
3222
3223 2011-04-09  Bruno Haible  <bruno@clisp.org>
3224
3225         careadlinkat: Clarify specification.
3226         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3227         (careadlinkatcwd): Add comment.
3228         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3229
3230 2011-04-09  Bruno Haible  <bruno@clisp.org>
3231
3232         areadlinkat: Avoid link error on many platforms.
3233         * modules/areadlinkat (Depends-on): Add areadlink.
3234
3235 2011-04-09  Bruno Haible  <bruno@clisp.org>
3236
3237         allocator, careadlinkat: Fix double-inclusion guard.
3238         * lib/allocator.h: Fix double-inclusion guard.
3239         * lib/careadlinkat.h: Likewise.
3240
3241 2011-04-09  Bruno Haible  <bruno@clisp.org>
3242
3243         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3244         * lib/relocwrapper.c: Update dependencies hierarchy.
3245         * build-aux/install-reloc: Update list of files to be compiled.
3246         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3247         lib/allocator.[hc].
3248
3249 2011-04-08  Eric Blake  <eblake@redhat.com>
3250
3251         strftime: silence gnulib-tool warning
3252         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3253
3254 2011-04-08  Bruno Haible  <bruno@clisp.org>
3255
3256         verify: Fix syntax error with GCC 4.6 in C++ mode.
3257         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3258         (HAVE_STATIC_ASSERT): New macro.
3259         (verify_true, verify): Use 'static_assert' if it is supported and
3260         '_Static_assert' is not supported.
3261
3262 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         allocator: New module.
3265         * modules/allocator, lib/allocator.c: New files.
3266         * lib/allocator.h (stdlib_allocator): New decl.
3267         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3268         Remove.  Do not include <stdlib.h>.
3269         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3270         * modules/careadlinkat (Files): Remove lib/allocator.h.
3271         (Depends-on): Add allocator.
3272
3273         stdlib: let modules use system malloc, realloc
3274         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3275         if !_GL_USE_STDLIB_ALLOC.
3276         (malloc, realloc): Limit this change to a smaller scope.
3277
3278         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3279         (malloc, realloc): Don't #undef; no longer needed.
3280         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3281         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3282         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3283         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3284         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3285         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3286         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3287         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3288
3289         careadlinkat: rename members to avoid problem
3290         * lib/allocator.h (struct allocator): Rename members from
3291         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3292         and realloc are #define'd.  Reported by Eric Blake in
3293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3294         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3295
3296 2011-04-08  Eric Blake  <eblake@redhat.com>
3297
3298         nonblocking: reduce dependency
3299         * tests/test-nonblocking.c: Only test sockets when in use.
3300         * modules/nonblocking-tests (Depends-on): Drop socket.
3301         (Makefile.am): Link even if sockets are not present.
3302         * modules/pipe2-tests (Makefile.am): Likewise.
3303         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3304
3305         pipe2: fix O_NONBLOCK support on mingw
3306         * modules/pipe2 (Depends-on): Add nonblocking.
3307         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3308         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3309         * tests/test-nonblocking.c (main): Likewise.
3310         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3311
3312         fcntl-h: fix O_ACCMODE on cygwin
3313         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3314         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3315
3316         pipe-filter: drop O_NONBLOCK workarounds
3317         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3318         * modules/pipe-filter-ii (Depends-on): Likewise.
3319         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3320
3321         nonblocking: provide O_NONBLOCK for mingw
3322         * modules/nonblocking (Depends-on): Add open.
3323         (configure.ac): Set new witness macro.
3324         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3325         * modules/fcntl-h (Makefile.am): Substitute it.
3326         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3327         nonblocking module is in use.
3328         * lib/nonblocking.c: Adjust portability test.
3329         * lib/open.c (open): Don't let native open see gnulib flag.
3330         * tests/test-fcntl-h.c (main): Enhance test.
3331         * tests/test-open.h (test_open): Likewise.
3332         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3333
3334         careadlinkat: fix compilation error on mingw
3335         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3336         within struct allocator.
3337
3338 2011-04-06  Eric Blake  <eblake@redhat.com>
3339
3340         binary-io: relicense under LGPLv2+
3341         * modules/binary-io (License): Relax to LGPLv2+.
3342         Requested for libvirt, and required by pipe2.
3343
3344 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3345
3346         verify: use _Static_assert if available
3347         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3348         (verify_true, verify): Use it if available.  This generates better
3349         diagnostics with GCC 4.6.0 and later.
3350
3351 2011-04-05  Bruno Haible  <bruno@clisp.org>
3352
3353         Remove leftover generated .h files after config.status changed.
3354
3355         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3356         GL_GENERATE_ALLOCA_H.
3357         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3358         GL_GENERATE_ALLOCA_H evaluates to false.
3359
3360         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3361         GL_GENERATE_ARGZ_H.
3362         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3363         evaluates to false.
3364
3365         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3366         GL_GENERATE_BYTESWAP_H.
3367         * modules/byteswap (Makefile.am): Remove byteswap.h if
3368         GL_GENERATE_BYTESWAP_H evaluates to false.
3369
3370         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3371         GL_GENERATE_ERRNO_H.
3372         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3373         evaluates to false.
3374
3375         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3376         GL_GENERATE_FLOAT_H.
3377         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3378         evaluates to false.
3379
3380         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3381         GL_GENERATE_FNMATCH_H.
3382         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3383         GL_GENERATE_FNMATCH_H evaluates to false.
3384
3385         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3386         GL_GENERATE_GLOB_H.
3387         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3388         evaluates to false.
3389
3390         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3391         automake conditional GL_GENERATE_ICONV_H.
3392         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3393         evaluates to false.
3394
3395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3396         GL_GENERATE_NETINET_IN_H.
3397         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3398         GL_GENERATE_NETINET_IN_H evaluates to false.
3399
3400         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3401         conditional GL_GENERATE_PTHREAD_H.
3402         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3403         * modules/pthread (Makefile.am): Remove pthread.h if
3404         GL_GENERATE_PTHREAD_H evaluates to false.
3405
3406         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3407         GL_GENERATE_SCHED_H.
3408         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3409         evaluates to false.
3410
3411         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3412         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3413         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3414         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3415
3416         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3417         GL_GENERATE_STDARG_H.
3418         * modules/stdarg (Makefile.am): Remove stdarg.h if
3419         GL_GENERATE_STDARG_H evaluates to false.
3420
3421         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3422         GL_GENERATE_STDBOOL_H.
3423         * modules/stdbool (Makefile.am): Remove stdbool.h if
3424         GL_GENERATE_STDBOOL_H evaluates to false.
3425
3426         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3427         conditional GL_GENERATE_STDDEF_H.
3428         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3429         * modules/stddef (Makefile.am): Remove stddef.h if
3430         GL_GENERATE_STDDEF_H evaluates to false.
3431
3432         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3433         GL_GENERATE_STDINT_H.
3434         * modules/stdint (Makefile.am): Remove stdint.h if
3435         GL_GENERATE_STDINT_H evaluates to false.
3436
3437         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3438         GL_GENERATE_SYSEXITS_H.
3439         * modules/sysexits (Makefile.am): Remove sysexits.h if
3440         GL_GENERATE_SYSEXITS_H evaluates to false.
3441
3442         Reported by Karl Berry and Ralf Wildenhues.
3443
3444 2011-04-05  Bruno Haible  <bruno@clisp.org>
3445
3446         Ensure to rebuild generated .h files when config.status has changed.
3447         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3448         config.status.
3449         * modules/ctype (Makefile.am): Likewise.
3450         * modules/dirent (Makefile.am): Likewise.
3451         * modules/errno (Makefile.am): Likewise.
3452         * modules/fcntl-h (Makefile.am): Likewise.
3453         * modules/float (Makefile.am): Likewise.
3454         * modules/getopt-posix (Makefile.am): Likewise.
3455         * modules/glob (Makefile.am): Likewise.
3456         * modules/iconv-h (Makefile.am): Likewise.
3457         * modules/inttypes (Makefile.am): Likewise.
3458         * modules/langinfo (Makefile.am): Likewise.
3459         * modules/locale (Makefile.am): Likewise.
3460         * modules/math (Makefile.am): Likewise.
3461         * modules/netdb (Makefile.am): Likewise.
3462         * modules/netinet_in (Makefile.am): Likewise.
3463         * modules/poll-h (Makefile.am): Likewise.
3464         * modules/pthread (Makefile.am): Likewise.
3465         * modules/pty (Makefile.am): Likewise.
3466         * modules/sched (Makefile.am): Likewise.
3467         * modules/search (Makefile.am): Likewise.
3468         * modules/selinux-h (Makefile.am): Likewise.
3469         * modules/signal (Makefile.am): Likewise.
3470         * modules/spawn (Makefile.am): Likewise.
3471         * modules/stdarg (Makefile.am): Likewise.
3472         * modules/stdbool (Makefile.am): Likewise.
3473         * modules/stddef (Makefile.am): Likewise.
3474         * modules/stdint (Makefile.am): Likewise.
3475         * modules/stdio (Makefile.am): Likewise.
3476         * modules/stdlib (Makefile.am): Likewise.
3477         * modules/string (Makefile.am): Likewise.
3478         * modules/strings (Makefile.am): Likewise.
3479         * modules/sys_file (Makefile.am): Likewise.
3480         * modules/sys_ioctl (Makefile.am): Likewise.
3481         * modules/sys_select (Makefile.am): Likewise.
3482         * modules/sys_socket (Makefile.am): Likewise.
3483         * modules/sys_stat (Makefile.am): Likewise.
3484         * modules/sys_time (Makefile.am): Likewise.
3485         * modules/sys_times (Makefile.am): Likewise.
3486         * modules/sys_utsname (Makefile.am): Likewise.
3487         * modules/sys_wait (Makefile.am): Likewise.
3488         * modules/sysexits (Makefile.am): Likewise.
3489         * modules/termios (Makefile.am): Likewise.
3490         * modules/time (Makefile.am): Likewise.
3491         * modules/unistd (Makefile.am): Likewise.
3492         * modules/wchar (Makefile.am): Likewise.
3493         * modules/wctype-h (Makefile.am): Likewise.
3494         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3495
3496 2011-04-05  Bruno Haible  <bruno@clisp.org>
3497
3498         pipe2: Relicense under LGPLv2+.
3499         * modules/pipe2 (License): Change to LGPLv2+.
3500         Requested by Eric Blake, for libvirt.
3501
3502 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3503
3504         bootstrap: compute gnulib_extra_files after updating build_aux
3505         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3506         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3507
3508 2011-04-05  Eric Blake  <eblake@redhat.com>
3509
3510         bootstrap: preserve git whitelist item sorting
3511         * build-aux/bootstrap (sort_patterns): New function.
3512         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3513
3514 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3515
3516         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3517         sc_space_tab check.
3518
3519 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3520
3521         areadlink, areadlinkat: rewrite in terms of careadlinkat
3522         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3523         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3524         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3525         (malloc, realloc): Remove #undefs.
3526         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3527         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3528         readlink, ssize_t, stdint, unistd.
3529         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3530         areadlink, stdint.
3531
3532         careadlinkat: new module
3533         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3534         * modules/careadlinkat: New files, written by me with
3535         a review and feedback from Ben Pfaff in
3536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3537
3538 2011-04-01  Bruno Haible  <bruno@clisp.org>
3539
3540         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3541         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3542         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3543         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3544         Reported by Bruce Korb <bruce.korb@gmail.com>.
3545
3546 2011-04-01  Bruno Haible  <bruno@clisp.org>
3547
3548         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3549         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3550         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3551         * modules/wcpcpy (Depends-on): Add extensions.
3552         * modules/wcpncpy (Depends-on): Likewise.
3553         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3554         systems.
3555         * doc/posix-functions/wcpncpy.texi: Likewise.
3556         * doc/posix-functions/wcwidth.texi: Likewise.
3557
3558 2011-03-31  Eric Blake  <eblake@redhat.com>
3559
3560         nonblocking: fix mingw test failures
3561         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3562         non-blocking flag on regular file.
3563         (get_nonblocking_flag): Set errno on invalid fd.
3564         * tests/test-nonblocking.c (main): Avoid test failure on
3565         directories if fchdir is not active.
3566         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3567
3568 2011-03-31  Bruno Haible  <bruno@clisp.org>
3569
3570         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3571         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3572         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3573         Reported by Simon Josefsson <simon@josefsson.org>.
3574
3575 2011-03-31  Bruno Haible  <bruno@clisp.org>
3576         and Eric Blake  <eblake@redhat.com>
3577
3578         nonblocking: new module
3579         * modules/nonblocking: New module.
3580         * modules/nonblocking-tests: Likewise.
3581         * lib/nonblocking.h: New file.
3582         * lib/nonblocking.c: Likewise.
3583         * tests/test-nonblocking.c: New test.
3584         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3585
3586 2011-03-30  Bruno Haible  <bruno@clisp.org>
3587
3588         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3589         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3590         instead of 'printf' format for GCC >= 4.4.
3591         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3592         (fprintf, printf, vfprintf, vprintf): Declare with
3593         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3594         the system's vfprintf() function.
3595         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3596
3597 2011-03-30  Eric Blake  <eblake@redhat.com>
3598
3599         passfd: fix scoping bug
3600         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3601         before sendmsg/recvmsg.
3602
3603         passfd: standardize coding conventions
3604         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3605         can be learned at compile time.
3606         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3607         ifdefs.
3608         (sendfd, recvfd): Follow gnulib code conventions.
3609
3610         passfd: fix incorrect sendmsg arguments
3611         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3612         incorrect msg_controllen value.
3613         * modules/passfd-tests (Depends-on): Check for alarm.
3614         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3615         Reported by Bastien ROUCARIES.
3616
3617 2011-03-30  Bruno Haible  <bruno@clisp.org>
3618
3619         c-strcasestr: Relicense under LGPLv2+.
3620         * modules/c-strcasestr (License): Change to LGPLv2+.
3621         Requested by Eric Blake, for libvirt.
3622
3623 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3624
3625         * users.txt: Add libidn2.  Fix libtasn1 link.
3626
3627 2011-03-30  Jim Meyering  <meyering@redhat.com>
3628
3629         tests: readlink* ("",... fails with EINVAL on newer kernels
3630         readlink and readlinkat have typically failed with ENOENT for
3631         the invalid, empty file name,  "".  However, with the advent
3632         of linux-2.6.39, they fail with EINVAL.
3633         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3634         when operating on the empty file name.
3635         * tests/test-readlink.h (test_readlink): Likewise.
3636
3637 2011-03-29  Bruno Haible  <bruno@clisp.org>
3638
3639         Relicense some modules under LGPLv2+, for libidn2.
3640         * modules/array-mergesort (License): Change to LGPLv2+.
3641         * modules/c-strcaseeq (License): Likewise.
3642         * modules/striconveh (License): Likewise.
3643         * modules/striconveha (License): Likewise.
3644         * modules/uniconv/base (License): Likewise.
3645         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3646         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3647         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3648         * modules/unictype/base (License): Likewise.
3649         * modules/unictype/bidiclass-of (License): Likewise.
3650         * modules/unictype/category-M (License): Likewise.
3651         * modules/unictype/category-none (License): Likewise.
3652         * modules/unictype/category-of (License): Likewise.
3653         * modules/unictype/category-test (License): Likewise.
3654         * modules/unictype/category-test-withtable (License): Likewise.
3655         * modules/unictype/combining-class (License): Likewise.
3656         * modules/unictype/joiningtype-of (License): Likewise.
3657         * modules/unictype/scripts (License): Likewise.
3658         * modules/uninorm/base (License): Likewise.
3659         * modules/uninorm/canonical-decomposition (License): Likewise.
3660         * modules/uninorm/composition (License): Likewise.
3661         * modules/uninorm/decompose-internal (License): Likewise.
3662         * modules/uninorm/decomposition-table (License): Likewise.
3663         * modules/uninorm/nfc (License): Likewise.
3664         * modules/uninorm/nfd (License): Likewise.
3665         * modules/uninorm/u32-normalize (License): Likewise.
3666         * modules/unistr/base (License): Likewise.
3667         * modules/unistr/u32-cpy (License): Likewise.
3668         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3669         * modules/unistr/u32-to-u8 (License): Likewise.
3670         * modules/unistr/u32-uctomb (License): Likewise.
3671         * modules/unistr/u8-check (License): Likewise.
3672         * modules/unistr/u8-mblen (License): Likewise.
3673         * modules/unistr/u8-mbtouc (License): Likewise.
3674         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3675         * modules/unistr/u8-mbtoucr (License): Likewise.
3676         * modules/unistr/u8-prev (License): Likewise.
3677         * modules/unistr/u8-strlen (License): Likewise.
3678         * modules/unistr/u8-to-u32 (License): Likewise.
3679         * modules/unistr/u8-uctomb (License): Likewise.
3680         * modules/unitypes (License): Likewise.
3681         Requested by Simon Josefsson.
3682
3683 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3684
3685         lib-symbol-visibility: Add a notice.
3686         * modules/lib-symbol-visibility (Notice): New field.
3687
3688 2011-03-29  Bruno Haible  <bruno@clisp.org>
3689
3690         getaddrinfo: Doc fix.
3691         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3692         section "fixed in Gnulib".
3693
3694 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3695
3696         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3697         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3698
3699 2011-03-26  Bruno Haible  <bruno@clisp.org>
3700
3701         unictype/property-byname: Reduce the number of load-time relocations.
3702         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3703         (UC_PROPERTY_INDEX_*): New enumeration values.
3704         (uc_property_byname): Convert an index from the lookup table to an
3705         uc_property_t.
3706         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3707         values.
3708
3709 2011-03-26  Bruno Haible  <bruno@clisp.org>
3710
3711         unictype/property-byname: Allow omitted word separators and aliases.
3712         * lib/unictype/pr_byname.gperf: Add property names without word
3713         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3714         for 'space'.
3715
3716 2011-03-26  Bruno Haible  <bruno@clisp.org>
3717
3718         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3719         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3720         also hyphens to space.
3721         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3722         without spaces.
3723         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3724
3725 2011-03-26  Bruno Haible  <bruno@clisp.org>
3726
3727         unictype/joiningtype-byname: Recognize long names as well.
3728         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3729         a long name.
3730         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3731         unictype/joiningtype_byname.h.
3732         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3733         * lib/unictype/joiningtype_byname.gperf: New file.
3734         * modules/unictype/joiningtype-byname (Files): Add
3735         lib/unictype/joiningtype_byname.gperf.
3736         (Depends-on): Add gperf.
3737         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3738         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3739         long names.
3740
3741         Tests for module 'unictype/joiningtype-longname'.
3742         * modules/unictype/joiningtype-longname-tests: New file.
3743         * tests/unictype/test-joiningtype_longname.c: New file.
3744
3745         New module 'unictype/joiningtype-longname'.
3746         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3747         * lib/unictype/joiningtype_longname.c: New file.
3748         * modules/unictype/joiningtype-longname: New file.
3749         * modules/unictype/joiningtype-all (Depends-on): Add
3750         unictype/joiningtype-longname.
3751
3752 2011-03-26  Bruno Haible  <bruno@clisp.org>
3753
3754         unictype/bidiclass-byname: Recognize long names as well.
3755         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3756         name.
3757         * lib/unictype/bidi_byname.c: Include <string.h>,
3758         unictype/bidi_byname.h.
3759         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3760         * lib/unictype/bidi_byname.gperf: New file.
3761         * modules/unictype/bidiclass-byname (Files): Add
3762         lib/unictype/bidi_byname.gperf.
3763         (Depends-on): Add gperf.
3764         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3765         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3766         long names.
3767
3768         Tests for module 'unictype/bidiclass-longname'.
3769         * modules/unictype/bidiclass-longname-tests: New file.
3770         * tests/unictype/test-bidi_longname.c: New file.
3771
3772         New module 'unictype/bidiclass-longname'.
3773         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3774         * lib/unictype/bidi_longname.c: New file.
3775         * modules/unictype/bidiclass-longname: New file.
3776         * modules/unictype/bidiclass-all (Depends-on): Add
3777         unictype/bidiclass-longname.
3778
3779 2011-03-26  Bruno Haible  <bruno@clisp.org>
3780
3781         unictype/bidi*: Rename modules.
3782         * modules/unictype/bidiclass-all: Renamed from
3783         modules/unictype/bidicategory-all.
3784         * modules/unictype/bidiclass-name: Renamed from
3785         modules/unictype/bidiclass-name.
3786         (Description): Update.
3787         * modules/unictype/bidiclass-name-tests: Renamed from
3788         modules/unictype/bidicategory-name-tests.
3789         * modules/unictype/bidiclass-byname: Renamed from
3790         modules/unictype/bidicategory-byname.
3791         (Description): Update.
3792         * modules/unictype/bidiclass-byname-tests: Renamed from
3793         modules/unictype/bidicategory-byname-tests.
3794         * modules/unictype/bidiclass-of: Renamed from
3795         modules/unictype/bidicategory-of.
3796         (Description): Update.
3797         * modules/unictype/bidiclass-of-tests: Renamed from
3798         modules/unictype/bidicategory-of-tests.
3799         * modules/unictype/bidiclass-test: Renamed from
3800         modules/unictype/bidicategory-test.
3801         (Description): Update.
3802         * modules/unictype/bidiclass-test-tests: Renamed from
3803         modules/unictype/bidicategory-test-tests.
3804         * modules/unictype/bidicategory-all: New file, a simple redirection.
3805         * modules/unictype/bidicategory-name: Likewise.
3806         * modules/unictype/bidicategory-byname: Likewise.
3807         * modules/unictype/bidicategory-of: Likewise.
3808         * modules/unictype/bidicategory-test: Likewise.
3809         * modules/unictype/property-bidi-* (Dependencies): Update.
3810         * lib/unictype/bidi_*.c: Update comment.
3811
3812 2011-03-26  Bruno Haible  <bruno@clisp.org>
3813
3814         unictype/bidi*: Rename functions, part 2.
3815         * modules/unictype/bidicategory-name (configure.ac): Update required
3816         libunistring version.
3817         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3818
3819 2011-03-25  Bruno Haible  <bruno@clisp.org>
3820
3821         New module 'unictype/combining-class-all'.
3822         * modules/unictype/combining-class-all: New file.
3823
3824         Tests for module 'unictype/combining-class-byname'.
3825         * modules/unictype/combining-class-byname-tests: New file.
3826         * tests/unictype/test-combiningclass_byname.c: New file.
3827
3828         New module 'unictype/combining-class-byname'.
3829         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3830         * lib/unictype/combiningclass_byname.c: New file.
3831         * lib/unictype/combiningclass_byname.gperf: New file.
3832         * modules/unictype/combining-class-byname: New file.
3833
3834         Tests for module 'unictype/combining-class-longname'.
3835         * modules/unictype/combining-class-longname-tests: New file.
3836         * tests/unictype/test-combiningclass_longname.c: New file.
3837
3838         New module 'unictype/combining-class-longname'.
3839         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3840         * lib/unictype/combiningclass_longname.c: New file.
3841         * modules/unictype/combining-class-longname: New file.
3842
3843         Tests for module 'unictype/combining-class-name'.
3844         * modules/unictype/combining-class-name-tests: New file.
3845         * tests/unictype/test-combiningclass_name.c: New file.
3846
3847         New module 'unictype/combining-class-name'.
3848         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3849         * lib/unictype/combiningclass_name.c: New file.
3850         * modules/unictype/combining-class-name: New file.
3851
3852 2011-03-25  Bruno Haible  <bruno@clisp.org>
3853
3854         unictype/combining-class: Rename source files.
3855         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3856         of unictype/combining.h.
3857         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3858         Update.
3859         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3860         * modules/unictype/combining-class (Description): Fix.
3861         (Files, Makefile.am): Update.
3862         * tests/unictype/test-combiningclass.c: Renamed from
3863         tests/unictype/test-combining.c.
3864         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3865
3866 2011-03-25  Bruno Haible  <bruno@clisp.org>
3867
3868         unictype: Update list of canonical combining classes.
3869         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3870
3871 2011-03-25  Bruno Haible  <bruno@clisp.org>
3872
3873         unictype/category-byname: Recognize long names as well.
3874         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3875         a long name.
3876         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3877         unictype/categ_byname.h.
3878         (UC_CATEGORY_INDEX_*): New enumeration values.
3879         (uc_general_category_byname): Use uc_general_category_lookup and
3880         convert from index to value.
3881         * lib/unictype/categ_byname.gperf: New file.
3882         * modules/unictype/category-byname (Files): Add
3883         lib/unictype/categ_byname.gperf.
3884         (Depends-on): Add gperf.
3885         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3886         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3887         long names.
3888
3889         Tests for module 'unictype/category-longname'.
3890         * modules/unictype/category-longname-tests: New file.
3891         * tests/unictype/test-categ_longname.c: New file.
3892
3893         New module 'unictype/category-longname'.
3894         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3895         * lib/unictype/categ_longname.c: New file.
3896         * modules/unictype/category-longname: New file.
3897         * modules/unictype/category-all (Depends-on): Add it.
3898
3899 2011-03-25  Bruno Haible  <bruno@clisp.org>
3900
3901         Tests for module 'unictype/category-LC'.
3902         * modules/unictype/category-LC-tests: New file.
3903         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3904
3905         New module 'unictype/category-LC'.
3906         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3907         (UC_CATEGORY_LC): New declaration.
3908         (UC_CASED_LETTER): New macro.
3909         * lib/gen-uni-tables.c (is_category_LC): New function.
3910         (output_categories): Also handle category LC.
3911         (UC_CATEGORY_MASK_LC): New enumeration value.
3912         (general_category_byname): Also handle category LC.
3913         * lib/unictype/categ_LC.c: New file.
3914         * lib/unictype/categ_LC.h: New file, automatically generated.
3915         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3916         category LC.
3917         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3918         * modules/unictype/category-LC: New file.
3919         * modules/unictype/category-byname (Depends-on): Add
3920         unictype/category-LC.
3921         * modules/unictype/category-all (Depends-on): Likewise.
3922
3923 2011-03-25  Eric Blake  <eblake@redhat.com>
3924
3925         xmalloc: revert yesterday's regression
3926         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3927         realloc's underlying behavior (allowing allocation of zero-size
3928         objects, especially if malloc-gnu is also in use).
3929
3930 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3931
3932         maint.mk: add missing version to VC-tag
3933         * top/maint.mk: git tag was missing actual tag name; add it.
3934
3935         valgrind: do leak checking, and exit with code 1 on error (not 0)
3936         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3937         to VALGRIND.
3938
3939 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3940
3941         posix-modules: say what it does.
3942         * posix-modules: Add a line to the --help output saying what it does.
3943
3944 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3945
3946         xmalloc: Do not leak if underlying realloc is C99 compatible.
3947         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3948         This avoids a leak on C99-based systems.  See
3949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3950
3951 2011-03-24  Eric Blake  <eblake@redhat.com>
3952
3953         realloc: document portability problem
3954         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3955         passing 0 size to realloc.
3956
3957 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3958
3959         doc: update users.txt
3960         * users.txt: Add cvsps, tmpwatch
3961
3962 2011-03-23  Matt Rice  <ratmice@gmail.com>
3963
3964         doc: update users.txt
3965         * users.txt: Add gdb.
3966
3967 2011-03-23  Jim Meyering  <meyering@redhat.com>
3968
3969         doc: update users.txt
3970         Looking through matches up to the following URL (there are still
3971         several more pages), I found several projects that use gnulib:
3972         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3973         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3974         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3975
3976 2011-03-22  Bruno Haible  <bruno@clisp.org>
3977
3978         unictype/bidi*: Rename functions.
3979         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3980         uc_bidi_class, uc_is_bidi_class): New declarations.
3981         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3982         uc_bidi_category_byname.
3983         (uc_bidi_category_byname): New function.
3984         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3985         u_bidi_category_name.
3986         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3987         (uc_bidi_category_name): New function.
3988         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3989         uc_bidi_category.
3990         (uc_bidi_category): New function.
3991         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3992         uc_is_bidi_category. Invoke uc_bidi_class.
3993         (uc_is_bidi_category): New function.
3994         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3995         instead of uc_bidi_category_byname.
3996         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3997         instead of uc_bidi_category_name.
3998         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3999         uc_bidi_category.
4000         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4001         instead of uc_is_bidi_category.
4002
4003 2011-03-21  Bruno Haible  <bruno@clisp.org>
4004
4005         New module 'unictype/joininggroup-all'.
4006         * modules/unictype/joininggroup-all: New file.
4007
4008         Tests for module 'unictype/joininggroup-of'.
4009         * modules/unictype/joininggroup-of-tests: New file.
4010         * tests/unictype/test-joininggroup_of.c: New file.
4011         * tests/unictype/test-joininggroup_of.h: New file, automatically
4012         generated by gen-uni-tables.
4013
4014         New module 'unictype/joininggroup-of'.
4015         * modules/unictype/joininggroup-of: New file.
4016         * lib/unictype/joininggroup_of.c: New file.
4017         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4018         gen-uni-tables.
4019
4020         Tests for module 'unictype/joininggroup-byname'.
4021         * modules/unictype/joininggroup-byname-tests: New file.
4022         * tests/unictype/test-joininggroup_byname.c: New file.
4023
4024         New module 'unictype/joininggroup-byname'.
4025         * modules/unictype/joininggroup-byname: New file.
4026         * lib/unictype/joininggroup_byname.c: New file.
4027         * lib/unictype/joininggroup_byname.gperf: New file.
4028
4029         Tests for module 'unictype/joininggroup-name'.
4030         * modules/unictype/joininggroup-name-tests: New file.
4031         * tests/unictype/test-joininggroup_name.c: New file.
4032
4033         New module 'unictype/joininggroup-name'.
4034         * modules/unictype/joininggroup-name: New file.
4035         * lib/unictype/joininggroup_name.c: New file.
4036         * lib/unictype/joininggroup_name.h: New file.
4037
4038         New module 'unictype/joiningtype-all'.
4039         * modules/unictype/joiningtype-all: New file.
4040
4041         Tests for module 'unictype/joiningtype-of'.
4042         * modules/unictype/joiningtype-of-tests: New file.
4043         * tests/unictype/test-joiningtype_of.c: New file.
4044         * tests/unictype/test-joiningtype_of.h: New file, automatically
4045         generated by gen-uni-tables.
4046
4047         New module 'unictype/joiningtype-of'.
4048         * modules/unictype/joiningtype-of: New file.
4049         * lib/unictype/joiningtype_of.c: New file.
4050         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4051         gen-uni-tables.
4052
4053         Tests for module 'unictype/joiningtype-byname'.
4054         * modules/unictype/joiningtype-byname-tests: New file.
4055         * tests/unictype/test-joiningtype_byname.c: New file.
4056
4057         New module 'unictype/joiningtype-byname'.
4058         * modules/unictype/joiningtype-byname: New file.
4059         * lib/unictype/joiningtype_byname.c: New file.
4060
4061         Tests for module 'unictype/joiningtype-name'.
4062         * modules/unictype/joiningtype-name-tests: New file.
4063         * tests/unictype/test-joiningtype_name.c: New file.
4064
4065         New module 'unictype/joiningtype-name'.
4066         * modules/unictype/joiningtype-name: New file.
4067         * lib/unictype/joiningtype_name.c: New file.
4068
4069         unictype: Add support for Arabic shaping properties.
4070         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4071         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4072         declarations.
4073         (UC_JOINING_GROUP_*): New enumeration values.
4074         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4075         declarations.
4076         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4077         (unicode_joining_type): New variable.
4078         (UC_JOINING_GROUP_*): New enumeration values.
4079         (unicode_joining_group): New variable.
4080         (fill_arabicshaping, joining_type_as_c_identifier,
4081         output_joining_type_test, output_joining_type,
4082         joining_group_as_c_identifier, output_joining_group_test,
4083         output_joining_group): New functions.
4084         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4085         fill_arabicshaping and output_joining_type_test, output_joining_type,
4086         output_joining_group_test, output_joining_group.
4087         Reported by Simon Josefsson.
4088
4089 2011-03-21  Jim Meyering  <meyering@redhat.com>
4090
4091         strftime: fix a bug in yesterday's change
4092         * lib/strftime.c (add): Accommodate width's initial value of -1.
4093         Otherwise, nstrftime would copy uninitialized data into
4094         the result buffer.
4095
4096 2011-03-21  Jim Meyering  <meyering@redhat.com>
4097
4098         tests: add strftime-tests module
4099         * tests/test-strftime.c: New file.
4100         * modules/strftime-tests: New module.
4101
4102 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4103
4104         strftime: don't assume a byte count fits in 'int'
4105         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4106         found this problem by static analysis, using gcc -Wstrict-overflow
4107         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4108         on an integer overflow having undefined behavior, but it turns out
4109         that the argument is a size, which might not fit in 'int' anyway,
4110
4111 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4112
4113         stdio: don't require ignore_value around fwrite
4114
4115         This patch works around libc bug 11959
4116         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4117         Without this patch, applications must often write
4118         ignore_value (fwrite (...)) even though the ignore_value is
4119         not helpful here.  It's common to write many objects, using
4120         fwrite/printf/etc., and then use ferror to detect output error.
4121
4122         I considered making this patch optional, but decided against it,
4123         because libc is obviously being inconsistent here: there is no
4124         reason libc should insist that user code must inspect fwrite
4125         return's value without also insisting that it inspect printf's,
4126         putchar's, etc.  If user code wants to have a strict style where
4127         all these functions' values are checked (so that ferror need not
4128         be checked), we could add support for that style in a new gnulib
4129         module, but in the meantime it's better to be consistent and to
4130         support common usage.
4131
4132         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4133         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4134         that we are compiling in checking mode, and if not C++, and
4135         if not already wrapping fwrite for some other reason.
4136         (fwrite): #define to rpl_fwrite if the latter is defined.
4137
4138 2011-03-20  Bruno Haible  <bruno@clisp.org>
4139
4140         verror: Fix compilation error introduced on 2011-02-13.
4141         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4142         instead of __attribute__.
4143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4144
4145 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4146             Bruno Haible  <bruno@clisp.org>
4147
4148         socklen: do not depend on sys_socket
4149         While trying to modify Emacs to use gnulib's socklen module,
4150         I discovered a circular dependency: socklen depends on sys_socket
4151         and vice versa.  Emacs can use socklen, but it does not need
4152         sys_socket because it has its own substitute for sys/socket.h.
4153         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4154         gl_TYPE_SOCKLEN_T.
4155         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4156         gl_PREREQ_SYS_H_SOCKET.
4157         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4158         gl_PREREQ_SYS_H_SOCKET.
4159         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4160         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4161         * modules/socklen (Depends-on): Do not depend on sys_socket.
4162         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4163
4164 2011-03-20  Jim Meyering  <meyering@redhat.com>
4165
4166         maint.mk: sort file names *after* new transformation
4167         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4168         prefix would have led to an unwarranted failure in GNU parted.
4169         Sort after that transformation.
4170
4171 2011-03-19  Jim Meyering  <meyering@redhat.com>
4172
4173         maint.mk: fix po-file syntax-check rule
4174         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4175         Patch by Bruno Haible.
4176
4177 2011-03-19  Bruno Haible  <bruno@clisp.org>
4178
4179         socklen: Update comment.
4180         * m4/socklen.m4: Update comment about platforms.
4181
4182 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4183             Bruno Haible  <bruno@clisp.org>
4184
4185         inet_ntop, inet_pton: Simplify.
4186         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4187         documented to provide socklen_t and we already depend on sys_socket.
4188         * modules/inet_pton (Depends-on): Likewise.
4189         * lib/arpa_inet.in.h: Adjust comment.
4190
4191 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4192             Bruno Haible  <bruno@clisp.org>
4193
4194         netdb: Simplify.
4195         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4196         documented to provide socklen_t and we already depend on sys_socket.
4197         * lib/netdb.in.h: Adjust comment.
4198
4199 2011-03-19  Bruno Haible  <bruno@clisp.org>
4200
4201         sys_socket, netdb: Document problem with socklen_t.
4202         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4203         platforms.
4204         * doc/posix-headers/netdb.texi: Likewise.
4205
4206 2011-03-18  Eric Blake  <eblake@redhat.com>
4207
4208         maint.mk: let po check work in VPATH build
4209         * top/maint.mk (po_file): Allow cfg.mk override.
4210         (sc_po_check): Allow VPATH use.
4211         Reported by Jiri Denemark.
4212
4213 2011-03-16  Jim Meyering  <meyering@redhat.com>
4214
4215         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4216         Before, you would have had to create one .x-sc_ file per rule in order
4217         to exempt offending files.  Now, you may instead use a Make variable --
4218         usually defined in cfg.mk -- whose name identifies the affected rule.
4219         * top/maint.mk (_sc_excl): Define.
4220         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4221         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4222
4223 2011-03-13  Bruno Haible  <bruno@clisp.org>
4224
4225         ignore-value tests: Avoid warnings.
4226         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4227         empty for gcc < 3.4.
4228
4229 2011-03-13  Bruno Haible  <bruno@clisp.org>
4230
4231         passfd: Fix link error on Solaris.
4232         * modules/passfd (Description): Correct.
4233         (Depends-on): Add socketlib.
4234         (Link): New section.
4235         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4236
4237 2011-03-13  Bruno Haible  <bruno@clisp.org>
4238
4239         passfd: Fix link error on AIX 5.2.
4240         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4241
4242 2011-03-13  Bruno Haible  <bruno@clisp.org>
4243
4244         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4245         * lib/sys_socket.in.h: Include <stddef.h>.
4246         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4247         CMSG_FIRSTHDR. Remove unused variable.
4248
4249 2011-03-13  Bruno Haible  <bruno@clisp.org>
4250
4251         passfd: Fix compilation error on OpenBSD.
4252         * lib/passfd.c: Include <sys/uio.h>.
4253
4254 2011-03-13  Bruno Haible  <bruno@clisp.org>
4255
4256         passfd test: Fix warnings.
4257         * tests/test-passfd.c: Include <sys/wait.h>.
4258         (main): Fix typo.
4259
4260 2011-03-13  Bruno Haible  <bruno@clisp.org>
4261
4262         passfd module, part 4, tweaks.
4263         * tests/test-passfd.c: Reorder includes.
4264         (main): Fix perror and printf calls.
4265
4266 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4267
4268         passfd module, part 4.
4269         * modules/passfd-tests: New file.
4270         * tests/test-passfd.c: New file.
4271
4272 2011-03-13  Jim Meyering  <meyering@redhat.com>
4273
4274         Makefile: rely on GNU make; derive syntax-check rule names
4275         Rather than requiring that each sc_ rule be listed as a dependent
4276         of "check", use features of GNU make to derive the list.
4277         * Makefile (syntax-check-rules): Define.
4278         (check): Depend on the new variable, not the hard-coded list.
4279
4280 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4281             Bruno Haible  <bruno@clisp.org>
4282
4283         passfd module, part 3.
4284         * lib/passfd.h (recvfd): Add a flags argument.
4285         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4286         (recvfd): Add a flags argument.
4287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4288         exists.
4289         * modules/passfd (Depends-on): Add cloexec.
4290         Suggested by Eric Blake.
4291
4292 2011-03-13  Bruno Haible  <bruno@clisp.org>
4293
4294         passfd module, part 2, tweaks.
4295         * modules/passfd (Files): Reorder.
4296         (Depends-on): Remove errno.
4297         (Include): Remove <sys/socket.h>, <sys/un.h>.
4298         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4299         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4300         specification header. Include <sys/socket.h> always. Don't include
4301         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4302         (sendfd): Clarify that it sets errno when it fails.
4303         (recvfd): Fix specification.
4304
4305 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4306
4307         passfd module, part 2.
4308         * modules/passfd: New file.
4309         * lib/passfd.h: New file.
4310         * lib/passfd.c: New file.
4311
4312 2011-03-12  Bruno Haible  <bruno@clisp.org>
4313
4314         wcswidth, mbswidth: Avoid integer overflow.
4315         * lib/wcswidth.c: Include <limits.h>.
4316         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4317         * lib/mbswidth.c: Include <limits.h>.
4318         (mbsnwidth): Avoid 'int' overflow.
4319         Reported by Jim Meyering.
4320
4321 2011-03-12  Bruno Haible  <bruno@clisp.org>
4322
4323         futimens, utimensat: Avoid endless recursion on Solaris 10.
4324         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4325         Solaris.
4326         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4327         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4328
4329 2011-03-11  Jim Meyering  <meyering@redhat.com>
4330
4331         maint.mk: relax a regexp to accommodate other formatting styles
4332         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4333         between "ngettext" and the following "(".
4334
4335 2011-03-11  Pádraig Brady <P@draigBrady.com>
4336
4337         maint.mk: suppress a false positive warning
4338         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4339         diagnostics are marked with ngettext.
4340
4341 2011-03-10  Eric Blake  <eblake@redhat.com>
4342
4343         wchar: add explicit dependencies, for Tru64
4344         * modules/mbmemcasecoll (Depends-on): Add wchar.
4345         * modules/mbtowc (Depends-on): Likewise.
4346         * modules/vasnprintf (Depends-on): Likewise.
4347         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4348         * modules/wctomb (Depends-on): Likewise.
4349         Reported by Peter O'Gorman.
4350
4351 2011-03-08  Bruno Haible  <bruno@clisp.org>
4352
4353         passfd module, part 1, tweaks.
4354         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4355         Improve indentation. Improve AC_MSG_CHECKING messages.
4356         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4357         gl_SOCKET_FAMILIES.
4358
4359 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4360
4361         passfd module, part 1.
4362         * m4/afunix.m4: New file.
4363         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4364         sockets.
4365
4366 2011-03-08  Bruno Haible  <bruno@clisp.org>
4367
4368         regex-quote: New API.
4369         * lib/regex-quote.h: Include <stdbool.h>.
4370         (struct regex_quote_spec): New type.
4371         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4372         New declarations.
4373         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4374         'const struct regex_quote_spec *' argument.
4375         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4376         (pcre_special): New constant.
4377         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4378         New functions.
4379         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4380         'const struct regex_quote_spec *' argument.
4381         * modules/regex-quote (Depends-on): Add stdbool.
4382         * tests/test-regex-quote.c (check): Update for new API. Add test for
4383         anchored results.
4384         * NEWS: Mention the API change.
4385         Reported by Reuben Thomas and Eric Blake.
4386
4387 2011-03-06  Bruno Haible  <bruno@clisp.org>
4388
4389         regex-quote: Fix creation of POSIX extended regular expressions.
4390         * lib/regex-quote.c (ere_special): Add grouping and alternation
4391         operators.
4392
4393 2011-03-05  Bruno Haible  <bruno@clisp.org>
4394
4395         doc: Improve doc regarding autopoint vs. gnulib.
4396         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4397         disable autopoint while running autoreconf.
4398         Suggested by Ralf Wildenhues.
4399
4400 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4401
4402         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4403         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4404
4405 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4406
4407         parse-duration: remove xalloc.h dependency
4408         * lib/parse-duration.c (parse_period): handle NULL return from
4409         strdup instead of calling xstrdup().
4410         * modules/parse-duration: remove "xalloc" dependency
4411
4412 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4413
4414         bootstrap: honor m4_base when running aclocal
4415         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4416
4417 2011-03-02  Jim Meyering  <meyering@redhat.com>
4418
4419         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4420         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4421         on request from Matt Booth.
4422
4423 2011-03-01  Eric Blake  <eblake@redhat.com>
4424
4425         test-link: work on Hurd
4426         * tests/test-link.h (test_link): Hurd rejects linking directories
4427         with EISDIR instead of the POSIX-mandated EPERM.
4428
4429 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4430
4431         stdio: simplify by moving files to printf-posix, sigpipe
4432         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4433         since this symbol is needed only if printf is replaced.
4434         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4435         Require gl_ASM_SYMBOL_PREFIX.
4436         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4437         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4438         (Depends-on): Add 'raise'.
4439         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4440         * modules/stdio (Files): Remove lib/stdio-write.c,
4441         m4/asm-underscore.m4.
4442         (Depends-on): Remove 'raise'.
4443
4444         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4445         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4446         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4447         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4448
4449 2011-02-28  Bruno Haible  <bruno@clisp.org>
4450
4451         localcharset: Assume ANSI C behaviour of free().
4452         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4453         calling free().
4454         Suggested by Simon Josefsson <simon@josefsson.org>.
4455
4456 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4457             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4458             Bruno Haible  <bruno@clisp.org>  (tiny change)
4459
4460         On Cygwin, use /proc file system instead of win32 API.
4461         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4462         Win32 file names.
4463         (DllMain): Simplify by removing Cygwin specific code.
4464         (find_shared_library_fullname): Use Linux specific implementation also
4465         for Cygwin.
4466         (get_shared_library_fullname): Update accordingly.
4467         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4468         Win32 file names.
4469         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4470         Cygwin specific code.
4471
4472 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4473             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4474
4475         Fix OpenMP flag detection for various Fortran compilers.
4476         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4477         OpenMP-conditional compilation construct, to force compile
4478         failure with missing OpenMP flag.
4479         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4480
4481 2011-02-25  Eric Blake  <eblake@redhat.com>
4482
4483         strstr: expand test coverage
4484         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4485         compilation.
4486         * tests/test-memmem.c (main): Duplicate tests.
4487         * tests/test-strcasestr.c (main): Likewise.
4488         * tests/test-c-strcasestr.c (main): Likewise.
4489
4490 2011-02-25  Jim Meyering  <meyering@redhat.com>
4491
4492         maint.mk: detect missing-NL-at-EOF, too
4493         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4494         it also detects when a file lacks a newline at EOF.
4495         (require_exactly_one_NL_at_EOF_): Renamed from
4496         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4497         since people may well have .x-sc_... file names tied to the
4498         existing name.  Suggested by Eric Blake.
4499
4500 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4501
4502         dirname: move m4/dos.m4 functionality into lib/dosname.h
4503
4504         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4505         extracts symbols from it, puts them into config.h; but it's much
4506         easier to use the symbols directly.  filename.h already does this,
4507         but it disagrees with dos.m4 in some respects.  This patch
4508         introduces a different include file dosname.h that packages up
4509         dos.m4, and then later we can work on merging filename.h and
4510         dosname.h.  Applications that need only the easy-to-configure
4511         symbols should consider including dosname.h rather than dirname.h.
4512         * NEWS: Mention incompatible changes.
4513         * m4/dos.m4: Remove.
4514         * lib/dosname.h, modules/dosname: New files.
4515         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4516         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4517         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4518         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4519         Include dosname.h, not dirname.h.
4520         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4521         Include dosname.h, for definitions of symbols like ISSLASH
4522         that used to be in config.h.
4523         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4524         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4525         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4526         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4527         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4528         * modules/rmdir (Files): Likewise.
4529         * modules/stat (Files): Likewise.
4530         * modules/unlink (Files): Likewise.
4531         * modules/dirname-lgpl (Depends-on): Add dosname.
4532         * modules/lstat (Depends-on): Likewise.
4533         * modules/openat (Depends-on): Likewise.
4534         * modules/rmdir (Depends-on): Likewise.
4535         * modules/savewd (Depends-on): Likewise.
4536         * modules/stat (Depends-on): Likewise.
4537         * modules/unlink (Depends-on): Likewise.
4538         * modules/openat (Depends-on): Remove dirname-lgpl.
4539         * modules/savewd (Depends-on): Likewise.
4540         * tests/test-dirname.c: Do not use removed symbols like
4541         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4542         the remaining symbols, e.g., ISSLASH ('\\').
4543
4544 2011-02-25  Eric Blake  <eblake@redhat.com>
4545
4546         strstr: revert patches that introduced bug and pessimization
4547         * lib/str-two-way.h: Add another reference.
4548         (two_way_short_needle, two_way_long_needle): Revert changes from
4549         2011-02-24; they pessimize search speed.
4550         (critical_factorization): Partially revert changes from
4551         2010-06-22; they violate the requirement that the left half of the
4552         needle be smaller than the period of the needle.
4553
4554 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         filenamecat: remove unnecessary dependency on dirname-lgpl
4557         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4558         is no direct dependency, just an indirect one via filenamecat-lgpl.
4559
4560         remove: remove unnecessary use of m4/dos.m4
4561         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4562         * modules/remove (FILES): Remove m4/dos.m4.
4563
4564         * lib/openat-proc.c: Don't include dirname.h; not needed.
4565
4566         backupfile: remove unnecessary use of m4/dos.m4
4567         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4568         of its symbols are used by the backupfile code.  backupfile.c does
4569         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4570         for the rare case of programs that want all their backup file
4571         names to live within 8+3 limits, and dos.m4 doesn't address that.
4572         * modules/backupfile (Files): Remove m4/dos.m4.
4573
4574 2011-02-24  Jim Meyering  <meyering@redhat.com>
4575
4576         strstr: fix a bug whereby strstr would mistakenly return NULL
4577         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4578         in period calculation.
4579         (two_way_long_needle): Likewise.
4580         The original problem was reported by Mike Stump in
4581         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4582         Ralf Wildenhues provided the short needle and haystack.
4583         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4584         Add a more involved test to trigger the bug in two_way_long_needle.
4585
4586 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4587
4588         gnulib-tool: remove use of bold display in help screen
4589         * gnulib-tool (func_usage): Do not use bold display anymore in the
4590         help screen.  That was just meant to be a temporary emphasis for a
4591         backward-incompatible change.
4592
4593 2011-02-23  Bruno Haible  <bruno@clisp.org>
4594
4595         Fix misindentation of preprocessor directives.
4596         * lib/argp-namefrob.h: Reindent preprocessor directives.
4597         * lib/getopt_int.h (struct _getopt_data): Likewise.
4598         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4599         * lib/vasnprintf.c (decode_long_double): Likewise.
4600         * tests/test-argmatch.c: Insert blank lines, for clarity.
4601         * tests/test-exclude.c: Likewise.
4602
4603 2011-02-22  Bruno Haible  <bruno@clisp.org>
4604
4605         ioctl: Fix for MacOS X in 64-bit mode.
4606         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4607         value.
4608         Suggested by Eric Blake.
4609         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4610
4611 2011-02-22  Jim Meyering  <meyering@redhat.com>
4612
4613         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4614         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4615         in lib/.
4616
4617 2011-02-22  Eric Blake  <eblake@redhat.com>
4618
4619         maint: avoid any CDPATH issue
4620         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4621
4622         maint: adjust cpp indentation for my modules, as well
4623         * Makefile (sc_cpp_indent_check): Add my name.
4624         * lib/fbufmode.c: Filter through cppi.
4625         * lib/fpurge.c: Likewise.
4626         * lib/freadable.c: Likewise.
4627         * lib/freading.c: Likewise.
4628         * lib/fwritable.c: Likewise.
4629         * lib/fwriting.c: Likewise.
4630         * lib/sigaction.c: Likewise.
4631
4632 2011-02-22  Jim Meyering  <meyering@redhat.com>
4633
4634         maint: adjust cpp indentation to reflect nesting depth
4635         I.e., in a block of code that begins with an unnested "#if",
4636         put one space between the "#" in column 1 and following token.
4637         For example,
4638         -#include <sys/vfs.h>
4639         +# include <sys/vfs.h>
4640         Do this only in .c files that are part of a module I maintain.
4641         * lib/linkat.c: Filter through cppi.
4642         * lib/nanosleep.c: Likewise.
4643         * lib/openat.c: Likewise.
4644         * lib/openat-die.c: Likewise.
4645         * lib/dup3.c: Likewise.
4646         * lib/fchownat.c: Likewise.
4647         * lib/flock.c: Likewise.
4648         * lib/fsync.c: Likewise.
4649         * lib/fts.c: Likewise.
4650         * lib/getpass.c: Likewise.
4651         * lib/gettimeofday.c: Likewise.
4652         * lib/userspec.c: Likewise.
4653         * Makefile (sc_cpp_indent_check): New rule, to check this.
4654
4655 2011-02-22  Bruno Haible  <bruno@clisp.org>
4656
4657         New module 'wctomb'.
4658         * lib/stdlib.in.h (wctomb): New declaration.
4659         * lib/wctomb.c: New file.
4660         * lib/wctomb-impl.h: New file.
4661         * m4/wctomb.m4: New file.
4662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4663         REPLACE_WCTOMB.
4664         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4665         REPLACE_WCTOMB.
4666         * modules/wctomb: New file.
4667         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4668         * doc/posix-functions/wctomb.texi: Mention the new module.
4669         * modules/wctob (Depends-on): Add wctomb.
4670
4671 2011-02-22  Bruno Haible  <bruno@clisp.org>
4672
4673         New module 'mbtowc'.
4674         * lib/stdlib.in.h (mbtowc): New declaration.
4675         * lib/mbtowc.c: New file.
4676         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4677         * m4/mbtowc.m4: New file.
4678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4679         REPLACE_MBTOWC.
4680         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4681         REPLACE_MBTOWC.
4682         * modules/mbtowc: New file.
4683         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4684         * doc/posix-functions/mbtowc.texi: Mention the new module.
4685         * modules/btowc (Depends-on): Add mbtowc.
4686
4687 2011-02-22  Bruno Haible  <bruno@clisp.org>
4688
4689         wcrtomb: Add more tests for native Windows platforms.
4690         * tests/test-wcrtomb-w32-1.sh: New file.
4691         * tests/test-wcrtomb-w32-2.sh: New file.
4692         * tests/test-wcrtomb-w32-3.sh: New file.
4693         * tests/test-wcrtomb-w32-4.sh: New file.
4694         * tests/test-wcrtomb-w32-5.sh: New file.
4695         * tests/test-wcrtomb-w32.c: New file.
4696         * modules/wcrtomb-tests (Files): Add them.
4697         (Makefile.am): Arrange to run these tests.
4698         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4699         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4700
4701 2011-02-20  Bruno Haible  <bruno@clisp.org>
4702
4703         wcrtomb: Enhance test.
4704         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4705
4706 2011-02-20  Bruno Haible  <bruno@clisp.org>
4707
4708         mbrtowc: Tiny optimization.
4709         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4710
4711 2011-02-20  Jim Meyering  <meyering@redhat.com>
4712
4713         test-exclude.c: remove unmatched #endif
4714         * tests/test-exclude.c: Remove stray #endif, left over from
4715         the change of a week ago.
4716
4717 2011-02-19  Jim Meyering  <meyering@redhat.com>
4718
4719         git-version-gen: skip "-dirty" check when appropriate
4720         * build-aux/git-version-gen: Don't run any git commands when the
4721         version string comes from .tarball-version.  Prior to this, we
4722         would run git update-index --refresh even from a just-unpacked
4723         tarball directory, and that could affect a .git/ directory in a
4724         parent of the build directory.  Reported by Mike Frysinger.
4725
4726 2011-02-19  Bruno Haible  <bruno@clisp.org>
4727
4728         unictype/property-byname: Reduce the size of the 'data' segment.
4729         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4730
4731 2011-02-19  Bruno Haible  <bruno@clisp.org>
4732
4733         unictype/scripts: Reduce the size of the 'data' segment.
4734         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4735         '%pic'.
4736         * lib/unictype/scripts_byname.gperf: Regenerated.
4737
4738 2011-02-19  Bruno Haible  <bruno@clisp.org>
4739
4740         stdint: Update documentation.
4741         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4742
4743 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4744
4745         stdint: omit redundant check for wchar.h
4746         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4747         always tests whether wchar.h exists, so remove the now-redundant test.
4748
4749 2011-02-18  Bruno Haible  <bruno@clisp.org>
4750
4751         stdint: Cut dependency to module 'wchar'.
4752         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4753         include the necessary prerequisites.
4754         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4755         * modules/stdint (Depends-on): Remove wchar.
4756         (Makefile.am): Substitute HAVE_WCHAR_H.
4757         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4758
4759 2011-02-18  Eric Blake  <eblake@redhat.com>
4760
4761         longlong: skip, rather than fail, on cross-compilation
4762         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4763         when cross-compiling; regression from 2011-02-16.
4764
4765 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4766
4767         * NEWS: Mention 2011-02-08 change to stdlib.
4768
4769 2011-02-17  Bruno Haible  <bruno@clisp.org>
4770
4771         getloadavg: Add comments about platforms.
4772         * m4/getloadavg.m4: Add comment.
4773         * lib/getloadavg.c: Likewise.
4774
4775 2011-02-17  Bruno Haible  <bruno@clisp.org>
4776
4777         getloadavg: Fix link error on Solaris 2.6.
4778         * modules/getloadavg (Link): New section.
4779         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4780         linking test-getloadavg.
4781         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4782         getloadavg.
4783
4784 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4787         It was 'int', but this doesn't match the IRIX 6.5 manual.
4788         Suggested by Bruno Haible in
4789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4790
4791 2011-02-17  Bruno Haible  <bruno@clisp.org>
4792
4793         havelib: Fix comments.
4794         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4795         change.
4796
4797 2011-02-17  Bruno Haible  <bruno@clisp.org>
4798
4799         havelib: Update config.rpath.
4800         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4801
4802 2011-02-17  Bruno Haible  <bruno@clisp.org>
4803
4804         getloadavg test: Add some plausibility checks.
4805         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4806         is improbable.
4807
4808 2011-02-16  Eric Blake  <eblake@redhat.com>
4809
4810         maintainer-makefile: make syntax-check a no-op from tarballs
4811         * top/maint.mk (no-vc-detected): New rule.
4812         (local-checks-available): Use it to avoid hanging if someone tries
4813         'make syntax-check' from a tarball.  Also append to any non-syntax
4814         checks already defined in cfg.mk.
4815
4816 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4817
4818         longlong: tune, particularly for common case of c99
4819
4820         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4821         or running anything if c99, or if unsigned long long int does not
4822         work.  In either case, we know the answer without further tests.
4823         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4824         it at most once, and use its results for both long long int and
4825         unsigned long long int.  This is more likely to be efficient in
4826         the common case where the program wants to check for both long
4827         long int and unsigned long long int.
4828         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4829         since the answer is already known.
4830
4831 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4832
4833         getloadavg: set errno
4834         * lib/getloadavg.c: Set errno when returning -1.  If no other
4835         error number looks appropriate, set it to ENOSYS if the getloadavg
4836         looks like it can't possibly ever work, ENOTSUP otherwise.
4837         Suggested by Bruno Haible in
4838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4839
4840         getloadavg: trim unused parts and speed up 'configure'
4841         * NEWS: Document this.
4842         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4843         always compiled if getloadavg is absent.
4844         Move test code to ...
4845         * tests/test-getloadavg.c: New file, containing previous
4846         contents of test from lib/getloadavg.c.  It also contains
4847         suggestions by Bruno Haible in
4848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4849         * modules/getloadavg-tests: New file.
4850         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4851         Do tests in the same order as they're needed for getloadavg.c.
4852         Omit setgid-related tests that generate symbols KMEM_GROUP,
4853         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4854         Do only the tests that are needed to see whether the system has
4855         getloadavg, moving the other tests into ...
4856         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4857         NLIST_NAME_UNION; nobody should be using it.  Do not define
4858         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4859         relevant, as the user of this module shouldn't care how getloadavg
4860         is implemented.
4861
4862         getloadavg: omit unused var
4863         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4864
4865 2011-02-15  Jim Meyering  <meyering@redhat.com>
4866
4867         doc: update users.txt
4868         * users.txt: Update iwhd's URL.
4869
4870 2011-02-13  Bruno Haible  <bruno@clisp.org>
4871
4872         Consistent macro naming for macros that use GCC __attribute__.
4873         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4874         _ATTRIBUTE_NONNULL_.
4875         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4876         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4877         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4878         ATTRIBUTE_DEPRECATED.
4879         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4880         ATTRIBUTE_NORETURN.
4881         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4882         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4883         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4884         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4885         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4886         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4887         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4888         ATTRIBUTE_SENTINEL.
4889         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4890         ATTRIBUTE_RETURN_CHECK.
4891         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4892         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4893         ATTRIBUTE_NORETURN.
4894         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4895         Reported by Paul Eggert.
4896
4897 2011-02-13  Bruno Haible  <bruno@clisp.org>
4898
4899         Don't interfere with a program's definition of __attribute__.
4900         * lib/argp.h (__attribute__): Remove definition.
4901         (_GL_ATTRIBUTE_FORMAT): New macro.
4902         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4903         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4904         (_GL_ATTRIBUTE_FORMAT): New macro.
4905         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4906         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4907         GCC 3 or newer.
4908         * lib/error.h (__attribute__): Remove definition.
4909         (_GL_ATTRIBUTE_FORMAT): New macro.
4910         (error, error_at_line): Use it.
4911         * lib/hash.h (__attribute__): Remove definition.
4912         (ATTRIBUTE_WUR): Update definition. Define always.
4913         * lib/openat.h (__attribute__): Remove definition.
4914         (ATTRIBUTE_NORETURN): Update definition. Define always.
4915         * lib/sigpipe-die.h (__attribute__): Remove definition.
4916         (ATTRIBUTE_NORETURN): Update definition. Define always.
4917         * lib/vasnprintf.h (__attribute__): Remove definition.
4918         (_GL_ATTRIBUTE_FORMAT): New macro.
4919         (asnprintf, vasnprintf): Use it.
4920         * lib/xalloc.h (__attribute__): Remove definition.
4921         (ATTRIBUTE_NORETURN): Update definition. Define always.
4922         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4923         * lib/xmemdup0.h (__attribute__): Remove definition.
4924         (ATTRIBUTE_NORETURN): Update definition. Define always.
4925         * lib/xprintf.h (__attribute__): Remove definition.
4926         (_GL_ATTRIBUTE_FORMAT): New macro.
4927         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4928         * lib/xstrtol.h (__attribute__): Remove definition.
4929         (ATTRIBUTE_NORETURN): Update definition. Define always.
4930         * lib/xvasprintf.h (__attribute__): Remove definition.
4931         (_GL_ATTRIBUTE_FORMAT): New macro.
4932         (xasprintf, xvasprintf): Use it.
4933         * tests/test-argmatch.c (__attribute__): Remove definition.
4934         (ATTRIBUTE_NORETURN): Update definition. Define always.
4935         * tests/test-exclude.c (__attribute__): Remove definition.
4936         (ATTRIBUTE_NORETURN): Update definition. Define always.
4937         Reported by Paul Eggert.
4938
4939 2011-02-13  Bruno Haible  <bruno@clisp.org>
4940
4941         mbrtowc: Add more tests for native Windows platforms.
4942         * tests/test-mbrtowc-w32-1.sh: New file.
4943         * tests/test-mbrtowc-w32-2.sh: New file.
4944         * tests/test-mbrtowc-w32-3.sh: New file.
4945         * tests/test-mbrtowc-w32-4.sh: New file.
4946         * tests/test-mbrtowc-w32-5.sh: New file.
4947         * tests/test-mbrtowc-w32.c: New file.
4948         * modules/mbrtowc-tests (Files): Add them.
4949         (Makefile.am): Arrange to run these tests.
4950         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4951         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4952
4953 2011-02-13  Bruno Haible  <bruno@clisp.org>
4954
4955         mbrtowc: Work around native Windows bug.
4956         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4957         guess when no suitable locale for testing was found.
4958         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4959
4960 2011-02-13  Bruno Haible  <bruno@clisp.org>
4961
4962         mbsinit: Work around mingw bug.
4963         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4964         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4965         Windows.
4966         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4967
4968 2011-02-13  Bruno Haible  <bruno@clisp.org>
4969
4970         mbsinit: Don't crash for a NULL argument.
4971         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4972         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4973
4974 2011-02-13  Bruno Haible  <bruno@clisp.org>
4975
4976         Don't interfere with a program's definition of __attribute__.
4977         * lib/stdio.in.h (__attribute__): Remove definition.
4978         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4979         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4980         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4981         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4982         * lib/string.in.h (__attribute__): Remove definition.
4983         Reported by Paul Eggert.
4984
4985 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4986
4987         stdlib: don't get in the way of non-GCC __attribute__
4988         See thread starting at
4989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4990         Revert previous stdlib change, installing the following instead:
4991         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4992         to get in the way of a non-GCC compiler that supports __attribute__.
4993         (_GL_ATTRIBUTE_RETURN): New macro.
4994         (_Exit): Use it instead of __attribute__.
4995
4996 2011-02-12  Bruno Haible  <bruno@clisp.org>
4997
4998         quotearg test: Avoid test failure on mingw.
4999         * tests/test-quotearg.sh: Convert the locale identifier from native
5000         Windows syntax to Unix syntax.
5001
5002 2011-02-12  Bruno Haible  <bruno@clisp.org>
5003
5004         setlocale: Prefer gnulib's override over libintl's override.
5005         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5006         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5007         GNULIB_defined_setlocale is set.
5008
5009 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         stdlib: support non-GCC __attribute__
5012
5013         Fix a serious and tricky problem encountered when attempting to
5014         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5015         5.5, but it crashed due to memory corruption on Solaris 10 with
5016         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5017         bits that are otherwise zero.  This tagging is optional inside
5018         Emacs but is preferred and is used when __attribute__ ((__aligned
5019         (8))) works, as it does with both recent-enough GCC and with Sun C
5020         5.11.  However, Sun C 5.11 is not GCC and does not #define
5021         __GNUC__ and __GNUC_MINOR__.
5022
5023         When I added the getloadavg module to Emacs, it brought in
5024         stdlib.in.h, which contained this fragment:
5025
5026            #ifndef __attribute__
5027            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5028            #  define __attribute__(Spec)   /* empty */
5029            # endif
5030            #endif
5031
5032         When files that include <stdlib.h> were compiled with Sun C 5.11,
5033         the above code disabled __attribute__ ((__aligned (8))), which
5034         caused variables to not be properly aligned, which eventually led
5035         to the pointer corruption mentioned above.  (This was a bit hard
5036         to diagnose, unfortunately.)
5037
5038         Several "#define __attribute__(X) /* empty */" code snippets need
5039         to be eradicated from Gnulib to work with non-GCC compilers that
5040         support __attribute__.  The Autoconf way to do this is to test for
5041         each kind of attribute that we want support for, and selectively
5042         enable that in source code.
5043
5044         Fix this problem just for stdlib.h, by adding a test for the
5045         __noreturn__ attribute, and change stdlib.in.h to use that test
5046         when needed.  This technique can be easily generalized to the
5047         other *.in.h files and attributes, and a similar technique can be
5048         used for *.h and *.c files.  This patch is enough to solve the
5049         problem for Emacs + getloadavg, and I thought I'd publish it for
5050         feedback before undertaking further, similar fixes in other
5051         modules.
5052
5053         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5054         because it's not needed for stdlib.h.  It merely substitutes the
5055         value directly into stdlib.h.  We may well need to #define it, or
5056         similar symbols, for other modules, but it's nice to also have an
5057         option to not #define it for applications like Emacs that do not
5058         need it.
5059
5060         * lib/stdlib.in.h (__attribute__): Do not #define.
5061         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5062         be defined only if the _Exit module is also used.
5063         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5065         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5066         platforms.
5067         * modules/_Exit (Files): Add m4/attribute.m4.
5068         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5069         * m4/attribute.m4: New file.
5070
5071 2011-02-12  Bruno Haible  <bruno@clisp.org>
5072
5073         wcsrtombs: Work around bug on native Windows.
5074         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5075         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5076         instead of len.
5077         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5078
5079 2011-02-12  Bruno Haible  <bruno@clisp.org>
5080
5081         mbsrtowcs: Work around bug on native Windows.
5082         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5083         against mingw bug.
5084         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5085
5086 2011-02-12  Bruno Haible  <bruno@clisp.org>
5087
5088         Avoid setlocale bugs in tests.
5089         * modules/btowc (Dependencies): Add setlocale.
5090         * modules/c-strcase (Dependencies): Likewise.
5091         * modules/mbmemcasecmp (Dependencies): Likewise.
5092         * modules/mbmemcasecoll (Dependencies): Likewise.
5093         * modules/mbrtowc (Dependencies): Likewise.
5094         * modules/mbscasecmp (Dependencies): Likewise.
5095         * modules/mbscasestr (Dependencies): Likewise.
5096         * modules/mbschr (Dependencies): Likewise.
5097         * modules/mbscspn (Dependencies): Likewise.
5098         * modules/mbsinit (Dependencies): Likewise.
5099         * modules/mbsncasecmp (Dependencies): Likewise.
5100         * modules/mbsnrtowcs (Dependencies): Likewise.
5101         * modules/mbspbrk (Dependencies): Likewise.
5102         * modules/mbspcasecmp (Dependencies): Likewise.
5103         * modules/mbsrchr (Dependencies): Likewise.
5104         * modules/mbsrtowcs (Dependencies): Likewise.
5105         * modules/mbsspn (Dependencies): Likewise.
5106         * modules/mbsstr (Dependencies): Likewise.
5107         * modules/nl_langinfo (Dependencies): Likewise.
5108         * modules/quotearg (Dependencies): Likewise.
5109         * modules/unicase/locale-language (Dependencies): Likewise.
5110         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5111         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5112         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5113         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5114         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5115         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5116         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5117         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5118         * modules/vasnprintf-posix (Dependencies): Likewise.
5119         * modules/wcrtomb (Dependencies): Likewise.
5120         * modules/wcsnrtombs (Dependencies): Likewise.
5121         * modules/wcsrtombs (Dependencies): Likewise.
5122
5123 2011-02-12  Bruno Haible  <bruno@clisp.org>
5124
5125         setlocale: Workaround native Windows bug.
5126         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5127         succeeds but sets LC_CTYPE to "C", report a failure.
5128         * tests/test-setlocale2.sh: New file.
5129         * tests/test-setlocale2.c: New file.
5130         * modules/setlocale-tests (Files): Add the new files.
5131         (Makefile.am): Enable test-setlocale2.sh test.
5132         * doc/posix-functions/setlocale.texi: Mention workaround.
5133
5134 2011-02-11  Bruno Haible  <bruno@clisp.org>
5135
5136         Tests for module 'setlocale'.
5137         * modules/setlocale-tests: New file.
5138         * tests/test-setlocale1.sh: New file.
5139         * tests/test-setlocale1.c: New file.
5140
5141         New module 'setlocale'.
5142         * lib/locale.in.h (setlocale): New declaration.
5143         * lib/setlocale.c: New file, based on
5144         gettext/gettext-runtime/intl/setlocale.c.
5145         * m4/setlocale.m4: New file.
5146         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5147         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5148         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5149         REPLACE_SETLOCALE.
5150         * modules/setlocale: New file.
5151         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5152         * doc/posix-functions/setlocale.texi: Mention the new module.
5153
5154 2011-02-11  Bruno Haible  <bruno@clisp.org>
5155
5156         Prepare for locale dependent tests on mingw.
5157         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5158         because it has the wrong locale encoding.
5159         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5160         French_France.1252 instead of "fr".
5161         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5162         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5163         because it has the wrong locale encoding.
5164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5165         native Windows, try Turkish_Turkey.65001.
5166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5167         Chinese_China.54936.
5168
5169         Prepare for locale dependent tests on mingw.
5170         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5171         differently.
5172         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5173         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5174         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5175         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5176
5177 2011-02-11  Eric Blake  <eblake@redhat.com>
5178
5179         strptime: avoid compiler warnings
5180         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5181         compiler warnings about dead code.
5182         Reported by Daniel P. Berrange.
5183
5184 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5185
5186         doc: update users.txt
5187         * users.txt: Add rcs.
5188
5189 2011-02-10  John W. Eaton  <jwe@gnu.org>
5190
5191         doc: update users.txt
5192         * users.txt: Add octave.
5193
5194 2011-02-10  Jim Meyering  <meyering@redhat.com>
5195
5196         doc: update users.txt
5197         * users.txt: Add iwhd.
5198
5199 2011-02-09  Bruno Haible  <bruno@clisp.org>
5200
5201         gnulib-tool: Make copyright notice adjustment more robust.
5202         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5203         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5204         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5205         License".
5206         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5207
5208 2011-02-06  Bruno Haible  <bruno@clisp.org>
5209
5210         New module 'towctrans'.
5211         * modules/towctrans: New file.
5212         * lib/wctype.in.h (towctrans): New declaration.
5213         * lib/towctrans.c: New file.
5214         * lib/towctrans-impl.h: New file.
5215         * m4/towctrans.m4: New file.
5216         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5217         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5218         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5219         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5220         * doc/posix-functions/towctrans.texi: Mention the new module.
5221
5222 2011-02-06  Bruno Haible  <bruno@clisp.org>
5223
5224         New module 'wctrans'.
5225         * modules/wctrans: New file.
5226         * lib/wctype.in.h (wctrans): New declaration.
5227         * lib/wctrans.c: New file.
5228         * lib/wctrans-impl.h: New file.
5229         * m4/wctrans.m4: New file.
5230         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5231         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5232         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5233         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5234         * doc/posix-functions/wctrans.texi: Mention the new module.
5235
5236 2011-02-06  Bruno Haible  <bruno@clisp.org>
5237
5238         New module 'iswctype'.
5239         * modules/iswctype: New file.
5240         * lib/wctype.in.h (iswctype): New declaration.
5241         * lib/iswctype.c: New file.
5242         * lib/iswctype-impl.h: New file.
5243         * m4/iswctype.m4: New file.
5244         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5245         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5246         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5247         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5248         * doc/posix-functions/iswctype.texi: Mention the new module and the
5249         HP-UX 11.00 problem.
5250
5251 2011-02-06  Bruno Haible  <bruno@clisp.org>
5252
5253         New module 'wctype'.
5254         * modules/wctype: Change to represent the wctype() substitute.
5255         * lib/wctype.in.h (wctype): New declaration.
5256         * lib/wctype.c: New file.
5257         * lib/wctype-impl.h: New file.
5258         * m4/wctype.m4: New file.
5259         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5260         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5261         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5262         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5263         * doc/posix-functions/wctype.texi: Mention the new module and the
5264         HP-UX 11.00 problem.
5265
5266 2011-02-06  Bruno Haible  <bruno@clisp.org>
5267
5268         wctype-h: Ensure wctype_t and wctrans_t are defined.
5269         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5270         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5271         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5272         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5273         HAVE_WCTRANS_T.
5274         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5275
5276 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5277
5278         flock: fix license typo
5279
5280         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5281         omitted.
5282
5283 2011-02-08  Bruno Haible  <bruno@clisp.org>
5284
5285         Split large sed scripts, for HP-UX sed.
5286         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5287         to avoid HP-UX limit of 99 commands, in the near future.
5288         * modules/stdlib (Makefile.am): Likewise.
5289         * modules/unistd (Makefile.am): Likewise.
5290         * modules/wchar (Makefile.am): Likewise.
5291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5292         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5294
5295 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5296             Bruno Haible  <bruno@clisp.org>
5297
5298         stdlib: improve random_r modularization
5299         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5300         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5301         you also need the random_r module to get this material right.
5302         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5303         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5304         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5305
5306 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5307
5308         stdlib: don't depend on stdint
5309         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5310         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5311         be independent of whether stdint.h is needed.
5312         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5313         here, instead of ...
5314         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5315         struct random_data should be using the random_r module, not just
5316         the stdlib module (which wouldn't make sense: what package needs
5317         just struct random_data without also needing random_r?).
5318         * modules/stdlib (Depends-on): Remove stdint.
5319
5320         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5321         See the thread rooted at
5322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5323         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5324         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5325         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5326         __VMS)); previously it was always included (via fcntl--.h).
5327         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5328         hand; this is good enough for load averages.  Also, do not use
5329         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5330         flags directly if available and don't bother otherwise.  (Packages
5331         that need the extra reliability should use the modules that define
5332         these flags on older platforms that lack them.)
5333         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5334         fcntl-safer.
5335
5336 2011-02-08  Jim Meyering  <meyering@redhat.com>
5337
5338         di-set.h, ino-map.h: add multiple-inclusion guard
5339         Technically, the guard is required only for ino-map.h, due to its
5340         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5341         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5342         * lib/ino-map.h: Likewise.
5343
5344 2011-02-06  Bruno Haible  <bruno@clisp.org>
5345
5346         iswblank: Ensure declaration on glibc systems.
5347         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5348         * modules/iswblank (Dependencies): Add 'extensions'.
5349         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5350
5351 2011-02-06  Bruno Haible  <bruno@clisp.org>
5352
5353         New module 'iswblank'.
5354         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5355         * modules/iswblank: New file.
5356         * modules/wctype-h (Files): Remove lib/iswblank.c.
5357         (Makefile.am): Substitute GNULIB_ISWBLANK.
5358         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5359         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5360         (gl_WCTYPE_H_DEFAULTS): New macro.
5361         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5362         * modules/iswblank-tests: New file.
5363         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5364         * tests/test-wctype-h.c (main): Remove iswblank tests.
5365         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5366         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5367         of 'wctype-h'.
5368         * NEWS: Mention the change.
5369         * modules/mbchar (Depends-on): Add iswblank.
5370
5371 2011-02-08  Bruno Haible  <bruno@clisp.org>
5372
5373         di-set tests: Refactor.
5374         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5375         unnecessary includes.
5376         (ASSERT): Remove macro.
5377         (main): Make C90 compliant by avoiding variable declaration after
5378         statement.
5379         * modules/di-set-tests (Files): Add tests/macros.h.
5380
5381 2011-02-08  Bruno Haible  <bruno@clisp.org>
5382
5383         ino-map tests: Refactor.
5384         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5385         unnecessary includes.
5386         (ASSERT): Remove macro.
5387         (main): Make C90 compliant by avoiding variable declaration after
5388         statement.
5389         * modules/ino-map-tests (Files): Add tests/macros.h.
5390
5391 2011-02-08  Jim Meyering  <meyering@redhat.com>
5392
5393         di-set: add "const" to a cast
5394         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5395         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5396
5397 2011-02-06  Bruno Haible  <bruno@clisp.org>
5398
5399         Rename module 'wctype' to 'wctype-h'.
5400         * modules/wctype-h: Renamed from modules/wctype.
5401         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5402         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5403         (Files, Depends-on, Makefile.am): Update.
5404         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5405         (Files, Makefile.am): Update.
5406         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5407         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5408         * doc/posix-headers/wctype.texi: Update.
5409         * doc/posix-functions/iswalnum.texi: Update.
5410         * doc/posix-functions/iswalpha.texi: Update.
5411         * doc/posix-functions/iswblank.texi: Update.
5412         * doc/posix-functions/iswcntrl.texi: Update.
5413         * doc/posix-functions/iswdigit.texi: Update.
5414         * doc/posix-functions/iswgraph.texi: Update.
5415         * doc/posix-functions/iswlower.texi: Update.
5416         * doc/posix-functions/iswprint.texi: Update.
5417         * doc/posix-functions/iswpunct.texi: Update.
5418         * doc/posix-functions/iswspace.texi: Update.
5419         * doc/posix-functions/iswupper.texi: Update.
5420         * doc/posix-functions/iswxdigit.texi: Update.
5421         * doc/posix-functions/towlower.texi: Update.
5422         * doc/posix-functions/towupper.texi: Update.
5423         * NEWS: Mention the change.
5424         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5425         * modules/mbchar (Dependencies): Likewise.
5426         * modules/mbswidth (Dependencies): Likewise.
5427         * modules/quotearg (Dependencies): Likewise.
5428         * modules/regex (Dependencies): Likewise.
5429         * modules/wcscasecmp (Dependencies): Likewise.
5430         * modules/wcsncasecmp (Dependencies): Likewise.
5431         * modules/wcwidth (Dependencies): Likewise.
5432
5433 2011-02-06  Bruno Haible  <bruno@clisp.org>
5434
5435         New module 'wcswidth'.
5436         * modules/wcswidth: New file.
5437         * lib/wchar.in.h (wcswidth): New declaration.
5438         * lib/wcswidth.c: New file.
5439         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5440         * m4/wcswidth.m4: New file.
5441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5443         REPLACE_WCSWIDTH.
5444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5445         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5446         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5447         * doc/posix-functions/wcswidth.texi: Mention the new module.
5448
5449 2011-02-06  Bruno Haible  <bruno@clisp.org>
5450
5451         New module 'wcstok'.
5452         * modules/wcstok: New file.
5453         * lib/wchar.in.h (wcstok): New declaration.
5454         * lib/wcstok.c: New file.
5455         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5456         * m4/wcstok.m4: New file.
5457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5460         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5461         * doc/posix-functions/wcstok.texi: Mention the new module.
5462
5463 2011-02-06  Bruno Haible  <bruno@clisp.org>
5464
5465         New module 'wcsstr'.
5466         * modules/wcsstr: New file.
5467         * lib/wchar.in.h (wcsstr): New declaration.
5468         * lib/wcsstr.c: New file.
5469         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5470         * m4/wcsstr.m4: New file.
5471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5474         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5475         * doc/posix-functions/wcsstr.texi: Mention the new module.
5476
5477 2011-02-06  Bruno Haible  <bruno@clisp.org>
5478
5479         New module 'wcspbrk'.
5480         * modules/wcspbrk: New file.
5481         * lib/wchar.in.h (wcspbrk): New declaration.
5482         * lib/wcspbrk.c: New file.
5483         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5484         * m4/wcspbrk.m4: New file.
5485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5488         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5489         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5490
5491 2011-02-06  Bruno Haible  <bruno@clisp.org>
5492
5493         New module 'wcsspn'.
5494         * modules/wcsspn: New file.
5495         * lib/wchar.in.h (wcsspn): New declaration.
5496         * lib/wcsspn.c: New file.
5497         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5498         * m4/wcsspn.m4: New file.
5499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5502         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5503         * doc/posix-functions/wcsspn.texi: Mention the new module.
5504
5505 2011-02-06  Bruno Haible  <bruno@clisp.org>
5506
5507         New module 'wcscspn'.
5508         * modules/wcscspn: New file.
5509         * lib/wchar.in.h (wcscspn): New declaration.
5510         * lib/wcscspn.c: New file.
5511         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5512         * m4/wcscspn.m4: New file.
5513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5516         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5517         * doc/posix-functions/wcscspn.texi: Mention the new module.
5518
5519 2011-02-06  Bruno Haible  <bruno@clisp.org>
5520
5521         New module 'wcsrchr'.
5522         * modules/wcsrchr: New file.
5523         * lib/wchar.in.h (wcsrchr): New declaration.
5524         * lib/wcsrchr.c: New file.
5525         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5526         * m4/wcsrchr.m4: New file.
5527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5530         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5531         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5532
5533 2011-02-06  Bruno Haible  <bruno@clisp.org>
5534
5535         New module 'wcschr'.
5536         * modules/wcschr: New file.
5537         * lib/wchar.in.h (wcschr): New declaration.
5538         * lib/wcschr.c: New file.
5539         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5540         * m4/wcschr.m4: New file.
5541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5544         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5545         * doc/posix-functions/wcschr.texi: Mention the new module.
5546
5547 2011-02-06  Bruno Haible  <bruno@clisp.org>
5548
5549         New module 'wcsdup'.
5550         * modules/wcsdup: New file.
5551         * lib/wchar.in.h (wcsdup): New declaration.
5552         * lib/wcsdup.c: New file.
5553         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5554         * m4/wcsdup.m4: New file.
5555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5558         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5559         * doc/posix-functions/wcsdup.texi: Mention the new module.
5560
5561 2011-02-06  Bruno Haible  <bruno@clisp.org>
5562
5563         New module 'wcsxfrm'.
5564         * modules/wcsxfrm: New file.
5565         * lib/wchar.in.h (wcsxfrm): New declaration.
5566         * lib/wcsxfrm.c: New file.
5567         * lib/wcsxfrm-impl.h: New file.
5568         * m4/wcsxfrm.m4: New file.
5569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5572         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5573         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5574
5575 2011-02-06  Bruno Haible  <bruno@clisp.org>
5576
5577         New module 'wcscoll'.
5578         * modules/wcscoll: New file.
5579         * lib/wchar.in.h (wcscoll): New declaration.
5580         * lib/wcscoll.c: New file.
5581         * lib/wcscoll-impl.h: New file.
5582         * m4/wcscoll.m4: New file.
5583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5586         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5587         * doc/posix-functions/wcscoll.texi: Mention the new module.
5588
5589 2011-02-06  Bruno Haible  <bruno@clisp.org>
5590
5591         New module 'wcsncasecmp'.
5592         * modules/wcsncasecmp: New file.
5593         * lib/wchar.in.h (wcsncasecmp): New declaration.
5594         * lib/wcsncasecmp.c: New file.
5595         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5596         * m4/wcsncasecmp.m4: New file.
5597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5600         HAVE_WCSNCASECMP.
5601         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5602         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5603
5604 2011-02-06  Bruno Haible  <bruno@clisp.org>
5605
5606         New module 'wcscasecmp'.
5607         * modules/wcscasecmp: New file.
5608         * lib/wchar.in.h (wcscasecmp): New declaration.
5609         * lib/wcscasecmp.c: New file.
5610         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5611         * m4/wcscasecmp.m4: New file.
5612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5615         HAVE_WCSCASECMP.
5616         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5617         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5618
5619 2011-02-05  Bruno Haible  <bruno@clisp.org>
5620
5621         New module 'wcsncmp'.
5622         * modules/wcsncmp: New file.
5623         * lib/wchar.in.h (wcsncmp): New declaration.
5624         * lib/wcsncmp.c: New file.
5625         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5626         * m4/wcsncmp.m4: New file.
5627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5630         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5631         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5632
5633 2011-02-05  Bruno Haible  <bruno@clisp.org>
5634
5635         New module 'wcscmp'.
5636         * modules/wcscmp: New file.
5637         * lib/wchar.in.h (wcscmp): New declaration.
5638         * lib/wcscmp.c: New file.
5639         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5640         * m4/wcscmp.m4: New file.
5641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5644         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5645         * doc/posix-functions/wcscmp.texi: Mention the new module.
5646
5647 2011-02-05  Bruno Haible  <bruno@clisp.org>
5648
5649         New module 'wcsncat'.
5650         * modules/wcsncat: New file.
5651         * lib/wchar.in.h (wcsncat): New declaration.
5652         * lib/wcsncat.c: New file.
5653         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5654         * m4/wcsncat.m4: New file.
5655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5658         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5659         * doc/posix-functions/wcsncat.texi: Mention the new module.
5660
5661 2011-02-05  Bruno Haible  <bruno@clisp.org>
5662
5663         New module 'wcscat'.
5664         * modules/wcscat: New file.
5665         * lib/wchar.in.h (wcscat): New declaration.
5666         * lib/wcscat.c: New file.
5667         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5668         * m4/wcscat.m4: New file.
5669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5672         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5673         * doc/posix-functions/wcscat.texi: Mention the new module.
5674
5675 2011-02-05  Bruno Haible  <bruno@clisp.org>
5676
5677         New module 'wcpncpy'.
5678         * modules/wcpncpy: New file.
5679         * lib/wchar.in.h (wcpncpy): New declaration.
5680         * lib/wcpncpy.c: New file.
5681         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5682         * m4/wcpncpy.m4: New file.
5683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5685         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5686         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5687         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5688
5689 2011-02-05  Bruno Haible  <bruno@clisp.org>
5690
5691         New module 'wcsncpy'.
5692         * modules/wcsncpy: New file.
5693         * lib/wchar.in.h (wcsncpy): New declaration.
5694         * lib/wcsncpy.c: New file.
5695         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5696         * m4/wcsncpy.m4: New file.
5697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5700         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5701         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5702
5703 2011-02-05  Bruno Haible  <bruno@clisp.org>
5704
5705         New module 'wcpcpy'.
5706         * modules/wcpcpy: New file.
5707         * lib/wchar.in.h (wcpcpy): New declaration.
5708         * lib/wcpcpy.c: New file.
5709         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5710         * m4/wcpcpy.m4: New file.
5711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5713         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5714         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5715         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5716
5717 2011-02-05  Bruno Haible  <bruno@clisp.org>
5718
5719         New module 'wcscpy'.
5720         * modules/wcscpy: New file.
5721         * lib/wchar.in.h (wcscpy): New declaration.
5722         * lib/wcscpy.c: New file.
5723         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5724         * m4/wcscpy.m4: New file.
5725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5728         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5729         * doc/posix-functions/wcscpy.texi: Mention the new module.
5730
5731 2011-02-05  Bruno Haible  <bruno@clisp.org>
5732
5733         New module 'wcsnlen'.
5734         * modules/wcsnlen: New file.
5735         * lib/wchar.in.h (wcsnlen): New declaration.
5736         * lib/wcsnlen.c: New file.
5737         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5738         * m4/wcsnlen.m4: New file.
5739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5742         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5743         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5744
5745 2011-02-05  Bruno Haible  <bruno@clisp.org>
5746
5747         New module 'wcslen'.
5748         * modules/wcslen: New file.
5749         * lib/wchar.in.h (wcslen): New declaration.
5750         * lib/wcslen.c: New file.
5751         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5752         * m4/wcslen.m4: New file.
5753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5756         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5757         * doc/posix-functions/wcslen.texi: Mention the new module.
5758
5759 2011-02-05  Bruno Haible  <bruno@clisp.org>
5760
5761         New module 'wmemset'.
5762         * modules/wmemset: New file.
5763         * lib/wchar.in.h (wmemset): New declaration.
5764         * lib/wmemset.c: New file.
5765         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5766         * m4/wmemset.m4: New file.
5767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5769         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5770         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5771         * doc/posix-functions/wmemset.texi: Mention the new module.
5772
5773 2011-02-05  Bruno Haible  <bruno@clisp.org>
5774
5775         New module 'wmemmove'.
5776         * modules/wmemmove: New file.
5777         * lib/wchar.in.h (wmemmove): New declaration.
5778         * lib/wmemmove.c: New file.
5779         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5780         * m4/wmemmove.m4: New file.
5781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5783         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5784         HAVE_WMEMMOVE.
5785         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5786         * doc/posix-functions/wmemmove.texi: Mention the new module.
5787
5788 2011-02-05  Bruno Haible  <bruno@clisp.org>
5789
5790         New module 'wmemcpy'.
5791         * modules/wmemcpy: New file.
5792         * lib/wchar.in.h (wmemcpy): New declaration.
5793         * lib/wmemcpy.c: New file.
5794         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5795         * m4/wmemcpy.m4: New file.
5796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5798         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5799         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5800         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5801
5802 2011-02-05  Bruno Haible  <bruno@clisp.org>
5803
5804         New module 'wmemcmp'.
5805         * modules/wmemcmp: New file.
5806         * lib/wchar.in.h (wmemcmp): New declaration.
5807         * lib/wmemcmp.c: New file.
5808         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5809         * m4/wmemcmp.m4: New file.
5810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5812         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5813         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5814         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5815
5816 2011-02-07  Jim Meyering  <meyering@redhat.com>
5817
5818         di-set, ino-map: new modules, from coreutils
5819         * lib/di-set.c: New file.
5820         * lib/di-set.h: Likewise.
5821         * lib/ino-map.c: Likewise.
5822         * lib/ino-map.h: Likewise.
5823         * modules/di-set: Likewise.
5824         * modules/di-set-tests: Likewise.
5825         * modules/ino-map: Likewise.
5826         * modules/ino-map-tests: Likewise.
5827         * tests/test-di-set.c: Likewise.
5828         * tests/test-ino-map.c: Likewise.
5829
5830 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         getloadavg: merge minor changes from Emacs
5833
5834         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5835         (getloadavg): Use memset, not bzero.
5836
5837         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5838         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5839         clash (bug#86).
5840
5841 2010-11-14  Bruno Haible  <bruno@clisp.org>
5842
5843         Allow multiple gnulib generated replacements to coexist.
5844         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5845         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5846         * lib/langinfo.in.h (nl_item): Likewise.
5847         * lib/math.in.h (_NaN, NAN): Likewise.
5848         * lib/netdb.in.h (struct addrinfo): Likewise.
5849         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5850         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5851         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5852         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5853         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5854         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5855         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5856         pthread_mutexattr_init, pthread_mutexattr_settype,
5857         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5858         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5859         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5860         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5861         * lib/sched.in.h (struct sched_param): Likewise.
5862         * lib/se-selinux.in.h (security_class_t, security_context_t,
5863         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5864         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5865         lsetfilecon, fsetfilecon, security_check_context,
5866         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5867         Likewise.
5868         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5869         Likewise.
5870         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5871         _gl_function_taking_int_returning_void_t, union sigval,
5872         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5873         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5874         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5875         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5876         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5877         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5878         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5879         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5880         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5881         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5882         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5883         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5884         socklen_t, rpl_fd_isset): Likewise.
5885         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5886         * lib/sys_time.in.h (struct timeval): Likewise.
5887         * lib/sys_times.in.h (struct tms): Likewise.
5888         * lib/sys_utsname.in.h (struct utsname):
5889         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5890         * lib/unistd.in.h (getpagesize): Likewise.
5891         * lib/wchar.in.h (mbstate_t): Likewise.
5892         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5893         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5894         towlower, towupper): Likewise.
5895         Reported by Sam Steingold <sds@gnu.org>.
5896
5897 2011-02-05  Eric Blake  <eblake@redhat.com>
5898
5899         unsetenv: work around Haiku issues
5900         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5901         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5902
5903 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5904
5905         libposix: avoid calling error() within libposix
5906         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5907         is defined.
5908
5909 2011-02-05  Eric Blake  <eblake@redhat.com>
5910
5911         strerror_r-posix: port to cygwin
5912         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5913         implementation.
5914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5915         * tests/test-strerror_r.c (main): Fix test.
5916         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5917         issue.
5918
5919 2011-02-05  Bruno Haible  <bruno@clisp.org>
5920
5921         New module 'wmemchr'.
5922         * modules/wmemchr: New file.
5923         * lib/wchar.in.h (wmemchr): New declaration.
5924         * lib/wmemchr.c: New file.
5925         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5926         * m4/wmemchr.m4: New file.
5927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5929         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5930         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5931         * doc/posix-functions/wmemchr.texi: Mention the new module.
5932
5933 2011-02-04  Eric Blake  <eblake@redhat.com>
5934
5935         fdopendir: detect FreeBSD bug
5936         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5937         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5938
5939 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5940
5941         stdbool: do not define HAVE_STDBOOL_H
5942         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5943         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5944         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5945         imported from the latest Autoconf git.  It was motivated by Emacs,
5946         which uses gnulib but does not need HAVE_STDBOOL_H.
5947
5948 2011-02-04  Bruno Haible  <bruno@clisp.org>
5949
5950         wcsnrtombs: Prepare for new module wwcsnrtombs.
5951         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5952         * lib/wcsnrtombs.c: Include it.
5953         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5954
5955         wcsrtombs: Prepare for new module wwcsrtombs.
5956         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5957         * lib/wcsrtombs.c: Include it.
5958         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5959
5960         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5961         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5962         * lib/mbsnrtowcs.c: Include it.
5963         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5964
5965         mbsrtowcs: Prepare for new module mbsrtowwcs.
5966         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5967         * lib/mbsrtowcs.c: Include it.
5968         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5969
5970 2011-02-04  Bruno Haible  <bruno@clisp.org>
5971
5972         vasnprintf: Reduce use of malloc for small format strings.
5973         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5974         (arguments): Add room for the first 7 arguments.
5975         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5976         (char_directives, u8_directives, u16_directives, u32_directives): Add
5977         room for the first 7 directives.
5978         * lib/printf-parse.c: Include <string.h>.
5979         (PRINTF_PARSE): Change memory handling code so that it uses the first
5980         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5981         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5982         Reported by Pádraig Brady <P@draigbrady.com>.
5983
5984 2011-01-31  Eric Blake  <eblake@redhat.com>
5985
5986         dup2: work around Haiku bug
5987         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5988         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5989         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5990         * tests/test-dup2.c (main): Enhance test.
5991
5992 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5993
5994         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5995         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5996         declared by eglibc 2.11.2.
5997         * lib/stdio.in.h: Likewise.
5998
5999 2011-01-31  Eric Blake  <eblake@redhat.com>
6000
6001         ignore-value: add missing test dependency
6002         * tests/test-ignore-value.c: Revert previous change; stdio.h
6003         provides off_t.
6004         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6005
6006 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6007
6008         mktime: clarify long_int width checking
6009         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6010         the top level, to make it clearer that the assumption about
6011         long_int width is being checked.  See
6012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6013
6014 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6015
6016         ignore-value: Fix self-test.
6017         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6018
6019 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6020
6021         TYPE_MAXIMUM: avoid theoretically undefined behavior
6022         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6023         negative number, which the C Standard says has undefined behavior.
6024         In practice this is not a problem, but might as well do it by the book.
6025         Reported by Rich Felker and Eric Blake; see
6026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6027         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6028         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6030         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6031         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6032         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6033
6034         mktime: #undef mktime before #defining it
6035         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6036
6037         mktime: systematically normalize tm_isdst comparisons
6038         * lib/mktime.c (isdst_differ): New function.
6039         (__mktime_internal): Use it systematically for all isdst comparisons.
6040         This completes the fix for libc BZ #6723, and removes the need for
6041         normalizing tm_isdst.  See
6042         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6043         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6044
6045         mktime: fix some integer overflow issues and sidestep the rest
6046
6047         This was prompted by a bug report by Benjamin Lindner for MinGW
6048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6049         His bug is due to signed integer overflow (0 - INT_MIN), and I
6050         I scanned through mktime.c looking for other integer overflow
6051         problems, fixing all the bugs I found.
6052
6053         Although the C Standard says the resulting code is still not safe
6054         in the presence of integer overflow, in practice it should be good
6055         enough for all real-world two's-complement implementations, except
6056         for debugging environments that deliberately trap on integer
6057         overflow (e.g., gcc -ftrapv).
6058
6059         * lib/mktime.c (WRAPV): New macro.
6060         (SHR): Also check that long_int and time_t shift right in the
6061         usual way, before using the fast-but-unportable method.
6062         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6063         used.  The code already assumed two's complement, so there's
6064         no need to test for alternatives.  All uses removed.
6065         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6066         the C standard.  Problem reported by Rich Felker in
6067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6068         (twos_complement_arithmetic): Also check long_int and time_t.
6069         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6070         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6071         (__mktime_internal): Avoid integer overflow with unary subtraction
6072         in two instances where -1 - X is an adequate replacement for -X,
6073         since the calculations are approximate.
6074
6075 2011-01-29  Eric Blake  <eblake@redhat.com>
6076
6077         mktime: avoid infinite loop
6078         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6079         type; behavior is still undefined but portable to all known targets.
6080         Reported by Rich Felker.
6081
6082 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6083
6084         rename, unlink, same-inode: Relicense.
6085         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6086         * modules/unlink (License): Likewise.
6087         * modules/same-inode (License): Likewise.
6088
6089 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6090
6091         mktime: avoid problems on NetBSD 5 / i386
6092         * lib/mktime.c (long_int): New type.  This works around a problem
6093         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6094         but time_t is 64 bits, and where I expect the existing code is
6095         wrong in some cases.
6096         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6097         (ydhms_diff): Bring back the compile-time check for wide-enough
6098         year and yday.
6099
6100         mktime: fix misspelling in comment
6101         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6102         This merges all recent glibc changes of importance.
6103
6104 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6105
6106         move-if-change: cope with concurrent mv of identical file.
6107         * build-aux/move-if-change (CMPPROG): Accept environment
6108         variable as an override for `cmp'.
6109         (usage): Document CMPPROG.
6110         Adjust comparison to drop stdout.  Cope with failure of mv if
6111         the target file exists and is identical to the source, for
6112         parallel builds.
6113         Report from H.J. Lu against binutils in PR binutils/12283.
6114
6115 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6116
6117         * users.txt: Mention sharutils.
6118
6119 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6120
6121         * users.txt: Mention OATH Toolkit.
6122
6123 2011-01-27  Bruno Haible  <bruno@clisp.org>
6124
6125         Prepare for supporting FreeBSD 10.
6126         * build-aux/config.libpath: Remove handling of freebsd1*.
6127
6128 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6129
6130         Prepare for supporting FreeBSD 10.
6131         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6132         match FreeBSD 10.0.
6133
6134 2011-01-27  Bruno Haible  <bruno@clisp.org>
6135
6136         vma-iter, get-rusage-as: Add OpenBSD support.
6137         * modules/vma-iter (configure.ac): Test for mquery.
6138         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6139         * lib/vma-iter.c: Include <sys/mman.h>.
6140         (vma_iterate): Add an implementation based on mquery().
6141         * lib/resource-ext.h (get_rusage_as): Update comments.
6142         * lib/get-rusage-as.c: Likewise.
6143         * lib/get-rusage-data.c: Likewise.
6144
6145 2011-01-26  Karl Berry  <karl@gnu.org>
6146
6147         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6148         variables to make it easier to override the makeinfo program used.
6149
6150 2011-01-26  Eric Blake  <eblake@redhat.com>
6151
6152         fcntl: work around Haiku F_DUPFD bugs
6153         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6154         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6155         cloexec bit on duplication.
6156         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6157
6158 2011-01-26  Bruno Haible  <bruno@clisp.org>
6159
6160         Enable memory leak tests on AIX.
6161         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6162         * tests/test-fprintf-posix3.c (main): Likewise.
6163
6164 2011-01-26  Bruno Haible  <bruno@clisp.org>
6165
6166         Tests for module 'get-rusage-data'.
6167         * modules/get-rusage-data-tests: New file.
6168         * tests/test-get-rusage-data.c: New file.
6169
6170         New module 'get-rusage-data'.
6171         * lib/resource-ext.h (get_rusage_data): New declaration.
6172         * lib/get-rusage-data.c: New file.
6173         * modules/get-rusage-data: New file.
6174
6175 2011-01-25  Bruno Haible  <bruno@clisp.org>
6176
6177         get-rusage-as: Allow for easier testing.
6178         * lib/resource-ext.h (get_rusage_as): Add comment.
6179         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6180         (main): New function for interactive testing.
6181
6182 2011-01-25  Bruno Haible  <bruno@clisp.org>
6183
6184         vma-iter: Treat Haiku like BeOS.
6185         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6186         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6187
6188 2011-01-25  Eric Blake  <eblake@redhat.com>
6189
6190         c-stack: fix regression on cygwin when libsigsegv is present
6191         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6192
6193 2011-01-24  Bruno Haible  <bruno@clisp.org>
6194
6195         vma-iter: Avoid empty intervals.
6196         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6197         on an empty interval.
6198
6199 2011-01-24  Jim Meyering  <meyering@redhat.com>
6200
6201         u64: remove unnecessary #include
6202         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6203
6204 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6205
6206         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6207         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6208
6209 2011-01-23  Bruno Haible  <bruno@clisp.org>
6210
6211         New module 'vma-iter'.
6212         * lib/vma-iter.h: New file.
6213         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6214         * modules/vma-iter: New file.
6215         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6216         for get_rusage_as_via_iterator.
6217         (vma_iterate_callback): New function.
6218         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6219         * modules/get-rusage-as (Depends-on): Add vma-iter.
6220
6221 2011-01-23  Bruno Haible  <bruno@clisp.org>
6222
6223         uninorm: Tweak includes.
6224         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6225         Reported by Jim Meyering.
6226
6227 2011-01-23  Bruno Haible  <bruno@clisp.org>
6228
6229         get-rusage-as: Improve on NetBSD.
6230         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6231         /proc, like on FreeBSD.
6232
6233 2011-01-23  Jim Meyering  <meyering@redhat.com>
6234
6235         xreadlink.h: remove unnecessary #include
6236         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6237
6238         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6239         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6240
6241 2011-01-23  Bruno Haible  <bruno@clisp.org>
6242
6243         get-rusage-as: Fix bug.
6244         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6245         original limit when aborting the first loop.
6246
6247 2011-01-23  Bruno Haible  <bruno@clisp.org>
6248
6249         wctype: Ensure valid C syntax.
6250         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6251         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6252
6253 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6257         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6258         as they are needed only for configure's test case.
6259         This removes two unnecessary symbols from config.h.
6260
6261         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6262         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6264         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6265         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6266         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6267         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6268         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6269         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6270         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6271         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6273         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6274         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6275         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6276         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6277         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6278         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6279
6280 2011-01-21  Eric Blake  <eblake@redhat.com>
6281
6282         maintainer-makefile: work with older git for submodule check
6283         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6284         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6285         Reported by Matthias Bolte.
6286
6287         bootstrap: minor portability fixes
6288         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6289         (usage): Omit leading capital and trailing . on help phrases, per
6290         GNU Coding Standards.
6291         (check_versions, top level): Prefix messages with script name.
6292
6293 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6294
6295         bootstrap: support --no-git option
6296         * build-aux/bootstrap: Add --no-git option, to be used when
6297         --gnulib-srcdir points to the exact desired checkout.
6298
6299 2011-01-21  Eric Blake  <eblake@redhat.com>
6300
6301         strerror_r-posix: work with glibc 2.13
6302         * lib/strerror_r.c (strerror_r): Fix return type.
6303
6304 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6305             Bruno Haible  <bruno@clisp.org>
6306
6307         uN_strstr: New unit tests.
6308         * modules/unistr/u8-strstr-tests: New file.
6309         * modules/unistr/u16-strstr-tests: New file.
6310         * modules/unistr/u32-strstr-tests: New file.
6311         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6312         * tests/unistr/test-u8-strstr.c: New file.
6313         * tests/unistr/test-u16-strstr.c: New file.
6314         * tests/unistr/test-u32-strstr.c: New file.
6315
6316 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6317             Bruno Haible  <bruno@clisp.org>
6318
6319         Make uN_strstr functions O(n) worst-case.
6320         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6321         16-bit and 32-bit unit cases, use the unibyte algorithm from
6322         lib/mbsstr.c.
6323         * lib/unistr/u8-strstr.c: Include <string.h>.
6324         (UNIT_IS_UINT8_T): New macro.
6325         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6326         (U_STRLEN, U_STRNLEN): New macros.
6327         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6328         (U_STRLEN, U_STRNLEN): New macros.
6329         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6330         (configure.ac): Update required libunistring version.
6331         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6332         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6333         malloca.
6334         (configure.ac): Update required libunistring version.
6335         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6336         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6337         malloca.
6338         (configure.ac): Update required libunistring version.
6339
6340 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6341             Bruno Haible  <bruno@clisp.org>
6342
6343         Prepare for faster uN_strstr functions.
6344         * lib/str-kmp.h: Support definable UNITs.
6345         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6346         needle_len argument.
6347         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6348         * lib/mbscasestr.c (mbscasestr): Likewise.
6349
6350 2011-01-21  Pádraig Brady <P@draigBrady.com>
6351
6352         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6353         * tests/test-malloca.c (main): Unset the environment variable
6354         to greatly speed up the test.
6355         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6356         * modules/malloca-tests: Depend on unsetenv.
6357
6358 2011-01-21  Pádraig Brady <P@draigBrady.com>
6359
6360         ignore-value: remove stdint dependency
6361         * lib/ignore-value.h: Remove <stdint.h>
6362         * modules/ignore-value: Remove stdint dependency.
6363
6364 2011-01-21  Jim Meyering  <meyering@redhat.com>
6365
6366         maint.mk: adjust variable name to be consistent with other gl_ vars
6367         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6368         to be lower case.
6369
6370 2011-01-20  Jim Meyering  <meyering@redhat.com>
6371
6372         maint.mk: make "check" depend on public-submodule-commit by default
6373         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6374
6375 2011-01-20  Bruno Haible  <bruno@clisp.org>
6376
6377         mbfile, mbiter: Complete change from 2008-12-21.
6378         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6379         * m4/mbiter.m4 (gl_MBITER): Likewise.
6380
6381 2011-01-20  Jim Meyering  <meyering@redhat.com>
6382
6383         init.sh: insert space between each function name and "()"
6384         * tests/init.sh: Make it a little easier to see that a function's
6385         name is "warn_", and not "warn" when looking at the first part of
6386         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6387
6388 2011-01-20  Jim Meyering  <meyering@redhat.com>
6389
6390         mountlist: clean up code formatting
6391         * lib/mountlist.c (read_file_system_list): Split a long line,
6392         correct bracing style, use NULL in place of "(struct statfs *)0",
6393         don't parenthesize return value, add spaces around "=" and after
6394         ";-in-for-stmt".
6395
6396 2011-01-14  Markus Duft <mduft@gentoo.org>
6397
6398         mountlist: add support for Interix
6399         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6400         Apply statvfs to all entries of /dev/fs.
6401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6402         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6403
6404 2011-01-20  Jim Meyering  <meyering@redhat.com>
6405
6406         maint.mk: improve the public-submodule-commit rule
6407         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6408         to suppress printing of its commands... unless V=1.
6409         Add git submodule's --quiet option to suppress printing of e.g.,
6410         "Entering gnulib" output.
6411         "cd" into $(srcdir) before running git submodule.
6412
6413 2011-01-20  Bruno Haible  <bruno@clisp.org>
6414
6415         include_next: Fix bug introduced on 2011-01-18.
6416         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6417         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6418         ac_cv_header_... variable if the second argument is not 'check'.
6419         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6420         gl_NEXT_HEADERS_INTERNAL.
6421
6422 2011-01-20  Bruno Haible  <bruno@clisp.org>
6423
6424         Allow the user to avoid the GNULIB_TEST_* macros.
6425         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6426         Suggested by Paul Eggert.
6427
6428 2011-01-14  Jim Meyering  <meyering@redhat.com>
6429
6430         bootstrap: avoid failure when there is no .gitmodules file
6431         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6432         has been assigned to, even when its value is the empty string.
6433         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6434         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6435         Reported by John W. Eaton <jwe@gnu.org>.
6436
6437 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         assume <ctype.h>, ..., <time.h> exist
6440         For years gnulib has been assuming the existence of the headers
6441         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6442         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6443         them, since they don't appear to be needed.
6444         * README (Portability guidelines): Document this.
6445         * lib/flock.c: Assume <fcntl.h> exists.
6446         * lib/regex_internal.h: Assume <locale.h> exists.
6447         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6449         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6450         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6451         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6452         * m4/regex.m4 (gl_REGEX): Likewise.
6453         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6454         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6455         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6456         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6457         * tests/test-argp.c: Likewise.
6458         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6459
6460         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6461         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6462         AA_APPLE_UNIVERSAL_BUILD.  See
6463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6464         * NEWS: Document this.
6465
6466 2011-01-19  Eric Blake  <eblake@redhat.com>
6467
6468         c-stack: assume stack overflow if SA_SIGINFO unsupported
6469         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6470         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6471         sigaction will work.
6472         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6473         behavior match Linux.
6474         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6475
6476         stdbool-tests: accomodate Haiku
6477         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6478
6479         binary-io: fix O_TEXT on Haiku
6480         * modules/binary-io (Depends-on): Add fcntl-h.
6481         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6482         than blindly undefining O_TEXT.
6483         Reported by Scott McCreary.
6484
6485 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         include_next: do not check for standard headers like stddef.h
6488
6489         I found this problem when modifying Emacs to use gnulib.
6490         I noticed that it added HAVE_STDDEF_H to config.h, even though
6491         gnulib always assumes <stddef.h> exists as per README and this
6492         symbol is unnecessary.
6493         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6494         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6495         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6496         faster for headers like stddef.h that are known to exist.
6497         (gl_CHECK_NEXT_HEADERS): Use it.
6498         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6499         rather than gl_CHECK_NEXT_HEADERS.
6500         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6501         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6502
6503 2011-01-18  Eric Blake  <eblake@redhat.com>
6504
6505         ansi-c++-opt: skip C++ dependency style if C++ is unused
6506         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6507         tests when we know C++ compilation is not desired.
6508         Reported by Scott McCreary.
6509
6510 2011-01-18  Bruno Haible  <bruno@clisp.org>
6511
6512         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6513         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6514         (main): Perform test also when getrlimit and setrlimit don't exist or
6515         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6516         limiting the address space size using setrlimit, compare the address
6517         space size before and after the the test.
6518         * tests/test-dprintf-posix2.c: Likewise.
6519         * tests/test-fprintf-posix3.sh: Update skip messages.
6520         * tests/test-dprintf-posix2.sh: Likewise.
6521         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6522         * modules/dprintf-posix-tests (Depends-on): Likewise.
6523         Reported by Bruce Korb <bkorb@gnu.org> and
6524         Gary V. Vaughan <gary@gnu.org>.
6525
6526 2011-01-18  Bruno Haible  <bruno@clisp.org>
6527
6528         get-rusage-as: Improvement for Cygwin.
6529         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6530         areas that are merely reserved.
6531
6532 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6533
6534         strftime: remove dependencies on multibyte modules
6535
6536         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6537         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6538         only if __osf__ is defined, and I suspect OSF doesn't need these
6539         other modules.  If my guess is wrong, we'll need to come up with a
6540         variant of strftime that doesn't need the multibyte modules.
6541
6542         I discovered this problem when attempting modify Emacs to use the
6543         strftime module.  With the previous gnulib, this caused Emacs to
6544         need 31 new files, ranging from lib/config.charset to
6545         m4/wint_t.m4.  This was overkill and I expect would be offputting
6546         to the Emacs maintainers.  After this change, only 6 new files are
6547         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6548         stdbool.m4, and tm_gmtoff.m4.
6549
6550         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6551         Suggested by Bruno Haible in
6552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6553         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6554         and do not check for wchar.h.
6555         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6556         (Depends-on): Remove mbrlen, mbsinit, wchar.
6557
6558 2011-01-18  Bruno Haible  <bruno@clisp.org>
6559
6560         Tests for module 'get-rusage-as'.
6561         * modules/get-rusage-as-tests: New file.
6562         * tests/test-get-rusage-as.c: New file.
6563
6564         New module 'get-rusage-as'.
6565         * modules/get-rusage-as: New file.
6566         * lib/resource-ext.h: New file.
6567         * lib/get-rusage-as.c: New file.
6568
6569 2011-01-17  Eric Blake  <eblake@redhat.com>
6570
6571         sigaction: relax license from LGPLv3+ to LGPLv2+
6572         * modules/sigaction (License): Relax to LGPLv2+.
6573
6574 2011-01-14  Bruno Haible  <bruno@clisp.org>
6575
6576         filemode: Make function declarations usable in C++ mode.
6577         * lib/filemode.h: Enclose function declarations in extern "C" block.
6578         Reported by John W. Eaton <jwe@gnu.org>.
6579
6580 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6581
6582         save-cwd: no longer include "xgetcwd.h"
6583         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6584         This avoids a compilation failure in projects that use save-cwd
6585         without also using the xgetcwd module.
6586
6587 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6588
6589         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6590         This is so that a program like Emacs, which needs only dtoastr,
6591         does not have to bother with distributing and compiling ftoastr
6592         and ldtoastr.
6593         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6594         * modules/dtoastr, modules/ldtoastr: New files.
6595         * modules/ftoastr: Now works just for 'float'.
6596         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6597         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6598         dtoastr.c, ldtoastr.c.
6599
6600 2011-01-11  Jim Meyering  <meyering@redhat.com>
6601
6602         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6603         There is no need to work around the lack of the fchdir function,
6604         since gnulib can now provide a replacement when required.
6605         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6606         * modules/save-cwd (Depends-on): Add fchdir.
6607
6608 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         openat, save-cwd: avoid xmalloc
6611
6612         This removes a direct (but undocumented) dependency of openat on
6613         xalloc, along with an indirect dependency via save-cwd.  It also
6614         removes a dependency of save-cwd on xgetcwd, and thereby
6615         indirectly on xalloc.  This change causes the openat substitute
6616         to fall back on save_cwd when memory is tight, and for save_cwd to
6617         fail instead of dying when memory is tight, but that's good enough.
6618         Problem and initial idea for fix reported by Bastien Roucaries in
6619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6620
6621         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6622         xalloc.h (for xmalloc).
6623         (openat_proc_name): Use malloc, not xmalloc.
6624         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6625         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6626
6627         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6628         This avoids heap allocation for file names whose lengths are in
6629         the range 512..1023, with the upper bound increasing to at most
6630         4031 depending on the platform's PATH_MAX.  (We do not want
6631         pathmax.h here as it might supply a non-constant PATH_MAX.)
6632         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6633         Perhaps they should be moved to malloca.h?
6634         (OPENAT_BUFFER_SIZE): Use them.
6635
6636 2011-01-10  Bruno Haible  <bruno@clisp.org>
6637
6638         doc: Update users.txt.
6639         * users.txt: Add recutils.
6640
6641 2011-01-09  Karl Berry  <karl@gnu.org>
6642
6643         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6644
6645         * doc/configmake.texi: New file.
6646         * doc/gnulib.texi: Include it.
6647         * modules/configmake: Move documentation from here.
6648
6649 2011-01-09  Bruno Haible  <bruno@clisp.org>
6650
6651         Update to Unicode 6.0.0.
6652         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6653         (get_lbp): Update for Unicode 6.0.0.
6654         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6655         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6656         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6657         U+11001, U+11038..U+11046. Remove U+06DE.
6658         (uc_width): Fix bounds of planes.
6659         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6660         lib/uniwidth/width.c.
6661         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6662         trailing whitespace removed.
6663         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6664         without comments, but with the original copyright notice.
6665         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6666         * lib/unicase/ignorable.h: Likewise.
6667         * lib/unicase/tocasefold.h: Likewise.
6668         * lib/unicase/tolower.h: Likewise.
6669         * lib/unicase/totitle.h: Likewise.
6670         * lib/unicase/toupper.h: Likewise.
6671         * lib/unictype/bidi_of.h: Likewise.
6672         * lib/unictype/blocks.h: Likewise.
6673         * lib/unictype/categ_C.h: Likewise.
6674         * lib/unictype/categ_Cn.h: Likewise.
6675         * lib/unictype/categ_L.h: Likewise.
6676         * lib/unictype/categ_Ll.h: Likewise.
6677         * lib/unictype/categ_Lm.h: Likewise.
6678         * lib/unictype/categ_Lo.h: Likewise.
6679         * lib/unictype/categ_Lu.h: Likewise.
6680         * lib/unictype/categ_M.h: Likewise.
6681         * lib/unictype/categ_Mc.h: Likewise.
6682         * lib/unictype/categ_Me.h: Likewise.
6683         * lib/unictype/categ_Mn.h: Likewise.
6684         * lib/unictype/categ_N.h: Likewise.
6685         * lib/unictype/categ_Nd.h: Likewise.
6686         * lib/unictype/categ_No.h: Likewise.
6687         * lib/unictype/categ_P.h: Likewise.
6688         * lib/unictype/categ_Po.h: Likewise.
6689         * lib/unictype/categ_S.h: Likewise.
6690         * lib/unictype/categ_Sc.h: Likewise.
6691         * lib/unictype/categ_Sk.h: Likewise.
6692         * lib/unictype/categ_Sm.h: Likewise.
6693         * lib/unictype/categ_So.h: Likewise.
6694         * lib/unictype/categ_of.h: Likewise.
6695         * lib/unictype/combining.h: Likewise.
6696         * lib/unictype/ctype_alnum.h: Likewise.
6697         * lib/unictype/ctype_alpha.h: Likewise.
6698         * lib/unictype/ctype_graph.h: Likewise.
6699         * lib/unictype/ctype_lower.h: Likewise.
6700         * lib/unictype/ctype_print.h: Likewise.
6701         * lib/unictype/ctype_punct.h: Likewise.
6702         * lib/unictype/ctype_upper.h: Likewise.
6703         * lib/unictype/decdigit.h: Likewise.
6704         * lib/unictype/digit.h: Likewise.
6705         * lib/unictype/numeric.h: Likewise.
6706         * lib/unictype/pr_alphabetic.h: Likewise.
6707         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6708         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6709         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6710         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6711         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6712         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6713         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6714         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6715         * lib/unictype/pr_case_ignorable.h: Likewise.
6716         * lib/unictype/pr_cased.h: Likewise.
6717         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6718         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6719         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6720         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6721         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6722         * lib/unictype/pr_combining.h: Likewise.
6723         * lib/unictype/pr_composite.h: Likewise.
6724         * lib/unictype/pr_currency_symbol.h: Likewise.
6725         * lib/unictype/pr_decimal_digit.h: Likewise.
6726         * lib/unictype/pr_deprecated.h: Likewise.
6727         * lib/unictype/pr_format_control.h: Likewise.
6728         * lib/unictype/pr_grapheme_base.h: Likewise.
6729         * lib/unictype/pr_grapheme_extend.h: Likewise.
6730         * lib/unictype/pr_grapheme_link.h: Likewise.
6731         * lib/unictype/pr_id_continue.h: Likewise.
6732         * lib/unictype/pr_id_start.h: Likewise.
6733         * lib/unictype/pr_ideographic.h: Likewise.
6734         * lib/unictype/pr_lowercase.h: Likewise.
6735         * lib/unictype/pr_math.h: Likewise.
6736         * lib/unictype/pr_numeric.h: Likewise.
6737         * lib/unictype/pr_other_alphabetic.h: Likewise.
6738         * lib/unictype/pr_other_id_continue.h: Likewise.
6739         * lib/unictype/pr_other_math.h: Likewise.
6740         * lib/unictype/pr_punctuation.h: Likewise.
6741         * lib/unictype/pr_sentence_terminal.h: Likewise.
6742         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6743         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6744         * lib/unictype/pr_unified_ideograph.h: Likewise.
6745         * lib/unictype/pr_uppercase.h: Likewise.
6746         * lib/unictype/pr_xid_continue.h: Likewise.
6747         * lib/unictype/pr_xid_start.h: Likewise.
6748         * lib/unictype/scripts.h: Likewise.
6749         * lib/unictype/scripts_byname.gperf: Likewise.
6750         * lib/unictype/sy_java_ident.h: Likewise.
6751         * lib/unigbrk/gbrkprop.h: Likewise.
6752         * lib/unilbrk/lbrkprop1.h: Likewise.
6753         * lib/unilbrk/lbrkprop2.h: Likewise.
6754         * lib/uninorm/decomposition-table2.h: Likewise.
6755         * lib/uniwbrk/wbrkprop.h: Likewise.
6756         * tests/unicase/test-cased.c: Likewise.
6757         * tests/unicase/test-ignorable.c: Likewise.
6758         * tests/unicase/test-uc_tolower.c: Likewise.
6759         * tests/unicase/test-uc_totitle.c: Likewise.
6760         * tests/unicase/test-uc_toupper.c: Likewise.
6761         * tests/unictype/test-categ_C.c: Likewise.
6762         * tests/unictype/test-categ_Cn.c: Likewise.
6763         * tests/unictype/test-categ_L.c: Likewise.
6764         * tests/unictype/test-categ_Ll.c: Likewise.
6765         * tests/unictype/test-categ_Lm.c: Likewise.
6766         * tests/unictype/test-categ_Lo.c: Likewise.
6767         * tests/unictype/test-categ_Lu.c: Likewise.
6768         * tests/unictype/test-categ_M.c: Likewise.
6769         * tests/unictype/test-categ_Mc.c: Likewise.
6770         * tests/unictype/test-categ_Me.c: Likewise.
6771         * tests/unictype/test-categ_Mn.c: Likewise.
6772         * tests/unictype/test-categ_N.c: Likewise.
6773         * tests/unictype/test-categ_Nd.c: Likewise.
6774         * tests/unictype/test-categ_No.c: Likewise.
6775         * tests/unictype/test-categ_P.c: Likewise.
6776         * tests/unictype/test-categ_Po.c: Likewise.
6777         * tests/unictype/test-categ_S.c: Likewise.
6778         * tests/unictype/test-categ_Sc.c: Likewise.
6779         * tests/unictype/test-categ_Sk.c: Likewise.
6780         * tests/unictype/test-categ_Sm.c: Likewise.
6781         * tests/unictype/test-categ_So.c: Likewise.
6782         * tests/unictype/test-ctype_alnum.c: Likewise.
6783         * tests/unictype/test-ctype_alpha.c: Likewise.
6784         * tests/unictype/test-ctype_graph.c: Likewise.
6785         * tests/unictype/test-ctype_lower.c: Likewise.
6786         * tests/unictype/test-ctype_print.c: Likewise.
6787         * tests/unictype/test-ctype_punct.c: Likewise.
6788         * tests/unictype/test-ctype_upper.c: Likewise.
6789         * tests/unictype/test-decdigit.h: Likewise.
6790         * tests/unictype/test-digit.h: Likewise.
6791         * tests/unictype/test-numeric.h: Likewise.
6792         * tests/unictype/test-pr_alphabetic.c: Likewise.
6793         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6794         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6795         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6796         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6797         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6798         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6799         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6800         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6801         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6802         * tests/unictype/test-pr_cased.c: Likewise.
6803         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6804         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6805         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6806         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6807         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6808         * tests/unictype/test-pr_combining.c: Likewise.
6809         * tests/unictype/test-pr_composite.c: Likewise.
6810         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6811         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6812         * tests/unictype/test-pr_deprecated.c: Likewise.
6813         * tests/unictype/test-pr_format_control.c: Likewise.
6814         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6815         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6816         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6817         * tests/unictype/test-pr_id_continue.c: Likewise.
6818         * tests/unictype/test-pr_id_start.c: Likewise.
6819         * tests/unictype/test-pr_ideographic.c: Likewise.
6820         * tests/unictype/test-pr_lowercase.c: Likewise.
6821         * tests/unictype/test-pr_math.c: Likewise.
6822         * tests/unictype/test-pr_numeric.c: Likewise.
6823         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6824         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6825         * tests/unictype/test-pr_other_math.c: Likewise.
6826         * tests/unictype/test-pr_punctuation.c: Likewise.
6827         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6828         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6829         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6830         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6831         * tests/unictype/test-pr_uppercase.c: Likewise.
6832         * tests/unictype/test-pr_xid_continue.c: Likewise.
6833         * tests/unictype/test-pr_xid_start.c: Likewise.
6834         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6835         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6836         changes.
6837         * lib/unictype/categ_Cc.h: Likewise.
6838         * lib/unictype/categ_Cf.h: Likewise.
6839         * lib/unictype/categ_Co.h: Likewise.
6840         * lib/unictype/categ_Cs.h: Likewise.
6841         * lib/unictype/categ_Lt.h: Likewise.
6842         * lib/unictype/categ_Nl.h: Likewise.
6843         * lib/unictype/categ_Pc.h: Likewise.
6844         * lib/unictype/categ_Pd.h: Likewise.
6845         * lib/unictype/categ_Pe.h: Likewise.
6846         * lib/unictype/categ_Pf.h: Likewise.
6847         * lib/unictype/categ_Pi.h: Likewise.
6848         * lib/unictype/categ_Ps.h: Likewise.
6849         * lib/unictype/categ_Z.h: Likewise.
6850         * lib/unictype/categ_Zl.h: Likewise.
6851         * lib/unictype/categ_Zp.h: Likewise.
6852         * lib/unictype/categ_Zs.h: Likewise.
6853         * lib/unictype/ctype_blank.h: Likewise.
6854         * lib/unictype/ctype_cntrl.h: Likewise.
6855         * lib/unictype/ctype_digit.h: Likewise.
6856         * lib/unictype/ctype_space.h: Likewise.
6857         * lib/unictype/ctype_xdigit.h: Likewise.
6858         * lib/unictype/mirror.h: Likewise.
6859         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6860         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6861         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6862         * lib/unictype/pr_bidi_control.h: Likewise.
6863         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6864         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6865         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6866         * lib/unictype/pr_bidi_pdf.h: Likewise.
6867         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6868         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6869         * lib/unictype/pr_dash.h: Likewise.
6870         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6871         * lib/unictype/pr_diacritic.h: Likewise.
6872         * lib/unictype/pr_extender.h: Likewise.
6873         * lib/unictype/pr_hex_digit.h: Likewise.
6874         * lib/unictype/pr_hyphen.h: Likewise.
6875         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6876         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6877         * lib/unictype/pr_ignorable_control.h: Likewise.
6878         * lib/unictype/pr_iso_control.h: Likewise.
6879         * lib/unictype/pr_join_control.h: Likewise.
6880         * lib/unictype/pr_left_of_pair.h: Likewise.
6881         * lib/unictype/pr_line_separator.h: Likewise.
6882         * lib/unictype/pr_logical_order_exception.h: Likewise.
6883         * lib/unictype/pr_non_break.h: Likewise.
6884         * lib/unictype/pr_not_a_character.h: Likewise.
6885         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6886         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6887         * lib/unictype/pr_other_id_start.h: Likewise.
6888         * lib/unictype/pr_other_lowercase.h: Likewise.
6889         * lib/unictype/pr_other_uppercase.h: Likewise.
6890         * lib/unictype/pr_paired_punctuation.h: Likewise.
6891         * lib/unictype/pr_paragraph_separator.h: Likewise.
6892         * lib/unictype/pr_pattern_syntax.h: Likewise.
6893         * lib/unictype/pr_pattern_white_space.h: Likewise.
6894         * lib/unictype/pr_private_use.h: Likewise.
6895         * lib/unictype/pr_quotation_mark.h: Likewise.
6896         * lib/unictype/pr_radical.h: Likewise.
6897         * lib/unictype/pr_soft_dotted.h: Likewise.
6898         * lib/unictype/pr_space.h: Likewise.
6899         * lib/unictype/pr_titlecase.h: Likewise.
6900         * lib/unictype/pr_variation_selector.h: Likewise.
6901         * lib/unictype/pr_white_space.h: Likewise.
6902         * lib/unictype/pr_zero_width.h: Likewise.
6903         * lib/unictype/sy_c_ident.h: Likewise.
6904         * lib/unictype/sy_c_whitespace.h: Likewise.
6905         * lib/unictype/sy_java_whitespace.h: Likewise.
6906         * lib/uninorm/composition-table.gperf: Likewise.
6907         * lib/uninorm/decomposition-table1.h: Likewise.
6908         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6909         LB8.
6910         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6911         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6912         * modules/unictype/*: Bump version number of expected libunistring
6913         version.
6914
6915 2011-01-09  Bruno Haible  <bruno@clisp.org>
6916
6917         Update to Unicode 5.2.0.
6918         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6919         trailing whitespace removed.
6920
6921 2011-01-09  Bruno Haible  <bruno@clisp.org>
6922
6923         New Unicode character properties, from Unicode 5.2.0.
6924         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6925         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6926         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6927         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6928         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6929         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6930         uc_is_property_cased, uc_is_property_case_ignorable,
6931         uc_is_property_changes_when_lowercased,
6932         uc_is_property_changes_when_uppercased,
6933         uc_is_property_changes_when_titlecased,
6934         uc_is_property_changes_when_casefolded,
6935         uc_is_property_changes_when_casemapped): New declarations.
6936         * lib/unictype/pr_byname.gperf: Add the new properties.
6937         * modules/unictype/property-byname (Depends-on): Depend on the new
6938         properties modules.
6939         * modules/unictype/property-all (Depends-on): Likewise.
6940         * MODULES.html.sh (Unicode string functions): Add
6941         unictype/property-case-ignorable, unictype/property-cased,
6942         unictype/property-changes-when-casefolded,
6943         unictype/property-changes-when-casemapped,
6944         unictype/property-changes-when-lowercased,
6945         unictype/property-changes-when-titlecased,
6946         unictype/property-changes-when-uppercased.
6947
6948         New module 'unictype/property-changes-when-casemapped'.
6949         * modules/unictype/property-changes-when-casemapped: New file.
6950         * lib/unictype/pr_changes_when_casemapped.c: New file.
6951         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6952         generated by gen-uni-tables.
6953         * modules/unictype/property-changes-when-casemapped-tests: New file.
6954         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6955         automatically generated by gen-uni-tables.
6956
6957         New module 'unictype/property-changes-when-casefolded'.
6958         * modules/unictype/property-changes-when-casefolded: New file.
6959         * lib/unictype/pr_changes_when_casefolded.c: New file.
6960         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6961         generated by gen-uni-tables.
6962         * modules/unictype/property-changes-when-casefolded-tests: New file.
6963         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6964         automatically generated by gen-uni-tables.
6965
6966         New module 'unictype/property-changes-when-titlecased'.
6967         * modules/unictype/property-changes-when-titlecased: New file.
6968         * lib/unictype/pr_changes_when_titlecased.c: New file.
6969         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6970         generated by gen-uni-tables.
6971         * modules/unictype/property-changes-when-titlecased-tests: New file.
6972         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6973         automatically generated by gen-uni-tables.
6974
6975         New module 'unictype/property-changes-when-uppercased'.
6976         * modules/unictype/property-changes-when-uppercased: New file.
6977         * lib/unictype/pr_changes_when_uppercased.c: New file.
6978         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6979         generated by gen-uni-tables.
6980         * modules/unictype/property-changes-when-uppercased-tests: New file.
6981         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6982         automatically generated by gen-uni-tables.
6983
6984         New module 'unictype/property-changes-when-lowercased'.
6985         * modules/unictype/property-changes-when-lowercased: New file.
6986         * lib/unictype/pr_changes_when_lowercased.c: New file.
6987         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6988         generated by gen-uni-tables.
6989         * modules/unictype/property-changes-when-lowercased-tests: New file.
6990         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6991         automatically generated by gen-uni-tables.
6992
6993         New module 'unictype/property-case-ignorable'.
6994         * modules/unictype/property-case-ignorable: New file.
6995         * lib/unictype/pr_case_ignorable.c: New file.
6996         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6997         by gen-uni-tables.
6998         * modules/unictype/property-case-ignorable-tests: New file.
6999         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7000         generated by gen-uni-tables.
7001
7002         New module 'unictype/property-cased'.
7003         * modules/unictype/property-cased: New file.
7004         * lib/unictype/pr_cased.c: New file.
7005         * lib/unictype/pr_cased.h: New file, automatically generated by
7006         gen-uni-tables.
7007         * modules/unictype/property-cased-tests: New file.
7008         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7009         gen-uni-tables.
7010
7011 2011-01-09  Bruno Haible  <bruno@clisp.org>
7012
7013         Update to Unicode 5.2.0.
7014         * lib/gen-uni-tables.c (output_predicate, output_category,
7015         output_combclass, output_bidi_category, output_decimal_digit_test,
7016         output_decimal_digit, output_digit_test, output_digit,
7017         output_numeric_test, output_numeric, output_mirror, output_scripts,
7018         output_scripts_byname, output_blocks, output_ident_category): Fix
7019         comment header.
7020         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7021         get_wbp.
7022         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7023         items.
7024         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7025         Changes_When_Lowercased, Changes_When_Uppercased,
7026         Changes_When_Titlecased, Changes_When_Casefolded,
7027         Changes_When_Casemapped.
7028         (is_property_alphabetic, is_property_default_ignorable_code_point):
7029         Update for Unicode 5.2.0.
7030         (is_property_cased, is_property_case_ignorable,
7031         is_property_changes_when_lowercased,
7032         is_property_changes_when_uppercased,
7033         is_property_changes_when_titlecased,
7034         is_property_changes_when_casefolded,
7035         is_property_changes_when_casemapped): New functions.
7036         (output_properties): Output also the properties cased, case_ignorable,
7037         changes_when_lowercased, changes_when_uppercased,
7038         changes_when_titlecased, changes_when_casefolded,
7039         changes_when_casemapped.
7040         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7041         Unicode TR#11 revision 17 -> 19.
7042         (LBP_CP): New enumeration value.
7043         (LBP_*): Adjust values accordingly.
7044         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7045         TR#14 revision 22 -> 24.
7046         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7047         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7048         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7049         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7050         is_WBP_MIDLETTER.
7051         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7052         the code1 and code2 of each composition rule.
7053         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7054         * lib/unicase/ignorable.h: Likewise.
7055         * lib/unicase/tocasefold.h: Likewise.
7056         * lib/unicase/tolower.h: Likewise.
7057         * lib/unicase/totitle.h: Likewise.
7058         * lib/unicase/toupper.h: Likewise.
7059         * lib/unictype/bidi_of.h: Likewise.
7060         * lib/unictype/blocks.h: Likewise.
7061         * lib/unictype/categ_C.h: Likewise.
7062         * lib/unictype/categ_Cf.h: Likewise.
7063         * lib/unictype/categ_Cn.h: Likewise.
7064         * lib/unictype/categ_L.h: Likewise.
7065         * lib/unictype/categ_Ll.h: Likewise.
7066         * lib/unictype/categ_Lm.h: Likewise.
7067         * lib/unictype/categ_Lo.h: Likewise.
7068         * lib/unictype/categ_Lu.h: Likewise.
7069         * lib/unictype/categ_M.h: Likewise.
7070         * lib/unictype/categ_Mc.h: Likewise.
7071         * lib/unictype/categ_Mn.h: Likewise.
7072         * lib/unictype/categ_N.h: Likewise.
7073         * lib/unictype/categ_Nd.h: Likewise.
7074         * lib/unictype/categ_Nl.h: Likewise.
7075         * lib/unictype/categ_No.h: Likewise.
7076         * lib/unictype/categ_P.h: Likewise.
7077         * lib/unictype/categ_Pd.h: Likewise.
7078         * lib/unictype/categ_Po.h: Likewise.
7079         * lib/unictype/categ_S.h: Likewise.
7080         * lib/unictype/categ_Sc.h: Likewise.
7081         * lib/unictype/categ_So.h: Likewise.
7082         * lib/unictype/categ_of.h: Likewise.
7083         * lib/unictype/combining.h: Likewise.
7084         * lib/unictype/ctype_alnum.h: Likewise.
7085         * lib/unictype/ctype_alpha.h: Likewise.
7086         * lib/unictype/ctype_graph.h: Likewise.
7087         * lib/unictype/ctype_lower.h: Likewise.
7088         * lib/unictype/ctype_print.h: Likewise.
7089         * lib/unictype/ctype_punct.h: Likewise.
7090         * lib/unictype/ctype_upper.h: Likewise.
7091         * lib/unictype/decdigit.h: Likewise.
7092         * lib/unictype/digit.h: Likewise.
7093         * lib/unictype/numeric.h: Likewise.
7094         * lib/unictype/pr_alphabetic.h: Likewise.
7095         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7096         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7097         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7098         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7099         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7100         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7101         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7102         * lib/unictype/pr_combining.h: Likewise.
7103         * lib/unictype/pr_composite.h: Likewise.
7104         * lib/unictype/pr_currency_symbol.h: Likewise.
7105         * lib/unictype/pr_dash.h: Likewise.
7106         * lib/unictype/pr_decimal_digit.h: Likewise.
7107         * lib/unictype/pr_deprecated.h: Likewise.
7108         * lib/unictype/pr_diacritic.h: Likewise.
7109         * lib/unictype/pr_extender.h: Likewise.
7110         * lib/unictype/pr_grapheme_base.h: Likewise.
7111         * lib/unictype/pr_grapheme_extend.h: Likewise.
7112         * lib/unictype/pr_grapheme_link.h: Likewise.
7113         * lib/unictype/pr_id_continue.h: Likewise.
7114         * lib/unictype/pr_id_start.h: Likewise.
7115         * lib/unictype/pr_ideographic.h: Likewise.
7116         * lib/unictype/pr_ignorable_control.h: Likewise.
7117         * lib/unictype/pr_logical_order_exception.h: Likewise.
7118         * lib/unictype/pr_lowercase.h: Likewise.
7119         * lib/unictype/pr_numeric.h: Likewise.
7120         * lib/unictype/pr_other_alphabetic.h: Likewise.
7121         * lib/unictype/pr_punctuation.h: Likewise.
7122         * lib/unictype/pr_sentence_terminal.h: Likewise.
7123         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7124         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7125         * lib/unictype/pr_unified_ideograph.h: Likewise.
7126         * lib/unictype/pr_uppercase.h: Likewise.
7127         * lib/unictype/pr_xid_continue.h: Likewise.
7128         * lib/unictype/pr_xid_start.h: Likewise.
7129         * lib/unictype/pr_zero_width.h: Likewise.
7130         * lib/unictype/scripts.h: Likewise.
7131         * lib/unictype/scripts_byname.gperf: Likewise.
7132         * lib/unictype/sy_java_ident.h: Likewise.
7133         * lib/unigbrk/gbrkprop.h: Likewise.
7134         * lib/unilbrk/lbrkprop1.h: Likewise.
7135         * lib/unilbrk/lbrkprop2.h: Likewise.
7136         * lib/unilbrk/lbrktables.h: Likewise.
7137         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7138         LBP_CP. Implement rule LB30.
7139         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7140         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7141         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7142         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7143         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7144         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7145         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7146         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7147         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7148         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7149         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7150         bits instead of 16 bits in the code1 and code2 of each composition
7151         rule.
7152         (uc_composition): Update for Unicode 5.2.0.
7153         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7154         * lib/uninorm/decomposition-table2.h: Likewise.
7155         * lib/uniwbrk/wbrkprop.h: Likewise.
7156         * tests/unicase/test-cased.c: Likewise.
7157         * tests/unicase/test-ignorable.c: Likewise.
7158         * tests/unicase/test-uc_tolower.c: Likewise.
7159         * tests/unicase/test-uc_totitle.c: Likewise.
7160         * tests/unicase/test-uc_toupper.c: Likewise.
7161         * tests/unictype/test-categ_C.c: Likewise.
7162         * tests/unictype/test-categ_Cf.c: Likewise.
7163         * tests/unictype/test-categ_Cn.c: Likewise.
7164         * tests/unictype/test-categ_L.c: Likewise.
7165         * tests/unictype/test-categ_Ll.c: Likewise.
7166         * tests/unictype/test-categ_Lm.c: Likewise.
7167         * tests/unictype/test-categ_Lo.c: Likewise.
7168         * tests/unictype/test-categ_Lu.c: Likewise.
7169         * tests/unictype/test-categ_M.c: Likewise.
7170         * tests/unictype/test-categ_Mc.c: Likewise.
7171         * tests/unictype/test-categ_Mn.c: Likewise.
7172         * tests/unictype/test-categ_N.c: Likewise.
7173         * tests/unictype/test-categ_Nd.c: Likewise.
7174         * tests/unictype/test-categ_Nl.c: Likewise.
7175         * tests/unictype/test-categ_No.c: Likewise.
7176         * tests/unictype/test-categ_P.c: Likewise.
7177         * tests/unictype/test-categ_Pd.c: Likewise.
7178         * tests/unictype/test-categ_Po.c: Likewise.
7179         * tests/unictype/test-categ_S.c: Likewise.
7180         * tests/unictype/test-categ_Sc.c: Likewise.
7181         * tests/unictype/test-categ_So.c: Likewise.
7182         * tests/unictype/test-ctype_alnum.c: Likewise.
7183         * tests/unictype/test-ctype_alpha.c: Likewise.
7184         * tests/unictype/test-ctype_graph.c: Likewise.
7185         * tests/unictype/test-ctype_lower.c: Likewise.
7186         * tests/unictype/test-ctype_print.c: Likewise.
7187         * tests/unictype/test-ctype_punct.c: Likewise.
7188         * tests/unictype/test-ctype_upper.c: Likewise.
7189         * tests/unictype/test-decdigit.h: Likewise.
7190         * tests/unictype/test-digit.h: Likewise.
7191         * tests/unictype/test-numeric.h: Likewise.
7192         * tests/unictype/test-pr_alphabetic.c: Likewise.
7193         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7194         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7195         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7196         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7197         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7198         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7199         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7200         * tests/unictype/test-pr_combining.c: Likewise.
7201         * tests/unictype/test-pr_composite.c: Likewise.
7202         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7203         * tests/unictype/test-pr_dash.c: Likewise.
7204         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7205         * tests/unictype/test-pr_deprecated.c: Likewise.
7206         * tests/unictype/test-pr_diacritic.c: Likewise.
7207         * tests/unictype/test-pr_extender.c: Likewise.
7208         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7209         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7210         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7211         * tests/unictype/test-pr_id_continue.c: Likewise.
7212         * tests/unictype/test-pr_id_start.c: Likewise.
7213         * tests/unictype/test-pr_ideographic.c: Likewise.
7214         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7215         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7216         * tests/unictype/test-pr_lowercase.c: Likewise.
7217         * tests/unictype/test-pr_numeric.c: Likewise.
7218         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7219         * tests/unictype/test-pr_punctuation.c: Likewise.
7220         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7221         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7222         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7223         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7224         * tests/unictype/test-pr_uppercase.c: Likewise.
7225         * tests/unictype/test-pr_xid_continue.c: Likewise.
7226         * tests/unictype/test-pr_xid_start.c: Likewise.
7227         * tests/unictype/test-pr_zero_width.c: Likewise.
7228         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7229         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7230         changed behaviour: line breaking is now disallowed between a letter
7231         or '=' and '('.
7232         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7233         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7234         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7235         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7236         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7237         lib/uniwidth/width.c.
7238         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7239         without comments, but with the original copyright notice.
7240         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7241         changes.
7242         * lib/unictype/categ_Cc.h: Likewise.
7243         * lib/unictype/categ_Co.h: Likewise.
7244         * lib/unictype/categ_Cs.h: Likewise.
7245         * lib/unictype/categ_Lt.h: Likewise.
7246         * lib/unictype/categ_Me.h: Likewise.
7247         * lib/unictype/categ_Pc.h: Likewise.
7248         * lib/unictype/categ_Pe.h: Likewise.
7249         * lib/unictype/categ_Pf.h: Likewise.
7250         * lib/unictype/categ_Pi.h: Likewise.
7251         * lib/unictype/categ_Ps.h: Likewise.
7252         * lib/unictype/categ_Sk.h: Likewise.
7253         * lib/unictype/categ_Sm.h: Likewise.
7254         * lib/unictype/categ_Z.h: Likewise.
7255         * lib/unictype/categ_Zl.h: Likewise.
7256         * lib/unictype/categ_Zp.h: Likewise.
7257         * lib/unictype/categ_Zs.h: Likewise.
7258         * lib/unictype/ctype_blank.h: Likewise.
7259         * lib/unictype/ctype_cntrl.h: Likewise.
7260         * lib/unictype/ctype_digit.h: Likewise.
7261         * lib/unictype/ctype_space.h: Likewise.
7262         * lib/unictype/ctype_xdigit.h: Likewise.
7263         * lib/unictype/mirror.h: Likewise.
7264         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7265         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7266         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7267         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7268         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7269         * lib/unictype/pr_bidi_control.h: Likewise.
7270         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7271         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7272         * lib/unictype/pr_bidi_pdf.h: Likewise.
7273         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7274         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7275         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7276         * lib/unictype/pr_format_control.h: Likewise.
7277         * lib/unictype/pr_hex_digit.h: Likewise.
7278         * lib/unictype/pr_hyphen.h: Likewise.
7279         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7280         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7281         * lib/unictype/pr_iso_control.h: Likewise.
7282         * lib/unictype/pr_join_control.h: Likewise.
7283         * lib/unictype/pr_left_of_pair.h: Likewise.
7284         * lib/unictype/pr_line_separator.h: Likewise.
7285         * lib/unictype/pr_math.h: Likewise.
7286         * lib/unictype/pr_non_break.h: Likewise.
7287         * lib/unictype/pr_not_a_character.h: Likewise.
7288         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7289         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7290         * lib/unictype/pr_other_id_continue.h: Likewise.
7291         * lib/unictype/pr_other_id_start.h: Likewise.
7292         * lib/unictype/pr_other_lowercase.h: Likewise.
7293         * lib/unictype/pr_other_math.h: Likewise.
7294         * lib/unictype/pr_other_uppercase.h: Likewise.
7295         * lib/unictype/pr_paired_punctuation.h: Likewise.
7296         * lib/unictype/pr_paragraph_separator.h: Likewise.
7297         * lib/unictype/pr_pattern_syntax.h: Likewise.
7298         * lib/unictype/pr_pattern_white_space.h: Likewise.
7299         * lib/unictype/pr_private_use.h: Likewise.
7300         * lib/unictype/pr_quotation_mark.h: Likewise.
7301         * lib/unictype/pr_radical.h: Likewise.
7302         * lib/unictype/pr_soft_dotted.h: Likewise.
7303         * lib/unictype/pr_space.h: Likewise.
7304         * lib/unictype/pr_titlecase.h: Likewise.
7305         * lib/unictype/pr_variation_selector.h: Likewise.
7306         * lib/unictype/pr_white_space.h: Likewise.
7307         * lib/unictype/sy_c_ident.h: Likewise.
7308         * lib/unictype/sy_c_whitespace.h: Likewise.
7309         * lib/unictype/sy_java_whitespace.h: Likewise.
7310         * modules/uni*/*: Bump version number of expected libunistring version.
7311         Reported by Simon Josefsson.
7312
7313 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7314
7315         useless-if-before-free: fix typo in --help and make the internal,
7316         automatic version date update process work once again.
7317         --help output contained a NUL character instead of the
7318         backslash-zero that was intended.  Also, the "must lie within
7319         the first 8 lines" line is on line 9, and hence not getting
7320         automatically updated.
7321         * build-aux/useless-if-before-free: Fix the former by adding a
7322         backslash, and the latter by condensing the three lines of what-it-does
7323         to a single line, leaving one line of slack for the future.
7324
7325 2011-01-09  Bruno Haible  <bruno@clisp.org>
7326
7327         uniwidth/width: Fix width of U+1D173..U+1D17A.
7328         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7329         symbolic_width, output_width_property_test): New functions.
7330         (main): Invoke output_nonspacing_property, output_width_property_test.
7331         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7332         U+1D173..U+1D17A.
7333         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7334         1.
7335         * modules/uniwidth/*: Bump version number of expected libunistring
7336         version.
7337         * modules/unilbrk/*: Likewise.
7338
7339 2011-01-08  Bruno Haible  <bruno@clisp.org>
7340
7341         uninorm tests: Preserve copyright of Unicode data file.
7342         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7343         Mention modifications.
7344
7345 2011-01-08  Bruno Haible  <bruno@clisp.org>
7346
7347         gen-uni-tables: Prepare for Unicode 5.2.0.
7348         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7349         (debug_output_lbp, output_lbp): Update.
7350
7351 2011-01-08  Bruno Haible  <bruno@clisp.org>
7352
7353         unilbrk: Clarify gen-uni-tables.c code.
7354         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7355         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7356         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7357
7358 2011-01-07  Bruno Haible  <bruno@clisp.org>
7359
7360         strtod: Restore errno when successfully parsing Infinity or NaN.
7361         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7362         restore the original errno.
7363
7364 2011-01-07  Bruno Haible  <bruno@clisp.org>
7365
7366         remove test: Avoid failure on HP-UX 11.
7367         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7368
7369 2011-01-07  Bruno Haible  <bruno@clisp.org>
7370
7371         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7372         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7373         error code.
7374
7375 2011-01-07  Pádraig Brady <P@draigBrady.com>
7376
7377         ignore-value: fixup comments, and add Eric Blake
7378         as an author since he rewrote the macros.
7379         * lib/ignore-value.h (ignore_value):  State that
7380         we now support aggregates.  Also specify exactly
7381         when the GCC warn_unused_result feature was added.
7382
7383 2011-01-06  Eric Blake  <eblake@redhat.com>
7384
7385         ignore-value: support aggregate types
7386         * lib/ignore-value.h (ignore_value): Provide separate gcc
7387         definition.
7388         * modules/ignore-value-tests: New test module.
7389         * tests/test-ignore-value.c: New test.
7390
7391         maint.mk: improve sc_prohibit_strcmp regex
7392         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7393         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7394         definition of STRNEQ.
7395
7396         signal: work around Haiku issue with SIGBUS
7397         * lib/siglist.h: Add comment.
7398         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7399         strsignal's favoring of SIGSEGV.
7400         * tests/test-signal.c (main): Avoid test failure.
7401         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7402         Reported by Scott McCreary.
7403
7404         maint.mk: add pre-release check to ensure submodule commits are public
7405         * top/maint.mk (public-submodule-commit): New rule.
7406         (submodule-checks): New variable.
7407         (alpha beta stable): Depend on the variable.
7408
7409 2011-01-05  Pádraig Brady <P@draigBrady.com>
7410         and Jim Meyering  <meyering@redhat.com>
7411
7412         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7413         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7414         (ATTRIBUTE_DEPRECATED): Define.
7415         (_ignore_case): New function.
7416         (ignore_value): New macro, to replace the old function.
7417         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7418         * modules/ignore-value (Depends-on): Add stdint.
7419
7420 2011-01-04  Eric Blake  <eblake@redhat.com>
7421
7422         doc: regenerate INSTALL
7423         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7424         @firstparagraphindent support, now that autoconf dropped it.
7425         (INSTALL_PRELUDE): Reinstate old macro.
7426         * doc/install.texi: Resync from autoconf.
7427         * doc/INSTALL: Reflect recent autoconf update.
7428         * doc/INSTALL.ISO: Likewise.
7429         * doc/INSTALL.UTF-8: Likewise.
7430         Reported by Karl Berry.
7431
7432 2011-01-04  Bruce Korb  <address@hidden>
7433
7434         git-version-gen: avoid a sub-shell
7435         * build-aux/git-version-gen: Redirect stderr in `...` via
7436         "exec 2>...", rather than via an added sub-shell.
7437
7438 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7439
7440         git-version-gen: use (...) rather than sh -c '...'
7441         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7442         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7443
7444 2011-01-03  Jim Meyering  <meyering@redhat.com>
7445
7446         git-version-gen: convert leading TABs to spaces
7447         * build-aux/git-version-gen: Expand leading TABs.
7448
7449         git-version-gen: handle failed "git rev-list"
7450         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7451         from git and proceeding as if it had succeeded but printed no SHA1
7452         checksums, suppress the diagnostic and handle the failure.
7453         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7454
7455         git-version-gen: include command name in one more diagnostic
7456         * build-aux/git-version-gen: When the required .tarball-version file
7457         was missing or unreadable, you might see the diagnostic from "cat",
7458         but no trace of the name of the invoking script.  Now, you still see
7459         the diagnostic from cat, but also get one from "git-version-gen: ".
7460         Inspired by a patch from Bruce Korb.
7461
7462         update-copyright: adjust test to match changed code
7463         * tests/test-update-copyright.sh: Change test's expected output
7464         to match new actual output.
7465
7466 2011-01-02  Bruno Haible  <bruno@clisp.org>
7467
7468         getlogin_r: Avoid test failure on HP-UX 11.
7469         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7470         ERANGE when the second argument is zero.
7471         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7472         portability problem.
7473
7474 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7475
7476         * build-aux/update-copyright: doc Simon's changes
7477
7478 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7479
7480         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7481         environment variable.
7482
7483 2011-01-02  Bruno Haible  <bruno@clisp.org>
7484
7485         unigbrk: Avoid gcc warnings.
7486         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7487         unused variable.
7488         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7489         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7490         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7491         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7492         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7493         Change type of first argument to 'const char *'.
7494         (main): Remove unused variable.
7495         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7496         type of first argument to 'const char *'.
7497         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7498         Likewise.
7499         (main): Change type of variable 's'.
7500         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7501         to 'int'.
7502
7503 2011-01-02  Bruno Haible  <bruno@clisp.org>
7504
7505         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7506         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7507         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7508         bug.
7509         * lib/pwrite.c: Undo 2010-12-31 patch.
7510         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7511
7512 2011-01-02  Bruno Haible  <bruno@clisp.org>
7513
7514         pread: Fix test whether it works.
7515         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7516
7517 2011-01-02  Bruno Haible  <bruno@clisp.org>
7518
7519         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7520         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7521         ends in "6". Don't require a specific month name. Try also the locale
7522         names found on HP-UX 11 and Solaris 7.
7523
7524 2011-01-02  Bruno Haible  <bruno@clisp.org>
7525
7526         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7527         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7528         C linkage.
7529         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7530
7531 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7532
7533         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7534         for consistency, since the "cluster" term is not used elsewhere.
7535         * lib/unigbrk.in.h: Update name.
7536         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7537         * lib/unigbrk/u16-grapheme-next.c: Update name.
7538         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7539         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7540         * lib/unigbrk/u32-grapheme-next.c: Update name.
7541         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7542         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7543         * lib/unigbrk/u8-grapheme-next.c: Update name.
7544         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7545         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7546         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7547         Suggested by Bruno Haible.
7548
7549 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7550
7551         Remove module 'u8-grapheme-len' as too redundant with
7552         'u8-grapheme-next'.
7553         * modules/unigbrk/u8-grapheme-len: Delete file.
7554         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7555         * lib/unigbrk.in.h: Remove prototype for deleted function.
7556         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7557         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7558
7559         Remove module 'u16-grapheme-len' as too redundant with
7560         'u16-grapheme-next'.
7561         * modules/unigbrk/u16-grapheme-len: Delete file.
7562         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7563         * lib/unigbrk.in.h: Remove prototype for deleted function.
7564         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7565         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7566
7567         Remove module 'u32-grapheme-len' as too redundant with
7568         'u32-grapheme-next'.
7569         * modules/unigbrk/u32-grapheme-len: Delete file.
7570         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7571         * lib/unigbrk.in.h: Remove prototype for deleted function.
7572         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7573         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7574
7575         Suggested by Bruno Haible.
7576
7577 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7578
7579         * unigbrk.in.h: Fix typo: "ben" => "been".
7580         Reported by Bruno Haible.
7581
7582 2011-01-01  Jim Meyering  <meyering@redhat.com>
7583
7584         maint: update almost all copyright ranges to include 2011
7585         Run the new "make update-copyright" rule.
7586
7587 2011-01-01  Jim Meyering  <meyering@redhat.com>
7588
7589         maint: update-copyright: exempt doc/INSTALL*
7590         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7591         since they are generated.  Suggested by Bruno Haible.
7592
7593 2011-01-01  Jim Meyering  <meyering@redhat.com>
7594
7595         maint: refine the update-copyright rule
7596         * Makefile (update-copyright): Also exclude any file that includes
7597         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7598         code that merely generates the comment.
7599
7600 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7601
7602         New module 'u8-grapheme-len'.
7603         * modules/unigbrk/u8-grapheme-len: New file.
7604         * modules/unigbrk/u8-grapheme-len-tests: New file.
7605         * lib/unigbrk.in.h: Add prototype for new function.
7606         * lib/unigbrk/u8-grapheme-len.c: New file.
7607         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7608
7609         New module 'u16-grapheme-len'.
7610         * modules/unigbrk/u16-grapheme-len: New file.
7611         * modules/unigbrk/u16-grapheme-len-tests: New file.
7612         * lib/unigbrk.in.h: Add prototype for new function.
7613         * lib/unigbrk/u16-grapheme-len.c: New file.
7614         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7615
7616         New module 'u32-grapheme-len'.
7617         * modules/unigbrk/u32-grapheme-len: New file.
7618         * modules/unigbrk/u32-grapheme-len-tests: New file.
7619         * lib/unigbrk.in.h: Add prototype for new function.
7620         * lib/unigbrk/u32-grapheme-len.c: New file.
7621         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7622
7623         New module 'u8-grapheme-next'.
7624         * modules/unigbrk/u8-grapheme-next: New file.
7625         * modules/unigbrk/u8-grapheme-next-tests: New file.
7626         * lib/unigbrk.in.h: Add prototype for new function.
7627         * lib/unigbrk/u8-grapheme-next.c: New file.
7628         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7629
7630         New module 'u16-grapheme-next'.
7631         * modules/unigbrk/u16-grapheme-next: New file.
7632         * modules/unigbrk/u16-grapheme-next-tests: New file.
7633         * lib/unigbrk.in.h: Add prototype for new function.
7634         * lib/unigbrk/u16-grapheme-next.c: New file.
7635         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7636
7637         New module 'u32-grapheme-next'.
7638         * modules/unigbrk/u32-grapheme-next: New file.
7639         * modules/unigbrk/u32-grapheme-next-tests: New file.
7640         * lib/unigbrk.in.h: Add prototype for new function.
7641         * lib/unigbrk/u32-grapheme-next.c: New file.
7642         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7643
7644         New module 'u8-grapheme-prev'.
7645         * modules/unigbrk/u8-grapheme-prev: New file.
7646         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7647         * lib/unigbrk.in.h: Add prototype for new function.
7648         * lib/unigbrk/u8-grapheme-prev.c: New file.
7649         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7650
7651         New module 'u16-grapheme-prev'.
7652         * modules/unigbrk/u16-grapheme-prev: New file.
7653         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7654         * lib/unigbrk.in.h: Add prototype for new function.
7655         * lib/unigbrk/u16-grapheme-prev.c: New file.
7656         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7657
7658         New module 'u32-grapheme-prev'.
7659         * modules/unigbrk/u32-grapheme-prev: New file.
7660         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7661         * lib/unigbrk.in.h: Add prototype for new function.
7662         * lib/unigbrk/u32-grapheme-prev.c: New file.
7663         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7664
7665         New module 'u8-grapheme-breaks'.
7666         * modules/unigbrk/u8-grapheme-breaks: New file.
7667         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7668         * lib/unigbrk.in.h: Add prototype for new function.
7669         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7670         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7671
7672         New module 'u16-grapheme-breaks'.
7673         * modules/unigbrk/u16-grapheme-breaks: New file.
7674         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7675         * lib/unigbrk.in.h: Add prototype for new function.
7676         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7677         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7678
7679         New module 'u32-grapheme-breaks'.
7680         * modules/unigbrk/u32-grapheme-breaks: New file.
7681         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7682         * lib/unigbrk.in.h: Add prototype for new function.
7683         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7684         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7685
7686         New module 'ulc-grapheme-breaks'.
7687         * modules/unigbrk/ulc-grapheme-breaks: New file.
7688         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7689         * m4/locale-ar.m4: New file.
7690         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7691         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7692         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7693
7694 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7695
7696         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7697         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7698         modified how this file was generated before I initially submitted
7699         the module, but failed to regenerate it.  This meant that several
7700         of the level2 entries were wrong.
7701         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7702         Remove the division-by-2 that is folded into the table now that
7703         gbrkprop.h has been regenerated properly.  Now -1 entries are
7704         handled correctly.
7705
7706         New module 'unigbrk/uc-gbrk-prop-tests'.
7707         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7708         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7709         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7710         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7711
7712 2011-01-01  Bruno Haible  <bruno@clisp.org>
7713
7714         Avoid use of hexadecimal escapes.
7715         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7716         instead of hexadecimal escapes.
7717
7718 2011-01-01  Jim Meyering  <meyering@redhat.com>
7719
7720         maint: new rule to update copyright year ranges
7721         * Makefile (update-copyright): New rule.
7722
7723         maint: indent with TABs in Makefile
7724         * Makefile: Expand leading sequences of spaces to TABs
7725
7726         version-etc: update the copyright year it reports
7727         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7728
7729 2010-12-31  Bruno Haible  <bruno@clisp.org>
7730
7731         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7732         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7733         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7734         zero.
7735
7736 2010-12-31  Bruno Haible  <bruno@clisp.org>
7737
7738         pwrite: Work around HP-UX 11.11 bug.
7739         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7740         works and set REPLACE_PWRITE if not.
7741         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7742         function.
7743         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7744
7745 2010-12-31  Bruno Haible  <bruno@clisp.org>
7746
7747         pread: Work around HP-UX 11 bugs.
7748         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7749         and set REPLACE_PREAD if not.
7750         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7751
7752 2010-12-31  Eric Blake  <eblake@redhat.com>
7753
7754         nl_langinfo: fix YESEXPR on Irix 6.5
7755         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7756         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7757         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7758         it.
7759
7760 2010-12-31  Bruno Haible  <bruno@clisp.org>
7761
7762         iconv: Document HP-UX 11 bug.
7763         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7764
7765 2010-12-31  Bruno Haible  <bruno@clisp.org>
7766
7767         ldexpl: Fix link error on HP-UX 11.
7768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7769         LDEXPL_LIBM, using $ISNANL_LIBM.
7770
7771 2010-12-31  Eric Blake  <eblake@redhat.com>
7772
7773         ftello: avoid compilation failure with SunStudio c89
7774         * lib/ftello.c (ftello): Use lseek, not llseek.
7775
7776         tests: avoid failing coreutils tests on cygwin
7777         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7778         (create_exe_shims_): Return 0 when skipping.
7779
7780 2010-12-31  Bruno Haible  <bruno@clisp.org>
7781
7782         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7783         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7784
7785 2010-12-31  Bruno Haible  <bruno@clisp.org>
7786
7787         waitpid: Fix link error in C++ mode.
7788         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7789
7790 2010-12-31  Bruno Haible  <bruno@clisp.org>
7791
7792         isnan: Use GCC built-ins when possible.
7793         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7794         __builtin_isnan.
7795         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7796         (isnan): Define using GCC built-ins for GCC >= 4.0.
7797
7798 2010-12-31  Bruno Haible  <bruno@clisp.org>
7799
7800         isnand: Fix mistake.
7801         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7802         __builtin_isnand.
7803
7804 2010-12-31  Bruno Haible  <bruno@clisp.org>
7805
7806         open: Avoid C++ error on HP-UX 11.
7807         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7808
7809 2010-12-31  Bruno Haible  <bruno@clisp.org>
7810
7811         time_r: Add missing declarations on HP-UX 11.
7812         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7813         instead of HAVE_LOCALTIME_R.
7814         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7815         HAVE_LOCALTIME_R always.
7816         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7817         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7818         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7819         HAVE_LOCALTIME_R.
7820         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7821         * doc/posix-functions/localtime_r.texi: Likewise.
7822
7823 2010-12-29  Eric Blake  <eblake@redhat.com>
7824
7825         mountlist: tweak previous commit
7826         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7827         Reported by Paul Eggert.
7828
7829         mountlist: fix local drive detection on cygwin
7830         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7831         that works for cygwin.
7832
7833 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7834
7835         ftoastr, snprintf: ftoastr + snprintf module
7836         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7837         since the snprintf module now should be good enough here.
7838         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7839         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7840         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7841         GNULIB_SNPRINTF only for the test directory, and the latter
7842         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7843         seems to suffice by itself.
7844
7845 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7846
7847         alloca: one step towards thread-safety
7848         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7849         need for a static variable.  All callers changed.  This does not
7850         make the alloca replacement thread-safe, but it's one step.
7851
7852         tests: minor indenting change
7853         * tests/init.sh: Sync from coreutils housekeeping patch
7854         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7855         to keep lines within 80 columns.
7856
7857 2010-12-28  Jim Meyering  <meyering@redhat.com>
7858
7859         regex: don't infloop on persistent failing calloc
7860         * lib/regexec.c (build_trtable): Return failure indication upon
7861         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7862         In glibc, this was fixed for version 2.13:
7863         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7864
7865 2010-12-28  Bruno Haible  <bruno@clisp.org>
7866             Paul Eggert <eggert@cs.ucla.edu>
7867
7868         linkat: Make implementation robust against system behaviour variations.
7869         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7870         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7871         way, and to -2 if it needs a generic runtime test.
7872         * lib/linkat.c (solaris_optimized_link_immediate,
7873         solaris_optimized_link_follow): New functions.
7874         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7875         (check_same_link): Use it.
7876
7877 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7878
7879         New module 'unigbrk/base'.
7880         * modules/unigbrk/base: New file.
7881         * lib/unigbrk.in.h: New file.
7882
7883         New module 'unigbrk/uc-gbrk-prop'.
7884         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7885         * modules/unigbrk/uc-gbrk-prop: New file.
7886         * lib/unigbrk/gbrkprop.h: New file.
7887         * lib/unigbrk/uc-gbrk-prop.c: New file.
7888
7889         New module 'unigbrk/uc-is-grapheme-break'.
7890         * modules/unigbrk/uc-is-grapheme-break: New file.
7891         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7892         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7893         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7894         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7895         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7896
7897         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7898
7899 2010-12-27  Bruno Haible  <bruno@clisp.org>
7900
7901         linkat test: Avoid failure on Solaris 11 2010-11.
7902         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7903
7904 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7905
7906         utimens: work around glibc rounding bug on more platforms
7907         * lib/utimens.c (fdutimens): Work around rounding bug even if
7908         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7910
7911 2010-12-27  Bruno Haible  <bruno@clisp.org>
7912
7913         select tests: Improve comments.
7914         * tests/test-select.c (do_select): Add comments.
7915
7916 2010-12-27  Bruno Haible  <bruno@clisp.org>
7917
7918         select tests: Safer way of handling timeout.
7919         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7920         at every invocation.
7921
7922 2010-12-27  Bruno Haible  <bruno@clisp.org>
7923
7924         select tests: Use 'bool' where appropriate.
7925         * tests/test-select.c (connect_to_socket): Change argument type to
7926         'bool'.
7927
7928 2010-12-27  Bruno Haible  <bruno@clisp.org>
7929
7930         select tests: Use existing modules.
7931         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7932         (configure.ac): Don't test for unistd.h.
7933         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7934         declared in <unistd.h>.
7935
7936 2010-12-27  Bruno Haible  <bruno@clisp.org>
7937
7938         mbrtowc: Work around a Solaris 7 bug.
7939         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7940         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7941         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7942         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7943         MBRTOWC_NULL_ARG1_BUG.
7944         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7945         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7946         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7947         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7948
7949 2010-12-27  Jim Meyering  <meyering@redhat.com>
7950
7951         read-file.c: tweak syntax
7952         * lib/read-file.c (fread_file): Remove space after "*" in function
7953         definitions.
7954
7955 2010-12-27  Bruno Haible  <bruno@clisp.org>
7956
7957         times test: Avoid gcc warnings on OSF/1.
7958         * tests/test-times.c (main): Cast printf arguments from clock_t to
7959         'long int'.
7960
7961 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7962
7963         utimens: work around glibc rounding bug on older Linux kernels
7964         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7965         on Linux with a glibc whose utimes might not work, then work
7966         around a longstanding glibc bug involving rounding rather than
7967         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7968         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7969
7970 2010-12-26  Bruno Haible  <bruno@clisp.org>
7971
7972         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7973         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7974         _GL_CXXALIAS_SYS.
7975         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7976
7977 2010-12-26  Bruno Haible  <bruno@clisp.org>
7978
7979         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7980         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7981         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7982         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7983         looking for the declaration.
7984         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7985         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7986         problem.
7987         * doc/posix-functions/inet_pton.texi: Likewise.
7988
7989 2010-12-26  Bruno Haible  <bruno@clisp.org>
7990
7991         arpa_inet: Use the common idioms with C++ support.
7992         * lib/arpa_inet.in.h: Include c++defs.h.
7993         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7994         support.
7995         * modules/arpa_inet (Depends-on): Add c++defs.
7996         (Makefile.am): Substitute the contents of c++defs.h.
7997         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7998         * modules/arpa_inet-c++-tests: New file.
7999         * tests/test-arpa_inet-c++.cc: New file.
8000
8001 2010-12-25  Bruno Haible  <bruno@clisp.org>
8002
8003         Fix more C++ link errors on Solaris 8.
8004         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8005         $(LIB_EACCESS).
8006         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8007         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8008         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8009         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8010         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8011
8012 2010-12-25  Bruno Haible  <bruno@clisp.org>
8013
8014         printf-posix: Fix link error when a non-GCC compiler is used.
8015         * lib/stdio.in.h (printf): When not using GCC, override printf
8016         correctly.
8017         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8018
8019 2010-12-25  Bruno Haible  <bruno@clisp.org>
8020
8021         strerror_r-posix: Update doc.
8022         * doc/posix-functions/strerror_r.texi: Update doc about the return
8023         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8024
8025 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8026
8027         utimens: simplify the logic of the previous change
8028         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8029         This should not affect whether the test succeeds or fails.
8030
8031         utimens: configure better on hosts with NFS clock skew
8032         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8033         uses the clock of the local host.  It might use the clock of the
8034         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8035         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8036
8037 2010-12-25  Bruno Haible  <bruno@clisp.org>
8038
8039         ptsname test: Avoid failure on Solaris.
8040         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8041         open a pseudo-terminal; don't use BSD-style ptys.
8042         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8043
8044 2010-12-25  Bruno Haible  <bruno@clisp.org>
8045
8046         ptsname: Avoid ERANGE failure on some systems.
8047         * lib/ptsname.c (buffer): Increase size.
8048
8049 2010-12-25  Bruno Haible  <bruno@clisp.org>
8050
8051         rename, renameat: Avoid test failures at NFS mounted locations.
8052         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8053         so that subsequent mkdir calls succeed.
8054
8055 2010-12-25  Bruno Haible  <bruno@clisp.org>
8056
8057         iswblank: Fix C++ link error on Solaris 8.
8058         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8059         _GL_FUNCDECL_SYS.
8060
8061 2010-12-25  Bruno Haible  <bruno@clisp.org>
8062
8063         unistd: Fix C++ link error on Solaris 8.
8064         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8065
8066 2010-12-25  Bruno Haible  <bruno@clisp.org>
8067
8068         readlink doc: Mention an old glibc bug.
8069         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8070
8071 2010-12-25  Bruno Haible  <bruno@clisp.org>
8072
8073         fcntl-h: Fix for use of C++ on glibc systems.
8074         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8075         also on glibc systems in C++ mode.
8076         Reported by Gary V. Vaughan <gary@gnu.org>.
8077
8078 2010-12-25  Bruno Haible  <bruno@clisp.org>
8079
8080         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8081         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8082
8083 2010-12-25  Bruno Haible  <bruno@clisp.org>
8084
8085         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8086         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8087         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8088         test whether truncl works according to ISO C 99 with IEC 60559.
8089         * m4/truncl-ieee.m4: New file.
8090         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8091         m4/signbit.m4.
8092         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8093
8094 2010-12-25  Bruno Haible  <bruno@clisp.org>
8095
8096         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8097         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8098         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8099         test whether ceill works according to ISO C 99 with IEC 60559.
8100         * m4/ceill-ieee.m4: New file.
8101         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8102         m4/signbit.m4.
8103         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8104
8105 2010-12-25  Bruno Haible  <bruno@clisp.org>
8106
8107         Ensure all prerequisites of <wchar.h> are included.
8108         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8109         before <wchar.h>.
8110         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8111         gl_MBRLEN_NUL_RETVAL): Likewise.
8112         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8113         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8114         AC_FUNC_MBRTOWC): Likewise.
8115         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8116         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8117         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8118         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8119         Likewise.
8120         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8121         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8122         (gl_WCHAR_H): Improve comments.
8123         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8124
8125 2010-12-25  Bruno Haible  <bruno@clisp.org>
8126
8127         strtok_r: Fix C syntax error in autoconf macro.
8128         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8129         characters in test program.
8130
8131 2010-12-24  Bruno Haible  <bruno@clisp.org>
8132
8133         ceil, trunc, round: Fix gcc warnings.
8134         * lib/ceil.c (MIN): Undefine before redefining.
8135         * lib/trunc.c (MIN): Likewise.
8136         * lib/round.c (MIN): Likewise.
8137         Include <math.h> first.
8138
8139 2010-12-24  Bruno Haible  <bruno@clisp.org>
8140
8141         select tests: Avoid failures on OSF/1 5.1.
8142         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8143         failure of closing the last socket; it may fail with ECONNRESET.
8144
8145 2010-12-24  Eric Blake  <eblake@redhat.com>
8146
8147         stdint: avoid HP-UX 10.20 preprocessor bug
8148         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8149         than #if.
8150         * tests/test-floor2.c (main): Likewise.
8151         Reported by Peter O'Gorman.
8152
8153         pipe: make obsoletion transition easier
8154         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8155         * modules/pipe (Files): Include revived file.
8156         (Include): Drop reference, to mirror getdate's behavior.
8157
8158 2010-12-24  Bruno Haible  <bruno@clisp.org>
8159
8160         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8161         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8162         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8164
8165 2010-12-24  Bruno Haible  <bruno@clisp.org>
8166
8167         gethostname: Ensure declaration on NonStop Kernel.
8168         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8169         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8170
8171 2010-12-24  Bruno Haible  <bruno@clisp.org>
8172
8173         sys_select: Ensure all necessary types on NonStop Kernel.
8174         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8175         include <sys/time.h>.
8176         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8177         NonStop Kernel.
8178         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8179
8180 2010-12-24  Bruno Haible  <bruno@clisp.org>
8181
8182         sys_select: Remove unneeded include.
8183         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8184         have <sys/select.h>.
8185
8186 2010-12-24  Bruno Haible  <bruno@clisp.org>
8187
8188         gethostname: Provide a fallback for HOST_NAME_MAX.
8189         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8190         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8191         instead.
8192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8193
8194 2010-12-24  Bruno Haible  <bruno@clisp.org>
8195
8196         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8197         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8198         (SA_RESTART): Likewise.
8199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8200
8201 2010-12-24  Bruno Haible  <bruno@clisp.org>
8202
8203         signal: Define NSIG.
8204         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8205         * tests/test-signal.c (nsig): New variable.
8206         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8207
8208 2010-12-24  Bruno Haible  <bruno@clisp.org>
8209
8210         rename, renameat: Avoid test failures on OSF/1 5.1.
8211         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8212         alternative error codes.
8213         * tests/test-renameat.c (main): Likewise.
8214
8215 2010-12-24  Bruno Haible  <bruno@clisp.org>
8216
8217         *printf: Detect large precisions bug on Solaris 10/SPARC.
8218         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8219         by Paul Eggert.
8220         * tests/test-snprintf-posix.h (test_function): Add this test code here
8221         too.
8222         * tests/test-sprintf-posix.h (test_function): Likewise.
8223         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8224         * tests/test-vasprintf-posix.c (test_function): Likewise.
8225         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8226         around by gnulib.
8227         * doc/posix-functions/printf.texi: Likewise.
8228         * doc/posix-functions/snprintf.texi: Likewise.
8229         * doc/posix-functions/sprintf.texi: Likewise.
8230         * doc/posix-functions/vfprintf.texi: Likewise.
8231         * doc/posix-functions/vprintf.texi: Likewise.
8232         * doc/posix-functions/vsnprintf.texi: Likewise.
8233         * doc/posix-functions/vsprintf.texi: Likewise.
8234         * doc/posix-functions/dprintf.texi: Undo last commit.
8235         * doc/posix-functions/vdprintf.texi: Likewise.
8236
8237 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8238
8239         tests: port test-fdutimensat.c to Solaris 8
8240         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8241         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8242         On Solaris 8, it fails with errno == ENOSYS, because there is no
8243         futimens (so it can't use the fd), and there is no lutimens (so it
8244         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8245
8246         vsnprintf: make more consistent with snprintf; doc fixes
8247
8248         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8249         the byte count return problem was promoted from the snprintf-posix
8250         to the snprintf module.
8251         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8252         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8253         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8254         * tests/test-snprintf.c (main): Check the byte count returned.
8255         * tests/test-vsnprintf.c (main): Likewise.
8256
8257 2010-12-23  Eric Blake  <eblake@redhat.com>
8258
8259         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8260         * modules/sigpipe (License): Relax license.
8261
8262 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         doc: document Solaris printf bug with large float precisions
8265         * doc/posix-functions/dprintf.texi (dprintf):
8266         * doc/posix-functions/fprintf.texi (fprintf):
8267         * doc/posix-functions/printf.texi (printf):
8268         * doc/posix-functions/snprintf.texi (snprintf):
8269         * doc/posix-functions/sprintf.texi (sprintf):
8270         * doc/posix-functions/vdprintf.texi (vdprintf):
8271         * doc/posix-functions/vfprintf.texi (vfprintf):
8272         * doc/posix-functions/vprintf.texi (vprintf):
8273         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8274         * doc/posix-functions/vsprintf.texi (vsprintf):
8275         Mention that these functions mishandle large floating point
8276         precisions on Solaris 10.  The same bug is also present in Solaris
8277         8, and I assume earlier.  This causes "cd gnulib-tests; make
8278         check" to fail on Solaris 8 (and I assume, later) when building
8279         the latest coreutils, in test-vasprintf-posix's call to
8280         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8281         the wide flavors (e.g., wprintf) so this patch just updates the
8282         documentation for the narrow ones.
8283
8284         test-posixtm.c: add two tests
8285         * tests/test-posixtm.c: Add two tests, to highlight the
8286         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8287         around this bug; this is merely to document it.
8288
8289 2010-12-22  Bruno Haible  <bruno@clisp.org>
8290
8291         getlogin_r: Work around portability problem on OSF/1.
8292         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8293         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8294         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8295         test for a truncated result.
8296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8297         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8298         * modules/getlogin_r (Depends-on): Add memchr.
8299         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8300
8301 2010-12-22  Bruno Haible  <bruno@clisp.org>
8302
8303         ptsname: Avoid test failure on OSF/1 5.1.
8304         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8305         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8306         (same_slave): New function.
8307         (main): Use it to compare ptsname's result with the expected file name.
8308
8309 2010-12-22  Bruno Haible  <bruno@clisp.org>
8310
8311         Port extended stdio modules to HP NonStop Kernel.
8312         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8313         macros.
8314         * lib/fbufmode.c: Update comments.
8315         * lib/fflush.c: Likewise.
8316         * lib/fpurge.c: Likewise.
8317         * lib/freadable.c: Likewise.
8318         * lib/freadahead.c: Likewise.
8319         * lib/freading.c: Likewise.
8320         * lib/freadptr.c: Likewise.
8321         * lib/freadseek.c: Likewise.
8322         * lib/fseeko.c: Likewise.
8323         * lib/fseterr.c: Likewise.
8324         * lib/fwritable.c: Likewise.
8325         * lib/fwriting.c: Likewise.
8326         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8327
8328 2010-12-22  Bruno Haible  <bruno@clisp.org>
8329
8330         ttyname_r: Work around bug on OSF/1 5.1.
8331         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8332         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8333         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8334         present.
8335         * lib/ttyname_r.c (ttyname_r): Update comments.
8336
8337 2010-12-22  Bruno Haible  <bruno@clisp.org>
8338
8339         round: Implement result sign according to IEEE 754.
8340         * lib/round.c (MIN, MINUS_ZERO): New macros.
8341         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8342         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8343         * tests/test-round-ieee.c (main): Likewise.
8344         * tests/test-roundl-ieee.c (main): Likewise.
8345
8346         trunc: Implement result sign according to IEEE 754.
8347         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8348         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8349         * tests/test-trunc2.c: Include minus-zero.h.
8350         (MINUS_ZERO): New macro.
8351         (trunc_reference): Keep in sync with lib/trunc.c.
8352         * tests/test-truncf2.c: Include minus-zero.h.
8353         (MINUS_ZERO): New macro.
8354         (truncf_reference): Keep in sync with lib/trunc.c.
8355         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8356         * tests/test-trunc-ieee.c (main): Likewise.
8357         * tests/test-truncl-ieee.c (main): Likewise.
8358
8359         ceil: Implement result sign according to IEEE 754.
8360         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8361         (FUNC): Return -0.0 for -1 < x < 0.
8362         * tests/test-ceil2.c: Include minus-zero.h.
8363         (MINUS_ZERO): New macro.
8364         (ceil_reference): Keep in sync with lib/ceil.c.
8365         * tests/test-ceilf2.c: Include minus-zero.h.
8366         (MINUS_ZERO): New macro.
8367         (ceilf_reference): Keep in sync with lib/ceil.c.
8368         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8369         * tests/test-ceil-ieee.c (main): Likewise.
8370         * tests/test-ceill-ieee.c (main): Likewise.
8371
8372         floor: Implement result sign according to IEEE 754.
8373         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8374         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8375         * tests/test-floorf2.c (floorf_reference): Likewise.
8376         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8377         * tests/test-floor-ieee.c (main): Likewise.
8378         * tests/test-floorl-ieee.c (main): Likewise.
8379
8380 2010-12-22  Bruno Haible  <bruno@clisp.org>
8381
8382         getaddrinfo: Update doc.
8383         * doc/posix-functions/gai_strerror.texi: Return type is also different
8384         on AIX and HP-UX.
8385
8386 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         getaddrinfo, inet_ntop: Update doc for Solaris.
8389         * doc/posix-functions/gai_strerror.texi: Return type is also an
8390         issue on Solaris 9 and earlier.
8391         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8392         on Solaris 10 and earlier.
8393
8394 2010-12-21  Bruno Haible  <bruno@clisp.org>
8395
8396         New module 'roundl-ieee'.
8397         * modules/roundl-ieee: New file.
8398         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8399         test whether roundl works according to ISO C 99 with IEC 60559.
8400         * m4/roundl-ieee.m4: New file.
8401         * modules/roundl-ieee-tests: New file.
8402         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8403         * tests/test-roundl.c (main): Remove signbit tests.
8404         * modules/roundl-tests (Depends-on): Remove signbit.
8405         * doc/posix-functions/roundl.texi: Mention the new module.
8406
8407 2010-12-21  Bruno Haible  <bruno@clisp.org>
8408
8409         New module 'truncl-ieee'.
8410         * modules/truncl-ieee: New file.
8411         * modules/truncl-ieee-tests: New file.
8412         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8413         * tests/test-truncl.c (main): Remove signbit tests.
8414         * modules/truncl-tests (Depends-on): Remove signbit.
8415         * doc/posix-functions/truncl.texi: Mention the new module.
8416
8417 2010-12-21  Bruno Haible  <bruno@clisp.org>
8418
8419         New module 'ceill-ieee'.
8420         * modules/ceill-ieee: New file.
8421         * modules/ceill-ieee-tests: New file.
8422         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8423         * tests/test-ceill.c (main): Remove signbit tests.
8424         * modules/ceill-tests (Depends-on): Remove signbit.
8425         * doc/posix-functions/ceill.texi: Mention the new module.
8426
8427 2010-12-21  Bruno Haible  <bruno@clisp.org>
8428
8429         New module 'floorl-ieee'.
8430         * modules/floorl-ieee: New file.
8431         * modules/floorl-ieee-tests: New file.
8432         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8433         * tests/test-floorl.c (main): Remove signbit tests.
8434         * modules/floorl-tests (Depends-on): Remove signbit.
8435         * doc/posix-functions/floorl.texi: Mention the new module.
8436
8437 2010-12-21  Bruno Haible  <bruno@clisp.org>
8438
8439         New module 'round-ieee'.
8440         * modules/round-ieee: New file.
8441         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8442         whether round works according to ISO C 99 with IEC 60559.
8443         * m4/round-ieee.m4: New file.
8444         * modules/round-ieee-tests: New file.
8445         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8446         * tests/test-round1.c (main): Remove signbit tests.
8447         * modules/round-tests (Depends-on): Remove 'signbit'.
8448         * doc/posix-functions/round.texi: Mention the new module.
8449
8450 2010-12-21  Bruno Haible  <bruno@clisp.org>
8451
8452         New module 'trunc-ieee'.
8453         * modules/trunc-ieee: New file.
8454         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8455         whether trunc works according to ISO C 99 with IEC 60559.
8456         * m4/trunc-ieee.m4: New file.
8457         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8459         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8460         * modules/trunc-ieee-tests: New file.
8461         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8462         * tests/test-trunc1.c (main): Remove signbit tests.
8463         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8464         * doc/posix-functions/trunc.texi: Mention the new module.
8465
8466 2010-12-21  Bruno Haible  <bruno@clisp.org>
8467
8468         New module 'ceil-ieee'.
8469         * modules/ceil-ieee: New file.
8470         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8471         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8472         ISO C 99 with IEC 60559.
8473         * m4/ceil-ieee.m4: New file.
8474         * modules/ceil (Files): Add lib/ceil.c.
8475         (Depends-on): Add 'float'.
8476         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8477         * lib/math.in.h (ceil): New declaration.
8478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8479         REPLACE_CEIL.
8480         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8481         * modules/ceil-ieee-tests: New file.
8482         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8483         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8484         * doc/posix-functions/ceil.texi: Mention the new module.
8485
8486 2010-12-21  Bruno Haible  <bruno@clisp.org>
8487
8488         New module 'floor-ieee'.
8489         * modules/floor-ieee: New file.
8490         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8491         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8492         ISO C 99 with IEC 60559.
8493         * m4/floor-ieee.m4: New file.
8494         * modules/floor (Files): Add lib/floor.c.
8495         (Depends-on): Add 'float'.
8496         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8497         * lib/math.in.h (floor): New declaration.
8498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8499         REPLACE_FLOOR.
8500         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8501         * modules/floor-ieee-tests: New file.
8502         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8503         * tests/test-math-c++.cc: Check the signature of 'floor'.
8504         * doc/posix-functions/floor.texi: Mention the new module.
8505
8506 2010-12-21  Bruno Haible  <bruno@clisp.org>
8507
8508         New module 'roundf-ieee'.
8509         * modules/roundf-ieee: New file.
8510         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8511         test whether roundf works according to ISO C 99 with IEC 60559.
8512         * m4/roundf-ieee.m4: New file.
8513         * modules/roundf-ieee-tests: New file.
8514         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8515         * tests/test-roundf1.c (main): Remove signbit tests.
8516         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8517         * doc/posix-functions/roundf.texi: Mention the new module.
8518
8519 2010-12-21  Bruno Haible  <bruno@clisp.org>
8520
8521         New module 'truncf-ieee'.
8522         * modules/truncf-ieee: New file.
8523         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8524         test whether truncf works according to ISO C 99 with IEC 60559.
8525         * m4/truncf-ieee.m4: New file.
8526         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8528         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8529         * modules/truncf-ieee-tests: New file.
8530         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8531         * tests/test-truncf1.c (main): Remove signbit tests.
8532         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8533         * doc/posix-functions/truncf.texi: Mention the new module.
8534
8535 2010-12-21  Bruno Haible  <bruno@clisp.org>
8536
8537         New module 'ceilf-ieee'.
8538         * modules/ceilf-ieee: New file.
8539         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8540         test whether ceilf works according to ISO C 99 with IEC 60559.
8541         * m4/ceilf-ieee.m4: New file.
8542         * modules/ceilf-ieee-tests: New file.
8543         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8544         * tests/test-ceilf1.c (main): Remove signbit tests.
8545         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8546         * doc/posix-functions/ceilf.texi: Mention the new module.
8547
8548 2010-12-21  Bruno Haible  <bruno@clisp.org>
8549
8550         New module 'floorf-ieee'.
8551         * modules/floorf-ieee: New file.
8552         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8553         test whether floorf works according to ISO C 99 with IEC 60559.
8554         * m4/floorf-ieee.m4: New file.
8555         * modules/floorf-ieee-tests: New file.
8556         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8557         * tests/test-floorf1.c (main): Remove signbit tests.
8558         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8559         * doc/posix-functions/floorf.texi: Mention the new module.
8560
8561 2010-12-21  Bruno Haible  <bruno@clisp.org>
8562
8563         Support for minus zero in autoconf macros.
8564         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8565         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8566         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8567         * tests/minus-zero.h: Update comments.
8568
8569 2010-12-21  Bruno Haible  <bruno@clisp.org>
8570
8571         Tests for module 'ceil'.
8572         * modules/ceil-tests: New file.
8573         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8574         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8575
8576 2010-12-21  Bruno Haible  <bruno@clisp.org>
8577
8578         Tests for module 'floor'.
8579         * modules/floor-tests: New file.
8580         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8581         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8582
8583 2010-12-21  Bruno Haible  <bruno@clisp.org>
8584
8585         math: Fix indentation.
8586         * lib/math.in.h (floorf): Fix indentation.
8587
8588 2010-12-21  Bruno Haible  <bruno@clisp.org>
8589
8590         Fix cross-compilation guesses on Solaris.
8591         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8592         not match "solaris2.10".
8593         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8594         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8595         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8596
8597 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8598
8599         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8600         This fixes a problem observed with the latest coreutils snapshot
8601         that caused a test to fail on Solaris 8.  src/csplit.c's call
8602         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8603         earlier, instead of returning the number of bytes that would have
8604         been generated; this causes csplit to incorrectly report memory
8605         exhaustion.
8606         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8607         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8608         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8609         comments to match.
8610         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8611         Fix typo in matching older versions of Solaris: "solaris2.10"
8612         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8613         only for guessing while cross-compiling.
8614         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8615
8616 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8617
8618         ftoastr: fix comment again
8619         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8620         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8621         Also, simplify example a bit by using flags = 0.
8622
8623 2010-12-20  Bruno Haible  <bruno@clisp.org>
8624
8625         round*, trunc*: Update documentation regarding glibc.
8626         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8627         * doc/posix-functions/round.texi: Likewise.
8628         * doc/posix-functions/roundl.texi: Likewise.
8629         * doc/posix-functions/truncf.texi: Likewise.
8630         * doc/posix-functions/trunc.texi: Likewise.
8631         * doc/posix-functions/truncl.texi: Likewise.
8632
8633 2010-12-20  Bruno Haible  <bruno@clisp.org>
8634
8635         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8636         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8637         * doc/posix-functions/round.texi: Likewise.
8638         * doc/posix-functions/roundl.texi: Likewise.
8639
8640 2010-12-20  Bruno Haible  <bruno@clisp.org>
8641
8642         ttyname_r: Add missing declaration on HP-UX 11.
8643         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8644         HAVE_TTYNAME_R.
8645         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8646         declared. Set HAVE_TTYNAME_R always.
8647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8648         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8649         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8650         HAVE_TTYNAME_R.
8651         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8652
8653 2010-12-20  Bruno Haible  <bruno@clisp.org>
8654
8655         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8656         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8657         * doc/posix-functions/getlogin_r.texi: Likewise.
8658         * tests/test-getlogin.c: Include <errno.h>.
8659         (main): Avoid test failure on HP-UX 11.11.
8660         * tests/test-getlogin_r.c (main): Likewise.
8661
8662 2010-12-20  Bruno Haible  <bruno@clisp.org>
8663
8664         getlogin_r: Add missing declaration on HP-UX 11.
8665         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8666         declared also when it exists as a function.
8667         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8668
8669 2010-12-20  Bruno Haible  <bruno@clisp.org>
8670
8671         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8672         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8673         through wcrtomb.
8674
8675 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         ftoastr: fix comment
8678         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8680
8681 2010-12-19  Bruno Haible  <bruno@clisp.org>
8682
8683         isnan: Ensure it is a macro.
8684         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8685         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8686         Solaris.
8687
8688 2010-12-19  Bruno Haible  <bruno@clisp.org>
8689
8690         ldexpl test: Fix link error on OSF/1 5.1.
8691         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8692
8693 2010-12-19  Bruno Haible  <bruno@clisp.org>
8694
8695         wctype: Make it work in C++ mode on OSF/1 5.1.
8696         * lib/wctype.in.h (iswblank): Declare but not define here.
8697         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8698         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8699         * modules/wctype (Files): Add lib/iswblank.c.
8700
8701 2010-12-19  Bruno Haible  <bruno@clisp.org>
8702
8703         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8704         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8705         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8706
8707 2010-12-19  Bruno Haible  <bruno@clisp.org>
8708
8709         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8711         _POSIX_PII_SOCKET.
8712         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8713         * doc/posix-functions/recvfrom.texi: Likewise.
8714         * doc/posix-functions/send.texi: Likewise.
8715         * doc/posix-functions/sendto.texi: Likewise.
8716
8717 2010-12-19  Bruno Haible  <bruno@clisp.org>
8718
8719         tcgetsid: Add missing declaration on OSF/1 5.1.
8720         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8721         HAVE_TCGETSID.
8722         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8723         Don't set HAVE_TCGETSID.
8724         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8725         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8726         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8727         HAVE_TCGETSID.
8728         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8729
8730 2010-12-19  Bruno Haible  <bruno@clisp.org>
8731
8732         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8733         * lib/stdio.in.h: During the include_next statement, let recursive
8734         includes of this file include only the system header file.
8735
8736 2010-12-19  Bruno Haible  <bruno@clisp.org>
8737
8738         iconv_open: Fix regression from 2010-12-04.
8739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8740         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8741
8742 2010-12-19  Bruno Haible  <bruno@clisp.org>
8743
8744         stdbool test: Avoid a gcc warning.
8745         * tests/test-stdbool.c (main): Fail if e1 is false.
8746         Reported by Jim Meyering.
8747
8748 2010-12-19  Jim Meyering  <meyering@redhat.com>
8749
8750         setenv: restore to working order
8751         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8752         mistakenly removed.
8753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8754         HAVE_SETENV.
8755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8756         HAVE_SETENV.
8757
8758 2010-12-19  Bruno Haible  <bruno@clisp.org>
8759
8760         Document some different function declarations on OSF/1 5.1.
8761         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8762         * doc/posix-functions/inet_ntop.texi: Likewise.
8763         * doc/posix-functions/gethostname.texi: Likewise.
8764         * lib/unistd.in.h (gethostname): Update comment.
8765
8766 2010-12-19  Bruno Haible  <bruno@clisp.org>
8767
8768         doc: Mention vasprintf-posix module.
8769         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8770         the 'vasprintf-posix' module.
8771         * doc/glibc-functions/vasprintf.texi: Likewise.
8772
8773 2010-12-19  Bruno Haible  <bruno@clisp.org>
8774
8775         unsetenv: Add missing declaration on OSF/1 5.1.
8776         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8778         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8780         not HAVE_UNSETENV.
8781         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8782         HAVE_UNSETENV.
8783         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8784
8785 2010-12-19  Bruno Haible  <bruno@clisp.org>
8786
8787         setenv: Add missing declaration on OSF/1 5.1.
8788         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8790         declared. Don't set HAVE_SETENV.
8791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8792         not HAVE_SETENV.
8793         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8794         HAVE_SETENV.
8795         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8796
8797 2010-12-19  Bruno Haible  <bruno@clisp.org>
8798
8799         nl_langinfo tests: Avoid gcc warning.
8800         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8801
8802 2010-12-19  Bruno Haible  <bruno@clisp.org>
8803
8804         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8805         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8806         _GL_CXXALIAS_SYS.
8807
8808 2010-12-19  Bruno Haible  <bruno@clisp.org>
8809
8810         stdbool: Relax test.
8811         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8812         address to 'bool' work in static initializer, for compilers other than
8813         GCC.
8814
8815 2010-12-19  Bruno Haible  <bruno@clisp.org>
8816
8817         ftello: Add missing declaration on OSF/1 5.1.
8818         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8819         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8821         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8822         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8823
8824 2010-12-19  Bruno Haible  <bruno@clisp.org>
8825
8826         fseeko: Add missing declaration on OSF/1 5.1.
8827         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8830         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8831         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8832
8833 2010-12-19  Bruno Haible  <bruno@clisp.org>
8834
8835         fchdir: Add missing declaration on OSF/1 5.1.
8836         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8839         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8840         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8841
8842 2010-12-19  Bruno Haible  <bruno@clisp.org>
8843
8844         relocatable-prog-wrapper: Separate from relocatable-prog.
8845         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8846         uninstall-relocwrapper rule here.
8847         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8848         Reported by Ian Beckwith <ianb@erislabs.net>.
8849
8850 2010-12-19  Bruno Haible  <bruno@clisp.org>
8851
8852         unistr/u8-mbsnlen: Add missing dependency.
8853         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8854         Reported by Ian Beckwith <ianb@erislabs.net>.
8855
8856 2010-12-19  Bruno Haible  <bruno@clisp.org>
8857
8858         iconv: Make it possible again to use this module without 'iconv-h'.
8859         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8860         if it is not defined.
8861         Reported by Ian Beckwith <ianb@erislabs.net>.
8862
8863 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8864
8865         acl: port to Solaris 8 when copying from tmpfs to ufs
8866         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8867         error number.  Problem observed on Solaris 8 with latest
8868         coreutils, with "mv A B", where A is on a tmpfs file system and B
8869         is on a ufs file system.  This caused coreutils' mv/part-symlink
8870         test to fail.
8871
8872         tests: set fail=0 at start
8873         * tests/init.sh (setup_): Move fail=0 initialization here ...
8874         (mktempd_): ... from here, so that tests can rely on fail being
8875         set to 0 initially.  This fixes a problem in coreutils; see:
8876         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8877
8878 2010-12-18  Bruno Haible  <bruno@clisp.org>
8879
8880         memmem-simple: Stylistic changes.
8881         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8882         Fix preprocessor directive indentation.
8883
8884 2010-12-15  Pádraig Brady <P@draigBrady.com>
8885
8886         memmem, memmem-simple: reorganize and expand empty needle check
8887         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8888         functional checks to memmem-simple so that one has a fully functional
8889         memmem by using just this module.
8890         Restrict the performance only check to the memmem module.
8891         Also expand the empty needle check to ensure the correct
8892         pointer is returned, not just a non NULL pointer.
8893         * doc/glibc-functions/memmem.texi: Rearrange the portability
8894         documentation to correlate with the rearranged checks.
8895         Clarify exactly how the memmem and memmem-simple modules
8896         relate to each other.
8897
8898 2010-12-15  Pádraig Brady <P@draigBrady.com>
8899             Bruno Haible  <bruno@clisp.org>
8900
8901         Improve cross-compilation guesses for uClibc.
8902         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8903         that uClibc does not have the glibc bug.
8904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8905         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8906
8907 2010-12-14  Eric Blake  <eblake@redhat.com>
8908
8909         configmake: provide fallbacks for oldest supported autotools
8910         * m4/configmake.m4: New file.
8911         * modules/configmake (Files): Ship it.
8912         (configure.ac): Use it to guarantee fallbacks.
8913
8914 2010-12-13  Pádraig Brady <P@draigBrady.com>
8915
8916         read-file: Improve handling of large files
8917         * lib/read-file.c (fread_file): Minimize realloc()s
8918         for regular files, and better manage sizes around SIZE_MAX.
8919
8920 2010-12-13  Eric Blake  <eblake@redhat.com>
8921
8922         cloexec, fcntl: relax license
8923         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8924         consent from all contributors.
8925         * modules/fcntl (License): Likewise.
8926
8927 2010-12-10  Bruno Haible  <bruno@clisp.org>
8928
8929         Tests for module 'pipe-posix'.
8930         * modules/pipe-posix-tests: New file.
8931         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8932
8933 2010-12-10  Bruno Haible  <bruno@clisp.org>
8934
8935         pipe-posix: Make it work in C++ mode.
8936         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8937         (pipe): Use common idiom, not a macro definition.
8938         * lib/pipe.c: New file.
8939         * m4/pipe.m4: New file.
8940         * modules/pipe-posix (Description): Enhance.
8941         (Files): Add lib/pipe.c, m4/pipe.m4.
8942         (configure.ac): Invoke gl_FUNC_PIPE.
8943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8944         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8945         * tests/test-unistd-c++.cc: Check the signature of pipe.
8946
8947 2010-12-10  Bruno Haible  <bruno@clisp.org>
8948
8949         Rename module 'pipe' to 'spawn-pipe'.
8950         * modules/spawn-pipe: New file, renamed from modules/pipe.
8951         (Files, configure.ac, Makefile.am): Update.
8952         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8953         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8954         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8955         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8956         "spawn-pipe.h" instead of "pipe.h".
8957         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8958         to gl_SPAWN_PIPE.
8959         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8960         (Files, Makefile.am): Update.
8961         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8962         Update.
8963         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8964         Include "spawn-pipe.h" instead of "pipe.h".
8965         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8966         * lib/javacomp.c: Likewise.
8967         * lib/javaversion.c: Likewise.
8968         * lib/pipe-filter-gi.c: Likewise.
8969         * lib/pipe-filter-ii.c: Likewise.
8970         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8971         * modules/javacomp (Depends-on): Likewise.
8972         * modules/javaversion (Depends-on): Likewise.
8973         * modules/pipe-filter-gi (Depends-on): Likewise.
8974         * modules/pipe-filter-ii (Depends-on): Likewise.
8975         * MODULES.html.sh (Executing programs): Update.
8976         * NEWS: Mention the change.
8977
8978 2010-12-10  Eric Blake  <eblake@redhat.com>
8979
8980         pipe-posix: new module
8981         * modules/pipe-posix: New file.
8982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8983         (gl_UNISTD_H): Check for declaration.
8984         * modules/unistd (Makefile.am): Substitute it.
8985         * lib/unistd.in.h (pipe): Provide it for mingw.
8986         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8987         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8988
8989 2010-12-07  Bruno Haible  <bruno@clisp.org>
8990
8991         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8992         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8993         u8_strcmp_gnu.
8994         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8995
8996 2010-12-06  Bruno Haible  <bruno@clisp.org>
8997
8998         Update internal documentation.
8999         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9000
9001 2010-12-04  Bruno Haible  <bruno@clisp.org>
9002
9003         Put more information about failed tests into the test return codes.
9004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9005         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9006         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9008         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9009         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9010         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9011         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9012         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9014         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9015         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9016         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9017         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9018         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9019         returns a bit mask.
9020         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9021         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9022         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9023         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9024         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9025         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9028         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9029         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9030         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9031         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9032         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9034         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9035         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9036         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9037         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9038         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9039         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9041         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9043         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9044         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9045         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9046         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9047         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9048         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9049         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9050         gl_PRINTF_PRECISION): Likewise.
9051         * m4/regex.m4 (gl_REGEX): Likewise.
9052         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9054         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9055         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9059         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9060         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9061         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9062         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9064         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9065         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9066         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9067         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9068         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9069         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9071         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9072         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9073         enumerated value.
9074         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9075
9076 2010-12-04  Bruno Haible  <bruno@clisp.org>
9077
9078         Update for Solaris 11 2010-11.
9079         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9080         Express, released in November 2010.
9081
9082 2010-12-04  Bruno Haible  <bruno@clisp.org>
9083
9084         nproc: Relax license.
9085         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9086         and Paul Eggert.
9087         Requested by Ludovic Courtès <ludo@gnu.org>.
9088
9089 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9090
9091         utimecmp: fine-grained src to nearby coarse-grained dest
9092
9093         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9094         and the source is on a file system with higher-resolution time
9095         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9096         not work, and the time stamps are close together, the algorithm to
9097         determine the exact resolution from the read-back mtime was buggy:
9098         it had a "!=" where it should have had an "==".  This bug has been
9099         in the code ever since it was introduced to gnulib.
9100         Problem reported by Dan Jacobson in
9101         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9102
9103 2010-11-30  Bruno Haible  <bruno@clisp.org>
9104
9105         strerror_r-posix: Fix autoconf test.
9106         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9107
9108 2010-11-28  Bruno Haible  <bruno@clisp.org>
9109             Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         Tests for module 'getdomainname'.
9112         * modules/getdomainname-tests: New file.
9113         * tests/test-getdomainname.c: New file, based on
9114         tests/test-gethostname.c.
9115
9116 2010-11-28  Bruno Haible  <bruno@clisp.org>
9117             Paul Eggert  <eggert@cs.ucla.edu>
9118
9119         getdomainname: Use the system function when possible.
9120         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9121         (getdomainname): Replace if needed. Provide the declaration if it is
9122         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9123         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9124         (getdomainname): When the system has getdomainname, call the system
9125         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9127         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9128         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9129         the function if its second argument is of type 'int' or if it is found
9130         in libnsl.
9131         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9132         <sys/systeminfo.h> and sysinfo().
9133         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9135         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9136         HAVE_GETDOMAINNAME.
9137         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9138         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9139         * doc/glibc-functions/getdomainname.texi: Document the problems with
9140         the getdomainname declaration.
9141
9142 2010-11-28  Bruno Haible  <bruno@clisp.org>
9143
9144         sys_socket: Ensure ss_family field on AIX.
9145         * lib/sys_socket.in.h (ss_family): New macro definition.
9146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9147         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9148         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9149         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9150         * modules/sys_socket (Makefile.am): Substitute
9151         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9152         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9153
9154 2010-11-27  Bruno Haible  <bruno@clisp.org>
9155
9156         readline: Improve configure output.
9157         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9158         "checking for readline..." result understandable.
9159
9160 2010-11-27  Bruno Haible  <bruno@clisp.org>
9161
9162         *printf-posix: Detect a bug on Solaris 10/x86.
9163         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9164         for floating-point output.
9165         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9166         directive.
9167         * tests/test-snprintf-posix.h (test_function): Likewise.
9168         * tests/test-sprintf-posix.h (test_function): Likewise.
9169         * tests/test-vasprintf-posix.c (test_function): Likewise.
9170         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9171         * doc/posix-functions/printf.texi: Likewise.
9172         * doc/posix-functions/snprintf.texi: Likewise.
9173         * doc/posix-functions/sprintf.texi: Likewise.
9174         * doc/posix-functions/vfprintf.texi: Likewise.
9175         * doc/posix-functions/vprintf.texi: Likewise.
9176         * doc/posix-functions/vsnprintf.texi: Likewise.
9177         * doc/posix-functions/vsprintf.texi: Likewise.
9178         * doc/glibc-functions/obstack_printf.texi: Likewise.
9179         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9180
9181 2010-11-27  Bruno Haible  <bruno@clisp.org>
9182
9183         Fix link error when module libunistring-optional is in use.
9184         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9185         * modules/striconveha-tests (Makefile.am): Likewise.
9186
9187 2010-11-27  Bruno Haible  <bruno@clisp.org>
9188
9189         regex: Mention link dependencies.
9190         * modules/regex (Link): New section.
9191         * modules/rpmatch (Link): Likewise.
9192         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9193
9194 2010-11-27  Bruno Haible  <bruno@clisp.org>
9195
9196         ftoastr: Fix compilation error on Solaris.
9197         * lib/ftoastr.c: Include <config.h>.
9198
9199 2010-11-27  Bruno Haible  <bruno@clisp.org>
9200
9201         getloadavg: Update documentation.
9202         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9203
9204 2010-11-27  Bruno Haible  <bruno@clisp.org>
9205
9206         sys_socket: Fix test whether the functions are declared.
9207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9208         not <sys/select.h>.
9209
9210 2010-11-27  Bruno Haible  <bruno@clisp.org>
9211
9212         getpass: Make sure to get system declaration on some platforms.
9213         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9214         gl_USE_SYSTEM_EXTENSIONS.
9215         * modules/getpass (Depends-on): Add extensions.
9216
9217 2010-11-26  Bruno Haible  <bruno@clisp.org>
9218
9219         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9220         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9221         'iconv' module is present.
9222         (ICONV_CONST): New macro.
9223         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9224         ICONV_CONST.
9225         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9226         set ICONV_CONST.
9227         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9228         here.
9229         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9230         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9231         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9232         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9233         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9234         present.
9235
9236 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9237
9238         ftoastr: comment fix
9239         * lib/ftoastr.c: "little" -> "little or no" in comment
9240
9241 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9242
9243         stdint: port to GCC 4.3 + OSX + Octave
9244         On this platform, stdint.h is buggy and defines int64_t to long
9245         long int.  The replacement defined it to long int, causing
9246         problems with C++ style name mangling.  Instead, trust the system
9247         definition if INT64_MAX is defined, and likewise for the unsigned
9248         variant.   Problem reported by Jarno Rajahalme in
9249         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9250         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9251         and don't mess with int64_t and INT64_MAX in this case.
9252         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9253
9254 2010-11-24  Bruno Haible  <bruno@clisp.org>
9255
9256         doc: Corrections regarding MacOS X 10.4 and 10.5.
9257         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9258         MacOS X.
9259         Reported by Simon Josefsson.
9260
9261 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9262
9263         Uninstall ".bin" files installed by relocwrapper.
9264         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9265         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9266         unless it is already there.
9267
9268 2010-11-21  Bruno Haible  <bruno@clisp.org>
9269
9270         Update for NetBSD 5.0.
9271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9272         NetBSD; the test fails on NetBSD 5.0.
9273         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9274         about NetBSD.
9275
9276 2010-11-21  Bruno Haible  <bruno@clisp.org>
9277
9278         Update for HP-UX 11.23 and HP-UX 11.31.
9279         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9280         HP-UX.
9281
9282 2010-11-21  Bruno Haible  <bruno@clisp.org>
9283
9284         Update for MacOS X 10.5.
9285         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9286         MacOS X; the test fails on MacOS X 10.5.8.
9287         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9288         about MacOS X.
9289
9290 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9291
9292         bootstrap: add bootstrap_sync option.
9293         See discussion at
9294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9296         * build-aux/bootstrap: Accept --bootstrap-sync to update
9297         bootstrap if it is not identical to the local gnulib's
9298         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9299         enable this by default.  Accept --no-bootstrap-sync to disable
9300         it.
9301
9302 2010-11-20  Bruno Haible  <bruno@clisp.org>
9303
9304         Ensure that <features.h> is included before __GLIBC__ is tested.
9305         * lib/printf-parse.h: Include <features.h>.
9306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9307         Reported by Mike Frysinger <vapier@gentoo.org>.
9308
9309         Ensure that <features.h> is included before __GLIBC__ is tested.
9310         * lib/wchar.in.h: Include <features.h>.
9311         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9312         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9313         Reported by Mike Frysinger <vapier@gentoo.org>.
9314
9315         Ensure that <features.h> is included before __GLIBC__ is tested.
9316         * lib/arpa_inet.in.h: Include <features.h>.
9317         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9318         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9319         Reported by Mike Frysinger <vapier@gentoo.org>.
9320
9321         Ensure that <features.h> is included before __GLIBC__ is tested.
9322         * build-aux/link-warning.h: Include <features.h>.
9323         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9324         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9325         Reported by Mike Frysinger <vapier@gentoo.org>.
9326
9327         Ensure that <features.h> is included before __GLIBC__ is tested.
9328         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9329         Reported by Mike Frysinger <vapier@gentoo.org>.
9330
9331 2010-11-20  Bruno Haible  <bruno@clisp.org>
9332
9333         memmem: Fix autoconf test.
9334         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9335
9336 2010-11-20  Bruno Haible  <bruno@clisp.org>
9337
9338         Port to uClibc.
9339         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9340         * lib/fcntl.in.h: Likewise.
9341         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9342         * lib/mbrtowc.c (mbrtowc): Likewise.
9343         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9344         * lib/strerror_r.c: Likewise.
9345         * lib/unistr/u8-strnlen.c: Likewise.
9346         * lib/vasnprintf.c (decimal_point_char): Likewise.
9347         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9348         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9349         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9350         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9351         * tests/test-sigaction.c (handler, main): Likewise.
9352         * lib/freading.h: Treat uClibc like a non-glibc platform.
9353         * lib/freading.c: Likewise.
9354         * lib/gettext.h: Likewise.
9355         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9356         Likewise.
9357         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9358         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9359         * lib/propername.c (proper_name_utf8): Likewise.
9360         * lib/spawn.in.h: Likewise.
9361         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9362         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9363         mem_cd_iconveh_internal): Likewise.
9364         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9365         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9366         strstr, strcasestr): Likewise.
9367         * lib/unicodeio.c (unicode_to_mb): Likewise.
9368         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9369         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9370         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9371         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9372         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9373         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9374         * lib/unistr/u8-stpncpy.c: Likewise.
9375         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9376         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9379         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9380         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9381         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9384         Likewise.
9385         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9386         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9390         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9391         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9392         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9393         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9394         * tests/test-striconveha.c (main): Likewise.
9395         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9396         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9397         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9398         * doc/posix-functions/getline.texi: Likewise.
9399         Reported by Mike Frysinger <vapier@gentoo.org>.
9400
9401 2010-11-20  Bruno Haible  <bruno@clisp.org>
9402
9403         nproc: Fix condition.
9404         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9405         HAVE_PTHREAD_AFFINITY_NP.
9406
9407 2010-11-20  Bruno Haible  <bruno@clisp.org>
9408
9409         Fix a comment.
9410         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9411
9412 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9413
9414         ftoastr: don't assume snprintf
9415         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9416         Implement a subset of snprintf here, by using sprintf safely.
9417         * modules/ftoastr (Depends-on): Remove snprintf.
9418
9419 2010-11-19  Jim Meyering  <meyering@redhat.com>
9420
9421         test-rename.h: fix compilation failure
9422         * tests/test-rename.h (test_rename): Add omitted "}".
9423
9424 2010-11-17  Jim Meyering  <meyering@redhat.com>
9425
9426         maint.mk: add a URL discussing the no-@acronym policy
9427         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9428
9429 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9430
9431         ftoastr: depend on snprintf, improve comments
9432         * lib/ftoastr.c: Also mention Loitsch's draft.
9433         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9434         needed in the current implementation, but it might simplify
9435         speeding up the code later.
9436         * modules/ftoastr: Depend on snprintf; this improves portability.
9437         Suggested by Bruno Haible in the same email.
9438
9439         ftoastr: port to hosts lacking strtof and strtold
9440         Problem reported by Bruno Haible in
9441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9442         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9443         environment and strtold (and presumably strtof) are not available.
9444         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9445         (configure.ac): Require gl_C99_STRTOLD.
9446
9447 2010-11-18  Bruno Haible  <bruno@clisp.org>
9448
9449         c-strtold: Avoid link error on AIX 7.
9450         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9451         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9452         (gl_C_STRTOLD): Test whether strtold_l exists.
9453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9454
9455 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         intprops: new macro INT_BITS_STRLEN_BOUND
9458         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9459         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9460         not exposed.  Also, it uses a slightly tighter bound than before;
9461         though this makes no practical difference, we might as well be as
9462         tight as we easily can.
9463
9464         ftoastr: new module, for lossless conversion of floats to short strings
9465         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9466         * modules/ftoastr: New files.
9467
9468 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9469
9470         bootstrap: port to Solaris sed
9471         * build-aux/bootstrap (get_version): Port to Solaris sed.
9472         See Ralf Wildenhues's note in
9473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9474
9475 2010-11-14  Jim Meyering  <meyering@redhat.com>
9476
9477         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9478         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9479         and move definition closer to sole use.
9480
9481 2010-11-13  Jim Meyering  <meyering@redhat.com>
9482
9483         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9484         Now we require at least autoconf-2.59, which means the work-around
9485         is no longer needed.
9486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9488         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9489         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9490         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9491
9492 2010-11-13  Bruno Haible  <bruno@clisp.org>
9493
9494         rename, renameat: Avoid test failures at NFS mounted locations.
9495         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9496         functions.
9497         (test_rename): Use assert_nonexistent.
9498         * tests/test-rename.c: Include <dirent.h>.
9499         * tests/test-renameat.c: Likewise.
9500         Reported by Gary V. Vaughan <gary@gnu.org>.
9501
9502         rename, renameat: Document Linux bug with NFS
9503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9504         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9505         * doc/posix-functions/renameat.texi: Likewise.
9506         Suggested by Eric Blake.
9507
9508 2010-11-13  Bruno Haible  <bruno@clisp.org>
9509
9510         rename test: Add comments.
9511         * tests/test-rename.h (test_rename): Add structure and comments.
9512
9513 2010-11-13  Eric Blake  <eblake@redhat.com>
9514
9515         maintainer-makefile: cover a few more files
9516         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9517         scripts generated within C files, for libvirt.
9518
9519 2010-11-13  Bruno Haible  <bruno@clisp.org>
9520
9521         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9522         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9523         character, return the number of bytes that belong together, not always
9524         1.
9525         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9526         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9527         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9528         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9529         number of bytes of an invalid character.
9530         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9531         (main): Invoke it.
9532         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9533         results.
9534         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9535         malformed byte sequences.
9536         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9537         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9538         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9539         Reported by Ben Pfaff and Paolo Bonzini.
9540
9541 2010-11-13  Bruno Haible  <bruno@clisp.org>
9542
9543         openat: Work around glibc bug with fchownat() and empty file names.
9544         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9545         (gl_FUNC_FCHOWNAT): Invoke it.
9546         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9547         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9548         Reported by Gary V. Vaughan <gary@gnu.org>.
9549
9550 2010-11-13  Bruno Haible  <bruno@clisp.org>
9551
9552         openat: Ensure autoconf macro ordering.
9553         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9554         gl_USE_SYSTEM_EXTENSIONS.
9555         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9556
9557 2010-11-13  Bruno Haible  <bruno@clisp.org>
9558
9559         Update comments.
9560         * lib/unistr/u8-check.c: Update file name in comments.
9561         * lib/unistr/u8-mblen.c: Likewise.
9562         * lib/unistr/u8-prev.c: Likewise.
9563         * lib/unistr/u8-strmblen.c: Likewise.
9564         * lib/unistr/u8-strmbtouc.c: Likewise.
9565
9566 2010-11-13  Jim Meyering  <meyering@redhat.com>
9567
9568         tests: avoid test failure on Solaris 10 due to lack of PATH export
9569         * tests/test-update-copyright.sh: Don't forget to export PATH.
9570
9571         init.sh: ensure that IFS is defined, just in case...
9572         * tests/init.sh (setup_): Ensure that IFS is defined,
9573         so that saving and restoring it works as expected.  This
9574         appears to be useful at least for an old version of dash
9575         from a long time ago (RH 6).  See here for details:
9576         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9577
9578         maint.mk: tighten "test a == b" check
9579         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9580         test to files that contain something like #!/bin/sh.
9581         Without this, coreutils would get two false positives in
9582         the comments of C source files.
9583
9584 2010-11-12  Eric Blake  <eblake@redhat.com>
9585
9586         bootstrap: fix typo in previous attempt
9587         * build-aux/bootstrap (buildreq): Correct the grouping.
9588         Reported by Paul Eggert.
9589
9590         maintainer-makefile: prohibit test x == x
9591         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9592         Based on a report by Matthias Bolte.
9593
9594         bootstrap: allow FreeBSD gzip
9595         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9596         which has no '.' and goes to stderr.
9597         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9598         Reported by Matthias Bolte.
9599
9600         maintainer-makefile: check for i18n setup
9601         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9602         will likely work.
9603
9604 2010-11-12  Bruno Haible  <bruno@clisp.org>
9605
9606         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9607         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9608         * lib/nanosleep.c (nanosleep): Likewise.
9609
9610 2010-11-11  Bruno Haible  <bruno@clisp.org>
9611
9612         fcntl-h: Fix for use of C++ on glibc systems.
9613         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9614         also on glibc systems in C++ mode.
9615         Reported by Gary V. Vaughan <gary@gnu.org>.
9616
9617 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9618
9619         mknod: avoid false failure with dash
9620         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9621
9622 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9623
9624         unlink: Fix "is it should" typo in diagnostic.
9625         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9626         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9627
9628 2010-11-11  Bruno Haible  <bruno@clisp.org>
9629
9630         Tests for module 'strerror_r-posix'.
9631         * modules/strerror_r-posix-tests: New file.
9632         * tests/test-strerror_r.c: New file.
9633         * tests/test-string-c++.cc: Check the signature of strerror_r.
9634
9635         New module 'strerror_r-posix'.
9636         * lib/string.in.h (strerror_r): New declaration.
9637         * lib/strerror_r.c: New file.
9638         * m4/strerror_r.m4: New file.
9639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9640         of strerror_r.
9641         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9642         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9643         * modules/strerror_r-posix: New file.
9644         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9645         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9646         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9647         portability problems.
9648
9649 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9650
9651         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9652         line is also considered for output. Quoted function name in shell
9653         command, so temporary files for functions like MyClass::operator()
9654         are removed correctly without errors.
9655
9656 2010-11-09  Bruno Haible  <bruno@clisp.org>
9657
9658         * doc/posix-functions/strerror.texi: List more failing platforms.
9659
9660         * doc/posix-functions/strerror.texi: Add a comment.
9661
9662 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9663
9664         fdopendir: fix bug on MacOS X when low on file descriptors
9665
9666         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9667         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9668         All callers changed.
9669         (fdopendir): Invoke save_cwd at the top level, not after using
9670         multiple dup() calls to use up file descriptors.  Then retry
9671         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9672         less than the maximum number of open file descriptors, because
9673         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9674         on Mac OS X 10.6.4 for tar 1.24
9675         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9676         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9677         and for tar 1.25
9678         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9679
9680 2010-11-07  Bruno Haible  <bruno@clisp.org>
9681
9682         vasnprintf: Support I flag on glibc systems.
9683         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9684         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9685         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9686         snprintf function.
9687         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9688         glibc systems.
9689         * tests/test-vasnprintf-posix3.c: New file.
9690         * modules/vasnprintf-posix-tests (Files): Add it.
9691         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9692
9693 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9694
9695         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9696         * MODULES.html.sh: For compiler warnings, use name
9697         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9698
9699 2010-11-05  Eric Blake  <eblake@redhat.com>
9700
9701         ceil, floor: avoid spurious failure with icc
9702         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9703         [denormals-as-zero] when optimizing without -mieee-fp option.
9704         * tests/test-floorf2.c (floorf_reference): Likewise.
9705         * tests/test-ceilf1.c (dummy): New function.
9706         (main): Use it to outsmart icc's optimization.
9707         * tests/test-floorf1.c (dummy, main): Likewise.
9708
9709         tests: require working signbit
9710         * modules/ceilf-tests (Depends-on): Add signbit.
9711         * modules/ceill-tests (Depends-on): Likewise.
9712         * modules/floorf-tests (Depends-on): Likewise.
9713         * modules/floorl-tests (Depends-on): Likewise.
9714         * modules/round-tests (Depends-on): Likewise.
9715         * modules/roundf-tests (Depends-on): Likewise.
9716         * modules/roundl-tests (Depends-on): Likewise.
9717         * modules/trunc-tests (Depends-on): Likewise.
9718         * modules/truncf-tests (Depends-on): Likewise.
9719         * modules/truncl-tests (Depends-on): Likewise.
9720
9721         strtod: work around icc bug
9722         * lib/strtod.c (minus_zero): Define to working value.
9723         (strtod): Use it to avoid icc bug.
9724
9725         copysign: enhance tests
9726         * modules/copysign-tests (Files): Add minus-zero.h.
9727         * tests/test-copysign.c (main): Also test zeros.
9728
9729 2010-11-04  Eric Blake  <eblake@redhat.com>
9730
9731         ceil, floor, round, trunc: enhance tests of -0
9732         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9733         * tests/test-ceill.c (main): Likewise.
9734         * tests/test-floorf1.c (main): Likewise.
9735         * tests/test-floorl.c (main): Likewise.
9736         * tests/test-round1.c (main): Likewise.
9737         * tests/test-roundf1.c (main): Likewise.
9738         * tests/test-roundl.c (main): Likewise.
9739         * tests/test-trunc1.c (main): Likewise.
9740         * tests/test-truncf1.c (main): Likewise.
9741         * tests/test-truncl.c (main): Likewise.
9742
9743 2010-11-04  Eric Blake  <eblake@redhat.com>
9744
9745         frexp, tests: work around ICC bug with -zero
9746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9747         works with more compilers.
9748         * tests/minus-zero.h: New file.
9749         * modules/ceilf-tests (Files): Include it.
9750         * modules/ceill-tests (Files): Likewise.
9751         * modules/floorf-tests (Files): Likewise.
9752         * modules/floorl-tests (Files): Likewise.
9753         * modules/frexp-nolibm-tests (Files): Likewise.
9754         * modules/frexp-tests (Files): Likewise.
9755         * modules/frexpl-nolibm-tests (Files): Likewise.
9756         * modules/frexpl-tests (Files): Likewise.
9757         * modules/isnan-tests (Files): Likewise.
9758         * modules/isnand-nolibm-tests (Files): Likewise.
9759         * modules/isnand-tests (Files): Likewise.
9760         * modules/isnanf-nolibm-tests (Files): Likewise.
9761         * modules/isnanf-tests (Files): Likewise.
9762         * modules/isnanl-nolibm-tests (Files): Likewise.
9763         * modules/isnanl-tests (Files): Likewise.
9764         * modules/round-tests (Files): Likewise.
9765         * modules/roundf-tests (Files): Likewise.
9766         * modules/roundl-tests (Files): Likewise.
9767         * modules/ldexpl-tests (Files): Likewise.
9768         * modules/signbit-tests (Files): Likewise.
9769         * modules/snprintf-posix-tests (Files): Likewise.
9770         * modules/sprintf-posix-tests (Files): Likewise.
9771         * modules/strtod-tests (Files): Likewise.
9772         * modules/trunc-tests (Files): Likewise.
9773         * modules/truncf-tests (Files): Likewise.
9774         * modules/truncl-tests (Files): Likewise.
9775         * modules/vsnprintf-posix-tests (Files): Likewise.
9776         * modules/vsprintf-posix-tests (Files): Likewise.
9777         * modules/vasnprintf-posix-tests (Files): Likewise.
9778         * modules/vasprintf-posix-tests (Files): Likewise.
9779         * tests/test-ceilf1.c (main): Use it.
9780         * tests/test-ceill.c (main): Likewise.
9781         * tests/test-floorf1.c (main): Likewise.
9782         * tests/test-floorl.c (main): Likewise.
9783         * tests/test-frexp.c (main): Likewise.
9784         * tests/test-frexpl.c (main): Likewise.
9785         * tests/test-isnan.c (main): Likewise.
9786         * tests/test-isnand.h (main): Likewise.
9787         * tests/test-isnanf.h (main): Likewise.
9788         * tests/test-isnanl.h (main): Likewise.
9789         * tests/test-ldexpl.c (main): Likewise.
9790         * tests/test-round.c (main): Likewise.
9791         * tests/test-roundf.c (main): Likewise.
9792         * tests/test-roundl.c (main): Likewise.
9793         * tests/test-signbit.c (test_signbitf, test_signbitd)
9794         (test_signbitl): Likewise.
9795         * tests/test-snprintf-posix.h (test_function): Likewise.
9796         * tests/test-sprintf-posix.h (test_function): Likewise.
9797         * tests/test-strtod.c (main): Likewise.
9798         * tests/test-trunc1.c (main): Likewise.
9799         * tests/test-truncf1.c (main): Likewise.
9800         * tests/test-truncl.c (main): Likewise.
9801
9802         isnanl: work around icc bug
9803         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9804
9805 2010-11-03  Eric Blake  <eblake@redhat.com>
9806
9807         tests: fix compiler warnings
9808         * tests/test-getopt.h (test_getopt): Fix condition.
9809         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9810         * tests/test-pipe2.c (main): Likewise.
9811         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9812
9813         utimens: fix broken m4 test
9814         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9815
9816 2010-10-28  Bruno Haible  <bruno@clisp.org>
9817
9818         posix_spawn*, getdtablesize: Relax license.
9819         * modules/posix_spawn (License): Change to LGPLv2+.
9820         * modules/posix_spawnp (License): Likewise.
9821         * modules/posix_spawn-internal (License): Likewise.
9822         * modules/posix_spawnattr_init (License): Likewise.
9823         * modules/posix_spawnattr_getflags (License): Likewise.
9824         * modules/posix_spawnattr_setflags (License): Likewise.
9825         * modules/posix_spawnattr_getpgroup (License): Likewise.
9826         * modules/posix_spawnattr_setpgroup (License): Likewise.
9827         * modules/posix_spawnattr_getschedparam (License): Likewise.
9828         * modules/posix_spawnattr_setschedparam (License): Likewise.
9829         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9830         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9831         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9832         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9833         * modules/posix_spawnattr_getsigmask (License): Likewise.
9834         * modules/posix_spawnattr_setsigmask (License): Likewise.
9835         * modules/posix_spawnattr_destroy (License): Likewise.
9836         * modules/posix_spawn_file_actions_init (License): Likewise.
9837         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9838         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9839         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9840         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9841         * modules/getdtablesize (License): Likewise.
9842         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9843
9844 2010-10-26  Bruno Haible  <bruno@clisp.org>
9845
9846         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9847         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9848         Cygwin and mingw.
9849         Suggested by Eric Blake.
9850
9851 2010-10-26  Bruno Haible  <bruno@clisp.org>
9852
9853         stdio: Work around compilation error due to renameat() on Solaris 10.
9854         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9855         * lib/renameat.c: Don't include <unistd.h> here.
9856         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9857         Reported by Paul Eggert and Eric Blake.
9858
9859 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9860
9861         renameat: port to Solaris 10, which declares renameat in unistd.h
9862
9863         * lib/renameat.c: Include unistd.h before stdio.h, because
9864         Solaris 10 declares renameat in unistd.h.  Problem encountered
9865         when building GNU tar 1.24 on Solaris 10.
9866
9867 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9868
9869         fdopendir: fix C89 compilation
9870         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9871         compilers.
9872
9873 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         inttostr: simplify by removing unnecessary redundancy
9876         * lib/anytostr.c: Don't include verify.h.
9877         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9878         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9879         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9880         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9881         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9882         Likewise.
9883         * modules/inttostr (Depends-on): Remove 'verify'.
9884
9885 2010-10-23  Bruno Haible  <bruno@clisp.org>
9886
9887         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9888         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9889         Reported by Eric Blake.
9890
9891 2010-10-23  Bruno Haible  <bruno@clisp.org>
9892
9893         Tests: Fix LOCALE_JA on MirBSD 10.
9894         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9895         to an UTF-8 locale.
9896         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9897         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9898         Reported by Eric Blake.
9899
9900 2010-10-21  Bruno Haible  <bruno@clisp.org>
9901
9902         nl_langinfo test: Avoid test failure on NetBSD 5.
9903         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9904         Reported by Eric Blake.
9905
9906 2010-10-21  Eric Blake  <eblake@redhat.com>
9907
9908         c-stack: work around libsigsegv 2.8 bug
9909         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9910         overflow on at least PowerPC64.
9911
9912 2010-10-17  Bruno Haible  <bruno@clisp.org>
9913
9914         userspec: Drop redundant file.
9915         * modules/userspec (Files): Remove lib/inttostr.h.
9916
9917 2010-10-17  Bruno Haible  <bruno@clisp.org>
9918
9919         nl_langinfo tests: Silence some warnings.
9920         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9921         Reported by Jim Meyering.
9922
9923 2010-10-17  Bruno Haible  <bruno@clisp.org>
9924
9925         Make use of GCC's attribute __alloc_size__.
9926         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9927         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9928         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9929         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9930         __alloc_size__.
9931         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9932         Suggested by Jim Meyering.
9933
9934 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9935
9936         bootstrap: anchor .gitignore entries.
9937         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9938         with...
9939         (insert_vc_ignore): ... this new function, which prepends `/' to
9940         all .gitignore entries before passing them to
9941         insert_sorted_if_absent.
9942
9943 2010-10-16  Bruno Haible  <bruno@clisp.org>
9944
9945         nextafter: Fix configure check.
9946         * modules/nextafter (configure.ac): Correct expected prototype.
9947
9948 2010-10-16  Bruno Haible  <bruno@clisp.org>
9949
9950         termios: Update documentation.
9951         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9952
9953 2010-10-16  Bruno Haible  <bruno@clisp.org>
9954
9955         tests: Make them compile with TinyCC.
9956         * tests/test-strstr.c (main): Remove parentheses around array
9957         initializer.
9958
9959 2010-10-15  Eric Blake  <eblake@redhat.com>
9960
9961         ignore-value: make header idempotent
9962         * lib/ignore-value.h: Add double-inclusion guards.
9963         Reported by Stefan Berger.
9964
9965 2010-10-15  Jim Meyering  <meyering@redhat.com>
9966
9967         GNUmakefile: handle "stable" target, not "major"
9968         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9969         lists in maint.mk and announce-gen.  Without this, "make stable"
9970         would fail to ensure that $(VERSION) is up to date.
9971
9972 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9973
9974         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9975         & co.
9976
9977 2010-10-14  Bruno Haible  <bruno@clisp.org>
9978
9979         vasnprintf: Don't set errno to 0.
9980         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9981         block that sets it to 0.
9982         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9983
9984 2010-10-14  Bruno Haible  <bruno@clisp.org>
9985
9986         socketlib: Fix.
9987         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9988         gl_PREREQ_SYS_H_WINSOCK2.
9989         Reported by Ian Beckwith <ianb@erislabs.net>.
9990
9991 2010-10-13  Jim Meyering  <meyering@redhat.com>
9992
9993         test-select-stdin.c: avoid warn_unused_result warnings
9994         * tests/test-select-stdin.c: Include "macros.h".
9995         ASSERT that read and fflush succeed.
9996
9997 2010-10-13  Jim Meyering  <meyering@redhat.com>
9998
9999         git-version-gen: do require git-VC'd files in cwd
10000         * build-aux/git-version-gen: Reject a git version string
10001         if there are no commits associated with the current directory.
10002         This avoids an unlikely false-positive (unrelated dir whose parent
10003         repository also contains a tag matching v*), as pointed out
10004         by Giuseppe Scrivano in
10005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10006
10007 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10008
10009         argv-iter: omit nonconforming declaration
10010         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10011         enum arg_iter_err declaration, which doesn't conform to C99.
10012         Solaris 10 cc warns about this.
10013
10014 2010-10-13  Eric Blake  <eblake@redhat.com>
10015
10016         termios: fix compilation on mingw
10017         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10018         (gl_TERMIOS_H): Adjust it on mingw.
10019         * modules/termios (Makefile.am): Substitute new key.
10020         * lib/termios.in.h (includes): Make include_next conditional.
10021         * doc/posix-headers/termios.texi (termios.h): Update
10022         documentation.
10023         Reported by Daniel P. Berrange.
10024
10025 2010-10-13  Jim Meyering  <meyering@redhat.com>
10026
10027         git-version-gen: don't require that .git/ be in the current dir
10028         * build-aux/git-version-gen: Adjust this script so that it works
10029         when run from any working directory beneath the top-level .git/-
10030         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10031         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10032
10033         test-select: avoid warn_unused_result warnings
10034         * tests/test-select.c: Include "macros.h".
10035         ASSERT that each call to read, write, and pipe succeeds.
10036         While not technically required, also check each "close".
10037         * modules/select-tests (Files): Add tests/macros.h.
10038
10039         test-symlinkat: remove declaration of unused local
10040         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10041
10042         test-inttostr: avoid shadowing warnings
10043         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10044         and use malloc rather than the stack for the same reason as
10045         mentioned in the comment justifying the other allocation.
10046
10047 2010-10-11  Bruno Haible  <bruno@clisp.org>
10048
10049         stdlib: Allow multiple gnulib generated replacements to coexist.
10050         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10051         Reported by Sam Steingold <sds@gnu.org>.
10052
10053 2010-10-11  Jim Meyering  <meyering@redhat.com>
10054
10055         fix a documentation typo
10056         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10057
10058 2010-10-11  Eric Blake  <eblake@redhat.com>
10059
10060         futimens: work around Solaris 11 bug
10061         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10062         * tests/test-futimens.h (test_futimens): Enhance, rather than
10063         weaken test.
10064         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10065
10066 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         Indentation.
10069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10070         higher-level operators more to the left.
10071
10072 2010-10-11  Jim Meyering  <meyering@redhat.com>
10073
10074         test-futimens: avoid unwarranted test failure on Solaris 5.11
10075         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10076         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10077         because it tries to dereference the NULL name argument.
10078
10079 2010-10-11  Bruno Haible  <bruno@clisp.org>
10080
10081         Indentation.
10082         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10083         indentation.
10084
10085 2010-10-11  Jim Meyering  <meyering@redhat.com>
10086
10087         spawn.in.h: make indentation consistent with parentheses
10088         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10089         Make indentation consistent with parentheses.
10090
10091 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10092
10093         Fix mismatched parens in previous commit
10094         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10095         parens.
10096
10097 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10100
10101         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10102         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10103         * lib/malloca.c: Include "verify.h".
10104         (verify1): Remove, replacing with a verify call.
10105         * lib/relocwrapper.c (verify1): Likewise.
10106         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10107         Likewise.
10108         * modules/malloca (Depends-on): Add 'verify'.
10109         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10110         * modules/vasnprintf (Depends-on): Add 'verify'.
10111         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10112         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10113         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10114         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10115         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10116         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10117         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10118
10119         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10120
10121         Formerly the style was sometimes 2*X - 1, because the C standard
10122         was wrongly thought to disallow ?: in integral constant expressions.
10123         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10124         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10125         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10126         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10127         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10128         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10129         verify that time_t cannot be floating.
10130
10131 2010-10-08  Eric Blake  <eblake@redhat.com>
10132
10133         time: enforce recent POSIX ruling that time_t is integral
10134         * lib/time.in.h (__time_t_must_be_integral): Detect any
10135         problematic systems, allowing the rest of gnulib to assume POSIX.
10136
10137 2010-10-08  Jim Meyering  <meyering@redhat.com>
10138
10139         fdopendir: fix a bug on systems lacking openat and /proc support
10140         OpenBSD 4.7 is one such system.  The most noticeable effect was
10141         failure of any application making nontrivial use of fts: rm, du,
10142         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10143           ./rm: traversal failed: `a': Bad file descriptor
10144         Debugging that, you see that even though FD 6 was closed just
10145         prior to the opendir call in fd_clone_opendir, its resulting
10146         dir->dd_fd was 8, rather than the expected value of 6:
10147
10148         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10149         93                close (fd);
10150         (gdb) n
10151         94                dir = fd_clone_opendir (dupfd);
10152         (gdb) n
10153         95                saved_errno = errno;
10154         (gdb) p dir->dd_fd
10155         $11 = 8
10156
10157         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10158         The problem is that on OpenBSD, fd_clone_opendir has to resort
10159         to using the old-style save/restore CWD mechanism, due to its
10160         lack of openat/proc support, and *that* would steal the FD (6)
10161         that opendir was supposed to use.
10162
10163         The fix is to squirrel away the desired FD so that save_cwd uses a
10164         different one, and then free the dest FD right before calling opendir.
10165         That guarantees opendir will use the required file descriptor.
10166
10167         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10168
10169 2010-10-08  Bruno Haible  <bruno@clisp.org>
10170
10171         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10172         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10173
10174 2010-10-08  Bruno Haible  <bruno@clisp.org>
10175
10176         nanosleep: Make replacement POSIX compliant.
10177         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10178         is out of range.
10179         Reported by Jim Meyering.
10180
10181 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10182
10183         bootstrap: add hook for altering gnulib.mk, for Bison
10184         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10185         the Bison bootstrapping process can rewrite file names and variables
10186         in this file before later parts of 'bootstrap' use the file.
10187         Bison wants to include lib/gnulib.mk from the top-level makefile,
10188         so it needs the file names in this file to be relative to the top
10189         level, not relative to lib; plus it needs variable names to be
10190         rewritten.
10191         (slurp): Use the new function.
10192
10193         bootstrap: reformat for readability
10194         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10195
10196 2010-10-08  Eric Blake  <eblake@redhat.com>
10197
10198         docs: update cygwin progress
10199         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10200         1.7.7.
10201         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10202         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10203         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10204         * doc/posix-functions/carg.texi (carg): Likewise.
10205         * doc/posix-functions/cargf.texi (cargf): Likewise.
10206         * doc/posix-functions/casin.texi (casin): Likewise.
10207         * doc/posix-functions/casinf.texi (casinf): Likewise.
10208         * doc/posix-functions/casinh.texi (casinh): Likewise.
10209         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10210         * doc/posix-functions/catan.texi (catan): Likewise.
10211         * doc/posix-functions/catanf.texi (catanf): Likewise.
10212         * doc/posix-functions/catanh.texi (catanh): Likewise.
10213         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10214         * doc/posix-functions/ccos.texi (ccos): Likewise.
10215         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10216         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10217         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10218         * doc/posix-functions/cexp.texi (cexp): Likewise.
10219         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10220         * doc/posix-functions/cimag.texi (cimag): Likewise.
10221         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10222         * doc/posix-functions/clog.texi (clog): Likewise.
10223         * doc/posix-functions/clogf.texi (clogf): Likewise.
10224         * doc/posix-functions/conj.texi (conj): Likewise.
10225         * doc/posix-functions/conjf.texi (conjf): Likewise.
10226         * doc/posix-functions/cpow.texi (cpow): Likewise.
10227         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10228         * doc/posix-functions/cproj.texi (cproj): Likewise.
10229         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10230         * doc/posix-functions/creal.texi (creal): Likewise.
10231         * doc/posix-functions/crealf.texi (crealf): Likewise.
10232         * doc/posix-functions/csin.texi (csin): Likewise.
10233         * doc/posix-functions/csinf.texi (csinf): Likewise.
10234         * doc/posix-functions/csinh.texi (csinh): Likewise.
10235         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10236         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10237         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10238         * doc/posix-functions/ctan.texi (ctan): Likewise.
10239         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10240         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10241         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10242         * doc/posix-headers/complex.texi (complex.h): Likewise.
10243
10244 2010-10-07  Jim Meyering  <meyering@redhat.com>
10245
10246         parse-datetime: avoid compilation failure on OpenBSD 4.7
10247         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10248         This works around a compilation failure on OpenBSD 4.7:
10249         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10250
10251 2010-10-07  Eric Blake  <eblake@redhat.com>
10252
10253         docs: update cygwin progress
10254         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10255         1.7.6.
10256         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10257         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10258         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10259         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10260         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10261         Likewise.
10262         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10263         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10264         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10265         Likewise.
10266         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10267         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10268         Likewise.
10269         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10270         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10271         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10272         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10273         Likewise.
10274         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10275         Likewise.
10276         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10277
10278         docs: update parse-datetime history
10279         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10280         documentation of this function's history and alternatives.
10281
10282         cygwin: use more robust version check
10283         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10284         exclude an eventual cygwin 1.9.1.
10285         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10287         (gl_FUNC_STRCASESTR): Likewise.
10288         Reported by Bruno Haible.
10289
10290 2010-10-06  Bruno Haible  <bruno@clisp.org>
10291
10292         string, sys_select: Avoid #including large headers unless necessary.
10293         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10294         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10295         OSF/1, BeOS, Haiku.
10296         Reported by Jim Meyering.
10297
10298 2010-10-05  Eric Blake  <eblake@redhat.com>
10299
10300         memmem, strstr, strcasestr: fix bug with long periodic needle
10301         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10302         periodic needle having false positive.
10303         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10304         and cygwin 1.7.7.
10305         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10307         (gl_FUNC_STRCASESTR): Likewise.
10308         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10309         * tests/test-memmem.c (main): Expose the bug.
10310         * tests/test-strcasestr.c (main): Likewise.
10311         * tests/test-strstr.c (main): Likewise.
10312         * tests/test-c-strcasestr.c (main): Likewise.
10313         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10314         * doc/posix-functions/strstr.texi (strstr): Likewise.
10315         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10316         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10317
10318 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10319
10320         parse-datetime: do some more renaming
10321         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10322         parse_datetime, not get_date.  Mention the renaming.
10323         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10324         in comments.
10325         * m4/bison.m4: Likewise.
10326
10327 2010-10-05  Eric Blake  <eblake@redhat.com>
10328
10329         parse-datetime: better name than get_date
10330         * NEWS: Reword the deprecation notice.
10331         * modules/get_date: Rename to modules/parse-datetime.
10332         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10333         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10334         * lib/get_date.y: Rename to lib/parse-datetime.y.
10335         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10336         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10337         * doc/getdate.texi: Provide fallback wrapper.
10338         * lib/getdate.h: Move guts, and wrap...
10339         * lib/parse-datetime.h: ...new file.
10340         * lib/parse-datetime.y (get_date): Rename...
10341         (parse_datetime): ...to this.
10342         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10343         (gl_PARSE_DATETIME): ...to this.
10344         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10345         documentation.
10346         * modules/getdate (Files): Provide fallback docs and header.
10347         (Notice, Depends-on): Update references.
10348         * tests/test-parse-datetime.c: Likewise.
10349         * DEPENDENCIES: Likewise.
10350         * MODULES.html.sh (Date and time <time.h>): Likewise.
10351         * doc/parse-datetime.texi (Date input formats)
10352         (Authors of parse_datetime): Likewise.
10353         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10354         (Include): Likewise.
10355         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10356         * gnulib-tool: Likewise.
10357         * m4/bison.m4 (gl_BISON): Likewise.
10358         Suggested by Bruno Haible.
10359
10360 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10361
10362         more ports to Solaris tr, which needs [] around ranges
10363         * gnulib-tool: Solaris tr needs [] around ranges.
10364         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10365         * tests/test-pipe-filter-gi1.c (main): Likewise.
10366         * tests/test-pipe-filter-ii1.c (main): Likewise.
10367
10368 2010-10-05  Eric Blake  <eblake@redhat.com>
10369
10370         bootstrap: fix Solaris regression
10371         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10372         around ranges.
10373         Reported by Pádraig Brady.
10374
10375         bootstrap: work with pkg-config
10376         * build-aux/bootstrap (check_versions): Also transliterate - in
10377         prerequisite name.
10378         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10379         prerequisites that were already found, to avoid confusion.
10380         Reported by Justin Clift.
10381
10382         faccessat: remove unused wrappers
10383         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10384         presence of these wrappers dragged in -lgen on Solaris.
10385         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10386
10387 2010-10-05  Jim Meyering  <meyering@redhat.com>
10388
10389         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10390         * Makefile (sc_pragma_columns): New syntax-check rule.
10391
10392 2010-10-04  Bruno Haible  <bruno@clisp.org>
10393
10394         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10395         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10396         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10397         Reported by Bruce Korb and Eric Blake.
10398
10399 2010-10-04  Bruno Haible  <bruno@clisp.org>
10400
10401         threadlib: Make option --with-libpth-prefix work.
10402         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10403         use $LIBPTH, not just -lpth.
10404
10405 2010-10-04  Bruno Haible  <bruno@clisp.org>
10406
10407         Avoid line length limitation from HP NonStop system header files.
10408         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10409         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10410         * lib/ctype.in.h: Likewise.
10411         * lib/dirent.in.h: Likewise.
10412         * lib/errno.in.h: Likewise.
10413         * lib/fcntl.in.h: Likewise.
10414         * lib/float.in.h: Likewise.
10415         * lib/getopt.in.h: Likewise.
10416         * lib/iconv.in.h: Likewise.
10417         * lib/inttypes.in.h: Likewise.
10418         * lib/langinfo.in.h: Likewise.
10419         * lib/locale.in.h: Likewise.
10420         * lib/math.in.h: Likewise.
10421         * lib/netdb.in.h: Likewise.
10422         * lib/netinet_in.in.h: Likewise.
10423         * lib/poll.in.h: Likewise.
10424         * lib/pthread.in.h: Likewise.
10425         * lib/pty.in.h: Likewise.
10426         * lib/sched.in.h: Likewise.
10427         * lib/se-selinux.in.h: Likewise.
10428         * lib/search.in.h: Likewise.
10429         * lib/signal.in.h: Likewise.
10430         * lib/spawn.in.h: Likewise.
10431         * lib/stdarg.in.h: Likewise.
10432         * lib/stddef.in.h: Likewise.
10433         * lib/stdint.in.h: Likewise.
10434         * lib/stdio.in.h: Likewise.
10435         * lib/stdlib.in.h: Likewise.
10436         * lib/string.in.h: Likewise.
10437         * lib/strings.in.h: Likewise.
10438         * lib/sys_file.in.h: Likewise.
10439         * lib/sys_ioctl.in.h: Likewise.
10440         * lib/sys_select.in.h: Likewise.
10441         * lib/sys_socket.in.h: Likewise.
10442         * lib/sys_stat.in.h: Likewise.
10443         * lib/sys_time.in.h: Likewise.
10444         * lib/sys_times.in.h: Likewise.
10445         * lib/sys_utsname.in.h: Likewise.
10446         * lib/sys_wait.in.h: Likewise.
10447         * lib/sysexits.in.h: Likewise.
10448         * lib/termios.in.h: Likewise.
10449         * lib/time.in.h: Likewise.
10450         * lib/unistd.in.h: Likewise.
10451         * lib/wchar.in.h: Likewise.
10452         * lib/wctype.in.h: Likewise.
10453         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10454         * modules/ctype (Makefile.am): Likewise.
10455         * modules/dirent (Makefile.am): Likewise.
10456         * modules/errno (Makefile.am): Likewise.
10457         * modules/fcntl-h (Makefile.am): Likewise.
10458         * modules/float (Makefile.am): Likewise.
10459         * modules/getopt-posix (Makefile.am): Likewise.
10460         * modules/iconv-h (Makefile.am): Likewise.
10461         * modules/inttypes (Makefile.am): Likewise.
10462         * modules/langinfo (Makefile.am): Likewise.
10463         * modules/locale (Makefile.am): Likewise.
10464         * modules/math (Makefile.am): Likewise.
10465         * modules/netdb (Makefile.am): Likewise.
10466         * modules/netinet_in (Makefile.am): Likewise.
10467         * modules/poll-h (Makefile.am): Likewise.
10468         * modules/pthread (Makefile.am): Likewise.
10469         * modules/pty (Makefile.am): Likewise.
10470         * modules/sched (Makefile.am): Likewise.
10471         * modules/search (Makefile.am): Likewise.
10472         * modules/selinux-h (Makefile.am): Likewise.
10473         * modules/signal (Makefile.am): Likewise.
10474         * modules/spawn (Makefile.am): Likewise.
10475         * modules/stdarg (Makefile.am): Likewise.
10476         * modules/stddef (Makefile.am): Likewise.
10477         * modules/stdint (Makefile.am): Likewise.
10478         * modules/stdio (Makefile.am): Likewise.
10479         * modules/stdlib (Makefile.am): Likewise.
10480         * modules/string (Makefile.am): Likewise.
10481         * modules/strings (Makefile.am): Likewise.
10482         * modules/sys_file (Makefile.am): Likewise.
10483         * modules/sys_ioctl (Makefile.am): Likewise.
10484         * modules/sys_select (Makefile.am): Likewise.
10485         * modules/sys_socket (Makefile.am): Likewise.
10486         * modules/sys_stat (Makefile.am): Likewise.
10487         * modules/sys_time (Makefile.am): Likewise.
10488         * modules/sys_times (Makefile.am): Likewise.
10489         * modules/sys_utsname (Makefile.am): Likewise.
10490         * modules/sys_wait (Makefile.am): Likewise.
10491         * modules/sysexits (Makefile.am): Likewise.
10492         * modules/termios (Makefile.am): Likewise.
10493         * modules/time (Makefile.am): Likewise.
10494         * modules/unistd (Makefile.am): Likewise.
10495         * modules/wchar (Makefile.am): Likewise.
10496         * modules/wctype (Makefile.am): Likewise.
10497
10498 2010-10-04  Bruno Haible  <bruno@clisp.org>
10499
10500         read-file tests: Avoid a test failure on NonStop Kernel.
10501         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10502         a regular file.
10503         Reported by Joachim Schmitz <schmitz@hp.com>.
10504
10505 2010-10-03  Bruno Haible  <bruno@clisp.org>
10506
10507         gnulib-tool: Fixes for --create-testdir with --libtool.
10508         * gnulib-tool (func_get_automake_snippet): Don't augment
10509         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10510         an executable.
10511         (func_create_testdir): Handle module 'alloca' like func_import.
10512         Reported by Bruce Korb <bruce.korb@gmail.com>.
10513
10514 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10515
10516         Avoid some lines longer than 80 characters.
10517         * lib/stdint.in.h: Break long comment lines.
10518         * lib/math.in.h: Likewise.
10519         (_GL_NUM_UINT_WORDS): New macro, for readability.
10520         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10521         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10522         * lib/stdlib.in.h: Likewise.
10523         * lib/spawn.in.h: Likewise.
10524         * lib/sys_socket.in.h: Update an URL.
10525         * lib/sys_stat.in.h: Break long line.
10526
10527 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10528
10529         Improve pmccabe2html.
10530         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10531         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10532         when the sources change. Remove the line in the HTML about "Used
10533         ranges" (which implied that there might be other unused ranges),
10534         rename "Resume" to "Summary" (easier to understand for more users).
10535         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10536         styles, and some unnecessary blank lines.
10537
10538 2010-10-03  Bruno Haible  <bruno@clisp.org>
10539             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10540
10541         acl: Add support for ACLs on NonStop Kernel.
10542         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10543         Check whether the function aclsort() exists.
10544         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10545         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10546         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10547         (acl_nontrivial [HAVE_ACLSORT]: New function.
10548         (file_has_acl): Implement for NonStop Kernel.
10549         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10550         (qset_acl): Implement for NonStop Kernel.
10551         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10552         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10553         (main): Implement for NonStop Kernel.
10554         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10555         Kernel. Handle this flavor.
10556         * tests/test-set-mode-acl.sh: Likewise.
10557         * tests/test-copy-acl.sh: Likewise.
10558         * tests/test-copy-file.sh: Likewise.
10559
10560 2010-10-03  Bruno Haible  <bruno@clisp.org>
10561
10562         Info about ACLs on NonStop Kernel.
10563         * doc/acl-resources.txt: Add info about NonStop Kernel.
10564         References by Joachim Schmitz <schmitz@hp.com>.
10565
10566 2010-10-02  Bruno Haible  <bruno@clisp.org>
10567
10568         Define missing EDQUOT on NonStop Kernel.
10569         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10570         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10571         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10572         missing.
10573         * doc/posix-headers/errno.texi: Mention the NSK bug.
10574         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10575         Reported by Joachim Schmitz <schmitz@hp.com>.
10576
10577 2010-10-02  Bruno Haible  <bruno@clisp.org>
10578
10579         Update doc for POSIX:2008.
10580         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10581         Update URL of POSIX specification.
10582
10583 2010-10-02  Bruno Haible  <bruno@clisp.org>
10584
10585         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10586         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10587         from gnulib, not from Automake.
10588
10589 2010-10-02  Bruno Haible  <bruno@clisp.org>
10590
10591         New module 'system-posix'.
10592         * modules/system-posix: New file.
10593         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10594         module is present.
10595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10596         GNULIB_SYSTEM_POSIX.
10597         * modules/stdlib (Depends-on): Remove sys_wait.
10598         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10599         * doc/posix-functions/system.texi: Mention the new module.
10600         * doc/posix-headers/stdlib.texi: Likewise.
10601         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10602         define test_sys_wait_macros to a no-op.
10603         Reported by Sam Steingold <sds@gnu.org>.
10604
10605 2010-09-30  Bruno Haible  <bruno@clisp.org>
10606
10607         More renaming from 'getdate' to 'get_date'.
10608         * doc/get_date.texi: Renamed from doc/getdate.texi.
10609         * modules/get_date (Files): Update.
10610         * MODULES.html.sh (Date and time <time.h>): Update.
10611         * DEPENDENCIES: Update.
10612         * gnulib-tool: Update comment.
10613         * m4/bison.m4 (gl_BISON): Likewise.
10614         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10615
10616 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10617
10618         bootstrap: support ACLOCAL_FLAGS during aclocal
10619         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10620         can add additional -I dir for third-party .m4 files.
10621
10622 2010-09-30  Eric Blake  <eblake@redhat.com>
10623
10624         bootstrap: use glibtoolize on MacOS
10625         * build-aux/bootstrap (check_versions): Convert libtool into
10626         libtoolize.
10627         (tool search): Move libtool check earlier, and look for
10628         glibtoolize for MacOS.
10629         (gnulib_tool_options): Auto-add --libtool when appropriate.
10630         Reported by Justin Clift.
10631
10632         poll: fix typo that broke test on MacOS
10633         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10634         Reported by Justin Clift.
10635
10636         getdate: rename to get_date
10637         Note: getdate.h is not renamed, to minimize client impact.
10638         * modules/getdate: Mark obsolete.  Move old contents...
10639         * modules/get_date: ...to new module name.
10640         * modules/getdate-tests: Move...
10641         * modules/get_date-tests: ...here.
10642         * m4/getdate.m4: Move...
10643         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10644         * lib/getdate.y: Move...
10645         * lib/get_date.y: ...here.
10646         * tests/test-getdate.c: Move...
10647         * tests/test-get_date.c: ...here.
10648         * doc/posix-functions/getdate.texi (getdate): Update name.
10649         * NEWS: Mention the change.
10650
10651 2010-09-29  Bruno Haible  <bruno@clisp.org>
10652
10653         Separate the module 'waitpid' from the module 'sys_wait'.
10654         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10655         present.
10656         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10657         gl_MODULE_INDICATOR_FOR_TESTS.
10658         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10659         * modules/sys_wait (Depends-on): Remove waitpid.
10660         (Makefile.am): Substitute GNULIB_WAITPID.
10661         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10662         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10663         signature only if the 'waitpid' module is present.
10664         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10665         * NEWS: Mention the change.
10666         * modules/grantpt (Depends-on): Add waitpid.
10667         * modules/wait-process (Depends-on): Likewise.
10668
10669 2010-09-29  Bruno Haible  <bruno@clisp.org>
10670
10671         More tests for module 'sys_wait'.
10672         * modules/sys_wait-c++-tests: New file.
10673         * tests/test-sys_wait-c++.cc: New file.
10674         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10675         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10676
10677 2010-09-29  Bruno Haible  <bruno@clisp.org>
10678
10679         New module 'waitpid'.
10680         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10681         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10682         Don't include <process.h>.
10683         (waitpid): Declare only, using modern idiom.
10684         * m4/waitpid.m4: New file.
10685         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10686         * modules/waitpid: New file.
10687         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10688         (Makefile.am): Update.
10689         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10690
10691 2010-09-28  Bruno Haible  <bruno@clisp.org>
10692
10693         poll: Assume ANSI C.
10694         * lib/poll.c (poll): Use an ANSI C declaration.
10695
10696 2010-09-28  Bruno Haible  <bruno@clisp.org>
10697
10698         poll-h: Create poll.h on all platforms.
10699         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10700         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10701         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10702         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10703         (gl_REPLACE_POLL_H): Don't set POLL_H.
10704         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10705         * modules/poll-h (Depends-on): Add include_next.
10706         (Makefile.am): Create poll.h unconditionally. Substitute also
10707         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10708
10709 2010-09-28  Bruno Haible  <bruno@clisp.org>
10710
10711         Tests for module 'poll-h'.
10712         * modules/poll-h-c++-tests: New file.
10713         * tests/test-poll-h-c++.cc: New file.
10714
10715         Tests for module 'poll-h'.
10716         * modules/poll-h-tests: New file.
10717         * tests/test-poll-h.c: New file.
10718
10719 2010-09-28  Bruno Haible  <bruno@clisp.org>
10720
10721         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10722         * modules/poll-h (Depends-on): Add 'extensions'.
10723
10724 2010-09-28  Bruno Haible  <bruno@clisp.org>
10725
10726         New module 'poll-h'.
10727         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10728         (poll): Use modern idiom.
10729         * modules/poll-h: New file.
10730         * modules/poll (Files): Remove lib/poll.in.h.
10731         (Depends-on): Add poll-h.
10732         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10733         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10734         * m4/poll_h.m4: New file.
10735         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10736         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10737         and invoke gl_REPLACE_POLL_H.
10738         * lib/poll.c: Use common idiom.
10739         * tests/test-poll.c: Likewise.
10740         * doc/posix-headers/poll.texi: Mention the poll-h module.
10741         Suggested by Eric Blake.
10742
10743 2010-09-26  Bruno Haible  <bruno@clisp.org>
10744
10745         sys_wait: Implement WSTOPSIG.
10746         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10747         Reported by Simon Josefsson.
10748
10749 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10750
10751         stdlib, sys_wait: Avoid compilation error on mingw.
10752         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10753
10754 2010-09-26  Bruno Haible  <bruno@clisp.org>
10755
10756         stdlib tests: Avoid code duplication.
10757         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10758         * modules/sys_wait-tests (Files): Likewise.
10759         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10760         * tests/test-stdlib.c: Include test-sys_wait.h.
10761         (main): Invoke test_sys_wait_macros.
10762         * tests/test-sys_wait.c: Include test-sys_wait.h.
10763         (main): Invoke test_sys_wait_macros.
10764
10765 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10766
10767         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10768         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10769         sure Windows sockets are working before calling getaddrinfo.
10770         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10771         * doc/gnulib.texi (Windows sockets): Fix typo.
10772
10773 2010-09-25  Bruno Haible  <bruno@clisp.org>
10774
10775         Tests for module 'regex-quote'.
10776         * modules/regex-quote-tests: New file.
10777         * tests/test-regex-quote.c: New file.
10778
10779         New module 'regex-quote'.
10780         * lib/regex-quote.h: New file.
10781         * lib/regex-quote.c: New file.
10782         * modules/regex-quote: New file.
10783         Suggested by Reuben Thomas <rrt@sc3d.org>.
10784
10785 2010-09-24  Bruno Haible  <bruno@clisp.org>
10786
10787         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10788         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10789
10790 2010-09-23  Bruno Haible  <bruno@clisp.org>
10791
10792         setenv: Relax license.
10793         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10794         Blake.
10795         Requested by Eric Blake.
10796
10797 2010-09-22  Bruno Haible  <bruno@clisp.org>
10798
10799         termios: Relax license.
10800         * modules/termios (License): Change to LGPLv2+.
10801         Requested by Eric Blake.
10802
10803 2010-09-22  Bruno Haible  <bruno@clisp.org>
10804
10805         threadlib: Allow the package to change the default to 'no'.
10806         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10807         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10808         Reported by Paul Eggert.
10809
10810 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10811             Bruno Haible  <bruno@clisp.org>
10812
10813         Fix endless loop in mbmemcasecoll.
10814         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10815         byte.
10816         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10817
10818 2010-09-22  Bruno Haible  <bruno@clisp.org>
10819
10820         Tests for module 'memcoll'.
10821         * modules/memcoll-tests: New file.
10822         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10823
10824         memcoll, xmemcoll: Clarify size vs. length.
10825         * modules/memcoll.c (memcoll0): Clarify specification.
10826         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10827         passed to collate_error.
10828
10829 2010-09-22  Bruno Haible  <bruno@clisp.org>
10830
10831         Tests for module 'memcasecmp'.
10832         * modules/memcasecmp-tests: New file.
10833         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10834
10835 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         * lib/pthread.in.h: Add split double-inclusion guard, and include
10838         system <pthread.h> if there is one.  Use @@-style as in other
10839         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10840         pthread.h doesn't.
10841         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10842         (pthread_mutexattr_settype, pthread_mutex_trylock):
10843         New static inline functions, if there's no system <pthread.h>.
10844         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10845         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10846         Approximate with mutexes if the system lacks spinlocks, as in
10847         MacOS.
10848         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10849         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10850         @@-style.  Check for spinlocks separately.
10851         (gl_PTHREAD_DEFAULTS): New macro.
10852         * modules/pthread: Redo to use a more typical style for in.h files.
10853
10854 2010-09-21  Eric Blake  <eblake@redhat.com>
10855
10856         net_if: enhance tests
10857         * tests/test-net_if.c (main): Move signature checks earlier.
10858         Print failures to stderr.
10859         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10860         Document the bug that we do not yet fix.
10861
10862 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10863
10864         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10865         about gnulib, not GSS.
10866
10867 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10868
10869         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10870         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10871         for Emacs.
10872         * build-aux/pmccabe2html: Make Makefile.am example code more
10873         cut-and-paste friendly.
10874
10875 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10876
10877         * tests/test-net_if.c: New file.
10878         * modules/net_if-tests: New file.
10879
10880 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10881
10882         pthread: add pthread_spin_destroy
10883         * lib/pthread.in.h (pthread_spin_destroy): New function.
10884
10885 2010-09-19  Bruno Haible  <bruno@clisp.org>
10886
10887         gnulib-tool: Fix --help output.
10888         * gnulib-tool (func_usage): Fix help message.
10889         Reported by Reuben Thomas <rrt@sc3d.org>.
10890
10891 2010-09-18  Jim Meyering  <meyering@redhat.com>
10892
10893         maint.mk: avoid unexpanded \n in two diagnostics
10894         * top/maint.mk (sc_prohibit_always_true_header_tests):
10895         Don't use a literal \n in a halt=... assignment.  It would not be
10896         expanded, and the two \n bytes would appear in the diagnostic output
10897         rather than the desired newline.  Use halt=$$(printf ... instead.
10898         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10899
10900 2010-09-18  Bruno Haible  <bruno@clisp.org>
10901
10902         netinet_in: Doc tweak.
10903         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10904         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10905
10906 2010-09-18  Jim Meyering  <meyering@redhat.com>
10907
10908         init.sh: correct an outdated comment
10909         * tests/init.sh (create_exe_shims_):  s/function/alias/
10910
10911         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10912         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10913         a file named "*.exe" is removed between the glob expansion and the
10914         processing of that oddly named file.
10915
10916 2010-09-17  Eric Blake  <eblake@redhat.com>
10917
10918         mirbsd: add some more support
10919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10920         in BSD family.
10921         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10922         devices as OpenBSD.
10923         * m4/host-os.m4 (mirbsd): Add MirBSD.
10924
10925         tests: fix unportable assumption on sys/wait.h
10926         * tests/test-sys_wait.c (main): Relax test.
10927         * tests/test-stdlib.c (main): Likewise.
10928
10929         init.sh: accomodate directory with no .exes
10930         * tests/init.sh: Accomodate directory containing only scripts.
10931
10932         tests: avoid compiler warning
10933         * tests/test-stdlib.c (main): Use the variable.
10934
10935         fdutimens, fdutimensat: update signature, again
10936         * lib/utimens.h (gl_futimens): Delete, and move signature...
10937         (fdutimens): ...here.
10938         (fdutimensat): Rearrange signature.
10939         (lutimensat): Rename variable for clarity.
10940         * lib/fdutimensat.c (fdutimensat): Update signature.
10941         * lib/utimens.c (fdutimens): Likewise.
10942         (gl_futimens): Delete.
10943         (utimens, lutimens): Update callers.
10944         * lib/futimens.c (futimens): Likewise.
10945         * tests/test-fdutimensat.c: Likewise.
10946         * tests/test-utimens.c: Likewise.
10947         * tests/test-futimens.h: Update comment.
10948         * NEWS: Mention this.
10949         Suggested by Paul Eggert.
10950
10951 2010-09-17  Bruno Haible  <bruno@clisp.org>
10952
10953         Take over the maintenance of some older macros from Autoconf.
10954         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10955         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10956         GNU Autoconf.
10957         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10958         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10959
10960 2010-09-17  Eric Blake  <eblake@redhat.com>
10961
10962         fdutimensat: drop atflag validation
10963         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10964         with valid fd, to close a race scenario where futimens is
10965         unsupported and FILE was replaced by a symlink.
10966         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10967         accordingly.
10968         Suggested by Paul Eggert.
10969
10970 2010-09-16  Bruno Haible  <bruno@clisp.org>
10971
10972         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10973         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10974
10975 2010-09-16  Bruno Haible  <bruno@clisp.org>
10976
10977         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10978         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10979         login_tty exists.
10980         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10981
10982 2010-09-16  Bruno Haible  <bruno@clisp.org>
10983
10984         login_tty: Make the replacement code work on BSD systems.
10985         * lib/login_tty.c: Include <sys/ioctl.h>.
10986         (login_tty): Use ioctl TIOCSCTTY when available.
10987         * modules/login_tty (Depends-on): Add sys_ioctl.
10988         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10989
10990 2010-09-16  Bruno Haible  <bruno@clisp.org>
10991
10992         login_tty: Stricter unit test.
10993         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10994         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10995         and tcgetsid() after login_tty.
10996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10997
10998 2010-09-16  Bruno Haible  <bruno@clisp.org>
10999
11000         New module 'tcgetsid'.
11001         * lib/tcgetsid.c: New file.
11002         * m4/tcgetsid.m4: New file.
11003         * modules/tcgetsid: New file.
11004         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11005         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11006         GNULIB_TCGETSID, HAVE_TCGETSID.
11007         * lib/termios.in.h: Include <sys/types.h>.
11008         (tcgetsid): New declaration.
11009         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11010         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11011         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11012         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11013
11014 2010-09-16  Bruno Haible  <bruno@clisp.org>
11015
11016         Tests for module 'termios'.
11017         * modules/termios-c++-tests: New file.
11018         * modules/termios-tests: New file.
11019         * tests/test-termios-c++.cc: New file.
11020         * tests/test-termios.c: New file.
11021
11022         New module 'termios'.
11023         * modules/termios: New file.
11024         * lib/termios.in.h: New file.
11025         * m4/termios_h.m4: New file.
11026         * doc/posix-headers/termios.texi: Mention the new module.
11027
11028 2010-09-16  Eric Blake  <eblake@redhat.com>
11029
11030         fdutimensat: add an atflag parameter
11031         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11032         * lib/utimens.h (fdutimensat): Update prototype.
11033         * tests/test-fdutimensat.c: Adjust test to match.
11034         * NEWS: Document the change.
11035         Suggested by Paul Eggert.
11036
11037 2010-09-16  Bruno Haible  <bruno@clisp.org>
11038
11039         Fix typos in comments.
11040         * lib/striconveh.h: Fix typo in comment.
11041         * lib/login_tty.c (login_tty): Likewise.
11042
11043 2010-09-15  Bruno Haible  <bruno@clisp.org>
11044
11045         stdlib: clarify MirBSD WEXITSTATUS bug
11046         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11047         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11048
11049 2010-09-15  Eric Blake  <eblake@redhat.com>
11050
11051         stdlib: work around MirBSD WEXITSTATUS bug
11052         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11053         * modules/stdlib (Depends-on): Add sys_wait.
11054         * tests/test-sys_wait.c (main): Enhance test.
11055         * tests/test-stdlib.c (main): Likewise.
11056         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11057
11058         docs: mention MacOS issue with WEXITSTATUS(constant)
11059         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11060         issue.
11061         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11062
11063         strnlen: add tests
11064         * modules/strnlen-tests: New file.
11065         * tests/test-strnlen.c: Likewise.
11066
11067 2010-09-14  Bruno Haible  <bruno@clisp.org>
11068
11069         unistr/base: Avoid link errors when module 'libunistring' is also used.
11070         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11071         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11072         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11073         Declare also when HAVE_LIBUNISTRING is set.
11074         Reported by Pádraig Brady <P@draigbrady.com>.
11075
11076 2010-09-14  Eric Blake  <eblake@redhat.com>
11077
11078         test-rawmemchr: make more robust
11079         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11080         (Depends-on, configure.ac): Add needed prerequisites to use it.
11081         * modules/memchr-tests (Files, Depends-on, configure.ac):
11082         Likewise, to avoid implicit reliance on memchr module prereqs.
11083         * tests/test-memchr.c (main): Ensure proper masking.
11084         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11085         reads.
11086
11087         memchr: detect glibc Alpha bug
11088         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11089         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11090         Alpha.
11091         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11092         * tests/test-memchr.c (main): Enhance test.
11093         Reported by Nelson H. F. Beebe.
11094
11095 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         fts, getcwd, glob: audit for dirfd returning -1
11098         * lib/fts.c (opendir): Remove #define; no longer used.
11099         (opendirat): New arg PDIR_FD.  All callers changed.
11100         (fts_build, _opendir2): Use new opendirat to avoid the need for
11101         dirfd, or for checking whether dirfd returns a negative value.
11102         Don't use opendir; always use openat followed by fdopendir.
11103         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11104         it.
11105         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11106         returns -1 here.
11107         * modules/fts (Depends-on): Remove dirfd.
11108         * modules/getcwd (Depends-on): Likewise.
11109
11110 2010-09-13  Eric Blake  <eblake@redhat.com>
11111
11112         float: fix broken MirBSD header
11113         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11114         * doc/posix-headers/float.texi (float.h): Document it.
11115
11116 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11117
11118         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11119         * lib/fts.c (opendirat): New arg extra_flags.
11120         (__opendir2): Use it to avoid following symlinks when opening
11121         a directory, if symlinks are not supposed to be followed.  See
11122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11123
11124         fdopendir: preserve argument fd before returning
11125         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11126         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11127         (fdopendir): Use them, arranging for FD to be open to the same
11128         directory that it was when it started.  (It might be temporarily
11129         closed while fdopendir is running, so this not thread- or
11130         signal-safe.)  Be careful to do the right thing even when file
11131         descriptors are scarce and dup fails with errno == EMFILE.  See
11132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11133
11134 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11135
11136         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11137         * NEWS: Document change.
11138         * m4/regex.m4: Disable test for regoff_t size.
11139
11140 2010-09-13  Jim Meyering  <meyering@redhat.com>
11141
11142         fts: don't operate on an invalid file descriptor after failed dup
11143         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11144         negative file descriptor.
11145
11146 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11147
11148         savedir: add streamsavedir, deprecate fdsavedir
11149         * NEWS: Mention deprecation of fdsavedir.
11150         * lib/savedir.c (streamsavedir): New extern function, whose name
11151         ends in "savedir" to be consistent with the others.  This differs
11152         from savedirstream in that it doesn't close its argument.  The
11153         next version of GNU tar will use this instead of fdsavedir, to
11154         avoid some race conditions and conserve file descriptors.
11155         (savedirstream): Reimplement as a wrapper around streamsavedir.
11156         (fdsavedir): Add a comment deprecating this function.  As far as
11157         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11158         * lib/savedir.h (streamsavedir): New decl.
11159         (fdsavedir): Add a comment deprecating this.
11160
11161 2010-09-10  Bruno Haible  <bruno@clisp.org>
11162
11163         langinfo: Fix last commit.
11164         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11165         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11167
11168 2010-09-10  Bruno Haible  <bruno@clisp.org>
11169
11170         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11171         * lib/progreloc.c (O_EXEC): Define fallback.
11172
11173 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11174
11175         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11176         * NEWS: Document recent changes to fcntl-h.
11177         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11178         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11179         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11180         Similarly for O_SEARCH; this last was already true, but not documented.
11181         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11182         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11183         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11184         Likewise.
11185         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11186         is zero, not whether it is defined.
11187         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11188         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11189         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11190
11191 2010-09-10  Bruno Haible  <bruno@clisp.org>
11192
11193         langinfo, nl_langinfo: Fix for IRIX 5.3.
11194         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11195         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11196         HAVE_LANGINFO_YESEXPR.
11197         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11198         HAVE_LANGINFO_YESEXPR.
11199         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11200         HAVE_LANGINFO_T_FMT_AMPM is 0.
11201         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11202         HAVE_LANGINFO_YESEXPR is 0.
11203         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11204         NOEXPR.
11205         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11206         * doc/posix-functions/nl_langinfo.texi: Likewise.
11207         Reported by Eric Blake.
11208
11209 2010-09-10  Bruno Haible  <bruno@clisp.org>
11210
11211         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11212         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11213         on FreeBSD 8.0 and OpenBSD 4.6.
11214         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11215         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11216         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11217         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11218         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11219         ac_includes_default.
11220         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11221
11222 2010-09-09  Eric Blake  <eblake@redhat.com>
11223
11224         strsignal: work around NetBSD bug
11225         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11226         * lib/string.in.h (includes): Likewise.
11227         * doc/posix-functions/strsignal.texi (strsignal): Document the
11228         bug.
11229         Reported by Nelson H. F. Beebe.
11230
11231         gnulib-tool: work with NetBSD /bin/sh
11232         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11233         (func_get_description, func_get_comment, func_get_status)
11234         (func_get_notice, func_get_applicability, func_get_filelist)
11235         (func_get_dependencies, func_get_autoconf_early_snippet)
11236         (func_get_autoconf_snippet, func_get_automake_snippet)
11237         (func_get_include_directive, func_get_link_directive)
11238         (func_get_license, func_get_maintainer, func_import): Avoid
11239         shell syntax errors from parsing syntax extensions.
11240
11241 2010-09-09  Bruno Haible  <bruno@clisp.org>
11242
11243         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11244         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11245         a reliable way to determine whether the 'alias' command works.
11246
11247 2010-09-08  Jim Meyering  <meyering@redhat.com>
11248
11249         init.sh: penalize a set-x-impaired shell; don't disqualify it
11250         * tests/init.sh: Too many shells corrupt application stderr when
11251         you set -x, so we can't afford to disqualify them, since at least
11252         on Irix-6.5, that would disqualify all bourne shells.
11253         Instead, use a two-pass approach.
11254         On the first pass, try to find a shell that meets the stricter
11255         condition that set -x does not corrupt stderr.
11256         If no shell meets the stricter condition, retest each candidate
11257         shell, but without that extra condition.  Finally, when
11258         VERBOSE=yes is requested and set -x might cause trouble, simply
11259         issue a warning and refrain from enabling debug output.
11260
11261 2010-09-08  Eric Blake  <eblake@redhat.com>
11262
11263         unsetenv: fix OpenBSD bug
11264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11265         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11266         documentation.
11267         Reported by Jim Meyering.
11268
11269         strtod: work around IRIX 6.5 bug
11270         * lib/strtod.c (strtod): Reparse number on shorter string if
11271         exponent parse was invalid.
11272         * tests/test-strtod.c (main): Add check for "0x1p 2".
11273         Reported by Tom G. Christensen.
11274
11275         getopt: optimize previous patch
11276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11277         empty variable.  Speed up awk script.
11278         Reported by Paolo Bonzini.
11279
11280 2010-09-08  Jim Meyering  <meyering@redhat.com>
11281
11282         test.sh: disqualify shells for which set -x corrupts stderr
11283         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11284         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11285         appear in stderr output.  For example, this command:
11286             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11287         prints "P=1" on those two systems:
11288
11289 2010-09-08  Bruno Haible  <bruno@clisp.org>
11290
11291         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11292         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11293         commands, because some shells ignore redirections when there is an
11294         error in the command lookup.
11295         Reported by Eric Blake.
11296
11297 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11298
11299         * lib/regex.h: Fix a mention of `regex_compile' (should be
11300         `re_compile_pattern').
11301         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11302         (re_set_registers): Correct name of parameter in comment.
11303
11304         * doc/regex.texi: Add documentation for missing syntax flags.
11305         Remove commented-out documentation of defunct syntax option
11306         RE_NO_EMPTY_ALTS.
11307         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11308         Add documentation of re_set_registers.
11309         Document trick to re-use a pattern buffer by setting fastmap manually.
11310         Update documentation of struct re_pattern_buffer per public members.
11311         Uncomment documentation of equivalence class operators and
11312         collating symbol operators, since they are now implemented,
11313         Explain leftmost-longest matching in relation to alternatives.
11314         Tidy documentation of substring matching.
11315         Remove POSIX documentation, which is done better in
11316         glibc, and refer the reader there. Keep BSD API documentation, as
11317         that is not readily available elsewhere.
11318
11319 2010-09-07  Eric Blake  <eblake@redhat.com>
11320
11321         getopt: handle POSIXLY_CORRECT set but not exported
11322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11323         export state of POSIXLY_CORRECT, due to bash set -o posix.
11324         Reported by Dustin J. Mitchell.
11325
11326 2010-09-05  Bruno Haible  <bruno@clisp.org>
11327
11328         gnulib-tool: Highlight the changed options.
11329         * gnulib-tool (func_usage): Display the --import, --add-import,
11330         --remove-import explanations in bold font.
11331
11332 2010-09-06  Karl Berry  <karl@gnu.org>
11333
11334         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11335
11336 2010-09-05  Bruno Haible  <bruno@clisp.org>
11337
11338         uniwidth/width: Update comment.
11339         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11340         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11341
11342 2010-09-05  Bruno Haible  <bruno@clisp.org>
11343
11344         isinf, isnan: Relax license.
11345         * modules/isinf (License): Change from GPL to LGPL, with consent from
11346         Ben Pfaff.
11347         * modules/isnan (License): Likewise.
11348         Requested by Ludovic Courtès.
11349
11350 2010-09-04  Bruno Haible  <bruno@clisp.org>
11351
11352         gnulib-tool: Help migration from --import to --add-import or --update.
11353         * gnulib-tool: Emit a verbose error message when --import is used
11354         without any module name.
11355
11356 2010-09-04  Bruno Haible  <bruno@clisp.org>
11357
11358         Update doc about gnulib-tool.
11359         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11360         'gnulib-tool --update' in more detail.
11361         Reported by Eric Blake.
11362
11363 2010-09-04  Bruno Haible  <bruno@clisp.org>
11364
11365         gnulib-tool: Change --import. New options --add/remove-import.
11366         * gnulib-tool: New options --add-import, --remove-import.
11367         (func_usage): Document them.
11368         (have_associative): Define always.
11369         (func_import): In import mode, don't merge the specified settings with
11370         the cached settings. Implement remove-import mode.
11371         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11372         Explain when to use them versus --import.
11373         (Simple update): Use --add-import instead of --import.
11374         * NEWS: Mention the change.
11375
11376 2010-09-04  Bruno Haible  <bruno@clisp.org>
11377
11378         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11379         separate gnulib.mk.
11380
11381 2010-09-04  Bruno Haible  <bruno@clisp.org>
11382
11383         gnulib-tool: Don't talk about CVS any more.
11384         * gnulib-tool (func_usage, func_import): Write "version control"
11385         instead of CVS.
11386
11387 2010-09-04  Jim Meyering  <meyering@redhat.com>
11388
11389         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11390         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11391         false positives (whose names may be ill-chosen) when searching
11392         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11393         would cause a false-positive.
11394
11395         avoid coreutils "make distcheck" failure
11396         Coreutils tests with an absolute build directory name that contains
11397         a space.  Not quoting this directory name caused a failure.
11398         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11399         * tests/test-vc-list-files-cvs.sh: Likewise.
11400
11401 2010-09-04  Bruno Haible  <bruno@clisp.org>
11402
11403         gnulib-tool: Avoid error when run in a package without Makefile.am.
11404         * gnulib-tool: When collecting the m4dirs in a package that does not
11405         have a Makefile.am, eliminate those directories that contain no
11406         gnulib-cache.m4. Fix expression that counts these directories.
11407
11408 2010-09-04  Bruno Haible  <bruno@clisp.org>
11409
11410         update-copyright test: Improve output when perl is missing or too old.
11411         * tests/test-update-copyright.sh: Move test of Perl version down after
11412         the test whether Perl exists. Provide an explanation relating Perl's
11413         error message to Automake's SKIP: message.
11414
11415 2010-09-04  Bruno Haible  <bruno@clisp.org>
11416
11417         Don't augment PATH in TESTS_ENVIRONMENT.
11418         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11419         set abs_aux_dir instead of augmenting PATH.
11420         * modules/vc-list-files-tests (Makefile.am): Likewise.
11421         * tests/test-update-copyright.sh: Augment PATH here.
11422         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11423         path_prepend_.
11424         * tests/test-vc-list-files-git.sh: Likewise.
11425
11426 2010-09-04  Jim Meyering  <meyering@redhat.com>
11427
11428         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11429         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11430
11431 2010-09-04  Bruno Haible  <bruno@clisp.org>
11432
11433         strdup: Fix compilation error in C++ mode.
11434         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11435         the macro.
11436
11437 2010-09-04  Bruno Haible  <bruno@clisp.org>
11438
11439         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11440         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11441         macro into a function.
11442         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11443
11444 2010-09-04  Bruno Haible  <bruno@clisp.org>
11445
11446         Set PATH_SEPARATOR the same way autoconf does.
11447         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11448         the value of PATH_SEPARATOR the same way autoconf-generated configure
11449         scripts do.
11450         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11451         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11452
11453 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11454
11455         Set PATH_SEPARATOR the same way autoconf does.
11456         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11457         the same way autoconf-generated configure scripts do.
11458         * posix-modules: Likewise.
11459
11460 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11461
11462         hash: fix safe_hasher const typo
11463         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11464         const; otherwise, there is a type error later.
11465
11466 2010-09-02  Jim Meyering  <meyering@redhat.com>
11467
11468         test-update-copyright.sh: require perl 5.8.0
11469         * tests/test-update-copyright.sh: Require 5.8.0,
11470         which Tom G. Christensen has confirmed is adequate,
11471         while 5.6.1 is not.
11472
11473 2010-09-02  Eric Blake  <eblake@redhat.com>
11474
11475         tests: init.sh improvements for re-exec'ing with zsh
11476         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11477         -vx through shell re-exec.
11478         Reported by Tom G. Christensen.
11479
11480         wctype: fix typo in previous commit
11481         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11482         Reported by Ludovic Courtès.
11483
11484 2010-09-02  Jim Meyering  <meyering@redhat.com>
11485
11486         test-update-copyright.sh: skip test if Perl is too old
11487         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11488         Reported by Tom G. Christensen.
11489
11490 2010-09-02  Bruno Haible  <bruno@clisp.org>
11491
11492         wctype: Avoid compilation error on IRIX 6.5.30.
11493         * lib/wctype.in.h (iswblank): Declare with a replacement if
11494         REPLACE_ISWBLANK is set.
11495         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11496         declared. Set REPLACE_ISWBLANK.
11497         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11498         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11499         * doc/posix-headers/wctype.texi: Likewise.
11500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11501
11502 2010-09-01  Bruno Haible  <bruno@clisp.org>
11503
11504         New module 'socketlib'.
11505         * modules/socketlib: New file.
11506         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11507         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11508         * modules/sockets (Depends-on): Add socketlib.
11509         Suggested by Sam Steingold <sds@gnu.org>.
11510
11511 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11514
11515         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11516         when one needs search access to a directory but not read access.
11517         On systems where it is available, it works in some cases where
11518         O_RDONLY does not, namely on directories that are searchable but
11519         not readable, and which need only to be searchable.  If O_SEARCH
11520         is not available, fall back to the traditional method of using
11521         O_RDONLY.
11522
11523         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11524         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11525         when opening a directory that needs only to be searchable.
11526         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11527         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11528         * lib/openat-proc.c (openat_proc_name): Likewise.
11529         * lib/openat.c (openat_needs_fchdir): Likewise.
11530         * lib/save-cwd.c (save_cwd): Likewise.
11531         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11532
11533 2010-08-28  Bruno Haible  <bruno@clisp.org>
11534
11535         New module 'host-cpu-c-abi'.
11536         * modules/host-cpu-c-abi: New file.
11537         * m4/host-cpu-c-abi.m4: New file, based on part of
11538         clisp/src/m4/general.m4.
11539         Requested by Sam Steingold <sds@gnu.org>.
11540
11541 2010-08-31  Eric Blake  <eblake@redhat.com>
11542         and Jim Meyering  <meyering@redhat.com>
11543
11544         hash: factor, and guard against misbehaving hasher function
11545         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11546         of table->hasher's return value.  Also protect against a hash value
11547         so large that adding it to table->bucket results in a NULL pointer.
11548         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11549         Use it in place of open-coded check-and-abort.
11550
11551 2010-08-30  Bruno Haible  <bruno@clisp.org>
11552
11553         hash: silence spurious clang warning
11554         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11555         Reported by Eric Blake.
11556
11557 2010-08-30  Eric Blake  <eblake@redhat.com>
11558
11559         strstr, memmem, strcasestr: avoid leaked shell message
11560         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11561         FreeBSD.
11562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11563         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11564
11565         tests: silence clang warning
11566         * tests/test-malloca.c (do_allocation): Avoid dead store.
11567
11568 2010-08-29  Bruno Haible  <bruno@clisp.org>
11569
11570         gettext: Fix recent mistake.
11571         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11572
11573 2010-08-29  Bruno Haible  <bruno@clisp.org>
11574
11575         selinux-h: Offer a --without-selinux option.
11576         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11577         --without-selinux was specified, skip all tests and define
11578         HAVE_SELINUX_SELINUX_H to 0.
11579         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11580         set LIB_SELINUX to empty.
11581         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11582         gl_LIBSELINUX. If --without-selinux was specified, replace
11583         selinux/context.h.
11584         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11585
11586 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11587             Bruno Haible  <bruno@clisp.org>
11588
11589         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11590         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11591         of HAVE_REALLOC.
11592         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11593         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11594         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11595         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11596
11597 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11598             Bruno Haible  <bruno@clisp.org>
11599
11600         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11601         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11602         HAVE_CALLOC.
11603         * lib/xmalloc.c: Update accordingly.
11604         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11605         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11606         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11607
11608 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11609             Bruno Haible  <bruno@clisp.org>
11610
11611         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11612         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11613         HAVE_MALLOC.
11614         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11615         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11616         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11617
11618 2010-08-29  Bruno Haible  <bruno@clisp.org>
11619
11620         Update modules list.
11621         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11622         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11623         (String handling <string.h>): Add astrxfrm.
11624         (File system functions): Add readlinkat.
11625
11626 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11627
11628         Tests for module 'realloc-gnu'.
11629         * modules/realloc-gnu-tests: New file.
11630         * tests/test-realloc-gnu.c: New file.
11631
11632         Tests for module 'calloc-gnu'.
11633         * modules/calloc-gnu-tests: New file.
11634         * tests/test-calloc-gnu.c: New file.
11635
11636         Tests for module 'malloc-gnu'.
11637         * modules/malloc-gnu-tests: New file.
11638         * tests/test-malloc-gnu.c: New file.
11639
11640 2010-08-28  Bruno Haible  <bruno@clisp.org>
11641
11642         Rename module 'realloc' -> 'realloc-gnu'.
11643         * modules/realloc-gnu: New file, copied from modules/realloc.
11644         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11645         obsolete.
11646         * modules/mgetgroups (Depends-on): Update.
11647         * doc/posix-functions/realloc.texi: Update.
11648         * NEWS: Mention the change.
11649
11650         Rename module 'calloc' -> 'calloc-gnu'.
11651         * modules/calloc-gnu: New file, copied from modules/calloc.
11652         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11653         obsolete.
11654         * doc/posix-functions/calloc.texi: Update.
11655         * NEWS: Mention the change.
11656
11657         Rename module 'malloc' -> 'malloc-gnu'.
11658         * modules/malloc-gnu: New file, copied from modules/malloc.
11659         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11660         obsolete.
11661         * modules/argp (Depends-on): Update.
11662         * modules/regex (Depends-on): Update.
11663         * doc/posix-functions/malloc.texi: Update.
11664         * NEWS: Mention the change.
11665
11666 2010-08-28  Eric Blake  <eblake@redhat.com>
11667
11668         pread, pwrite: add missing dependency
11669         * modules/pread (Depends-on): Add extensions.
11670         * modules/pwrite (Depends-on): Likewise.
11671
11672 2010-08-28  Bruno Haible  <bruno@clisp.org>
11673
11674         unistr/u*-strchr: Fix tests dependencies.
11675         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11676         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11677         Reported by Ian Beckwith <ianb@erislabs.net>.
11678
11679 2010-08-28  Bruno Haible  <bruno@clisp.org>
11680
11681         read-file: Don't occupy too much unused memory.
11682         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11683
11684 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11685             Eric Blake  <eblake@redhat.com>
11686             Bruno Haible  <bruno@clisp.org>
11687
11688         read-file: Avoid memory reallocations with regular files.
11689         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11690         (fread_file): With regular files, use the remaining length as the
11691         initial buffer size.  Check against overflow.
11692         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11693         sys_stat.
11694
11695 2010-08-28  Bruno Haible  <bruno@clisp.org>
11696
11697         ftello: Relax license.
11698         * modules/ftello (License): Relax to LGPLv2+.
11699         Reported by Eric Blake.
11700
11701 2010-08-28  Bruno Haible  <bruno@clisp.org>
11702
11703         Avoid relocwrapper link errors due to gnulib replacement functions.
11704         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11705         function.
11706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11707
11708 2010-08-28  Bruno Haible  <bruno@clisp.org>
11709
11710         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11711         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11712         defined.
11713         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11714         Suggested by Eric Blake.
11715
11716 2010-08-28  Bruno Haible  <bruno@clisp.org>
11717
11718         sys_socket, netdb: Ensure socklen_t gets defined.
11719         * modules/sys_socket (Depends-on): Add socklen.
11720         * modules/netdb (Depends-on): Likewise.
11721         * modules/getaddrinfo (Depends-on): Remove socklen.
11722         * modules/getsockopt (Depends-on): Likewise.
11723         * modules/setsockopt (Depends-on): Likewise.
11724         * tests/test-sys_socket.c: Check that socklen_t is defined.
11725         * tests/test-netdb.c: Likewise.
11726         * m4/socklen.m4: Update comments.
11727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11728
11729 2010-08-27  Eric Blake  <eblake@redhat.com>
11730
11731         login_tty: add missing dependency
11732         * modules/login_tty (Depends-on): Add pty.
11733
11734 2010-08-26  Eric Blake  <eblake@redhat.com>
11735
11736         lib-symbol-versions: fix m4 quoting
11737         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11738         format for AC_LINK_IFELSE.
11739
11740         glob: fix compile test
11741         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11742
11743         btowc: fix missing file
11744         * modules/btowc (Files): Also ship locale-fr.m4.
11745
11746         lseek: fix link test
11747         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11748         AC_LINK_IFELSE.
11749
11750         include_next: silence autoconf 2.68 warning
11751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11752         AC_COMPILE_IFELSE as special.
11753         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11754         autoconf < 2.68.
11755
11756         acl: fix compilation test
11757         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11758         AC_COMPILE_IFELSE.
11759
11760 2010-08-26  Bruno Haible  <bruno@clisp.org>
11761
11762         Modernize AC_TRY_RUN invocations.
11763         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11764         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11765         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11766         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11767         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11768         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11769         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11771         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11772         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11774         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11775         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11776         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11777         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11778         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11779         gl_MBRLEN_NUL_RETVAL): Likewise.
11780         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11781         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11782         Likewise.
11783         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11784         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11785         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11786         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11787         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11788         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11789         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11790         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11791         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11792         Likewise.
11793         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11794         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11796         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11797         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11798         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11800         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11801         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11803
11804 2010-08-26  Bruno Haible  <bruno@clisp.org>
11805
11806         Modernize AC_TRY_LINK invocations.
11807         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11808         AC_TRY_LINK.
11809         * m4/argp.m4 (gl_ARGP): Likewise.
11810         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11811         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11812         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11814         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11815         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11816         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11817         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11818         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11820         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11821         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11822         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11823         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11824         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11825         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11826         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11827         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11828         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11829         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11830         Likewise.
11831         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11832         Likewise.
11833         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11834         Likewise.
11835         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11837         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11838         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11839         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11840         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11841         * m4/servent.m4 (gl_SERVENT): Likewise.
11842         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11843         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11844         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11845         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11846         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11847         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11848         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11849         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11850         * modules/tsearch-tests (configure.ac): Likewise.
11851
11852 2010-08-26  Bruno Haible  <bruno@clisp.org>
11853
11854         Modernize AC_TRY_COMPILE invocations.
11855         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11856         AC_TRY_COMPILE.
11857         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11858         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11859         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11860         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11861         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11862         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11863         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11864         * m4/lock.m4 (gl_LOCK): Likewise.
11865         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11866         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11867         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11868         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11869         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11870         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11871         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11873         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11874         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11875         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11876         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11877         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11878         extraneous semicolon.
11879
11880 2010-08-26  Jim Meyering  <meyering@redhat.com>
11881
11882         stat-time: relax license LGPL
11883         * modules/stat-time (License): Change from GPL to LGPL,
11884         with consent from all contributors, for use in libguile.
11885         Requested by Ludovic Courtès.
11886
11887 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11888
11889         poll: return immediately on POLLHUP.
11890         * lib/poll.c (poll): Always set timeout before wait_timeout is
11891         computed.
11892
11893 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11894
11895         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11896         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11897         rmdir ("dir/.//"), unlinkat.
11898
11899 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11900
11901         stdbool: avoid spurious failure with modern xlc
11902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11903
11904 2010-08-24  Bruno Haible  <bruno@clisp.org>
11905
11906         getloadavg: simplify code
11907         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11908         gl_have_func. Update comments.
11909
11910 2010-08-24  Eric Blake  <eblake@redhat.com>
11911
11912         getloadavg: don't define SVR4 on cygwin
11913         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11914         only define SVR4 when -lkvm is required.
11915         Reported by Yaakov Selkowitz.
11916
11917 2010-08-24  Bruno Haible  <bruno@clisp.org>
11918
11919         priv-set: fix comment
11920         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11921
11922 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         priv-set: fix comments
11925         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11926         to match code, as suggested by David Bartley in:
11927         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11928
11929 2010-08-23  Eric Blake  <eblake@redhat.com>
11930
11931         stdbool: avoid rejecting clang
11932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11933         * tests/test-stdbool.c: Enable more tests if using the system
11934         <stdbool.h> instead of the gnulib replacement.
11935         (main): Move xlc bug test to a runtime test for all compilers.
11936         Reported by Anders Kaseorg.
11937
11938         argz: fix shell quoting issue
11939         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11940         Reported by Charles Wilson.
11941
11942 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11943             Erik Faye-Lund <kusmabite@gmail.com>
11944
11945         poll, select: handle ERROR_BROKEN_PIPE.
11946         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11947         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11948         * lib/select.c (win32_compute_revents): Do not mark a pipe
11949         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11950
11951 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11952
11953         fts: allow compilation with C++
11954         * lib/fts_.h: Specify extern "C" linkage with C++.
11955
11956 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11957
11958         Fix gnulib-tool sed script de-commentation for AIX sed.
11959         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11960         sed.
11961
11962 2010-08-17  Eric Blake  <eblake@redhat.com>
11963
11964         test-stddef: test for (some) offsetof bugs
11965         * tests/test-stddef.c: Enhance test to ensure correct type of
11966         offsetof.
11967         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11968         that we are not fixing at this time.
11969
11970 2010-08-15  Bruno Haible  <bruno@clisp.org>
11971
11972         stpncpy: Allow stpncpy to be defined as a macro.
11973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11974         if it's already correctly declared.
11975         * lib/string.in.h (stpncpy): Undefine before redefining.
11976         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11977
11978 2010-08-14  Bruno Haible  <bruno@clisp.org>
11979
11980         Rename module 'memxfrm' to 'amemxfrm'.
11981         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11982         (amemxfrm): Renamed from memxfrm.
11983         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11984         (amemxfrm): Renamed from memxfrm.
11985         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11986         * NEWS: Mention the change.
11987         * MODULES.html.sh (String handling <string.h>): Update.
11988         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11989         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11990         * lib/unicase/u16-casexfrm.c: Likewise.
11991         * lib/unicase/u32-casexfrm.c: Likewise.
11992         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11993         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11994         * lib/uninorm/u16-normxfrm.c: Likewise.
11995         * lib/uninorm/u32-normxfrm.c: Likewise.
11996         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11997         memxfrm.
11998         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11999         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12000         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12001         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12002         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12003         Suggested by Paul Eggert.
12004
12005 2010-08-14  Bruno Haible  <bruno@clisp.org>
12006
12007         Tests for module 'astrxfrm'.
12008         * modules/astrxfrm-tests: New file.
12009         * tests/test-astrxfrm.c: New file.
12010
12011         New module 'astrxfrm'.
12012         * lib/astrxfrm.h: New file.
12013         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12014         * modules/astrxfrm: New file.
12015
12016 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12017
12018         regex: Tweak doc.
12019         * doc/regex.texi (Overview): Don't mention regex.c.
12020         (GNU Regular Expression Compiling): Likewise.
12021         (Match-end-of-line Operator): Mention 'not_eol'.
12022
12023 2010-08-14  Brian Gough  <bjg@gnu.org>
12024             Bruno Haible  <bruno@clisp.org>
12025
12026         git-merge-changelog: add doc relating to use with bzr and hg.
12027         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12028
12029 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12030
12031         pthread: fix pthread.h creation for srcdir != builddir
12032         * modules/pthread (Makefile.am): Fix the rule to work also in a
12033         non-srcdir build.
12034
12035 2010-08-13  Karl Berry  <karl@gnu.org>
12036
12037         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12038         * doc/posix-*/*: force line break before @url of POSIX
12039         specifications.
12040         Suggested by Werner Lemberg.
12041
12042 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12043
12044         strtod: fix const diagnostic
12045         * lib/strtod.c (strtod): Don't assign const char * to char *,
12046         as this elicits a warning from GCC when warnings are enabled.
12047
12048 2010-08-10  Pádraig Brady <P@draigbrady.com>
12049         and Eric Blake  <eblake@redhat.com>
12050
12051         copy-acl: ignore ENOTSUP on HP-UX
12052         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12053         so that it is available for HP-UX.
12054         * lib/copy-acl.c (qcopy_acl): Use it.
12055         Reported by Patrick M. Callahan.
12056
12057 2010-08-10  Eric Blake  <eblake@redhat.com>
12058
12059         open, chown: relax license
12060         * modules/open (License): Change to LGPLv2+, with consent by all
12061         authors, for use in augeas.
12062         * modules/chown (License): Likewise.
12063         * modules/lchown (Likewise): Likewise.
12064         Requested by Adam Stokes.
12065
12066 2010-08-09  Karl Berry  <karl@gnu.org>
12067
12068         * build-aux/ar-lib: new file, import from Automake.
12069         * config/srclist.txt: autocheck for updates.
12070
12071 2010-08-09  Eric Blake  <eblake@redhat.com>
12072
12073         readlinkat: adjust client modules
12074         * modules/areadlinkat (Depends-on): Use readlinkat, not
12075         symlinkat.
12076         * modules/areadlinkat-with-size (Depends-on): Likewise.
12077
12078         mknod: be more vocal about danger of running tests as root
12079         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12080         root, since that is just asking for problems.
12081         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12082
12083         readlinkat: split into its own module
12084         * modules/symlinkat: Split readlinkat...
12085         * modules/readlinkat: ...into separate module.
12086         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12087         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12088         * lib/symlinkat.c (readlinkat): Move...
12089         * lib/readlinkat.c: ...into new file.
12090         * modules/symlinkat-tests: Split readlinkat test...
12091         * modules/readlinkat-tests: ...into separate module.
12092         * tests/test-symlinkat.c: Split...
12093         * tests/test-readlinkat.c: ...into new file.
12094         * NEWS: Document the split.
12095         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12096         * lib/unistd.in.h (readlinkat): Likewise.
12097         Suggested by Bruno Haible.
12098
12099 2010-08-08  Bruno Haible  <bruno@clisp.org>
12100
12101         memxfrm: Speed up.
12102         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12103         that usually only one call to strxfrm is necessary for each string
12104         part.
12105         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12106
12107 2010-08-07  Karl Berry  <karl@gnu.org>
12108
12109         * doc/posix-headers/limits.texi,
12110         * doc/posix-functions/malloc.texi,
12111         * doc/posix-functions/strsignal.texi: missing @item.
12112         * doc/ld-version-script.texi: spurious leading i.
12113         * doc/regex.texi (Interval Operators): no commas inside @var.
12114
12115 2010-08-01  Bruno Haible  <bruno@clisp.org>
12116
12117         Integrate the regex documentation.
12118         * doc/gnulib.texi: Define 'cn' index.
12119         (Regular expressions): New a chapter that includes regex.texi and
12120         regexprops-generic.texi.
12121         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12122         syntax.
12123
12124         Whitespace cleanup.
12125         * doc/regex.texi: Remove trailing spaces.
12126
12127         Add regex documentation.
12128         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12129         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12130         Written by Kathy A. Hargreaves and Karl Berry.
12131
12132 2010-08-01  Bruno Haible  <bruno@clisp.org>
12133
12134         link: Update documentation.
12135         * doc/posix-functions/link.texi: Update regarding Solaris.
12136
12137 2010-07-31  Bruno Haible  <bruno@clisp.org>
12138
12139         Update modules list.
12140         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12141         (String handling <string.h>): Add memcmp2, memxfrm.
12142         (Container data structures): Add xlist, xsublist, xoset.
12143         (Core language properties): Add alignof, unused-parameter.
12144         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12145         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12146         (Unibyte characters <ctype.h>): New section.
12147         (String handling <string.h>): New section.
12148         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12149         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12150         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12151         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12152         tan, tanh, tanl, y0, y1, yn.
12153         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12154         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12155         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12156         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12157         unlockpt, vdprintf, vdprintf-posix.
12158         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12159         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12160         xconcat-filename.
12161         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12162         getdtablesize, pipe2, pipe2-safer.
12163         (Security): New section.
12164         (Networking functions): Add accept4.
12165         (Signal handling): Add sigpipe.
12166         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12167         mbmemcasecoll.
12168         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12169         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12170         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12171         pipe-filter-ii.
12172         (Misc): Add argp-version-etc, login_tty, parse-duration.
12173
12174 2010-07-31  Bruno Haible  <bruno@clisp.org>
12175
12176         Improve doc in MODULES.html.
12177         * modules/linkat (Description): Add the word "function".
12178         * modules/mkfifo (Description): Likewise.
12179         * modules/mknod (Description): Likewise.
12180         * modules/remove (Description): Likewise.
12181         * modules/renameat (Description): Likewise.
12182         * modules/stat (Description): Likewise.
12183         * modules/symlink (Description): Likewise.
12184         * modules/unlink (Description): Likewise.
12185
12186 2010-07-31  Bruno Haible  <bruno@clisp.org>
12187
12188         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12189         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12190         option --enable/disable-c++ instead of --enable/disable-cxx.
12191         * NEWS: Mention the change.
12192
12193 2010-07-31  Bruno Haible  <bruno@clisp.org>
12194
12195         readlink, areadlink: Relax test a bit.
12196         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12197         alternative to ENOTDIR.
12198         * tests/test-areadlink.h (test_areadlink): Likewise.
12199         Reported by Rainer Tammer.
12200
12201 2010-07-31  Bruno Haible  <bruno@clisp.org>
12202
12203         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12204         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12205         character, perform the search using U_STRCHR.
12206         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12207         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12208         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12209         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12210         Suggested by Paolo Bonzini.
12211
12212 2010-07-31  Bruno Haible  <bruno@clisp.org>
12213
12214         unistr/u*-strstr: Fix dependencies.
12215         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12216         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12217         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12218
12219 2010-07-31  Bruno Haible  <bruno@clisp.org>
12220
12221         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12222         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12223         the beginning of the loop.
12224         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12225         cases in 'switch' statement.
12226
12227         unistr/u8-strchr: Fix several bugs.
12228         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12229         the string. When not found, return NULL, not a pointer near the end.
12230
12231         More tests for unistr/u8-strchr.
12232         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12233         that the function does not read past the first occurrence of the byte
12234         being searched.
12235         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12236         * tests/unistr/test-u16-strchr.c (main): New function.
12237         * tests/unistr/test-u32-strchr.c (main): New function.
12238
12239 2010-07-31  Bruno Haible  <bruno@clisp.org>
12240
12241         posix-modules: Ignore backup files of documentation files.
12242         * posix-modules: grep only through files named *.texi.
12243
12244 2010-07-31  Bruno Haible  <bruno@clisp.org>
12245
12246         symlinkat: Fix documentation.
12247         * doc/posix-functions/readlinkat.texi: Fix module name.
12248
12249 2010-07-31  Bruno Haible  <bruno@clisp.org>
12250
12251         fchownat: Replace also when chown has the trailing slash bug.
12252         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12253         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12254         introduced on 2010-04-10.
12255         Reported by Rainer Tammer.
12256
12257 2010-07-31  Bruno Haible  <bruno@clisp.org>
12258
12259         linkat: Work around AIX 7.1 bug.
12260         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12261         whether linkat handles trailing slash correctly. If not, replace linkat
12262         and define LINKAT_TRAILING_SLASH_BUG.
12263         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12264         check whether (fd1,file1) points to a directory if file1 or file2 ends
12265         in a slash. Code taken from lib/link.c.
12266         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12267         Reported by Rainer Tammer.
12268
12269 2010-07-31  Bruno Haible  <bruno@clisp.org>
12270
12271         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12272         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12273         This disables an xlc optimization that was causing wrong test results.
12274         Reported by Rainer Tammer.
12275
12276 2010-07-31  Bruno Haible  <bruno@clisp.org>
12277
12278         iconv: Work around AIX 6.1..7.1 bug.
12279         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12280         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12281         cross-compiling, guess no on all versions of AIX.
12282         Reported by Rainer Tammer.
12283
12284 2010-07-31  Bruno Haible  <bruno@clisp.org>
12285
12286         readlink: Relax test a bit.
12287         * tests/test-readlink.h (test_readlink): Allow different errno value
12288         when readlink is called with a file name that ends in / and refers to
12289         a file.
12290         Suggested by Eric Blake.
12291         Reported by Rainer Tammer.
12292
12293 2010-07-31  Bruno Haible  <bruno@clisp.org>
12294
12295         copysign: Does not require -lm on glibc systems.
12296         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12297         gl_COMMON_DOUBLE_MATHFUNC.
12298         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12299
12300 2010-07-31  Bruno Haible  <bruno@clisp.org>
12301
12302         duplocale: Work around AIX 7.1 bug.
12303         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12304         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12305         * lib/duplocale.c (rpl_duplocale): Update comment.
12306         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12307         Reported by Rainer Tammer.
12308
12309 2010-07-30  Bruno Haible  <bruno@clisp.org>
12310
12311         dirfd: Avoid link error on AIX 7.1.
12312         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12313         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12314         exist, set REPLACE_DIRFD.
12315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12316         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12317         * doc/posix-functions/dirfd.texi: Update.
12318         Reported by Rainer Tammer.
12319
12320 2010-07-30  Eric Blake  <eblake@redhat.com>
12321
12322         strtod: next round of AIX fixes
12323         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12324         exponent.
12325         * tests/test-strtod.c (main): Enhance tests.
12326         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12327         Reported by Rainer Tammer.
12328
12329         futimens: fix configure check
12330         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12331         Reported by Bruno Haible.
12332
12333 2010-07-30  Bruno Haible  <bruno@clisp.org>
12334
12335         getline: Update regarding AIX.
12336         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12337         Reported by Rainer Tammer.
12338
12339 2010-07-30  Bruno Haible  <bruno@clisp.org>
12340
12341         wcwidth: Drop replacement on AIX 7.
12342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12343         AIX 7.
12344         Reported by Rainer Tammer.
12345
12346 2010-07-30  Bruno Haible  <bruno@clisp.org>
12347
12348         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12349         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12350         a 'char *'.
12351         Reported by Rainer Tammer.
12352
12353 2010-07-30  Bruno Haible  <bruno@clisp.org>
12354
12355         unlink: Update regarding AIX.
12356         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12357         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12358         Reported by Rainer Tammer.
12359
12360 2010-07-30  Bruno Haible  <bruno@clisp.org>
12361
12362         symlink: Update regarding AIX.
12363         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12364         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12365         Reported by Rainer Tammer.
12366
12367 2010-07-30  Bruno Haible  <bruno@clisp.org>
12368
12369         strndup: Update regarding AIX.
12370         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12371         AIX 7.
12372         Reported by Rainer Tammer.
12373
12374 2010-07-30  Bruno Haible  <bruno@clisp.org>
12375
12376         stat: Update regarding AIX.
12377         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12378         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12379         Reported by Rainer Tammer.
12380
12381 2010-07-30  Bruno Haible  <bruno@clisp.org>
12382
12383         truncl: Fix autoconf test.
12384         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12385         whether truncl works.
12386         Reported by Rainer Tammer.
12387
12388 2010-07-30  Bruno Haible  <bruno@clisp.org>
12389
12390         round: Update regarding AIX.
12391         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12392         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12393         Reported by Rainer Tammer.
12394
12395 2010-07-30  Bruno Haible  <bruno@clisp.org>
12396
12397         rename: Update regarding AIX.
12398         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12399         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12400         Reported by Rainer Tammer.
12401
12402 2010-07-30  Bruno Haible  <bruno@clisp.org>
12403
12404         printf.m4: Update regarding AIX.
12405         * m4/printf.m4: Update comments regarding AIX.
12406         Reported by Rainer Tammer.
12407
12408 2010-07-30  Bruno Haible  <bruno@clisp.org>
12409
12410         iconv: Update regarding AIX.
12411         * m4/iconv.m4 (AM_ICONV_LINK): 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         getopt: Update regarding AIX.
12418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12419         no on AIX.
12420         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12421         Reported by Rainer Tammer.
12422
12423 2010-07-30  Bruno Haible  <bruno@clisp.org>
12424
12425         ldexpl; Update regarding AIX.
12426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12427         on AIX 7.
12428         Reported by Rainer Tammer.
12429
12430 2010-07-30  Bruno Haible  <bruno@clisp.org>
12431
12432         frexpl: Update regarding AIX.
12433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12434         on AIX 7.
12435         Reported by Rainer Tammer.
12436
12437 2010-07-30  Bruno Haible  <bruno@clisp.org>
12438
12439         open, fopen: Update regarding AIX.
12440         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12441         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12442         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12443         * doc/posix-functions/fopen.texi: Likewise.
12444         Reported by Rainer Tammer.
12445
12446 2010-07-30  Bruno Haible  <bruno@clisp.org>
12447
12448         chown: Update doc regarding AIX.
12449         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12450         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12451         Reported by Rainer Tammer.
12452
12453 2010-07-30  Eric Blake  <eblake@redhat.com>
12454
12455         strtod: fix bug in replacement function on AIX
12456         * lib/strtod.c (strtod): Special case broken "0x" parse in
12457         underlying strtod.
12458         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12459         * doc/posix-functions/strtod.texi (strtod): Likewise.
12460         Reported by Rainer Tammer.
12461
12462 2010-07-30  Bruno Haible  <bruno@clisp.org>
12463
12464         mbrlen: Fix cross-compilation guess for AIX.
12465         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12466         guess. Leftover from 2008-12-22.
12467
12468 2010-07-30  Bruno Haible  <bruno@clisp.org>
12469
12470         mbrtowc: Fix cross-compilation guess for AIX.
12471         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12472         guess. Leftover from 2008-12-21.
12473
12474 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12475
12476         init.sh: work around trap limitation of some shells
12477         * tests/init.sh (setup_): Move exit trap outside of shell function.
12478
12479 2010-07-29  Eric Blake  <eblake@redhat.com>
12480
12481         strtod: aid debugging
12482         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12483         understanding why strtod is rejected.
12484
12485 2010-07-28  Bruno Haible  <bruno@clisp.org>
12486
12487         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12488         * lib/unistr/u8-chr.c: Include <string.h>.
12489         * tests/unistr/test-u8-chr.c: Likewise.
12490         * tests/unistr/test-u16-chr.c: Likewise.
12491         * tests/unistr/test-u32-chr.c: Likewise.
12492         * tests/unistr/test-u8-strchr.c: Likewise.
12493         * tests/unistr/test-u16-strchr.c: Likewise.
12494         * tests/unistr/test-u32-strchr.c: Likewise.
12495         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12496         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12497         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12498         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12499
12500 2010-07-28  Bruno Haible  <bruno@clisp.org>
12501
12502         Use spaces for indentation, not tabs.
12503         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12504
12505 2010-07-27  Bruno Haible  <bruno@clisp.org>
12506
12507         mbspcasecmp: Fix function specification.
12508         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12509         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12510         Reported by Eric Blake <eblake@redhat.com>.
12511
12512 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12513
12514         timespec: use cast and not conditional, as truncation isn't possible
12515         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12516         instead of a conditional.  Comment about the situation in more detail.
12517         This undoes most of the 2009-10-29 patch.
12518
12519 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12520
12521         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12522         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12523         * lib/unistr/u8-strchr.c: Likewise.
12524         * modules/unistr/u8-chr: Depend on memchr.
12525
12526         unistr/u*-strchr: add tests
12527         * modules/unistr/u8-strchr-tests: New file.
12528         * modules/unistr/u16-strchr-tests: New file.
12529         * modules/unistr/u32-strchr-tests: New file.
12530         * tests/unistr/test-strchr.h: New file.
12531         * tests/unistr/test-u8-strchr.c: New file.
12532         * tests/unistr/test-u16-strchr.c: New file.
12533         * tests/unistr/test-u32-strchr.c: New file.
12534
12535         unistr/u*-chr: test multibyte sequences more
12536         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12537         test vector.
12538         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12539         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12540         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12541
12542         unistr/u*-chr: test multibyte sequences
12543         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12544
12545         unistr/u*-chr: prepare for multibyte tests
12546         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12547         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12548         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12549         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12550         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12551         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12552
12553 2010-07-18  Bruno Haible  <bruno@clisp.org>
12554
12555         unistr/u8-strchr: Optimize non-ASCII argument case.
12556         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12557         because the first byte often matches anyway.
12558         Reported by Pádraig Brady <P@draigbrady.com>.
12559
12560 2010-07-15  Karl Berry  <karl@gnu.org>
12561
12562         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12563
12564 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12565
12566         getcwd: on Solaris, work better if ancestors are inaccessible
12567         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12568         buffer and size, try again with a large buffer.  This works better
12569         on Solaris, since its getcwd succeeds even if the path to the root
12570         is inaccessible, and this is helpful in common cases such as .zfs
12571         hidden directories.  Problem reported by J Chapman Flack in
12572         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12573         Use system getcwd if it's declared, not merely if it's partly
12574         working; use the partly-working test only to avoid needless effort
12575         if the system getcwd fails.
12576         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12577         comment that was already obsolete and is now even more obsolete.
12578         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12579         now might call strdup.
12580
12581 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12582
12583         pthread: Add enough so that coreutils/src/sort.c compiles.
12584         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12585         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12586         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12587         Include <sys/types.h>, in case it defines pthread_t.
12588         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12589         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12590         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12591         (pthread_rwlockattr_t, pthread_spinlock_t):
12592         New typedefs, if HAVE_PTHREAD_T is not defined.
12593         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12594         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12595         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12596         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12597         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12598         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12599         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12600         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12601         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12602         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12603         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12604         New macros.
12605         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12606         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12607         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12608         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12609         (pthread_spin_unlock): New dummy functions.
12610         (pthread_create): Return EAGAIN; don't set errno.
12611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12612         require AC_C_INLINE.
12613         * modules/pthread (Depends-on): Add sched, time.
12614         (pthread.h): Use AM_V_GEN.
12615
12616 2010-07-13  Bruno Haible  <bruno@clisp.org>
12617
12618         striconveh: Don't malloc memory if the result buffer is sufficient.
12619         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12620         buffer if its size is sufficient.
12621         Reported by Ludovic Courtès <ludo@gnu.org>.
12622
12623 2010-07-13  Bruno Haible  <bruno@clisp.org>
12624
12625         strtod: Add safety check.
12626         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12627
12628 2010-07-12  Bruno Haible  <bruno@clisp.org>
12629
12630         Unify tests that set gl_cv_func_ldexpl_no_libm.
12631         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12632         gl_FUNC_LDEXPL.
12633         (gl_FUNC_LDEXPL): Invoke it.
12634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12635
12636 2010-07-12  Bruno Haible  <bruno@clisp.org>
12637
12638         Unify tests that set gl_cv_func_ldexp_no_libm.
12639         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12640         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12641         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12642         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12643         * modules/strtod (Files): Add m4/ldexp.m4.
12644
12645 2010-07-12  Bruno Haible  <bruno@clisp.org>
12646
12647         Unify tests that set gl_cv_func_frexpl_no_libm.
12648         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12649         gl_FUNC_FREXPL_NO_LIBM.
12650         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12651         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12652
12653 2010-07-12  Bruno Haible  <bruno@clisp.org>
12654
12655         Unify tests that set gl_cv_func_frexp_no_libm.
12656         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12657         gl_FUNC_FREXP_NO_LIBM.
12658         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12659         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12660
12661 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12662
12663         memcoll: clarify sizes versus lengths, document better, and tweak perf
12664         * lib/memcoll.c (strcoll_loop, memcoll0):
12665         Improve quality of descriptive comments.  Name variables
12666         consistently as to whether they are lengths (which do not include
12667         terminating null) versus sizes (which do).
12668         * lib/xmemcoll.c (xmemcoll0): Likewise.
12669         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12670         returned when s1size == 0; this is easier to compile and saves
12671         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12672
12673 2010-07-12  Bruno Haible  <bruno@clisp.org>
12674
12675         Tests for module '_Exit'.
12676         * modules/_Exit-tests: New file.
12677         * tests/test-_Exit.sh: New file.
12678         * tests/test-_Exit.c: New file.
12679
12680         New module '_Exit'.
12681         * lib/stdlib.in.h (__attribute__): New macro.
12682         (_Exit): New declaration.
12683         * lib/_Exit.c: New file.
12684         * m4/_Exit.m4: New file.
12685         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12686         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12687         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12688         * modules/_Exit: New file.
12689         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12690         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12691
12692 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12693
12694         strtod: make it more-accurate typically, and don't require libm
12695         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12696         Include limits.h.  Don't include string.h.
12697         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12698         (locale_isspace): New function, so that no casts are needed to
12699         check whether *s is a space.
12700         (ldexp): Provide an unused dummy if not available.
12701         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12702         (strtod): Use them.  This implementation prefers to use the
12703         underlying strtod if available, falling back on our own code
12704         only to fix known bugs.  This is more likely to produce an
12705         accurate result.  Also, it avoids the use of libm functions.
12706         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12707         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12708         was absent, but it caused a test failure with coreutils.
12709         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12710         with libm.
12711         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12712         * modules/strtod-tests (Makefile.am): Likewise.
12713
12714 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12715             Bruno Haible  <bruno@clisp.org>
12716
12717         unistr/u8-strchr: Optimize ASCII argument case.
12718         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12719
12720 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         (x)memcoll: minor tweaks
12723         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12724         is after the type that it qualifies.
12725         (memcoll0): Likewise.
12726         * lib/memcoll.h (memcoll0): Likewise.
12727         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12728         * lib/xmemcoll.h (xmemcoll0): Likewise.
12729         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12730         differs from memcoll in that the NUL byte is part of the argument.
12731         Omit the abort-checks, as performance is a real issue here.  Plus,
12732         the checks were wrong anyway (an off-by-one error).  Omit local
12733         variable 'diff', as it's a bit clearer that way.
12734         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12735         no longer needed.
12736
12737 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12738
12739         (x)memcoll: speedup when input is known to be NUL delimited
12740         * lib/memcoll.c: Include stdlib.
12741         (memcoll0): New function.
12742         (strcoll_loop): New function, refactored for use in both memcoll
12743         and memcoll0.
12744         * lib/memcoll.h (memcoll0): Add prototype.
12745         * lib/xmemcoll.c (xmemcoll0): New function.
12746         (collate_error): New function, refactored for use in both xmemcoll
12747         and xmemcoll0.
12748         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12749         * m4/memcoll.m4: add inline invocation.
12750
12751 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12752
12753         * build-aux/bootstrap: Remove any local translations
12754         from the translation project synchronization directory,
12755         so that local only translations are not distributed.
12756
12757 2010-07-04  Bruno Haible  <bruno@clisp.org>
12758
12759         fsusage: Clarify which code applies to which platforms.
12760         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12761         platform.
12762         * lib/fsusage.c (get_fs_usage): Likewise.
12763
12764 2010-07-04  Bruno Haible  <bruno@clisp.org>
12765
12766         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12767         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12768         Reported by Martin Lambers <marlam@marlam.de>.
12769
12770 2010-07-04  Jim Meyering  <meyering@redhat.com>
12771
12772         hash: once again explicitly disallow insertion of NULL
12773         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12774         inserting a NULL pointer cannot work with these functions.
12775         Add a comment with details.
12776         This reverts part of the 2010-07-01 commit, 5bef1a35
12777         "hash: extend module to deal with non-pointer keys".
12778
12779 2010-07-01  Bruno Haible  <bruno@clisp.org>
12780
12781         stdbool: Update doc.
12782         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12783         Info from Christian Weisgerber <naddy@mips.inka.de>.
12784
12785 2010-07-01  Jim Meyering  <meyering@redhat.com>
12786
12787         hash: extend module to deal with non-pointer keys
12788         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12789         but that allows insertion of non-pointer entries.
12790         Do not disallow an ENTRY value of NULL.
12791         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12792         * lib/hash.h (hash_insert0): Declare.
12793
12794 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12795
12796         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12797         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12798         not present (i.e. with autoconf 2.59 and when using gettextize, not
12799         gnulib), require AC_GNU_SOURCE instead.
12800
12801 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12802
12803         idpriv-drop: Fix tests.
12804         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12805         not to the test-idpriv-droptemp program.
12806
12807 2010-06-29  Bruno Haible  <bruno@clisp.org>
12808
12809         string: Fix syntax error with g++ 2.96.
12810         * lib/string.in.h (__pure__): Remove definition.
12811         (_GL_ATTRIBUTE_PURE): New macro.
12812         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12813         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12814         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12815
12816 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12817
12818         unitypes: Fix bug introduced on 2010-05-18.
12819         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12820
12821 2010-06-22  Eric Blake  <eblake@redhat.com>
12822
12823         memmem: slight optimization
12824         * lib/str-two-way.h (critical_factorization): Update comments.
12825         Reduce work during factorization phase.
12826         Reported by Carlos Bueno <carlos@bueno.org>.
12827
12828 2010-06-21  Bruno Haible  <bruno@clisp.org>
12829
12830         Fix HAVE_CALLOC_POSIX misnomer.
12831         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12832         !HAVE_CALLOC_POSIX.
12833         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12834         HAVE_CALLOC_POSIX.
12835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12836         instead of HAVE_CALLOC_POSIX.
12837         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12838         HAVE_CALLOC_POSIX.
12839
12840         Use modern idiom for calloc() replacement.
12841         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12842         AC_FUNC_CALLOC.
12843         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12844         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12845         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12846         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12847         (gl_REPLACE_CALLOC): New macro.
12848
12849 2010-06-21  Bruno Haible  <bruno@clisp.org>
12850
12851         Fix HAVE_REALLOC_POSIX misnomer.
12852         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12853         !HAVE_REALLOC_POSIX.
12854         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12855         HAVE_REALLOC_POSIX.
12856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12857         instead of HAVE_REALLOC_POSIX.
12858         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12859         HAVE_REALLOC_POSIX.
12860
12861         Use modern idiom for realloc() replacement.
12862         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12863         AC_FUNC_REALLOC.
12864         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12865         Autoconf's AC_FUNC_REALLOC.
12866         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12867         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12868         (gl_REPLACE_REALLOC): New macro.
12869         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12870
12871 2010-06-21  Bruno Haible  <bruno@clisp.org>
12872
12873         Fix HAVE_MALLOC_POSIX misnomer.
12874         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12875         !HAVE_MALLOC_POSIX.
12876         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12877         HAVE_MALLOC_POSIX.
12878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12879         instead of HAVE_MALLOC_POSIX.
12880         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12881         HAVE_MALLOC_POSIX.
12882
12883         Use modern idiom for malloc() replacement.
12884         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12885         AC_FUNC_MALLOC.
12886         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12887         Autoconf's AC_FUNC_MALLOC.
12888         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12889         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12890         (gl_REPLACE_MALLOC): New macro.
12891         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12892
12893 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12894
12895         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12896         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12897         This macro takes 3 arguments, not 4.
12898
12899 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12900
12901         ipv6: fix detection under mingw
12902         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12903         in6_addr.
12904
12905 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12906
12907         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12908         that strtod() works when cross-compiling to a glibc version known
12909         to work.
12910
12911 2010-06-15  Bruno Haible  <bruno@clisp.org>
12912
12913         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12914
12915 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12916
12917         select: Correct timeout.
12918         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12919
12920 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12921
12922         git-version-gen: init shell var to avoid env var influence
12923         * build-aux/git-version-gen (v): Init shell var to empty.
12924
12925 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12926
12927         priv-set: Don't assume that priv.h exists merely because getppriv does.
12928         See Jan Andersen's bug report about AIX 5L in
12929         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12930         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12931         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12932         * lib/priv-set.h: Likewise.
12933         * tests/test-priv-set.c: Likewise.
12934
12935 2010-06-13  Bruno Haible  <bruno@clisp.org>
12936
12937         relocatable: Make it easier to test whether to install wrappers.
12938         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12939         RELOCATABLE_VIA_WRAPPER.
12940
12941 2010-06-13  Bruno Haible  <bruno@clisp.org>
12942
12943         gnulib-tool: Display specified modules and dependencies differently.
12944         * gnulib-tool (func_show_module_list): New function.
12945         (func_import, func_create_testdir): Invoke it.
12946         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12947
12948 2010-06-13  Bruno Haible  <bruno@clisp.org>
12949
12950         gnulib-tool: Align code of func_import and func_create_testdir.
12951         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12952         specified_modules.
12953
12954 2010-06-12  Jim Meyering  <meyering@redhat.com>
12955
12956         test-inttostr: avoid spurious failure on Solaris 9
12957         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12958         to accept "%ju".  Reported by Bruno Haible.
12959
12960 2010-06-11  Jim Meyering  <meyering@redhat.com>
12961
12962         test-sys_socket: mark variables as used more readably
12963         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12964         as "used" explicitly via (void) statement casts.  This is more
12965         readable than using them in an artificial return expression.
12966         Suggestion from Bruno Haible.
12967
12968 2010-06-11  Bruno Haible  <bruno@clisp.org>
12969
12970         Avoid some more warnings from "gcc -Wwrite-strings".
12971         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12972         to 'const char *'.
12973         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12974         * tests/test-c-strcasestr.c (main): Likewise.
12975         * tests/test-mbscasestr1.c (main): Likewise.
12976         * tests/test-mbscasestr2.c (main): Likewise.
12977         * tests/test-memmem.c (main): Likewise.
12978         * tests/test-strstr.c (main): Likewise.
12979         * tests/test-strcasestr.c (main): Likewise.
12980
12981 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12982
12983         init.sh: change framework_failure_ to fail with status 99, not 1
12984         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12985         automake's parallel-tests rule that this is an unexpected failure,
12986         even if the test is listed in XFAIL_TESTS.
12987
12988 2010-06-11  Jim Meyering  <meyering@redhat.com>
12989
12990         test-inttostr: avoid warnings about 4-6KB literal strings
12991         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12992         Include "macros.h", for its definition of ASSERT.
12993         (CK): s/assert/ASSERT/
12994         * modules/inttostr-tests (Files): Add macros.h.
12995
12996         init.sh: don't use $ME_ or skip_ before they are defined
12997         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12998         their first uses.  Also hoist their companions: warn_, fail_,
12999         framework_failure_, $stderr_fileno.  Prompted by a patch from
13000         Stefano Lattarini.
13001
13002         test-sys_socket: avoid set-but-not-used warnings from gcc
13003         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13004         avoid warning about set-but-not-used variables.
13005
13006         test-xvasprintf: avoid 'const' discard warnings
13007         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13008         "const" when assigning from literal strings.
13009         (test_xasprintf): Add "void" in function argument list to placate
13010         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13011
13012         tests: avoid compilation warnings in argmatch and exclude tests...
13013         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13014         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13015         Since it always exits, declare with the "noreturn" attribute.
13016         * tests/test-argmatch.c: Likewise.
13017
13018         tests: avoid 'const' discard warnings in mbsstr tests
13019         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13020         * tests/test-mbsstr2.c (main): Likewise.
13021
13022         test-verify: avoid warning from gcc's -Wmissing-declarations
13023         * tests/test-verify.c (function): Declare to be static.
13024
13025         test-inttostr.c: include <string.h> for use of strcmp
13026         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13027
13028         test-linkat: avoid failed assertion on "other" architectures
13029         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13030         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13031         sparc: https://bugs.launchpad.net/bugs/591968
13032
13033 2010-06-11  Jim Meyering  <meyering@redhat.com>
13034
13035         printf.m4: avoid autoconf's "Expanded Before Required" warning
13036         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13037         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13038         autoconf warning.
13039
13040 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13041
13042         Replacement header templates are now named with ".in", not "_".
13043         * doc/gnulib-intro.texi: Correct.
13044
13045 2010-06-10  Jim Meyering  <meyering@redhat.com>
13046
13047         inttostr-tests: depend on snprintf, not snprintf-posix
13048         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13049         snprintf-posix, to avoid this aclocal failure:
13050           missing file gnulib-tests/vasnprintf.c
13051           configure.ac:45: error: expected source file, required through \
13052           AC_LIBSOURCES, not found
13053
13054 2010-06-10  Jim Meyering  <meyering@redhat.com>
13055
13056         inttostr: add a new function, inttostr, and tests
13057         The namesake function was not available.  The existence of the
13058         template file, inttostr.c makes its addition nontrivial.
13059         * lib/anytostr.c: Rename from inttostr.c.
13060         (anytostr): Rename from inttostr.
13061         * lib/inttostr.c: New file.
13062         * modules/inttostr (Files): Add anytostr.c.
13063         (Makefile.am): Set lib_SOURCES instead of ...
13064         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13065         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13066         * lib/offtostr.c: Likewise.
13067         * lib/uinttostr.c: Likewise.
13068         * lib/umaxtostr.c: Likewise.
13069         * modules/inttostr-tests: New file.
13070         * tests/test-inttostr.c: New file.  Test these functions.
13071
13072 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13073             Bruno Haible  <bruno@clisp.org>
13074
13075         Add "Extending Gnulib" chapter to manual.
13076         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13077         chapter.
13078         (Extending Gnulib): New chapter.
13079         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13080         chapter.
13081
13082 2010-06-09  Bruno Haible  <bruno@clisp.org>
13083
13084         Avoid relocwrapper link errors due to gnulib replacement functions.
13085         * lib/areadlink.c: Use the system's malloc, realloc functions.
13086         (areadlink): Set errno to ENOMEM explicitly.
13087         * modules/areadlink (Depends-on): Remove malloc-posix.
13088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13089
13090 2010-06-09  Bruno Haible  <bruno@clisp.org>
13091
13092         Avoid relocwrapper link errors due to gnulib replacement functions.
13093         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13094         * lib/malloca.c: Likewise.
13095         * lib/relocatable.c: Likewise.
13096         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13097         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13098         * lib/setenv.c: Use the system's malloc, realloc functions.
13099         * lib/strerror.c: Use the system's sprintf function.
13100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13101
13102 2010-06-04  Bruno Haible  <bruno@clisp.org>
13103
13104         Prefer documented low-level autoconf macro names.
13105         * m4/lib-link.m4: Use m4_translit instead of translit.
13106         * m4/environ.m4: Likewise.
13107         * m4/mathfunc.m4: Likewise.
13108         * m4/onceonly.m4: Likewise.
13109         * m4/stdint.m4: Likewise.
13110         Suggested by Eric Blake.
13111
13112 2010-06-04  Martin Lambers  <marlam@marlam.de>
13113             Bruno Haible  <bruno@clisp.org>
13114
13115         havelib: Allow library names with '+' characters.
13116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13117         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13118
13119 2010-06-09  Bruno Haible  <bruno@clisp.org>
13120
13121         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13122         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13123         realloc failed.
13124
13125 2010-06-08  Peter Simons  <simons@cryp.to>
13126
13127         maint.mk: make the news-check rule more configurable
13128         * top/maint.mk (news-check-lines-spec): New variable.
13129         (news-check): Use "sed -n 1,10p" in place of "head".
13130
13131 2010-06-07  Jim Meyering  <meyering@redhat.com>
13132
13133         do-release-commit-and-tag: fix typo in --help
13134         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13135
13136         regex: avoid new dead-code warning with gcc-4.6.0
13137         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13138         if-block containing a while-loop.  It's been unused for at least
13139         5 years.
13140
13141 2010-06-05  Bruno Haible  <bruno@clisp.org>
13142
13143         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13144         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13145
13146 2010-06-04  Bruno Haible  <bruno@clisp.org>
13147
13148         Update to GNU gettext 0.18.1.
13149         * modules/gettext (configure.ac): Require gettext infrastructure from
13150         version 0.18.1.
13151
13152 2010-06-03  Bruno Haible  <bruno@clisp.org>
13153
13154         Don't use AC_LIBOBJ with file names in subdirectories.
13155         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13156         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13157         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13158         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13159         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13160         gl_LIBUNISTRING_LIBSOURCE.
13161         (Makefile.am): Augment lib_SOURCES here, conditionally.
13162         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13163
13164 2010-06-03  Bruno Haible  <bruno@clisp.org>
13165
13166         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13167         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13168         expansion does not end with a newline.
13169         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13170         unnecessary newline.
13171
13172 2010-06-03  Bruno Haible  <bruno@clisp.org>
13173
13174         Reduce dependencies.
13175         * tests/test-quotearg.h: New file, extracted from
13176         tests/test-quotearg.c.
13177         * tests/test-quotearg-simple.c: New file, extracted from
13178         tests/test-quotearg.c.
13179         * tests/test-quotearg.c: Don't include <ctype.h>.
13180         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13181         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13182         use_quote_double_quotes, use_quotearg_colon): Moved to
13183         tests/test-quotearg.h.
13184         (results_g, flag_results, custom_quotes, custom_results): Moved
13185         to tests/test-quotearg-simple.c.
13186         (main): Moved the part that does not depend on gettext to
13187         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13188         performed.
13189         * modules/quotearg-simple: New file.
13190         * modules/quotearg-simple-tests: New file.
13191         * modules/quotearg (Depends-on): Add quotearg-simple.
13192         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13193         (Files): Add tests/test-quotearg.h.
13194         Reported by Paolo Bonzini.
13195
13196 2010-06-03  Bruno Haible  <bruno@clisp.org>
13197
13198         Reduce dependencies.
13199         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13200
13201 2010-06-03  Bruno Haible  <bruno@clisp.org>
13202
13203         time: Undefine more broken macros.
13204         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13205         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13206         Reported by Eric Blake.
13207
13208 2010-06-03  Bruno Haible  <bruno@clisp.org>
13209
13210         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13211         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13212         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13213         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13214         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13215         Reported by Ludovic Courtès <ludo@gnu.org>.
13216
13217 2010-06-02  Eric Blake  <eblake@redhat.com>
13218
13219         time: work with mingw + pthreads-win32 library
13220         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13221         if timespec is defined only in pthread.h.
13222         * modules/time (Makefile.am): Substitute it.
13223         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13224         <pthread.h>, when needed.
13225         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13226         from the library.
13227
13228 2010-05-31  Bruno Haible  <bruno@clisp.org>
13229
13230         Avoid expanding two macros in the wrong order.
13231         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13232         gl_LIBUNISTRING if it is defined.
13233         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13234         autoconf >= 2.64.
13235         Reported by Ludovic Courtès <ludo@gnu.org>.
13236
13237 2010-05-27  Jim Meyering  <meyering@redhat.com>
13238
13239         maint.mk: also prohibit "#undef" of always-defined symbols
13240         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13241         Allow more than one space before the symbol name.
13242         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13243         the regexp uses alternation.
13244
13245 2010-05-26  Eric Blake  <eblake@redhat.com>
13246
13247         maint.mk: avoid echo -e
13248         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13249         Convert all uses of echo -* to printf.
13250         Reported by Matthias Bolte.
13251
13252 2010-05-25  Bruno Haible  <bruno@clisp.org>
13253
13254         Update to GNU gettext 0.18, part 2.
13255         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13256         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13257
13258 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13259
13260         Add missing include in test-pwrite.c.
13261         * tests/test-pwrite.c: Include string.h, for strcmp.
13262
13263 2010-05-24  Bruno Haible  <bruno@clisp.org>
13264
13265         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13266
13267 2010-05-24  Bruno Haible  <bruno@clisp.org>
13268
13269         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13270         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13271         iconveh_error argument.
13272         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13273         U_STRCONV_TO_LOCALE.
13274         * lib/unistr/u16-strcoll.c: Likewise.
13275         * lib/unistr/u32-strcoll.c: Likewise.
13276         * modules/unistr/u8-strcoll (Depends-on): Add
13277         uniconv/u8-strconv-to-enc, localcharset. Remove
13278         uniconv/u8-strconv-to-locale.
13279         (configure.ac): Bump version number.
13280         * modules/unistr/u16-strcoll (Depends-on): Add
13281         uniconv/u16-strconv-to-enc, localcharset. Remove
13282         uniconv/u16-strconv-to-locale.
13283         (configure.ac): Bump version number.
13284         * modules/unistr/u32-strcoll (Depends-on): Add
13285         uniconv/u32-strconv-to-enc, localcharset. Remove
13286         uniconv/u32-strconv-to-locale.
13287         (configure.ac): Bump version number.
13288
13289 2010-05-24  Bruno Haible  <bruno@clisp.org>
13290
13291         Avoid a test failure on NetBSD 5.0.
13292         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13293         an iconv() bug.
13294
13295 2010-05-24  Bruno Haible  <bruno@clisp.org>
13296
13297         Adjust #include directive style.
13298         * modules/regex (Includes): Recommend to write <regex.h>.
13299
13300 2010-05-24  Bruno Haible  <bruno@clisp.org>
13301
13302         regex: Don't require alloca.
13303         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13304         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13305         only inside if (0).
13306
13307 2010-05-23  Jim Meyering  <meyering@redhat.com>
13308
13309         test-renameat.c: include <sys/stat.h>
13310         * tests/test-renameat.c: Include <sys/stat.h>; required for
13311         definition of S_IS* macros.
13312
13313 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13314
13315         Update maintainer documentation for 'relocatable-prog' module.
13316         * doc/relocatable-maint.texi: Update.
13317         Comments by Bruno Haible.
13318
13319 2010-05-23  Bruno Haible  <bruno@clisp.org>
13320
13321         git-merge-changelog: Enable --split-merged-entry by default.
13322         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13323         (usage): Don't mention this option any more.
13324         Reported by Ralf Wildenhues.
13325
13326 2010-05-23  Jim Meyering  <meyering@redhat.com>
13327
13328         test-pwrite: do not leave behind a test file named "out"
13329         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13330         The trivial-looking use of init.sh is really necessary.
13331         It ensures that the temporary file, "out", is created in
13332         a temporary directory, and removed upon termination.
13333         * tests/test-pwrite.sh: Re-add file.
13334         * modules/pwrite-tests: Reference it.
13335
13336 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13337
13338         Fix output redirection buglet in init.sh.
13339         * tests/init.sh: Fix redirection of stderr.
13340
13341 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13342
13343         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13344
13345 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13346
13347         * modules/valgrind-tests: New file.
13348         * m4/valgrind-tests.m4: New file.
13349         * doc/valgrind-tests.texi: New file.
13350         * doc/gnulib.texi (Running self-tests under valgrind): New
13351         section.
13352
13353 2010-05-19  Bruno Haible  <bruno@clisp.org>
13354
13355         Clean up dead code in recent commit.
13356         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13357         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13358         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13359         Suggested by Paolo Bonzini.
13360
13361 2010-05-19  Bruno Haible  <bruno@clisp.org>
13362
13363         Avoid valgrind error reports from libunistring.
13364         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13365         * modules/libunistring (Files): Add it.
13366         * modules/libunistring-optional (Files): Likewise.
13367
13368 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13369             Bruno Haible  <bruno@clisp.org>
13370
13371         New module 'libunistring-optional'.
13372         * modules/libunistring-optional: New file.
13373         * m4/libunistring-base.m4: New file.
13374         * m4/libunistring-optional.m4: New file.
13375         * lib/unicase.in.h: Renamed from lib/unicase.h.
13376         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13377         * lib/unictype.in.h: Renamed from lib/unictype.h.
13378         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13379         * lib/uniname.in.h: Renamed from lib/uniname.h.
13380         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13381         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13382         * lib/unistr.in.h: Renamed from lib/unistr.h.
13383         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13384         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13385         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13386         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13387         gl_LIBUNISTRING. If the library was found, determine the installed
13388         version and set LIBUNISTRING_VERSION.
13389         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13390         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13391         handle a configuration option --with-included-libunistring.
13392         * modules/libunistring (Files): Add m4/absolute-header.m4.
13393         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13394         Add m4/libunistring-base.m4.
13395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13396         (Makefile.am): Build unicase.h from unicase.in.h.
13397         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13398         Add m4/libunistring-base.m4.
13399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13400         (Makefile.am): Build uniconv.h from uniconv.in.h.
13401         * modules/unictype/base (Files): Use unictype.in.h instead of
13402         unictype.h. Add m4/libunistring-base.m4.
13403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13404         (Makefile.am): Build unictype.h from unictype.in.h.
13405         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13406         Add m4/libunistring-base.m4.
13407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13408         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13409         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13410         Add m4/libunistring-base.m4.
13411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13412         (Makefile.am): Build uniname.h from uniname.in.h.
13413         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13414         Add m4/libunistring-base.m4.
13415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13416         (Makefile.am): Build uninorm.h from uninorm.in.h.
13417         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13418         unistdio.h. Add m4/libunistring-base.m4.
13419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13420         (Makefile.am): Build unistdio.h from unistdio.in.h.
13421         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13422         Add m4/libunistring-base.m4.
13423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13424         (Makefile.am): Build unistr.h from unistr.in.h.
13425         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13426         Add m4/libunistring-base.m4.
13427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13428         (Makefile.am): Build unitypes.h from unitypes.in.h.
13429         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13430         Add m4/libunistring-base.m4.
13431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13432         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13433         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13434         uniwidth.h. Add m4/libunistring-base.m4.
13435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13436         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13437         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13438         instead of augmenting lib_SOURCES.
13439         * modules/unicase/empty-suffix-context: Likewise.
13440         * modules/unicase/locale-language: Likewise.
13441         * modules/unicase/tolower: Likewise.
13442         * modules/unicase/totitle: Likewise.
13443         * modules/unicase/toupper: Likewise.
13444         * modules/unicase/u8-casecmp: Likewise.
13445         * modules/unicase/u8-casecoll: Likewise.
13446         * modules/unicase/u8-casefold: Likewise.
13447         * modules/unicase/u8-casexfrm: Likewise.
13448         * modules/unicase/u8-ct-casefold: Likewise.
13449         * modules/unicase/u8-ct-tolower: Likewise.
13450         * modules/unicase/u8-ct-totitle: Likewise.
13451         * modules/unicase/u8-ct-toupper: Likewise.
13452         * modules/unicase/u8-is-cased: Likewise.
13453         * modules/unicase/u8-is-casefolded: Likewise.
13454         * modules/unicase/u8-is-lowercase: Likewise.
13455         * modules/unicase/u8-is-titlecase: Likewise.
13456         * modules/unicase/u8-is-uppercase: Likewise.
13457         * modules/unicase/u8-prefix-context: Likewise.
13458         * modules/unicase/u8-suffix-context: Likewise.
13459         * modules/unicase/u8-tolower: Likewise.
13460         * modules/unicase/u8-totitle: Likewise.
13461         * modules/unicase/u8-toupper: Likewise.
13462         * modules/unicase/u16-casecmp: Likewise.
13463         * modules/unicase/u16-casecoll: Likewise.
13464         * modules/unicase/u16-casefold: Likewise.
13465         * modules/unicase/u16-casexfrm: Likewise.
13466         * modules/unicase/u16-ct-casefold: Likewise.
13467         * modules/unicase/u16-ct-tolower: Likewise.
13468         * modules/unicase/u16-ct-totitle: Likewise.
13469         * modules/unicase/u16-ct-toupper: Likewise.
13470         * modules/unicase/u16-is-cased: Likewise.
13471         * modules/unicase/u16-is-casefolded: Likewise.
13472         * modules/unicase/u16-is-lowercase: Likewise.
13473         * modules/unicase/u16-is-titlecase: Likewise.
13474         * modules/unicase/u16-is-uppercase: Likewise.
13475         * modules/unicase/u16-prefix-context: Likewise.
13476         * modules/unicase/u16-suffix-context: Likewise.
13477         * modules/unicase/u16-tolower: Likewise.
13478         * modules/unicase/u16-totitle: Likewise.
13479         * modules/unicase/u16-toupper: Likewise.
13480         * modules/unicase/u32-casecmp: Likewise.
13481         * modules/unicase/u32-casecoll: Likewise.
13482         * modules/unicase/u32-casefold: Likewise.
13483         * modules/unicase/u32-casexfrm: Likewise.
13484         * modules/unicase/u32-ct-casefold: Likewise.
13485         * modules/unicase/u32-ct-tolower: Likewise.
13486         * modules/unicase/u32-ct-totitle: Likewise.
13487         * modules/unicase/u32-ct-toupper: Likewise.
13488         * modules/unicase/u32-is-cased: Likewise.
13489         * modules/unicase/u32-is-casefolded: Likewise.
13490         * modules/unicase/u32-is-lowercase: Likewise.
13491         * modules/unicase/u32-is-titlecase: Likewise.
13492         * modules/unicase/u32-is-uppercase: Likewise.
13493         * modules/unicase/u32-prefix-context: Likewise.
13494         * modules/unicase/u32-suffix-context: Likewise.
13495         * modules/unicase/u32-tolower: Likewise.
13496         * modules/unicase/u32-totitle: Likewise.
13497         * modules/unicase/u32-toupper: Likewise.
13498         * modules/unicase/ulc-casecmp: Likewise.
13499         * modules/unicase/ulc-casecoll: Likewise.
13500         * modules/unicase/ulc-casexfrm: Likewise.
13501         * modules/uniconv/u8-conv-from-enc: Likewise.
13502         * modules/uniconv/u8-conv-to-enc: Likewise.
13503         * modules/uniconv/u8-strconv-from-enc: Likewise.
13504         * modules/uniconv/u8-strconv-from-locale: Likewise.
13505         * modules/uniconv/u8-strconv-to-enc: Likewise.
13506         * modules/uniconv/u8-strconv-to-locale: Likewise.
13507         * modules/uniconv/u16-conv-from-enc: Likewise.
13508         * modules/uniconv/u16-conv-to-enc: Likewise.
13509         * modules/uniconv/u16-strconv-from-enc: Likewise.
13510         * modules/uniconv/u16-strconv-from-locale: Likewise.
13511         * modules/uniconv/u16-strconv-to-enc: Likewise.
13512         * modules/uniconv/u16-strconv-to-locale: Likewise.
13513         * modules/uniconv/u32-conv-from-enc: Likewise.
13514         * modules/uniconv/u32-conv-to-enc: Likewise.
13515         * modules/uniconv/u32-strconv-from-enc: Likewise.
13516         * modules/uniconv/u32-strconv-from-locale: Likewise.
13517         * modules/uniconv/u32-strconv-to-enc: Likewise.
13518         * modules/uniconv/u32-strconv-to-locale: Likewise.
13519         * modules/unictype/bidicategory-byname: Likewise.
13520         * modules/unictype/bidicategory-name: Likewise.
13521         * modules/unictype/bidicategory-of: Likewise.
13522         * modules/unictype/bidicategory-test: Likewise.
13523         * modules/unictype/block-list: Likewise.
13524         * modules/unictype/block-test: Likewise.
13525         * modules/unictype/category-C: Likewise.
13526         * modules/unictype/category-Cc: Likewise.
13527         * modules/unictype/category-Cf: Likewise.
13528         * modules/unictype/category-Cn: Likewise.
13529         * modules/unictype/category-Co: Likewise.
13530         * modules/unictype/category-Cs: Likewise.
13531         * modules/unictype/category-L: Likewise.
13532         * modules/unictype/category-Ll: Likewise.
13533         * modules/unictype/category-Lm: Likewise.
13534         * modules/unictype/category-Lo: Likewise.
13535         * modules/unictype/category-Lt: Likewise.
13536         * modules/unictype/category-Lu: Likewise.
13537         * modules/unictype/category-M: Likewise.
13538         * modules/unictype/category-Mc: Likewise.
13539         * modules/unictype/category-Me: Likewise.
13540         * modules/unictype/category-Mn: Likewise.
13541         * modules/unictype/category-N: Likewise.
13542         * modules/unictype/category-Nd: Likewise.
13543         * modules/unictype/category-Nl: Likewise.
13544         * modules/unictype/category-No: Likewise.
13545         * modules/unictype/category-P: Likewise.
13546         * modules/unictype/category-Pc: Likewise.
13547         * modules/unictype/category-Pd: Likewise.
13548         * modules/unictype/category-Pe: Likewise.
13549         * modules/unictype/category-Pf: Likewise.
13550         * modules/unictype/category-Pi: Likewise.
13551         * modules/unictype/category-Po: Likewise.
13552         * modules/unictype/category-Ps: Likewise.
13553         * modules/unictype/category-S: Likewise.
13554         * modules/unictype/category-Sc: Likewise.
13555         * modules/unictype/category-Sk: Likewise.
13556         * modules/unictype/category-Sm: Likewise.
13557         * modules/unictype/category-So: Likewise.
13558         * modules/unictype/category-Z: Likewise.
13559         * modules/unictype/category-Zl: Likewise.
13560         * modules/unictype/category-Zp: Likewise.
13561         * modules/unictype/category-Zs: Likewise.
13562         * modules/unictype/category-and: Likewise.
13563         * modules/unictype/category-and-not: Likewise.
13564         * modules/unictype/category-byname: Likewise.
13565         * modules/unictype/category-name: Likewise.
13566         * modules/unictype/category-none: Likewise.
13567         * modules/unictype/category-of: Likewise.
13568         * modules/unictype/category-or: Likewise.
13569         * modules/unictype/category-test: Likewise.
13570         * modules/unictype/combining-class: Likewise.
13571         * modules/unictype/ctype-alnum: Likewise.
13572         * modules/unictype/ctype-alpha: Likewise.
13573         * modules/unictype/ctype-blank: Likewise.
13574         * modules/unictype/ctype-cntrl: Likewise.
13575         * modules/unictype/ctype-digit: Likewise.
13576         * modules/unictype/ctype-graph: Likewise.
13577         * modules/unictype/ctype-lower: Likewise.
13578         * modules/unictype/ctype-print: Likewise.
13579         * modules/unictype/ctype-punct: Likewise.
13580         * modules/unictype/ctype-space: Likewise.
13581         * modules/unictype/ctype-upper: Likewise.
13582         * modules/unictype/ctype-xdigit: Likewise.
13583         * modules/unictype/decimal-digit: Likewise.
13584         * modules/unictype/digit: Likewise.
13585         * modules/unictype/mirror: Likewise.
13586         * modules/unictype/numeric: Likewise.
13587         * modules/unictype/property-alphabetic: Likewise.
13588         * modules/unictype/property-ascii-hex-digit: Likewise.
13589         * modules/unictype/property-bidi-arabic-digit: Likewise.
13590         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13591         * modules/unictype/property-bidi-block-separator: Likewise.
13592         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13593         * modules/unictype/property-bidi-common-separator: Likewise.
13594         * modules/unictype/property-bidi-control: Likewise.
13595         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13596         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13597         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13598         * modules/unictype/property-bidi-european-digit: Likewise.
13599         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13600         * modules/unictype/property-bidi-left-to-right: Likewise.
13601         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13602         * modules/unictype/property-bidi-other-neutral: Likewise.
13603         * modules/unictype/property-bidi-pdf: Likewise.
13604         * modules/unictype/property-bidi-segment-separator: Likewise.
13605         * modules/unictype/property-bidi-whitespace: Likewise.
13606         * modules/unictype/property-byname: Likewise.
13607         * modules/unictype/property-combining: Likewise.
13608         * modules/unictype/property-composite: Likewise.
13609         * modules/unictype/property-currency-symbol: Likewise.
13610         * modules/unictype/property-dash: Likewise.
13611         * modules/unictype/property-decimal-digit: Likewise.
13612         * modules/unictype/property-default-ignorable-code-point: Likewise.
13613         * modules/unictype/property-deprecated: Likewise.
13614         * modules/unictype/property-diacritic: Likewise.
13615         * modules/unictype/property-extender: Likewise.
13616         * modules/unictype/property-format-control: Likewise.
13617         * modules/unictype/property-grapheme-base: Likewise.
13618         * modules/unictype/property-grapheme-extend: Likewise.
13619         * modules/unictype/property-grapheme-link: Likewise.
13620         * modules/unictype/property-hex-digit: Likewise.
13621         * modules/unictype/property-hyphen: Likewise.
13622         * modules/unictype/property-id-continue: Likewise.
13623         * modules/unictype/property-id-start: Likewise.
13624         * modules/unictype/property-ideographic: Likewise.
13625         * modules/unictype/property-ids-binary-operator: Likewise.
13626         * modules/unictype/property-ids-trinary-operator: Likewise.
13627         * modules/unictype/property-ignorable-control: Likewise.
13628         * modules/unictype/property-iso-control: Likewise.
13629         * modules/unictype/property-join-control: Likewise.
13630         * modules/unictype/property-left-of-pair: Likewise.
13631         * modules/unictype/property-line-separator: Likewise.
13632         * modules/unictype/property-logical-order-exception: Likewise.
13633         * modules/unictype/property-lowercase: Likewise.
13634         * modules/unictype/property-math: Likewise.
13635         * modules/unictype/property-non-break: Likewise.
13636         * modules/unictype/property-not-a-character: Likewise.
13637         * modules/unictype/property-numeric: Likewise.
13638         * modules/unictype/property-other-alphabetic: Likewise.
13639         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13640         * modules/unictype/property-other-grapheme-extend: Likewise.
13641         * modules/unictype/property-other-id-continue: Likewise.
13642         * modules/unictype/property-other-id-start: Likewise.
13643         * modules/unictype/property-other-lowercase: Likewise.
13644         * modules/unictype/property-other-math: Likewise.
13645         * modules/unictype/property-other-uppercase: Likewise.
13646         * modules/unictype/property-paired-punctuation: Likewise.
13647         * modules/unictype/property-paragraph-separator: Likewise.
13648         * modules/unictype/property-pattern-syntax: Likewise.
13649         * modules/unictype/property-pattern-white-space: Likewise.
13650         * modules/unictype/property-private-use: Likewise.
13651         * modules/unictype/property-punctuation: Likewise.
13652         * modules/unictype/property-quotation-mark: Likewise.
13653         * modules/unictype/property-radical: Likewise.
13654         * modules/unictype/property-sentence-terminal: Likewise.
13655         * modules/unictype/property-soft-dotted: Likewise.
13656         * modules/unictype/property-space: Likewise.
13657         * modules/unictype/property-terminal-punctuation: Likewise.
13658         * modules/unictype/property-test: Likewise.
13659         * modules/unictype/property-titlecase: Likewise.
13660         * modules/unictype/property-unassigned-code-value: Likewise.
13661         * modules/unictype/property-unified-ideograph: Likewise.
13662         * modules/unictype/property-uppercase: Likewise.
13663         * modules/unictype/property-variation-selector: Likewise.
13664         * modules/unictype/property-white-space: Likewise.
13665         * modules/unictype/property-xid-continue: Likewise.
13666         * modules/unictype/property-xid-start: Likewise.
13667         * modules/unictype/property-zero-width: Likewise.
13668         * modules/unictype/scripts: Likewise.
13669         * modules/unictype/syntax-c-ident: Likewise.
13670         * modules/unictype/syntax-c-whitespace: Likewise.
13671         * modules/unictype/syntax-java-ident: Likewise.
13672         * modules/unictype/syntax-java-whitespace: Likewise.
13673         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13674         * modules/unilbrk/u8-width-linebreaks: Likewise.
13675         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13676         * modules/unilbrk/u16-width-linebreaks: Likewise.
13677         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13678         * modules/unilbrk/u32-width-linebreaks: Likewise.
13679         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13680         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13681         * modules/uniname/uniname: Likewise.
13682         * modules/uninorm/canonical-decomposition: Likewise.
13683         * modules/uninorm/composition: Likewise.
13684         * modules/uninorm/decomposing-form: Likewise.
13685         * modules/uninorm/decomposition: Likewise.
13686         * modules/uninorm/filter: Likewise.
13687         * modules/uninorm/nfc: Likewise.
13688         * modules/uninorm/nfd: Likewise.
13689         * modules/uninorm/nfkc: Likewise.
13690         * modules/uninorm/nfkd: Likewise.
13691         * modules/uninorm/u8-normalize: Likewise.
13692         * modules/uninorm/u8-normcmp: Likewise.
13693         * modules/uninorm/u8-normcoll: Likewise.
13694         * modules/uninorm/u8-normxfrm: Likewise.
13695         * modules/uninorm/u16-normalize: Likewise.
13696         * modules/uninorm/u16-normcmp: Likewise.
13697         * modules/uninorm/u16-normcoll: Likewise.
13698         * modules/uninorm/u16-normxfrm: Likewise.
13699         * modules/uninorm/u32-normalize: Likewise.
13700         * modules/uninorm/u32-normcmp: Likewise.
13701         * modules/uninorm/u32-normcoll: Likewise.
13702         * modules/uninorm/u32-normxfrm: Likewise.
13703         * modules/unistdio/u8-asnprintf: Likewise.
13704         * modules/unistdio/u8-asprintf: Likewise.
13705         * modules/unistdio/u8-snprintf: Likewise.
13706         * modules/unistdio/u8-sprintf: Likewise.
13707         * modules/unistdio/u8-u8-asnprintf: Likewise.
13708         * modules/unistdio/u8-u8-asprintf: Likewise.
13709         * modules/unistdio/u8-u8-snprintf: Likewise.
13710         * modules/unistdio/u8-u8-sprintf: Likewise.
13711         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13712         * modules/unistdio/u8-u8-vasprintf: Likewise.
13713         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13714         * modules/unistdio/u8-u8-vsprintf: Likewise.
13715         * modules/unistdio/u8-vasnprintf: Likewise.
13716         * modules/unistdio/u8-vasprintf: Likewise.
13717         * modules/unistdio/u8-vsnprintf: Likewise.
13718         * modules/unistdio/u8-vsprintf: Likewise.
13719         * modules/unistdio/u16-asnprintf: Likewise.
13720         * modules/unistdio/u16-asprintf: Likewise.
13721         * modules/unistdio/u16-snprintf: Likewise.
13722         * modules/unistdio/u16-sprintf: Likewise.
13723         * modules/unistdio/u16-u16-asnprintf: Likewise.
13724         * modules/unistdio/u16-u16-asprintf: Likewise.
13725         * modules/unistdio/u16-u16-snprintf: Likewise.
13726         * modules/unistdio/u16-u16-sprintf: Likewise.
13727         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13728         * modules/unistdio/u16-u16-vasprintf: Likewise.
13729         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13730         * modules/unistdio/u16-u16-vsprintf: Likewise.
13731         * modules/unistdio/u16-vasnprintf: Likewise.
13732         * modules/unistdio/u16-vasprintf: Likewise.
13733         * modules/unistdio/u16-vsnprintf: Likewise.
13734         * modules/unistdio/u16-vsprintf: Likewise.
13735         * modules/unistdio/u32-asnprintf: Likewise.
13736         * modules/unistdio/u32-asprintf: Likewise.
13737         * modules/unistdio/u32-snprintf: Likewise.
13738         * modules/unistdio/u32-sprintf: Likewise.
13739         * modules/unistdio/u32-u32-asnprintf: Likewise.
13740         * modules/unistdio/u32-u32-asprintf: Likewise.
13741         * modules/unistdio/u32-u32-snprintf: Likewise.
13742         * modules/unistdio/u32-u32-sprintf: Likewise.
13743         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13744         * modules/unistdio/u32-u32-vasprintf: Likewise.
13745         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13746         * modules/unistdio/u32-u32-vsprintf: Likewise.
13747         * modules/unistdio/u32-vasnprintf: Likewise.
13748         * modules/unistdio/u32-vasprintf: Likewise.
13749         * modules/unistdio/u32-vsnprintf: Likewise.
13750         * modules/unistdio/u32-vsprintf: Likewise.
13751         * modules/unistdio/ulc-asnprintf: Likewise.
13752         * modules/unistdio/ulc-asprintf: Likewise.
13753         * modules/unistdio/ulc-fprintf: Likewise.
13754         * modules/unistdio/ulc-snprintf: Likewise.
13755         * modules/unistdio/ulc-sprintf: Likewise.
13756         * modules/unistdio/ulc-vasnprintf: Likewise.
13757         * modules/unistdio/ulc-vasprintf: Likewise.
13758         * modules/unistdio/ulc-vfprintf: Likewise.
13759         * modules/unistdio/ulc-vsnprintf: Likewise.
13760         * modules/unistdio/ulc-vsprintf: Likewise.
13761         * modules/unistr/u8-check: Likewise.
13762         * modules/unistr/u8-chr: Likewise.
13763         * modules/unistr/u8-cmp: Likewise.
13764         * modules/unistr/u8-cmp2: Likewise.
13765         * modules/unistr/u8-cpy: Likewise.
13766         * modules/unistr/u8-cpy-alloc: Likewise.
13767         * modules/unistr/u8-endswith: Likewise.
13768         * modules/unistr/u8-mblen: Likewise.
13769         * modules/unistr/u8-mbsnlen: Likewise.
13770         * modules/unistr/u8-mbtouc: Likewise.
13771         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13772         * modules/unistr/u8-mbtoucr: Likewise.
13773         * modules/unistr/u8-move: Likewise.
13774         * modules/unistr/u8-next: Likewise.
13775         * modules/unistr/u8-prev: Likewise.
13776         * modules/unistr/u8-set: Likewise.
13777         * modules/unistr/u8-startswith: Likewise.
13778         * modules/unistr/u8-stpcpy: Likewise.
13779         * modules/unistr/u8-stpncpy: Likewise.
13780         * modules/unistr/u8-strcat: Likewise.
13781         * modules/unistr/u8-strchr: Likewise.
13782         * modules/unistr/u8-strcmp: Likewise.
13783         * modules/unistr/u8-strcoll: Likewise.
13784         * modules/unistr/u8-strcpy: Likewise.
13785         * modules/unistr/u8-strcspn: Likewise.
13786         * modules/unistr/u8-strdup: Likewise.
13787         * modules/unistr/u8-strlen: Likewise.
13788         * modules/unistr/u8-strmblen: Likewise.
13789         * modules/unistr/u8-strmbtouc: Likewise.
13790         * modules/unistr/u8-strncat: Likewise.
13791         * modules/unistr/u8-strncmp: Likewise.
13792         * modules/unistr/u8-strncpy: Likewise.
13793         * modules/unistr/u8-strnlen: Likewise.
13794         * modules/unistr/u8-strpbrk: Likewise.
13795         * modules/unistr/u8-strrchr: Likewise.
13796         * modules/unistr/u8-strspn: Likewise.
13797         * modules/unistr/u8-strstr: Likewise.
13798         * modules/unistr/u8-strtok: Likewise.
13799         * modules/unistr/u8-to-u16: Likewise.
13800         * modules/unistr/u8-to-u32: Likewise.
13801         * modules/unistr/u8-uctomb: Likewise.
13802         * modules/unistr/u16-check: Likewise.
13803         * modules/unistr/u16-chr: Likewise.
13804         * modules/unistr/u16-cmp: Likewise.
13805         * modules/unistr/u16-cmp2: Likewise.
13806         * modules/unistr/u16-cpy: Likewise.
13807         * modules/unistr/u16-cpy-alloc: Likewise.
13808         * modules/unistr/u16-endswith: Likewise.
13809         * modules/unistr/u16-mblen: Likewise.
13810         * modules/unistr/u16-mbsnlen: Likewise.
13811         * modules/unistr/u16-mbtouc: Likewise.
13812         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13813         * modules/unistr/u16-mbtoucr: Likewise.
13814         * modules/unistr/u16-move: Likewise.
13815         * modules/unistr/u16-next: Likewise.
13816         * modules/unistr/u16-prev: Likewise.
13817         * modules/unistr/u16-set: Likewise.
13818         * modules/unistr/u16-startswith: Likewise.
13819         * modules/unistr/u16-stpcpy: Likewise.
13820         * modules/unistr/u16-stpncpy: Likewise.
13821         * modules/unistr/u16-strcat: Likewise.
13822         * modules/unistr/u16-strchr: Likewise.
13823         * modules/unistr/u16-strcmp: Likewise.
13824         * modules/unistr/u16-strcoll: Likewise.
13825         * modules/unistr/u16-strcpy: Likewise.
13826         * modules/unistr/u16-strcspn: Likewise.
13827         * modules/unistr/u16-strdup: Likewise.
13828         * modules/unistr/u16-strlen: Likewise.
13829         * modules/unistr/u16-strmblen: Likewise.
13830         * modules/unistr/u16-strmbtouc: Likewise.
13831         * modules/unistr/u16-strncat: Likewise.
13832         * modules/unistr/u16-strncmp: Likewise.
13833         * modules/unistr/u16-strncpy: Likewise.
13834         * modules/unistr/u16-strnlen: Likewise.
13835         * modules/unistr/u16-strpbrk: Likewise.
13836         * modules/unistr/u16-strrchr: Likewise.
13837         * modules/unistr/u16-strspn: Likewise.
13838         * modules/unistr/u16-strstr: Likewise.
13839         * modules/unistr/u16-strtok: Likewise.
13840         * modules/unistr/u16-to-u32: Likewise.
13841         * modules/unistr/u16-to-u8: Likewise.
13842         * modules/unistr/u16-uctomb: Likewise.
13843         * modules/unistr/u32-check: Likewise.
13844         * modules/unistr/u32-chr: Likewise.
13845         * modules/unistr/u32-cmp: Likewise.
13846         * modules/unistr/u32-cmp2: Likewise.
13847         * modules/unistr/u32-cpy: Likewise.
13848         * modules/unistr/u32-cpy-alloc: Likewise.
13849         * modules/unistr/u32-endswith: Likewise.
13850         * modules/unistr/u32-mblen: Likewise.
13851         * modules/unistr/u32-mbsnlen: Likewise.
13852         * modules/unistr/u32-mbtouc: Likewise.
13853         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13854         * modules/unistr/u32-mbtoucr: Likewise.
13855         * modules/unistr/u32-move: Likewise.
13856         * modules/unistr/u32-next: Likewise.
13857         * modules/unistr/u32-prev: Likewise.
13858         * modules/unistr/u32-set: Likewise.
13859         * modules/unistr/u32-startswith: Likewise.
13860         * modules/unistr/u32-stpcpy: Likewise.
13861         * modules/unistr/u32-stpncpy: Likewise.
13862         * modules/unistr/u32-strcat: Likewise.
13863         * modules/unistr/u32-strchr: Likewise.
13864         * modules/unistr/u32-strcmp: Likewise.
13865         * modules/unistr/u32-strcoll: Likewise.
13866         * modules/unistr/u32-strcpy: Likewise.
13867         * modules/unistr/u32-strcspn: Likewise.
13868         * modules/unistr/u32-strdup: Likewise.
13869         * modules/unistr/u32-strlen: Likewise.
13870         * modules/unistr/u32-strmblen: Likewise.
13871         * modules/unistr/u32-strmbtouc: Likewise.
13872         * modules/unistr/u32-strncat: Likewise.
13873         * modules/unistr/u32-strncmp: Likewise.
13874         * modules/unistr/u32-strncpy: Likewise.
13875         * modules/unistr/u32-strnlen: Likewise.
13876         * modules/unistr/u32-strpbrk: Likewise.
13877         * modules/unistr/u32-strrchr: Likewise.
13878         * modules/unistr/u32-strspn: Likewise.
13879         * modules/unistr/u32-strstr: Likewise.
13880         * modules/unistr/u32-strtok: Likewise.
13881         * modules/unistr/u32-to-u16: Likewise.
13882         * modules/unistr/u32-to-u8: Likewise.
13883         * modules/unistr/u32-uctomb: Likewise.
13884         * modules/uniwbrk/u8-wordbreaks: Likewise.
13885         * modules/uniwbrk/u16-wordbreaks: Likewise.
13886         * modules/uniwbrk/u32-wordbreaks: Likewise.
13887         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13888         * modules/uniwbrk/wordbreak-property: Likewise.
13889         * modules/uniwidth/u8-strwidth: Likewise.
13890         * modules/uniwidth/u8-width: Likewise.
13891         * modules/uniwidth/u16-strwidth: Likewise.
13892         * modules/uniwidth/u16-width: Likewise.
13893         * modules/uniwidth/u32-strwidth: Likewise.
13894         * modules/uniwidth/u32-width: Likewise.
13895         * modules/uniwidth/width: Likewise.
13896         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13897         with $(LIBUNISTRING).
13898         * modules/unicase/ignorable-tests: Likewise.
13899         * modules/unicase/locale-language-tests: Likewise.
13900         * modules/unicase/tolower-tests: Likewise.
13901         * modules/unicase/totitle-tests: Likewise.
13902         * modules/unicase/toupper-tests: Likewise.
13903         * modules/unicase/u8-casecmp-tests: Likewise.
13904         * modules/unicase/u8-casecoll-tests: Likewise.
13905         * modules/unicase/u8-casefold-tests: Likewise.
13906         * modules/unicase/u8-is-cased-tests: Likewise.
13907         * modules/unicase/u8-is-casefolded-tests: Likewise.
13908         * modules/unicase/u8-is-lowercase-tests: Likewise.
13909         * modules/unicase/u8-is-titlecase-tests: Likewise.
13910         * modules/unicase/u8-is-uppercase-tests: Likewise.
13911         * modules/unicase/u8-tolower-tests: Likewise.
13912         * modules/unicase/u8-totitle-tests: Likewise.
13913         * modules/unicase/u8-toupper-tests: Likewise.
13914         * modules/unicase/u16-casecmp-tests: Likewise.
13915         * modules/unicase/u16-casecoll-tests: Likewise.
13916         * modules/unicase/u16-casefold-tests: Likewise.
13917         * modules/unicase/u16-is-cased-tests: Likewise.
13918         * modules/unicase/u16-is-casefolded-tests: Likewise.
13919         * modules/unicase/u16-is-lowercase-tests: Likewise.
13920         * modules/unicase/u16-is-titlecase-tests: Likewise.
13921         * modules/unicase/u16-is-uppercase-tests: Likewise.
13922         * modules/unicase/u16-tolower-tests: Likewise.
13923         * modules/unicase/u16-totitle-tests: Likewise.
13924         * modules/unicase/u16-toupper-tests: Likewise.
13925         * modules/unicase/u32-casecmp-tests: Likewise.
13926         * modules/unicase/u32-casecoll-tests: Likewise.
13927         * modules/unicase/u32-casefold-tests: Likewise.
13928         * modules/unicase/u32-is-cased-tests: Likewise.
13929         * modules/unicase/u32-is-casefolded-tests: Likewise.
13930         * modules/unicase/u32-is-lowercase-tests: Likewise.
13931         * modules/unicase/u32-is-titlecase-tests: Likewise.
13932         * modules/unicase/u32-is-uppercase-tests: Likewise.
13933         * modules/unicase/u32-tolower-tests: Likewise.
13934         * modules/unicase/u32-totitle-tests: Likewise.
13935         * modules/unicase/u32-toupper-tests: Likewise.
13936         * modules/unicase/ulc-casecmp-tests: Likewise.
13937         * modules/unicase/ulc-casecoll-tests: Likewise.
13938         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13939         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13940         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13941         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13942         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13943         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13944         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13945         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13946         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13947         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13948         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13949         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13950         * modules/unictype/bidicategory-byname-tests: Likewise.
13951         * modules/unictype/bidicategory-name-tests: Likewise.
13952         * modules/unictype/bidicategory-of-tests: Likewise.
13953         * modules/unictype/bidicategory-test-tests: Likewise.
13954         * modules/unictype/block-list-tests: Likewise.
13955         * modules/unictype/block-of-tests: Likewise.
13956         * modules/unictype/block-test-tests: Likewise.
13957         * modules/unictype/category-C-tests: Likewise.
13958         * modules/unictype/category-Cc-tests: Likewise.
13959         * modules/unictype/category-Cf-tests: Likewise.
13960         * modules/unictype/category-Cn-tests: Likewise.
13961         * modules/unictype/category-Co-tests: Likewise.
13962         * modules/unictype/category-Cs-tests: Likewise.
13963         * modules/unictype/category-L-tests: Likewise.
13964         * modules/unictype/category-Ll-tests: Likewise.
13965         * modules/unictype/category-Lm-tests: Likewise.
13966         * modules/unictype/category-Lo-tests: Likewise.
13967         * modules/unictype/category-Lt-tests: Likewise.
13968         * modules/unictype/category-Lu-tests: Likewise.
13969         * modules/unictype/category-M-tests: Likewise.
13970         * modules/unictype/category-Mc-tests: Likewise.
13971         * modules/unictype/category-Me-tests: Likewise.
13972         * modules/unictype/category-Mn-tests: Likewise.
13973         * modules/unictype/category-N-tests: Likewise.
13974         * modules/unictype/category-Nd-tests: Likewise.
13975         * modules/unictype/category-Nl-tests: Likewise.
13976         * modules/unictype/category-No-tests: Likewise.
13977         * modules/unictype/category-P-tests: Likewise.
13978         * modules/unictype/category-Pc-tests: Likewise.
13979         * modules/unictype/category-Pd-tests: Likewise.
13980         * modules/unictype/category-Pe-tests: Likewise.
13981         * modules/unictype/category-Pf-tests: Likewise.
13982         * modules/unictype/category-Pi-tests: Likewise.
13983         * modules/unictype/category-Po-tests: Likewise.
13984         * modules/unictype/category-Ps-tests: Likewise.
13985         * modules/unictype/category-S-tests: Likewise.
13986         * modules/unictype/category-Sc-tests: Likewise.
13987         * modules/unictype/category-Sk-tests: Likewise.
13988         * modules/unictype/category-Sm-tests: Likewise.
13989         * modules/unictype/category-So-tests: Likewise.
13990         * modules/unictype/category-Z-tests: Likewise.
13991         * modules/unictype/category-Zl-tests: Likewise.
13992         * modules/unictype/category-Zp-tests: Likewise.
13993         * modules/unictype/category-Zs-tests: Likewise.
13994         * modules/unictype/category-and-not-tests: Likewise.
13995         * modules/unictype/category-and-tests: Likewise.
13996         * modules/unictype/category-byname-tests: Likewise.
13997         * modules/unictype/category-name-tests: Likewise.
13998         * modules/unictype/category-none-tests: Likewise.
13999         * modules/unictype/category-of-tests: Likewise.
14000         * modules/unictype/category-or-tests: Likewise.
14001         * modules/unictype/category-test-withtable-tests: Likewise.
14002         * modules/unictype/combining-class-tests: Likewise.
14003         * modules/unictype/ctype-alnum-tests: Likewise.
14004         * modules/unictype/ctype-alpha-tests: Likewise.
14005         * modules/unictype/ctype-blank-tests: Likewise.
14006         * modules/unictype/ctype-cntrl-tests: Likewise.
14007         * modules/unictype/ctype-digit-tests: Likewise.
14008         * modules/unictype/ctype-graph-tests: Likewise.
14009         * modules/unictype/ctype-lower-tests: Likewise.
14010         * modules/unictype/ctype-print-tests: Likewise.
14011         * modules/unictype/ctype-punct-tests: Likewise.
14012         * modules/unictype/ctype-space-tests: Likewise.
14013         * modules/unictype/ctype-upper-tests: Likewise.
14014         * modules/unictype/ctype-xdigit-tests: Likewise.
14015         * modules/unictype/decimal-digit-tests: Likewise.
14016         * modules/unictype/digit-tests: Likewise.
14017         * modules/unictype/mirror-tests: Likewise.
14018         * modules/unictype/numeric-tests: Likewise.
14019         * modules/unictype/property-alphabetic-tests: Likewise.
14020         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14021         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14022         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14023         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14024         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14025         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14026         * modules/unictype/property-bidi-control-tests: Likewise.
14027         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14028         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14029         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14030         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14031         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14032         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14033         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14034         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14035         * modules/unictype/property-bidi-pdf-tests: Likewise.
14036         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14037         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14038         * modules/unictype/property-byname-tests: Likewise.
14039         * modules/unictype/property-combining-tests: Likewise.
14040         * modules/unictype/property-composite-tests: Likewise.
14041         * modules/unictype/property-currency-symbol-tests: Likewise.
14042         * modules/unictype/property-dash-tests: Likewise.
14043         * modules/unictype/property-decimal-digit-tests: Likewise.
14044         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14045         * modules/unictype/property-deprecated-tests: Likewise.
14046         * modules/unictype/property-diacritic-tests: Likewise.
14047         * modules/unictype/property-extender-tests: Likewise.
14048         * modules/unictype/property-format-control-tests: Likewise.
14049         * modules/unictype/property-grapheme-base-tests: Likewise.
14050         * modules/unictype/property-grapheme-extend-tests: Likewise.
14051         * modules/unictype/property-grapheme-link-tests: Likewise.
14052         * modules/unictype/property-hex-digit-tests: Likewise.
14053         * modules/unictype/property-hyphen-tests: Likewise.
14054         * modules/unictype/property-id-continue-tests: Likewise.
14055         * modules/unictype/property-id-start-tests: Likewise.
14056         * modules/unictype/property-ideographic-tests: Likewise.
14057         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14058         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14059         * modules/unictype/property-ignorable-control-tests: Likewise.
14060         * modules/unictype/property-iso-control-tests: Likewise.
14061         * modules/unictype/property-join-control-tests: Likewise.
14062         * modules/unictype/property-left-of-pair-tests: Likewise.
14063         * modules/unictype/property-line-separator-tests: Likewise.
14064         * modules/unictype/property-logical-order-exception-tests: Likewise.
14065         * modules/unictype/property-lowercase-tests: Likewise.
14066         * modules/unictype/property-math-tests: Likewise.
14067         * modules/unictype/property-non-break-tests: Likewise.
14068         * modules/unictype/property-not-a-character-tests: Likewise.
14069         * modules/unictype/property-numeric-tests: Likewise.
14070         * modules/unictype/property-other-alphabetic-tests: Likewise.
14071         * modules/unictype/property-other-default-ignorable-code-point-tests:
14072         Likewise.
14073         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14074         * modules/unictype/property-other-id-continue-tests: Likewise.
14075         * modules/unictype/property-other-id-start-tests: Likewise.
14076         * modules/unictype/property-other-lowercase-tests: Likewise.
14077         * modules/unictype/property-other-math-tests: Likewise.
14078         * modules/unictype/property-other-uppercase-tests: Likewise.
14079         * modules/unictype/property-paired-punctuation-tests: Likewise.
14080         * modules/unictype/property-paragraph-separator-tests: Likewise.
14081         * modules/unictype/property-pattern-syntax-tests: Likewise.
14082         * modules/unictype/property-pattern-white-space-tests: Likewise.
14083         * modules/unictype/property-private-use-tests: Likewise.
14084         * modules/unictype/property-punctuation-tests: Likewise.
14085         * modules/unictype/property-quotation-mark-tests: Likewise.
14086         * modules/unictype/property-radical-tests: Likewise.
14087         * modules/unictype/property-sentence-terminal-tests: Likewise.
14088         * modules/unictype/property-soft-dotted-tests: Likewise.
14089         * modules/unictype/property-space-tests: Likewise.
14090         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14091         * modules/unictype/property-test-tests: Likewise.
14092         * modules/unictype/property-titlecase-tests: Likewise.
14093         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14094         * modules/unictype/property-unified-ideograph-tests: Likewise.
14095         * modules/unictype/property-uppercase-tests: Likewise.
14096         * modules/unictype/property-variation-selector-tests: Likewise.
14097         * modules/unictype/property-white-space-tests: Likewise.
14098         * modules/unictype/property-xid-continue-tests: Likewise.
14099         * modules/unictype/property-xid-start-tests: Likewise.
14100         * modules/unictype/property-zero-width-tests: Likewise.
14101         * modules/unictype/scripts-tests: Likewise.
14102         * modules/unictype/syntax-c-ident-tests: Likewise.
14103         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14104         * modules/unictype/syntax-java-ident-tests: Likewise.
14105         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14106         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14107         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14108         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14109         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14110         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14111         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14112         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14113         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14114         * modules/uniname/uniname-tests: Likewise.
14115         * modules/uninorm/canonical-decomposition-tests: Likewise.
14116         * modules/uninorm/compat-decomposition-tests: Likewise.
14117         * modules/uninorm/composition-tests: Likewise.
14118         * modules/uninorm/decomposing-form-tests: Likewise.
14119         * modules/uninorm/decomposition-tests: Likewise.
14120         * modules/uninorm/filter-tests: Likewise.
14121         * modules/uninorm/nfc-tests: Likewise.
14122         * modules/uninorm/nfd-tests: Likewise.
14123         * modules/uninorm/nfkc-tests: Likewise.
14124         * modules/uninorm/nfkd-tests: Likewise.
14125         * modules/uninorm/u8-normcmp-tests: Likewise.
14126         * modules/uninorm/u8-normcoll-tests: Likewise.
14127         * modules/uninorm/u16-normcmp-tests: Likewise.
14128         * modules/uninorm/u16-normcoll-tests: Likewise.
14129         * modules/uninorm/u32-normcmp-tests: Likewise.
14130         * modules/uninorm/u32-normcoll-tests: Likewise.
14131         * modules/unistdio/u8-asnprintf-tests: Likewise.
14132         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14133         * modules/unistdio/u8-vasprintf-tests: Likewise.
14134         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14135         * modules/unistdio/u8-vsprintf-tests: Likewise.
14136         * modules/unistdio/u16-asnprintf-tests: Likewise.
14137         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14138         * modules/unistdio/u16-vasprintf-tests: Likewise.
14139         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14140         * modules/unistdio/u16-vsprintf-tests: Likewise.
14141         * modules/unistdio/u32-asnprintf-tests: Likewise.
14142         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14143         * modules/unistdio/u32-vasprintf-tests: Likewise.
14144         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14145         * modules/unistdio/u32-vsprintf-tests: Likewise.
14146         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14147         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14148         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14149         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14150         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14151         * modules/unistr/u8-check-tests: Likewise.
14152         * modules/unistr/u8-chr-tests: Likewise.
14153         * modules/unistr/u8-cmp-tests: Likewise.
14154         * modules/unistr/u8-cmp2-tests: Likewise.
14155         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14156         * modules/unistr/u8-cpy-tests: Likewise.
14157         * modules/unistr/u8-mblen-tests: Likewise.
14158         * modules/unistr/u8-mbsnlen-tests: Likewise.
14159         * modules/unistr/u8-mbtouc-tests: Likewise.
14160         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14161         * modules/unistr/u8-mbtoucr-tests: Likewise.
14162         * modules/unistr/u8-move-tests: Likewise.
14163         * modules/unistr/u8-next-tests: Likewise.
14164         * modules/unistr/u8-prev-tests: Likewise.
14165         * modules/unistr/u8-set-tests: Likewise.
14166         * modules/unistr/u8-stpcpy-tests: Likewise.
14167         * modules/unistr/u8-stpncpy-tests: Likewise.
14168         * modules/unistr/u8-strcat-tests: Likewise.
14169         * modules/unistr/u8-strcmp-tests: Likewise.
14170         * modules/unistr/u8-strcoll-tests: Likewise.
14171         * modules/unistr/u8-strcpy-tests: Likewise.
14172         * modules/unistr/u8-strdup-tests: Likewise.
14173         * modules/unistr/u8-strlen-tests: Likewise.
14174         * modules/unistr/u8-strmblen-tests: Likewise.
14175         * modules/unistr/u8-strmbtouc-tests: Likewise.
14176         * modules/unistr/u8-strncat-tests: Likewise.
14177         * modules/unistr/u8-strncmp-tests: Likewise.
14178         * modules/unistr/u8-strncpy-tests: Likewise.
14179         * modules/unistr/u8-strnlen-tests: Likewise.
14180         * modules/unistr/u8-to-u16-tests: Likewise.
14181         * modules/unistr/u8-to-u32-tests: Likewise.
14182         * modules/unistr/u8-uctomb-tests: Likewise.
14183         * modules/unistr/u16-check-tests: Likewise.
14184         * modules/unistr/u16-chr-tests: Likewise.
14185         * modules/unistr/u16-cmp-tests: Likewise.
14186         * modules/unistr/u16-cmp2-tests: Likewise.
14187         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14188         * modules/unistr/u16-cpy-tests: Likewise.
14189         * modules/unistr/u16-mblen-tests: Likewise.
14190         * modules/unistr/u16-mbsnlen-tests: Likewise.
14191         * modules/unistr/u16-mbtouc-tests: Likewise.
14192         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14193         * modules/unistr/u16-mbtoucr-tests: Likewise.
14194         * modules/unistr/u16-move-tests: Likewise.
14195         * modules/unistr/u16-next-tests: Likewise.
14196         * modules/unistr/u16-prev-tests: Likewise.
14197         * modules/unistr/u16-set-tests: Likewise.
14198         * modules/unistr/u16-stpcpy-tests: Likewise.
14199         * modules/unistr/u16-stpncpy-tests: Likewise.
14200         * modules/unistr/u16-strcat-tests: Likewise.
14201         * modules/unistr/u16-strcmp-tests: Likewise.
14202         * modules/unistr/u16-strcoll-tests: Likewise.
14203         * modules/unistr/u16-strcpy-tests: Likewise.
14204         * modules/unistr/u16-strdup-tests: Likewise.
14205         * modules/unistr/u16-strlen-tests: Likewise.
14206         * modules/unistr/u16-strmblen-tests: Likewise.
14207         * modules/unistr/u16-strmbtouc-tests: Likewise.
14208         * modules/unistr/u16-strncat-tests: Likewise.
14209         * modules/unistr/u16-strncmp-tests: Likewise.
14210         * modules/unistr/u16-strncpy-tests: Likewise.
14211         * modules/unistr/u16-strnlen-tests: Likewise.
14212         * modules/unistr/u16-to-u32-tests: Likewise.
14213         * modules/unistr/u16-to-u8-tests: Likewise.
14214         * modules/unistr/u16-uctomb-tests: Likewise.
14215         * modules/unistr/u32-check-tests: Likewise.
14216         * modules/unistr/u32-chr-tests: Likewise.
14217         * modules/unistr/u32-cmp-tests: Likewise.
14218         * modules/unistr/u32-cmp2-tests: Likewise.
14219         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14220         * modules/unistr/u32-cpy-tests: Likewise.
14221         * modules/unistr/u32-mblen-tests: Likewise.
14222         * modules/unistr/u32-mbsnlen-tests: Likewise.
14223         * modules/unistr/u32-mbtouc-tests: Likewise.
14224         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14225         * modules/unistr/u32-mbtoucr-tests: Likewise.
14226         * modules/unistr/u32-move-tests: Likewise.
14227         * modules/unistr/u32-next-tests: Likewise.
14228         * modules/unistr/u32-prev-tests: Likewise.
14229         * modules/unistr/u32-set-tests: Likewise.
14230         * modules/unistr/u32-stpcpy-tests: Likewise.
14231         * modules/unistr/u32-stpncpy-tests: Likewise.
14232         * modules/unistr/u32-strcat-tests: Likewise.
14233         * modules/unistr/u32-strcmp-tests: Likewise.
14234         * modules/unistr/u32-strcoll-tests: Likewise.
14235         * modules/unistr/u32-strcpy-tests: Likewise.
14236         * modules/unistr/u32-strdup-tests: Likewise.
14237         * modules/unistr/u32-strlen-tests: Likewise.
14238         * modules/unistr/u32-strmblen-tests: Likewise.
14239         * modules/unistr/u32-strmbtouc-tests: Likewise.
14240         * modules/unistr/u32-strncat-tests: Likewise.
14241         * modules/unistr/u32-strncmp-tests: Likewise.
14242         * modules/unistr/u32-strncpy-tests: Likewise.
14243         * modules/unistr/u32-strnlen-tests: Likewise.
14244         * modules/unistr/u32-to-u16-tests: Likewise.
14245         * modules/unistr/u32-to-u8-tests: Likewise.
14246         * modules/unistr/u32-uctomb-tests: Likewise.
14247         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14248         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14249         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14250         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14251         * modules/uniwidth/u8-strwidth-tests: Likewise.
14252         * modules/uniwidth/u8-width-tests: Likewise.
14253         * modules/uniwidth/u16-strwidth-tests: Likewise.
14254         * modules/uniwidth/u16-width-tests: Likewise.
14255         * modules/uniwidth/u32-strwidth-tests: Likewise.
14256         * modules/uniwidth/u32-width-tests: Likewise.
14257         * modules/uniwidth/width-tests: Likewise.
14258
14259 2010-05-18  Richard Jones  <rjones@redhat.com>
14260
14261         doc: users.txt: list hivex
14262         * users.txt: Add hivex.
14263
14264 2010-05-18  Richard Jones  <rjones@redhat.com>
14265
14266         doc: users.txt: list febootstrap
14267         * users.txt: Add febootstrap.
14268
14269 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14270
14271         bootstrap: fix an error when gnulib is not used as a git submodule
14272         * build-aux/bootstrap (gnulib_path): If its length is zero then
14273         assign "gnulib" to it.
14274         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14275
14276 2010-05-16  Bruno Haible  <bruno@clisp.org>
14277
14278         Avoid autoconf warnings about AM_ICONV.
14279         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14280         2.64.
14281
14282 2010-05-16  Bruno Haible  <bruno@clisp.org>
14283
14284         absolute-header: Make the macro usable in more situations.
14285         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14286         from gl_ABSOLUTE_HEADER.
14287         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14288
14289 2010-05-16  James Youngman  <jay@gnu.org>
14290
14291         doc: update users.txt
14292         * users.txt: Add CSSC.
14293
14294 2010-05-16  Jim Meyering  <meyering@redhat.com>
14295
14296         init.sh: fix an error in the previous change; add more comments
14297         * tests/init.sh: Compare exit code in loop against 9, not 2.
14298         Patch by Bruno Haible.
14299         Make the two tests more similar by adding an empty "then" clause.
14300         Add comments.
14301
14302         init.sh: avoid unnecessary shell re-exec
14303         * tests/init.sh: Improve the re-exec-required check to first test the
14304         current shell.  If it passes the test, do not search for a shell that
14305         does pass, and do not re-exec.  This test is particularly contorted to
14306         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14307         of $(...) evokes a syntax error and causes immediate shell exit with
14308         status 2.  Bruno Haible reported that the re-exec made it impossible
14309         to single-step through any init.sh-using script.
14310
14311 2010-05-16  Bruno Haible  <bruno@clisp.org>
14312
14313         Fix collision between gnulib's and libintl's printf replacements.
14314         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14315         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14316         (printf): When using GNU C, map the __printf__ function to rpl_printf
14317         via __asm__. When not using GNU C, define rpl_printf instead of
14318         __printf__.
14319         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14320         commit.
14321         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14322         commit.
14323         * m4/asm-underscore.m4: New file.
14324         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14325         * modules/stdio (Files): Add m4/asm-underscore.m4.
14326         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14327         Reported by Ben Pfaff.
14328
14329 2010-05-16  Bruno Haible  <bruno@clisp.org>
14330
14331         verify: Avoid skipping the test on openSUSE 11.0.
14332         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14333
14334 2010-05-13  Bruno Haible  <bruno@clisp.org>
14335
14336         Avoid useless warnings from G++.
14337         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14338         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14340
14341 2010-05-11  Jim Meyering  <meyering@redhat.com>
14342
14343         maint.mk: tweak preceding change
14344         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14345         regexps tighter by anchoring at EOL, and make the new group "shy"
14346         for slightly decreased overhead.
14347
14348 2010-05-11  Eric Blake  <eblake@redhat.com>
14349
14350         maint.mk: gnulib doesn't guarantee NSIG
14351         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14352
14353 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14354
14355         test-pwrite.c: Remove unused variable declaration.
14356         * tests/test-pwrite.c (main): Remove read_buf declaration.
14357
14358         Remove useless test-pwrite.sh file.
14359         * tests/test-pwrite.sh: Delete file.
14360         * modules/pwrite-tests: Remove references.
14361         Reported by Bruno Haible.
14362
14363 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14364
14365         init.sh: fix a typo
14366         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14367
14368 2010-05-10  Jim Meyering  <meyering@redhat.com>
14369
14370         maint.mk: avoid using a temporary file in the always-defined-macros check
14371         * top/maint.mk (.re-defmac): Remove rule.
14372         (gl_trap_): Remove definition.
14373         (sc_prohibit_always-defined_macros): Rewrite not to create and
14374         depend on a temporary file.  Instead, depend on GNU grep's ability
14375         to read a list of regular expressions from stdin when given "-f -".
14376
14377 2010-05-09  Bruno Haible  <bruno@clisp.org>
14378
14379         Update to GNU gettext 0.18, part 1.
14380         * m4/gettext.m4: Update to GNU gettext 0.18.
14381         * m4/intl.m4: Likewise.
14382         * m4/po.m4: Likewise.
14383         * modules/gettext (Files): Add m4/fcntl-o.m4.
14384         (configure.ac): Require gettext infrastructure from version 0.18.
14385
14386 2010-05-09  Jim Meyering  <meyering@redhat.com>
14387
14388         init.sh: enable MALLOC_PERTURB_
14389         * tests/init.sh: Enable glibc's malloc-perturbing option.
14390
14391         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14392         With my recent change in init.sh from the two-line form:
14393             -#   : ${srcdir=.}
14394             -#   . "$srcdir/init.sh"; path_prepend_ .
14395             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14396         I noticed that using the one-line form would cause this test
14397         to fail with a false-positive, or to stop working altogether,
14398         depending on whether help-version changed or all the tests did.
14399         * top/maint.mk (_hv_regex): Remove this definition.
14400         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14401         (_hv_regex_strong): Use a stronger regex to check for conformance.
14402         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14403         Give a separate diagnostic for lack of conforming use.
14404
14405         maint.mk: prohibit definition of symbols defined by gnulib
14406         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14407         definition of symbols defined by gnulib.
14408
14409 2010-05-09  Bruno Haible  <bruno@clisp.org>
14410
14411         acl: Avoid test failure on Cygwin-hosted mingw.
14412         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14413
14414 2010-05-09  Bruno Haible  <bruno@clisp.org>
14415
14416         error: Use system's fcntl function.
14417         * lib/error.c (fcntl): Undefine.
14418
14419 2010-05-09  Jim Meyering  <meyering@redhat.com>
14420
14421         verify: adjust formatting to be more consistent
14422         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14423         argument-list '('s, and after one comma.
14424
14425 2010-05-09  Bruno Haible  <bruno@clisp.org>
14426
14427         error: More reliable output on mingw.
14428         * lib/error.c: Include <windows.h>.
14429         (is_open): New function.
14430         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14431         defined.
14432
14433 2010-05-09  Bruno Haible  <bruno@clisp.org>
14434
14435         vasnprintf: Fix syntax errors in libintl build on mingw.
14436         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14437         pad_ourselves and prec_ourselves after use.
14438
14439 2010-05-08  Bruno Haible  <bruno@clisp.org>
14440
14441         * lib/config.charset: Update comments for Cygwin 1.7.
14442         * lib/localcharset.c: Likewise.
14443
14444 2010-05-07  Jim Meyering  <meyering@redhat.com>
14445
14446         init.sh: improve comments
14447         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14448         . "${srcdir=.}/init.sh"; path_prepend_ .
14449         Add a note about path_prepend_ and the alternative of using
14450         TESTS_ENVIRONMENT.
14451
14452 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14453
14454         exclude: Unescape hashed patterns in wildcard mode.
14455         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14456         to the hash list.
14457         * tests/test-exclude8.sh: New test case.
14458         * modules/exclude-tests: Add new test.
14459
14460 2010-05-05  Eric Blake  <eblake@redhat.com>
14461
14462         verify: automate tests
14463         * modules/verify-tests: New module.
14464         * tests/test-verify.sh: New file.
14465         * tests/test-verify.c: Guard each negative test with a unique id.
14466         Also avoid warning about unused left hand of comma expressions.
14467
14468 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14469
14470         Further improvements to verify.h, suggested by Eric Blake.
14471         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14472         the GL_* versions, to avoid collision with OpenGL.
14473         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14474         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14475         than testing merely whether it's defined.
14476
14477         Modify verify.h to pacify gcc -Wredundant_decls.
14478         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14479         These use the prefix "GL_" since they're likely to be useful elsewhere.
14480         We may need to break them out into a different .h file.
14481         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14482         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14483         of verify_function__.
14484
14485 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14486
14487         Tests for module pwrite.
14488         * modules/pwrite-tests: New file.
14489         * tests/test-pwrite.sh: New file.
14490         * tests/test-pwrite.c: New file.
14491
14492         New module pwrite.
14493         * lib/unistd.in.h (pwrite): New declaration.
14494         * lib/pwrite.c: New file, from glibc with modifications.
14495         * m4/pwrite.m4: New file.
14496         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14497         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14498         REPLACE_PWRITE.
14499         * modules/pwrite: New file.
14500         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14501         REPLACE_PWRITE.
14502         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14503         * doc/posix-functions/pwrite.texi: Mention the new module.
14504
14505 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14506
14507         pread: Update documentation.
14508         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14509
14510 2010-05-04  Eric Blake  <eblake@redhat.com>
14511
14512         docs: update cygwin progress
14513         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14514         this bug.
14515         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14516         Added in cygwin 1.7.2.
14517         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14518         Likewise.
14519         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14520         Likewise.
14521         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14522         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14523         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14524         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14525         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14526         Mention nproc module.
14527         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14528         bug in cygwin 1.7.5 addition.
14529         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14530         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14531         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14532         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14533         1.7.5.
14534         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14535         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14536         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14537         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14538         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14539         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14540         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14541         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14542         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14543         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14544         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14545         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14546         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14547         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14548         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14549         Likewise.
14550         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14551         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14552         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14553         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14554         Likewise.
14555         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14556         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14557         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14558         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14559         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14560         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14561         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14562         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14563         Likewise.
14564         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14565         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14566         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14567         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14568         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14569         Likewise.
14570         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14571         Likewise.
14572         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14573         Likewise.
14574         * doc/glibc-functions/xdrrec_endofrecord.texi
14575         (xdrrec_endofrecord): Likewise.
14576         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14577         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14578         Likewise.
14579         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14580         Likewise.
14581
14582 2010-05-04  Jim Meyering  <meyering@redhat.com>
14583
14584         gendocs.sh: make its "-s FILE" option more useful
14585         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14586         $PACKAGE to reflect the probably-different basename of "FILE".
14587
14588 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14589
14590         bootstrap: don't ignore download_po_files failure
14591         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14592         failure.
14593
14594 2010-05-03  Jim Meyering  <meyering@redhat.com>
14595
14596         maint.mk: allow to pass options to gendocs.sh
14597         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14598         (gendocs_options_): New overridable variable.
14599
14600         gnu-web-doc-update: don't ignore configure or build failure
14601         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14602
14603         announce-gen: backslash-escape '@'s in --help output
14604         * build-aux/announce-gen: Fix syntax errors.
14605
14606         maint.mk, announce-gen: allow project-specific announcement mail headers
14607         * top/maint.mk (translation_project_): Define default.
14608         (announcement_Cc_, announcement_mail_headers_): Likewise.
14609         (announcement): Invoke announce-gen with new --mail-headers option.
14610         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14611
14612         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14613         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14614         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14615         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14616         line in the "err2" output file when running "make check" in verbose
14617         mode (i.e., with set -x enabled).
14618
14619 2010-05-03  Bruno Haible  <bruno@clisp.org>
14620
14621         wctob: Fix for weird platforms.
14622         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14623         argument value.
14624
14625 2010-05-03  Jim Meyering  <meyering@redhat.com>
14626
14627         maint.mk: prohibit unwarranted use of <strings.h>
14628         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14629         strings.h in a file that does not also use strcasecmp, strncasecmp,
14630         ffs or ffsll.
14631
14632         maint.mk: remove obsolete comments
14633         * top/maint.mk: Remove stale, commented-out rules.
14634
14635 2010-05-02  Bruno Haible  <bruno@clisp.org>
14636
14637         wcwidth: Declare also when it's aliased.
14638         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14639         macro.
14640
14641 2010-05-02  Bruno Haible  <bruno@clisp.org>
14642
14643         Fix regression from 2010-04-25.
14644         * gnulib-tool (func_modules_transitive_closure): Check the status of
14645         all modules, not only of the tests that are of the form foo-tests where
14646         foo is a module.
14647
14648 2010-05-02  Bruno Haible  <bruno@clisp.org>
14649
14650         wctob: Work around nasty Cygwin 1.7.2 bug.
14651         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14652         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14653
14654 2010-05-01  Bruno Haible  <bruno@clisp.org>
14655
14656         fpurge: Sharper test.
14657         * tests/test-fpurge.c (main): Add one more ftell check.
14658         * modules/fpurge-tests (Depends-on): Add ftell.
14659         Suggested by Eric Blake.
14660
14661 2010-05-01  Bruno Haible  <bruno@clisp.org>
14662
14663         ftello: Another test.
14664         * tests/test-ftello3.c: New file.
14665         * modules/ftello-tests (Files): Add it.
14666         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14667         MOSTLYCLEANFILES.
14668
14669         ftell: Another test.
14670         * tests/test-ftell3.c: New file.
14671         * modules/ftell-tests (Files): Add it.
14672         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14673         MOSTLYCLEANFILES.
14674
14675 2010-05-01  Bruno Haible  <bruno@clisp.org>
14676
14677         ftell, ftello: Work around Solaris bug.
14678         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14679         * lib/ftello.c: Include stdio-impl.h.
14680         (ftello): On Solaris, when _IOWRT is set, compute the result without
14681         looking at _IOREAD.
14682         * modules/ftello (Files): Add lib/stdio-impl.h.
14683         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14684         * doc/posix-functions/ftello.texi: Likewise.
14685         Reported by Eric Blake.
14686
14687 2010-05-01  Bruno Haible  <bruno@clisp.org>
14688
14689         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14690         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14691         the _IOWRT flag is also set.
14692
14693 2010-05-01  Bruno Haible  <bruno@clisp.org>
14694
14695         Fix doc about a HP-UX stdio bug.
14696         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14697         * doc/posix-functions/ftello.texi: Likewise.
14698
14699 2010-05-01  Bruno Haible  <bruno@clisp.org>
14700
14701         lseek test: Fix failure on Solaris.
14702         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14703         output.
14704
14705 2010-04-30  Jim Meyering  <meyering@redhat.com>
14706
14707         bootstrap: don't ignore failure to generate po*/Makevars
14708         * build-aux/bootstrap (with_gettext): Don't ignore failure
14709         to create po/Makevars or runtime-po/Makevars.
14710
14711 2010-04-29  Eric Blake  <eblake@redhat.com>
14712
14713         headers: relax license to LGPLv2+
14714         * modules/fcntl-h (License): Relax license.
14715         * modules/getopt-posix (License): Likewise.
14716         * modules/locale (License): Likewise.
14717         * modules/math (License): Likewise.
14718         * modules/pty (License): Likewise.
14719         * modules/sched (License): Likewise.
14720         * modules/search (License): Likewise.
14721         * modules/spawn (License): Likewise.
14722         * modules/stdarg (License): Likewise.
14723         * modules/sysexits (License): Likewise.
14724
14725 2010-04-29  Jim Meyering  <meyering@redhat.com>
14726
14727         inttypes: relax license to LGPLv2+
14728         * modules/inttypes (License): Relax license.
14729
14730 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14731
14732         * top/maint.mk (indent): Run twice to produce idempotent results.
14733
14734 2010-04-28  Bruno Haible  <bruno@clisp.org>
14735
14736         getdate: Generate getdate.c in the source directory.
14737         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14738         MOSTLYCLEANFILES.
14739         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14740
14741 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14742
14743         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14744         is not declared as a const *; avoid warnings in that case.
14745
14746 2010-04-28  Eric Blake  <eblake@redhat.com>
14747
14748         canonicalize-lgpl: avoid compiler warning
14749         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14750         declaration' / 'extraneous semicolon' warning with some compilers.
14751         Reported by Andreas Gruenbacher.
14752
14753 2010-04-28  Jim Meyering  <meyering@redhat.com>
14754
14755         init.sh: ensure a more reliable exit status when exiting via trap
14756         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14757         Inspired by patches from Dmitry V. Levin.
14758         Also trap on signal 3 (SIGQUIT).
14759
14760 2010-04-27  Bruno Haible  <bruno@clisp.org>
14761
14762         Update doc about utimes().
14763         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14764         'utimens' module.
14765         Reported by Andreas Gruenbacher <agruen@suse.de>.
14766
14767 2010-04-27  Eric Blake  <eblake@redhat.com>
14768
14769         full-read, full-write: relax license
14770         * modules/full-read (License): Drop to LGPLv2+.
14771         * modules/full-write (License): Likewise.
14772         * modules/safe-read (License): Likewise.
14773         * modules/safe-write (License): Likewise.
14774
14775         pthread: mention library for linking
14776         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14777
14778 2010-04-27  Jim Meyering  <meyering@redhat.com>
14779
14780         maint.mk: fix a bug introduced in last change
14781         * top/maint.mk (gl_assured_headers_): Now that all names are on
14782         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14783         is not anchored to end of word, it should be adequate.
14784
14785         maint.mk: avoid side-effect in latest syntax-check
14786         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14787         to run commands via $(shell...), and hence to incur cost only when
14788         the new rule is actually run.
14789
14790         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14791         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14792         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14793         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14794         (gl_assured_headers_, az_, AZ_): Define.
14795         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14796
14797 2010-04-26  Jim Meyering  <jim@meyering.net>
14798             Bruno Haible  <bruno@clisp.org>
14799
14800         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14801         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14802         Prompted by an exchange with Gilles Espinasse.
14803
14804 2010-04-26  Jim Meyering  <meyering@redhat.com>
14805
14806         git-version-gen: aesthetic tweak
14807         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14808         so that the command remains on a single line.
14809
14810 2010-04-26  Eric Blake  <eblake@redhat.com>
14811
14812         git-version-gen: allow use on EBCDIC hosts
14813         * build-aux/git-version-gen (dirty): Use literal rather than tying
14814         ourselves to ascii.
14815         Reported by Steve Goetze.
14816
14817 2010-04-25  Bruno Haible  <bruno@clisp.org>
14818
14819         netdb: Add support for GNULIB_POSIXCHECK.
14820         * lib/netdb.in.h: Include warn-on-use.h.
14821         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14822         functions are used when GNULIB_POSIXCHECK is defined and the
14823         getaddrinfo module is not in use.
14824         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14825         freeaddrinfo, gai_strerror, getnameinfo are declared.
14826         * modules/netdb (Depends-on): Add warn-on-use.
14827         (Makefile.am): Include warn-on-use.h in netdb.h.
14828
14829 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14830
14831         build: avoid "make check" failure without .git/ directory
14832         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14833         there is no .git/ directory.
14834
14835 2010-04-25  Bruno Haible  <bruno@clisp.org>
14836
14837         ptsname: Fix misuse of ttyname_r.
14838         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14839         of errno.
14840
14841 2010-04-25  Bruno Haible  <bruno@clisp.org>
14842
14843         ttyname_r: Make it work on Solaris 10.
14844         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14845         if the system function has the POSIX declaration. Test whether the
14846         function fails if the buffer is less than 128 bytes large.
14847         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14848         system's ttyname_r function. Provide a reasonably large buffer.
14849         * modules/ttyname_r (Depends-on): Add extensions.
14850         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14851
14852 2010-04-25  Bruno Haible  <bruno@clisp.org>
14853
14854         Use the 'extensions' module for some more functions on Solaris.
14855         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14856         module.
14857         * doc/posix-functions/ctime_r.texi: Likewise.
14858         * doc/posix-functions/getgrgid_r.texi: Likewise.
14859         * doc/posix-functions/getgrnam_r.texi: Likewise.
14860         * doc/posix-functions/getpwnam_r.texi: Likewise.
14861         * doc/posix-functions/getpwuid_r.texi: Likewise.
14862         * doc/posix-functions/readdir_r.texi: Likewise.
14863         * doc/posix-functions/sigwait.texi: Likewise.
14864         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14865         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14866
14867 2010-04-25  Bruno Haible  <bruno@clisp.org>
14868
14869         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14870         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14871         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14872         * lib/ttyname_r.c: Include <limits.h>.
14873         (ttyname_r): Define using the system's ttyname_r function, if it exists
14874         and not on Solaris.
14875         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14876         set.
14877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14878         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14879         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14880         Reported by Simon Josefsson.
14881
14882 2010-04-25  Bruno Haible  <bruno@clisp.org>
14883
14884         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14885         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14886         * doc/posix-functions/ctime_r.texi: Likewise.
14887         * doc/posix-functions/getgrgid_r.texi: Likewise.
14888         * doc/posix-functions/getgrnam_r.texi: Likewise.
14889         * doc/posix-functions/getlogin_r.texi: Likewise.
14890         * doc/posix-functions/getpwnam_r.texi: Likewise.
14891         * doc/posix-functions/getpwuid_r.texi: Likewise.
14892         * doc/posix-functions/readdir_r.texi: Likewise.
14893         * doc/posix-functions/sigwait.texi: Likewise.
14894         * doc/posix-functions/ttyname_r.texi: Likewise.
14895         Reported by Simon Josefsson.
14896
14897 2010-04-25  Bruno Haible  <bruno@clisp.org>
14898
14899         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14900         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14901         also to --create-testdir.
14902         (func_acceptable): Don't consider the status of *-tests modules here.
14903         (func_modules_transitive_closure): Consider it here, before including a
14904         test module.
14905         (func_import, func_create_testdir): Set inc_all_direct_tests,
14906         inc_all_indirect_tests.
14907         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14908         --create-testdir and --create-megatestdir.
14909
14910 2010-04-25  Bruno Haible  <bruno@clisp.org>
14911
14912         gnulib-tool: Add --without-*-tests options.
14913         * gnulib-tool (func_usage): Document the --without-*-tests options.
14914         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14915         excl_unportable_tests): New variables.
14916         Fail if they are specified with --import or --update.
14917         (func_acceptable): Respect the excl_*_tests variables.
14918         (func_import): Set the excl_*_tests variables to empty.
14919
14920 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14921             Bruno Haible  <bruno@clisp.org>
14922
14923         Work around a MacOS X 10.4 bug with openpty.
14924         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14925         * tests/test-openpty.c (main): Close the master side explicitly.
14926
14927 2010-04-25  Bruno Haible  <bruno@clisp.org>
14928
14929         strnlen: Fix a C++ test error on MacOS X and Solaris.
14930         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14931         the function is not declared.
14932         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14933         Simon Josefsson.
14934
14935 2010-04-24  Bruno Haible  <bruno@clisp.org>
14936
14937         Avoid a gcc warning.
14938         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14939         of correct type for %08lx directive.
14940         Reported by Eric Blake.
14941
14942 2010-04-24  Bruno Haible  <bruno@clisp.org>
14943
14944         vasnprintf: Correct errno value in case of out-of-memory.
14945         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14946         or sprintf. Use the errno value from SNPRINTF or sprintf.
14947         Reported by Ian Beckwith <ianb@erislabs.net>.
14948
14949 2010-04-24  Bruno Haible  <bruno@clisp.org>
14950
14951         ansi-c++-opt: Find correct compiler when cross-compiling.
14952         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14953         AC_CHECK_PROGS.
14954         Reported by Simon Josefsson.
14955
14956 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14957
14958         vc-list-files: Add support for subversion
14959         * build-aux/vc-list-files: Use "svn list" to generate the list of
14960         files controlled by subversion.
14961
14962 2010-04-23  Jim Meyering  <meyering@redhat.com>
14963
14964         vc-list-files tests: convert to use init.sh
14965         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14966         path_prepend_.
14967         Use Exit, not exit.
14968         Use skip_ rather than open coding it.
14969         Remove trap set-up and compare definitions.
14970         * tests/test-vc-list-files-git.sh: Likewise.
14971         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14972
14973 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14974
14975         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14976         backup files.
14977
14978 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14979
14980         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14981
14982 2010-04-20  Eric Blake  <eblake@redhat.com>
14983
14984         tests: be robust to ignored SIGPIPE
14985         * tests/test-select-in.sh: Consume all output.
14986         * tests/test-lseek.sh: Check correct exit status, while avoiding
14987         EPIPE.
14988
14989 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14990             Bruno Haible  <bruno@clisp.org>
14991
14992         visibility: Don't use -fvisibility if it leads to a warning.
14993         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14994         yes, don't pretend that visibility works if it leads to a warning.
14995         Reported by Mike Gran <spk121@yahoo.com>.
14996
14997 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14998
14999         * build-aux/bootstrap: Use "git -h" for testing for supported options
15000         instead of "git --help".  The short-form option only shows a summary,
15001         and doesn't layout the full man page.  Grep for the full option name
15002         in the summary, too.
15003
15004 2010-04-19  Bruno Haible  <bruno@clisp.org>
15005
15006         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15007         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15008         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15009         mention of RELOCATABLE_STRIP.
15010         Reported by Sylvain Beucler <beuc@beuc.net>.
15011
15012 2010-04-19  Bruno Haible  <bruno@clisp.org>
15013
15014         * lib/diffseq.h: Fix typo in comment.
15015         Reported by Eric Blake.
15016
15017 2010-04-19  Bruno Haible  <bruno@clisp.org>
15018
15019         ioctl: Move autoconf macro to a .m4 file.
15020         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15021         * modules/ioctl (Files): Add it.
15022         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15023         Reported by Ian Beckwith <ianb@erislabs.net>.
15024
15025 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15026             Bruno Haible  <bruno@clisp.org>
15027
15028         diffseq: Accommodate use-case with abstract arrays.
15029         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15030         is not defined.
15031         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15032         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15033
15034 2010-04-18  Bruno Haible  <bruno@clisp.org>
15035
15036         * doc/posix-headers/stdbool.texi: More precise wording.
15037
15038 2010-04-17  Jim Meyering  <meyering@redhat.com>
15039
15040         maint.mk: use gnu-style indentation in an embedded perl script
15041         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15042         Rename variable: s/two/last_two_bytes/
15043
15044 2010-04-16  Eric Blake  <eblake@redhat.com>
15045
15046         test-stdbool: skip test that fails with Solaris CC
15047         * tests/test-stdbool.c (f): Skip test that causes compilation
15048         error under buggy C++ compiler.
15049         * lib/stdbool.in.h: Document the limitation.
15050         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15051
15052         setenv: allow compilation with C++
15053         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15054         register keyword.
15055
15056         stdint: allow test to pass with C++
15057         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15058
15059         getopt: allow compilation with C++
15060         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15061         struct.
15062         * lib/getopt.c (_getopt_internal_r): Use correct type.
15063         Reported by Dagobert Michelson, via Joel E. Denny.
15064
15065 2010-04-16  Bruno Haible  <bruno@clisp.org>
15066
15067         Override netdb.h always.
15068         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15069         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15070         Reported by Ludovic Courtès <ludo@gnu.org>.
15071
15072 2010-04-15  Bruno Haible  <bruno@clisp.org>
15073
15074         openpty: Fix mistake from 2010-03-21.
15075         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15076         Reported by Simon Josefsson.
15077
15078 2010-04-15  Eric Blake  <eblake@redhat.com>
15079
15080         test-forkpty: fix expected signature
15081         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15082         Reported by Simon Josefsson.
15083
15084 2010-04-15  Jim Meyering  <meyering@redhat.com>
15085
15086         maint.mk: texinfo_suffix_re_: correct the default regexp
15087         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15088
15089         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15090         make it configurable via texinfo_suffix_re_.
15091
15092 2010-04-14  Eric Blake  <eblake@redhat.com>
15093
15094         strtok_r: relax license to LGPLv2+
15095         * modules/strtok_r (License): Relax license.
15096         Reported by Matthias Bolte.
15097
15098 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15099
15100         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15101         version 1.4.4 by default instead of requiring the libgcrypt
15102         version used during build.  This makes it possible to use the
15103         application with older but still binary compatible libgcrypt
15104         versions.
15105
15106 2010-04-13  Eric Blake  <eblake@redhat.com>
15107
15108         getopt-gnu: match recent glibc fixes and posix ruling
15109         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15110         '+' handling, when requesting extensions.
15111         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15112         'W;' handling.
15113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15114         * doc/posix-functions/getopt.texi (getopt): Document this.
15115         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15116         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15117         Likewise.
15118
15119         getopt: merge bug fixes from glibc
15120         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15121         diagnostics.  Honor '+:' correctly.  Reject ';'.
15122
15123         getopt-posix: detect MacOS bug
15124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15125         optind when missing a required argument.
15126         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15127         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15128         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15129         Likewise.
15130
15131         getopt-posix: avoid spurious failure on Solaris
15132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15133         an indicator that setting optind=1 is sufficient for reset.
15134
15135         getopt-posix: avoid spurious failure on FreeBSD
15136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15137         in POSIX mode, since the m4 test uses it.
15138
15139         gnulib-tool: silence warning on BSD sh
15140         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15141
15142 2010-04-13  Jim Meyering  <meyering@redhat.com>
15143
15144         doc: users.txt: GNU patch now uses gnulib
15145         * users.txt: Add patch.
15146
15147 2010-04-12  Jim Meyering  <meyering@redhat.com>
15148
15149         maint.mk: generate more concise timing data for syntax-check rules
15150         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15151         " done" from each line that reports a syntax-check test duration.
15152
15153 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15154
15155         git-version-gen: use "git update-index..." rather than "git status"
15156         * build-aux/git-version-gen: Use git update-index --refresh, not
15157         "git status".  With some versions of git, "git status" would fail
15158         to update the index and result in an unwarranted "-dirty" suffix.
15159
15160 2010-04-11  Jim Meyering  <meyering@redhat.com>
15161
15162         openat: correct formatting (no semantic change)
15163         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15164         Suggested by Bruno Haible.
15165
15166 2010-04-11  Bruno Haible  <bruno@clisp.org>
15167
15168         Stricter declaration checking in testdirs.
15169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15170         If for_tests is true, augment AM_CPPFLAGS to define
15171         GNULIB_STRICT_CHECKING.
15172         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15173         GNULIB_STRICT_CHECKING is defined, verify that the function is
15174         declared.
15175
15176 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15177             Bruno Haible  <bruno@clisp.org>
15178
15179         libunistring: Improve configure output.
15180         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15181         Don't say "consider installing GNU libunistring" when checking again
15182         with libiconv.
15183
15184 2010-04-11  Bruno Haible  <bruno@clisp.org>
15185
15186         libunistring: Correct value of $LTLIBUNISTRING.
15187         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15188         correct the value of $LTLIBUNISTRING.
15189
15190 2010-04-11  Bruno Haible  <bruno@clisp.org>
15191
15192         havelib: Add static libraries to LIBS in the right order.
15193         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15194         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15195
15196 2010-04-11  Bruno Haible  <bruno@clisp.org>
15197
15198         libunistring: Detect libunistring also when it depends on libiconv.
15199         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15200         the second AC_LIB_HAVE_LINKFLAGS invocation.
15201
15202 2010-04-11  James Youngman  <jay@gnu.org>
15203
15204         close-stream: declare local scalars to be "const"
15205         * lib/close-stream.c (close_stream): Make boolean variables const
15206         to document the fact that we set but do not change them.
15207
15208 2010-04-11  Bruno Haible  <bruno@clisp.org>
15209
15210         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15211
15212 2010-04-11  Jim Meyering  <meyering@redhat.com>
15213
15214         maint.mk: don't include dist-check.mk
15215         * top/maint.mk: Remove bogus include directive.
15216
15217         maint.mk: improve empty-line-at-EOF check
15218         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15219         solution, rather than tail+Perl-based one.  The latter would read
15220         a few kilobytes from the end of each file, and did not handle empty
15221         files properly.
15222
15223         maint.mk: print the elapsed time for each syntax-check rule
15224         * top/maint.mk (sc_m_rules_): Save start time in a file.
15225         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15226         (local-check): Interpose the .z rules
15227
15228 2010-04-11  Jim Meyering  <meyering@redhat.com>
15229
15230         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15231         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15232         empty file with one that ends in an empty line.
15233
15234 2010-04-10  Bruno Haible  <bruno@clisp.org>
15235
15236         mkdir: Make it work on mingw64.
15237         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15238         * lib/mkdir.c: Update comment.
15239         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15240
15241 2010-04-10  Bruno Haible  <bruno@clisp.org>
15242
15243         Don't override improved macro from newer autoconf.
15244         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15245         autoconf >= 2.62.
15246         Reported by Joel E. Denny <jdenny@clemson.edu>.
15247
15248 2010-04-10  Jim Meyering  <meyering@redhat.com>
15249
15250         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15251         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15252
15253         maint.mk: correct a diagnostic
15254         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15255         in diagnostic; now use $prohibit.
15256
15257 2010-04-10  Bruno Haible  <address@hidden>
15258
15259         fchownat: Fix a C++ test error on Solaris 8.
15260         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15261         the function does not exist.
15262
15263 2010-04-10  Bruno Haible  <bruno@clisp.org>
15264
15265         vasnprintf: Add more tests.
15266         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15267         (test_function): Test converting an invalid wide string.
15268
15269         vasnprintf: Correct handling of unconvertible wide string arguments.
15270         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15271         VASNPRINTF.
15272         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15273         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15274         smaller than the expected maximum need for the directive. Set errno to
15275         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15276         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15278         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15279         * modules/vasnprintf (Files): Add m4/printf.m4.
15280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15281
15282 2010-04-10  Bruno Haible  <bruno@clisp.org>
15283
15284         vasnprintf: Fix crash in %ls directive.
15285         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15286         string is passed as argument to %ls, with no precision and no width.
15287         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15288
15289 2010-04-10  Bruno Haible  <bruno@clisp.org>
15290
15291         vasnprintf: Fix multiple test failures on mingw.
15292         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15293         _snprintf, or snwprintf, not _snwprintf.
15294
15295 2010-04-10  Bruno Haible  <bruno@clisp.org>
15296
15297         write: Fix a C++ test error on mingw.
15298         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15299
15300 2010-04-10  Bruno Haible  <bruno@clisp.org>
15301
15302         vasnprintf test: Reduce code duplication.
15303         * tests/test-vasnprintf.c (test_function): New function, extracted from
15304         test_vasnprintf.
15305         (test_vasnprintf, test_asnprintf): Invoke it.
15306
15307 2010-04-10  Bruno Haible  <bruno@clisp.org>
15308
15309         strnlen: Fix warning in C++ mode on MacOS X.
15310         * lib/string.in.h (strnlen): Use the modern idiom.
15311         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15312         defining strnlen as a macro already in <config.h>.
15313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15314         REPLACE_STRNLEN.
15315         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15316         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15317
15318 2010-04-08  James Youngman  <jay@gnu.org>
15319
15320         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15321         the example.
15322
15323 2010-04-09  Jim Meyering  <meyering@redhat.com>
15324
15325         maint.mk: print better diagnostic when there is no $(_hv_file)
15326         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15327         announce that when $(_hv_file) (aka help-version) does not exist.
15328
15329         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15330         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15331         not try to interpret its random input bytes.  Jarno Rajahalme reported
15332         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15333         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15334         (mktempd_): Likewise, just in case.
15335
15336         ftruncate: add two years to projected module removal date: 2012
15337         * m4/ftruncate.m4: Adjust comments.
15338
15339         ftruncate: mark module as obsolete; even MinGW provides it, now
15340         * modules/ftruncate (Status): Obsolete.
15341         (Notice): Say that.
15342         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15344
15345 2010-04-08  Bruno Haible  <bruno@clisp.org>
15346
15347         Fix side effects from tests-related modules.
15348         * modules/dprintf-posix (Comment): New section.
15349         * modules/fprintf-posix (Comment): Likewise.
15350         * modules/obstack-printf-posix (Comment): Likewise.
15351         * modules/printf-posix (Comment): Likewise.
15352         * modules/snprintf-posix (Comment): Likewise.
15353         * modules/sprintf-posix (Comment): Likewise.
15354         * modules/vasnprintf-posix (Comment): Likewise.
15355         * modules/vasprintf-posix (Comment): Likewise.
15356         * modules/vdprintf-posix (Comment): Likewise.
15357         * modules/vfprintf-posix (Comment): Likewise.
15358         * modules/vprintf-posix (Comment): Likewise.
15359         * modules/vsnprintf-posix (Comment): Likewise.
15360         * modules/vsprintf-posix (Comment): Likewise.
15361         * modules/xprintf-posix (Comment): Likewise.
15362         * modules/xvasprintf-posix (Comment): Likewise.
15363         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15364         * modules/floorf-tests (Depends-on): Likewise.
15365         * modules/round-tests (Depends-on): Likewise.
15366         * modules/roundf-tests (Depends-on): Likewise.
15367         * modules/trunc-tests (Depends-on): Likewise.
15368         * modules/truncf-tests (Depends-on): Likewise.
15369         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15370         'fprintf-posix' module is not present.
15371         * tests/test-floorf2.c (check): Likewise.
15372         * tests/test-trunc2.c (check): Likewise.
15373         * tests/test-truncf2.c (check): Likewise.
15374         * tests/test-round2.c (equal): Likewise.
15375         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15376
15377 2010-04-07  Karl Berry  <karl@gnu.org>
15378
15379         * config/srclist.txt,
15380         * config/srclistvars.sh,
15381         * config/srclist-update: doc fixes.
15382
15383 2010-04-07  Jim Meyering  <meyering@redhat.com>
15384
15385         maint.mk: add a PATH crosschecking syntax-check rule
15386         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15387         Useful if you use a test like the one in help-version (coreutils,
15388         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15389         printed by prog --version.
15390
15391 2010-04-06  Bruno Haible  <bruno@clisp.org>
15392
15393         Fix link error on mingw.
15394         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15395         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15396
15397 2010-04-06  Bruno Haible  <bruno@clisp.org>
15398
15399         Assume rmdir exists.
15400         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15401
15402 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15403
15404         doc: update users.txt
15405         * users.txt: Add gcal.
15406
15407 2010-04-06  Jim Meyering  <meyering@redhat.com>
15408
15409         init.sh: simply unset TMPDIR rather than risking env -i
15410         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15411         although it probably works fine on all Unix-based systems, some
15412         systems (Cygwin?) cannot tolerate a totally cleared environment.
15413         Suggestion from Eric Blake.
15414
15415 2010-04-06  Jim Meyering  <meyering@redhat.com>
15416
15417         init.sh: portability fix: use env's POSIX-specified -i option not -u
15418         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15419         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15420
15421 2010-04-05  Bruno Haible  <bruno@clisp.org>
15422
15423         btowc: Work around Cygwin 1.7.2 bug.
15424         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15425         does not map NUL to 0.
15426         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15427
15428 2010-04-05  Bruno Haible  <bruno@clisp.org>
15429
15430         Make the multithread modules work on Cygwin 1.7.2.
15431         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15432         imported symbols can be declared weak, so that it returns "no" on
15433         Cygwin 1.7.2.
15434
15435 2010-04-05  Bruno Haible  <bruno@clisp.org>
15436
15437         Use the module 'strncat'.
15438         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15439
15440         Tests for module 'strncat'.
15441         * modules/strncat-tests: New file.
15442         * tests/test-strncat.c: New file.
15443
15444         New module 'strncat'.
15445         * lib/string.in.h (strncat): New declaration.
15446         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15447         * m4/strncat.m4: New file, based on m4/memchr.m4.
15448         * modules/strncat: New file.
15449         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15450         is declared.
15451         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15452         REPLACE_STRNCAT.
15453         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15454         REPLACE_STRNCAT.
15455         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15456         module.
15457         * tests/test-string-c++.cc: Check signature of strncat.
15458
15459 2010-04-05  Jim Meyering  <meyering@redhat.com>
15460
15461         xstrtoumax-tests: convert to use init.sh
15462         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15463         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15464         Use Exit, not exit.
15465         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15466
15467         xstrtoimax-tests: convert to use init.sh
15468         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15469         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15470         Use Exit, not exit.
15471         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15472
15473 2010-04-05  Bruno Haible  <bruno@clisp.org>
15474
15475         sys_socket: Avoid #define replacements in C++ mode.
15476         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15477         warning to the function if possible, rather than #defining the symbol
15478         to a dysfunctional alias.
15479
15480 2010-04-05  Bruno Haible  <bruno@clisp.org>
15481
15482         fseeko: Fix C++ test error on mingw.
15483         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15484         gl_FUNC_FSEEKO.
15485         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15486         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15487         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15488         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15489
15490 2010-04-05  Bruno Haible  <bruno@clisp.org>
15491
15492         duplocale: Improve test output.
15493         * tests/test-duplocale.c (main): Print reason for skipped test.
15494
15495 2010-04-05  Bruno Haible  <bruno@clisp.org>
15496
15497         Assume rmdir exists.
15498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15499         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15500
15501 2010-04-05  Bruno Haible  <bruno@clisp.org>
15502
15503         Fix link error on Solaris 8 with cc.
15504         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15505
15506 2010-04-05  Bruno Haible  <bruno@clisp.org>
15507
15508         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15509         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15510
15511 2010-04-05  Bruno Haible  <bruno@clisp.org>
15512
15513         vasprintf: Update documentation.
15514         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15515
15516 2010-04-05  Bruno Haible  <bruno@clisp.org>
15517
15518         ptsname: Improve test.
15519         * tests/test-ptsname.c (main): Also try the various master names of BSD
15520         systems.
15521
15522 2010-04-05  Bruno Haible  <bruno@clisp.org>
15523
15524         memchr: Avoid a possible C++ test error.
15525         * lib/string.in.h (memchr): Provide declaration if function is missing.
15526         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15527         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15529         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15530
15531 2010-04-05  Bruno Haible  <bruno@clisp.org>
15532
15533         strtok_r: Improve idiom.
15534         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15535         AC_LIBOBJ is used.
15536
15537 2010-04-05  Bruno Haible  <bruno@clisp.org>
15538
15539         strdup: Improve idiom.
15540         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15541         AC_LIBOBJ is used.
15542         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15543         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15544         when AC_LIBOBJ is used.
15545
15546 2010-04-05  Bruno Haible  <bruno@clisp.org>
15547
15548         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15549         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15550         don't set REPLACE_MBSINIT to 1.
15551         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15552         don't set REPLACE_MBRTOWC to 1.
15553         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15554         exist, don't set REPLACE_MBSRTOWCS to 1.
15555         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15556         exist, don't set REPLACE_MBSNRTOWCS to 1.
15557         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15558         don't set REPLACE_WCRTOMB to 1.
15559         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15560         exist, don't set REPLACE_WCSRTOMBS to 1.
15561         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15562         exist, don't set REPLACE_WCSNRTOMBS to 1.
15563
15564 2010-04-05  Bruno Haible  <bruno@clisp.org>
15565
15566         ldexpl: Improve idiom.
15567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15568         make sure to set HAVE_DECL_LDEXPL to 0.
15569
15570 2010-04-05  Jim Meyering  <meyering@redhat.com>
15571
15572         xstrtol-tests: convert to use init.sh
15573         * modules/xstrtol-tests (Files): Add tests/init.sh.
15574         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15575         Use Exit, not exit.
15576         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15577
15578         atexit-tests: convert to use init.sh
15579         * modules/atexit-tests (Files): Add tests/init.sh.
15580         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15581         Use Exit, not exit.
15582         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15583
15584         init.sh: fix typo
15585         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15586
15587         init.sh: make it easier for a test script to write to the tty, ...
15588         when using automake's parallel-tests mode.
15589         * tests/init.sh (stderr_fileno_): Define overridable variable.
15590         (warn_): New function, to use it.
15591         (fail_, skip_, framework_failure_): Use warn_.
15592
15593 2010-04-04  Bruno Haible  <bruno@clisp.org>
15594
15595         btowc: Avoid warning.
15596         * lib/btowc.c: Include <stdlib.h>.
15597         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15598
15599 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15600             Bruno Haible  <bruno@clisp.org>
15601
15602         wchar: Port to NetBSD 1.5.
15603         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15604         * lib/wctype.in.h (WEOF): Likewise.
15605
15606 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15607             Bruno Haible  <bruno@clisp.org>
15608
15609         Port extended stdio to NetBSD 1.5.
15610         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15611         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15612         older.
15613
15614 2010-04-04  Bruno Haible  <bruno@clisp.org>
15615
15616         string: Remove unused substitution.
15617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15618         HAVE_DECL_STRERROR.
15619         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15620
15621 2010-04-04  Bruno Haible  <bruno@clisp.org>
15622
15623         strtod: Avoid a possible C++ test error.
15624         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15625         set REPLACE_STRTOD.
15626
15627 2010-04-04  Bruno Haible  <bruno@clisp.org>
15628
15629         strerror: Update documentation.
15630         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15631
15632 2010-04-04  Bruno Haible  <bruno@clisp.org>
15633
15634         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15635         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15636         _GL_CXXALIAS_SYS_CAST.
15637
15638 2010-04-04  Bruno Haible  <bruno@clisp.org>
15639
15640         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15641         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15642         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15643         REPLACE_FREXPL to 1.
15644         * doc/posix-functions/frexpl.texi: Update documentation.
15645
15646 2010-04-04  Bruno Haible  <bruno@clisp.org>
15647
15648         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15649         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15650
15651 2010-04-04  Bruno Haible  <bruno@clisp.org>
15652
15653         Implement nanosleep for native Windows.
15654         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15655
15656 2010-04-04  Bruno Haible  <bruno@clisp.org>
15657
15658         math: Fix some C++ test errors on Solaris 8.
15659         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15660
15661 2010-04-04  Bruno Haible  <bruno@clisp.org>
15662
15663         math: Fix some C++ test errors on Cygwin.
15664         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15665         truncl): Provide declaration if the system does not have it.
15666         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15667         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15668         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15669         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15670         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15671         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15672         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15673         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15674         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15675         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15676         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15677         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15678         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15679         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15680         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15681         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15683         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15684         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15685         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15686         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15687         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15688
15689 2010-04-04  Bruno Haible  <bruno@clisp.org>
15690
15691         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15692         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15693         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15694         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15695         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15696         * m4/isinf.m4 (gl_ISINF): Likewise.
15697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15698
15699 2010-04-04  Bruno Haible  <bruno@clisp.org>
15700
15701         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15702         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15703
15704 2010-04-04  Bruno Haible  <bruno@clisp.org>
15705
15706         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15707         * modules/tmpfile (configure.ac): Update.
15708
15709         tmpfile: Fix C++ test error on mingw.
15710         * lib/stdio.in.h (tmpfile): New declaration.
15711         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15712         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15713         * modules/tmpfile (Depends-on): Add stdio.
15714         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15715         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15716         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15717         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15718         REPLACE_TMPFILE.
15719         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15720
15721 2010-04-04  Bruno Haible  <bruno@clisp.org>
15722
15723         ioctl: Fix C++ test error on mingw.
15724         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15725         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15726         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15727
15728 2010-04-03  Bruno Haible  <bruno@clisp.org>
15729
15730         wcwidth: Fix C++ test error on mingw.
15731         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15733         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15734
15735 2010-04-03  Bruno Haible  <bruno@clisp.org>
15736
15737         nanosleep: Fix C++ test error on mingw.
15738         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15739         * lib/time.in.h (nanosleep): Use modern idiom.
15740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15741         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15742         REPLACE_NANOSLEEP to 1.
15743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15744         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15745
15746 2010-04-03  Bruno Haible  <bruno@clisp.org>
15747
15748         strptime: Fix C++ test error on mingw.
15749         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15750         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15751         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15752         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15754         not REPLACE_STRPTIME.
15755         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15756         REPLACE_STRPTIME.
15757
15758 2010-04-03  Bruno Haible  <bruno@clisp.org>
15759
15760         timegm: Fix C++ test error on mingw.
15761         * lib/time.in.h (timegm): Use modern idiom.
15762         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15763         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15764         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15765         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15766
15767 2010-04-03  Bruno Haible  <bruno@clisp.org>
15768
15769         timegm: Assume declaration if function exists.
15770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15771         if it exists. Don't clobber ac_cv_func_timegm.
15772
15773 2010-04-03  Bruno Haible  <bruno@clisp.org>
15774
15775         time_r: Fix C++ test error on mingw.
15776         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15777         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15778         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15780         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15781
15782 2010-04-03  Bruno Haible  <bruno@clisp.org>
15783
15784         time_r: Minor updates.
15785         * modules/time_r (Description): Mention the provided functions.
15786         * lib/time_r.c: Don't include <string.h>.
15787         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15788         * doc/posix-functions/localtime_r.texi: Likewise.
15789
15790 2010-04-03  Bruno Haible  <bruno@clisp.org>
15791
15792         time: Fix regression introduced on 2010-03-08.
15793         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15794         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15795
15796 2010-04-03  Jim Meyering  <meyering@redhat.com>
15797
15798         maint.mk: don't silently disable project-specific syntax-check rules
15799         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15800         that they need to convert their project-specific syntax-check rules
15801         to use the new _sc_search_regexp.
15802
15803 2010-04-03  Bruno Haible  <bruno@clisp.org>
15804
15805         fchdir: Fix regression introduced on 2010-03-08.
15806         * lib/unistd.in.h (fchdir): Fix declaration.
15807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15809         REPLACE_FCHDIR.
15810         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15811         REPLACE_FCHDIR.
15812
15813 2010-04-03  Bruno Haible  <bruno@clisp.org>
15814
15815         getpagesize: Fix C++ test error on mingw.
15816         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15817         system does not declare the function.
15818         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15819         declared.
15820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15821         HAVE_DECL_GETPAGESIZE.
15822         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15823
15824 2010-04-03  Bruno Haible  <bruno@clisp.org>
15825
15826         stdio: Make C++ tests work on mingw.
15827         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15828         does not declare the function.
15829
15830 2010-04-03  Bruno Haible  <bruno@clisp.org>
15831
15832         ftello: Fix C++ test error on mingw.
15833         * lib/stdio.in.h (ftello): Use modern idiom.
15834         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15835         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15836         is missing and that it needs to be replaced.
15837         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15839         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15840
15841 2010-04-03  Bruno Haible  <bruno@clisp.org>
15842
15843         fseeko: Fix C++ test error on mingw.
15844         * lib/stdio.in.h (fseeko): Use modern idiom.
15845         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15847         is missing and that it needs to be replaced.
15848         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15850         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15851
15852 2010-04-03  Bruno Haible  <bruno@clisp.org>
15853
15854         mkstemp: Fix C++ test error on mingw.
15855         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15856         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15857         function is missing and that it needs to be replaced.
15858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15859         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15860
15861 2010-04-03  Bruno Haible  <bruno@clisp.org>
15862
15863         stpncpy: Fix C++ test error on mingw.
15864         * lib/string.in.h (stpncpy): Use modern idiom.
15865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15866         function is missing and that it needs to be replaced.
15867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15868         REPLACE_STPNCPY.
15869         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15870
15871 2010-04-03  Bruno Haible  <bruno@clisp.org>
15872
15873         sys_stat: Fix C++ test error on mingw.
15874         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15875         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15876
15877 2010-04-03  Bruno Haible  <bruno@clisp.org>
15878
15879         pty: Update doc.
15880         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15881
15882 2010-04-03  Bruno Haible  <bruno@clisp.org>
15883
15884         unistd: Fix C++ test error on mingw.
15885         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15886
15887 2010-04-03  Bruno Haible  <bruno@clisp.org>
15888
15889         Update doc regarding mingw.
15890         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15891         * doc/glibc-functions/login_tty.texi: Likewise.
15892         * doc/glibc-functions/forkpty.texi: Likewise.
15893
15894 2010-04-03  Bruno Haible  <bruno@clisp.org>
15895
15896         stdlib: Avoid compilation failure of c-strtold on mingw.
15897         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15898
15899 2010-04-03  Bruno Haible  <bruno@clisp.org>
15900
15901         locale: Make C++ tests work on Cygwin and mingw.
15902         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15903         cannot provide the function.
15904         Reported by Simon Josefsson.
15905
15906 2010-04-03  Bruno Haible  <bruno@clisp.org>
15907
15908         localename: Port to MacOS X 10.6.
15909         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15910         memory layout of the locales in MacOS X 10.6 as well.
15911         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15912
15913 2010-04-02  Bruno Haible  <bruno@clisp.org>
15914
15915         gnulib-tool: Ensure that long-running tests are executed last.
15916         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15917         running tests after the one for the other tests.
15918
15919 2010-04-02  Bruno Haible  <bruno@clisp.org>
15920
15921         gnulib-tool: Ensure the tests in the main directory are executed first.
15922         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15923         start with the current directory.
15924
15925 2010-04-02  Bruno Haible  <bruno@clisp.org>
15926
15927         Tests for module 'havelib', moved here from GNU gettext.
15928         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15929         modifications.
15930         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15931         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15932         with modifications.
15933         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15934         modifications.
15935         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15936         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15937         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15938         with modifications.
15939         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15940         with modifications.
15941         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15942         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15943         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15944         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15945         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15946         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15947         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15948         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15949         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15950         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15951         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15952         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15953         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15954         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15955         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15956         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15957         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15958         with modifications.
15959         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15960         with modifications.
15961         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15962         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15963         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15964         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15965         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15966         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15967         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15968         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15969         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15970         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15971         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15972         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15973         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15974         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15975         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15976         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15977         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15978         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15979         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15980         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15981         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15982         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15983         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15984         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15985         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15986         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15987         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15988         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15989         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15990         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15991         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15992         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15993         * tests/havelib/rpathx/rpathx.c: New file, from
15994         gettext/autoconf-lib-link.
15995         * tests/havelib/rpathx/Makefile.am: New file, from
15996         gettext/autoconf-lib-link.
15997         * tests/havelib/rpathx/configure.ac: New file, from
15998         gettext/autoconf-lib-link with modifications.
15999         * tests/havelib/rpathy/rpathy.c: New file, from
16000         gettext/autoconf-lib-link.
16001         * tests/havelib/rpathy/Makefile.am: New file, from
16002         gettext/autoconf-lib-link.
16003         * tests/havelib/rpathy/configure.ac: New file, from
16004         gettext/autoconf-lib-link with modifications.
16005         * tests/havelib/rpathz/rpathz.c: New file, from
16006         gettext/autoconf-lib-link.
16007         * tests/havelib/rpathz/Makefile.am: New file, from
16008         gettext/autoconf-lib-link.
16009         * tests/havelib/rpathz/configure.ac: New file, from
16010         gettext/autoconf-lib-link with modifications.
16011         * tests/havelib/rpathlx/usex.c: New file, from
16012         gettext/autoconf-lib-link.
16013         * tests/havelib/rpathlx/Makefile.am: New file, from
16014         gettext/autoconf-lib-link.
16015         * tests/havelib/rpathlx/configure.ac: New file, from
16016         gettext/autoconf-lib-link with modifications.
16017         * tests/havelib/rpathly/usey.c: New file, from
16018         gettext/autoconf-lib-link.
16019         * tests/havelib/rpathly/Makefile.am: New file, from
16020         gettext/autoconf-lib-link.
16021         * tests/havelib/rpathly/configure.ac: New file, from
16022         gettext/autoconf-lib-link with modifications.
16023         * tests/havelib/rpathlz/usez.c: New file, from
16024         gettext/autoconf-lib-link.
16025         * tests/havelib/rpathlz/Makefile.am: New file, from
16026         gettext/autoconf-lib-link.
16027         * tests/havelib/rpathlz/configure.ac: New file, from
16028         gettext/autoconf-lib-link with modifications.
16029         * tests/havelib/rpathlyx/usey.c: New file, from
16030         gettext/autoconf-lib-link.
16031         * tests/havelib/rpathlyx/Makefile.am: New file, from
16032         gettext/autoconf-lib-link.
16033         * tests/havelib/rpathlyx/configure.ac: New file, from
16034         gettext/autoconf-lib-link with modifications.
16035         * tests/havelib/rpathlzyx/usez.c: New file, from
16036         gettext/autoconf-lib-link.
16037         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16038         gettext/autoconf-lib-link.
16039         * tests/havelib/rpathlzyx/configure.ac: New file, from
16040         gettext/autoconf-lib-link with modifications.
16041         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16042         with modifications.
16043
16044 2010-04-02  Bruno Haible  <bruno@clisp.org>
16045
16046         gnulib-tool: Create distributed built sources also for the tests.
16047         * gnulib-tool (func_create_testdir): Also generate distributed built
16048         sources in the tests directory.
16049
16050 2010-04-02  Bruno Haible  <bruno@clisp.org>
16051
16052         gnulib-tool: Obey user's environment variables.
16053         * gnulib-tool (func_create_testdir): When creating built sources,
16054         respect the environment variables for autoconf, automake, etc. given by
16055         the user.
16056
16057 2010-04-02  Bruno Haible  <bruno@clisp.org>
16058
16059         gnulib-tool: Provide the value of --m4-base to modules.
16060         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16061         of gl_m4_base.
16062
16063 2010-04-02  Eric Blake  <eblake@redhat.com>
16064
16065         maint.mk: fix some fallout
16066         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16067         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16068
16069 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16070
16071         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16072         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16073         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16074         (sc_cast_of_x_alloc_return_value): Likewise.
16075         (sc_cast_of_alloca_return_value): Likewise.
16076         (sc_space_tab): Likewise.
16077         (sc_prohibit_atoi_atof): Likewise.
16078         (sc_prohibit_magic_number_exit): Likewise.
16079         (sc_error_exit_success): Likewise.
16080         (sc_file_system): Likewise.
16081         (sc_prohibit_have_config_h): Likewise.
16082         (sc_require_config_h): Likewise.
16083         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16084         (sc_obsolete_symbols): Likewise.
16085         (sc_changelog): Likewise.
16086         (sc_program_name): Likewise.
16087         (sc_the_the): Likewise.
16088         (sc_trailing_blank): Likewise.
16089         (sc_two_space_separator_in_usage): Likewise.
16090         (sc_useless_cpp_parens): Likewise.
16091         (sc_GPL_version): Likewise.
16092         (sc_GFDL_version): Likewise.
16093         (sc_texinfo_acronym): Likewise.
16094         (sc_prohibit_cvs_keyword): Likewise.
16095         (sc_prohibit_stat_st_blocks): Likewise.
16096         (sc_prohibit_S_IS_definition): Likewise.
16097         (sc_redundant_const): Likewise.
16098         (sc_makefile_TAB_only_indentation): Likewise.
16099         (sc_m4_quote_check): Likewise.
16100         (sc_makefile_path_separator_check): Likewise.
16101         (sc_copyright_check): Likewise.
16102         (sc_Wundef_boolean): Likewise.
16103         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16104
16105         maint.mk: match 0 or more whitespace-before-function-call '('
16106         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16107         that have zero or two-and-more spaces between the function name
16108         and the open parenthesis.
16109         (sc_error_message_warn_fatal): Likewise.
16110         (sc_error_message_uppercase): Likewise.
16111         (sc_error_message_period): Likewise.
16112
16113 2010-03-31  Eric Blake  <eblake@redhat.com>
16114
16115         maint.mk: check for [ as well as test
16116         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16117         Based on a libvirt report by Matthias Bolte.
16118
16119         gnumakefile: don't squelch _version output
16120         * top/GNUmakefile (_version): Create one-shot dependency rather
16121         than using $(shell) when version must be regenerated.
16122         (_autoreconf): Run verbosely, by default.
16123
16124         sys_time: avoid compiler warnings
16125         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16126         unconditional, fixing regression from 2010-03-29.
16127         Reported by Simon Josefsson.
16128
16129 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16130
16131         maint.mk: s/_header_without_use/_sc_header_without_use/
16132         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16133         (sc_prohibit_assert_without_use): Use the new name.
16134         (sc_prohibit_close_stream_without_use): Likewise.
16135         (sc_prohibit_getopt_without_use): Likewise.
16136         (sc_prohibit_quotearg_without_use): Likewise.
16137         (sc_prohibit_quote_without_use): Likewise.
16138         (sc_prohibit_long_options_without_use): Likewise.
16139         (sc_prohibit_inttostr_without_use): Likewise.
16140         (sc_prohibit_ignore_value_without_use): Likewise.
16141         (sc_prohibit_error_without_use): Likewise.
16142         (sc_prohibit_xalloc_without_use): Likewise.
16143         (sc_prohibit_hash_without_use): Likewise.
16144         (sc_prohibit_hash_pjw_without_use): Likewise.
16145         (sc_prohibit_safe_read_without_use): Likewise.
16146         (sc_prohibit_argmatch_without_use): Likewise.
16147         (sc_prohibit_canonicalize_without_use): Likewise.
16148         (sc_prohibit_root_dev_ino_without_use): Likewise.
16149         (sc_prohibit_openat_without_use): Likewise.
16150         (sc_prohibit_c_ctype_without_use): Likewise.
16151         (sc_prohibit_signal_without_use): Likewise.
16152         (sc_prohibit_intprops_without_use): Likewise.
16153
16154 2010-03-30  Eric Blake  <eblake@redhat.com>
16155
16156         maint: improve module indicators
16157         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16158         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16159         columns, and avoid extra macro expansion.
16160
16161         fdopendir: work around FreeBSD bug
16162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16164         * modules/dirent (Makefile.am): Substitute it.
16165         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16166         declaration.
16167         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16168         fix.
16169         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16170
16171 2010-03-29  Bruno Haible  <bruno@clisp.org>
16172
16173         Emit #pragma system_header after the inclusion guard, not before.
16174         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16175         guard that spans the entire file, not before. This enables an
16176         optimization in GCC's preprocessor.
16177         * lib/ctype.in.h: Likewise.
16178         * lib/dirent.in.h: Likewise.
16179         * lib/errno.in.h: Likewise.
16180         * lib/float.in.h: Likewise.
16181         * lib/getopt.in.h: Likewise.
16182         * lib/iconv.in.h: Likewise.
16183         * lib/langinfo.in.h: Likewise.
16184         * lib/locale.in.h: Likewise.
16185         * lib/math.in.h: Likewise.
16186         * lib/netdb.in.h: Likewise.
16187         * lib/netinet_in.in.h: Likewise.
16188         * lib/pty.in.h: Likewise.
16189         * lib/sched.in.h: Likewise.
16190         * lib/se-selinux.in.h: Likewise.
16191         * lib/search.in.h: Likewise.
16192         * lib/spawn.in.h: Likewise.
16193         * lib/stdarg.in.h: Likewise.
16194         * lib/stdint.in.h: Likewise.
16195         * lib/string.in.h: Likewise.
16196         * lib/strings.in.h: Likewise.
16197         * lib/sys_file.in.h: Likewise.
16198         * lib/sys_ioctl.in.h: Likewise.
16199         * lib/sys_time.in.h: Likewise.
16200         * lib/sys_times.in.h: Likewise.
16201         * lib/sys_utsname.in.h: Likewise.
16202         * lib/sys_wait.in.h: Likewise.
16203         * lib/sysexits.in.h: Likewise.
16204         * lib/wctype.in.h: Likewise.
16205
16206 2010-03-28  James Youngman  <jay@gnu.org>
16207
16208         save-cwd: don't leak a file descriptor when the caller execs.
16209         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16210         saved file descriptor.
16211         * modules/save-cwd (Depends-on): Depend on cloexec.
16212
16213 2010-03-29  Bruno Haible  <bruno@clisp.org>
16214
16215         Remove vestiges of fts-lgpl module.
16216         * lib/fts_.h: Assume GNULIB_FTS is 1.
16217         * lib/fts.c: Likewise.
16218         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16219
16220 2010-03-28  Bruno Haible  <bruno@clisp.org>
16221
16222         Fix definition of tests witness macro.
16223         * gnulib-tool (func_import): Fix definition of witness macro.
16224
16225 2010-03-28  Bruno Haible  <bruno@clisp.org>
16226
16227         Fix ioctl's protoype on glibc systems.
16228         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16229         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16230         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16231         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16232         signature. If not, arrange to replace the ioctl function.
16233         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16234         REPLACE_IOCTL.
16235         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16236         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16237         Reported by Ludovic Courtès <ludo@gnu.org>.
16238
16239 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16240
16241         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16242         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16243         made it so grep -r --include=GLOB* ... did not work.
16244
16245 2010-03-26  Jim Meyering  <meyering@redhat.com>
16246             Eric Blake  <eblake@redhat.com>
16247
16248         maint.mk: prohibit use of test's -o and -a operators
16249         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16250
16251 2010-03-28  Bruno Haible  <bruno@clisp.org>
16252
16253         Remove unused GNULIB_XYZ macro definitions.
16254         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16255         invocation.
16256
16257 2010-03-28  Bruno Haible  <bruno@clisp.org>
16258
16259         Mark privileged tests modules.
16260         * modules/idpriv-drop-tests (Status): New section.
16261         * modules/idpriv-droptemp-tests (Status): New section.
16262
16263 2010-03-28  Bruno Haible  <bruno@clisp.org>
16264
16265         Split C++ tests into separate tests modules.
16266         * modules/dirent-c++-tests: New file, extracted from
16267         modules/dirent-tests.
16268         * modules/dirent-tests: Depend on it.
16269         * modules/fcntl-h-c++-tests: New file, extracted from
16270         modules/fcntl-h-tests.
16271         * modules/fcntl-h-tests: Depend on it.
16272         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16273         * modules/glob-tests: Depend on it.
16274         * modules/iconv-h-c++-tests: New file, extracted from
16275         modules/iconv-h-tests.
16276         * modules/iconv-h-tests: Depend on it.
16277         * modules/langinfo-c++-tests: New file, extracted from
16278         modules/langinfo-tests.
16279         * modules/langinfo-tests: Depend on it.
16280         * modules/locale-c++-tests: New file, extracted from
16281         modules/locale-tests.
16282         * modules/locale-tests: Depend on it.
16283         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16284         * modules/math-tests: Depend on it.
16285         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16286         * modules/pty-tests: Depend on it.
16287         * modules/search-c++-tests: New file, extracted from
16288         modules/search-tests.
16289         * modules/search-tests: Depend on it.
16290         * modules/signal-c++-tests: New file, extracted from
16291         modules/signal-tests.
16292         * modules/signal-tests: Depend on it.
16293         * modules/spawn-c++-tests: New file, extracted from
16294         modules/spawn-tests.
16295         * modules/spawn-tests: Depend on it.
16296         * modules/stdio-c++-tests: New file, extracted from
16297         modules/stdio-tests.
16298         * modules/stdio-tests: Depend on it.
16299         * modules/stdlib-c++-tests: New file, extracted from
16300         modules/stdlib-tests.
16301         * modules/stdlib-tests: Depend on it.
16302         * modules/string-c++-tests: New file, extracted from
16303         modules/string-tests.
16304         * modules/string-tests: Depend on it.
16305         * modules/sys_ioctl-c++-tests: New file, extracted from
16306         modules/sys_ioctl-tests.
16307         * modules/sys_ioctl-tests: Depend on it.
16308         * modules/sys_select-c++-tests: New file, extracted from
16309         modules/sys_select-tests.
16310         * modules/sys_select-tests: Depend on it.
16311         * modules/sys_socket-c++-tests: New file, extracted from
16312         modules/sys_socket-tests.
16313         * modules/sys_socket-tests: Depend on it.
16314         * modules/sys_stat-c++-tests: New file, extracted from
16315         modules/sys_stat-tests.
16316         * modules/sys_stat-tests: Depend on it.
16317         * modules/sys_time-c++-tests: New file, extracted from
16318         modules/sys_time-tests.
16319         * modules/sys_time-tests: Depend on it.
16320         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16321         * modules/time-tests: Depend on it.
16322         * modules/unistd-c++-tests: New file, extracted from
16323         modules/unistd-tests.
16324         * modules/unistd-tests: Depend on it.
16325         * modules/wchar-c++-tests: New file, extracted from
16326         modules/wchar-tests.
16327         * modules/wchar-tests: Depend on it.
16328         * modules/wctype-c++-tests: New file, extracted from
16329         modules/wctype-tests.
16330         * modules/wctype-tests: Depend on it.
16331         Reported by Simon Josefsson.
16332
16333 2010-03-28  Bruno Haible  <bruno@clisp.org>
16334
16335         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16336         * gnulib-tool (func_exists_module): New function, extracted from
16337         func_verify_module.
16338         (func_verify_module): Use it.
16339         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16340         'foo' only if 'foo' exists.
16341         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16342         module.
16343
16344 2010-03-28  Bruno Haible  <bruno@clisp.org>
16345
16346         gnulib-tool: Add support for special categories of tests.
16347         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16348         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16349         (func_usage): Document them.
16350         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16351         inc_unportable_tests, inc_all_tests): New variables.
16352         (func_acceptable): Consider these variables.
16353         (func_modules_transitive_closure): Make it work when the 'Status' field
16354         consists of multiple words.
16355         (func_import): Store and restore the values of inc_cxx_tests,
16356         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16357         inc_all_tests in gnulib-comp.m4.
16358         (func_create_testdir): Set inc_all_tests to true.
16359         * doc/gnulib.texi (Extra tests modules): New section.
16360         Suggested by Jim Meyering.
16361
16362 2010-03-28  Bruno Haible  <bruno@clisp.org>
16363
16364         ansi-c++-opt: Allow turning off the C++ build by default.
16365         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16366         gl_CXX_CHOICE_DEFAULT_NO is defined.
16367         Requested by Eric Blake.
16368
16369 2010-03-28  Bruno Haible  <bruno@clisp.org>
16370
16371         unistd: Avoid #define replacements in C++ mode.
16372         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16373         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16374         setsockopt, shutdown, select): In C++, attach a warning to the function
16375         if possible, rather than #defining the symbol to a dysfunctional alias.
16376         Reported by John W. Eaton <jwe@gnu.org>.
16377
16378 2010-03-28  Bruno Haible  <bruno@clisp.org>
16379
16380         Fix link errors on mingw.
16381         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16382         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16383         $(LIBSOCKET).
16384         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16385         $(LIBSOCKET).
16386
16387 2010-03-28  Bruno Haible  <bruno@clisp.org>
16388             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16389
16390         lib-ignore: Determine different options for different compilers.
16391         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16392         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16393         Add comments.
16394         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16395         * NEWS: Mention the change.
16396
16397 2010-03-27  Bruno Haible  <bruno@clisp.org>
16398
16399         Remove unused GNULIB_XYZ macro definitions.
16400         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16401         * modules/fseek (configure.ac): Likewise.
16402         * modules/ioctl (configure.ac): Likewise.
16403         * modules/open (configure.ac): Likewise.
16404         * modules/stdlib-safer (configure.ac): Likewise.
16405
16406 2010-03-27  Bruno Haible  <bruno@clisp.org>
16407
16408         Add a remark about certain modules.
16409         * modules/malloc (Comment): New section.
16410         * modules/realloc (Comment): Likewise.
16411         * modules/sigpipe (Comment): Likewise.
16412
16413 2010-03-27  Bruno Haible  <bruno@clisp.org>
16414
16415         Resolve conflict between the two kinds of module indicators.
16416         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16417         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16418         * modules/canonicalize (configure.ac): Invoke
16419         gl_MODULE_INDICATOR_FOR_TESTS.
16420         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16421         GNULIB_XYZ.
16422         * tests/test-dirent-c++.cc: Likewise.
16423         * tests/test-dirent-safer.c: Likewise.
16424         * tests/test-dup2.c: Likewise.
16425         * tests/test-fchdir.c: Likewise.
16426         * tests/test-fcntl-h-c++.cc: Likewise.
16427         * tests/test-getopt.c: Likewise.
16428         * tests/test-getopt.h: Likewise.
16429         * tests/test-langinfo-c++.cc: Likewise.
16430         * tests/test-locale-c++.cc: Likewise.
16431         * tests/test-math-c++.cc: Likewise.
16432         * tests/test-pty-c++.cc: Likewise.
16433         * tests/test-search-c++.cc: Likewise.
16434         * tests/test-signal-c++.cc: Likewise.
16435         * tests/test-spawn-c++.cc: Likewise.
16436         * tests/test-stdio-c++.cc: Likewise.
16437         * tests/test-stdlib-c++.cc: Likewise.
16438         * tests/test-string-c++.cc: Likewise.
16439         * tests/test-sys_ioctl-c++.cc: Likewise.
16440         * tests/test-sys_select-c++.cc: Likewise.
16441         * tests/test-sys_socket-c++.cc: Likewise.
16442         * tests/test-sys_stat-c++.cc: Likewise.
16443         * tests/test-sys_time-c++.cc: Likewise.
16444         * tests/test-time-c++.cc: Likewise.
16445         * tests/test-unistd-c++.cc: Likewise.
16446         * tests/test-wchar-c++.cc: Likewise.
16447         * tests/uninorm/test-u8-nfc.c: Likewise.
16448         * tests/uninorm/test-u8-nfd.c: Likewise.
16449         * tests/uninorm/test-u8-nfkc.c: Likewise.
16450         * tests/uninorm/test-u8-nfkd.c: Likewise.
16451         * tests/uninorm/test-u16-nfc.c: Likewise.
16452         * tests/uninorm/test-u16-nfd.c: Likewise.
16453         * tests/uninorm/test-u16-nfkc.c: Likewise.
16454         * tests/uninorm/test-u16-nfkd.c: Likewise.
16455         * tests/uninorm/test-u32-nfc.c: Likewise.
16456         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16457         * tests/uninorm/test-u32-nfd.c: Likewise.
16458         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16459         * tests/uninorm/test-u32-nfkc.c: Likewise.
16460         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16461         * tests/uninorm/test-u32-nfkd.c: Likewise.
16462         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16463         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16464
16465 2010-03-27  Bruno Haible  <bruno@clisp.org>
16466
16467         Distinguish two kinds of module indicators.
16468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16469         gl_MODULE_INDICATOR.
16470         (gl_MODULE_INDICATOR): New macro.
16471         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16472         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16473         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16474         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16475         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16476         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16477         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16478         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16479         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16480         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16481         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16482         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16484         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16485         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16486         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16487         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16488         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16489         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16490         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16491         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16492         * modules/cloexec (configure.ac): Likewise.
16493         * modules/getopt-gnu (configure.ac): Likewise.
16494         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16495         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16496         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16497         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16498
16499 2010-03-27  Bruno Haible  <bruno@clisp.org>
16500
16501         New module description field 'Comment'.
16502         * gnulib-tool: New option --extract-comment.
16503         (func_usage): Document it.
16504         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16505         (func_get_comment): New function.
16506         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16507
16508 2010-03-27  Bruno Haible  <bruno@clisp.org>
16509
16510         Addendum to 2010-02-07 commit.
16511         * gnulib-tool (func_usage): Document --extract-applicability option.
16512
16513 2010-03-27  Bruno Haible  <bruno@clisp.org>
16514
16515         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16516         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16517         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16518         rather than link errors.
16519
16520 2010-03-27  Bruno Haible  <bruno@clisp.org>
16521
16522         Avoid side effects from tests-related modules on the compilation of lib.
16523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16524         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16525         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16526         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16527         macro.
16528         (func_import): Define a witness macro. Assign it a value that depends
16529         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16530         tests-related modules.
16531         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16532         Reported by Jim Meyering.
16533
16534 2010-03-27  Bruno Haible  <bruno@clisp.org>
16535
16536         Factorize common .m4 code.
16537         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16538         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16539         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16540         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16541         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16542         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16543         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16544         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16545         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16546         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16547         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16548         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16549         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16550         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16551         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16552         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16553         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16554         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16556         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16557         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16558         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16559         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16560         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16561         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16562         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16563         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16565         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16566         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16567         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16568         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16569
16570 2010-03-27  Bruno Haible  <bruno@clisp.org>
16571
16572         Fix a compilation error on Cygwin with g++ >= 4.3.
16573         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16574         if it is undefined or if we alias it to chmod.
16575         (lstat): Don't warn about the use of this function if it is undefined
16576         or if we alias it to stat.
16577         Reported by Simon Josefsson.
16578
16579 2010-03-27  Bruno Haible  <bruno@clisp.org>
16580
16581         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16582         * modules/getlogin (configure.ac): Update.
16583
16584         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16585         * modules/getlogin_r (configure.ac): Update.
16586
16587         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16589         * modules/inet_ntop (configure.ac): Update.
16590
16591         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16592         * modules/inet_pton (configure.ac): Update.
16593
16594         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16595         * modules/mbslen (configure.ac): Update.
16596
16597         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16598         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16599         * modules/forkpty (configure.ac): Update.
16600         * modules/openpty (configure.ac): Update.
16601
16602 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16603
16604         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16605         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16606
16607 2010-03-25  Eric Blake  <eblake@redhat.com>
16608
16609         maint: use pragma consistently across replacement headers
16610         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16611         * lib/dirent.in.h (system_header): Likewise.
16612         * lib/errno.in.h (system_header): Likewise.
16613         * lib/float.in.h (system_header): Likewise.
16614         * lib/getopt.in.h (system_header): Likewise.
16615         * lib/iconv.in.h (system_header): Likewise.
16616         * lib/inttypes.in.h (system_header): Likewise.
16617         * lib/langinfo.in.h (system_header): Likewise.
16618         * lib/locale.in.h (system_header): Likewise.
16619         * lib/math.in.h (system_header): Likewise.
16620         * lib/netdb.in.h (system_header): Likewise.
16621         * lib/netinet_in.in.h (system_header): Likewise.
16622         * lib/pty.in.h (system_header): Likewise.
16623         * lib/sched.in.h (system_header): Likewise.
16624         * lib/se-selinux.in.h (system_header): Likewise.
16625         * lib/search.in.h (system_header): Likewise.
16626         * lib/spawn.in.h (system_header): Likewise.
16627         * lib/stdarg.in.h (system_header): Likewise.
16628         * lib/stdint.in.h (system_header): Likewise.
16629         * lib/string.in.h (system_header): Likewise.
16630         * lib/strings.in.h (system_header): Likewise.
16631         * lib/sys_file.in.h (system_header): Likewise.
16632         * lib/sys_ioctl.in.h (system_header): Likewise.
16633         * lib/sys_socket.in.h (system_header): Likewise.
16634         * lib/sys_times.in.h (system_header): Likewise.
16635         * lib/sys_utsname.in.h (system_header): Likewise.
16636         * lib/sys_wait.in.h (system_header): Likewise.
16637         * lib/sysexits.in.h (system_header): Likewise.
16638         * lib/unistd.in.h (system_header): Likewise.
16639         * lib/wctype.in.h (system_header): Likewise.
16640
16641         arpa/inet: fix mingw compilation warning
16642         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16643         Reported by Matthew Bolte.
16644
16645 2010-03-25  Bruno Haible  <bruno@clisp.org>
16646
16647         Avoid collision between gnulib wrapper and libintl wrapper.
16648         * lib/printf.c (printf): Don't define if a printf wrapper is already
16649         defined in intl/printf.c.
16650         Reported by Michel Boaventura <michel@michelboaventura.com>.
16651
16652 2010-03-25  Bruno Haible  <bruno@clisp.org>
16653
16654         Use ANSI C.
16655         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16656
16657 2010-03-25  Bruno Haible  <bruno@clisp.org>
16658
16659         Minor formatting changes.
16660         * lib/acosl.c: Insert space before function argument list.
16661         * lib/argz.c: Likewise.
16662         * lib/asinl.c: Likewise.
16663         * lib/expl.c: Likewise.
16664         * lib/gen-uni-tables.c: Likewise.
16665         * lib/gettext.h: Likewise.
16666         * lib/glthread/lock.h: Likewise.
16667         * lib/tanl.c: Likewise.
16668         * lib/uniname/uniname.c: Likewise.
16669         * tests/test-idpriv-drop.c: Likewise.
16670         * tests/test-idpriv-droptemp.c: Likewise.
16671         * tests/test-lock.c: Likewise.
16672         * tests/test-tls.c: Likewise.
16673         * lib/argp-help.c: Insert space before function-like macro argument
16674         list.
16675         * lib/memcmp.c: Likewise.
16676         * tests/test-base64.c: Likewise.
16677         * lib/localename.c: Insert space before sizeof's argument list.
16678         * lib/safe-alloc.h: Likewise.
16679         * lib/file-set.h: Insert space before macro argument list.
16680         * tests/test-argp.c: Likewise.
16681         * lib/argp-namefrob.h: Insert space before function parameter list.
16682         * lib/getaddrinfo.c: Likewise.
16683         * lib/netdb.in.h: Likewise.
16684         * lib/parse-duration.h: Likewise.
16685         * lib/parse-duration.c: Likewise.
16686         * lib/poll.c: Likewise.
16687         * lib/select.c: Likewise.
16688         * lib/trim.h: Likewise.
16689         * tests/test-usleep.c: Likewise.
16690         * lib/ldexpl.c: Insert space before function parameter list and before
16691         function argument list.
16692         * lib/logl.c: Likewise.
16693         * lib/sqrtl.c: Likewise.
16694         * lib/trim.c: Likewise.
16695         * lib/cosl.c: Use GNU style indentation. Insert space before function
16696         argument list.
16697         * lib/sinl.c: Likewise.
16698         * lib/tsearch.c: Insert space after 'for'.
16699         Reported by Jim Meyering.
16700
16701 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16702
16703         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16704         config header before grepping, as it's not present before
16705         autoreconf/configure are run.  Reported by Simon Josefsson.
16706
16707 2010-03-23  Bruno Haible  <bruno@clisp.org>
16708
16709         pt_chown: Make it work with automake < 1.11.
16710         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16711         Reported by Simon Josefsson.
16712
16713 2010-03-23  Bruno Haible  <bruno@clisp.org>
16714
16715         pt_chown: Don't depend on GPLed modules.
16716         * lib/pt_chown.c: Don't include idpriv.h.
16717         (main): Don't drop privileges.
16718         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16719         Reported by Simon Josefsson.
16720
16721 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16722
16723         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16724         suggestions from karl@freefriends.org (Karl Berry).
16725
16726 2010-03-22  Eric Blake  <eblake@redhat.com>
16727
16728         gethostname: further tweaks
16729         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16730         are overriding gethostname.
16731         Suggested by Bruno Haible.
16732
16733 2010-03-21  Bruno Haible  <bruno@clisp.org>
16734
16735         Fix comments.
16736         * lib/forkpty.c (rpl_forkpty): Fix comment.
16737         * lib/openpty.c (rpl_openpty): Likewise.
16738         Reported by Eric Blake.
16739
16740 2010-03-22  Eric Blake  <eblake@redhat.com>
16741
16742         gethostname: fix build on mingw
16743         * lib/unistd.in.h (includes): Work around fact that mingw
16744         <winsock2.h> re-includes <unistd.h>, by avoiding any
16745         redeclarations if we are being included by <winsock2.h>.
16746         Reported by Matthias Bolte.
16747
16748 2010-03-21  Bruno Haible  <bruno@clisp.org>
16749
16750         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16751         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16752         modifications.
16753         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16754         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16755         provide the replacement.
16756         * modules/forkpty (Depends-on): Add openpty, login_tty.
16757         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16758         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16759         * doc/glibc-functions/forkpty.texi: More supported platforms.
16760         * config/srclist.txt: Add forkpty.c (commented).
16761
16762 2010-03-21  Bruno Haible  <bruno@clisp.org>
16763
16764         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16765         (Makefile.am): Verify that PTY_LIB is defined.
16766
16767         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16768
16769 2010-03-21  Bruno Haible  <bruno@clisp.org>
16770
16771         Tests for module 'login_tty'.
16772         * modules/login_tty-tests: New file.
16773         * tests/test-login_tty.c: New file.
16774
16775         New module 'login_tty'.
16776         * lib/login_tty.c: New file.
16777         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16778         * modules/login_tty: New file.
16779         * doc/glibc-functions/login_tty.texi: Mention the new module.
16780
16781 2010-03-21  Bruno Haible  <bruno@clisp.org>
16782
16783         login_tty: Documentation.
16784         * doc/glibc-functions/login_tty.texi: New file.
16785         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16786
16787 2010-03-21  Bruno Haible  <bruno@clisp.org>
16788
16789         pty: Consistent macro naming.
16790         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16791         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16792         * modules/pty (configure.ac): Update.
16793
16794 2010-03-21  Bruno Haible  <bruno@clisp.org>
16795
16796         Tests for openpty: Make stricter.
16797         * tests/test-openpty.c (main): Add test of canonical processing and
16798         erase.
16799         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16800
16801         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16802         * lib/openpty.c (openpty): New replacement function.
16803         * lib/pty.in.h: Include <termios.h>.
16804         (openpty): Update declaration. Add comments.
16805         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16806         is not declared, arrange to provide the replacement. Check for _getpty
16807         and posix_openpt.
16808         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16809         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16810         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16811         * modules/pty-tests (test_pty_c___LDADD): New variable.
16812         * doc/glibc-functions/openpty.texi: More supported platforms.
16813
16814 2010-03-21  Bruno Haible  <bruno@clisp.org>
16815
16816         setenv: Tweaks.
16817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16818         the test program.
16819         * doc/posix-functions/setenv.texi: Update platforms list.
16820
16821 2010-03-21  Bruno Haible  <bruno@clisp.org>
16822
16823         New module 'unlockpt'.
16824         * lib/unlockpt.c: New file, from glibc with modifications.
16825         * m4/unlockpt.m4: New file.
16826         * modules/unlockpt: New file.
16827         * lib/stdlib.in.h (unlockpt): New declaration.
16828         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16829         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16830         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16831         HAVE_UNLOCKPT.
16832         * doc/posix-functions/unlockpt.texi: Mention the new module.
16833         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16834         * config/srclist.txt: Add unlockpt.c (commented).
16835
16836 2010-03-21  Jim Meyering  <meyering@redhat.com>
16837
16838         maint.mk: prohibit inclusion of "intprops.h" without use
16839         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16840
16841 2010-03-21  Bruno Haible  <bruno@clisp.org>
16842
16843         New module 'grantpt'.
16844         * lib/grantpt.c: New file, from glibc with modifications.
16845         * m4/grantpt.m4: New file.
16846         * modules/grantpt: New file.
16847         * lib/stdlib.in.h (grantpt): New declaration.
16848         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16849         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16850         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16851         HAVE_GRANTPT.
16852         * doc/posix-functions/grantpt.texi: Mention the new module.
16853         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16854         * config/srclist.txt: Add grantpt.c (commented).
16855
16856 2010-03-21  Bruno Haible  <bruno@clisp.org>
16857
16858         New module 'pt_chown'.
16859         * lib/pt_chown.c: New file, from glibc with modifications.
16860         * lib/pty-private.h: New file, from glibc with modifications.
16861         * modules/pt_chown: New file.
16862         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16863
16864 2010-03-21  Bruno Haible  <bruno@clisp.org>
16865
16866         Tests for module 'ptsname'.
16867         * modules/ptsname-tests: New file.
16868         * tests/test-ptsname.c: New file.
16869
16870         New module 'ptsname'.
16871         * lib/ptsname.c: New file, from glibc with modifications.
16872         * m4/ptsname.m4: New file.
16873         * modules/ptsname: New file.
16874         * lib/stdlib.in.h (ptsname): New declaration.
16875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16877         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16878         HAVE_PTSNAME.
16879         * doc/posix-functions/ptsname.texi: Mention the new module.
16880         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16881         * config/srclist.txt: Add ptsname.c (commented).
16882
16883 2010-03-21  Bruno Haible  <bruno@clisp.org>
16884
16885         Tests for module 'ttyname_r'.
16886         * modules/ttyname_r-tests: New file.
16887         * tests/test-ttyname_r.c: New file.
16888
16889         New module 'ttyname_r'.
16890         * lib/ttyname_r.c: New file.
16891         * m4/ttyname_r.m4: New file.
16892         * modules/ttyname_r: New file.
16893         * lib/unistd.in.h (ttyname_r): New declaration.
16894         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16895         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16896         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16897         HAVE_TTYNAME_R.
16898         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16899         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16900
16901 2010-03-20  Bruno Haible  <bruno@clisp.org>
16902
16903         signal: Undefine macro definitions in C++ mode.
16904         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16905         sigfillset): Undefine macro definitions from the system header in C++
16906         mode.
16907         Reported by John W. Eaton <jwe@gnu.org>.
16908
16909 2010-03-20  Bruno Haible  <bruno@clisp.org>
16910
16911         Ensure no #include statements inside extern "C" { ... }.
16912         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16913         contain #include statements.
16914         * lib/time.in.h: Likewise.
16915
16916 2010-03-20  Bruno Haible  <bruno@clisp.org>
16917
16918         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16919         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16920         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16921         Reported by John W. Eaton <jwe@gnu.org>.
16922
16923 2010-03-20  Bruno Haible  <bruno@clisp.org>
16924
16925         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16926         Reported by Jim Meyering.
16927
16928 2010-03-20  Bruno Haible  <bruno@clisp.org>
16929
16930         pipe: Set errno upon failure.
16931         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16932         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16933         errno value in error message.
16934
16935 2010-03-20  Bruno Haible  <bruno@clisp.org>
16936             Jim Meyering  <meyering@redhat.com>
16937
16938         lchown: Avoid "unused variable" warning.
16939         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16940
16941 2010-03-20  Bruno Haible  <bruno@clisp.org>
16942
16943         Work around unlink() bug on MacOS X 10.5.6.
16944         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16945         attempting to unlink a parent directory.
16946         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16947         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16948         activate for the replacement function.
16949         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16950
16951 2010-03-20  Bruno Haible  <bruno@clisp.org>
16952
16953         Fix link errors on Solaris 8.
16954         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16955         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16956
16957 2010-03-19  Jim Meyering  <meyering@redhat.com>
16958
16959         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16960         The _LIBC implementation of build_range_exp correctly honors the
16961         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16962         However, the non-_LIBC implementation would ignore that syntax-bit
16963         flag and return REG_ERANGE unconditionally.
16964         This change makes it honor that flag.
16965         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16966         Make two pointer parameters "const".
16967         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16968         (parse_bracket_exp): Update caller.
16969
16970         regex.m4: correct the reversed range endpoint ([b-a]) test
16971         * m4/regex.m4: When requiring that [b-a] evoke failure,
16972         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16973         test pass once again for x86-based systems.
16974
16975 2010-03-19  Bruno Haible  <bruno@clisp.org>
16976
16977         scandir: Fix link error on Solaris 8.
16978         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16979         macros.
16980
16981 2010-03-19  Bruno Haible  <bruno@clisp.org>
16982
16983         getusershell: Fix documentation.
16984         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16985         module.
16986         * doc/glibc-functions/setusershell.texi: Likewise.
16987
16988         getusershell: Provide declaration, missing on Solaris 9.
16989         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16990         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16991         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16992         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16994         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16995         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16996         HAVE_GETUSERSHELL.
16997         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16998
16999 2010-03-19  Bruno Haible  <bruno@clisp.org>
17000
17001         wctype: Provide iswblank function.
17002         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17003         exists and is fine.
17004         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17005         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17006         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17007         * doc/posix-functions/iswblank.texi: Update.
17008
17009 2010-03-19  Bruno Haible  <bruno@clisp.org>
17010
17011         Tests of module 'pty' in C++ mode.
17012         * modules/pty-tests: New file.
17013         * tests/test-pty-c++.cc: New file.
17014         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17015
17016 2010-03-19  Eric Blake  <eblake@redhat.com>
17017
17018         logb: fix documentation
17019         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17020         1.5 declaration bug.
17021
17022         forkpty, openpty: prefer glibc's const-safe prototype
17023         * lib/forkpty.c (rpl_forkpty): New file.
17024         * lib/openpty.c (rpl_openpty): Likewise.
17025         * modules/forkpty (Files): Distribute it.
17026         * modules/openpty (Files): Likewise.
17027         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17028         check...
17029         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17030         replacement for for non-const BSD signature.
17031         * modules/pty (Makefile.am): Substitute witnesses.
17032         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17033         * tests/test-forkpty.c: Update signature check.
17034         * tests/test-openpty.c: Likewise.
17035         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17036         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17037
17038         forkpty, openpty: split functions into new modules
17039         * modules/pty (Makefile.am): Substitute new witnesses.
17040         (Libraries): Move library detection...
17041         * modules/forkpty: ...into new module.
17042         * modules/openpty: Another new module.
17043         * modules/pty-tests: Rename and split...
17044         * modules/forkpty-tests: ...to this...
17045         * modules/openpty-tests: ...and this.
17046         * tests/test-pty.c: Rename and split...
17047         * tests/test-forkpty.c: ...to this...
17048         * tests/test-openpty.c: ...and this.
17049         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17050         (gl_PTY): Split library searching...
17051         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17052         (gl_FORKPTY, gl_OPENPTY): New macros.
17053         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17054         * NEWS: Mention the split.
17055         * MODULES.html.sh (Misc): Document the modules.
17056         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17057         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17058
17059         pty: improve replacement header
17060         * lib/pty.in.h: New file.
17061         * modules/pty (Files): Ship it.
17062         (Makefile.am): Always build replacement.
17063         * m4/pty.m4: Rename...
17064         * m4/pty_h.m4: ...to this.
17065         (gl_PTY): Modernize setting of witness macros; update check of
17066         forkpty to take proper advantage of cache.
17067         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17068
17069         getopt: avoid compiler warning
17070         * lib/getopt.c (attribute_hidden): Remove unused macro.
17071
17072 2010-03-18  Bruno Haible  <bruno@clisp.org>
17073
17074         Fix link errors on Solaris 8.
17075         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17076         * modules/search-tests (test_search_c___LDADD): Likewise.
17077         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17078         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17079         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17080         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17081         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17082         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17083         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17084
17085 2010-03-18  Bruno Haible  <bruno@clisp.org>
17086
17087         Fix bug introduced on 2010-03-14.
17088         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17089         (gl_SPAWN_H): Require it.
17090         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17091         Reported by Simon Josefsson.
17092
17093 2010-03-18  Bruno Haible  <bruno@clisp.org>
17094
17095         Fix typo introduced on 2009-12-31.
17096         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17097         posix_spawn_file_actions_adddup2.
17098
17099 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17100         and Eric Blake  <eblake@redhat.com>
17101
17102         test-vc-list-files-git: make more robust
17103         * tests/test-vc-list-files-git.sh: Unset problematic environment
17104         variables.  Chain commands together.
17105
17106 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17107
17108         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17109         `AC_CHECK_DECL' invocation.
17110
17111 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17112
17113         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17114         appears before executable statements. Suggested by Petr Sumbera
17115         <Petr.Sumbera@Sun.COM>.
17116
17117 2010-03-14  Bruno Haible  <bruno@clisp.org>
17118
17119         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17120         portability problems. Instead use a simpler test.
17121         (main): Check that invalid arguments are rejected only on Linux.
17122
17123 2010-03-14  Bruno Haible  <bruno@clisp.org>
17124
17125         Fix bug introduced on 2009-12-31.
17126         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17127         gl_PREREQ_SYS_H_WINSOCK2 always.
17128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17129         SYS_SOCKET_H variable.
17130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17131         Update comments.
17132         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17133         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17136         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17137
17138 2010-03-14  Bruno Haible  <bruno@clisp.org>
17139
17140         Fix values returned by sinl, cosl.
17141         * lib/trigl.h: Add specification comments.
17142         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17143         that combines the values from the precomputed table with the values of
17144         the Chebyshev polynomials.
17145
17146 2010-03-14  Bruno Haible  <bruno@clisp.org>
17147
17148         Fix compilation error when modules 'posix_spawn[p]' are not used.
17149         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17151
17152 2010-03-14  Bruno Haible  <bruno@clisp.org>
17153
17154         Fix compilation error on mingw when module 'time_r' is not used.
17155         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17156         is 1.
17157         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17158         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17159         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17160         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17161
17162 2010-03-14  Bruno Haible  <bruno@clisp.org>
17163
17164         Fix compilation error with Sun C.
17165         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17166         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17167         instead of GCC specific ULONG_LONG_MAX.
17168         * lib/xstrtoll.c: Likewise.
17169         * lib/xstrtoull.c: Likewise.
17170
17171 2010-03-13  Bruno Haible  <bruno@clisp.org>
17172
17173         Allow the user to disable C++ code and tests.
17174         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17175         (gl_PROG_ANSI_CXX): Require it.
17176
17177 2010-03-13  Bruno Haible  <bruno@clisp.org>
17178
17179         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17180         cases.
17181
17182 2010-03-13  Bruno Haible  <bruno@clisp.org>
17183
17184         Test that gnulib does not break the standard C++ headers.
17185         * tests/test-locale-c++2.cc: New file.
17186         * modules/locale-tests (Files): Add it.
17187         (Makefile.am): Compile it for test-locale-c++.
17188         * tests/test-math-c++2.cc: New file.
17189         * modules/math-tests (Files): Add it.
17190         (Makefile.am): Compile it for test-math-c++.
17191         * tests/test-signal-c++2.cc: New file.
17192         * modules/signal-tests (Files): Add it.
17193         (Makefile.am): Compile it for test-signal-c++.
17194         * tests/test-stdio-c++2.cc: New file.
17195         * modules/stdio-tests (Files): Add it.
17196         (Makefile.am): Compile it for test-stdio-c++.
17197         * tests/test-stdlib-c++2.cc: New file.
17198         * modules/stdlib-tests (Files): Add it.
17199         (Makefile.am): Compile it for test-stdlib-c++.
17200         * tests/test-string-c++2.cc: New file.
17201         * modules/string-tests (Files): Add it.
17202         (Makefile.am): Compile it for test-string-c++.
17203         * tests/test-time-c++2.cc: New file.
17204         * modules/time-tests (Files): Add it.
17205         (Makefile.am): Compile it for test-time-c++.
17206         Reported by John W. Eaton <jwe@gnu.org>.
17207
17208 2010-03-13  Bruno Haible  <bruno@clisp.org>
17209
17210         * gnulib-tool (func_usage): Clarify which options are available for
17211         --create-testdir and --create-megatestdir.
17212
17213 2010-03-13  Bruno Haible  <bruno@clisp.org>
17214
17215         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17216         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17217         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17218         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17219         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17220         when appropriate.
17221         Reported by Jim Meyering.
17222
17223 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17224
17225         * gnulib-tool (func_import): Explain origin of code.
17226
17227 2010-03-12  Bruno Haible  <bruno@clisp.org>
17228
17229         Fix problem with automake's definition of CXXLINK.
17230         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17231         Reported by Simon Josefsson and Ludovic Courtès.
17232
17233 2010-03-12  Bruno Haible  <bruno@clisp.org>
17234
17235         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17236         stable releases.
17237
17238 2010-03-11  Bruno Haible  <bruno@clisp.org>
17239
17240         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17241         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17242         whether the system provides one variant or multiple variants of the
17243         function.
17244         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17245         C++ compilers.
17246         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17247         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17248         Reported by Jim Meyering.
17249
17250 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17251
17252         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17253
17254 2010-03-08  Bruno Haible  <bruno@clisp.org>
17255
17256         gnulib-tool: Add support for --libtool in --create-testdir.
17257         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17258         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17259
17260 2010-03-08  Eric Blake  <eblake@redhat.com>
17261
17262         gnulib-tool.texi: mention possibility of git submodule
17263         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17264         submodules.
17265         * doc/.gitignore: Ignore another generated file.
17266
17267 2010-03-08  Karl Berry  <karl@gnu.org>
17268
17269         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17270         of committing gnulib files while skipping others.
17271
17272 2010-03-07  Bruno Haible  <bruno@clisp.org>
17273
17274         Tests of module 'wctype' in C++ mode.
17275         * tests/test-wctype-c++.cc: New file.
17276         * modules/wctype-tests (Files): Add it and tests/signature.h.
17277         (Depends-on): Add ansi-c++-opt.
17278         (Makefile.am): Arrange to compile and run test-wctype-c++.
17279
17280         Tests of module 'wchar' in C++ mode.
17281         * tests/test-wchar-c++.cc: New file.
17282         * modules/wchar-tests (Files): Add it and tests/signature.h.
17283         (Depends-on): Add ansi-c++-opt.
17284         (Makefile.am): Arrange to compile and run test-wchar-c++.
17285         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17286         gl_MODULE_INDICATOR.
17287
17288         Tests of module 'unistd' in C++ mode.
17289         * tests/test-unistd-c++.cc: New file.
17290         * modules/unistd-tests (Files): Add it and tests/signature.h.
17291         (Depends-on): Add ansi-c++-opt.
17292         (Makefile.am): Arrange to compile and run test-unistd-c++.
17293         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17294         gl_MODULE_INDICATOR.
17295
17296         Tests of module 'time' in C++ mode.
17297         * tests/test-time-c++.cc: New file.
17298         * modules/time-tests (Files): Add it and tests/signature.h.
17299         (Depends-on): Add ansi-c++-opt.
17300         (Makefile.am): Arrange to compile and run test-time-c++.
17301         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17302
17303         Tests of module 'sys_time' in C++ mode.
17304         * tests/test-sys_time-c++.cc: New file.
17305         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17306         (Depends-on): Add ansi-c++-opt.
17307         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17308         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17309         gl_MODULE_INDICATOR.
17310
17311         Tests of module 'sys_stat' in C++ mode.
17312         * tests/test-sys_stat-c++.cc: New file.
17313         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17314         (Depends-on): Add ansi-c++-opt.
17315         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17316         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17317         gl_MODULE_INDICATOR.
17318
17319         Tests of module 'sys_socket' in C++ mode.
17320         * tests/test-sys_socket-c++.cc: New file.
17321         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17322         (Depends-on): Add ansi-c++-opt.
17323         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17325         gl_MODULE_INDICATOR.
17326
17327         Tests of module 'sys_select' in C++ mode.
17328         * tests/test-sys_select-c++.cc: New file.
17329         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17330         (Depends-on): Add ansi-c++-opt.
17331         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17332         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17333         gl_MODULE_INDICATOR.
17334
17335         Tests of module 'sys_ioctl' in C++ mode.
17336         * tests/test-sys_ioctl-c++.cc: New file.
17337         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17338         (Depends-on): Add ansi-c++-opt.
17339         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17341         gl_MODULE_INDICATOR.
17342
17343         Tests of module 'string' in C++ mode.
17344         * tests/test-string-c++.cc: New file.
17345         * modules/string-tests (Files): Add it and tests/signature.h.
17346         (Depends-on): Add ansi-c++-opt.
17347         (Makefile.am): Arrange to compile and run test-string-c++.
17348         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17349         gl_MODULE_INDICATOR.
17350
17351         Tests of module 'stdlib' in C++ mode.
17352         * tests/test-stdlib-c++.cc: New file.
17353         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17354         (Depends-on): Add ansi-c++-opt.
17355         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17356         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17357         gl_MODULE_INDICATOR.
17358
17359         Tests of module 'stdio' in C++ mode.
17360         * tests/test-stdio-c++.cc: New file.
17361         * modules/stdio-tests (Files): Add it and tests/signature.h.
17362         (Depends-on): Add ansi-c++-opt.
17363         (Makefile.am): Arrange to compile and run test-stdio-c++.
17364         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17365         gl_MODULE_INDICATOR.
17366
17367         Tests of module 'spawn' in C++ mode.
17368         * tests/test-spawn-c++.cc: New file.
17369         * modules/spawn-tests (Files): Add it and tests/signature.h.
17370         (Depends-on): Add ansi-c++-opt.
17371         (Makefile.am): Arrange to compile and run test-spawn-c++.
17372         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17373         gl_MODULE_INDICATOR.
17374
17375         Tests of module 'signal' in C++ mode.
17376         * tests/test-signal-c++.cc: New file.
17377         * modules/signal-tests (Files): Add it and tests/signature.h.
17378         (Depends-on): Add ansi-c++-opt.
17379         (Makefile.am): Arrange to compile and run test-signal-c++.
17380         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17381         gl_MODULE_INDICATOR.
17382
17383         Tests of module 'search' in C++ mode.
17384         * tests/test-search-c++.cc: New file.
17385         * modules/search-tests (Files): Add it and tests/signature.h.
17386         (Depends-on): Add ansi-c++-opt.
17387         (Makefile.am): Arrange to compile and run test-search-c++.
17388         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17389         gl_MODULE_INDICATOR.
17390
17391         Tests of module 'math' in C++ mode.
17392         * tests/test-math-c++.cc: New file.
17393         * modules/math-tests (Files): Add it and tests/signature.h.
17394         (Depends-on): Add ansi-c++-opt.
17395         (Makefile.am): Arrange to compile and run test-math-c++.
17396         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17397
17398         Tests of module 'locale' in C++ mode.
17399         * tests/test-locale-c++.cc: New file.
17400         * modules/locale-tests (Files): Add it and tests/signature.h.
17401         (Depends-on): Add ansi-c++-opt.
17402         (Makefile.am): Arrange to compile and run test-locale-c++.
17403         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17404         gl_MODULE_INDICATOR.
17405
17406         Tests of module 'langinfo' in C++ mode.
17407         * tests/test-langinfo-c++.cc: New file.
17408         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17409         (Depends-on): Add ansi-c++-opt.
17410         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17411         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17412         gl_MODULE_INDICATOR.
17413
17414         Tests of module 'iconv-h' in C++ mode.
17415         * tests/test-iconv-h-c++.cc: New file.
17416         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17417         (Depends-on): Add ansi-c++-opt.
17418         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17419
17420         Tests of module 'glob' in C++ mode.
17421         * tests/test-glob-c++.cc: New file.
17422         * modules/glob-tests (Files): Add it.
17423         (Depends-on): Add ansi-c++-opt.
17424         (Makefile.am): Arrange to compile and run test-glob-c++.
17425
17426         Tests of module 'fcntl-h' in C++ mode.
17427         * tests/test-fcntl-h-c++.cc: New file.
17428         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17429         (Depends-on): Add ansi-c++-opt.
17430         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17431         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17432         gl_MODULE_INDICATOR.
17433
17434         Tests of module 'dirent' in C++ mode.
17435         * tests/test-dirent-c++.cc: New file.
17436         * modules/dirent-tests (Files): Add it and tests/signature.h.
17437         (Depends-on): Add ansi-c++-opt.
17438         (Makefile.am): Arrange to compile and run test-dirent-c++.
17439         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17440         gl_MODULE_INDICATOR.
17441
17442         New module 'ansi-c++-opt'.
17443         * modules/ansi-c++-opt: New file.
17444         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17445
17446         Document C++ namespace mode.
17447         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17448
17449         wctype: Avoid #define replacements in C++ mode.
17450         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17451         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17452         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17453         In C++, define a namespaced alias symbol.
17454         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17455         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17456         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17457         rule.
17458
17459         wchar: Avoid #define replacements in C++ mode.
17460         * lib/wchar.in.h: Include c++defs.h.
17461         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17462         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17463         symbol.
17464         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17465         * modules/wchar (Depends-on): Add c++defs.
17466         (Makefile.am): Update wchar.h rule.
17467
17468         unistd: Avoid #define replacements in C++ mode.
17469         * lib/unistd.in.h: Include c++defs.h.
17470         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17471         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17472         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17473         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17474         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17475         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17476         symbol.
17477         (environ): Update.
17478         * modules/unistd (Depends-on): Add c++defs.
17479         (Makefile.am): Update unistd.h rule.
17480
17481         time: Avoid #define replacements in C++ mode.
17482         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17483         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17484         define a namespaced alias symbol.
17485         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17486         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17487         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17488         * modules/time (Depends-on): Add c++defs, warn-on-use.
17489         (Makefile.am): Update time.h rule.
17490         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17491         * modules/nanosleep (configure.ac): Likewise.
17492         * modules/strptime (configure.ac): Likewise.
17493         * modules/timegm (configure.ac): Likewise.
17494
17495         sys_time: Avoid #define replacements in C++ mode.
17496         * lib/sys_time.in.h: Include c++defs.h.
17497         (gettimeofday): In C++, define a namespaced alias symbol.
17498         * modules/sys_time (Depends-on): Add c++defs.
17499         (Makefile.am): Update sys/time.h rule.
17500
17501         sys_stat: Avoid #define replacements in C++ mode.
17502         * lib/sys_stat.in.h: Include c++defs.h.
17503         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17504         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17505         namespaced alias symbol.
17506         In C++, define a namespaced alias symbol.
17507         * modules/sys_stat (Depends-on): Add c++defs.
17508         (Makefile.am): Update sys/stat.h rule.
17509
17510         sys_socket: Avoid #define replacements in C++ mode.
17511         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17512         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17513         definitions also when the system has a <sys/socket.h>.
17514         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17515         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17516         In C++, define a namespaced alias symbol.
17517         * modules/sys_socket (Depends-on): Add c++defs.
17518         (Makefile.am): Update sys/socket.h rule.
17519
17520         sys_select: Avoid #define replacements in C++ mode.
17521         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17522         definitions also when the system has a <sys/select.h>.
17523         (select): In C++, define a namespaced alias symbol.
17524         * modules/sys_select (Depends-on): Add c++defs.
17525         (Makefile.am): Update sys/select.h rule.
17526
17527         sys_ioctl: Avoid #define replacements in C++ mode.
17528         * lib/sys_ioctl.in.h: Include c++defs.h.
17529         (ioctl): In C++, define a namespaced alias symbol.
17530         * modules/sys_ioctl (Depends-on): Add c++defs.
17531         (Makefile.am): Update sys/ioctl.h rule.
17532
17533         string: Avoid #define replacements in C++ mode.
17534         * lib/string.in.h: Include c++defs.h.
17535         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17536         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17537         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17538         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17539         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17540         * modules/string (Depends-on): Add c++defs.
17541         (Makefile.am): Update string.h rule.
17542
17543         stdlib: Avoid #define replacements in C++ mode.
17544         * lib/stdlib.in.h: Include c++defs.h.
17545         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17546         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17547         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17548         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17549         symbol.
17550         * modules/stdlib (Depends-on): Add c++defs.
17551         (Makefile.am): Update stdlib.h rule.
17552
17553         stdio: Avoid #define replacements in C++ mode.
17554         * lib/stdio.in.h: Include c++defs.h.
17555         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17556         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17557         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17558         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17559         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17560         namespaced alias symbol.
17561         * modules/stdio (Depends-on): Add c++defs.
17562         (Makefile.am): Update stdio.h rule.
17563
17564         spawn: Avoid #define replacements in C++ mode.
17565         * lib/spawn.in.h: Include c++defs.h.
17566         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17567         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17568         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17569         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17570         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17571         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17572         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17573         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17574         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17575         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17576         In C++, define a namespaced alias symbol.
17577         * modules/spawn (Depends-on): Add c++defs.
17578         (Makefile.am): Update spawn.h rule.
17579
17580         signal: Avoid #define replacements in C++ mode.
17581         * lib/signal.in.h: Include c++defs.h.
17582         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17583         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17584         namespaced alias symbol.
17585         * modules/signal (Depends-on): Add c++defs.
17586         (Makefile.am): Update signal.h rule.
17587
17588         search: Avoid #define replacements in C++ mode.
17589         * lib/search.in.h: Include c++defs.h.
17590         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17591         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17592         symbol.
17593         * modules/search (Depends-on): Add c++defs.
17594         (Makefile.am): Update search.h rule.
17595
17596         math: Avoid #define replacements in C++ mode.
17597         * lib/math.in.h: Include c++defs.h.
17598         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17599         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17600         trunc, truncl): In C++, define a namespaced alias symbol.
17601         * modules/math (Depends-on): Add c++defs.
17602         (Makefile.am): Update math.h rule.
17603
17604         locale: Avoid #define replacements in C++ mode.
17605         * lib/locale.in.h: Include c++defs.h.
17606         (duplocale): In C++, define a namespaced alias symbol.
17607         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17609         * modules/locale (Depends-on): Add c++defs.
17610         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17611
17612         langinfo: Avoid #define replacements in C++ mode.
17613         * lib/langinfo.in.h: Include c++defs.h.
17614         (nl_langinfo): In C++, define a namespaced alias symbol.
17615         * modules/langinfo (Depends-on): Add c++defs.
17616         (Makefile.am): Update langinfo.h rule.
17617
17618         iconv-h: Avoid #define replacements in C++ mode.
17619         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17620         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17621         symbol.
17622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17623         whenever iconv is present.
17624         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17625         (Makefile.am): Update iconv.h rule.
17626
17627         glob: Avoid #define replacements in C++ mode.
17628         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17629         (_gl_glob_errfunc_fn): New type.
17630         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17631         symbol.
17632         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17633         (Makefile.am): Update glob.h rule.
17634
17635         fcntl-h: Avoid #define replacements in C++ mode.
17636         * lib/fcntl.in.h: Include c++defs.h.
17637         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17638         * modules/fcntl-h (Depends-on): Add c++defs.
17639         (Makefile.am): Update fcntl.h rule.
17640
17641         dirent: Avoid #define replacements in C++ mode.
17642         * lib/dirent.in.h: Include c++defs.h.
17643         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17644         namespaced alias symbol.
17645         (dirfd): Update declaration.
17646         * modules/dirent (Depends-on): Add c++defs.
17647         (Makefile.am): Update dirent.h rule.
17648
17649         ctype: Make it usable in C++ code.
17650         * lib/ctype.in.h: Include c++defs.h.
17651         (isblank): Declare as extern "C".
17652         * modules/ctype (Depends-on): Add c++defs.
17653         (Makefile.am): Update ctype.h rule.
17654
17655         New module 'c++defs'.
17656         * modules/c++defs: New file.
17657         * build-aux/c++defs.h: New file.
17658         Reported by John W. Eaton <jwe@gnu.org>.
17659
17660 2010-03-07  Bruno Haible  <bruno@clisp.org>
17661
17662         logb: Provide missing declaration for Cygwin.
17663         * lib/math.in.h (logb): New declaration.
17664         * m4/logb.m4: New file.
17665         * modules/logb (Files): Add m4/logb.m4.
17666         (Depends-on): Add math.
17667         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17668         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17670         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17671         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17672
17673 2010-03-07  Bruno Haible  <bruno@clisp.org>
17674
17675         Fix test-cond link error.
17676         * tests/test-cond.c: Include <stdio.h>.
17677
17678 2010-03-07  Bruno Haible  <bruno@clisp.org>
17679
17680         Fix test-dirent-safer link error.
17681         * modules/dirent-safer-tests (Makefile.am): Define
17682         test_dirent_safer_LDADD.
17683
17684 2010-03-07  Bruno Haible  <bruno@clisp.org>
17685
17686         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17687         among default module list.
17688
17689 2010-03-07  Bruno Haible  <bruno@clisp.org>
17690
17691         Fix link error on platforms with GNU libiconv.
17692         * modules/unistr/u8-strcoll-tests (Makefile): Define
17693         test_u8_strcoll_LDADD.
17694         * modules/unistr/u16-strcoll-tests (Makefile): Define
17695         test_u16_strcoll_LDADD.
17696         * modules/unistr/u32-strcoll-tests (Makefile): Define
17697         test_u32_strcoll_LDADD.
17698
17699 2010-03-07  Bruno Haible  <bruno@clisp.org>
17700
17701         Use POSIX declarations for socket functions.
17702         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17703         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17704         rpl_sendto): Change declaration to match POSIX.
17705         * lib/connect.c (rpl_connect): Likewise.
17706         * lib/accept.c (rpl_accept): Likewise.
17707         * lib/bind.c (rpl_bind): Likewise.
17708         * lib/getpeername.c (rpl_getpeername): Likewise.
17709         * lib/getsockname.c (rpl_getsockname): Likewise.
17710         * lib/recv.c (rpl_recv): Likewise.
17711         * lib/send.c (rpl_send): Likewise.
17712         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17713         * lib/sendto.c (rpl_sendto): Likewise.
17714
17715 2010-03-06  Bruno Haible  <bruno@clisp.org>
17716
17717         Clarify access, euidaccess, faccessat.
17718         * doc/posix-functions/faccessat.texi: Mention security problem under
17719         "Other problems", not "Portability problems".
17720         * doc/posix-functions/access.texi: Likewise. Mention a related security
17721         problem.
17722         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17723         * lib/euidaccess.c: Add comments about platforms.
17724         * lib/unistd.in.h (access, euidaccess): Add warnings.
17725
17726 2010-03-07  Bruno Haible  <bruno@clisp.org>
17727
17728         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17729         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17730         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17731         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17732         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17733         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17734         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17735         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17736         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17738         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17739         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17740         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17741         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17742         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17743         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17744         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17745         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17746         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17747         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17748         Likewise.
17749         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17750         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17751         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17752         Likewise.
17753         * tests/test-spawn.c (main): Make it work when
17754         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17755
17756 2010-03-07  Bruno Haible  <bruno@clisp.org>
17757
17758         Fix incorrect Makefile.am generation in German locale.
17759         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17760         Execute sed command with character range in C locale.
17761
17762 2010-03-06  Bruno Haible  <bruno@clisp.org>
17763
17764         Tests for module 'iconv-h'.
17765         * modules/iconv-h-tests: New file.
17766         * tests/test-iconv-h.c: New file.
17767
17768         New module 'iconv-h'.
17769         * modules/iconv-h: New file.
17770         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17771         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17772         (configure.ac): Remove gl_ICONV_H.
17773         (Makefile.am): Remove rule for iconv.h.
17774
17775 2010-03-06  Bruno Haible  <bruno@clisp.org>
17776
17777         More consistent naming of *.m4 files.
17778         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17779         * modules/wctype (Files): Update.
17780
17781         More consistent naming of *.m4 files.
17782         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17783         * modules/wchar (Files): Update.
17784
17785 2010-03-06  Jim Meyering  <meyering@redhat.com>
17786
17787         euidaccess: relax license to LGPLv2+
17788         * modules/euidaccess (License): Relax to LGPLv2+.
17789
17790 2010-03-06  Bruno Haible  <bruno@clisp.org>
17791
17792         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17793         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17794         (Makefile.am): Augment lib_SOURCES instead.
17795
17796 2010-03-04  Jim Meyering  <meyering@redhat.com>
17797
17798         utime: remove obsolete module
17799         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17800         unnecessary for years, and has been marked as obsolete for 10 months.
17801         * modules/utime: Remove file.
17802         * lib/utime.c: Remove file.
17803         * m4/utime.m4: Remove file.
17804         * m4/utimes-null.m4: Remove file.
17805         * doc/posix-functions/utime.texi (utime): Remove reference to
17806         the module.  Move the sole "fixed by gnulib" item into the
17807         "problems not fixed by Gnulib" list.
17808         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17809
17810 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17811
17812         * modules/exit (License): Relax license to LGPLv2+.
17813         (Status): Mark as obsolete.
17814         * NEWS: Mention deprecated 'exit' module.
17815         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17816         of now obsolete 'exit'.
17817
17818 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17819
17820         fts-lgpl: remove unused module
17821         * modules/fts-lgpl: Remove.
17822         * MODULES.html.sh (func_all_modules): Adjust.
17823         * check-module (find_included_lib_files): Adjust.
17824         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17825
17826 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17827
17828         copy-acl: enhance Solaris ACL error handling
17829         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17830         * lib/set-mode-acl.c (qset_acl): Likewise.
17831
17832 2010-03-02  Bruno Haible  <bruno@clisp.org>
17833
17834         spawn: Don't override the system defined values on FreeBSD 8.
17835         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17836         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17837         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17838         if HAVE_POSIX_SPAWN is 1.
17839         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17840
17841 2010-03-01  Bruno Haible  <bruno@clisp.org>
17842
17843         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17844         regarding Automake.
17845
17846 2010-02-25  Bruno Haible  <bruno@clisp.org>
17847
17848         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17849         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17850         setting, not afterwards.
17851         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17852
17853 2010-02-24  Eric Blake  <eblake@redhat.com>
17854
17855         bootstrap, git-version-gen: use timestamp
17856         * build-aux/git-version-gen (scriptversion): Force UTC.
17857         * build-aux/bootstrap (scriptversion): New variable.
17858
17859         bootstrap: allow older git
17860         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17861         older than 1.6.4.  Requested by the libvirt project.
17862
17863 2010-02-23  Eric Blake  <eblake@redhat.com>
17864
17865         warn-on-use: work with old autoconf
17866         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17867         AS_VAR semantics of autoconf 2.60.
17868         Reported by Bruno Haible.
17869
17870         bootstrap: improve some comments
17871         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17872         clarification comments.
17873
17874         gettimeofday: provide correct function
17875         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17876         when replacement is declared, otherwise provide gettimeofday.
17877         Reported by Michael Goffioul.
17878
17879 2010-02-23  Jim Meyering  <meyering@redhat.com>
17880
17881         lib-ignore: relax license to "unlimited", not LGPLv2+
17882         * modules/lib-ignore (License): Relax to "unlimited".
17883
17884 2010-02-23  Jim Meyering  <meyering@redhat.com>
17885
17886         lib-ignore: relax license to LGPLv2+
17887         * modules/lib-ignore (License): Relax to LGPLv2+.
17888
17889 2010-02-22  Eric Blake  <eblake@redhat.com>
17890
17891         lseek: avoid bash 3.2 broken pipe bug
17892         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17893         warning from bash 3.2.
17894         Reported by Ben Pfaff, with analysis from Bruno Haible.
17895
17896         bootstrap: support non-FSF copyright holder
17897         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17898         bootstrap.conf override of COPYRIGHT_HOLDER.
17899         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17900
17901         bootstrap: interoperate with gettext 0.14.1
17902         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17903
17904         bootstrap: allow for alternate submodule location
17905         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17906         hardcoding submodule location.
17907         (gnulib_mk): Allow direct use of Makefile.am.
17908
17909         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17910         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17911         rather than reconfiguring where the submodule points.
17912
17913         gettimeofday: restore support for platforms that lack function
17914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17915         replacement if function is missing.
17916         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17917         * modules/sys_time (Makefile.am): Substitute it.
17918         * lib/sys_time.in.h (gettimeofday): Check it.
17919         Reported by Michael Goffioul.
17920
17921 2010-02-21  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/stdio.in.h (obstack_printf): Fix typo.
17924
17925 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17926
17927         vc-list-files: use bzr ls's -R option
17928         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17929         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17930
17931 2010-02-21  Jim Meyering  <meyering@redhat.com>
17932
17933         init.sh: fix EXEEXT shims to work also for names like test-prog
17934         * tests/init.sh: Re-exec a better shell, when needed.
17935         If the current shell lacks support for posix $(...), an init.sh-using
17936         test will now try to find a shell that supports that.  If EXEEXT is
17937         nonempty, we also require support for hyphen-in-alias-name and shell
17938         substitutions like ${var#glob}.  Failure to find such a shell results
17939         in a skipped test.
17940
17941 2010-02-21  Bruno Haible  <bruno@clisp.org>
17942
17943         Really work around around "broken pipe" error message from bash 3.2.
17944         * gnulib-tool (func_reset_sigpipe): Remove function.
17945         (echo): In bash 3.2, define to a function that uses printf.
17946         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17947
17948 2010-02-20  Bruno Haible  <bruno@clisp.org>
17949
17950         Restore support for automake 1.9.6 with autoconf 2.61.
17951         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17952         Reported by James Youngman <jay@gnu.org>.
17953
17954 2010-02-20  Bruno Haible  <bruno@clisp.org>
17955
17956         Improve *printf warning condition.
17957         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17958         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17959         and the function is overridden due to SIGPIPE emulation.
17960
17961 2010-02-20  Bruno Haible  <bruno@clisp.org>
17962
17963         * lib/stdio.in.h: Tweak comments.
17964
17965 2010-02-19  Bruno Haible  <bruno@clisp.org>
17966
17967         Make it easier to find modules. New gnulib-tool option '--find'.
17968         * gnulib-tool: New option --find.
17969         (func_usage): Document it.
17970         (func_sanitize_modulelist): New function, extracted from
17971         func_all_modules.
17972         (func_all_modules): Invoke it.
17973         * doc/gnulib-tool.texi (Which modules?): New node.
17974
17975 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17976
17977         * lib/sys_select.in.h: Provide select replacement even if
17978         sys/select.h exists on a system, for Interix.
17979
17980 2010-02-18  Jim Meyering  <meyering@redhat.com>
17981
17982         init.sh: don't use $(...) just yet
17983         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17984         to accommodate e.g., Solaris' /bin/sh.
17985
17986 2010-02-17  Bruno Haible  <bruno@clisp.org>
17987
17988         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17989         Reported by Ludovic Courtès <ludo@gnu.org>.
17990
17991 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17992
17993         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17994         linking with -lintl.
17995
17996 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17997
17998         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17999         if not provided by the system's netdb.h.  Reported by
18000         ludo@gnu.org (Ludovic Courtès).
18001
18002 2010-02-15  Jim Meyering  <meyering@redhat.com>
18003
18004         init.sh: improve portability and efficiency
18005         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18006         "dummy" in a for loop.
18007         Use '!', not '^' to select the complement of a character set used
18008         in a "case" statement.
18009         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18010         Suggestions from Eric Blake.
18011
18012         init.sh: automatically accommodate programs with the .exe suffix
18013         Automatically arrange for an invocation of "prog" to execute the
18014         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18015         may use the simpler "prog", yet still work when built on a system
18016         that requires specifying the added suffix.
18017         Do this by constructing a function named "prog" that invokes
18018         "prog.exe" for each .exe file in selected directories.
18019         * tests/init.sh (find_exe_basenames_): New function.
18020         (create_exe_shim_functions_): New function.
18021         (path_prepend_): Use it.
18022
18023         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18024         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18025         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18026
18027 2010-02-14  Jim Meyering  <meyering@redhat.com>
18028
18029         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18030         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18031         (sc_prohibit_hash_pjw_without_use): New rule.
18032
18033         maint.mk: allow the default upload destination dir to be overridden
18034         * top/maint.mk (upload_dest_dir_): Define with a default that
18035         preserves the status quo.
18036         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18037         Reported by Peter Simons.
18038
18039         maint.mk: prohibit inclusion of "hash.h" without_use
18040         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18041
18042 2010-02-10  Jim Meyering  <meyering@redhat.com>
18043
18044         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18045         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18046
18047 2010-02-09  Eric Blake  <ebb9@byu.net>
18048         and Bruno Haible  <bruno@clisp.org>
18049
18050         obstack-printf-posix: ensure declaration
18051         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18052         extracted from gl_FUNC_OBSTACK_PRINTF.
18053         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18054         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18055         Likewise.
18056         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18057         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18058         0.
18059
18060 2010-02-08  Bruno Haible  <bruno@clisp.org>
18061
18062         gnulib-tool: Fix typo in 2010-02-07 commit.
18063         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18064         Reported by Eric Blake.
18065
18066 2010-02-07  Bruno Haible  <bruno@clisp.org>
18067
18068         gnulib-tool: Fix up caching patches.
18069         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18070         option --no-cache. Use associative arrays when supported by the shell.
18071         (sed_comments): New variable.
18072         (modcache): Renamed from do_cache.
18073         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18074         abbreviate unnecessarily.
18075         (have_associative): New variable.
18076         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18077         way also for ksh and zsh.
18078         (func_init_sed_convert_to_cache_statements): New function, extracted
18079         from func_cache_lookup_module. Add support for associative arrays.
18080         Don't set the c_MODULE_cached variable here. Ignore all lines before
18081         the first field header. Remove only the final newline, not all trailing
18082         newlines. Support empty fields correctly. Limit the use of 'eval' to
18083         assignments.
18084         (func_get_description, func_get_status, func_get_notice,
18085         func_get_applicability, func_get_filelist, func_get_dependencies,
18086         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18087         func_get_automake_snippet, func_get_include_directive,
18088         func_get_link_directive, func_get_license, func_get_maintainer):
18089         Update documentation. List the unoptimized code first. Add support for
18090         associative arrays. Limit the use of 'eval' to assignments.
18091         (func_get_applicability): Undo stylistic pessimisations.
18092         (func_get_automake_snippet, func_get_include_directive): Reduce code
18093         duplication.
18094         (func_modules_transitive_closure, func_modules_add_dummy,
18095         func_modules_notice, func_modules_to_filelist, func_add_file,
18096         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18097         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18098         func_create_testdir, func_create_megatestdir): Update documentation.
18099
18100 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18101
18102         * gnulib-tool (func_cache_lookup_module): Store the module name
18103         belonging to the cache variable; error out if two different
18104         module names map to the same cache variable name.
18105
18106 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18107
18108         gnulib-tool: Make caching optional.
18109         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18110         Update matching short versions of --no-changelog.
18111         (func_usage): Update.
18112         (sed_extract_cache_prog): Renamed from ...
18113         (sed_extract_prog): ... this; revert to old extraction script.
18114         (func_get_description, func_get_status)
18115         (func_get_notice, func_get_applicability, func_get_filelist)
18116         (func_get_dependencies, func_get_autoconf_early_snippet)
18117         (func_get_autoconf_snippet, func_get_automake_snippet)
18118         (func_get_include_directive, func_get_link_directive)
18119         (func_get_license, func_get_maintainer): If $do_cache is false,
18120         use old, non-caching extraction scripts.
18121         Suggestion by Bruno Haible.
18122
18123 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18124
18125         gnulib-tool: cache module metainformation.
18126         * gnulib-tool (sed_extract_prog): Match newline before each
18127         header, and rewrite header to a shell variable suffix.
18128         (func_cache_var, func_cache_lookup_module): New functions,
18129         to turn a module name into a cache variable prefix, and to
18130         look up and cache module metainformation.
18131         (func_get_description, func_get_status)
18132         (func_get_notice, func_get_applicability, func_get_filelist)
18133         (func_get_dependencies, func_get_autoconf_early_snippet)
18134         (func_get_autoconf_snippet, func_get_automake_snippet)
18135         (func_get_include_directive, func_get_link_directive)
18136         (func_get_license, func_get_maintainer): Use
18137         func_cache_lookup_module.
18138
18139 2010-02-07  Bruno Haible  <bruno@clisp.org>
18140
18141         fnctl: Fix missing dependency.
18142         * modules/fcntl (Depends-on): Add getdtablesize.
18143         Reported by John W. Eaton <jwe@gnu.org>.
18144
18145 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18146
18147         Argp: fix recognition of short alias options.
18148
18149         * lib/argp-parse.c (convert_options): Fix improper use of
18150         `|' between character values.
18151         * tests/test-argp.c (group1_option): New alias option
18152         --read (-r).
18153         (group1_parser): Special handling for 'r'.
18154         (test15): New test case.
18155         (test_fun): Add test15.
18156         * tests/test-argp-2.sh: Update expected --help and --usage
18157         outputs.
18158
18159 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18160
18161         * tests/test-argp.c: Fix indentation.
18162
18163 2010-02-04  Eric Blake  <ebb9@byu.net>
18164
18165         gettimeofday: expose type of second argument
18166         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18167         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18168         * tests/test-gettimeofday.c: Use it to silence warning.
18169         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18170         the issue.
18171
18172 2010-02-03  Jim Meyering  <meyering@redhat.com>
18173
18174         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18175         * lib/regcomp.c (TYPE_SIGNED): Define.
18176         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18177
18178         regcomp.c: avoid a new -Wshadow warning
18179         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18180
18181 2010-02-01  Jim Meyering  <meyering@redhat.com>
18182
18183         removing useless parentheses in cpp #define directives
18184         For motivation, see commit c0221df4, "define STREQ(a,b)
18185         consistently, removing useless parentheses"
18186         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18187         * lib/mountlist.c (MNT_IGNORE): Likewise.
18188         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18189
18190 2010-02-01  Eric Blake  <ebb9@byu.net>
18191
18192         sys_time: use link-warning
18193         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18194         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18195         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18196         * modules/sys_time (Depends-on): Add warn-on-use.
18197         (Makefile.am): Always build replacement.
18198         (configure.ac): Update substitutions.
18199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18200         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18201         bother with SYS_TIME_H.
18202         * modules/gettimeofday (configure.ac): Declare indicator.
18203         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18204         in use.
18205
18206         closein-tests: silence compiler warning
18207         * tests/test-closein.c (main): Ignore fread result.
18208         * modules/closein-tests (Depends-on): Add ignore-value.
18209
18210         tests: silence warning about system return
18211         * tests/test-areadlink-with-size.c (main): Ignore system result.
18212         * tests/test-areadlink.c (main): Likewise.
18213         * tests/test-areadlinkat-with-size.c (main): Likewise.
18214         * tests/test-areadlinkat.c (main): Likewise.
18215         * tests/test-canonicalize-lgpl.c (main): Likewise.
18216         * tests/test-canonicalize.c (main): Likewise.
18217         * tests/test-chown.c (main): Likewise.
18218         * tests/test-fchownat.c (main): Likewise.
18219         * tests/test-fdutimensat.c (main): Likewise.
18220         * tests/test-fstatat.c (main): Likewise.
18221         * tests/test-futimens.c (main): Likewise.
18222         * tests/test-lchown.c (main): Likewise.
18223         * tests/test-link.c (main): Likewise.
18224         * tests/test-linkat.c (main): Likewise.
18225         * tests/test-lstat.c (main): Likewise.
18226         * tests/test-mkdir.c (main): Likewise.
18227         * tests/test-mkdirat.c (main): Likewise.
18228         * tests/test-mkfifo.c (main): Likewise.
18229         * tests/test-mkfifoat.c (main): Likewise.
18230         * tests/test-mknod.c (main): Likewise.
18231         * tests/test-readlink.c (main): Likewise.
18232         * tests/test-remove.c (main): Likewise.
18233         * tests/test-rename.c (main): Likewise.
18234         * tests/test-renameat.c (main): Likewise.
18235         * tests/test-rmdir.c (main): Likewise.
18236         * tests/test-symlink.c (main): Likewise.
18237         * tests/test-symlinkat.c (main): Likewise.
18238         * tests/test-unlink.c (main): Likewise.
18239         * tests/test-unlinkat.c (main): Likewise.
18240         * tests/test-utimens.c (main): Likewise.
18241         * tests/test-utimensat.c (main): Likewise.
18242         * modules/areadlink-tests (Depends-on): Add ignore-value.
18243         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18244         * modules/areadlinkat-tests (Depends-on): Likewise.
18245         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18246         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18247         * modules/canonicalize-tests (Depends-on): Likewise.
18248         * modules/chown-tests (Depends-on): Likewise.
18249         * modules/fdutimensat-tests (Depends-on): Likewise.
18250         * modules/futimens-tests (Depends-on): Likewise.
18251         * modules/lchown-tests (Depends-on): Likewise.
18252         * modules/link-tests (Depends-on): Likewise.
18253         * modules/linkat-tests (Depends-on): Likewise.
18254         * modules/lstat-tests (Depends-on): Likewise.
18255         * modules/mkdir-tests (Depends-on): Likewise.
18256         * modules/mkfifo-tests (Depends-on): Likewise.
18257         * modules/mkfifoat-tests (Depends-on): Likewise.
18258         * modules/mknod-tests (Depends-on): Likewise.
18259         * modules/openat-tests (Depends-on): Likewise.
18260         * modules/readlink-tests (Depends-on): Likewise.
18261         * modules/remove-tests (Depends-on): Likewise.
18262         * modules/rename-tests (Depends-on): Likewise.
18263         * modules/renameat-tests (Depends-on): Likewise.
18264         * modules/rmdir-tests (Depends-on): Likewise.
18265         * modules/symlink-tests (Depends-on): Likewise.
18266         * modules/symlinkat-tests (Depends-on): Likewise.
18267         * modules/unlink-tests (Depends-on): Likewise.
18268         * modules/utimens-tests (Depends-on): Likewise.
18269         * modules/utimensat-tests (Depends-on): Likewise.
18270
18271 2010-01-31  Bruno Haible  <bruno@clisp.org>
18272
18273         Perform the same test for many <math.h> functions.
18274         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18275         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18276         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18277         of gl_MATHFUNC.
18278         * modules/acos (configure.ac): Likewise.
18279         * modules/asin (configure.ac): Likewise.
18280         * modules/atan (configure.ac): Likewise.
18281         * modules/atan2 (configure.ac): Likewise.
18282         * modules/cbrt (configure.ac): Likewise.
18283         * modules/copysign (configure.ac): Likewise.
18284         * modules/cos (configure.ac): Likewise.
18285         * modules/cosh (configure.ac): Likewise.
18286         * modules/erf (configure.ac): Likewise.
18287         * modules/erfc (configure.ac): Likewise.
18288         * modules/exp (configure.ac): Likewise.
18289         * modules/fmod (configure.ac): Likewise.
18290         * modules/hypot (configure.ac): Likewise.
18291         * modules/j0 (configure.ac): Likewise.
18292         * modules/j1 (configure.ac): Likewise.
18293         * modules/jn (configure.ac): Likewise.
18294         * modules/lgamma (configure.ac): Likewise.
18295         * modules/log (configure.ac): Likewise.
18296         * modules/log10 (configure.ac): Likewise.
18297         * modules/log1p (configure.ac): Likewise.
18298         * modules/pow (configure.ac): Likewise.
18299         * modules/remainder (configure.ac): Likewise.
18300         * modules/sin (configure.ac): Likewise.
18301         * modules/sinh (configure.ac): Likewise.
18302         * modules/tan (configure.ac): Likewise.
18303         * modules/tanh (configure.ac): Likewise.
18304         * modules/y0 (configure.ac): Likewise.
18305         * modules/y1 (configure.ac): Likewise.
18306         * modules/yn (configure.ac): Likewise.
18307         Suggested by Paolo Bonzini.
18308
18309 2010-01-31  Bruno Haible  <bruno@clisp.org>
18310
18311         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18312
18313 2010-01-31  Bruno Haible  <bruno@clisp.org>
18314
18315         Work around getdelim() bug on FreeBSD 8.0.
18316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18317         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18318         not work.
18319         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18320         is 1.
18321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18322         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18323         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18324         a non-zero size.
18325         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18326
18327 2010-01-31  Bruno Haible  <bruno@clisp.org>
18328
18329         Work around getline() bug on FreeBSD 8.0.
18330         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18331         and a non-zero size.
18332         * tests/test-getline.c (main): Likewise.
18333         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18334         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18335
18336 2010-01-28  Eric Blake  <ebb9@byu.net>
18337
18338         regex: fix build failure
18339         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18340         platforms.
18341
18342 2010-01-28  Jim Meyering  <meyering@redhat.com>
18343
18344         regex: do not ignore memory allocation failure
18345         * lib/regex_internal.c (create_cd_newstate): Detect
18346         re_node_set_init_copy failure.   Extracted from glibc commit
18347         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18348
18349         regex: sync more white-space changes from libc
18350         * lib/regex_internal.c: White-space only changes.
18351         * lib/regexec.c: Likewise.
18352
18353         regex: add many uses of __attribute_warn_unused_result__
18354         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18355         * lib/regexec.c: Likewise.
18356         Extracted from a messy glibc commit.
18357
18358         regcomp.c: spelling and merge-artifact from glibc
18359         * lib/regcomp.c: Merge remainder of glibc's
18360         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18361
18362         regcomp.c: sync white-space changes from glibc
18363         * lib/regcomp.c: Merge to accommodate white space
18364         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18365
18366         regcomp.c: do not ignore internal return values
18367         * lib/regcomp.c: Do not ignore internal return values.
18368         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18369         but without its white-space changes and spelling fixes.
18370
18371         regex_internal.h: define __attribute_warn_unused_result__
18372         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18373
18374         maint: add a syntax-check rule to check for vulnerable Makefile.in
18375         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18376
18377 2010-01-27  Jim Meyering  <meyering@redhat.com>
18378
18379         ncftpput-ftp: clean up spaces
18380         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18381         Remove trailing blanks.
18382
18383 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18384
18385         * build-aux/git-version-gen: Fix copyright statement.
18386         * build-aux/gnupload: Likewise.
18387         * tests/test-arcfour.c: Likewise.
18388         * tests/test-arctwo.c: Likewise.
18389         * tests/test-count-one-bits.c: Likewise.
18390         * tests/test-crc.c: Likewise.
18391         * tests/test-des.c: Likewise.
18392         * tests/test-gc-arcfour.c: Likewise.
18393         * tests/test-gc-arctwo.c: Likewise.
18394         * tests/test-gc-des.c: Likewise.
18395         * tests/test-gc-hmac-md5.c: Likewise.
18396         * tests/test-gc-hmac-sha1.c: Likewise.
18397         * tests/test-gc-md2.c: Likewise.
18398         * tests/test-gc-md4.c: Likewise.
18399         * tests/test-gc-md5.c: Likewise.
18400         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18401         * tests/test-gc-rijndael.c: Likewise.
18402         * tests/test-gc-sha1.c: Likewise.
18403         * tests/test-gc.c: Likewise.
18404         * tests/test-gethostname.c: Likewise.
18405         * tests/test-gettimeofday.c: Likewise.
18406         * tests/test-hash.c: Likewise.
18407         * tests/test-hmac-md5.c: Likewise.
18408         * tests/test-hmac-sha1.c: Likewise.
18409         * tests/test-md2.c: Likewise.
18410         * tests/test-md4.c: Likewise.
18411         * tests/test-md5.c: Likewise.
18412         * tests/test-memchr.c: Likewise.
18413         * tests/test-memchr2.c: Likewise.
18414         * tests/test-memcmp.c: Likewise.
18415         * tests/test-memmem.c: Likewise.
18416         * tests/test-memrchr.c: Likewise.
18417         * tests/test-rawmemchr.c: Likewise.
18418         * tests/test-read-file.c: Likewise.
18419         * tests/test-rijndael.c: Likewise.
18420         * tests/test-sockets.c: Likewise.
18421         * tests/test-strchrnul.c: Likewise.
18422         * tests/test-strstr.c: Likewise.
18423         * tests/test-strtod.c: Likewise.
18424         * build-aux/ncftpput-ftp: Likewise.
18425
18426 2010-01-26  Eric Blake  <ebb9@byu.net>
18427
18428         ignore-value: update recommended header name
18429         * modules/ignore-value (Include): Only use <> for headers that
18430         exist in glibc.
18431
18432 2010-01-26  Jim Meyering  <meyering@redhat.com>
18433
18434         test-userspec.c: avoid compiler warnings
18435         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18436         and "initialization discards qualifiers..." warnings.
18437         Put the first "uid" in its own scope, and make char* members "const".
18438
18439 2010-01-25  Bruno Haible  <bruno@clisp.org>
18440
18441         gnulib-tool: Make warning diagnostics consistent.
18442         * gnulib-tool (func_warning): New function.
18443         Use it everywhere where gnulib-tool produces output to stderr and it is
18444         not a fatal error.
18445
18446 2010-01-25  Bruno Haible  <bruno@clisp.org>
18447
18448         Fix test dependencies.
18449         * modules/xstrtol-tests (Depends-on): Add inttypes.
18450         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18451
18452 2010-01-25 Pádraig Brady <P@draigBrady.com>
18453
18454         syntax-check: detect incorrect boolean macro values in config.h
18455         * modules/maintainer-makefile (configure.ac): Parameterize the location
18456         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18457         The logic is from Eric Blake and the location indicated by Jim Meyering.
18458         Note the more natural CONFIG_HEADER name is prohibited by automake
18459         for backwards compatibility reasons.
18460         * top/maint.mk (sc_Wundef_boolean): New rule.
18461
18462 2010-01-25  Jim Meyering  <meyering@redhat.com>
18463
18464         bootstrap: detect MacOS 10.6's shasum, too
18465         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18466         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18467
18468 2010-01-23  Jim Meyering  <meyering@redhat.com>
18469
18470         xstrtoll: new module
18471         * modules/xstrtoll: New file.
18472         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18473         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18474         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18475         ./configure fails if you use this module and lack "long long".
18476         * modules/xstrtoll-tests: New module.
18477         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18478         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18479         new init.sh-based test framework.
18480
18481 2010-01-24  Bruno Haible  <bruno@clisp.org>
18482
18483         Tests for module 'yn'.
18484         * modules/yn-tests: New file.
18485         * tests/test-yn.c: New file.
18486
18487         Tests for module 'y1'.
18488         * modules/y1-tests: New file.
18489         * tests/test-y1.c: New file.
18490
18491         Tests for module 'y0'.
18492         * modules/y0-tests: New file.
18493         * tests/test-y0.c: New file.
18494
18495         Tests for module 'tanh'.
18496         * modules/tanh-tests: New file.
18497         * tests/test-tanh.c: New file.
18498
18499         Tests for module 'tan'.
18500         * modules/tan-tests: New file.
18501         * tests/test-tan.c: New file.
18502
18503         Tests for module 'sqrt'.
18504         * modules/sqrt-tests: New file.
18505         * tests/test-sqrt.c: New file.
18506
18507         Tests for module 'sinh'.
18508         * modules/sinh-tests: New file.
18509         * tests/test-sinh.c: New file.
18510
18511         Tests for module 'sin'.
18512         * modules/sin-tests: New file.
18513         * tests/test-sin.c: New file.
18514
18515         Tests for module 'rint'.
18516         * modules/rint-tests: New file.
18517         * tests/test-rint.c: New file.
18518
18519         Tests for module 'remainder'.
18520         * modules/remainder-tests: New file.
18521         * tests/test-remainder.c: New file.
18522
18523         Tests for module 'pow'.
18524         * modules/pow-tests: New file.
18525         * tests/test-pow.c: New file.
18526
18527         Tests for module 'nextafter'.
18528         * modules/nextafter-tests: New file.
18529         * tests/test-nextafter.c: New file.
18530
18531         Tests for module 'modf'.
18532         * modules/modf-tests: New file.
18533         * tests/test-modf.c: New file.
18534
18535         Tests for module 'logb'.
18536         * modules/logb-tests: New file.
18537         * tests/test-logb.c: New file.
18538
18539         Tests for module 'log1p'.
18540         * modules/log1p-tests: New file.
18541         * tests/test-log1p.c: New file.
18542
18543         Tests for module 'log10'.
18544         * modules/log10-tests: New file.
18545         * tests/test-log10.c: New file.
18546
18547         Tests for module 'log'.
18548         * modules/log-tests: New file.
18549         * tests/test-log.c: New file.
18550
18551         Tests for module 'lgamma'.
18552         * modules/lgamma-tests: New file.
18553         * tests/test-lgamma.c: New file.
18554
18555         Tests for module 'ldexp'.
18556         * modules/ldexp-tests: New file.
18557         * tests/test-ldexp.c: New file.
18558
18559         Tests for module 'jn'.
18560         * modules/jn-tests: New file.
18561         * tests/test-jn.c: New file.
18562
18563         Tests for module 'j1'.
18564         * modules/j1-tests: New file.
18565         * tests/test-j1.c: New file.
18566
18567         Tests for module 'j0'.
18568         * modules/j0-tests: New file.
18569         * tests/test-j0.c: New file.
18570
18571         Tests for module 'hypot'.
18572         * modules/hypot-tests: New file.
18573         * tests/test-hypot.c: New file.
18574
18575         Tests for module 'fmod'.
18576         * modules/fmod-tests: New file.
18577         * tests/test-fmod.c: New file.
18578
18579         Tests for module 'fabs'.
18580         * modules/fabs-tests: New file.
18581         * tests/test-fabs.c: New file.
18582
18583         Tests for module 'exp'.
18584         * modules/exp-tests: New file.
18585         * tests/test-exp.c: New file.
18586
18587         Tests for module 'erfc'.
18588         * modules/erfc-tests: New file.
18589         * tests/test-erfc.c: New file.
18590
18591         Tests for module 'erf'.
18592         * modules/erf-tests: New file.
18593         * tests/test-erf.c: New file.
18594
18595         Tests for module 'cosh'.
18596         * modules/cosh-tests: New file.
18597         * tests/test-cosh.c: New file.
18598
18599         Tests for module 'cos'.
18600         * modules/cos-tests: New file.
18601         * tests/test-cos.c: New file.
18602
18603         Tests for module 'copysign'.
18604         * modules/copysign-tests: New file.
18605         * tests/test-copysign.c: New file.
18606
18607         Tests for module 'cbrt'.
18608         * modules/cbrt-tests: New file.
18609         * tests/test-cbrt.c: New file.
18610
18611         Tests for module 'atan2'.
18612         * modules/atan2-tests: New file.
18613         * tests/test-atan2.c: New file.
18614
18615         Tests for module 'atan'.
18616         * modules/atan-tests: New file.
18617         * tests/test-atan.c: New file.
18618
18619         Tests for module 'asin'.
18620         * modules/asin-tests: New file.
18621         * tests/test-asin.c: New file.
18622
18623         Tests for module 'acos'.
18624         * modules/acos-tests: New file.
18625         * tests/test-acos.c: New file.
18626
18627 2010-01-24  Bruno Haible  <bruno@clisp.org>
18628
18629         Fix tests for common <math.h> functions.
18630         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18631         code snippet that references the function pointer, rather than merely
18632         calling the function. Substitute the FUNC_LIBM variable.
18633         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18634         * modules/acos (configure.ac): Likewise.
18635         * modules/asin (configure.ac): Likewise.
18636         * modules/atan (configure.ac): Likewise.
18637         * modules/atan2 (configure.ac): Likewise.
18638         * modules/cbrt (configure.ac): Likewise.
18639         * modules/copysign (configure.ac): Likewise.
18640         * modules/cos (configure.ac): Likewise.
18641         * modules/cosh (configure.ac): Likewise.
18642         * modules/erf (configure.ac): Likewise.
18643         * modules/erfc (configure.ac): Likewise.
18644         * modules/exp (configure.ac): Likewise.
18645         * modules/fabs (configure.ac): Likewise.
18646         * modules/fmod (configure.ac): Likewise.
18647         * modules/hypot (configure.ac): Likewise.
18648         * modules/j0 (configure.ac): Likewise.
18649         * modules/j1 (configure.ac): Likewise.
18650         * modules/jn (configure.ac): Likewise.
18651         * modules/ldexp (configure.ac): Likewise.
18652         * modules/lgamma (configure.ac): Likewise.
18653         * modules/log (configure.ac): Likewise.
18654         * modules/log10 (configure.ac): Likewise.
18655         * modules/log1p (configure.ac): Likewise.
18656         * modules/logb (configure.ac): Likewise.
18657         * modules/modf (configure.ac): Likewise.
18658         * modules/nextafter (configure.ac): Likewise.
18659         * modules/pow (configure.ac): Likewise.
18660         * modules/remainder (configure.ac): Likewise.
18661         * modules/rint (configure.ac): Likewise.
18662         * modules/sin (configure.ac): Likewise.
18663         * modules/sinh (configure.ac): Likewise.
18664         * modules/tan (configure.ac): Likewise.
18665         * modules/tanh (configure.ac): Likewise.
18666         * modules/y0 (configure.ac): Likewise.
18667         * modules/y1 (configure.ac): Likewise.
18668         * modules/yn (configure.ac): Likewise.
18669
18670 2010-01-24  Bruno Haible  <bruno@clisp.org>
18671
18672         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18673         * tests/test-acosl.c (x): New variable.
18674         (main): Store argument in x and fetch it from x.
18675         * tests/test-asinl.c (x): New variable.
18676         (main): Store argument in x and fetch it from x.
18677         * tests/test-atanl.c (x): New variable.
18678         (main): Store argument in x and fetch it from x.
18679         * tests/test-cosl.c (x): New variable.
18680         (main): Store argument in x and fetch it from x.
18681         * tests/test-expl.c (x): New variable.
18682         (main): Store argument in x and fetch it from x.
18683         * tests/test-logl.c (x): New variable.
18684         (main): Store argument in x and fetch it from x.
18685         * tests/test-sinl.c (x): New variable.
18686         (main): Store argument in x and fetch it from x.
18687         * tests/test-sqrtl.c (x): New variable.
18688         (main): Store argument in x and fetch it from x.
18689         * tests/test-tanl.c (x): New variable.
18690         (main): Store argument in x and fetch it from x.
18691
18692 2010-01-24  Bruno Haible  <bruno@clisp.org>
18693
18694         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18695         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18696         assignments to the initial TESTS_ENVIRONMENT.
18697         * doc/gnulib.texi (Unit test modules): Document it.
18698         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18699         TESTS_ENVIRONMENT.
18700         * modules/btowc-tests (Makefile.am): Likewise.
18701         * modules/c-stack-tests (Makefile.am): Likewise.
18702         * modules/c-strcase-tests (Makefile.am): Likewise.
18703         * modules/copy-file-tests (Makefile.am): Likewise.
18704         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18705         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18706         * modules/mbrtowc-tests (Makefile.am): Likewise.
18707         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18708         * modules/mbscasestr-tests (Makefile.am): Likewise.
18709         * modules/mbschr-tests (Makefile.am): Likewise.
18710         * modules/mbscspn-tests (Makefile.am): Likewise.
18711         * modules/mbsinit-tests (Makefile.am): Likewise.
18712         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18713         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18714         * modules/mbspbrk-tests (Makefile.am): Likewise.
18715         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18716         * modules/mbsrchr-tests (Makefile.am): Likewise.
18717         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18718         * modules/mbsspn-tests (Makefile.am): Likewise.
18719         * modules/mbsstr-tests (Makefile.am): Likewise.
18720         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18721         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18722         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18723         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18724         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18725         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18726         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18727         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18728         * modules/wcrtomb-tests (Makefile.am): Likewise.
18729         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18730         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18731         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18732         assignments from TESTS_ENVIRONMENT.
18733         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18734         augmentation.
18735         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18736         * modules/atexit-tests (Makefile.am): Likewise.
18737         * modules/binary-io-tests (Makefile.am): Likewise.
18738         * modules/closein-tests (Makefile.am): Likewise.
18739         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18740         * modules/exclude-tests (Makefile.am): Likewise.
18741         * modules/fflush-tests (Makefile.am): Likewise.
18742         * modules/fpending-tests (Makefile.am): Likewise.
18743         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18744         * modules/freadahead-tests (Makefile.am): Likewise.
18745         * modules/freadptr-tests (Makefile.am): Likewise.
18746         * modules/freadseek-tests (Makefile.am): Likewise.
18747         * modules/fseek-tests (Makefile.am): Likewise.
18748         * modules/fseeko-tests (Makefile.am): Likewise.
18749         * modules/ftell-tests (Makefile.am): Likewise.
18750         * modules/ftello-tests (Makefile.am): Likewise.
18751         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18752         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18753         * modules/lseek-tests (Makefile.am): Likewise.
18754         * modules/parse-duration-tests (Makefile.am): Likewise.
18755         * modules/perror-tests (Makefile.am): Likewise.
18756         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18757         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18758         * modules/pipe-tests (Makefile.am): Likewise.
18759         * modules/pread-tests (Makefile.am): Likewise.
18760         * modules/printf-posix-tests (Makefile.am): Likewise.
18761         * modules/select-tests (Makefile.am): Likewise.
18762         * modules/sigpipe-tests (Makefile.am): Likewise.
18763         * modules/tsearch-tests (Makefile.am): Likewise.
18764         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18765         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18766         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18767         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18768         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18769         * modules/version-etc-tests (Makefile.am): Likewise.
18770         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18771         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18772         * modules/xalloc-die-tests (Makefile.am): Likewise.
18773         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18774         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18775         * modules/xstrtol-tests (Makefile.am): Likewise.
18776         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18777         * modules/yesno-tests (Makefile.am): Likewise.
18778         Suggested by Jim Meyering.
18779
18780 2010-01-24  Bruno Haible  <bruno@clisp.org>
18781
18782         More documentation.
18783         * doc/gnulib.texi (Writing modules): New chapter.
18784         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18785         the new chapter.
18786
18787 2010-01-24  Jim Meyering  <meyering@redhat.com>
18788
18789         maint.mk: do not prepend "./" after filtering
18790         * top/maint.mk (_prepend_srcdir_prefix): New variable
18791         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18792         "./" when $(srcdir) is ".".
18793
18794         define STREQ(a,b) consistently, removing useless parentheses
18795         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18796         since the only risk is that "a" or "b" contains an unparenthesized
18797         comma, but if either did that, STREQ would have 3 or more arguments.
18798         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18799         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18800         * lib/hash-triple.c (STREQ): Likewise.
18801         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18802         * lib/getugroups.c (STREQ): Likewise.
18803
18804 2010-01-23  Jim Meyering  <meyering@redhat.com>
18805
18806         maint.mk: fix syntax-check in a non-srcdir build directory
18807         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18808         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18809
18810 2010-01-22  Jim Meyering  <meyering@redhat.com>
18811
18812         userspec: add unit tests
18813         * tests/test-userspec.c: New file.
18814         * modules/userspec-tests: Likewise.
18815
18816 2010-01-21  Jim Meyering  <meyering@redhat.com>
18817
18818         maint.mk: handle source file names containing "." robustly
18819         * top/maint.mk (_dot_escaped_srcdir): Define.
18820         (VC_LIST): Use it in LHS of sed substitution.
18821
18822 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18823
18824         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18825         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18826         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18827         from a non-srcdir build.
18828
18829 2010-01-20  Eric Blake  <ebb9@byu.net>
18830
18831         warn-on-use: use instead of link-warning
18832         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18833         * modules/unistd (Depends-on, Makefile.am): Likewise.
18834         * modules/arpa_inet (Depends-on): Replace link-warning with
18835         warn-on-use.
18836         (Makefile.am): Update rules accordingly.
18837         * modules/ctype (Depends-on, Makefile.am): Likewise.
18838         * modules/dirent (Depends-on, Makefile.am): Likewise.
18839         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18840         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18841         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18842         * modules/locale (Depends-on, Makefile.am): Likewise.
18843         * modules/math (Depends-on, Makefile.am): Likewise.
18844         * modules/search (Depends-on, Makefile.am): Likewise.
18845         * modules/signal (Depends-on, Makefile.am): Likewise.
18846         * modules/spawn (Depends-on, Makefile.am): Likewise.
18847         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18848         * modules/string (Depends-on, Makefile.am): Likewise.
18849         * modules/strings (Depends-on, Makefile.am): Likewise.
18850         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18851         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18852         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18853         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18854         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18855         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18856         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18857         * modules/wchar (Depends-on, Makefile.am): Likewise.
18858         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18859         should be poisoned.
18860         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18861         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18862         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18863         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18864         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18865         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18866         * m4/math_h.m4 (gl_MATH_H): Likewise.
18867         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18868         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18869         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18870         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18871         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18872         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18873         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18874         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18875         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18878         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18879         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18880         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18881         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18882         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18883         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18884         GL_LINK_WARNING.
18885         * lib/ctype.in.h: Likewise.
18886         * lib/dirent.in.h: Likewise.
18887         * lib/fcntl.in.h: Likewise.
18888         * lib/inttypes.in.h: Likewise.
18889         * lib/langinfo.in.h: Likewise.
18890         * lib/locale.in.h: Likewise.
18891         * lib/math.in.h: Likewise.
18892         * lib/search.in.h: Likewise.
18893         * lib/signal.in.h: Likewise.
18894         * lib/spawn.in.h: Likewise.
18895         * lib/stdio.in.h: Likewise.
18896         * lib/stdlib.in.h: Likewise.
18897         * lib/string.in.h: Likewise.
18898         * lib/strings.in.h: Likewise.
18899         * lib/sys_file.in.h: Likewise.
18900         * lib/sys_ioctl.in.h: Likewise.
18901         * lib/sys_select.in.h: Likewise.
18902         * lib/sys_socket.in.h: Likewise.
18903         * lib/sys_stat.in.h: Likewise.
18904         * lib/sys_times.in.h: Likewise.
18905         * lib/sys_utsname.in.h: Likewise.
18906         * lib/unistd.in.h: Likewise.
18907         * lib/wchar.in.h: Likewise.
18908
18909 2010-01-20  Bruno Haible  <bruno@clisp.org>
18910
18911         Avoid duplicate -lm.
18912         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18913         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18915         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18916         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18917         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18918         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18919         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18920         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18921         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18922         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18923         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18924         Reported by Paolo Bonzini.
18925
18926 2010-01-19  Bruno Haible  <bruno@clisp.org>
18927
18928         langinfo, nl_langinfo: Relicense under LGPLv2+.
18929         * modules/langinfo (License): Change to LGPLv2+.
18930         * modules/nl_langinfo (License): Likewise.
18931         Patch by David Lutterkort <lutter@redhat.com>.
18932
18933 2010-01-19  Bruno Haible  <bruno@clisp.org>
18934
18935         Avoid compilation error with cc on OSF/1 5.1.
18936         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18937         statement, not before.
18938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18939
18940 2010-01-18  Bruno Haible  <bruno@clisp.org>
18941
18942         Avoid a link error due to the __printf__ symbol.
18943         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18944         and 2.6.x.
18945         (__format__, __printf__): Remove definitions.
18946         * lib/argp-fmtstream.h: Likewise.
18947         * lib/argp.h: Likewise.
18948         * lib/error.h: Likewise.
18949         * lib/vasnprintf.h: Likewise.
18950         * lib/xprintf.h: Likewise.
18951         * lib/xvasprintf.h: Likewise.
18952         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18953
18954 2010-01-18  Bruno Haible  <bruno@clisp.org>
18955
18956         Tests for module 'tanl'.
18957         * modules/tanl-tests: New file.
18958         * tests/test-tanl.c: New file.
18959
18960         Tests for module 'sqrtl'.
18961         * modules/sqrtl-tests: New file.
18962         * tests/test-sqrtl.c: New file.
18963
18964         Tests for module 'sinl'.
18965         * modules/sinl-tests: New file.
18966         * tests/test-sinl.c: New file.
18967
18968         Tests for module 'logl'.
18969         * modules/logl-tests: New file.
18970         * tests/test-logl.c: New file.
18971
18972         Tests for module 'expl'.
18973         * modules/expl-tests: New file.
18974         * tests/test-expl.c: New file.
18975
18976         Tests for module 'cosl'.
18977         * modules/cosl-tests: New file.
18978         * tests/test-cosl.c: New file.
18979
18980         Tests for module 'atanl'.
18981         * modules/atanl-tests: New file.
18982         * tests/test-atanl.c: New file.
18983
18984         Tests for module 'asinl'.
18985         * modules/asinl-tests: New file.
18986         * tests/test-asinl.c: New file.
18987
18988         Tests for module 'acosl'.
18989         * modules/acosl-tests: New file.
18990         * tests/test-acosl.c: New file.
18991
18992         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18993         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18994         tanl): Use the standard gnulib idiom.
18995         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18996         * lib/sinl.c: Likewise.
18997         * lib/tanl.c: Don't include trigl.c.
18998         (kernel_tanl): Make static.
18999         * lib/sincosl.c: Include trigl.h first.
19000         * lib/trigl.c: Likewise.
19001         * m4/acosl.m4: New file.
19002         * m4/asinl.m4: New file.
19003         * m4/atanl.m4: New file.
19004         * m4/cosl.m4: New file.
19005         * m4/expl.m4: New file.
19006         * m4/logl.m4: New file.
19007         * m4/sinl.m4: New file.
19008         * m4/sqrtl.m4: New file.
19009         * m4/tanl.m4: New file.
19010         * m4/mathl.m4: Remove file.
19011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19012         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19013         Don't initialize GNULIB_MATHL.
19014         * modules/acosl: New file.
19015         * modules/asinl: New file.
19016         * modules/atanl: New file.
19017         * modules/cosl: New file.
19018         * modules/expl: New file.
19019         * modules/logl: New file.
19020         * modules/sinl: New file.
19021         * modules/sqrtl: New file.
19022         * modules/tanl: New file.
19023         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19024         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19025         substitute GNULIB_MATHL.
19026         * modules/mathl: Rewritten.
19027         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19028         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19029         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19030         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19031         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19032         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19033         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19034         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19035         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19036
19037 2010-01-18  Bruno Haible  <bruno@clisp.org>
19038
19039         sqrt: Make gl_FUNC_SQRT requirable.
19040         * m4/sqrt.m4: New file.
19041         * modules/sqrt (Files): Add it.
19042         (configure.ac): Invoke gl_FUNC_SQRT.
19043
19044 2010-01-18  Bruno Haible  <bruno@clisp.org>
19045
19046         New modules for common <math.h> functions.
19047         * m4/mathfunc.m4: New file.
19048         * modules/acos: New file.
19049         * modules/asin: New file.
19050         * modules/atan: New file.
19051         * modules/atan2: New file.
19052         * modules/cbrt: New file.
19053         * modules/copysign: New file.
19054         * modules/cos: New file.
19055         * modules/cosh: New file.
19056         * modules/erf: New file.
19057         * modules/erfc: New file.
19058         * modules/exp: New file.
19059         * modules/fabs: New file.
19060         * modules/fmod: New file.
19061         * modules/hypot: New file.
19062         * modules/j0: New file.
19063         * modules/j1: New file.
19064         * modules/jn: New file.
19065         * modules/ldexp: New file.
19066         * modules/lgamma: New file.
19067         * modules/log: New file.
19068         * modules/log10: New file.
19069         * modules/log1p: New file.
19070         * modules/logb: New file.
19071         * modules/modf: New file.
19072         * modules/nextafter: New file.
19073         * modules/pow: New file.
19074         * modules/remainder: New file.
19075         * modules/rint: New file.
19076         * modules/sin: New file.
19077         * modules/sinh: New file.
19078         * modules/sqrt: New file.
19079         * modules/tan: New file.
19080         * modules/tanh: New file.
19081         * modules/y0: New file.
19082         * modules/y1: New file.
19083         * modules/yn: New file.
19084         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19085         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19086         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19087         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19088         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19089         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19090         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19091         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19092         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19093         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19094         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19095         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19096         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19097         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19098         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19099         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19100         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19101         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19102         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19103         * doc/posix-functions/log.texi: Mention the 'log' module.
19104         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19105         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19106         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19107         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19108         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19109         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19110         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19111         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19112         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19113         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19114         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19115         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19116         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19117         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19118         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19119         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19120
19121 2010-01-18  Jim Meyering  <meyering@redhat.com>
19122
19123         ignore-value: relax license to LGPLv2+
19124         * modules/ignore-value (License): Relax to LGPLv2+.
19125
19126         getdate: don't leak when TZ contains two or more '"'s
19127         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19128         double quote in TZ after the first one.
19129
19130         readtokens: do not leak internal token_lengths buffer
19131         * lib/readtokens.c (readtokens): Free the local, lengths,
19132         when the supplied "token_lengths" parameter is NULL.
19133
19134 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19135
19136         Fix a couple of missing LIBTHREAD link failures on AIX.
19137         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19138         $(LIBTHREAD).
19139         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19140
19141         Link test-poll against INET_PTON_LIB.
19142         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19143         for inet_pton on Solaris 10.
19144
19145 2010-01-17  Bruno Haible  <bruno@clisp.org>
19146
19147         unistdio/*-sprintf: Fix typo in module description.
19148         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19149         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19150         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19151         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19152         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19153         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19154         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19155         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19156
19157 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19158
19159         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19160         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19161         variables in shell case patterns, for AIX and HP-UX ksh.
19162
19163         Split large sed scripts, for HP-UX sed.
19164         * modules/stdio: Split sed scripts around 50 sed commands,
19165         to avoid HP-UX limit of 99 commands, in the near future.
19166         * modules/string: Likewise.
19167         * modules/unistd: Likewise.
19168
19169         gnulib-tool: avoid writing in the current directory.
19170         * gnulib-tool (func_emit_lib_Makefile_am)
19171         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19172         not in the current directory, so concurrent gnulib-tool
19173         instances do not interfere.
19174
19175 2010-01-16  Jim Meyering  <meyering@redhat.com>
19176
19177         doc: update users.txt
19178         * users.txt: Add grep.
19179         (diffutils, gzip): Update URLs.
19180
19181 2010-01-12  Bruno Haible  <bruno@clisp.org>
19182
19183         posix_spawn: Avoid test failure on Cygwin.
19184         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19185         characters.
19186         Reported by Simon Josefsson.
19187
19188 2010-01-12  Bruno Haible  <bruno@clisp.org>
19189
19190         * tests/test-cond.c (main): When skipping the test, show the reason.
19191
19192 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19193
19194         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19195
19196 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19197
19198         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19199         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19200
19201 2010-01-12  Eric Blake  <ebb9@byu.net>
19202
19203         build: guarantee AS_VAR_IF
19204         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19205         (gl_AS_VAR_IF): Move...
19206         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19207         Reported by Simon Josefsson.
19208
19209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19210
19211         * lib/stdio.in.h: Fix typo.
19212
19213 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19214
19215         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19216         libgpg-error.
19217
19218 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19219
19220         * tests/test-xalloc-die.sh: Use $EXEEXT.
19221
19222 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19223             Bruno Haible  <bruno@clisp.org>
19224
19225         getlogin, getlogin_r: Avoid test failure.
19226         * tests/test-getlogin.c: Include <stdio.h>.
19227         (main): Skip the test when the function fails because stdin is not a
19228         tty.
19229         * tests/test-getlogin_r.c: Include <stdio.h>.
19230         (main): Skip the test when the function fails because stdin is not a
19231         tty.
19232
19233 2010-01-11  Eric Blake  <ebb9@byu.net>
19234
19235         tests: avoid more large file warnings
19236         * tests/test-fflush.c: Avoid warning about ftell use.
19237         * tests/test-fseek.c: Avoid warning about fseek use.
19238
19239 2010-01-10  Bruno Haible  <bruno@clisp.org>
19240
19241         nproc: Work better on Linux when /proc and /sys are not mounted.
19242         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19243         as lower bound when, on glibc/Linux systems,
19244         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19245         Suggested by Pádraig Brady <P@draigbrady.com>.
19246         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19247
19248         nproc: Refactor.
19249         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19250         extracted from num_processors.
19251         (num_processors): Call it.
19252
19253 2010-01-11  Jim Meyering  <meyering@redhat.com>
19254
19255         utimecmp: avoid new warning from upcoming gcc-4.5.0
19256         * lib/utimecmp.c (BILLION): Define using #define rather than an
19257         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19258
19259 2010-01-11  Eric Blake  <ebb9@byu.net>
19260
19261         math: add portability warnings for classification macros
19262         * modules/math (Depends-on): Add warn-on-use.
19263         (Makefile.am): Provide new substitutions.
19264         * m4/math_h.m4 (gl_MATH_H): Require inline.
19265         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19266         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19267         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19268         implement warnings.
19269
19270         unistd: warn on use of environ without module
19271         * modules/unistd (Depends-on): Add warn-on-use.
19272         (Makefile.am): Provide new substitutions.
19273         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19274         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19275
19276         stdio: warn on suspicious uses
19277         * modules/stdio (Depends-on): Add warn-on-use.
19278         (Makefile.am): Provide new substitutions.
19279         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19280         fseeko.
19281         * lib/stdio.in.h (gets): Always warn on use.
19282         (fseek, ftell): Adjust when warnings are issued, and honor
19283         _GL_NO_LARGE_FILES as a way to silence the warning.
19284         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19285         any warning about large file offsets.
19286         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19287         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19288         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19289         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19290         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19291         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19292         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19293         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19294
19295         warn-on-use: new module
19296         * modules/warn-on-use: New file.
19297         * build-aux/warn-on-use.h: Likewise.
19298         * m4/warn-on-use.m4: Likewise.
19299         * MODULES.html.sh (Support for building): Mention it.
19300
19301 2010-01-10  Bruno Haible  <bruno@clisp.org>
19302
19303         Tests for module 'unistr/u32-strdup'.
19304         * modules/unistr/u32-strdup-tests: New file.
19305         * tests/unistr/test-u32-strdup.c: New file.
19306
19307         Tests for module 'unistr/u16-strdup'.
19308         * modules/unistr/u16-strdup-tests: New file.
19309         * tests/unistr/test-u16-strdup.c: New file.
19310
19311         Tests for module 'unistr/u8-strdup'.
19312         * modules/unistr/u8-strdup-tests: New file.
19313         * tests/unistr/test-u8-strdup.c: New file.
19314         * tests/unistr/test-strdup.h: New file.
19315
19316         Tests for module 'unistr/u32-strncmp'.
19317         * modules/unistr/u32-strncmp-tests: New file.
19318         * tests/unistr/test-u32-strncmp.c: New file.
19319
19320         Tests for module 'unistr/u16-strncmp'.
19321         * modules/unistr/u16-strncmp-tests: New file.
19322         * tests/unistr/test-u16-strncmp.c: New file.
19323
19324         Tests for module 'unistr/u8-strncmp'.
19325         * modules/unistr/u8-strncmp-tests: New file.
19326         * tests/unistr/test-u8-strncmp.c: New file.
19327         * tests/unistr/test-strncmp.h: New file.
19328
19329         Tests for module 'unistr/u32-strcoll'.
19330         * modules/unistr/u32-strcoll-tests: New file.
19331         * tests/unistr/test-u32-strcoll.c: New file.
19332
19333         Tests for module 'unistr/u16-strcoll'.
19334         * modules/unistr/u16-strcoll-tests: New file.
19335         * tests/unistr/test-u16-strcoll.c: New file.
19336
19337         Tests for module 'unistr/u8-strcoll'.
19338         * modules/unistr/u8-strcoll-tests: New file.
19339         * tests/unistr/test-u8-strcoll.c: New file.
19340
19341         Tests for module 'unistr/u32-strcmp'.
19342         * modules/unistr/u32-strcmp-tests: New file.
19343         * tests/unistr/test-u32-strcmp.c: New file.
19344         * tests/unistr/test-u32-strcmp.h: New file.
19345
19346         Tests for module 'unistr/u16-strcmp'.
19347         * modules/unistr/u16-strcmp-tests: New file.
19348         * tests/unistr/test-u16-strcmp.c: New file.
19349         * tests/unistr/test-u16-strcmp.h: New file.
19350
19351         Tests for module 'unistr/u8-strcmp'.
19352         * modules/unistr/u8-strcmp-tests: New file.
19353         * tests/unistr/test-u8-strcmp.c: New file.
19354         * tests/unistr/test-u8-strcmp.h: New file.
19355         * tests/unistr/test-strcmp.h: New file.
19356
19357         Tests for module 'unistr/u32-strncat'.
19358         * modules/unistr/u32-strncat-tests: New file.
19359         * tests/unistr/test-u32-strncat.c: New file.
19360
19361         Tests for module 'unistr/u16-strncat'.
19362         * modules/unistr/u16-strncat-tests: New file.
19363         * tests/unistr/test-u16-strncat.c: New file.
19364
19365         Tests for module 'unistr/u8-strncat'.
19366         * modules/unistr/u8-strncat-tests: New file.
19367         * tests/unistr/test-u8-strncat.c: New file.
19368         * tests/unistr/test-strncat.h: New file.
19369
19370         Tests for module 'unistr/u32-strcat'.
19371         * modules/unistr/u32-strcat-tests: New file.
19372         * tests/unistr/test-u32-strcat.c: New file.
19373
19374         Tests for module 'unistr/u16-strcat'.
19375         * modules/unistr/u16-strcat-tests: New file.
19376         * tests/unistr/test-u16-strcat.c: New file.
19377
19378         Tests for module 'unistr/u8-strcat'.
19379         * modules/unistr/u8-strcat-tests: New file.
19380         * tests/unistr/test-u8-strcat.c: New file.
19381         * tests/unistr/test-strcat.h: New file.
19382
19383         Tests for module 'unistr/u32-stpncpy'.
19384         * modules/unistr/u32-stpncpy-tests: New file.
19385         * tests/unistr/test-u32-stpncpy.c: New file.
19386
19387         Tests for module 'unistr/u16-stpncpy'.
19388         * modules/unistr/u16-stpncpy-tests: New file.
19389         * tests/unistr/test-u16-stpncpy.c: New file.
19390
19391         Tests for module 'unistr/u8-stpncpy'.
19392         * modules/unistr/u8-stpncpy-tests: New file.
19393         * tests/unistr/test-u8-stpncpy.c: New file.
19394         * tests/unistr/test-stpncpy.h: New file.
19395
19396         Tests for module 'unistr/u32-strncpy'.
19397         * modules/unistr/u32-strncpy-tests: New file.
19398         * tests/unistr/test-u32-strncpy.c: New file.
19399
19400         Tests for module 'unistr/u16-strncpy'.
19401         * modules/unistr/u16-strncpy-tests: New file.
19402         * tests/unistr/test-u16-strncpy.c: New file.
19403
19404         Tests for module 'unistr/u8-strncpy'.
19405         * modules/unistr/u8-strncpy-tests: New file.
19406         * tests/unistr/test-u8-strncpy.c: New file.
19407         * tests/unistr/test-strncpy.h: New file.
19408
19409         Tests for module 'unistr/u32-stpcpy'.
19410         * modules/unistr/u32-stpcpy-tests: New file.
19411         * tests/unistr/test-u32-stpcpy.c: New file.
19412
19413         Tests for module 'unistr/u16-stpcpy'.
19414         * modules/unistr/u16-stpcpy-tests: New file.
19415         * tests/unistr/test-u16-stpcpy.c: New file.
19416
19417         Tests for module 'unistr/u8-stpcpy'.
19418         * modules/unistr/u8-stpcpy-tests: New file.
19419         * tests/unistr/test-u8-stpcpy.c: New file.
19420         * tests/unistr/test-stpcpy.h: New file.
19421
19422         Tests for module 'unistr/u32-strcpy'.
19423         * modules/unistr/u32-strcpy-tests: New file.
19424         * tests/unistr/test-u32-strcpy.c: New file.
19425
19426         Tests for module 'unistr/u16-strcpy'.
19427         * modules/unistr/u16-strcpy-tests: New file.
19428         * tests/unistr/test-u16-strcpy.c: New file.
19429
19430         Tests for module 'unistr/u8-strcpy'.
19431         * modules/unistr/u8-strcpy-tests: New file.
19432         * tests/unistr/test-u8-strcpy.c: New file.
19433         * tests/unistr/test-strcpy.h: New file.
19434
19435         Tests for module 'unistr/u32-strnlen'.
19436         * modules/unistr/u32-strnlen-tests: New file.
19437         * tests/unistr/test-u32-strnlen.c: New file.
19438
19439         Tests for module 'unistr/u16-strnlen'.
19440         * modules/unistr/u16-strnlen-tests: New file.
19441         * tests/unistr/test-u16-strnlen.c: New file.
19442
19443         Tests for module 'unistr/u8-strnlen'.
19444         * modules/unistr/u8-strnlen-tests: New file.
19445         * tests/unistr/test-u8-strnlen.c: New file.
19446         * tests/unistr/test-strnlen.h: New file.
19447
19448         Tests for module 'unistr/u32-strlen'.
19449         * modules/unistr/u32-strlen-tests: New file.
19450         * tests/unistr/test-u32-strlen.c: New file.
19451
19452         Tests for module 'unistr/u16-strlen'.
19453         * modules/unistr/u16-strlen-tests: New file.
19454         * tests/unistr/test-u16-strlen.c: New file.
19455
19456         Tests for module 'unistr/u8-strlen'.
19457         * modules/unistr/u8-strlen-tests: New file.
19458         * tests/unistr/test-u8-strlen.c: New file.
19459
19460         Tests for module 'unistr/u32-prev'.
19461         * modules/unistr/u32-prev-tests: New file.
19462         * tests/unistr/test-u32-prev.c: New file.
19463
19464         Tests for module 'unistr/u16-prev'.
19465         * modules/unistr/u16-prev-tests: New file.
19466         * tests/unistr/test-u16-prev.c: New file.
19467
19468         Tests for module 'unistr/u8-prev'.
19469         * modules/unistr/u8-prev-tests: New file.
19470         * tests/unistr/test-u8-prev.c: New file.
19471
19472         Tests for module 'unistr/u32-next'.
19473         * modules/unistr/u32-next-tests: New file.
19474         * tests/unistr/test-u32-next.c: New file.
19475
19476         Tests for module 'unistr/u16-next'.
19477         * modules/unistr/u16-next-tests: New file.
19478         * tests/unistr/test-u16-next.c: New file.
19479
19480         Tests for module 'unistr/u8-next'.
19481         * modules/unistr/u8-next-tests: New file.
19482         * tests/unistr/test-u8-next.c: New file.
19483
19484         Tests for module 'unistr/u32-strmbtouc'.
19485         * modules/unistr/u32-strmbtouc-tests: New file.
19486         * tests/unistr/test-u32-strmbtouc.c: New file.
19487
19488         Tests for module 'unistr/u16-strmbtouc'.
19489         * modules/unistr/u16-strmbtouc-tests: New file.
19490         * tests/unistr/test-u16-strmbtouc.c: New file.
19491
19492         Tests for module 'unistr/u8-strmbtouc'.
19493         * modules/unistr/u8-strmbtouc-tests: New file.
19494         * tests/unistr/test-u8-strmbtouc.c: New file.
19495
19496         Tests for module 'unistr/u32-strmblen'.
19497         * modules/unistr/u32-strmblen-tests: New file.
19498         * tests/unistr/test-u32-strmblen.c: New file.
19499
19500         Tests for module 'unistr/u16-strmblen'.
19501         * modules/unistr/u16-strmblen-tests: New file.
19502         * tests/unistr/test-u16-strmblen.c: New file.
19503
19504         Tests for module 'unistr/u8-strmblen'.
19505         * modules/unistr/u8-strmblen-tests: New file.
19506         * tests/unistr/test-u8-strmblen.c: New file.
19507
19508         Tests for module 'unistr/u32-cpy-alloc'.
19509         * modules/unistr/u32-cpy-alloc-tests: New file.
19510         * tests/unistr/test-u32-cpy-alloc.c: New file.
19511
19512         Tests for module 'unistr/u16-cpy-alloc'.
19513         * modules/unistr/u16-cpy-alloc-tests: New file.
19514         * tests/unistr/test-u16-cpy-alloc.c: New file.
19515
19516         Tests for module 'unistr/u8-cpy-alloc'.
19517         * modules/unistr/u8-cpy-alloc-tests: New file.
19518         * tests/unistr/test-u8-cpy-alloc.c: New file.
19519         * tests/unistr/test-cpy-alloc.h: New file.
19520
19521         Tests for module 'unistr/u32-mbsnlen'.
19522         * modules/unistr/u32-mbsnlen-tests: New file.
19523         * tests/unistr/test-u32-mbsnlen.c: New file.
19524
19525         Tests for module 'unistr/u16-mbsnlen'.
19526         * modules/unistr/u16-mbsnlen-tests: New file.
19527         * tests/unistr/test-u16-mbsnlen.c: New file.
19528
19529         Tests for module 'unistr/u8-mbsnlen'.
19530         * modules/unistr/u8-mbsnlen-tests: New file.
19531         * tests/unistr/test-u8-mbsnlen.c: New file.
19532
19533         Tests for module 'unistr/u32-chr'.
19534         * modules/unistr/u32-chr-tests: New file.
19535         * tests/unistr/test-u32-chr.c: New file.
19536
19537         Tests for module 'unistr/u16-chr'.
19538         * modules/unistr/u16-chr-tests: New file.
19539         * tests/unistr/test-u16-chr.c: New file.
19540
19541         Tests for module 'unistr/u8-chr'.
19542         * modules/unistr/u8-chr-tests: New file.
19543         * tests/unistr/test-u8-chr.c: New file.
19544         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19545
19546         Tests for module 'unistr/u32-cmp2'.
19547         * modules/unistr/u32-cmp2-tests: New file.
19548         * tests/unistr/test-u32-cmp2.c: New file.
19549
19550         Tests for module 'unistr/u16-cmp2'.
19551         * modules/unistr/u16-cmp2-tests: New file.
19552         * tests/unistr/test-u16-cmp2.c: New file.
19553
19554         Tests for module 'unistr/u8-cmp2'.
19555         * modules/unistr/u8-cmp2-tests: New file.
19556         * tests/unistr/test-u8-cmp2.c: New file.
19557         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19558
19559         Tests for module 'unistr/u32-cmp'.
19560         * modules/unistr/u32-cmp-tests: New file.
19561         * tests/unistr/test-u32-cmp.c: New file.
19562
19563         Tests for module 'unistr/u16-cmp'.
19564         * modules/unistr/u16-cmp-tests: New file.
19565         * tests/unistr/test-u16-cmp.c: New file.
19566
19567         Tests for module 'unistr/u8-cmp'.
19568         * modules/unistr/u8-cmp-tests: New file.
19569         * tests/unistr/test-u8-cmp.c: New file.
19570         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19571
19572         Tests for module 'unistr/u32-set'.
19573         * modules/unistr/u32-set-tests: New file.
19574         * tests/unistr/test-u32-set.c: New file.
19575
19576         Tests for module 'unistr/u16-set'.
19577         * modules/unistr/u16-set-tests: New file.
19578         * tests/unistr/test-u16-set.c: New file.
19579
19580         Tests for module 'unistr/u8-set'.
19581         * modules/unistr/u8-set-tests: New file.
19582         * tests/unistr/test-u8-set.c: New file.
19583         * tests/unistr/test-set.h: New file.
19584
19585         Tests for module 'unistr/u32-move'.
19586         * modules/unistr/u32-move-tests: New file.
19587         * tests/unistr/test-u32-move.c: New file.
19588
19589         Tests for module 'unistr/u16-move'.
19590         * modules/unistr/u16-move-tests: New file.
19591         * tests/unistr/test-u16-move.c: New file.
19592
19593         Tests for module 'unistr/u8-move'.
19594         * modules/unistr/u8-move-tests: New file.
19595         * tests/unistr/test-u8-move.c: New file.
19596         * tests/unistr/test-move.h: New file.
19597
19598         Tests for module 'unistr/u32-cpy'.
19599         * modules/unistr/u32-cpy-tests: New file.
19600         * tests/unistr/test-u32-cpy.c: New file.
19601
19602         Tests for module 'unistr/u16-cpy'.
19603         * modules/unistr/u16-cpy-tests: New file.
19604         * tests/unistr/test-u16-cpy.c: New file.
19605
19606         Tests for module 'unistr/u8-cpy'.
19607         * modules/unistr/u8-cpy-tests: New file.
19608         * tests/unistr/test-u8-cpy.c: New file.
19609         * tests/unistr/test-cpy.h: New file.
19610
19611 2010-01-09  Bruno Haible  <bruno@clisp.org>
19612
19613         Tests for module 'unistr/u32-uctomb'.
19614         * modules/unistr/u32-uctomb-tests: New file.
19615         * tests/unistr/test-u32-uctomb.c: New file.
19616
19617         Tests for module 'unistr/u16-uctomb'.
19618         * modules/unistr/u16-uctomb-tests: New file.
19619         * tests/unistr/test-u16-uctomb.c: New file.
19620
19621         Tests for module 'unistr/u8-uctomb'.
19622         * modules/unistr/u8-uctomb-tests: New file.
19623         * tests/unistr/test-u8-uctomb.c: New file.
19624
19625         Tests for module 'unistr/u32-mbtoucr'.
19626         * modules/unistr/u32-mbtoucr-tests: New file.
19627         * tests/unistr/test-u32-mbtoucr.c: New file.
19628
19629         Tests for module 'unistr/u16-mbtoucr'.
19630         * modules/unistr/u16-mbtoucr-tests: New file.
19631         * tests/unistr/test-u16-mbtoucr.c: New file.
19632
19633         Tests for module 'unistr/u8-mbtoucr'.
19634         * modules/unistr/u8-mbtoucr-tests: New file.
19635         * tests/unistr/test-u8-mbtoucr.c: New file.
19636
19637         Tests for module 'unistr/u32-mbtouc'.
19638         * modules/unistr/u32-mbtouc-tests: New file.
19639         * tests/unistr/test-u32-mbtouc.c: New file.
19640
19641         Tests for module 'unistr/u16-mbtouc'.
19642         * modules/unistr/u16-mbtouc-tests: New file.
19643         * tests/unistr/test-u16-mbtouc.c: New file.
19644
19645         Tests for module 'unistr/u8-mbtouc'.
19646         * modules/unistr/u8-mbtouc-tests: New file.
19647         * tests/unistr/test-u8-mbtouc.c: New file.
19648
19649         Tests for module 'unistr/u32-mbtouc-unsafe'.
19650         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19651         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19652         * tests/unistr/test-u32-mbtouc.h: New file.
19653
19654         Tests for module 'unistr/u16-mbtouc-unsafe'.
19655         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19656         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19657         * tests/unistr/test-u16-mbtouc.h: New file.
19658
19659         Tests for module 'unistr/u8-mbtouc-unsafe'.
19660         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19661         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19662         * tests/unistr/test-u8-mbtouc.h: New file.
19663
19664         Tests for module 'unistr/u32-mblen'.
19665         * modules/unistr/u32-mblen-tests: New file.
19666         * tests/unistr/test-u32-mblen.c: New file.
19667
19668         Tests for module 'unistr/u16-mblen'.
19669         * modules/unistr/u16-mblen-tests: New file.
19670         * tests/unistr/test-u16-mblen.c: New file.
19671
19672         Tests for module 'unistr/u8-mblen'.
19673         * modules/unistr/u8-mblen-tests: New file.
19674         * tests/unistr/test-u8-mblen.c: New file.
19675
19676         Tests for module 'unistr/u32-to-u16'.
19677         * modules/unistr/u32-to-u16-tests: New file.
19678         * tests/unistr/test-u32-to-u16.c: New file.
19679
19680         Tests for module 'unistr/u32-to-u8'.
19681         * modules/unistr/u32-to-u8-tests: New file.
19682         * tests/unistr/test-u32-to-u8.c: New file.
19683
19684         Tests for module 'unistr/u16-to-u32'.
19685         * modules/unistr/u16-to-u32-tests: New file.
19686         * tests/unistr/test-u16-to-u32.c: New file.
19687
19688         Tests for module 'unistr/u16-to-u8'.
19689         * modules/unistr/u16-to-u8-tests: New file.
19690         * tests/unistr/test-u16-to-u8.c: New file.
19691
19692         Tests for module 'unistr/u8-to-u32'.
19693         * modules/unistr/u8-to-u32-tests: New file.
19694         * tests/unistr/test-u8-to-u32.c: New file.
19695
19696         Tests for module 'unistr/u8-to-u16'.
19697         * modules/unistr/u8-to-u16-tests: New file.
19698         * tests/unistr/test-u8-to-u16.c: New file.
19699
19700         Tests for module 'unistr/u32-check'.
19701         * modules/unistr/u32-check-tests: New file.
19702         * tests/unistr/test-u32-check.c: New file.
19703
19704         Tests for module 'unistr/u16-check'.
19705         * modules/unistr/u16-check-tests: New file.
19706         * tests/unistr/test-u16-check.c: New file.
19707
19708         Tests for module 'unistr/u8-check'.
19709         * modules/unistr/u8-check-tests: New file.
19710         * tests/unistr/test-u8-check.c: New file.
19711
19712         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19713         (category_equals): New function.
19714         (main): Add more tests.
19715         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19716
19717         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19718
19719 2010-01-10  Bruno Haible  <bruno@clisp.org>
19720
19721         unistr/u*-strcoll: Try harder to distinguish different strings.
19722         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19723         compare s1 and s2 to see if they are different.
19724
19725 2010-01-10  Bruno Haible  <bruno@clisp.org>
19726
19727         unistr/u*-stpncpy: Fix the return value.
19728         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19729         description of the return value consistent with stpncpy in glibc.
19730         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19731         written non-NUL unit.
19732
19733 2010-01-10  Bruno Haible  <bruno@clisp.org>
19734
19735         unistr/u*-next: Add missing dependencies.
19736         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19737         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19738         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19739
19740 2010-01-10  Bruno Haible  <bruno@clisp.org>
19741
19742         unistr/u8-mbsnlen: Fix return value for incomplete character.
19743         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19744         u8_mblen.
19745         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19746         Remove unistr/u8-mblen.
19747         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19748         u16_mblen.
19749         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19750         Remove unistr/u16-mblen.
19751
19752 2010-01-10  Bruno Haible  <bruno@clisp.org>
19753
19754         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19755         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19756         Reported by Brian Gough <bjg@gnu.org> and
19757         Chris Clayton <chris2553@googlemail.com> via
19758         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19759
19760 2010-01-09  Bruno Haible  <bruno@clisp.org>
19761
19762         unistr/u16-to-u32: Reject invalid input.
19763         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19764         u16_mbtouc.
19765         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19766         Remove unistr/u16-mbtouc.
19767
19768         unistr/u16-to-u8: Reject invalid input.
19769         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19770         u16_mbtouc.
19771         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19772         Remove unistr/u16-mbtouc.
19773
19774         unistr/u8-to-u32: Reject invalid input.
19775         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19776         u8_mbtouc.
19777         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19778         Remove unistr/u8-mbtouc.
19779
19780         unistr/u8-to-u16: Reject invalid input.
19781         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19782         u8_mbtouc.
19783         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19784         Remove unistr/u8-mbtouc.
19785
19786 2010-01-09  Bruno Haible  <bruno@clisp.org>
19787
19788         Tests for module 'getlogin'.
19789         * modules/getlogin-tests: New file.
19790         * tests/test-getlogin.c: New file.
19791
19792         New module 'getlogin'.
19793         * lib/unistd.in.h (getlogin): New declaration.
19794         * lib/getlogin.c: New file.
19795         * m4/getlogin.m4: New file.
19796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19797         HAVE_GETLOGIN.
19798         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19799         HAVE_GETLOGIN.
19800         * modules/getlogin: New file.
19801         * doc/posix-functions/getlogin.texi: Mention the new module.
19802         Reported by John W. Eaton <jwe@gnu.org>.
19803
19804 2010-01-09  Bruno Haible  <bruno@clisp.org>
19805
19806         getlogin_r: Support for native Windows.
19807         * lib/getlogin_r.c: Include <windows.h>
19808         (getlogin_r): Implement for native Windows.
19809         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19810         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19811         via John W. Eaton <jwe@gnu.org>.
19812
19813 2010-01-09  Bruno Haible  <bruno@clisp.org>
19814
19815         getlogin_r: Small fixes.
19816         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19817         succeeds.
19818         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19819         before testing whether getlogin_r is declared. No need to set
19820         HAVE_DECL_GETLOGIN_R to 1.
19821         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19822
19823 2010-01-09  Bruno Haible  <bruno@clisp.org>
19824
19825         * lib/unistd.in.h (getlogin_r): Add comment.
19826
19827 2010-01-09  Bruno Haible  <bruno@clisp.org>
19828
19829         Tests for module 'getlogin_r'.
19830         * modules/getlogin_r-tests: New file.
19831         * tests/test-getlogin_r.c: New file.
19832
19833 2010-01-09  Jim Meyering  <meyering@redhat.com>
19834
19835         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19836         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19837         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19838
19839 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19840
19841         * lib/dup2.c (rpl_dup2): Improve comment.
19842
19843 2010-01-08  Eric Blake  <ebb9@byu.net>
19844
19845         maint.mk: allow packages to add makefile @@ exceptions
19846         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19847         (sc_makefile_check): Rename...
19848         (sc_makefile_at_at_check): ...to this, and use hook.
19849
19850         dup2: work around mingw bug
19851         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19852         Reported by Simon Josefsson.
19853
19854 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19855
19856         glob: Fix C++ compilation.
19857         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19858         C++.
19859
19860 2010-01-07  Bruno Haible  <bruno@clisp.org>
19861
19862         Fix indentation of wctype.in.h, broken since 2007-01-06.
19863         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19864
19865 2010-01-07  Bruno Haible  <bruno@clisp.org>
19866
19867         mbslen: Avoid collision with system function.
19868         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19869         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19870         * m4/mbslen.m4: New file.
19871         * modules/mbslen (Files): Add it.
19872         (configure.ac): Invoke gl_MBSLEN.
19873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19874         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19876         via Ian Beckwith <ianb@erislabs.net>.
19877
19878 2010-01-07  Bruno Haible  <bruno@clisp.org>
19879
19880         dirent: Document the last fix.
19881         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19882
19883 2010-01-07  Bruno Haible  <bruno@clisp.org>
19884
19885         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19886         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19887         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19888         va_list are defined.
19889         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19890         Reported by Eric Blake.
19891
19892 2010-01-07  Bruno Haible  <bruno@clisp.org>
19893
19894         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19895         * modules/xlist (Depends-on): Add 'list',
19896         * modules/xoset (Depends-on): Add 'oset'.
19897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19898
19899 2010-01-07  Bruno Haible  <bruno@clisp.org>
19900
19901         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19902         * doc/posix-functions/strncasecmp.texi: Likewise.
19903
19904 2010-01-07  Bruno Haible  <bruno@clisp.org>
19905
19906         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19907
19908 2010-01-07  John W. Eaton  <jwe@octave.org>
19909
19910         wctype: allow C++ use
19911         * lib/wctype.in.h: Add extern "C" block for C++.
19912
19913 2010-01-06  Eric Blake  <ebb9@byu.net>
19914
19915         maint.mk: detect incorrect GFDL usage
19916         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19917
19918 2010-01-06  Jim Meyering  <meyering@redhat.com>
19919         and Eric Blake  <ebb9@byu.net>
19920
19921         maint.mk: ignore multi-line copyright in NEWS
19922         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19923
19924 2010-01-06  Eric Blake  <ebb9@byu.net>
19925
19926         select: add missing dependency
19927         * modules/select-tests (Depends-on): Move sockets dependency...
19928         * modules/select (Depends-on): ...here.
19929         Reported by Ian Beckwith.
19930
19931         doc: regenerate INSTALL
19932         * doc/INSTALL: Reflect recent autoconf update.
19933         * doc/INSTALL.ISO: Likewise.
19934         * doc/INSTALL.UTF-8: Likewise.
19935
19936         pread: fix compilation on glibc
19937         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19938         Reported by Ralf Wildenhues.
19939
19940         dirent: fix test failure
19941         * lib/dirent.in.h (includes): Guarantee ino_t.
19942         Reported by Ralf Wildenhues.
19943
19944 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19945
19946         linkat, renameat: avoid bad free
19947         * lib/at-func2.c (at_func2): Fix typo.
19948         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19949
19950 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19951
19952         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19953         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19954         to avoid failure of symlink test later.
19955
19956 2010-01-06  Eric Blake  <ebb9@byu.net>
19957
19958         stdio, unistd: guarantee ssize_t
19959         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19960         2008 are exposed when needed.
19961         * lib/stdio.in.h (includes): Likewise.
19962         Reported by Ralf Wildenhues.
19963
19964 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19965
19966         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19967         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19968         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19969
19970 2010-01-06  Jim Meyering  <meyering@redhat.com>
19971
19972         readtokens: this module *does* require xalloc.h
19973         It uses only functions that were omitted by the old syntax-check rule.
19974         * lib/readtokens.c: Include "xalloc.h" once again.
19975         * modules/readtokens (Depends-on): Add xalloc.
19976         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19977
19978 2010-01-05  Eric Blake  <ebb9@byu.net>
19979
19980         maint: support 'make announcement' from a VPATH build
19981         * top/maint.mk (announcement): Look for correct NEWS file.
19982
19983 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19984
19985         utimens (fdutimens): ignore a negative FD, per contract
19986         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19987         when we have a valid file descriptor.  Otherwise, using a brand
19988         new glibc (with just-patched futimens that now fails with EBADF)
19989         would cause this function to fail with ENOSYS.
19990         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19991         See also http://bugzilla.redhat.com/552320.
19992
19993 2010-01-05  Eric Blake  <ebb9@byu.net>
19994
19995         strcase: document what it provides
19996         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19997         gnulib module.
19998         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19999         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20000
20001 2010-01-05  Jim Meyering  <meyering@redhat.com>
20002
20003         maint: remove useless inclusions of "xalloc.h"
20004         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20005         * lib/readtokens.c: Likewise.
20006         * lib/same.c: Likewise.
20007         * modules/getloadavg (Depends-on): Remove xalloc.
20008         * modules/readtokens: Likewise.
20009         * modules/same: Likewise.
20010
20011         maint.mk: include 4 more function names in alloca.h-checking regexp
20012         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20013         regexp.  Before, we would give a false-positive (saying alloca.h
20014         is included unnecessarily) when the only uses involved omitted symbols.
20015
20016         xalloc.h: use consistent formatting
20017         * lib/xalloc.h: Move declarations to start in the first column.
20018
20019 2010-01-05  Eric Blake  <ebb9@byu.net>
20020
20021         mkdir: avoid xalloc
20022         * lib/mkdir.c (includes): Drop unused header.
20023         Reported by John W. Eaton.
20024
20025 2010-01-04  Jim Meyering  <meyering@redhat.com>
20026
20027         nl_langinfo: avoid configure-time syntax error
20028         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20029         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20030         the empty string.  Don't let that provoke a shell syntax error.
20031
20032         regcomp, regexec, fnmatch: avoid array bounds read error
20033         * lib/regcomp.c (build_equiv_class): From glibc:
20034         Use only the low 24 bits of a findidx return value as an index
20035         into the weights array.  Patch by Ulrich Drepper:
20036         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20037         * lib/regexec.c (check_node_accept_bytes): Likewise.
20038         * lib/fnmatch_loop.c (FCT): Likewise.
20039
20040         regcomp: skip collseq lookup when there are no rules
20041         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20042         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20043
20044         regcomp: recognize ill-formed { } expressions
20045         * lib/regcomp.c (parse_dup_op): From glibc:
20046         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20047
20048         regcomp: fix typo in comment
20049         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20050         s/satisfy/satisfies/.
20051
20052         regcomp: sync from glibc: remove dead store
20053         * lib/regcomp.c (duplicate_node_closure): Remove useless
20054         search_duplicated_node call and dead store.
20055
20056         regcomp: sync from glibc; always use nl_langinfo
20057         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20058         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20059         * modules/regex (Depends-on): Add nl_langinfo.
20060
20061 2010-01-04  Eric Blake  <ebb9@byu.net>
20062
20063         fdopendir: fix configure test
20064         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20065
20066 2010-01-01  Bruno Haible  <bruno@clisp.org>
20067
20068         wchar: Remove unused configure check.
20069         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20070
20071 2010-01-01  Eric Blake  <ebb9@byu.net>
20072
20073         headers: make check of system header explicit
20074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20075         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20076         ourselves.
20077         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20080         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20081         internals.
20082         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20083         missing.
20084         Suggested by Bruno Haible.
20085
20086 2010-01-01  Jim Meyering  <meyering@redhat.com>
20087
20088         ChangeLog: tweak to eliminate unnecessary copyright line
20089         * ChangeLog: Remove a copyright line that was mistakenly updated
20090         by today's update-copyright run.  Reported by Eric Blake.
20091
20092         test-update-copyright: don't let envvar setting cause test failure
20093         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20094
20095 2010-01-01  Bruno Haible  <bruno@clisp.org>
20096
20097         localename: Avoid gcc warning.
20098         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20099         function if it is not used.
20100
20101 2010-01-01  Jim Meyering  <meyering@redhat.com>
20102
20103         update nearly all FSF copyright year lists to include 2010
20104         Use the same procedure as for 2009, outlined in
20105         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20106
20107         version-etc: set COPYRIGHT_YEAR to 2010
20108         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20109
20110 2009-12-31  Eric Blake  <ebb9@byu.net>
20111
20112         doc: correct availability of cygwin 1.5.x getopt
20113         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20114         variables.
20115         * doc/posix-functions/opterr.texi (opterr): Likewise.
20116         * doc/posix-functions/optind.texi (optind): Likewise.
20117         * doc/posix-functions/optopt.texi (optopt): Likewise.
20118         * doc/posix-functions/tzname.texi (tzname): Likewise.
20119
20120         openat: update maintainer
20121         * modules/openat (Maintainer): Add myself.
20122
20123         utimens: avoid shadowing warning
20124         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20125         buffers into one, to avoid shadowing, as well as avoiding a
20126         redundant stat.
20127         Reported by Jim Meyering.
20128
20129         test-dup2: avoid compiler warning
20130         * tests/test-dup2.c (is_inheritable): Only define if used.
20131
20132 2010-01-01  Bruno Haible  <bruno@clisp.org>
20133
20134         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20135         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20136         defined, use wctomb instead of wcrtomb.
20137
20138 2010-01-01  Bruno Haible  <bruno@clisp.org>
20139
20140         iconv: Reject native Solaris iconv.
20141         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20142         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20143
20144 2009-12-31  Bruno Haible  <bruno@clisp.org>
20145
20146         * tests/test-signal.c (main): Remove test of 'SIG'.
20147
20148 2009-12-31  Bruno Haible  <bruno@clisp.org>
20149
20150         spawn: Fix incomplete fix.
20151         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20152         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20153         warnings for GNULIB_POSIXCHECK again.
20154         Reported by Eric Blake.
20155
20156 2009-12-31  Bruno Haible  <bruno@clisp.org>
20157
20158         Avoid namespace pollution on glibc systems.
20159         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20160         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20161         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20162         glibc systems.
20163
20164 2009-12-31  Bruno Haible  <bruno@clisp.org>
20165
20166         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20167         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20168         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20169         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20170         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20171         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20172         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20173
20174 2009-12-31  Bruno Haible  <bruno@clisp.org>
20175
20176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20177         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20178         afterwards.
20179
20180 2009-12-31  Bruno Haible  <bruno@clisp.org>
20181
20182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20183         SYS_UTSNAME_H.
20184
20185 2009-12-31  Bruno Haible  <bruno@clisp.org>
20186
20187         spawn: Fix misapplied patch.
20188         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20189         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20190         warnings for GNULIB_POSIXCHECK.
20191
20192 2009-12-31  Bruno Haible  <bruno@clisp.org>
20193
20194         times: Update after sys_times changed.
20195         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20196         * modules/times (Files): Add it.
20197         (configure.ac): Invoke gl_FUNC_TIMES.
20198
20199 2009-12-31  Bruno Haible  <bruno@clisp.org>
20200
20201         Use AC_C_INLINE where necessary.
20202         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20203         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20205         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20206         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20207         * m4/mbiter.m4 (gl_MBITER): Likewise.
20208         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20209         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20210         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20211         * modules/u64 (configure.ac): Likewise.
20212
20213 2009-12-31  Bruno Haible  <bruno@clisp.org>
20214
20215         Use AC_C_INLINE instead of module 'inline' where possible.
20216         * modules/inline (Description): Clarify purpose.
20217         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20218         * modules/count-one-bits (Depends-on): Remove inline.
20219         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20220         * modules/openat (Depends-on): Remove inline.
20221         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20222         instead of depending on module 'inline'.
20223         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20224         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20225         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20226         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20227         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20228         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20229         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20230         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20231         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20232         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20233         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20234         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20235         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20236         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20237         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20238         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20239         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20240         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20241         Likewise.
20242         * modules/unictype/property-ascii-hex-digit (Depends-on,
20243         configure.ac): Likewise.
20244         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20245         configure.ac): Likewise.
20246         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20247         configure.ac): Likewise.
20248         * modules/unictype/property-bidi-block-separator (Depends-on,
20249         configure.ac): Likewise.
20250         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20251         configure.ac): Likewise.
20252         * modules/unictype/property-bidi-common-separator (Depends-on,
20253         configure.ac): Likewise.
20254         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20255         Likewise.
20256         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20257         configure.ac): Likewise.
20258         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20259         configure.ac): Likewise.
20260         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20261         configure.ac): Likewise.
20262         * modules/unictype/property-bidi-european-digit (Depends-on,
20263         configure.ac): Likewise.
20264         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20265         configure.ac): Likewise.
20266         * modules/unictype/property-bidi-left-to-right (Depends-on,
20267         configure.ac): Likewise.
20268         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20269         configure.ac): Likewise.
20270         * modules/unictype/property-bidi-other-neutral (Depends-on,
20271         configure.ac): Likewise.
20272         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20273         Likewise.
20274         * modules/unictype/property-bidi-segment-separator (Depends-on,
20275         configure.ac): Likewise.
20276         * modules/unictype/property-bidi-whitespace (Depends-on,
20277         configure.ac): Likewise.
20278         * modules/unictype/property-combining (Depends-on, configure.ac):
20279         Likewise.
20280         * modules/unictype/property-composite (Depends-on, configure.ac):
20281         Likewise.
20282         * modules/unictype/property-currency-symbol (Depends-on,
20283         configure.ac): Likewise.
20284         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20285         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20286         Likewise.
20287         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20288         configure.ac): Likewise.
20289         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20290         Likewise.
20291         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20292         Likewise.
20293         * modules/unictype/property-extender (Depends-on, configure.ac):
20294         Likewise.
20295         * modules/unictype/property-format-control (Depends-on, configure.ac):
20296         Likewise.
20297         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20298         Likewise.
20299         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20300         Likewise.
20301         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20302         Likewise.
20303         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20304         Likewise.
20305         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20306         Likewise.
20307         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20308         Likewise.
20309         * modules/unictype/property-id-start (Depends-on, configure.ac):
20310         Likewise.
20311         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20312         Likewise.
20313         * modules/unictype/property-ids-binary-operator (Depends-on,
20314         configure.ac): Likewise.
20315         * modules/unictype/property-ids-trinary-operator (Depends-on,
20316         configure.ac): Likewise.
20317         * modules/unictype/property-ignorable-control (Depends-on,
20318         configure.ac): Likewise.
20319         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20320         Likewise.
20321         * modules/unictype/property-join-control (Depends-on, configure.ac):
20322         Likewise.
20323         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20324         Likewise.
20325         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20326         Likewise.
20327         * modules/unictype/property-logical-order-exception (Depends-on,
20328         configure.ac): Likewise.
20329         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20330         Likewise.
20331         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20332         * modules/unictype/property-non-break (Depends-on, configure.ac):
20333         Likewise.
20334         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20335         Likewise.
20336         * modules/unictype/property-numeric (Depends-on, configure.ac):
20337         Likewise.
20338         * modules/unictype/property-other-alphabetic (Depends-on,
20339         configure.ac): Likewise.
20340         * modules/unictype/property-other-default-ignorable-code-point
20341         (Depends-on, configure.ac): Likewise.
20342         * modules/unictype/property-other-grapheme-extend (Depends-on,
20343         configure.ac): Likewise.
20344         * modules/unictype/property-other-id-continue (Depends-on,
20345         configure.ac): Likewise.
20346         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20347         Likewise.
20348         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20349         Likewise.
20350         * modules/unictype/property-other-math (Depends-on, configure.ac):
20351         Likewise.
20352         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20353         Likewise.
20354         * modules/unictype/property-paired-punctuation (Depends-on,
20355         configure.ac): Likewise.
20356         * modules/unictype/property-paragraph-separator (Depends-on,
20357         configure.ac): Likewise.
20358         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20359         Likewise.
20360         * modules/unictype/property-pattern-white-space (Depends-on,
20361         configure.ac): Likewise.
20362         * modules/unictype/property-private-use (Depends-on, configure.ac):
20363         Likewise.
20364         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20365         Likewise.
20366         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20367         Likewise.
20368         * modules/unictype/property-radical (Depends-on, configure.ac):
20369         Likewise.
20370         * modules/unictype/property-sentence-terminal (Depends-on,
20371         configure.ac): Likewise.
20372         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20373         Likewise.
20374         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20375         * modules/unictype/property-terminal-punctuation (Depends-on,
20376         configure.ac): Likewise.
20377         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20378         Likewise.
20379         * modules/unictype/property-unassigned-code-value (Depends-on,
20380         configure.ac): Likewise.
20381         * modules/unictype/property-unified-ideograph (Depends-on,
20382         configure.ac): Likewise.
20383         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20384         Likewise.
20385         * modules/unictype/property-variation-selector (Depends-on,
20386         configure.ac): Likewise.
20387         * modules/unictype/property-white-space (Depends-on, configure.ac):
20388         Likewise.
20389         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20390         Likewise.
20391         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20392         Likewise.
20393         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20394         Likewise.
20395         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20396         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20397         Likewise.
20398
20399 2009-12-31  Bruno Haible  <bruno@clisp.org>
20400
20401         Remove unnecessary AC_C_INLINE invocation.
20402         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20403         since 2009-08-21.
20404
20405 2009-12-31  Jim Meyering  <meyering@redhat.com>
20406
20407         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20408         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20409         With this change, we can all remove the gpg_key_ID = ... definition
20410         from our respective cfg.mk files.
20411
20412         maint.mk: create announcement template in ~/, not in /tmp
20413         * top/maint.mk (emit_upload_commands): Adjust.
20414         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20415         Remove temporary file, .ci-msg.
20416
20417 2009-12-31  Eric Blake  <ebb9@byu.net>
20418
20419         link-warning: always build headers with link warnings
20420         * modules/arpa_inet (Makefile.am): Always build replacement
20421         header.
20422         * modules/ctype (Makefile.am): Likewise.
20423         * modules/dirent (Makefile.am): Likewise.
20424         * modules/inttypes (Makefile.am): Likewise.
20425         * modules/langinfo (Makefile.am): Likewise.
20426         * modules/locale (Makefile.am): Likewise.
20427         * modules/spawn (Makefile.am): Likewise.
20428         * modules/sys_file (Makefile.am): Likewise.
20429         * modules/sys_ioctl (Makefile.am): Likewise.
20430         * modules/sys_select (Makefile.am): Likewise.
20431         * modules/sys_socket (Makefile.am): Likewise.
20432         * modules/sys_times (Makefile.am): Likewise.
20433         * modules/sys_utsname (Makefile.am): Likewise.
20434         * modules/sys_wait (Makefile.am): Likewise.
20435         * modules/wchar (Makefile.am): Likewise.
20436         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20437         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20438         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20439         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20440         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20441         Likewise.
20442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20443         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20444         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20445         Likewise.
20446         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20447         Likewise.
20448         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20449         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20450         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20452         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20453         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20454         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20455         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20456         (gl_WCHAR_H_DEFAULTS): Likewise.
20457
20458 2009-12-31  Eric Blake  <ebb9@byu.net>
20459
20460         signal, spawn: use link warnings
20461         * lib/signal.in.h (sigset_t): Make unconditional.
20462         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20463         (sigpending, sigprocmask, sigaction): Add link warnings.
20464         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20465         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20466         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20467         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20468         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20469         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20470         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20471         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20472         (posix_spawn_file_actions_destroy)
20473         (posix_spawn_file_actions_addopen)
20474         (posix_spawn_file_actions_addclose)
20475         (posix_spawn_file_actions_adddup2): Likewise.
20476         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20477         * tests/test-signal.c (main): Enhance test.
20478
20479         spawn: improve wrapper support
20480         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20481         (gl_SPAWN_H_DEFAULTS): New defaults.
20482         * modules/spawn (Makefile.am): Substitute them.
20483         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20484         Only declare if missing or broken.
20485
20486         sys_times, sys_utsname: use include_next
20487         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20488         header.
20489         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20490         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20491         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20492         * modules/sys_times (Depends-on): Add include_next.
20493         (Makefile.am): Substitute additional values.
20494         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20495         * lib/sys_times.in.h (includes): Include native header, if
20496         available.
20497         * lib/sys_utsname.in.h (includes): Likewise.
20498         * tests/test-sys_times.c (main): Enhance test.
20499
20500         fdutimensat: revert prior patch
20501         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20502         utimens.h.
20503         Reported by Bruno Haible.
20504
20505 2009-12-30  Eric Blake  <ebb9@byu.net>
20506
20507         sys_wait: drop link-warning dependency
20508         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20509         link-warning efforts.
20510         * lib/sys_wait.in.h: Likewise.
20511
20512         fdutimensat: remove bogus dependency
20513         * modules/fdutimensat (Depends-on): Drop inline.
20514
20515         unistd: fix typo
20516         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20517
20518 2009-12-30  Bruno Haible  <bruno@clisp.org>
20519
20520         Fix compilation error with Solaris cc.
20521         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20522         * lib/unicase/u16-is-invariant.c: Likewise.
20523         * lib/unicase/u32-is-invariant.c: Likewise.
20524         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20525
20526 2009-12-30  Bruno Haible  <bruno@clisp.org>
20527
20528         Fix test crash.
20529         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20530         locales.
20531         Reported by Simon Josefsson <simon@josefsson.org>.
20532
20533 2009-12-30  Bruno Haible  <bruno@clisp.org>
20534
20535         Fix compilation error on most platforms.
20536         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20537         Reported by Simon Josefsson <simon@josefsson.org>
20538         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20539
20540 2009-12-30  Eric Blake  <ebb9@byu.net>
20541
20542         futimens, utimensat: work around ntfs-3g bug
20543         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20544         a ctime bug is present, and expand workaround to cover ntfs-3g.
20545         * lib/utimens.c (fdutimens, lutimens): Likewise.
20546         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20547         (validate_timespec): Adjust return value.
20548         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20549         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20550         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20551
20552 2009-12-29  Eric Blake  <ebb9@byu.net>
20553
20554         link-warning: make usage consistent
20555         * modules/ctype (Depends-on): Add link-warning.
20556         (Makefile.am): Update rules accordingly.
20557         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20558         * modules/locale (Depends-on, Makefile.am): Likewise.
20559         * modules/sys_file (Makefile.am): Likewise.
20560         * modules/getopt-posix (Makefile.am): Delete unused link warning
20561         efforts.
20562         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20563         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20564         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20565         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20566
20567         stdio: remove unused variables
20568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20570         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20571
20572         tests: test more substitute headers
20573         * modules/ctype-tests: New file.
20574         * modules/dirent-tests: Likewise.
20575         * modules/spawn-tests: Likewise.
20576         * modules/sys_file-tests: Likewise.
20577         * modules/sys_ioctl-tests: Likewise.
20578         * modules/sys_wait-tests: Likewise.
20579         * tests/test-ctype.c: Likewise.
20580         * tests/test-dirent.c: Likewise.
20581         * tests/test-spawn.c: Likewise.
20582         * tests/test-sys_file.c: Likewise.
20583         * tests/test-sys_ioctl.c: Likewise.
20584         * tests/test-sys_wait.c: Likewise.
20585         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20586         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20587         whether or not flock is in use.
20588
20589         tests: remove License section from module
20590         * modules/arpa_inet-tests: Remove unneeded section.
20591         * modules/byteswap-tests: Likewise.
20592         * modules/ceilf-tests: Likewise.
20593         * modules/ceill-tests: Likewise.
20594         * modules/crypto/des-tests: Likewise.
20595         * modules/crypto/gc-arcfour-tests: Likewise.
20596         * modules/crypto/gc-arctwo-tests: Likewise.
20597         * modules/crypto/gc-des-tests: Likewise.
20598         * modules/crypto/gc-hmac-md5-tests: Likewise.
20599         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20600         * modules/crypto/gc-md2-tests: Likewise.
20601         * modules/crypto/gc-md4-tests: Likewise.
20602         * modules/crypto/gc-md5-tests: Likewise.
20603         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20604         * modules/crypto/gc-rijndael-tests: Likewise.
20605         * modules/crypto/gc-sha1-tests: Likewise.
20606         * modules/crypto/gc-tests: Likewise.
20607         * modules/crypto/md2-tests: Likewise.
20608         * modules/crypto/md4-tests: Likewise.
20609         * modules/fcntl-h-tests: Likewise.
20610         * modules/floorf-tests: Likewise.
20611         * modules/floorl-tests: Likewise.
20612         * modules/frexp-nolibm-tests: Likewise.
20613         * modules/frexp-tests: Likewise.
20614         * modules/frexpl-nolibm-tests: Likewise.
20615         * modules/frexpl-tests: Likewise.
20616         * modules/getaddrinfo-tests: Likewise.
20617         * modules/inttypes-tests: Likewise.
20618         * modules/isfinite-tests: Likewise.
20619         * modules/isinf-tests: Likewise.
20620         * modules/ldexpl-tests: Likewise.
20621         * modules/locale-tests: Likewise.
20622         * modules/math-tests: Likewise.
20623         * modules/netdb-tests: Likewise.
20624         * modules/netinet_in-tests: Likewise.
20625         * modules/printf-frexp-tests: Likewise.
20626         * modules/printf-frexpl-tests: Likewise.
20627         * modules/priv-set-tests: Likewise.
20628         * modules/random_r-tests: Likewise.
20629         * modules/round-tests: Likewise.
20630         * modules/roundf-tests: Likewise.
20631         * modules/roundl-tests: Likewise.
20632         * modules/search-tests: Likewise.
20633         * modules/select-tests: Likewise.
20634         * modules/signal-tests: Likewise.
20635         * modules/stdbool-tests: Likewise.
20636         * modules/stddef-tests: Likewise.
20637         * modules/stdint-tests: Likewise.
20638         * modules/stdio-tests: Likewise.
20639         * modules/stdlib-tests: Likewise.
20640         * modules/string-tests: Likewise.
20641         * modules/strings-tests: Likewise.
20642         * modules/sys_select-tests: Likewise.
20643         * modules/sys_socket-tests: Likewise.
20644         * modules/sys_stat-tests: Likewise.
20645         * modules/sys_time-tests: Likewise.
20646         * modules/sys_utsname-tests: Likewise.
20647         * modules/sysexits-tests: Likewise.
20648         * modules/time-tests: Likewise.
20649         * modules/trunc-tests: Likewise.
20650         * modules/truncf-tests: Likewise.
20651         * modules/truncl-tests: Likewise.
20652         * modules/tsearch-tests: Likewise.
20653         * modules/unistd-tests: Likewise.
20654         * modules/wchar-tests: Likewise.
20655         * modules/wctype-tests: Likewise.
20656
20657         tests: fix license on several tests
20658         * tests/test-des.c: Update to GPLv3+.
20659         * tests/test-flock.c: Likewise.
20660         * tests/test-fsync.c: Likewise.
20661         * tests/test-futimens.h: Likewise.
20662         * tests/test-gc-arcfour.c: Likewise.
20663         * tests/test-gc-arctwo.c: Likewise.
20664         * tests/test-gc-des.c: Likewise.
20665         * tests/test-gc-hmac-md5.c: Likewise.
20666         * tests/test-gc-hmac-sha1.c: Likewise.
20667         * tests/test-gc-md2.c: Likewise.
20668         * tests/test-gc-md4.c: Likewise.
20669         * tests/test-gc-md5.c: Likewise.
20670         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20671         * tests/test-gc-rijndael.c: Likewise.
20672         * tests/test-gc-sha1.c: Likewise.
20673         * tests/test-gc.c: Likewise.
20674         * tests/test-getcwd.c: Likewise.
20675         * tests/test-link.c: Likewise.
20676         * tests/test-link.h: Likewise.
20677         * tests/test-lutimens.h: Likewise.
20678         * tests/test-md2.c: Likewise.
20679         * tests/test-md4.c: Likewise.
20680         * tests/test-mkdir.h: Likewise.
20681         * tests/test-rename.c: Likewise.
20682         * tests/test-rename.h: Likewise.
20683         * tests/test-safe-alloc.c: Likewise.
20684         * tests/test-utimens-common.h: Likewise.
20685         * tests/test-utimens.h: Likewise.
20686
20687         maint: sync license texts
20688         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20689         * doc/gpl-3.0.texi: Revert copyright year update.
20690         * doc/lgpl-3.0.texi: Likewise.
20691
20692 2009-12-29  Jim Meyering  <meyering@redhat.com>
20693
20694         update nearly all FSF copyright year lists to include 2009
20695         The files named by the following are exempted:
20696             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20697               test -f "$dst" && { echo "$dst"; continue; }
20698               test -d "$dst" || continue
20699               echo "$dst"/$(basename "$src")
20700             done > exempt
20701             git ls-files tests/unictype >> exempt
20702         In the remaining files, convert to all-interval notation if
20703         - there is already at least one year interval like 2000-2003
20704         - the file is maintained by me
20705         - the file is in lib/uni*/, where that style already prevails
20706         Otherwise, use update-copyright's default.
20707
20708 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20709         and Eric Blake  <ebb9@byu.net>
20710
20711         tests: don't require debug system() to pass
20712         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20713         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20714         * tests/test-unlink.h (test_unlink_func): Likewise.
20715         * tests/test-fstatat.c (main): ...into callers.
20716         * tests/test-lstat.c (main): Likewise.
20717         * tests/test-rmdir.c (main): Likewise.
20718         * tests/test-unlink.c (main): Likewise.
20719         * tests/test-unlinkat.c (main): Likewise.
20720         * tests/test-areadlink-with-size.c (main): Don't require a
20721         debug-only system call to pass, aiding cross-testing to mingw.
20722         * tests/test-areadlink.c (main): Likewise.
20723         * tests/test-areadlinkat-with-size.c (main): Likewise.
20724         * tests/test-areadlinkat.c (main): Likewise.
20725         * tests/test-canonicalize-lgpl.c (main): Likewise.
20726         * tests/test-canonicalize.c (main): Likewise.
20727         * tests/test-chown.c (main): Likewise.
20728         * tests/test-fchownat.c (main): Likewise.
20729         * tests/test-lchown.c (main): Likewise.
20730         * tests/test-fdutimensat.c (main): Likewise.
20731         * tests/test-futimens.c (main): Likewise.
20732         * tests/test-link.c (main): Likewise.
20733         * tests/test-linkat.c (main): Likewise.
20734         * tests/test-mkdir.c (main): Likewise.
20735         * tests/test-mkdirat.c (main): Likewise.
20736         * tests/test-mkfifo.c (main): Likewise.
20737         * tests/test-mkfifoat.c (main): Likewise.
20738         * tests/test-mknod.c (main): Likewise.
20739         * tests/test-readlink.c (main): Likewise.
20740         * tests/test-remove.c (main): Likewise.
20741         * tests/test-rename.c (main): Likewise.
20742         * tests/test-renameat.c (main): Likewise.
20743         * tests/test-symlink.c (main): Likewise.
20744         * tests/test-symlinkat.c (main): Likewise.
20745         * tests/test-utimens.c (main): Likewise.
20746         * tests/test-utimensat.c (main): Likewise.
20747
20748 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20749
20750         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20751         on $(UNUSED_PARAMETER_H) to avoid build failure.
20752
20753 2009-12-28  Jim Meyering  <meyering@redhat.com>
20754
20755         update-copyright: you may specify a max. line length other than 72
20756         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20757
20758         maint: use consistent FSF copyright line syntax
20759         * lib/posixtm.c: Add missing comma in FSF copyright line.
20760         * lib/posixtm.h: Likewise.
20761         * lib/getugroups.c: Add missing ", Inc.".
20762
20763         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20764         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20765         FSF copyright line.  Remove trailing blanks.
20766
20767 2009-12-28  Eric Blake  <ebb9@byu.net>
20768
20769         test-dup2: reduce dependencies
20770         * modules/cloexec (Configure.ac): Set witness.
20771         * modules/dup2-tests (Depends-on): Drop cloexec.
20772         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20773         not present.
20774         Suggested by Bruno Haible.
20775
20776 2009-12-26  Bruno Haible  <bruno@clisp.org>
20777
20778         Remove an unneeded dependency.
20779         * modules/fseterr (Depends-on): Remove dup2.
20780
20781 2009-12-26  Eric Blake  <ebb9@byu.net>
20782
20783         tests: use macros.h in more places
20784         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20785         (ASSERT_STREAM): Provide default of stderr.
20786         * tests/test-dirent-safer.c: Include macros.h, using alternate
20787         stream for assertions.
20788         * tests/test-dup-safer.c: Likewise.
20789         * tests/test-freopen-safer.c: Likewise.
20790         * tests/test-getopt.c: Likewise.
20791         * tests/test-openat-safer.c: Likewise.
20792         * tests/test-pipe.c: Likewise.
20793         * tests/test-popen-safer.c: Likewise.
20794         * modules/dirent-safer-tests (Files): Include macros.h.
20795         * modules/unistd-safer-tests (Files): Likewise.
20796         * modules/freopen-safer-tests (Files): Likewise.
20797         * modules/getopt-posix-tests (Files): Likewise.
20798         * modules/openat-safer-tests (Files): Likewise.
20799         * modules/pipe-tests (Files): Likewise.
20800
20801 2009-12-26  Bruno Haible  <bruno@clisp.org>
20802
20803         javacomp: Portability fix.
20804         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20805         that it also works on Solaris.
20806
20807 2009-12-26  Bruno Haible  <bruno@clisp.org>
20808
20809         localename: Fix storage allocation of gl_locale_name_thread's result.
20810         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20811         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20812         all platforms that have 'uselocale'.
20813         (gl_locale_name_thread_unsafe): New function, extracted from
20814         gl_locale_name_thread.
20815         (gl_locale_name_thread): Call struniq on all platforms that have
20816         'uselocale'.
20817         * tests/test-localename.c (test_locale_name_thread): Check that the
20818         resulting strings are permanently allocated.
20819         * modules/localename-tests (Depends-on): Add strdup.
20820
20821 2009-12-26  Bruno Haible  <bruno@clisp.org>
20822
20823         * tests/test-localename.c (categories): Fill in the strings.
20824
20825 2009-12-26  Jim Meyering  <meyering@redhat.com>
20826
20827         isdir: complete the removal of m4/isdir.m4
20828         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20829
20830         isdir: clean up, since at least grep still uses it
20831         * lib/isdir.c: Include "isdir.h".
20832         (S_ISDIR): Remove now-unneeded definition.
20833         * modules/isdir (Files): Add lib/isdir.h.
20834         * lib/isdir.h: New file, with declaration.
20835         * m4/isdir.m4: Remove file -- unneeded.
20836
20837 2009-12-25  Bruno Haible  <bruno@clisp.org>
20838
20839         selinux-h: Make generated .h files standalone.
20840         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20841         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20842         * lib/se-selinux.in.h: Likewise.
20843         * modules/selinux-h (Depends-on): Add unused-parameter.
20844         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20845         selinux/selinux.h and selinux/context.h.
20846         Suggested by Eric Blake.
20847
20848 2009-12-25  Bruno Haible  <bruno@clisp.org>
20849
20850         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20851         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20852         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20853         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20854         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20855
20856 2009-12-24  Bruno Haible  <bruno@clisp.org>
20857
20858         openat: Fix warning.
20859         * lib/openat-proc.c: Include <unistd.h>.
20860
20861 2009-12-24  Bruno Haible  <bruno@clisp.org>
20862
20863         New module 'unused-parameter'.
20864         * build-aux/unused-parameter.h: New file, extracted from earlier
20865         gnulib-common.m4.
20866         * modules/unused-parameter: New file.
20867         * lib/unistr.h: Include unused-parameter.h.
20868         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20869         _GL_UNUSED.
20870         * modules/unistr/base (Depends-on): Add unused-parameter.
20871
20872 2009-12-24  Bruno Haible  <bruno@clisp.org>
20873
20874         Add missing dependencies to 'extensions' module.
20875         * m4/extensions.m4: Add comment.
20876         * modules/accept4 (Depends-on): Add extensions.
20877         * modules/dup3 (Depends-on): Likewise.
20878         * modules/fcntl (Depends-on): Likewise.
20879         * modules/futimens (Depends-on): Likewise.
20880         * modules/mknod (Depends-on): Likewise.
20881         * modules/pipe2 (Depends-on): Likewise.
20882         * modules/stat-time (Depends-on): Likewise.
20883         * modules/strcasestr-simple (Depends-on): Likewise.
20884         * modules/strsignal (Depends-on): Likewise.
20885         * modules/utimensat (Depends-on): Likewise.
20886         * modules/localcharset (Depends-on): Likewise. Needed because of
20887         gl_FCNTL_O_FLAGS.
20888         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20889         AC_TYPE_MBSTATE_T.
20890         * modules/wcsnrtombs (Depends-on): Likewise.
20891         * modules/wcsrtombs (Depends-on): Likewise.
20892
20893 2009-12-24  Bruno Haible  <bruno@clisp.org>
20894
20895         binary-io: Avoid gcc warning due to SET_BINARY.
20896         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20897         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20898
20899 2009-12-24  Bruno Haible  <bruno@clisp.org>
20900
20901         Avoid future namespace pollution on glibc systems.
20902         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20903         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20904         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20905         glibc systems.
20906
20907 2009-12-24  Bruno Haible  <bruno@clisp.org>
20908
20909         Refactor common macros used in tests.
20910         * tests/macros.h: New file.
20911         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20912         and/or <stdlib.h>, if appropriate.
20913         (ASSERT, SIZEOF): Remove macros.
20914         * tests/test-areadlink-with-size.c: Likewise.
20915         * tests/test-areadlinkat.c: Likewise.
20916         * tests/test-areadlinkat-with-size.c: Likewise.
20917         * tests/test-argmatch.c: Likewise.
20918         * tests/test-argv-iter.c: Likewise.
20919         * tests/test-array-mergesort.c: Likewise.
20920         * tests/test-array_list.c: Likewise.
20921         * tests/test-array_oset.c: Likewise.
20922         * tests/test-avltree_list.c: Likewise.
20923         * tests/test-avltree_oset.c: Likewise.
20924         * tests/test-avltreehash_list.c: Likewise.
20925         * tests/test-base64.c: Likewise.
20926         * tests/test-binary-io.c: Likewise.
20927         * tests/test-bitrotate.c: Likewise.
20928         * tests/test-btowc.c: Likewise.
20929         * tests/test-byteswap.c: Likewise.
20930         * tests/test-c-ctype.c: Likewise.
20931         * tests/test-c-stack.c: Likewise.
20932         * tests/test-c-strcasecmp.c: Likewise.
20933         * tests/test-c-strcasestr.c: Likewise.
20934         * tests/test-c-strncasecmp.c: Likewise.
20935         * tests/test-c-strstr.c: Likewise.
20936         * tests/test-canonicalize-lgpl.c: Likewise.
20937         * tests/test-canonicalize.c: Likewise.
20938         * tests/test-carray_list.c: Likewise.
20939         * tests/test-ceilf1.c: Likewise.
20940         * tests/test-ceilf2.c: Likewise.
20941         * tests/test-ceill.c: Likewise.
20942         * tests/test-chown.c: Likewise.
20943         * tests/test-cloexec.c: Likewise.
20944         * tests/test-copy-acl.c: Likewise.
20945         * tests/test-copy-file.c: Likewise.
20946         * tests/test-count-one-bits.c: Likewise.
20947         * tests/test-dprintf-posix.c: Likewise.
20948         * tests/test-dup2.c: Likewise.
20949         * tests/test-dup3.c: Likewise.
20950         * tests/test-duplocale.c: Likewise.
20951         * tests/test-fbufmode.c: Likewise.
20952         * tests/test-fchdir.c: Likewise.
20953         * tests/test-fchownat.c: Likewise.
20954         * tests/test-fcntl-safer.c: Likewise.
20955         * tests/test-fcntl.c: Likewise.
20956         * tests/test-fdopendir.c: Likewise.
20957         * tests/test-fdutimensat.c: Likewise.
20958         * tests/test-fflush2.c: Likewise.
20959         * tests/test-file-has-acl.c: Likewise.
20960         * tests/test-filevercmp.c: Likewise.
20961         * tests/test-flock.c: Likewise.
20962         * tests/test-floorf1.c: Likewise.
20963         * tests/test-floorf2.c: Likewise.
20964         * tests/test-floorl.c: Likewise.
20965         * tests/test-fnmatch.c: Likewise.
20966         * tests/test-fopen.h: Likewise.
20967         * tests/test-fpending.c: Likewise.
20968         * tests/test-fprintf-posix.c: Likewise.
20969         * tests/test-fpurge.c: Likewise.
20970         * tests/test-freadable.c: Likewise.
20971         * tests/test-freadahead.c: Likewise.
20972         * tests/test-freading.c: Likewise.
20973         * tests/test-freadptr.c: Likewise.
20974         * tests/test-freadptr2.c: Likewise.
20975         * tests/test-freadseek.c: Likewise.
20976         * tests/test-freopen.c: Likewise.
20977         * tests/test-frexp.c: Likewise.
20978         * tests/test-frexpl.c: Likewise.
20979         * tests/test-fseek.c: Likewise.
20980         * tests/test-fseeko.c: Likewise.
20981         * tests/test-fstatat.c: Likewise.
20982         * tests/test-fstrcmp.c: Likewise.
20983         * tests/test-fsync.c: Likewise.
20984         * tests/test-ftell.c: Likewise.
20985         * tests/test-ftello.c: Likewise.
20986         * tests/test-func.c: Likewise.
20987         * tests/test-futimens.c: Likewise.
20988         * tests/test-fwritable.c: Likewise.
20989         * tests/test-fwriting.c: Likewise.
20990         * tests/test-getcwd.c: Likewise.
20991         * tests/test-getdate.c: Likewise.
20992         * tests/test-getdelim.c: Likewise.
20993         * tests/test-getdtablesize.c: Likewise.
20994         * tests/test-getgroups.c: Likewise.
20995         * tests/test-getline.c: Likewise.
20996         * tests/test-getndelim2.c: Likewise.
20997         * tests/test-glob.c: Likewise.
20998         * tests/test-hash.c: Likewise.
20999         * tests/test-i-ring.c: Likewise.
21000         * tests/test-iconv-utf.c: Likewise.
21001         * tests/test-iconv.c: Likewise.
21002         * tests/test-idpriv-drop.c: Likewise.
21003         * tests/test-idpriv-droptemp.c: Likewise.
21004         * tests/test-inet_ntop.c: Likewise.
21005         * tests/test-inet_pton.c: Likewise.
21006         * tests/test-isblank.c: Likewise.
21007         * tests/test-isfinite.c: Likewise.
21008         * tests/test-isinf.c: Likewise.
21009         * tests/test-isnan.c: Likewise.
21010         * tests/test-isnand.h: Likewise.
21011         * tests/test-isnanf.h: Likewise.
21012         * tests/test-isnanl.h: Likewise.
21013         * tests/test-lchown.c: Likewise.
21014         * tests/test-ldexpl.c: Likewise.
21015         * tests/test-link.c: Likewise.
21016         * tests/test-linkat.c: Likewise.
21017         * tests/test-linked_list.c: Likewise.
21018         * tests/test-linkedhash_list.c: Likewise.
21019         * tests/test-localename.c: Likewise.
21020         * tests/test-lseek.c: Likewise.
21021         * tests/test-lstat.c: Likewise.
21022         * tests/test-mbmemcasecmp.c: Likewise.
21023         * tests/test-mbmemcasecoll.c: Likewise.
21024         * tests/test-mbrtowc.c: Likewise.
21025         * tests/test-mbscasecmp.c: Likewise.
21026         * tests/test-mbscasestr1.c: Likewise.
21027         * tests/test-mbscasestr2.c: Likewise.
21028         * tests/test-mbscasestr3.c: Likewise.
21029         * tests/test-mbscasestr4.c: Likewise.
21030         * tests/test-mbschr.c: Likewise.
21031         * tests/test-mbscspn.c: Likewise.
21032         * tests/test-mbsinit.c: Likewise.
21033         * tests/test-mbsncasecmp.c: Likewise.
21034         * tests/test-mbsnrtowcs.c: Likewise.
21035         * tests/test-mbspbrk.c: Likewise.
21036         * tests/test-mbspcasecmp.c: Likewise.
21037         * tests/test-mbsrchr.c: Likewise.
21038         * tests/test-mbsrtowcs.c: Likewise.
21039         * tests/test-mbsspn.c: Likewise.
21040         * tests/test-mbsstr1.c: Likewise.
21041         * tests/test-mbsstr2.c: Likewise.
21042         * tests/test-mbsstr3.c: Likewise.
21043         * tests/test-memchr.c: Likewise.
21044         * tests/test-memchr2.c: Likewise.
21045         * tests/test-memcmp.c: Likewise.
21046         * tests/test-memmem.c: Likewise.
21047         * tests/test-memrchr.c: Likewise.
21048         * tests/test-mkdir.c: Likewise.
21049         * tests/test-mkdirat.c: Likewise.
21050         * tests/test-mkfifo.c: Likewise.
21051         * tests/test-mkfifoat.c: Likewise.
21052         * tests/test-mknod.c: Likewise.
21053         * tests/test-nanosleep.c: Likewise.
21054         * tests/test-nl_langinfo.c: Likewise.
21055         * tests/test-obstack-printf.c: Likewise.
21056         * tests/test-open.c: Likewise.
21057         * tests/test-openat.c: Likewise.
21058         * tests/test-pipe-filter-gi1.c: Likewise.
21059         * tests/test-pipe-filter-gi2-main.c: Likewise.
21060         * tests/test-pipe-filter-ii1.c: Likewise.
21061         * tests/test-pipe-filter-ii2-main.c: Likewise.
21062         * tests/test-pipe2.c: Likewise.
21063         * tests/test-popen.h: Likewise.
21064         * tests/test-posixtm.c: Likewise.
21065         * tests/test-pread.c: Likewise.
21066         * tests/test-printf-frexp.c: Likewise.
21067         * tests/test-printf-frexpl.c: Likewise.
21068         * tests/test-printf-posix.c: Likewise.
21069         * tests/test-priv-set.c: Likewise.
21070         * tests/test-quotearg.c: Likewise.
21071         * tests/test-random_r.c: Likewise.
21072         * tests/test-rawmemchr.c: Likewise.
21073         * tests/test-rbtree_list.c: Likewise.
21074         * tests/test-rbtree_oset.c: Likewise.
21075         * tests/test-rbtreehash_list.c: Likewise.
21076         * tests/test-readlink.c: Likewise.
21077         * tests/test-remove.c: Likewise.
21078         * tests/test-rename.c: Likewise.
21079         * tests/test-renameat.c: Likewise.
21080         * tests/test-rmdir.c: Likewise.
21081         * tests/test-round1.c: Likewise.
21082         * tests/test-roundf1.c: Likewise.
21083         * tests/test-roundl.c: Likewise.
21084         * tests/test-safe-alloc.c: Likewise.
21085         * tests/test-sameacls.c: Likewise.
21086         * tests/test-set-mode-acl.c: Likewise.
21087         * tests/test-setenv.c: Likewise.
21088         * tests/test-sigaction.c: Likewise.
21089         * tests/test-signbit.c: Likewise.
21090         * tests/test-sleep.c: Likewise.
21091         * tests/test-snprintf-posix.c: Likewise.
21092         * tests/test-snprintf.c: Likewise.
21093         * tests/test-sprintf-posix.c: Likewise.
21094         * tests/test-stat-time.c: Likewise.
21095         * tests/test-stat.c: Likewise.
21096         * tests/test-strcasestr.c: Likewise.
21097         * tests/test-strchrnul.c: Likewise.
21098         * tests/test-strerror.c: Likewise.
21099         * tests/test-striconv.c: Likewise.
21100         * tests/test-striconveh.c: Likewise.
21101         * tests/test-striconveha.c: Likewise.
21102         * tests/test-strsignal.c: Likewise.
21103         * tests/test-strstr.c: Likewise.
21104         * tests/test-strtod.c: Likewise.
21105         * tests/test-strverscmp.c: Likewise.
21106         * tests/test-symlink.c: Likewise.
21107         * tests/test-symlinkat.c: Likewise.
21108         * tests/test-trunc1.c: Likewise.
21109         * tests/test-trunc2.c: Likewise.
21110         * tests/test-truncf1.c: Likewise.
21111         * tests/test-truncf2.c: Likewise.
21112         * tests/test-truncl.c: Likewise.
21113         * tests/test-uname.c: Likewise.
21114         * tests/test-unlink.c: Likewise.
21115         * tests/test-unlinkat.c: Likewise.
21116         * tests/test-unsetenv.c: Likewise.
21117         * tests/test-usleep.c: Likewise.
21118         * tests/test-utimens.c: Likewise.
21119         * tests/test-utimensat.c: Likewise.
21120         * tests/test-vasnprintf-posix.c: Likewise.
21121         * tests/test-vasnprintf-posix2.c: Likewise.
21122         * tests/test-vasnprintf.c: Likewise.
21123         * tests/test-vasprintf-posix.c: Likewise.
21124         * tests/test-vasprintf.c: Likewise.
21125         * tests/test-vdprintf-posix.c: Likewise.
21126         * tests/test-vfprintf-posix.c: Likewise.
21127         * tests/test-vprintf-posix.c: Likewise.
21128         * tests/test-vsnprintf-posix.c: Likewise.
21129         * tests/test-vsnprintf.c: Likewise.
21130         * tests/test-vsprintf-posix.c: Likewise.
21131         * tests/test-wcrtomb.c: Likewise.
21132         * tests/test-wcsnrtombs.c: Likewise.
21133         * tests/test-wcsrtombs.c: Likewise.
21134         * tests/test-wctype.c: Likewise.
21135         * tests/test-wcwidth.c: Likewise.
21136         * tests/test-xfprintf-posix.c: Likewise.
21137         * tests/test-xmemdup0.c: Likewise.
21138         * tests/test-xprintf-posix.c: Likewise.
21139         * tests/test-xvasprintf.c: Likewise.
21140         * tests/unicase/test-locale-language.c: Likewise.
21141         * tests/unicase/test-mapping-part1.h: Likewise.
21142         * tests/unicase/test-predicate-part1.h: Likewise.
21143         * tests/unicase/test-u8-casecmp.c: Likewise.
21144         * tests/unicase/test-u8-casecoll.c: Likewise.
21145         * tests/unicase/test-u8-casefold.c: Likewise.
21146         * tests/unicase/test-u8-is-cased.c: Likewise.
21147         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21148         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21149         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21150         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21151         * tests/unicase/test-u8-tolower.c: Likewise.
21152         * tests/unicase/test-u8-totitle.c: Likewise.
21153         * tests/unicase/test-u8-toupper.c: Likewise.
21154         * tests/unicase/test-u16-casecmp.c: Likewise.
21155         * tests/unicase/test-u16-casecoll.c: Likewise.
21156         * tests/unicase/test-u16-casefold.c: Likewise.
21157         * tests/unicase/test-u16-is-cased.c: Likewise.
21158         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21159         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21160         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21161         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21162         * tests/unicase/test-u16-tolower.c: Likewise.
21163         * tests/unicase/test-u16-totitle.c: Likewise.
21164         * tests/unicase/test-u16-toupper.c: Likewise.
21165         * tests/unicase/test-u32-casecmp.c: Likewise.
21166         * tests/unicase/test-u32-casecoll.c: Likewise.
21167         * tests/unicase/test-u32-casefold.c: Likewise.
21168         * tests/unicase/test-u32-is-cased.c: Likewise.
21169         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21170         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21171         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21172         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21173         * tests/unicase/test-u32-tolower.c: Likewise.
21174         * tests/unicase/test-u32-totitle.c: Likewise.
21175         * tests/unicase/test-u32-toupper.c: Likewise.
21176         * tests/unicase/test-ulc-casecmp.c: Likewise.
21177         * tests/unicase/test-ulc-casecoll.c: Likewise.
21178         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21179         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21180         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21181         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21182         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21183         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21184         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21185         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21186         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21187         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21188         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21189         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21190         * tests/unictype/test-bidi_byname.c: Likewise.
21191         * tests/unictype/test-bidi_name.c: Likewise.
21192         * tests/unictype/test-bidi_of.c: Likewise.
21193         * tests/unictype/test-bidi_test.c: Likewise.
21194         * tests/unictype/test-block_list.c: Likewise.
21195         * tests/unictype/test-block_of.c: Likewise.
21196         * tests/unictype/test-block_test.c: Likewise.
21197         * tests/unictype/test-categ_and.c: Likewise.
21198         * tests/unictype/test-categ_and_not.c: Likewise.
21199         * tests/unictype/test-categ_byname.c: Likewise.
21200         * tests/unictype/test-categ_name.c: Likewise.
21201         * tests/unictype/test-categ_none.c: Likewise.
21202         * tests/unictype/test-categ_of.c: Likewise.
21203         * tests/unictype/test-categ_or.c: Likewise.
21204         * tests/unictype/test-categ_test_withtable.c: Likewise.
21205         * tests/unictype/test-combining.c: Likewise.
21206         * tests/unictype/test-decdigit.c: Likewise.
21207         * tests/unictype/test-digit.c: Likewise.
21208         * tests/unictype/test-mirror.c: Likewise.
21209         * tests/unictype/test-numeric.c: Likewise.
21210         * tests/unictype/test-pr_byname.c: Likewise.
21211         * tests/unictype/test-pr_test.c: Likewise.
21212         * tests/unictype/test-predicate-part1.h: Likewise.
21213         * tests/unictype/test-scripts.c: Likewise.
21214         * tests/unictype/test-sy_c_ident.c: Likewise.
21215         * tests/unictype/test-sy_java_ident.c: Likewise.
21216         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21217         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21218         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21219         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21220         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21221         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21222         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21223         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21224         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21225         * tests/uninorm/test-compat-decomposition.c: Likewise.
21226         * tests/uninorm/test-composition.c: Likewise.
21227         * tests/uninorm/test-decomposing-form.c: Likewise.
21228         * tests/uninorm/test-decomposition.c: Likewise.
21229         * tests/uninorm/test-u8-nfc.c: Likewise.
21230         * tests/uninorm/test-u8-nfd.c: Likewise.
21231         * tests/uninorm/test-u8-nfkc.c: Likewise.
21232         * tests/uninorm/test-u8-nfkd.c: Likewise.
21233         * tests/uninorm/test-u8-normcmp.c: Likewise.
21234         * tests/uninorm/test-u8-normcoll.c: Likewise.
21235         * tests/uninorm/test-u16-nfc.c: Likewise.
21236         * tests/uninorm/test-u16-nfd.c: Likewise.
21237         * tests/uninorm/test-u16-nfkc.c: Likewise.
21238         * tests/uninorm/test-u16-nfkd.c: Likewise.
21239         * tests/uninorm/test-u16-normcmp.c: Likewise.
21240         * tests/uninorm/test-u16-normcoll.c: Likewise.
21241         * tests/uninorm/test-u32-nfc.c: Likewise.
21242         * tests/uninorm/test-u32-nfd.c: Likewise.
21243         * tests/uninorm/test-u32-nfkc.c: Likewise.
21244         * tests/uninorm/test-u32-nfkd.c: Likewise.
21245         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21246         * tests/uninorm/test-u32-normcmp.c: Likewise.
21247         * tests/uninorm/test-u32-normcoll.c: Likewise.
21248         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21249         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21250         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21251         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21252         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21253         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21254         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21255         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21256         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21257         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21258         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21259         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21260         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21261         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21262         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21263         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21264         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21265         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21266         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21267         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21268         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21269         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21270         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21271         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21272         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21273         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21274         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21275         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21276         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21277         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21278         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21279         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21280         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21281         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21282         * tests/uniwidth/test-u8-width.c: Likewise.
21283         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21284         * tests/uniwidth/test-u16-width.c: Likewise.
21285         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21286         * tests/uniwidth/test-u32-width.c: Likewise.
21287         * tests/uniwidth/test-uc_width.c: Likewise.
21288         * tests/uniwidth/test-uc_width2.c: Likewise.
21289         * modules/acl-tests (Files): Add tests/macros.h.
21290         * modules/areadlink-tests (Files): Likewise.
21291         * modules/areadlink-with-size-tests (Files): Likewise.
21292         * modules/areadlinkat-tests (Files): Likewise.
21293         * modules/areadlinkat-with-size-tests (Files): Likewise.
21294         * modules/argmatch-tests (Files): Likewise.
21295         * modules/argv-iter-tests (Files): Likewise.
21296         * modules/array-list-tests (Files): Likewise.
21297         * modules/array-mergesort-tests (Files): Likewise.
21298         * modules/array-oset-tests (Files): Likewise.
21299         * modules/avltree-list-tests (Files): Likewise.
21300         * modules/avltree-oset-tests (Files): Likewise.
21301         * modules/avltreehash-list-tests (Files): Likewise.
21302         * modules/base64-tests (Files): Likewise.
21303         * modules/binary-io-tests (Files): Likewise.
21304         * modules/bitrotate-tests (Files): Likewise.
21305         * modules/btowc-tests (Files): Likewise.
21306         * modules/byteswap-tests (Files): Likewise.
21307         * modules/c-ctype-tests (Files): Likewise.
21308         * modules/c-stack-tests (Files): Likewise.
21309         * modules/c-strcase-tests (Files): Likewise.
21310         * modules/c-strcasestr-tests (Files): Likewise.
21311         * modules/c-strstr-tests (Files): Likewise.
21312         * modules/canonicalize-lgpl-tests (Files): Likewise.
21313         * modules/canonicalize-tests (Files): Likewise.
21314         * modules/carray-list-tests (Files): Likewise.
21315         * modules/ceilf-tests (Files): Likewise.
21316         * modules/ceill-tests (Files): Likewise.
21317         * modules/chown-tests (Files): Likewise.
21318         * modules/cloexec-tests (Files): Likewise.
21319         * modules/copy-file-tests (Files): Likewise.
21320         * modules/count-one-bits-tests (Files): Likewise.
21321         * modules/dprintf-posix-tests (Files): Likewise.
21322         * modules/dup2-tests (Files): Likewise.
21323         * modules/dup3-tests (Files): Likewise.
21324         * modules/duplocale-tests (Files): Likewise.
21325         * modules/fbufmode-tests (Files): Likewise.
21326         * modules/fchdir-tests (Files): Likewise.
21327         * modules/fcntl-safer-tests (Files): Likewise.
21328         * modules/fcntl-tests (Files): Likewise.
21329         * modules/fdopendir-tests (Files): Likewise.
21330         * modules/fdutimensat-tests (Files): Likewise.
21331         * modules/fflush-tests (Files): Likewise.
21332         * modules/filevercmp-tests (Files): Likewise.
21333         * modules/flock-tests (Files): Likewise.
21334         * modules/floorf-tests (Files): Likewise.
21335         * modules/floorl-tests (Files): Likewise.
21336         * modules/fnmatch-tests (Files): Likewise.
21337         * modules/fopen-safer-tests (Files): Likewise.
21338         * modules/fopen-tests (Files): Likewise.
21339         * modules/fpending-tests (Files): Likewise.
21340         * modules/fprintf-posix-tests (Files): Likewise.
21341         * modules/fpurge-tests (Files): Likewise.
21342         * modules/freadable-tests (Files): Likewise.
21343         * modules/freadahead-tests (Files): Likewise.
21344         * modules/freading-tests (Files): Likewise.
21345         * modules/freadptr-tests (Files): Likewise.
21346         * modules/freadseek-tests (Files): Likewise.
21347         * modules/freopen-tests (Files): Likewise.
21348         * modules/frexp-nolibm-tests (Files): Likewise.
21349         * modules/frexp-tests (Files): Likewise.
21350         * modules/frexpl-nolibm-tests (Files): Likewise.
21351         * modules/frexpl-tests (Files): Likewise.
21352         * modules/fseek-tests (Files): Likewise.
21353         * modules/fseeko-tests (Files): Likewise.
21354         * modules/fstrcmp-tests (Files): Likewise.
21355         * modules/fsync-tests (Files): Likewise.
21356         * modules/ftell-tests (Files): Likewise.
21357         * modules/ftello-tests (Files): Likewise.
21358         * modules/func-tests (Files): Likewise.
21359         * modules/futimens-tests (Files): Likewise.
21360         * modules/fwritable-tests (Files): Likewise.
21361         * modules/fwriting-tests (Files): Likewise.
21362         * modules/getcwd-tests (Files): Likewise.
21363         * modules/getdate-tests (Files): Likewise.
21364         * modules/getdelim-tests (Files): Likewise.
21365         * modules/getdtablesize-tests (Files): Likewise.
21366         * modules/getgroups-tests (Files): Likewise.
21367         * modules/getline-tests (Files): Likewise.
21368         * modules/getndelim2-tests (Files): Likewise.
21369         * modules/glob-tests (Files): Likewise.
21370         * modules/hash-tests (Files): Likewise.
21371         * modules/i-ring-tests (Files): Likewise.
21372         * modules/iconv-tests (Files): Likewise.
21373         * modules/iconv_open-utf-tests (Files): Likewise.
21374         * modules/idpriv-drop-tests (Files): Likewise.
21375         * modules/idpriv-droptemp-tests (Files): Likewise.
21376         * modules/inet_ntop-tests (Files): Likewise.
21377         * modules/inet_pton-tests (Files): Likewise.
21378         * modules/isblank-tests (Files): Likewise.
21379         * modules/isfinite-tests (Files): Likewise.
21380         * modules/isinf-tests (Files): Likewise.
21381         * modules/isnan-tests (Files): Likewise.
21382         * modules/isnand-nolibm-tests (Files): Likewise.
21383         * modules/isnand-tests (Files): Likewise.
21384         * modules/isnanf-nolibm-tests (Files): Likewise.
21385         * modules/isnanf-tests (Files): Likewise.
21386         * modules/isnanl-nolibm-tests (Files): Likewise.
21387         * modules/isnanl-tests (Files): Likewise.
21388         * modules/lchown-tests (Files): Likewise.
21389         * modules/ldexpl-tests (Files): Likewise.
21390         * modules/link-tests (Files): Likewise.
21391         * modules/linkat-tests (Files): Likewise.
21392         * modules/linked-list-tests (Files): Likewise.
21393         * modules/linkedhash-list-tests (Files): Likewise.
21394         * modules/localename-tests (Files): Likewise.
21395         * modules/lseek-tests (Files): Likewise.
21396         * modules/lstat-tests (Files): Likewise.
21397         * modules/mbmemcasecmp-tests (Files): Likewise.
21398         * modules/mbmemcasecoll-tests (Files): Likewise.
21399         * modules/mbrtowc-tests (Files): Likewise.
21400         * modules/mbscasecmp-tests (Files): Likewise.
21401         * modules/mbscasestr-tests (Files): Likewise.
21402         * modules/mbschr-tests (Files): Likewise.
21403         * modules/mbscspn-tests (Files): Likewise.
21404         * modules/mbsinit-tests (Files): Likewise.
21405         * modules/mbsncasecmp-tests (Files): Likewise.
21406         * modules/mbsnrtowcs-tests (Files): Likewise.
21407         * modules/mbspbrk-tests (Files): Likewise.
21408         * modules/mbspcasecmp-tests (Files): Likewise.
21409         * modules/mbsrchr-tests (Files): Likewise.
21410         * modules/mbsrtowcs-tests (Files): Likewise.
21411         * modules/mbsspn-tests (Files): Likewise.
21412         * modules/mbsstr-tests (Files): Likewise.
21413         * modules/memchr-tests (Files): Likewise.
21414         * modules/memchr2-tests (Files): Likewise.
21415         * modules/memcmp-tests (Files): Likewise.
21416         * modules/memmem-tests (Files): Likewise.
21417         * modules/memrchr-tests (Files): Likewise.
21418         * modules/mkdir-tests (Files): Likewise.
21419         * modules/mkfifo-tests (Files): Likewise.
21420         * modules/mkfifoat-tests (Files): Likewise.
21421         * modules/mknod-tests (Files): Likewise.
21422         * modules/nanosleep-tests (Files): Likewise.
21423         * modules/nl_langinfo-tests (Files): Likewise.
21424         * modules/obstack-printf-tests (Files): Likewise.
21425         * modules/open-tests (Files): Likewise.
21426         * modules/openat-tests (Files): Likewise.
21427         * modules/pipe-filter-gi-tests (Files): Likewise.
21428         * modules/pipe-filter-ii-tests (Files): Likewise.
21429         * modules/pipe2-tests (Files): Likewise.
21430         * modules/popen-safer-tests (Files): Likewise.
21431         * modules/popen-tests (Files): Likewise.
21432         * modules/posixtm-tests (Files): Likewise.
21433         * modules/pread-tests (Files): Likewise.
21434         * modules/printf-frexp-tests (Files): Likewise.
21435         * modules/printf-frexpl-tests (Files): Likewise.
21436         * modules/printf-posix-tests (Files): Likewise.
21437         * modules/priv-set-tests (Files): Likewise.
21438         * modules/quotearg-tests (Files): Likewise.
21439         * modules/random_r-tests (Files): Likewise.
21440         * modules/rawmemchr-tests (Files): Likewise.
21441         * modules/rbtree-list-tests (Files): Likewise.
21442         * modules/rbtree-oset-tests (Files): Likewise.
21443         * modules/rbtreehash-list-tests (Files): Likewise.
21444         * modules/readlink-tests (Files): Likewise.
21445         * modules/remove-tests (Files): Likewise.
21446         * modules/rename-tests (Files): Likewise.
21447         * modules/renameat-tests (Files): Likewise.
21448         * modules/rmdir-tests (Files): Likewise.
21449         * modules/round-tests (Files): Likewise.
21450         * modules/roundf-tests (Files): Likewise.
21451         * modules/roundl-tests (Files): Likewise.
21452         * modules/safe-alloc-tests (Files): Likewise.
21453         * modules/setenv-tests (Files): Likewise.
21454         * modules/sigaction-tests (Files): Likewise.
21455         * modules/signbit-tests (Files): Likewise.
21456         * modules/sleep-tests (Files): Likewise.
21457         * modules/snprintf-posix-tests (Files): Likewise.
21458         * modules/snprintf-tests (Files): Likewise.
21459         * modules/sprintf-posix-tests (Files): Likewise.
21460         * modules/stat-tests (Files): Likewise.
21461         * modules/stat-time-tests (Files): Likewise.
21462         * modules/strcasestr-tests (Files): Likewise.
21463         * modules/strchrnul-tests (Files): Likewise.
21464         * modules/strerror-tests (Files): Likewise.
21465         * modules/striconv-tests (Files): Likewise.
21466         * modules/striconveh-tests (Files): Likewise.
21467         * modules/striconveha-tests (Files): Likewise.
21468         * modules/strsignal-tests (Files): Likewise.
21469         * modules/strstr-tests (Files): Likewise.
21470         * modules/strtod-tests (Files): Likewise.
21471         * modules/strverscmp-tests (Files): Likewise.
21472         * modules/symlink-tests (Files): Likewise.
21473         * modules/symlinkat-tests (Files): Likewise.
21474         * modules/trunc-tests (Files): Likewise.
21475         * modules/truncf-tests (Files): Likewise.
21476         * modules/truncl-tests (Files): Likewise.
21477         * modules/uname-tests (Files): Likewise.
21478         * modules/unicase/cased-tests (Files): Likewise.
21479         * modules/unicase/ignorable-tests (Files): Likewise.
21480         * modules/unicase/locale-language-tests (Files): Likewise.
21481         * modules/unicase/tolower-tests (Files): Likewise.
21482         * modules/unicase/totitle-tests (Files): Likewise.
21483         * modules/unicase/toupper-tests (Files): Likewise.
21484         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21485         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21486         * modules/unicase/u8-casefold-tests (Files): Likewise.
21487         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21488         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21489         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21490         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21491         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21492         * modules/unicase/u8-tolower-tests (Files): Likewise.
21493         * modules/unicase/u8-totitle-tests (Files): Likewise.
21494         * modules/unicase/u8-toupper-tests (Files): Likewise.
21495         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21496         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21497         * modules/unicase/u16-casefold-tests (Files): Likewise.
21498         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21499         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21500         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21501         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21502         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21503         * modules/unicase/u16-tolower-tests (Files): Likewise.
21504         * modules/unicase/u16-totitle-tests (Files): Likewise.
21505         * modules/unicase/u16-toupper-tests (Files): Likewise.
21506         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21507         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21508         * modules/unicase/u32-casefold-tests (Files): Likewise.
21509         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21510         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21511         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21512         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21513         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21514         * modules/unicase/u32-tolower-tests (Files): Likewise.
21515         * modules/unicase/u32-totitle-tests (Files): Likewise.
21516         * modules/unicase/u32-toupper-tests (Files): Likewise.
21517         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21518         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21519         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21520         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21521         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21522         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21523         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21524         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21525         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21526         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21527         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21528         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21529         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21530         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21531         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21532         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21533         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21534         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21535         * modules/unictype/block-list-tests (Files): Likewise.
21536         * modules/unictype/block-of-tests (Files): Likewise.
21537         * modules/unictype/block-test-tests (Files): Likewise.
21538         * modules/unictype/category-C-tests (Files): Likewise.
21539         * modules/unictype/category-Cc-tests (Files): Likewise.
21540         * modules/unictype/category-Cf-tests (Files): Likewise.
21541         * modules/unictype/category-Cn-tests (Files): Likewise.
21542         * modules/unictype/category-Co-tests (Files): Likewise.
21543         * modules/unictype/category-Cs-tests (Files): Likewise.
21544         * modules/unictype/category-L-tests (Files): Likewise.
21545         * modules/unictype/category-Ll-tests (Files): Likewise.
21546         * modules/unictype/category-Lm-tests (Files): Likewise.
21547         * modules/unictype/category-Lo-tests (Files): Likewise.
21548         * modules/unictype/category-Lt-tests (Files): Likewise.
21549         * modules/unictype/category-Lu-tests (Files): Likewise.
21550         * modules/unictype/category-M-tests (Files): Likewise.
21551         * modules/unictype/category-Mc-tests (Files): Likewise.
21552         * modules/unictype/category-Me-tests (Files): Likewise.
21553         * modules/unictype/category-Mn-tests (Files): Likewise.
21554         * modules/unictype/category-N-tests (Files): Likewise.
21555         * modules/unictype/category-Nd-tests (Files): Likewise.
21556         * modules/unictype/category-Nl-tests (Files): Likewise.
21557         * modules/unictype/category-No-tests (Files): Likewise.
21558         * modules/unictype/category-P-tests (Files): Likewise.
21559         * modules/unictype/category-Pc-tests (Files): Likewise.
21560         * modules/unictype/category-Pd-tests (Files): Likewise.
21561         * modules/unictype/category-Pe-tests (Files): Likewise.
21562         * modules/unictype/category-Pf-tests (Files): Likewise.
21563         * modules/unictype/category-Pi-tests (Files): Likewise.
21564         * modules/unictype/category-Po-tests (Files): Likewise.
21565         * modules/unictype/category-Ps-tests (Files): Likewise.
21566         * modules/unictype/category-S-tests (Files): Likewise.
21567         * modules/unictype/category-Sc-tests (Files): Likewise.
21568         * modules/unictype/category-Sk-tests (Files): Likewise.
21569         * modules/unictype/category-Sm-tests (Files): Likewise.
21570         * modules/unictype/category-So-tests (Files): Likewise.
21571         * modules/unictype/category-Z-tests (Files): Likewise.
21572         * modules/unictype/category-Zl-tests (Files): Likewise.
21573         * modules/unictype/category-Zp-tests (Files): Likewise.
21574         * modules/unictype/category-Zs-tests (Files): Likewise.
21575         * modules/unictype/category-and-not-tests (Files): Likewise.
21576         * modules/unictype/category-and-tests (Files): Likewise.
21577         * modules/unictype/category-byname-tests (Files): Likewise.
21578         * modules/unictype/category-name-tests (Files): Likewise.
21579         * modules/unictype/category-none-tests (Files): Likewise.
21580         * modules/unictype/category-of-tests (Files): Likewise.
21581         * modules/unictype/category-or-tests (Files): Likewise.
21582         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21583         * modules/unictype/combining-class-tests (Files): Likewise.
21584         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21585         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21586         * modules/unictype/ctype-blank-tests (Files): Likewise.
21587         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21588         * modules/unictype/ctype-digit-tests (Files): Likewise.
21589         * modules/unictype/ctype-graph-tests (Files): Likewise.
21590         * modules/unictype/ctype-lower-tests (Files): Likewise.
21591         * modules/unictype/ctype-print-tests (Files): Likewise.
21592         * modules/unictype/ctype-punct-tests (Files): Likewise.
21593         * modules/unictype/ctype-space-tests (Files): Likewise.
21594         * modules/unictype/ctype-upper-tests (Files): Likewise.
21595         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21596         * modules/unictype/decimal-digit-tests (Files): Likewise.
21597         * modules/unictype/digit-tests (Files): Likewise.
21598         * modules/unictype/mirror-tests (Files): Likewise.
21599         * modules/unictype/numeric-tests (Files): Likewise.
21600         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21601         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21602         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21603         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21604         Likewise.
21605         * modules/unictype/property-bidi-block-separator-tests (Files):
21606         Likewise.
21607         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21608         Likewise.
21609         * modules/unictype/property-bidi-common-separator-tests (Files):
21610         Likewise.
21611         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21612         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21613         Likewise.
21614         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21615         Likewise.
21616         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21617         Likewise.
21618         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21619         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21620         Likewise.
21621         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21622         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21623         Likewise.
21624         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21625         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21626         * modules/unictype/property-bidi-segment-separator-tests (Files):
21627         Likewise.
21628         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21629         * modules/unictype/property-byname-tests (Files): Likewise.
21630         * modules/unictype/property-combining-tests (Files): Likewise.
21631         * modules/unictype/property-composite-tests (Files): Likewise.
21632         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21633         * modules/unictype/property-dash-tests (Files): Likewise.
21634         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21635         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21636         Likewise.
21637         * modules/unictype/property-deprecated-tests (Files): Likewise.
21638         * modules/unictype/property-diacritic-tests (Files): Likewise.
21639         * modules/unictype/property-extender-tests (Files): Likewise.
21640         * modules/unictype/property-format-control-tests (Files): Likewise.
21641         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21642         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21643         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21644         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21645         * modules/unictype/property-hyphen-tests (Files): Likewise.
21646         * modules/unictype/property-id-continue-tests (Files): Likewise.
21647         * modules/unictype/property-id-start-tests (Files): Likewise.
21648         * modules/unictype/property-ideographic-tests (Files): Likewise.
21649         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21650         * modules/unictype/property-ids-trinary-operator-tests (Files):
21651         Likewise.
21652         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21653         * modules/unictype/property-iso-control-tests (Files): Likewise.
21654         * modules/unictype/property-join-control-tests (Files): Likewise.
21655         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21656         * modules/unictype/property-line-separator-tests (Files): Likewise.
21657         * modules/unictype/property-logical-order-exception-tests (Files):
21658         Likewise.
21659         * modules/unictype/property-lowercase-tests (Files): Likewise.
21660         * modules/unictype/property-math-tests (Files): Likewise.
21661         * modules/unictype/property-non-break-tests (Files): Likewise.
21662         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21663         * modules/unictype/property-numeric-tests (Files): Likewise.
21664         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21665         * modules/unictype/property-other-default-ignorable-code-point-tests
21666         (Files): Likewise.
21667         * modules/unictype/property-other-grapheme-extend-tests (Files):
21668         Likewise.
21669         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21670         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21671         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21672         * modules/unictype/property-other-math-tests (Files): Likewise.
21673         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21674         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21675         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21676         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21677         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21678         * modules/unictype/property-private-use-tests (Files): Likewise.
21679         * modules/unictype/property-punctuation-tests (Files): Likewise.
21680         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21681         * modules/unictype/property-radical-tests (Files): Likewise.
21682         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21683         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21684         * modules/unictype/property-space-tests (Files): Likewise.
21685         * modules/unictype/property-terminal-punctuation-tests (Files):
21686         Likewise.
21687         * modules/unictype/property-test-tests (Files): Likewise.
21688         * modules/unictype/property-titlecase-tests (Files): Likewise.
21689         * modules/unictype/property-unassigned-code-value-tests (Files):
21690         Likewise.
21691         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21692         * modules/unictype/property-uppercase-tests (Files): Likewise.
21693         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21694         * modules/unictype/property-white-space-tests (Files): Likewise.
21695         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21696         * modules/unictype/property-xid-start-tests (Files): Likewise.
21697         * modules/unictype/property-zero-width-tests (Files): Likewise.
21698         * modules/unictype/scripts-tests (Files): Likewise.
21699         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21700         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21701         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21702         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21703         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21704         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21705         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21706         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21707         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21708         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21709         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21710         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21711         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21712         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21713         * modules/uninorm/composition-tests (Files): Likewise.
21714         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21715         * modules/uninorm/decomposition-tests (Files): Likewise.
21716         * modules/uninorm/filter-tests (Files): Likewise.
21717         * modules/uninorm/nfc-tests (Files): Likewise.
21718         * modules/uninorm/nfd-tests (Files): Likewise.
21719         * modules/uninorm/nfkc-tests (Files): Likewise.
21720         * modules/uninorm/nfkd-tests (Files): Likewise.
21721         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21722         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21723         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21724         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21725         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21726         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21727         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21728         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21729         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21730         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21731         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21732         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21733         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21734         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21735         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21736         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21737         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21738         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21739         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21740         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21741         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21742         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21743         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21744         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21745         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21746         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21747         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21748         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21749         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21750         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21751         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21752         * modules/uniwidth/u8-width-tests (Files): Likewise.
21753         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21754         * modules/uniwidth/u16-width-tests (Files): Likewise.
21755         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21756         * modules/uniwidth/u32-width-tests (Files): Likewise.
21757         * modules/uniwidth/width-tests (Files): Likewise.
21758         * modules/unlink-tests (Files): Likewise.
21759         * modules/unsetenv-tests (Files): Likewise.
21760         * modules/usleep-tests (Files): Likewise.
21761         * modules/utimens-tests (Files): Likewise.
21762         * modules/utimensat-tests (Files): Likewise.
21763         * modules/vasnprintf-posix-tests (Files): Likewise.
21764         * modules/vasnprintf-tests (Files): Likewise.
21765         * modules/vasprintf-posix-tests (Files): Likewise.
21766         * modules/vasprintf-tests (Files): Likewise.
21767         * modules/vdprintf-posix-tests (Files): Likewise.
21768         * modules/vfprintf-posix-tests (Files): Likewise.
21769         * modules/vprintf-posix-tests (Files): Likewise.
21770         * modules/vsnprintf-posix-tests (Files): Likewise.
21771         * modules/vsnprintf-tests (Files): Likewise.
21772         * modules/vsprintf-posix-tests (Files): Likewise.
21773         * modules/wcrtomb-tests (Files): Likewise.
21774         * modules/wcsnrtombs-tests (Files): Likewise.
21775         * modules/wcsrtombs-tests (Files): Likewise.
21776         * modules/wctype-tests (Files): Likewise.
21777         * modules/wcwidth-tests (Files): Likewise.
21778         * modules/xmemdup0-tests (Files): Likewise.
21779         * modules/xprintf-posix-tests (Files): Likewise.
21780         * modules/xvasprintf-tests (Files): Likewise.
21781
21782 2009-12-24  Eric Blake  <ebb9@byu.net>
21783
21784         test-nanosleep: fix typo
21785         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21786         patch.
21787         Reported by Bruno Haible.
21788
21789 2009-12-24  Bruno Haible  <bruno@clisp.org>
21790
21791         Reduce namespace pollution on glibc systems.
21792         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21793         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21794         systems.
21795         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21796         <getopt.h> on glibc systems.
21797         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21798         systems.
21799         * lib/fcntl.c: Include <unistd.h> here instead.
21800
21801 2009-12-24  Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21804
21805 2009-12-24  Eric Blake  <ebb9@byu.net>
21806
21807         tests: add signature checks
21808         * tests/signature.h (SIGNATURE_CHECK): New file.
21809         * modules/atexit-tests (Files): Use it.
21810         * modules/btowc-tests (Files): Likewise.
21811         * modules/canonicalize-lgpl-tests (Files): Likewise.
21812         * modules/ceilf-tests (Files): Likewise.
21813         * modules/ceill-tests (Files): Likewise.
21814         * modules/chown-tests (Files): Likewise.
21815         * modules/dprintf-posix-tests (Files): Likewise.
21816         * modules/dup2-tests (Files): Likewise.
21817         * modules/dup3-tests (Files): Likewise.
21818         * modules/duplocale-tests (Files): Likewise.
21819         * modules/fchdir-tests (Files): Likewise.
21820         * modules/fcntl-tests (Files): Likewise.
21821         * modules/fdopendir-tests (Files): Likewise.
21822         * modules/fflush-tests (Files): Likewise.
21823         * modules/flock-tests (Files): Likewise.
21824         * modules/floorf-tests (Files): Likewise.
21825         * modules/floorl-tests (Files): Likewise.
21826         * modules/fnmatch-tests (Files): Likewise.
21827         * modules/fopen-tests (Files): Likewise.
21828         * modules/fprintf-posix-tests (Files): Likewise.
21829         * modules/freopen-tests (Files): Likewise.
21830         * modules/frexp-nolibm-tests (Files): Likewise.
21831         * modules/frexp-tests (Files): Likewise.
21832         * modules/frexpl-nolibm-tests (Files): Likewise.
21833         * modules/frexpl-tests (Files): Likewise.
21834         * modules/fseek-tests (Files): Likewise.
21835         * modules/fseeko-tests (Files): Likewise.
21836         * modules/fsync-tests (Files): Likewise.
21837         * modules/ftell-tests (Files): Likewise.
21838         * modules/ftello-tests (Files): Likewise.
21839         * modules/futimens-tests (Files): Likewise.
21840         * modules/getaddrinfo-tests (Files): Likewise.
21841         * modules/getcwd-tests (Files): Likewise.
21842         * modules/getdelim-tests (Files): Likewise.
21843         * modules/getdtablesize-tests (Files): Likewise.
21844         * modules/getgroups-tests (Files): Likewise.
21845         * modules/gethostname-tests (Files): Likewise.
21846         * modules/getline-tests (Files): Likewise.
21847         * modules/getopt-posix-tests (Files): Likewise.
21848         * modules/gettimeofday-tests (Files): Likewise.
21849         * modules/glob-tests (Files): Likewise.
21850         * modules/iconv-tests (Files): Likewise.
21851         * modules/inet_ntop-tests (Files): Likewise.
21852         * modules/inet_pton-tests (Files): Likewise.
21853         * modules/isblank-tests (Files): Likewise.
21854         * modules/lchown-tests (Files): Likewise.
21855         * modules/ldexpl-tests (Files): Likewise.
21856         * modules/link-tests (Files): Likewise.
21857         * modules/linkat-tests (Files): Likewise.
21858         * modules/lseek-tests (Files): Likewise.
21859         * modules/lstat-tests (Files): Likewise.
21860         * modules/mbrtowc-tests (Files): Likewise.
21861         * modules/mbsinit-tests (Files): Likewise.
21862         * modules/mbsnrtowcs-tests (Files): Likewise.
21863         * modules/mbsrtowcs-tests (Files): Likewise.
21864         * modules/memchr-tests (Files): Likewise.
21865         * modules/memcmp-tests (Files): Likewise.
21866         * modules/memmem-tests (Files): Likewise.
21867         * modules/memrchr-tests (Files): Likewise.
21868         * modules/mkdir-tests (Files): Likewise.
21869         * modules/mkfifo-tests (Files): Likewise.
21870         * modules/mkfifoat-tests (Files): Likewise.
21871         * modules/mknod-tests (Files): Likewise.
21872         * modules/nanosleep-tests (Files): Likewise.
21873         * modules/nl_langinfo-tests (Files): Likewise.
21874         * modules/obstack-printf-tests (Files): Likewise.
21875         * modules/open-tests (Files): Likewise.
21876         * modules/openat-tests (Files): Likewise.
21877         * modules/perror-tests (Files): Likewise.
21878         * modules/pipe2-tests (Files): Likewise.
21879         * modules/poll-tests (Files): Likewise.
21880         * modules/popen-tests (Files): Likewise.
21881         * modules/posix_spawn-tests (Files): Likewise.
21882         * modules/posix_spawnp-tests (Files): Likewise.
21883         * modules/pread-tests (Files): Likewise.
21884         * modules/printf-posix-tests (Files): Likewise.
21885         * modules/pty-tests (Files): Likewise.
21886         * modules/random_r-tests (Files): Likewise.
21887         * modules/rawmemchr-tests (Files): Likewise.
21888         * modules/readlink-tests (Files): Likewise.
21889         * modules/remove-tests (Files): Likewise.
21890         * modules/rename-tests (Files): Likewise.
21891         * modules/renameat-tests (Files): Likewise.
21892         * modules/rmdir-tests (Files): Likewise.
21893         * modules/round-tests (Files): Likewise.
21894         * modules/roundf-tests (Files): Likewise.
21895         * modules/roundl-tests (Files): Likewise.
21896         * modules/select-tests (Files): Likewise.
21897         * modules/setenv-tests (Files): Likewise.
21898         * modules/sigaction-tests (Files): Likewise.
21899         * modules/sleep-tests (Files): Likewise.
21900         * modules/snprintf-posix-tests (Files): Likewise.
21901         * modules/snprintf-tests (Files): Likewise.
21902         * modules/sprintf-posix-tests (Files): Likewise.
21903         * modules/stat-tests (Files): Likewise.
21904         * modules/strcasestr-tests (Files): Likewise.
21905         * modules/strchrnul-tests (Files): Likewise.
21906         * modules/strerror-tests (Files): Likewise.
21907         * modules/strsignal-tests (Files): Likewise.
21908         * modules/strstr-tests (Files): Likewise.
21909         * modules/strtod-tests (Files): Likewise.
21910         * modules/strverscmp-tests (Files): Likewise.
21911         * modules/symlink-tests (Files): Likewise.
21912         * modules/symlinkat-tests (Files): Likewise.
21913         * modules/times-tests (Files): Likewise.
21914         * modules/trunc-tests (Files): Likewise.
21915         * modules/truncf-tests (Files): Likewise.
21916         * modules/truncl-tests (Files): Likewise.
21917         * modules/tsearch-tests (Files): Likewise.
21918         * modules/uname-tests (Files): Likewise.
21919         * modules/unlink-tests (Files): Likewise.
21920         * modules/unsetenv-tests (Files): Likewise.
21921         * modules/usleep-tests (Files): Likewise.
21922         * modules/utimensat-tests (Files): Likewise.
21923         * modules/vasprintf-tests (Files): Likewise.
21924         * modules/vdprintf-posix-tests (Files): Likewise.
21925         * modules/vfprintf-posix-tests (Files): Likewise.
21926         * modules/vprintf-posix-tests (Files): Likewise.
21927         * modules/vsnprintf-posix-tests (Files): Likewise.
21928         * modules/vsnprintf-tests (Files): Likewise.
21929         * modules/vsprintf-posix-tests (Files): Likewise.
21930         * modules/wcrtomb-tests (Files): Likewise.
21931         * modules/wcsnrtombs-tests (Files): Likewise.
21932         * modules/wcsrtombs-tests (Files): Likewise.
21933         * modules/wcwidth-tests (Files): Likewise.
21934         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21935         * tests/test-isinf.c (isinf): Likewise.
21936         * tests/test-isnan.c (isnan): Likewise.
21937         * tests/test-signbit.c (signbit): Likewise.
21938         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21939         declaration, either as macro or with correct signature.
21940         (select): Ensure function under test is declared with correct
21941         signature in correct header.
21942         * tests/test-atexit.c (atexit): Likewise.
21943         * tests/test-btowc.c (btowc): Likewise.
21944         * tests/test-canonicalize-lgpl.c (realpath)
21945         (canonicalize_file_name): Likewise.
21946         * tests/test-ceilf1.c (ceilf): Likewise.
21947         * tests/test-ceill.c (ceill): Likewise.
21948         * tests/test-chown.c (chown): Likewise.
21949         * tests/test-dprintf-posix.c (dprintf): Likewise.
21950         * tests/test-dup2.c (dup2): Likewise.
21951         * tests/test-dup3.c (dup3): Likewise.
21952         * tests/test-duplocale.c (duplocale): Likewise.
21953         * tests/test-fchdir.c (fchdir): Likewise.
21954         * tests/test-fchownat.c (fchownat): Likewise.
21955         * tests/test-fcntl.c (fcntl): Likewise.
21956         * tests/test-fdopendir.c (fdopendir): Likewise.
21957         * tests/test-fflush.c (fflush): Likewise.
21958         * tests/test-flock.c (flock): Likewise.
21959         * tests/test-floorf1.c (floorf): Likewise.
21960         * tests/test-floorl.c (floorl): Likewise.
21961         * tests/test-fnmatch.c (fnmatch): Likewise.
21962         * tests/test-fopen.c (fopen): Likewise.
21963         * tests/test-fprintf-posix.c (fprintf): Likewise.
21964         * tests/test-freopen.c (freopen): Likewise.
21965         * tests/test-frexp.c (frexp): Likewise.
21966         * tests/test-frexpl.c (frexpl): Likewise.
21967         * tests/test-fseek.c (fseek): Likewise.
21968         * tests/test-fseeko.c (fseeko): Likewise.
21969         * tests/test-fstatat.c (fstatat): Likewise.
21970         * tests/test-fsync.c (fsync): Likewise.
21971         * tests/test-ftell.c (ftell): Likewise.
21972         * tests/test-ftello.c (ftello): Likewise.
21973         * tests/test-futimens.c (futimens): Likewise.
21974         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21975         (gai_strerror): Likewise.
21976         * tests/test-getcwd.c (getcwd): Likewise.
21977         * tests/test-getdelim.c (getdelim): Likewise.
21978         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21979         * tests/test-getgroups.c (getgroups): Likewise.
21980         * tests/test-gethostname.c (gethostname): Likewise.
21981         * tests/test-getline.c (getline): Likewise.
21982         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21983         Likewise.
21984         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21985         * tests/test-glob.c (glob, globfree): Likewise.
21986         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21987         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21988         * tests/test-inet_pton.c (inet_pton): Likewise.
21989         * tests/test-isblank.c (isblank): Likewise.
21990         * tests/test-lchown.c (lchown): Likewise.
21991         * tests/test-ldexpl.c (ldexpl): Likewise.
21992         * tests/test-link.c (link): Likewise.
21993         * tests/test-linkat.c (linkat): Likewise.
21994         * tests/test-lseek.c (lseek): Likewise.
21995         * tests/test-lstat.c (lstat): Likewise.
21996         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21997         * tests/test-mbsinit.c (mbsinit): Likewise.
21998         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21999         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22000         * tests/test-memchr.c (memchr): Likewise.
22001         * tests/test-memcmp.c (memcmp): Likewise.
22002         * tests/test-memmem.c (memmem): Likewise.
22003         * tests/test-memrchr.c (memrchr): Likewise.
22004         * tests/test-mkdir.c (mkdir): Likewise.
22005         * tests/test-mkdirat.c (mkdirat): Likewise.
22006         * tests/test-mkfifo.c (mkfifo): Likewise.
22007         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22008         * tests/test-mknod.c (mknod): Likewise.
22009         * tests/test-nanosleep.c (nanosleep): Likewise.
22010         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22011         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22012         Likewise.
22013         * tests/test-open.c (open): Likewise.
22014         * tests/test-openat.c (openat): Likewise.
22015         * tests/test-perror.c (perror): Likewise.
22016         * tests/test-pipe2.c (pipe2): Likewise.
22017         * tests/test-poll.c (poll): Likewise.
22018         * tests/test-popen.c (popen, pclose): Likewise.
22019         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22020         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22021         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22022         (posix_spawn_file_actions_destroy)
22023         (posix_spawn_file_actions_addclose)
22024         (posix_spawn_file_actions_addopen)
22025         (posix_spawn_file_actions_adddup2): Likewise.
22026         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22027         * tests/test-pread.c (pread): Likewise.
22028         * tests/test-printf-posix.c (printf): Likewise.
22029         * tests/test-pty.c (openpty, forkpty): Likewise.
22030         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22031         (random_r): Likewise.
22032         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22033         * tests/test-readlink.c (readlink): Likewise.
22034         * tests/test-remove.c (remove): Likewise.
22035         * tests/test-rename.c (rename): Likewise.
22036         * tests/test-renameat.c (renameat): Likewise.
22037         * tests/test-rmdir.c (rmdir): Likewise.
22038         * tests/test-round1.c (round): Likewise.
22039         * tests/test-roundf1.c (roundf): Likewise.
22040         * tests/test-roundl.c (roundl): Likewise.
22041         * tests/test-setenv.c (setenv): Likewise.
22042         * tests/test-sigaction.c (sigaction): Likewise.
22043         * tests/test-sleep.c (sleep): Likewise.
22044         * tests/test-snprintf.c (snprintf): Likewise.
22045         * tests/test-sprintf-posix.c (sprintf): Likewise.
22046         * tests/test-stat.c (stat): Likewise.
22047         * tests/test-stpncpy.c (stpncpy): Likewise.
22048         * tests/test-strcasestr.c (strcasestr): Likewise.
22049         * tests/test-strchrnul.c (strchrnul): Likewise.
22050         * tests/test-strerror.c (strerror): Likewise.
22051         * tests/test-strsignal.c (strsignal): Likewise.
22052         * tests/test-strstr.c (strstr): Likewise.
22053         * tests/test-strtod.c (strtod): Likewise.
22054         * tests/test-strverscmp.c (strverscmp): Likewise.
22055         * tests/test-symlink.c (symlink): Likewise.
22056         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22057         * tests/test-times.c (times): Likewise.
22058         * tests/test-trunc1.c (trunc): Likewise.
22059         * tests/test-truncf1.c (truncf): Likewise.
22060         * tests/test-truncl.c (truncl): Likewise.
22061         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22062         Likewise.
22063         * tests/test-uname.c (uname): Likewise.
22064         * tests/test-unlink.c (unlink): Likewise.
22065         * tests/test-unlinkat.c (unlinkat): Likewise.
22066         * tests/test-unsetenv.c (unsetenv): Likewise.
22067         * tests/test-usleep.c (usleep): Likewise.
22068         * tests/test-utimensat.c (utimensat): Likewise.
22069         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22070         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22071         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22072         * tests/test-vprintf-posix.c (vprintf): Likewise.
22073         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22074         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22075         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22076         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22077         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22078         * tests/test-wcwidth.c (wcwidth): Likewise.
22079
22080         build: pull in conditional headers during GNULIB_POSIXCHECK
22081         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22082         definitions from any conditionally-included headers.
22083         * lib/stdlib.in.h (includes): Likewise.
22084         * lib/unistd.in.h (includes): Likewise.
22085
22086 2009-12-24  Bruno Haible  <bruno@clisp.org>
22087
22088         * tests/test-argv-iter.c: Include header file being tested immediately
22089         after config.h.
22090         * tests/test-base64.c: Likewise.
22091         * tests/test-flock.c: Likewise.
22092         * tests/test-fsync.c: Likewise.
22093         * tests/test-getdate.c: Likewise.
22094         * tests/test-getndelim2.c: Likewise.
22095         * tests/test-isfinite.c: Likewise.
22096         * tests/test-isinf.c: Likewise.
22097         * tests/test-strerror.c: Likewise.
22098         * tests/test-strsignal.c: Likewise.
22099
22100 2009-12-23  Eric Blake  <ebb9@byu.net>
22101
22102         unistd: work around cygwin bug
22103         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22104         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22105         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22106
22107 2009-12-23  Bruno Haible  <bruno@clisp.org>
22108
22109         localename: More tests.
22110         * tests/test-localename.c (SIZEOF): New macro.
22111         (categories): New variable.
22112         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22113         test_locale_name_default): Add test w.r.t. thread locale.
22114         (test_locale_name_thread): New function.
22115         (main): Invoke it.
22116
22117         localename: Make aware of thread locale.
22118         * lib/localename.h (gl_locale_name_thread): New declaration.
22119         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22120         behaviour with respect to thread locale.
22121         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22122         <langinfo.h>, glthread/lock.h.
22123         (SIZE_BITS): New macro.
22124         (string_hash): New function.
22125         (struct hash_node): New type.
22126         (HASH_TABLE_SIZE): New macro.
22127         (struniq_hash_table, struniq_lock): New variables.
22128         (struniq): New function.
22129         (gl_locale_name_thread): New function.
22130         (gl_locale_name): Invoke it.
22131         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22132         * modules/localename (Depends-on): Add lock.
22133         Reported by Mike Gran <spk121@yahoo.com>.
22134
22135 2009-12-23  Eric Blake  <ebb9@byu.net>
22136
22137         va-args: new module
22138         * modules/va-args: New file.
22139         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22140         * MODULES.html.sh (Core language properties): Mention it.
22141
22142         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22143         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22144         named alias for __attribute__((__unused__)).
22145         * lib/chown.c: Update client.
22146         * lib/fchmodat.c: Likewise.
22147         * lib/fts.c: Likewise.
22148         * lib/getdate.y: Likewise.
22149         * lib/getgroups.c: Likewise.
22150         * lib/getopt.c: Likewise.
22151         * lib/getugroups.c: Likewise.
22152         * lib/mkdir.c: Likewise.
22153         * lib/mkfifo.c: Likewise.
22154         * lib/mkfifoat.c: Likewise.
22155         * lib/mknod.c: Likewise.
22156         * lib/mknodat.c: Likewise.
22157         * lib/readlink.c: Likewise.
22158         * lib/se-context.in.h: Likewise.
22159         * lib/se-selinux.in.h: Likewise.
22160         * lib/sockets.c: Likewise.
22161         * lib/symlink.c: Likewise.
22162         * lib/symlinkat.c: Likewise.
22163         * lib/unicodeio.c: Likewise.
22164         * lib/unistr.h: Likewise.
22165         * tests/test-areadlink.c: Likewise.
22166         * tests/test-areadlinkat.c: Likewise.
22167         * tests/test-filenamecat.c: Likewise.
22168         * tests/test-fseeko.c: Likewise.
22169         * tests/test-ftello.c: Likewise.
22170         * tests/test-getdate.c: Likewise.
22171         * tests/test-getgroups.c: Likewise.
22172         * tests/test-gethostname.c: Likewise.
22173         * tests/test-quotearg.c: Likewise.
22174         * tests/test-version-etc.c: Likewise.
22175         * tests/test-xalloc-die.c: Likewise.
22176         * tests/test-xfprintf-posix.c: Likewise.
22177         * tests/test-xprintf-posix.c: Likewise.
22178         * tests/test-xvasprintf.c: Likewise.
22179
22180         tests: avoid compiler warnings
22181         * tests/test-fcntl.c (main): Delete unused parameters.
22182         * tests/test-freopen-safer.c (main): Likewise.
22183         * tests/test-xalloc-die.c (main): Mark unused parameters.
22184         * tests/test-fseeko.c (main): Likewise.
22185         * tests/test-ftello.c (main): Likewise.
22186         * tests/test-nanosleep.c (main): Avoid declaration warning.
22187         * tests/test-sleep.c (main): Likewise.
22188         * tests/test-unsetenv.c (main): Silence warning about string
22189         literal.
22190         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22191
22192 2009-12-23  Bruno Haible  <bruno@clisp.org>
22193
22194         * tests/test-localename.c (test_locale_name): New function, extracted
22195         from main. Also test mixed situations.
22196         (test_locale_name_posix, test_locale_name_environ,
22197         test_locale_name_default): New functions.
22198         (main): Invoke them all.
22199         * modules/localename-tests (configure.ac): Test for newlocale.
22200
22201 2009-12-23  Bruno Haible  <bruno@clisp.org>
22202
22203         unistd: Ensure getcwd gets declared before being overridden.
22204         * lib/unistd.in.h: Conditionally include <io.h>.
22205
22206 2009-12-22  Bruno Haible  <bruno@clisp.org>
22207
22208         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22209         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22210         (gl_WCHAR_H): Invoke it.
22211         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22212         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22213         Reported by Karl Berry <karl@freefriends.org>.
22214
22215 2009-12-22  Eric Blake  <ebb9@byu.net>
22216
22217         math, unistd: avoid redundant includes
22218         * lib/math.in.h (isnan): No need to re-include <math.h>.
22219         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22220
22221         getsubopt: work around cygwin bug
22222         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22223         avoid conflicting with system getsubopt.
22224         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22225         bug.
22226
22227         getopt: synchronize from glibc
22228         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22229         parameter order.  Adjust all callers.
22230         (_getopt_internal_r, main): Adjust quoting in error messages.
22231         Drop considerations for outdated POSIX 1003.2 error message.
22232         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22233         callers.
22234         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22235
22236         test-getopt: test stderr behavior
22237         * modules/getopt-posix-tests (Depends-on): Add dup2.
22238         * tests/test-getopt.c (ASSERT): Avoid stderr.
22239         (main): Move stderr to a temporary file.
22240         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22241         Instead, add parameter to inform caller if output occurred.
22242         (test_getopt): Adjust all existing tests to expect silence, and
22243         add new tests of leading ":".
22244         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22245         glibc shortcomings with leading "-:" or "+:" in optstring.
22246         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22247         Likewise.
22248         * doc/posix-functions/getopt.texi (getopt): Likewise.
22249
22250         test-getopt: enhance test
22251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22252         supports optind=0.
22253         * tests/test-getopt.c (OPTIND_MIN): Move...
22254         * tests/test-getopt.h (OPTIND_MIN): ...here.
22255         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22256         Require that optind=0 works, since modern BSD supports it in
22257         addition to optreset, and since coreutils expects it.
22258         (test_getopt_long_only): New test.
22259         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22260         glibc shortcomings with 'W;', and enforcement of optind=0.
22261         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22262         Likewise.
22263
22264 2009-12-21  Bruno Haible  <bruno@clisp.org>
22265
22266         localename: Improvements for MacOS X and Cygwin.
22267         * lib/localename.h (gl_locale_name_environ): New declaration.
22268         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22269         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22270         (gl_locale_name_posix): Invoke it.
22271         (gl_locale_name_default): Add comments. Use Windows native API also on
22272         Cygwin.
22273
22274 2009-12-21  Bruno Haible  <bruno@clisp.org>
22275
22276         Update list of Win32 locale ids.
22277         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22278         (LANG_SAMI): Renamed from LANG_SAAMI.
22279         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22280         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22281         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22282         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22283         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22284         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22285         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22286         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22287         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22288         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22289         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22290         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22291         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22292         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22293         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22294         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22295         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22296         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22297         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22298         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22299         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22300         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22301         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22302         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22303         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22304         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22305         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22306         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22307         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22308         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22309         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22310         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22311         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22312         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22313         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22314         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22315         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22316         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22317         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22318         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22319         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22320         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22321         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22322         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22323         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22324         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22325         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22326         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22327         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22328         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22329         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22330         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22331         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22332         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22333         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22334         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22335         Add more languages and countries for Sami, Sorbian. Add more countries
22336         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22337         for Pashto. Change country for Syriac, Tswana.
22338
22339 2009-12-21  Eric Blake  <ebb9@byu.net>
22340
22341         test-utimens: avoid spurious failure
22342         * tests/test-chown.h (nap): Factor...
22343         * tests/nap.h: ...into new file.
22344         * tests/test-lchown.h (nap): Avoid duplication.
22345         * tests/test-utimens-common.h (nap): Use shared implementation,
22346         necessary on file systems with 1-second resolution.
22347         * modules/chown-tests (Files): Include new file.
22348         * modules/fdutimensat-tests (Files): Likewise.
22349         * modules/futimens-tests (Files): Likewise.
22350         * modules/lchown-tests (Files): Likewise.
22351         * modules/openat-tests (Files): Likewise.
22352         * modules/utimens-tests (Files): Likewise.
22353         * modules/utimensat-tests (Files): Likewise.
22354
22355 2009-12-19  Eric Blake  <ebb9@byu.net>
22356
22357         futimens, utimensat: work around Linux bug
22358         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22359         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22360         * lib/utimensat.c (rpl_utimensat): Work around it.
22361         * lib/futimens.c (rpl_futimens): Adjust comment.
22362
22363         utimens: work around Linux ctime bug
22364         * lib/utimens.c (detect_ctime_bug): New helper function.
22365         (update_timespec): Differentiate between workaround needed for
22366         this bug vs. what is needed for systems that lack utimensat.
22367         (fdutimens, lutimens): Work around bug.
22368
22369         utimens: check for ctime update
22370         * tests/test-utimens-common.h (check_ctime): Define.
22371         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22372         * tests/test-futimens.h (test_futimens): Likewise.
22373         * tests/test-lutimens.h (test_lutimens): Likewise.
22374         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22375         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22376
22377 2009-12-19  Bruno Haible  <bruno@clisp.org>
22378
22379         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22380         * tests/test-dprintf-posix2.sh: New file.
22381         * tests/test-dprintf-posix2.c: New file.
22382         * modules/dprintf-posix-tests (Files): Add them.
22383         (configure.ac): Check for getrlimit and setrlimit.
22384         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22385
22386 2009-12-19  Bruno Haible  <bruno@clisp.org>
22387
22388         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22389         * tests/test-fprintf-posix3.sh: New file.
22390         * tests/test-fprintf-posix3.c: New file.
22391         * modules/fprintf-posix-tests (Files): Add them.
22392         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22393
22394 2009-12-19  Eric Blake  <ebb9@byu.net>
22395
22396         dirfd: fix prototype
22397         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22398         * lib/dirfd.c (dirfd): Likewise.
22399
22400         canonicalize: reduce memory usage
22401         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22402         allocation to size.
22403         Reported by Solar Designer <solar@openwall.com>.
22404
22405 2009-12-19  Bruno Haible  <bruno@clisp.org>
22406
22407         New module attribute 'Applicability'.
22408         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22409         * gnulib-tool: New option --extract-applicability.
22410         (func_usage): Document it.
22411         (sed_extract_prog): Recognize it.
22412         (func_get_applicability): New function.
22413         (func_import): Generalize handling of 'link-warning' module.
22414         * modules/link-warning (Applicability): New section.
22415         * modules/arg-nonnull (Applicability): New section.
22416         Repoted by Simon Josefsson <simon@josefsson.org>.
22417
22418 2009-12-19  Bruno Haible  <bruno@clisp.org>
22419
22420         fflush: tweak
22421         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22422         * lib/fseeko.c (rpl_fseeko): Likewise.
22423
22424 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22425
22426         * lib/gl_list.h: Fix typo in comment.
22427
22428 2009-12-16  Eric Blake  <ebb9@byu.net>
22429
22430         fcntl: use to simplify other modules
22431         * modules/cloexec (Depends-on): Add fcntl.
22432         * modules/fchdir (Depends-on): Likewise.
22433         * modules/fd-safer-flag (Depends-on): Likewise.
22434         * modules/unistd-safer (Depends-on): Likewise.
22435         * modules/dup3 (configure.ac): Set module indicator.
22436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22437         missing.
22438         * lib/fchdir.c (_gl_register_dup): Fix comment.
22439         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22440         * lib/dup-safer.c (dup_safer): Likewise.
22441         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22442         * lib/dup3.c (dup3): Likewise.
22443         * tests/test-fchdir.c (main): Enhance test.
22444         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22445
22446         fcntl: port portions of fcntl to mingw
22447         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22448         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22449         replacement for mingw.
22450         * modules/fcntl (Description): Update.
22451         (Depends-on): Add dup2.
22452         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22453         * modules/fcntl-h (Makefile.am): Substitute it.
22454         * lib/fcntl.in.h (fcntl): Update declaration.
22455         (F_DUPFD, F_GETFD): New macros, when needed.
22456         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22457         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22458         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22459         we now guarantee.
22460
22461         fcntl: work around cygwin bug in F_DUPFD
22462         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22463         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22464         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22465         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22466         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22467
22468         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22469         * modules/fcntl (Files): List new files.
22470         (configure.ac): Run a test.
22471         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22472         * lib/fcntl.c (rpl_fcntl): Likewise.
22473         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22474         (gl_FCNTL_H): Always replace fcntl.h.
22475         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22476         * lib/fcntl.in.h (fcntl): Declare replacement.
22477         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22478         needed, plus a witness.
22479         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22480         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22481         * tests/test-fcntl.c: New file.
22482         * modules/fcntl-tests: Likewise.
22483
22484         binary-io: avoid potential compilation warning
22485         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22486         directives.
22487
22488         fflush: avoid compilation error on NetBSD
22489         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22490         between off_t and fpos_t, since the latter is sometimes a struct.
22491         * lib/fseeko.c (rpl_fseeko): Likewise.
22492         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22493
22494 2009-12-15  Eric Blake  <ebb9@byu.net>
22495
22496         fcntl-h, stdio, sys_ioctl: fix declarations
22497         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22498         function must not take arguments.
22499         * lib/sys_ioctl.in.h (ioctl): Likewise.
22500         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22501         (open): Add a link warning.
22502
22503 2009-12-15  Jim Meyering  <meyering@redhat.com>
22504
22505         areadlink, areadlink-with-size: relax license to LGPLv2+
22506         * modules/areadlink (License): Relax to LGPLv2+.
22507         * modules/areadlink-with-size (License): Likewise.
22508
22509 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22510             Bruno Haible  <bruno@clisp.org>
22511
22512         *printf: Fix memory leak.
22513         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22514         * lib/vfprintf.c (vfprintf): Likewise.
22515         * lib/dprintf.c (dprintf): Likewise.
22516         * lib/vdprintf.c (vdprintf): Likewise.
22517
22518 2009-12-14  Eric Blake  <ebb9@byu.net>
22519
22520         accept4: adjust module dependencies
22521         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22522
22523         utimens: one more try at avoiding compiler warning
22524         * lib/utimens.c (lutimens): Lower scope of result.
22525
22526 2009-12-13  Bruno Haible  <bruno@clisp.org>
22527
22528         Move the malloc checking from module 'list' to new module 'xlist'.
22529         * modules/xlist: New file.
22530         * lib/gl_xlist.h: New file.
22531         * lib/gl_xlist.c: New file.
22532         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22533         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22534         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22535         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22536         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22537         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22538         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22539         gl_sortedlist_nx_add): New declarations.
22540         (struct gl_list_implementation): Rename and change methods accordingly.
22541         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22542         (gl_list_nx_create): Renamed from gl_list_create.
22543         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22544         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22545         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22546         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22547         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22548         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22549         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22550         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22551         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22552         gl_list_create_empty.
22553         (gl_list_nx_create): Renamed from gl_list_create.
22554         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22555         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22556         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22557         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22558         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22559         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22560         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22561         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22562         * lib/gl_array_list.c: Don't include xalloc.h.
22563         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22564         NULL upon out-of-memory.
22565         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22566         out-of-memory.
22567         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22568         Change return type to 'int'.
22569         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22570         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22571         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22572         upon out-of-memory.
22573         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22574         upon out-of-memory.
22575         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22576         upon out-of-memory.
22577         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22578         upon out-of-memory.
22579         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22580         out-of-memory.
22581         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22582         Update.
22583         (gl_array_list_implementation): Update.
22584         * lib/gl_carray_list.c: Don't include xalloc.h.
22585         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22586         Return NULL upon out-of-memory.
22587         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22588         out-of-memory.
22589         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22590         Change return type to 'int'.
22591         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22592         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22593         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22594         upon out-of-memory.
22595         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22596         upon out-of-memory.
22597         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22598         out-of-memory.
22599         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22600         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22601         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22602         Update.
22603         (gl_carray_list_implementation): Update.
22604         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22605         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22606         gl_linked_create_empty. Return NULL upon out-of-memory.
22607         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22608         out-of-memory.
22609         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22610         Change return type to 'int'. Return -1 upon out-of-memory.
22611         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22612         out-of-memory.
22613         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22614         upon out-of-memory.
22615         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22616         upon out-of-memory.
22617         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22618         NULL upon out-of-memory.
22619         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22620         upon out-of-memory.
22621         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22622         out-of-memory.
22623         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22624         Update.
22625         * lib/gl_linked_list.c: Don't include xalloc.h.
22626         (gl_linked_list_implementation): Update.
22627         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22628         (add_to_bucket): Change return type to 'int'.
22629         (gl_linkedhash_list_implementation): Update.
22630         * lib/gl_anytree_list1.h (free_subtree): New function.
22631         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22632         gl_tree_create_empty. Return NULL upon out-of-memory.
22633         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22634         Change return type to 'int'. Return -1 upon out-of-memory.
22635         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22636         out-of-memory.
22637         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22638         (gl_tree_remove_node): New function, moved here from
22639         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22640         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22641         Update.
22642         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22643         malloc, not xmalloc. Return NULL upon out-of-memory.
22644         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22645         out-of-memory.
22646         (gl_tree_remove_node_from_tree): New function, extracted from
22647         gl_tree_remove_node.
22648         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22649         upon out-of-memory.
22650         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22651         out-of-memory.
22652         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22653         upon out-of-memory.
22654         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22655         upon out-of-memory.
22656         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22657         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22658         not xmalloc. Return NULL upon out-of-memory.
22659         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22660         out-of-memory.
22661         (gl_tree_remove_node_from_tree): New function, extracted from
22662         gl_tree_remove_node.
22663         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22664         upon out-of-memory.
22665         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22666         out-of-memory.
22667         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22668         upon out-of-memory.
22669         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22670         upon out-of-memory.
22671         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22672         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22673         gl_anytree_list1.h before gl_anyavltree_list2.h.
22674         (gl_avltree_list_implementation): Update.
22675         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22676         gl_anytree_list1.h before gl_anyavltree_list2.h.
22677         (gl_rbtree_list_implementation): Update.
22678         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22679         Change return type to 'int'. Return -1 upon out-of-memory. Use
22680         __builtin_expect.
22681         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22682         (gl_avltreehash_list_implementation): Update.
22683         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22684         (gl_rbtreehash_list_implementation): Update.
22685         * modules/array-list (Depends-on): Remove xalloc.
22686         * modules/carray-list (Depends-on): Likewise.
22687         * modules/linked-list (Depends-on): Likewise.
22688         * modules/linkedhash-list (Depends-on): Likewise.
22689         * modules/avltree-list (Depends-on): Likewise.
22690         * modules/rbtree-list (Depends-on): Likewise.
22691         * modules/avltreehash-list (Depends-on): Likewise.
22692         * modules/rbtreehash-list (Depends-on): Likewise.
22693
22694         * modules/xsublist: New file.
22695         * lib/gl_xsublist.h: New file.
22696         * lib/gl_xsublist.c: New file.
22697         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22698         (gl_sublist_nx_create): New declaration.
22699         * lib/gl_sublist.c: Don't include xalloc.h.
22700         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22701         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22702         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22703         Change return type to 'int'. Return -1 upon out-of-memory.
22704         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22705         upon out-of-memory.
22706         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22707         NULL upon out-of-memory.
22708         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22709         upon out-of-memory.
22710         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22711         NULL upon out-of-memory.
22712         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22713         NULL upon out-of-memory.
22714         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22715         upon out-of-memory.
22716         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22717         (gl_sublist_list_implementation): Update.
22718         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22719         upon out-of-memory.
22720         * modules/sublist (Depends-on): Remove xalloc.
22721
22722         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22723         * tests/test-carray_list.c: Likewise.
22724         * tests/test-linked_list.c: Likewise.
22725         * tests/test-linkedhash_list.c: Likewise.
22726         * tests/test-avltree_list.c: Likewise.
22727         * tests/test-rbtree_list.c: Likewise.
22728         * tests/test-avltreehash_list.c: Likewise.
22729         * tests/test-rbtreehash_list.c: Likewise.
22730         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22731         * modules/carray-list-tests (Makefile.am): Likewise.
22732         * modules/linked-list-tests (Makefile.am): Likewise.
22733         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22734         * modules/avltree-list-tests (Makefile.am): Likewise.
22735         * modules/rbtree-list-tests (Makefile.am): Likewise.
22736         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22737         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22738
22739         * NEWS: Mention the changes.
22740
22741         * lib/clean-temp.c: Include gl_xlist.h.
22742         * modules/clean-temp (Depends-on): Add xlist.
22743
22744         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22745         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22746
22747         * tests/test-array_oset.c: Include gl_xlist.h.
22748         * modules/array-oset-tests (Depends-on): Add xlist.
22749
22750         Reported by José E. Marchesi <jemarch@gnu.org>.
22751
22752 2009-12-13  Bruno Haible  <bruno@clisp.org>
22753
22754         Move the malloc checking from module 'oset' to new module 'xoset'.
22755         * modules/xoset: New file.
22756         * lib/gl_xoset.h: New file.
22757         * lib/gl_xoset.c: New file.
22758         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22759         declarations.
22760         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22761         (struct gl_oset_implementation): Rename and change methods accordingly.
22762         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22763         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22764         'int'. Mark as __warn_unused_result__.
22765         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22766         gl_oset_create_empty.
22767         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22768         'int'.
22769         * lib/gl_array_oset.c: Don't include xalloc.h.
22770         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22771         malloc, not xmalloc.
22772         (grow): Change return type to 'int'. Don't call xalloc_die.
22773         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22774         to 'int'.
22775         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22776         'int'.
22777         (gl_array_oset_implementation): Update.
22778         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22779         gl_tree_create_empty.
22780         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22781         'int'.
22782         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22783         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22784         xmalloc.
22785         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22786         not xmalloc.
22787         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22788         xmalloc.
22789         (gl_avltree_oset_implementation): Update.
22790         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22791         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22792         xmalloc.
22793         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22794         not xmalloc.
22795         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22796         xmalloc.
22797         (gl_rbtree_oset_implementation): Update.
22798         * modules/array-oset (Depends-on): Remove xalloc.
22799         * modules/avltree-oset (Depends-on): Likewise.
22800         * modules/rbtree-oset (Depends-on): Likewise.
22801         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22802         * tests/test-avltree_oset.c: Likewise.
22803         * tests/test-rbtree_oset.c: Likewise.
22804         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22805         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22806         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22807         * NEWS: Mention the change.
22808
22809 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22810
22811         maint.mk: allow a project to override release-prep commands
22812         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22813         commands into a new rule.
22814         (release-prep): New rule.
22815         (release-prep-hook): New overridable variable.
22816
22817 2009-12-13  Bruno Haible  <bruno@clisp.org>
22818
22819         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22820
22821 2009-12-13  Jim Meyering  <meyering@redhat.com>
22822
22823         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22824         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22825
22826 2009-12-12  Bruno Haible  <bruno@clisp.org>
22827
22828         duplocale: Tweak.
22829         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22830
22831 2009-12-12  Karl Berry  <karl@gnu.org>
22832
22833         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22834
22835 2009-12-12  Bruno Haible  <bruno@clisp.org>
22836
22837         * m4/po.m4: Undo incorrect untabification.
22838
22839 2009-12-12  Bruno Haible  <bruno@clisp.org>
22840
22841         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22842         * modules/c-strtod (Depends-on): Add locale.
22843         * modules/c-strtold (Depends-on): Likewise.
22844
22845 2009-12-12  Bruno Haible  <bruno@clisp.org>
22846
22847         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22848
22849 2009-12-11  Eric Blake  <ebb9@byu.net>
22850
22851         setenv: relax requirement in light of POSIX ruling
22852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22853         not NULL.
22854         * tests/test-setenv.c (main): Relax test.
22855         * tests/test-unsetenv.c (main): Likewise.
22856         * doc/posix-functions/setenv.texi (setenv): Document this.
22857         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22858
22859 2009-12-11  Bruno Haible  <bruno@clisp.org>
22860
22861         New module 'fd-safer-flag'.
22862         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22863         * lib/dup-safer.c (dup_safer_flag): Remove function.
22864         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22865         * lib/fd-safer.c (fd_safer_flag): Remove function.
22866         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22867         * modules/cloexec (configure.ac): Drop indicator macro.
22868         * modules/fd-safer-flag: New file.
22869         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22870         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22871         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22872
22873 2009-12-11  Bruno Haible  <bruno@clisp.org>
22874
22875         Tests for module 'nl_langinfo'.
22876         * modules/nl_langinfo-tests: New file.
22877         * tests/test-nl_langinfo.sh: New file.
22878         * tests/test-nl_langinfo.c: New file.
22879
22880         New module 'nl_langinfo'.
22881         * lib/nl_langinfo.c: New file.
22882         * m4/nl_langinfo.m4: New file.
22883         * modules/nl_langinfo: New file.
22884         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22885
22886 2009-12-11  Bruno Haible  <bruno@clisp.org>
22887
22888         Tests for module 'langinfo'.
22889         * modules/langinfo-tests: New file.
22890         * tests/test-langinfo.c: New file.
22891
22892         New module 'langinfo'.
22893         * lib/langinfo.in.h: New file.
22894         * m4/langinfo_h.m4: New file.
22895         * modules/langinfo: New file.
22896         * doc/posix-headers/langinfo.texi: Mention the new module.
22897
22898 2009-12-11  Bruno Haible  <bruno@clisp.org>
22899
22900         * lib/config.charset: Untabify.
22901
22902 2009-12-11  Bruno Haible  <bruno@clisp.org>
22903
22904         * modules/unistd-safer (configure.ac): Drop indicator macro.
22905
22906 2009-12-11  Bruno Haible  <bruno@clisp.org>
22907
22908         Move pipe2-safer code to its own file.
22909         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22910         * lib/pipe-safer.c (pipe2_safer): Remove function.
22911         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22912         (Makefile.am): Add it to lib_SOURCES.
22913
22914 2009-12-10  Bruno Haible  <bruno@clisp.org>
22915
22916         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22917
22918 2009-12-10  Bruno Haible  <bruno@clisp.org>
22919
22920         Declare which arguments expect non-NULL values, for GCC and clang.
22921         * build-aux/arg-nonnull.h: New file.
22922         * modules/arg-nonnull: New file.
22923         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22924         (inet_ntop, inet_pton): Use it.
22925         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22926         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22927         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22928         (open, openat): Use it.
22929         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22930         (fnmatch): Use it.
22931         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22932         (getopt, getopt_long, getopt_long_only): Use it.
22933         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22934         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22935         Use it.
22936         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22937         (iconv_open): Use it.
22938         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22939         (strtoimax, strtoumax): Use it.
22940         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22941         (duplocale): Use it.
22942         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22943         (frexp, frexpl): Use it.
22944         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22945         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22946         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22947         (tsearch, tfind, tdelete, twalk): Use it.
22948         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22949         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22950         sigpending): Use it.
22951         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22952         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22953         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22954         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22955         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22956         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22957         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22958         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22959         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22960         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22961         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22962         Use it.
22963         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22964         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22965         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22966         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22967         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22968         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22969         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22970         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22971         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22972         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22973         strtoull, unsetenv): Use it.
22974         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22975         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22976         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22977         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22978         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22979         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22980         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22981         (strcasecmp, strncasecmp): Use it.
22982         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22983         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22984         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22985         rpl_setsockopt): Use it.
22986         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22987         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22988         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22989         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22990         (gettimeofday): Use it.
22991         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22992         (times): Use it.
22993         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22994         (uname): Use it.
22995         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22996         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22997         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22998         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22999         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23000         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23001         unlinkat, write): Use it.
23002         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23003         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23004         * lib/argv-iter.h: Include arg-nonnull.h.
23005         (_ATTRIBUTE_NONNULL_): Remove macro.
23006         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23007         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23008         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23009         optimization.
23010         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23011         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23012         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23013         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23014         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23015         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23016         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23017         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23018         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23019         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23020         * modules/dirent (Depends-on): Add arg-nonnull.
23021         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23022         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23023         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23024         * modules/fnmatch (Depends-on): Add arg-nonnull.
23025         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23026         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23027         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23028         * modules/glob (Depends-on): Add arg-nonnull.
23029         (Makefile.am): Insert arg-nonnull.h into glob.h.
23030         * modules/iconv_open (Depends-on): Add arg-nonnull.
23031         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23032         * modules/inttypes (Depends-on): Add arg-nonnull.
23033         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23034         * modules/locale (Depends-on): Add arg-nonnull.
23035         (Makefile.am): Insert arg-nonnull.h into locale.h.
23036         * modules/math (Depends-on): Add arg-nonnull.
23037         (Makefile.am): Insert arg-nonnull.h into math.h.
23038         * modules/netdb (Depends-on): Add arg-nonnull.
23039         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23040         * modules/search (Depends-on): Add arg-nonnull.
23041         (Makefile.am): Insert arg-nonnull.h into search.h.
23042         * modules/signal (Depends-on): Add arg-nonnull.
23043         (Makefile.am): Insert arg-nonnull.h into signal.h.
23044         * modules/spawn (Depends-on): Add arg-nonnull.
23045         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23046         * modules/stdio (Depends-on): Add arg-nonnull.
23047         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23048         * modules/stdlib (Depends-on): Add arg-nonnull.
23049         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23050         * modules/string (Depends-on): Add arg-nonnull.
23051         (Makefile.am): Insert arg-nonnull.h into string.h.
23052         * modules/strings (Depends-on): Add arg-nonnull.
23053         (Makefile.am): Insert arg-nonnull.h into strings.h.
23054         * modules/sys_socket (Depends-on): Add arg-nonnull.
23055         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23056         * modules/sys_stat (Depends-on): Add arg-nonnull.
23057         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23058         * modules/sys_time (Depends-on): Add arg-nonnull.
23059         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23060         * modules/sys_times (Depends-on): Add arg-nonnull.
23061         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23062         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23063         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23064         * modules/time (Depends-on): Add arg-nonnull.
23065         (Makefile.am): Insert arg-nonnull.h into time.h.
23066         * modules/unistd (Depends-on): Add arg-nonnull.
23067         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23068         * modules/wchar (Depends-on): Add arg-nonnull.
23069         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23070         * modules/argv-iter (Depends-on): Add arg-nonnull.
23071         * tests/test-canonicalize.c (null_ptr): New function.
23072         (main): Use it.
23073         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23074         (main): Use it.
23075         * tests/test-memmem.c (null_ptr): New function.
23076         (main): Use it.
23077         Reported by Jim Meyering.
23078
23079 2009-12-10  Bruno Haible  <bruno@clisp.org>
23080
23081         Use spaces for indentation, not tabs.
23082         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23083         * m4/*.m4: Untabify.
23084         * build-aux/*.h: Untabify.
23085         * tests/**/*.[hc]: Untabify.
23086         * README: New section "Indent with spaces, not TABs", based on
23087         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23088         * NEWS: Mention the change.
23089
23090 2009-12-10  Bruno Haible  <bruno@clisp.org>
23091
23092         pty test: Fix link error.
23093         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23094         test_pty_LDADD.
23095
23096 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23097
23098         * modules/pty: New file.
23099         * modules/pty-tests: New file.
23100         * m4/pty.m4: New file.
23101         * tests/test-pty.c: New file.
23102         * doc/glibc-headers/pty.texi: Modified.
23103         * doc/glibc-functions/forkpty.texi: Modified.
23104         * doc/glibc-functions/openpty.texi: Modified.
23105
23106 2009-12-10  Bruno Haible  <bruno@clisp.org>
23107
23108         Avoid syntax error in C++ mode.
23109         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23110
23111 2009-12-10  Bruno Haible  <bruno@clisp.org>
23112
23113         Use sed with option -e.
23114         * gnulib-tool (func_version, func_emit_copyright_notice,
23115         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23116         option -e to sed.
23117         * modules/link-warning (Makefile.am): Likewise.
23118
23119 2009-12-10  Jim Meyering  <meyering@redhat.com>
23120
23121         mgetgroups: do not write bytes beyond end of malloc'd buffer
23122         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23123         username, we call getgroups with a one-element-shorter buffer,
23124         but still told it the length was original, max_n_groups.
23125
23126 2009-12-09  Eric Blake  <ebb9@byu.net>
23127
23128         cloexec: relax license
23129         * modules/cloexec (Maintainer): Add myself.
23130         (License): Use LGPL, not GPL.
23131
23132         link-warning: optimize generation
23133         * modules/link-warning (Makefile.am): Reduce process usage.
23134
23135 2009-12-09  Bruno Haible  <bruno@clisp.org>
23136
23137         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23138         workaround was added on 2009-11-17.
23139
23140 2009-12-09  Jim Meyering  <meyering@redhat.com>
23141             Bruno Haible  <bruno@clisp.org>
23142
23143         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23144         * modules/link-warning (Makefile.am): Make the comment-removing sed
23145         command more robust in the face of bootstrap-prepended comment lines.
23146
23147 2009-12-09  Bruno Haible  <bruno@clisp.org>
23148
23149         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23150         most one group.
23151
23152 2009-12-09  Simon Josefsson <simon@josefsson.org>
23153             Bruno Haible  <bruno@clisp.org>
23154
23155         * build-aux/link-warning.h: Add copyright notice.
23156         * modules/link-warning (Makefile.am): Generate link-warning.h from
23157         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23158         * NEWS: Mention change in link-warning module.
23159         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23160         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23161         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23162         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23163         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23164         * modules/math (Makefile.am): Add dependency to math.h.
23165         * modules/search (Makefile.am): Add dependency to search.h.
23166         * modules/signal (Makefile.am): Add dependency to signal.h.
23167         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23168         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23169         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23170         * modules/string (Makefile.am): Add dependency to string.h.
23171         * modules/strings (Makefile.am): Add dependency to strings.h.
23172         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23173         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23174         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23175         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23176         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23177         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23178         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23179         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23180         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23181
23182 2009-12-09  Bruno Haible  <bruno@clisp.org>
23183
23184         fchdir: Optimize away rpl_fstat when possible.
23185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23186         REPLACE_OPEN_DIRECTORY.
23187         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23188
23189 2009-12-09  Bruno Haible  <bruno@clisp.org>
23190
23191         * lib/fchdir.c: Update comment.
23192
23193 2009-12-09  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23196
23197 2009-12-08  Eric Blake  <ebb9@byu.net>
23198
23199         fchdir: avoid memory leak on re-registration.
23200         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23201
23202 2009-12-08  Jim Meyering  <meyering@redhat.com>
23203
23204         init.sh: avoid Solaris 10 /bin/sh portability problem
23205         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23206         sourced script:
23207           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23208           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23209           bar
23210         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23211         and two tests used that idiom.
23212         * tests/init.sh: Update suggested usage comments.
23213         (path_prepend_): New function, to be used in place
23214         of the --src-path=DIR option.
23215         (setup_): Move PATH-prepending code into path_prepend_.
23216         * tests/test-pread.sh: Adapt to new usage.
23217         * tests/test-xalloc-die.sh: Likewise.
23218
23219 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23220
23221         * doc/gnulib.texi (Glibc pty.h): Add.
23222         * doc/glibc-functions/forkpty.texi: Add.
23223         * doc/glibc-functions/openpty.texi: Add.
23224         Suggested by Bruno Haible.
23225
23226 2009-12-08  Eric Blake  <ebb9@byu.net>
23227
23228         fchdir: fix logic bugs
23229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23230         * tests/test-fchdir.c (main): Enhance test.
23231         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23232         is in use.
23233
23234         dup2: fix logic bugs
23235         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23236         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23237         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23238         exists.
23239         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23240
23241 2009-12-07  Eric Blake  <ebb9@byu.net>
23242
23243         unlink: fix m4 detection
23244         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23245
23246         unistd-safer: add unit test
23247         * modules/unistd-safer-tests: New file.
23248         * tests/test-dup-safer.c: Likewise.
23249         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23250         * tests/test-dup2.c (setmode): Likewise.
23251         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23252
23253         cloexec: preserve text vs. binary across dup_cloexec
23254         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23255         mode.
23256         * modules/dup2-tests (Depends-on): Add binary-io.
23257         * modules/cloexec-tests (Depends-on): Likewise.
23258         * tests/test-dup2.c (setmode, is_mode): New helpers.
23259         (main): Add tests that translation mode is preserved.
23260         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23261         Reported by Bruno Haible.
23262
23263         mgetgroups: reduce duplicate listings
23264         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23265         resulting array.
23266         * tests/test-chown.h (test_chown): Simplify client.
23267         * tests/test-lchown.h (test_lchown): Likewise.
23268
23269 2009-12-06  Bruno Haible  <bruno@clisp.org>
23270
23271         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23272         value.
23273
23274 2009-12-06  Bruno Haible  <bruno@clisp.org>
23275
23276         * lib/progname.c: Include stdio.h, stdlib.h.
23277         (set_program_name): Reject a NULL argument.
23278
23279 2009-12-05  Eric Blake  <ebb9@byu.net>
23280
23281         pipe2-safer: new module
23282         * modules/pipe2-safer: New file.
23283         * lib/unistd-safer.h (pipe2_safer): New prototype.
23284         * lib/unistd--.h (pipe2): New wrapper.
23285         * lib/pipe-safer.c (pipe2_safer): New function.
23286         * modules/pipe (Depends-on): Add pipe2-safer.
23287         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23288
23289         stdlib-safer: preserve cloexec flag for mkostemp[s]
23290         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23291         fd_safer_flag.
23292
23293         unistd-safer: allow preservation of cloexec status via flag
23294         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23295         prototypes.
23296         * lib/dup-safer.c (dup_safer_flag): New function.
23297         * lib/fd-safer.c (fd_safer_flag): Likewise.
23298         * modules/cloexec (configure.ac): Set witness.
23299
23300         test-dup2: enhance test
23301         * modules/dup2-tests (Depends-on): Add cloexec.
23302         * tests/test-dup2.c (main): Enhance test.
23303
23304         cloexec: add dup_cloexec
23305         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23306         header and comments.
23307         * lib/cloexec.c (set_cloexec_flag): Add comments.
23308         (dup_cloexec): New function, with mingw implementation borrowed
23309         from...
23310         * lib/w32spawn.h (dup_noinherit): ...here.
23311         * modules/execute (Depends-on): Add cloexec.
23312         * modules/pipe (Depends-on): Likewise.
23313         * modules/cloexec (Depends-on): Add dup2.
23314         * modules/cloexec-tests (Files): New file.
23315         * tests/test-cloexec.c: Likewise.
23316
23317         test-xalloc-die: fix test for mingw
23318         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23319         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23320         directory and .exe suffix off argv[0] output.
23321
23322         test-fseeko: fix test for mingw
23323         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23324         than undefining fseek, so test will pass on mingw.
23325
23326 2009-12-05  Bruno Haible  <bruno@clisp.org>
23327
23328         * lib/progname.h (set_program_name): Clarify specification.
23329         * lib/progname.c (set_program_name): Likewise.
23330         Reported by Jim Meyering.
23331
23332 2009-12-05  Jim Meyering  <meyering@redhat.com>
23333
23334         maint.mk: backslash-escape parens in default regexp
23335         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23336         backslash-escape the literal parentheses.
23337
23338         maint.mk: news-date-check: use grep -E
23339         * top/maint.mk (today): Define a Make variable, not a...
23340         (news-date-check): ...shell variable.
23341         (news-date-regexp): Use the Make variable.
23342         Use grep's -E option.  Change the failing diagnostic to mention
23343         the variable, $(news-date-regexp).
23344
23345 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23346
23347         maintainer-makefile: allow customization of NEWS entry format
23348         * top/maint.mk (news-date-regexp): New overridable variable.
23349         (news-date-check): Use it.
23350
23351 2009-12-04  Eric Blake  <ebb9@byu.net>
23352
23353         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23354         * lib/mgetgroups.h (xgetgroups): New prototype.
23355         * lib/mgetgroups.c (xgetgroups): New wrapper.
23356         (mgetgroups): Handle ENOSYS.
23357         * modules/mgetgroups (Depends-on): Add realloc.
23358         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23359
23360         mgetgroups: avoid argument promotion issues with -1
23361         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23362         for invalid gid_t.
23363         * tests/test-chown.h (getegid, test_chown): Likewise.
23364         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23365
23366 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23367
23368         exclude: Fix header file problems.
23369         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23370
23371 2009-12-01  Jim Meyering  <meyering@redhat.com>
23372
23373         fts: fts_open: do not let an empty string cause immediate failure
23374         This is required in support of GNU rm, for which the command
23375         "rm A '' B" must process and remove both A and B, in spite of
23376         the empty string argument.
23377         * lib/fts.c (fts_open): Do not let the presence of an empty string
23378         cause fts_open to fail immediately.  Most fts-using tools must be
23379         able to process all arguments, in order, and can be expected to
23380         diagnose such arguments themselves.
23381
23382 2009-11-30  Eric Blake  <ebb9@byu.net>
23383
23384         utimens: fix compilation error
23385         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23386         Declare variable at right scope.
23387
23388 2009-11-29  Jim Meyering  <meyering@redhat.com>
23389
23390         bootstrap: handle perl-5.11's changed --version output
23391         * build-aux/bootstrap (get_version): Handle perl separately,
23392         since perl-5.11's --version output is different.
23393
23394 2009-11-28  Jim Meyering  <meyering@redhat.com>
23395
23396         userspec: depend on the inttostr module, too
23397         * modules/userspec (Depends-on): Add inttostr.
23398
23399         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23400         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23401         number of MAXUID when it evaluates to (uid_t) -1.
23402         Likewise for group ID.  Reported by Matt McCutchen in
23403         <http://savannah.gnu.org/bugs/?28113>
23404
23405         userspec: reformat to use spaces, not TABs
23406         * lib/userspec.c: Expand TABs to spaces.
23407         Add Emacs' "indent-tabs-mode: nil" hint.
23408
23409 2009-11-27  Eric Blake  <ebb9@byu.net>
23410
23411         getopt-gnu: flush out another BSD bug
23412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23413         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23414         flush out BSD bug.
23415         * tests/test-getopt.h (test_getopt): End lists with NULL.
23416         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23417         (test_getopt_long_posix): Enhance test.
23418         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23419         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23420         getopt-gnu.
23421         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23422         Likewise.
23423
23424 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23425
23426         * modules/idpriv-droptemp-tests (Notice): Fix text.
23427
23428 2009-11-27  Jim Meyering  <meyering@redhat.com>
23429
23430         test-xalloc-die: avoid spurious failure due to libtool argv difference
23431         In a libtool-enabled project, this test would fail due to a difference
23432         in the emitted program name, e.g.,
23433         -test-xalloc-die: memory exhausted
23434         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23435         Use program to avoid that.
23436         * modules/xalloc-die-tests (Depends-on): Add progname.
23437         * tests/test-xalloc-die.c: Include progname.h".
23438         (program_name): Remove decl.
23439         (main): Call set_program_name.
23440         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23441
23442 2009-11-26  Richard Jones  <rjones@redhat.com>
23443
23444         w32sock: leave win32 error in place.
23445         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23446
23447 2009-11-26  Eric Blake  <ebb9@byu.net>
23448
23449         init.sh: suggest to use skip_ and fail_ functions in comments
23450         * tests/init.sh: Add a sentence.
23451
23452 2009-11-25  Bruno Haible  <bruno@clisp.org>
23453
23454         init.sh: add documentation in comments
23455         * tests/init.sh: Add some developer and user documentation.
23456
23457 2009-11-26  Jim Meyering  <meyering@redhat.com>
23458
23459         init.sh: accommodate even those who specify bogus srcdir manually
23460         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23461         configure-time tests to be sanitized, so that there is no need to
23462         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23463         (with no double quotes) suffices.  However, since tests may be
23464         invoked manually, and since you may explicitly set srcdir to the
23465         name of a directory containing spaces, do quote its uses here.
23466         * tests/test-pread.sh: Likewise.
23467         Suggested by Bruno Haible.
23468
23469         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23470         * tests/test-pread.sh: Write no data into the pipe, because
23471         test-pread actually reads none.  This avoids a diagnostic,
23472         "bash: echo: write error: Broken pipe", that arises in the unusual
23473         event something is ignoring SIGPIPE, and might be interpreted
23474         as some sort of failure.  Reported by Bruno Haible.
23475
23476 2009-11-25  Jim Meyering  <meyering@redhat.com>
23477
23478         test-pread: cover failure with ESPIPE and EINVAL
23479         * tests/test-pread.c (main): Test for failure, too.
23480         * tests/test-pread.sh: Invoke with stdin on a pipe.
23481         Suggested by Eric Blake.
23482
23483         pread: improvement and fix
23484         * modules/pread (Depends-on): Depend on lseek, for portability to
23485         e.g., mingw.  Suggested by Eric Blake.
23486         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23487
23488         unistd.in.h: correct declaration of pread
23489         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23490         Reported by Richard W.M. Jones.
23491
23492         test-pread.sh: distribute the test script
23493         * modules/pread-tests (Files): Include test-pread.sh.
23494
23495         test-pread.sh: clean up
23496         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23497         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23498         That is unnecessary, since it's always ".".
23499         Suggestion from Eric Blake.
23500
23501         test-pread.sh: make executable
23502         * tests/test-pread.sh: Set executable bit.
23503         Reported by Eric Blake.
23504
23505         correct typo in test-pread.sh
23506         * tests/test-pread.sh: Add #! line.
23507
23508         test pread
23509         * tests/test-pread.c: New file.
23510         * tests/test-pread.sh: Likewise.
23511         * modules/pread-tests: Likewise.
23512
23513         pread: new module
23514         * modules/pread: New file.
23515         * lib/unistd.in.h (pread): Define/declare.
23516         * lib/pread.c (pread): New file.
23517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23518         * modules/unistd (Makefile.am): Substitute witnesses.
23519         * doc/posix-functions/pread.texi (pread): Update.
23520         * MODULES.html.sh: Add pread.
23521
23522 2009-11-25  Jim Meyering  <meyering@redhat.com>
23523
23524         tests/init.sh: new file to be used via most *.sh tests
23525         * tests/init.sh: New file.
23526
23527 2009-11-25  Eric Blake  <ebb9@byu.net>
23528
23529         utimens: work around older Linux failure with symlinks
23530         * lib/utimens.c (lutimensat_works_really): New variable.
23531         (fdutimens, lutimens): Use it to manage kernels that support
23532         nanosecond times on files, but not on symlinks.
23533         Reported by OndÅ™ej Vašík.
23534
23535         utimes: fix configure grammar
23536         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23537
23538 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23539
23540         regex: Fix fastmap for multibyte character ranges.
23541         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23542         characters when a multibyte character range is included.
23543
23544 2009-11-22  Andy Wingo  <wingo@pobox.com>
23545
23546         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23547         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23548
23549 2009-11-24  Bruno Haible  <bruno@clisp.org>
23550
23551         doc: Most *_l functions exist in MacOS X 10.5.
23552         * doc/posix-functions/duplocale.texi: Update platforms list.
23553         * doc/posix-functions/freelocale.texi: Likewise.
23554         * doc/posix-functions/newlocale.texi: Likewise.
23555         * doc/posix-functions/uselocale.texi: Likewise.
23556         * doc/posix-functions/isalnum_l.texi: Likewise.
23557         * doc/posix-functions/isalpha_l.texi: Likewise.
23558         * doc/posix-functions/isblank_l.texi: Likewise.
23559         * doc/posix-functions/iscntrl_l.texi: Likewise.
23560         * doc/posix-functions/isdigit_l.texi: Likewise.
23561         * doc/posix-functions/isgraph_l.texi: Likewise.
23562         * doc/posix-functions/islower_l.texi: Likewise.
23563         * doc/posix-functions/isprint_l.texi: Likewise.
23564         * doc/posix-functions/ispunct_l.texi: Likewise.
23565         * doc/posix-functions/isspace_l.texi: Likewise.
23566         * doc/posix-functions/isupper_l.texi: Likewise.
23567         * doc/posix-functions/iswalnum_l.texi: Likewise.
23568         * doc/posix-functions/iswalpha_l.texi: Likewise.
23569         * doc/posix-functions/iswblank_l.texi: Likewise.
23570         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23571         * doc/posix-functions/iswctype_l.texi: Likewise.
23572         * doc/posix-functions/iswdigit_l.texi: Likewise.
23573         * doc/posix-functions/iswgraph_l.texi: Likewise.
23574         * doc/posix-functions/iswlower_l.texi: Likewise.
23575         * doc/posix-functions/iswprint_l.texi: Likewise.
23576         * doc/posix-functions/iswpunct_l.texi: Likewise.
23577         * doc/posix-functions/iswspace_l.texi: Likewise.
23578         * doc/posix-functions/iswupper_l.texi: Likewise.
23579         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23580         * doc/posix-functions/isxdigit_l.texi: Likewise.
23581         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23582         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23583         * doc/posix-functions/strcoll_l.texi: Likewise.
23584         * doc/posix-functions/strfmon_l.texi: Likewise.
23585         * doc/posix-functions/strftime_l.texi: Likewise.
23586         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23587         * doc/posix-functions/strxfrm_l.texi: Likewise.
23588         * doc/posix-functions/tolower_l.texi: Likewise.
23589         * doc/posix-functions/toupper_l.texi: Likewise.
23590         * doc/posix-functions/towctrans_l.texi: Likewise.
23591         * doc/posix-functions/towlower_l.texi: Likewise.
23592         * doc/posix-functions/towupper_l.texi: Likewise.
23593         * doc/posix-functions/wcscoll_l.texi: Likewise.
23594         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23595         * doc/posix-functions/wctrans_l.texi: Likewise.
23596         * doc/posix-functions/wctype_l.texi: Likewise.
23597         * doc/glibc-functions/strptime_l.texi: Likewise.
23598         * doc/glibc-functions/strtod_l.texi: Likewise.
23599         * doc/glibc-functions/strtof_l.texi: Likewise.
23600         * doc/glibc-functions/strtol_l.texi: Likewise.
23601         * doc/glibc-functions/strtold_l.texi: Likewise.
23602         * doc/glibc-functions/strtoll_l.texi: Likewise.
23603         * doc/glibc-functions/strtoul_l.texi: Likewise.
23604         * doc/glibc-functions/strtoull_l.texi: Likewise.
23605         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23606         * doc/glibc-functions/wcstod_l.texi: Likewise.
23607         * doc/glibc-functions/wcstof_l.texi: Likewise.
23608         * doc/glibc-functions/wcstol_l.texi: Likewise.
23609         * doc/glibc-functions/wcstold_l.texi: Likewise.
23610         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23611         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23612         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23613
23614 2009-11-24  Bruno Haible  <bruno@clisp.org>
23615
23616         duplocale: Fix logic bug.
23617         * lib/duplocale.c: Don't include <langinfo.h>.
23618         (_NL_LOCALE_NAME): Remove macro.
23619         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23620         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23621
23622 2009-11-23  Jim Meyering  <meyering@redhat.com>
23623
23624         test-update-copyright: don't hard-code /usr/bin/perl
23625         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23626         perl to print the current year.  Gilles Espinasse reported that
23627         the replaced use of perl was hard-coded as /usr/bin/perl.
23628
23629 2009-11-23  Bruno Haible  <bruno@clisp.org>
23630
23631         duplocale: Add support for glibc 2.3.x.
23632         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23633
23634 2009-11-22  Bruno Haible  <bruno@clisp.org>
23635
23636         vasnprintf: Tiny optimization.
23637         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23638         MacOS X.
23639
23640 2009-11-22  Bruno Haible  <bruno@clisp.org>
23641
23642         Tests for module 'duplocale'.
23643         * modules/duplocale-tests: New file.
23644         * tests/test-duplocale.c: New file.
23645
23646         New module 'duplocale'.
23647         * m4/duplocale.m4: New file.
23648         * lib/locale.in.h (duplocale): New declaration.
23649         * lib/duplocale.c: New file.
23650         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23651         gl_LOCALE_H_DEFAULTS): New macros.
23652         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23653         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23654         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23655         REPLACE_DUPLOCALE.
23656         * modules/duplocale: New file.
23657         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23658
23659 2009-11-22  Bruno Haible  <bruno@clisp.org>
23660
23661         * modules/locale-tests (configure.ac): Test for newlocale function.
23662         * tests/test-locale.c: When the system has extended locale functions,
23663         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23664
23665         locale: Make locale_t available when possible.
23666         * lib/locale.in.h: Include <xlocale.h> when it exists.
23667         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23668         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23669         * modules/locale (Depends-on): Add extensions.
23670         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23671         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23672
23673 2009-11-22  Bruno Haible  <bruno@clisp.org>
23674
23675         Add comments.
23676         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23677         invocation.
23678         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23679         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23680         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23681
23682 2009-11-22  Bruno Haible  <bruno@clisp.org>
23683
23684         error: account for the possibility of freopen (stdout).
23685         * lib/error.c: Include <unistd.h>.
23686         (flush_stdout): New function, extracted from error and error_at_line.
23687         Determine stdout's fd dynamically.
23688         (error, error_at_line): Invoke flush_stdout.
23689         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23690         * modules/error (Depends-on): Add unistd.
23691
23692 2009-11-22  Bruno Haible  <bruno@clisp.org>
23693
23694         diffseq: Add comment.
23695         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23696
23697 2009-11-22  Jim Meyering  <meyering@redhat.com>
23698
23699         c-stack: avoid defining an unused static function
23700         * lib/c-stack.c (find_stack_direction): Do not define this function
23701         when it will not be used.
23702
23703         diffseq: avoid spurious gcc warnings
23704         * lib/diffseq.h (IF_LINT2): Define.
23705         (compareseq): Use it to initialize two members of "part".
23706         This avoids two used-uninitialized warnings.
23707
23708 2009-11-21  Jim Meyering  <meyering@redhat.com>
23709
23710         c-stack: avoid "ignoring return value of `write'" warning
23711         * lib/c-stack.c: Include "ignore-value.h".
23712         (die): Explicitly ignore each write return value.
23713         * modules/c-stack (Depends-on): Add ignore-value.
23714
23715 2009-11-21  Bruno Haible  <bruno@clisp.org>
23716
23717         diffseq: reduce scope of variable 'best'.
23718         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23719         variable, earlier used for two different purposes.
23720
23721 2009-11-21  Jim Meyering  <meyering@redhat.com>
23722
23723         diffseq: remove useless assignment to "best"
23724         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23725         assignment.  At that point "best" is already guaranteed to be zero.
23726
23727 2009-11-20  Eric Blake  <ebb9@byu.net>
23728
23729         build: mention ftp redirector in release announcements
23730         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23731         values that used to come from cfg.mk; mention FTP redirect URL.
23732         * build-aux/announce-gen: Mention the mirror list.
23733         Suggested by Karl Berry.
23734
23735         nanosleep: improve port to mingw
23736         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23738         LIB_NANOSLEEP, but only when needed.
23739         * modules/select (Link): Document LIBSOCKET.
23740         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23741         enough.
23742
23743         nanosleep: work around cygwin bug
23744         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23745         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23746         bug.
23747         (getnow): Delete, not needed.
23748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23749         LIB_CLOCK_GETTIME.
23750         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23751         clock-time, gettime.
23752         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23753         bug.
23754         * modules/nanosleep-tests: New test.
23755         * tests/test-nanosleep.c: New file.
23756
23757         sleep: work around cygwin bug
23758         * lib/sleep.c (rpl_sleep): Work around the bug.
23759         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23760         (gl_PREREQ_SLEEP): Delete unused macro.
23761         * modules/sleep (Depends-on): Add verify.
23762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23763         * modules/unistd (Makefile.am): Substitute witness.
23764         * lib/unistd.in.h (sleep): Update prototype.
23765         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23766         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23767         * modules/sleep-tests (Depends-on): Check for alarm.
23768
23769 2009-11-20  Jim Meyering  <meyering@redhat.com>
23770
23771         maint.mk: improve sc_prohibit_magic_number_exit
23772         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23773         so it does not match uses like System.exit(1).
23774         Add comments showing how to correct all offenders.
23775
23776 2009-11-19  Eric Blake  <ebb9@byu.net>
23777
23778         xalloc-die-tests: add missing library
23779         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23780
23781         test-xvasprintf: silence compiler warnings
23782         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23783         empty string from gcc.
23784
23785 2009-11-19  Jim Meyering  <meyering@redhat.com>
23786
23787         xfreopen: new module, from coreutils
23788         * modules/xfreopen: New module.
23789         * lib/xfreopen.c: New file.
23790         * lib/xfreopen.h: New file.
23791         * MODULES.html.sh (File stream based Input/Output"): Add it.
23792
23793 2009-11-19  Eric Blake  <ebb9@byu.net>
23794
23795         manywarnings: depend on warnings
23796         * modules/manywarnings (Depends-on): Add warnings.
23797
23798         build: avoid compiler warnings
23799         * lib/select.c (rpl_select): Delete unused variable.
23800         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23801
23802 2009-11-18  Eric Blake  <ebb9@byu.net>
23803
23804         tests: avoid false negative with --with-packager
23805         * tests/test-version-etc.sh: Discard packager information.
23806         * tests/test-argp-version-etc-1.sh: Likewise.
23807         Reported by Mike Frysinger.
23808
23809         utimens: fix regression on Solaris
23810         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23811         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23812         can only change fd timestamps via futimesat.  Instead, use an
23813         additional witness macro to avoid BSD bug.
23814         Reported by Jim Meyering.
23815
23816 2009-11-17  Eric Blake  <ebb9@byu.net>
23817
23818         usleep: use it to simplify tests
23819         * modules/stat-time-tests (Depends-on): Add usleep.
23820         (configure.ac): Drop usleep check.
23821         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23822         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23823         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23824         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23825         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23826         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23827         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23828         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23829         Likewise.
23830         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23831         * tests/test-lchown.h (nap): Likewise.
23832         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23833         * tests/test-stat-time.c (nap): Likewise.
23834         * tests/test-utimens-common.h (nap): Update comments.
23835
23836         usleep: new module
23837         * modules/usleep: New file.
23838         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23839         * lib/usleep.c (usleep): Likewise.
23840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23841         * modules/unistd (Makefile.am): Substitute witnesses.
23842         * lib/unistd.in.h (usleep): Add declaration.
23843         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23844         * MODULES.html.sh (Date and time): Likewise.
23845         * modules/usleep-tests (Depends-on): New test.
23846         * tests/test-usleep.c: New file.
23847
23848         chown: work around OpenBSD bug
23849         * lib/chown.c (rpl_chown): Work around the bug.
23850         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23851         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23852         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23853         * modules/chown (Depends-on): Add stdbool.
23854         * modules/lchown (Depends-on): Likewise.
23855         * doc/posix-functions/chown.texi (chown): Document the bug.
23856         * doc/posix-functions/lchown.texi (lchown): Likewise.
23857         * tests/test-lchown.h (test_chown): Relax test.
23858
23859         mkstemp: avoid conflict with C++ keyword template
23860         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23861         * lib/mkostemp.c (mkostemp): Likewise.
23862         * lib/mkostemps.c (mkostemps): Likewise.
23863         * lib/mkstemp.c (mkstemp): Likewise.
23864         * lib/mkstemps.c (mkstemps): Likewise.
23865
23866         xalloc-die-tests: optimize
23867         * tests/test-xalloc-die.sh: Reduce number of processes.
23868
23869 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23870
23871         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23872         patch from ludo@gnu.org (Ludovic Courtès).
23873
23874 2009-11-17  Jim Meyering  <meyering@redhat.com>
23875
23876         version-etc: use proper license string
23877         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23878         * modules/version-etc-fsf: Likewise.
23879
23880 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23881
23882         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23883         printed to stdout.  Deal with EOL differences.
23884
23885 2009-11-17  Eric Blake  <ebb9@byu.net>
23886
23887         unsetenv: work around Solaris bug
23888         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23889         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23890         Reported by Jim Meyering.
23891
23892         vasnprintf: avoid compiler warnings
23893         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23894         variables.
23895         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23896
23897 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23898
23899         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23900         settings since xalloc-die is no longer the self test,
23901         xalloc-die.sh is.
23902
23903 2009-11-17  Jim Meyering  <meyering@redhat.com>
23904
23905         test-xalloc-die.sh: make the code agree with the commit log
23906         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23907         at the end, just in case you happen to have a test-xalloc-die
23908         program in some other PATH directory.
23909
23910         test-xalloc-die.sh: fix a portability bug
23911         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23912         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23913         Otherwise, argv[0] (as often seen in diagnostics) would be too
23914         system-dependent, sometimes with, and sometimes without the leading "./".
23915
23916         version-etc-fsf: relax license to LGPLv3+
23917         * modules/version-etc-fsf (License): Relax license.
23918
23919 2009-11-16  Eric Blake  <ebb9@byu.net>
23920
23921         xalloc-die-tests: avoid printing null pointer
23922         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23923         shell script.
23924         * tests/test-xalloc-die.c (program_name): Declare.
23925         * tests/test-xalloc-die.sh (tmpfiles): New file.
23926
23927         setenv, unsetenv: work around various bugs
23928         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23929         (setenv) [HAVE_SETENV]: Work around bugs.
23930         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23931         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23932         for bugs.
23933         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23934         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23936         * modules/stdlib (Makefile.am): Update substitutions.
23937         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23938         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23939         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23940         * modules/setenv-tests: New test.
23941         * modules/unsetenv-tests: Likewise.
23942         * tests/test-setenv.c: New file.
23943         * tests/test-unsetenv.c: Likewise.
23944
23945 2009-11-16  Jim Meyering  <meyering@redhat.com>
23946
23947         version-etc: relax license to LGPLv3+
23948         * modules/version-etc (License): Relax license.
23949
23950         better AC_REQUIRE expanded-before-required-warning avoidance
23951         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23952         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23953         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23954         which is no longer needed.
23955
23956 2009-11-16  Eric Blake  <ebb9@byu.net>
23957
23958         test-freading: clean up temporary file
23959         * tests/test-freading.c (main): Remove file on success, and use
23960         ASSERT more liberally.
23961         Reported by Jim Meyering.
23962
23963 2009-11-16  Jim Meyering  <meyering@redhat.com>
23964
23965         avoid new AC_REQUIRE expanded-before-required warnings
23966         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23967         merely using it.
23968         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23969         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23970
23971 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23972
23973         * tests/test-xalloc-die.c: New file.
23974         * modules/xalloc-die-tests: New file.
23975         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23976         XFAIL_TESTS so it can be appended by modules.
23977
23978 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23979
23980         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23981         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23982
23983 2009-11-14  Eric Blake  <ebb9@byu.net>
23984
23985         fnmatch: avoid compiler warning
23986         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23987         to silence compiler warning about mismatch signedness in ?:.
23988         Reported by Robert Millan.
23989
23990         intprops: add double-inclusion guard
23991         * lib/intprops.h: Allow idempotent includes.
23992         Suggested by Bruce Korb.
23993
23994         openat: detect Solaris fchownat bug
23995         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23996         penalizing glibc chownat when only lchownat is broken.
23997         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23998         trailing slash bugs.
23999         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24000         * modules/openat-tests (Files): Include more files.
24001         (Depends-on): Add mgetgroups, sleep, stat-time.
24002         (configure.ac): Add additional checks.
24003         (Makefile.am): Build new test.
24004         * tests/test-fchownat.c: New file.
24005
24006         lchown: detect Solaris and FreeBSD bug
24007         * lib/lchown.c (rpl_lchown): Work around bug.
24008         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24010         * modules/unistd (Makefile.am): Populate it.
24011         * lib/unistd.in.h (lchown): Update declaration.
24012         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24013         * modules/lchown-tests: New file.
24014         * tests/test-lchown.h (test_lchown): Likewise.
24015         * tests/test-lchown.c (main): Likewise.
24016
24017         chown: detect Solaris and FreeBSD bug
24018         * lib/chown.c (rpl_chown): Work around bug.
24019         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24020         (gl_PREREQ_CHOWN): Delete.
24021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24022         * modules/unistd (Makefile.am): Populate it.
24023         * lib/unistd.in.h (chown): Update declaration.
24024         * lib/lchown.c (chown): Update client.
24025         * modules/lchown (Depends-on): Add lstat.
24026         * doc/posix-functions/chown.texi (chown): Document the bug.
24027         * doc/posix-functions/getgroups.texi (getgroups): Document
24028         getgroups pitfall.
24029         * modules/chown-tests: New file.
24030         * tests/test-chown.h (test_chown): Likewise.
24031         * tests/test-chown.c (main): Likewise.
24032
24033 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24034
24035         gnulib-tool: correctly detect absence of m4 directories
24036         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24037
24038 2009-11-14  Jim Meyering  <meyering@redhat.com>
24039
24040         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24041         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24042
24043 2009-11-14  John W. Eaton  <jwe@gnu.org>
24044
24045         strftime.h: wrap funtion declaration in extern "C" block
24046         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24047
24048 2009-11-13  Eric Blake  <ebb9@byu.net>
24049
24050         getgroups: avoid compiler warning
24051         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24052
24053         getgroups: work around FreeBSD bug
24054         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24055         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24056         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24057         * tests/test-getgroups.c (main): Fix buffer overrun.
24058
24059         getgroups: avoid compilation failure
24060         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24061         * modules/getgroups (Depends-on): Add stdint.
24062
24063 2009-11-13  Jim Meyering  <meyering@redhat.com>
24064
24065         test-getgroups: avoid compilation failure
24066         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24067
24068 2009-11-13  Eric Blake  <ebb9@byu.net>
24069
24070         mgetgroups: new module, taken from coreutils
24071         * modules/mgetgroups: New file.
24072         * lib/mgetgroups.h: Likewise.
24073         * lib/mgetgroups.c (mgetgroups): Likewise.
24074         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24075         * MODULES.html.sh (Users and groups): Mention it.
24076
24077         getgroups: don't expose GETGROUPS_T to user
24078         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24079         an element at a time if GETGROUPS_T is wrong size.
24080         * lib/getugroups.h (getugroups): Change signature.
24081         * lib/unistd.in.h (getgroups): Likewise.
24082         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24083         signature needs fixing.
24084         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24085         AC_TYPE_GETGROUPS.
24086         * modules/group-member (Depends-on): Add getgroups.
24087         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24088         (group_member): Rely on getgroups replacement.
24089         * lib/getugroups.c (getugroups): Use gid_t.
24090         * tests/test-getgroups.c (main): Likewise.
24091         * NEWS: Mention the signature change.
24092         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24093         problem with signature.
24094         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24095         GETGROUPS_T is still useful for setgroups.
24096
24097         getgroups, getugroups: provide stubs for mingw
24098         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24099         * lib/getugroups.c (getugroups): Likewise.
24100         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24101         function.  Modernize replacement scheme.
24102         (gl_PREREQ_GETGROUPS): Delete.
24103         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24104         * modules/getgroups (configure.ac): Declare witness.
24105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24106         * modules/unistd (Depends-on): Substitute witness.
24107         * lib/unistd.in.h (getgroups): Declare replacement.
24108
24109         getgroups: avoid calling exit
24110         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24111         drop xalloc.
24112         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24113         dependencies.
24114         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24115         exiting, in the rare case of malloc failure.
24116
24117         getgroups: fix logic error
24118         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24119         has more than 20 groups.
24120         * modules/getgroups-tests: New test.
24121         * tests/test-getgroups.c: New file.
24122
24123 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24124
24125         * tests/test-base64.c: Improve.
24126
24127 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24128
24129         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24130         Blake <ebb9@byu.net>.
24131
24132 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24133
24134         * tests/test-xvasprintf.c: Add %s%s related checks.
24135
24136 2009-11-12  Eric Blake  <ebb9@byu.net>
24137
24138         version-etc: match standards.texi style
24139         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24140         and use <> only for URLs.
24141
24142 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24143
24144         fts: do not fail on a submount during traversal
24145         * lib/fts.c (fts_build): Read the stat info again after opening
24146         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24147         Original report at http://bugzilla.redhat.com/501848.
24148
24149 2009-11-12  Jim Meyering  <meyering@redhat.com>
24150
24151         bootstrap: sync from coreutils
24152         * build-aux/bootstrap (bootstrap_epilogue): New function.
24153         Use git_modules_config in one more place.  This make bootstrap's
24154         --gnulib-srcdir option more useful for testing.
24155
24156         bootstrap: generalize autoheader check
24157         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24158         AC_CONFIG_HEADERS.
24159
24160 2009-11-11  Eric Blake  <ebb9@byu.net>
24161
24162         mkfifoat: use new modules for Solaris and BSD bugs
24163         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24164         * lib/mkfifoat.c (mknodat): Split...
24165         * lib/mknodat.c (mknodat): ...into new file.
24166         * modules/mkfifoat (Files): Ship new file.
24167         (Depends-on): Add mkfifo, mknod.
24168         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24169         (Depends-on): Add symlink.
24170         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24171         redundant with test_mkfifo.h.
24172         (do_mkfifoat, do_mknodat): New helpers.
24173
24174         mknod: new module
24175         * modules/mknod: New file.
24176         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24177         * lib/mknod.c (mknod): Likewise.
24178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24179         defaults.
24180         * modules/sys_stat (Makefile.am): Substitute them.
24181         * lib/sys_stat.in.h (mknod): Declare replacement.
24182         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24183         Document it.
24184         * doc/posix-functions/mknod.texi (mknod): Likewise.
24185         * modules/mknod-tests: New test.
24186         * tests/test-mknod.c: Likewise.
24187
24188         mkfifo: new module
24189         * modules/mkfifo: New file.
24190         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24191         * lib/mkfifo.c (mkfifo): Likewise.
24192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24193         defaults.
24194         * modules/sys_stat (Makefile.am): Substitute them.
24195         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24196         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24197         Document it.
24198         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24199         * modules/mkfifo-tests: New test.
24200         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24201         from test-mkfifoat.c.
24202         * tests/test-mkfifo.c: New file.
24203
24204         readlink: detect FreeBSD bug
24205         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24206         slash on symlink.
24207         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24208         * tests/test-readlink.h (test_readlink): Enhance test.
24209
24210         symlink: detect FreeBSD bug
24211         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24212         slash on symlink.
24213         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24214         * tests/test-symlink.h (test_symlink): Enhance test.
24215
24216 2009-11-10  Eric Blake  <ebb9@byu.net>
24217
24218         link: detect FreeBSD bug
24219         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24220         symlink.
24221         * doc/posix-functions/link.texi (link): Document the bug.
24222         * tests/test-link.h (test_link): Enhance test.
24223         * tests/test-linkat.c (main): Update caller.
24224
24225         unlink, remove: detect FreeBSD bug
24226         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24227         slash on symlink.
24228         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24229         * doc/posix-functions/remove.texi (remove): Likewise.
24230         * tests/test-unlink.h (test_unlink): Enhance test.
24231         * tests/test-remove.c (main): Likewise.
24232
24233 2009-11-09  Eric Blake  <ebb9@byu.net>
24234
24235         rename: detect FreeBSD bug
24236         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24237         slash on symlink.
24238         * modules/renameat-tests (Depends-on): Add filenamecat.
24239         * tests/test-rename.h (test_rename): Allow one more errno.
24240         * tests/test-renameat.c (main): Likewise.
24241         * doc/posix-functions/rename.texi (rename): Document the bug.
24242
24243         open: detect FreeBSD bug
24244         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24245         symlink.
24246         * doc/posix-functions/open.texi (open): Document the bug.
24247         * doc/posix-functions/utimes.texi (utimes): Likewise.
24248         * tests/test-open.h (test_open): Add parameters, and test symlink
24249         handling.
24250         * tests/test-open.c (main): Adjust caller.
24251         * tests/test-fcntl-safer.c (main): Likewise.
24252         * modules/open-tests (Depends-on): Add stdbool, symlink.
24253         * modules/fcntl-safer-tests (Depends-on): Likewise.
24254         * tests/test-openat.c (main): Add test-open tests.
24255
24256         stat: detect FreeBSD bug
24257         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24258         symlink.
24259         * doc/posix-functions/stat.texi (stat): Document the bug.
24260         * tests/test-stat.h (test_stat_func): Add argument.
24261         * tests/test-stat.c (main): Adjust caller.
24262         * tests/test-fstatat.c (main): Likewise.
24263         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24264         Reported by Jim Meyering.
24265
24266 2009-11-09  James Youngman  <jay@gnu.org>
24267
24268         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24269         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24270
24271 2009-11-08  Jim Meyering  <meyering@redhat.com>
24272
24273         utimens: remove invalid futimesat call
24274         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24275         It used the file descriptor of the target file as the DIR_FD
24276         parameter and NULL as the file name.  That caused failure with
24277         errno == EFAULT on FreeBSD-8.0-rc2
24278
24279 2009-11-07  Eric Blake  <ebb9@byu.net>
24280
24281         fflush, freadseek: use fseeko, not fseek
24282         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24283         (clear_ungetc_buffer): Avoid potential problems on large files.
24284         * lib/freadseek.c (freadseek): Likewise.
24285         * modules/freadseek (Depends-on): Add fseeko.
24286         * modules/fseek (configure.ac): Set a witness.
24287         * tests/test-fflush.c (main): Use fseeko.
24288         * tests/test-fpurge.c (fseek): Disable link warning.
24289         * tests/test-freadable.c (fseek): Likewise.
24290         * tests/test-freading.c (fseek): Likewise.
24291         * tests/test-fseeko.c (fseek): Likewise.
24292         * tests/test-ftell.c (fseek): Likewise.
24293         * tests/test-ftello.c (fseek): Likewise.
24294         * tests/test-fwritable.c (fseek): Likewise.
24295         * tests/test-fwriting.c (fseek): Likewise.
24296
24297 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24298
24299         * modules/memchr (Depends-on): Drop getpagesize dependency.
24300
24301 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24302
24303         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24304         Reported by Ludovic Courtès.
24305         * build-aux/pmccabe2html: Improve example usage.
24306         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24307
24308 2009-11-06  Jim Meyering  <meyering@redhat.com>
24309
24310         do-release-commit-and-tag: New module.
24311         Automate the release-commit and tag process.
24312         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24313         * modules/do-release-commit-and-tag: New file.
24314         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24315
24316 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24317
24318         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24319         because test-select.c uses inet_pton.
24320
24321 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24322
24323         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24324         GETADDRINFO_LIB.  Bump serial number.
24325         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24326         Suggested by Eric Blake <ebb9@byu.net>.
24327
24328 2009-11-05  Eric Blake  <ebb9@byu.net>
24329
24330         strtod: detect darwin bug
24331         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24332         Reported by Leo Davis.
24333
24334         freopen-safer: new module
24335         * modules/freopen-safer: New module.
24336         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24337         * lib/freopen-safer.c (freopen_safer): New file.
24338         * lib/stdio-safer.h (freopen_safer): New declaration.
24339         * lib/stdio--.h (freopen): New override.
24340         * MODULES.html.sh (File stream based Input/Output): Mention it.
24341         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24342         freopen-safer module.
24343         * doc/posix-functions/stderr.texi (stderr): Likewise.
24344         * doc/posix-functions/stdin.texi (stdin): Likewise.
24345         * doc/posix-functions/stdout.texi (stdout): Likewise.
24346         * modules/freopen-safer-tests: New test.
24347         * tests/test-reopen-safer.c: New file.
24348
24349 2009-11-05  Jim Meyering  <meyering@redhat.com>
24350
24351         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24352         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24353
24354 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24355
24356         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24357
24358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24359
24360         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24361
24362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24363
24364         Fix link error.
24365         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24366         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24367
24368 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24369
24370         * tests/test-func.c: Also test value of __func__.
24371
24372 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24373
24374         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24375         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24376
24377 2009-11-05  Bruno Haible  <bruno@clisp.org>
24378
24379         Fix link error.
24380         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24381         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24382         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24383
24384 2009-11-05  Bruno Haible  <bruno@clisp.org>
24385
24386         Tests for module 'inet_pton'.
24387         * modules/inet_pton-tests: New file.
24388         * tests/test-inet_pton.c: New file.
24389
24390 2009-11-05  Bruno Haible  <bruno@clisp.org>
24391
24392         Tests for module 'inet_ntop'.
24393         * modules/inet_ntop-tests: New file.
24394         * tests/test-inet_ntop.c: New file.
24395
24396 2009-11-04  Eric Blake  <ebb9@byu.net>
24397
24398         stdlib-safer: wrap all mkstemp variants
24399         * modules/mkostemp (configure.ac): Set witness.
24400         * modules/mkostemps (configure.ac): Likewise.
24401         * modules/mkstemps (configure.ac): Likewise.
24402         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24403         (mkstemps_safer): Wrap more functions.
24404         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24405         wrapping.
24406         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24407         (mkstemps_safer): Implement the wrappers.
24408
24409         mkstemps, mkostemps: new modules
24410         * modules/mkostemps: New module.
24411         * modules/mkstemps: Likewise.
24412         * lib/mkostemps.c (mkostemps): New file.
24413         * lib/mkstemps.c (mkstemps): Likewise.
24414         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24415         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24417         * modules/stdlib (Makefile.am): Substitute them.
24418         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24419         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24420         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24421         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24422         * MODULES.html.sh (File system functions): Mention them.
24423
24424         tempname: resync from glibc
24425         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24426         same values for __GT_FILE as glibc.  Abort even when assertions
24427         are disabled.
24428         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24429         match its value otherwise.  Allow idempotent inclusion.
24430         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24431         * lib/mkostemp.c (mkostemp): Likewise.
24432         * lib/mkstemp.c (mkstemp): Likewise.
24433         * lib/tmpfile.c (tmpfile): Likewise.
24434         * NEWS: Document this.
24435
24436         utimens: fix use of futimens on older Linux
24437         * lib/utimens.c (fdutimens): Use updated, rather than original,
24438         timespec to avoid bug in older Linux kernel.
24439         Reported by Simon Josefsson.
24440
24441 2009-11-04  Bruno Haible  <bruno@clisp.org>
24442
24443         Make num_processors more flexible and consistent.
24444         * lib/nproc.h (enum nproc_query): New type.
24445         (num_processors): Add a 'query' argument.
24446         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24447         (num_processors): Add a 'query' argument. Test the value of the
24448         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24449         mingw, count the number of CPUs available for the current process.
24450         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24451         Check for sched_getaffinity and sched_getaffinity_np.
24452         * modules/nproc (Depends-on): Add c-ctype, extensions.
24453         * NEWS: Mention the change.
24454
24455 2009-11-03  Bruno Haible  <bruno@clisp.org>
24456
24457         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24458
24459 2009-11-03  Jim Meyering  <meyering@redhat.com>
24460
24461         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24462         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24463         if it is defined.
24464
24465 2009-11-02  Eric Blake  <ebb9@byu.net>
24466
24467         mktime, timegm: share common declaration
24468         * lib/mktime-internal.h: New file.
24469         * lib/mktime.c: Use it rather than open-coding a declaration.
24470         * lib/timegm.c: Likewise.
24471         * modules/mktime (Files): Ship it.
24472         * modules/timegm (Files): Likewise.
24473         Suggested by Bruno Haible.
24474
24475         test-update-copyright: update test to match script changes
24476         * tests/test-update-copyright.sh: Avoid hard-coding perl
24477         location.  Don't update *.bak created by earlier runs.
24478
24479 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24480             Simon Josefsson  <simon@josefsson.org>
24481             Bruno Haible  <bruno@clisp.org>
24482
24483         Fix link error on Solaris 8.
24484         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24485         also in libnsl. Define also INET_PTON_LIB.
24486         * modules/inet_pton (Link): New section.
24487
24488 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24489             Bruno Haible  <bruno@clisp.org>
24490
24491         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24492         * modules/inet_ntop (Link): New section.
24493         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24494
24495 2009-11-02  Eric Blake  <ebb9@byu.net>
24496
24497         maint: avoid compiler warnings in m4 macros
24498         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24499         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24500
24501 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24502
24503         * m4/pmccabe2html.m4: Remove file.
24504         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24505         function.  Change maintainer.
24506         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24507         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24508         Courtès).
24509
24510 2009-10-31  Eric Blake  <ebb9@byu.net>
24511
24512         fseeko: fix m4 regression
24513         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24514         regression from 2009-10-27.
24515         Reported by Ralf Wildenhues.
24516
24517 2009-10-31  Jim Meyering  <meyering@redhat.com>
24518
24519         inttostr: aesthetics and improved (compile-time) safety
24520         Define inttype_is_signed rather than inttype_is_unsigned,
24521         since the sole use is via "#if inttype_is_signed".
24522         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24523         inttype_is_unsigned.
24524         * lib/offtostr.c (inttype_is_signed): Likewise.
24525         * lib/uinttostr.c (inttype_is_signed): Likewise.
24526         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24527         * lib/inttostr.c (inttostr): Use verify to cross-check the
24528         inttype_is_signed value and the signedness of the actual type.
24529         * modules/inttostr (Depends-on): Add verify.
24530
24531 2009-10-30  Eric Blake  <ebb9@byu.net>
24532
24533         build: avoid compiler warnings
24534         * lib/fchmodat.c (lchmod): Mark unused variables.
24535         * lib/getopt.c (_getopt_initialize): Likewise.
24536         * lib/mktime.c (__mktime_internal): Provide prototype.
24537         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24538         older gcc that do not understand #pragma GCC diagnostic.
24539         * lib/uinttostr.c (inttype_is_unsigned): Define.
24540         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24541
24542 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24543
24544         stat: fix compilation on AIX
24545         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24546         only see struct stat64.
24547
24548 2009-10-30  Eric Blake  <ebb9@byu.net>
24549
24550         exclude: make more robust
24551         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24552         rather than masking a coding bug.
24553         Suggested by Bruno Haible.
24554
24555 2009-10-30  Jim Meyering  <meyering@redhat.com>
24556
24557         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24558         Rather than putting #!/usr/bin/perl on the first line,
24559         start with a variant of what's recommended by "man perlrun" that
24560         invokes the first "perl" program from your shell's search path.
24561         * build-aux/gitlog-to-changelog: Replace #!... as above.
24562         Add a "Local Variables" perl mode setting.
24563         Prompted by a patch from Ludovic Courtès.
24564         Improved by Eric Blake.
24565         * build-aux/useless-if-before-free: Likewise.
24566         * build-aux/announce-gen: Likewise.
24567         * build-aux/update-copyright: Likewise.
24568
24569 2009-10-29  Eric Blake  <ebb9@byu.net>
24570
24571         filenamecat-lgpl: adjust clients
24572         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24573         filenamecat.
24574         * modules/renameat (Depends-on): Likewise.
24575
24576         filenamecat: split into filenamecat-lgpl
24577         * modules/filenamecat-lgpl: New module.
24578         * modules/filenamecat (Files): Move library-safe files into
24579         filenamecat-lgpl.
24580         (Depends-on): Add filenamecat-lgpl.
24581         (configure.ac): Declare witness.
24582         * lib/filenamecat.h (file_name_concat): Only declare when using
24583         GPL module.
24584         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24585         Move...
24586         * lib/filenamecat-lgpl.c: ...into new file.
24587         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24588         (gl_FILE_NAME_CONCAT): Use it.
24589         * MODULES.html.sh (File system functions): Mention new module.
24590
24591         argp: avoid memory leak
24592         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24593         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24594         base_name, since the latter malloc()s and can call exit().
24595         Leak introduced 2006-07-03.
24596
24597         dirname-lgpl: adjust clients that don't need full dirname
24598         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24599         * modules/filenamecat (Depends-on): Likewise.
24600         * modules/linkat (Depends-on): Likewise.
24601         * modules/mkancesdirs (Depends-on): Likewise.
24602         * modules/mkdir (Depends-on): Likewise.
24603         * modules/openat (Depends-on): Likewise.
24604         * modules/savewd (Depends-on): Likewise.
24605         * modules/rename (Depends-on): Likewise.
24606         (License): Relax license.
24607         * modules/mkdir-tests (Depends-on): Drop progname.
24608         (Makefile.am): Delete unneeded LDADD.
24609         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24610
24611         dirname: split into dirname-lgpl
24612         * modules/dirname-lgpl: New module.
24613         * modules/dirname (Files): Move library-safe files into
24614         dirname-lgpl.
24615         (Depends-on): Add dirname-lgpl.
24616         (configure.ac): Declare witness.
24617         * modules/double-slash-root (License): Relax license.
24618         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24619         module.
24620         * lib/dirname.c (dir_len, mdir_name): Move...
24621         * lib/dirname-lgpl.c: ...into new file.
24622         * lib/basename.c (last_component, base_len): Move...
24623         * lib/basename-lgpl.c: ...into new file.
24624         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24625         (gl_DIRNAME): Use it.
24626         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24627         Mention new module.
24628         * modules/dirname-tests (Depends-on): Add progname.
24629         * tests/test-dirname.c (program_name): Delete.
24630
24631         mkdir: make safe for libraries
24632         * modules/mkdir (Depends-on): Drop xalloc.
24633         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24634         exit.
24635
24636         tests: avoid some compiler warnings
24637         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24638         literals.
24639         * tests/test-memchr.c (main): Avoid type mismatch.
24640         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24641         * tests/test-base64.c (main): Likewise.
24642         * tests/test-getdelim.c (main): Likewise.
24643         * tests/test-gethostname.c (main): Likewise.
24644         * tests/test-getline.c (main): Likewise.
24645         * tests/test-netinet_in.c (main): Likewise.
24646         * tests/test-select.c (open_server_socket, main): Likewise.
24647         * tests/test-select-stdin.c (main): Likewise.
24648         * tests/test-sockets.c (main): Likewise.
24649         * tests/test-strsignal.c (main): Likewise.
24650         * tests/test-sys_select.c (main): Likewise.
24651         * tests/test-sys_socket.c (main): Likewise.
24652         * tests/test-u64.c (main): Likewise.
24653         * tests/test-xfprintf-posix.c (main): Likewise.
24654         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24655
24656         sockets: avoid compiler warning
24657         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24658
24659         maint: detect usage(1) and other suspicious exits
24660         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24661
24662 2009-10-29  Jim Meyering  <meyering@redhat.com>
24663
24664         timespec: long-to-int truncation could make timespec_cmp malfunction
24665         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24666         a multiple of 2^32 nanoseconds as no difference.
24667
24668 2009-10-28  Jim Meyering  <meyering@redhat.com>
24669
24670         fprintftime: wrap macro code argument in "do {...} while(0)"
24671         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24672         cpy macro must be a statement that can be followed by a semicolon.
24673         Now that the else clause contains a comment and is hence longer
24674         than one line, I require curly braces.  That in turn requires
24675         that we wrap this code block in the standard do...while(0).
24676
24677         fprintftime: remove stray semicolon from previous change
24678         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24679
24680         fprintftime: avoid a warning about ignored fwrite return value
24681         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24682         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24683         that is unsafe.
24684         * modules/fprintftime (Depends-on): Add ignore-value.
24685
24686         exclude: avoid an unwarranted warning
24687         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24688
24689 2009-10-27  Eric Blake  <ebb9@byu.net>
24690
24691         fseek: avoid compilation failure when fflush is replaced
24692         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24693         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24694         module is in use.
24695         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24696         module is not in use; since REPLACE_FSEEK worked otherwise.
24697         (GNULIB_FTELLO): Likewise for ftell.
24698         Reported by Ian Beckwith and others.
24699
24700 2009-10-27  Bruno Haible  <bruno@clisp.org>
24701
24702         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24703         Reported by Jim Meyering.
24704
24705 2009-10-27  Jim Meyering  <jim@meyering.net>
24706             Bruno Haible  <bruno@clisp.org>
24707
24708         Avoid warning despite dropping the return value of fwrite.
24709         * lib/unicodeio.c: Include ignore-value.h.
24710         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24711         * modules/unicodeio (Depends-on): Add ignore-value.
24712
24713 2009-10-26  Eric Blake  <ebb9@byu.net>
24714
24715         areadlinkat: fix fallback path
24716         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24717         pointer and zero.
24718
24719 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24720
24721         Use a better IO block size for modern systems
24722         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24723         * lib/md2.c: Likewise.
24724         * lib/md4.c: Likewise.
24725         * lib/md5.c: Likewise.
24726         * lib/sha1.c: Likewise.
24727         * lib/sha256.c: Likewise.
24728         * lib/sha512.c: Likewise.
24729
24730 2009-10-22  Eric Blake  <ebb9@byu.net>
24731
24732         tests: avoid several compiler warnings
24733         * tests/test-getcwd.c (main): Avoid buffer underflow.
24734         * tests/test-getdate.c (main): String literals are not safe with
24735         putenv, so use setenv.  Declare unused argument.
24736         * modules/getdate-tests (Depends-on): Add setenv.
24737         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24738         problems with string literals in char *.
24739         * tests/test-hash.c (main): Avoid shadowing declaration.
24740         (insert_new): Treat string literals as char const *.
24741         * tests/test-getopt.h (test_getopt): Likewise.
24742         (getopt_loop): Alter types to minimize casting elsewhere.
24743         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24744         (test_getopt_long_posix): Likewise.
24745         (do_getopt_long): Add wrapper to minimize casting.
24746         * tests/test-atexit.c (clear_temp_file): Use void.
24747         * tests/test-areadlink-with-size.c (main): Declare unused
24748         arguments.
24749         * tests/test-areadlink.c (main): Likewise.
24750         * tests/test-areadlinkat-with-size.c (main): Likewise.
24751         * tests/test-areadlinkat.c (main): Likewise.
24752         * tests/test-canonicalize-lgpl.c (main): Likewise.
24753         * tests/test-canonicalize.c (main): Likewise.
24754         * tests/test-dirent-safer.c (main): Likewise.
24755         * tests/test-dirname.c (main): Likewise.
24756         * tests/test-dup2.c (main): Likewise.
24757         * tests/test-fchdir.c (main): Likewise.
24758         * tests/test-fcntl-h.c (main): Likewise.
24759         * tests/test-fcntl-safer.c (main): Likewise.
24760         * tests/test-fdopendir.c (main): Likewise.
24761         * tests/test-fdutimensat.c (main): Likewise.
24762         * tests/test-fflush.c (main): Likewise.
24763         * tests/test-filenamecat.c (main): Likewise.
24764         * tests/test-filevercmp.c (main): Likewise.
24765         * tests/test-fopen-safer.c (main): Likewise.
24766         * tests/test-fopen.c (main): Likewise.
24767         * tests/test-fpending.c (main): Likewise.
24768         * tests/test-fpurge.c (main): Likewise.
24769         * tests/test-freading.c (main): Likewise.
24770         * tests/test-fstatat.c (main): Likewise.
24771         * tests/test-fsync.c (main): Likewise.
24772         * tests/test-futimens.c (main): Likewise.
24773         * tests/test-getndelim2.c (main): Likewise.
24774         * tests/test-gettimeofday.c (main): Likewise.
24775         * tests/test-getopt.c (main): Likewise.
24776         * tests/test-i-ring.c (main): Likewise.
24777         * tests/test-inttypes.c (main): Likewise.
24778         * tests/test-link.c (main): Likewise.
24779         * tests/test-lstat.c (main): Likewise.
24780         * tests/test-math.c (main): Likewise.
24781         * tests/test-md5.c (main): Likewise.
24782         * tests/test-memchr2.c (main): Likewise.
24783         * tests/test-memrchr.c (main): Likewise.
24784         * tests/test-mkdir.c (main): Likewise.
24785         * tests/test-mkdirat.c (main): Likewise.
24786         * tests/test-mkfifoat.c (main): Likewise.
24787         * tests/test-open.c (main): Likewise.
24788         * tests/test-openat-safer.c (main): Likewise.
24789         * tests/test-openat.c (main): Likewise.
24790         * tests/test-quotearg.c (main): Likewise.
24791         * tests/test-rawmemchr.c (main): Likewise.
24792         * tests/test-readlink.c (main): Likewise.
24793         * tests/test-remove.c (main): Likewise.
24794         * tests/test-rename.c (main): Likewise.
24795         * tests/test-renameat.c (main): Likewise.
24796         * tests/test-rmdir.c (main): Likewise.
24797         * tests/test-sha1.c (main): Likewise.
24798         * tests/test-signal.c (main): Likewise.
24799         * tests/test-sigaction.c (main): Likewise.
24800         * tests/test-stat.c (main): Likewise.
24801         * tests/test-stat-time.c (main): Likewise.
24802         * tests/test-stddef.c (main): Likewise.
24803         * tests/test-stdint.c (main): Likewise.
24804         * tests/test-stdio.c (main): Likewise.
24805         * tests/test-stdlib.c (main): Likewise.
24806         * tests/test-strchrnul.c (main): Likewise.
24807         * tests/test-strerror.c (main): Likewise.
24808         * tests/test-string.c (main): Likewise.
24809         * tests/test-strtod.c (main): Likewise.
24810         * tests/test-strverscmp.c (main): Likewise.
24811         * tests/test-symlink.c (main): Likewise.
24812         * tests/test-symlinkat.c (main): Likewise.
24813         * tests/test-sys_stat.c (main): Likewise.
24814         * tests/test-sys_time.c (main): Likewise.
24815         * tests/test-time.c (main): Likewise.
24816         * tests/test-unistd.c (main): Likewise.
24817         * tests/test-unlink.c (main): Likewise.
24818         * tests/test-unlinkat.c (main): Likewise.
24819         * tests/test-utimens.c (main): Likewise.
24820         * tests/test-utimensat.c (main): Likewise.
24821         * tests/test-version-etc.c (main): Likewise.
24822         * tests/test-wchar.c (main): Likewise.
24823         * tests/test-wctype.c (main): Likewise.
24824         * tests/test-xprintf-posix.c (main): Likewise.
24825         * tests/test-posixtm.c (main): Likewise.
24826         (STREQ): Delete unused macro.
24827         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24828         shadowed variables.
24829         * tests/test-memchr.c (main): Likewise.
24830
24831 2009-10-21  Eric Blake  <ebb9@byu.net>
24832
24833         areadlinkat: avoid failure on older glibc
24834         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24835         rather than mis-comparing 0 against FUNC_RESULT of char*.
24836
24837 2009-10-21  Bruno Haible  <bruno@clisp.org>
24838
24839         * modules/stpncpy (License): Relicense under LGPLv2+.
24840         Reported by David Lutterkort <lutter@redhat.com>.
24841
24842 2009-10-20  Eric Blake  <ebb9@byu.net>
24843
24844         utimensat: work around Solaris 9 bug
24845         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24846         has trailing slash bugs.
24847         * tests/test-lutimens.h (test_lutimens): Enhance test.
24848         * tests/test-utimens.h (test_utimens): Likewise.
24849         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24850         * doc/posix-functions/utimes.texi (utimes): Likewise.
24851         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24852         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24853         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24854         * doc/posix-functions/futimens.texi (futimens): Likewise.
24855
24856         fdutimensat: new module
24857         * modules/fdutimensat: New file.
24858         * lib/fdutimensat.c (fdutimensat): Likewise.
24859         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24860         * MODULES.html.sh (File system functions): Mention module.
24861         * modules/fdutimensat-tests: New test.
24862         * tests/test-fdutimensat.c: Likewise.
24863
24864         doc: regenerate INSTALL
24865         * doc/INSTALL: Reflect recent autoconf update.
24866         * doc/INSTALL.ISO: Likewise.
24867         * doc/INSTALL.UTF-8: Likewise.
24868
24869 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24870
24871         acl: warn if ACL support is not detected
24872         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24873
24874 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24875
24876         * lib/nproc.h: Add extern "C" block for C++.
24877
24878 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24879             Bruno Haible  <bruno@clisp.org>
24880
24881         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24882         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24883         * doc/posix-functions/isalpha.texi: Likewise.
24884         * doc/posix-functions/isblank.texi: Likewise.
24885         * doc/posix-functions/iscntrl.texi: Likewise.
24886         * doc/posix-functions/isdigit.texi: Likewise.
24887         * doc/posix-functions/isgraph.texi: Likewise.
24888         * doc/posix-functions/islower.texi: Likewise.
24889         * doc/posix-functions/isprint.texi: Likewise.
24890         * doc/posix-functions/ispunct.texi: Likewise.
24891         * doc/posix-functions/isspace.texi: Likewise.
24892         * doc/posix-functions/isupper.texi: Likewise.
24893         * doc/posix-functions/isxdigit.texi: Likewise.
24894
24895 2009-10-18  Bruno Haible  <bruno@clisp.org>
24896
24897         Tests for module 'isblank'.
24898         * modules/isblank-tests: New file.
24899         * tests/test-isblank.c: New file.
24900
24901         New module 'isblank'.
24902         * lib/isblank.c: New file.
24903         * m4/isblank.m4: New file.
24904         * modules/isblank: New file.
24905         * doc/posix-functions/isblank.texi: Mention the new module.
24906
24907 2009-10-18  Bruno Haible  <bruno@clisp.org>
24908
24909         New module 'ctype'.
24910         * lib/ctype.in.h: New file.
24911         * m4/ctype.m4: New file.
24912         * modules/ctype: New file.
24913         * doc/posix-headers/ctype.texi: Mention the new module.
24914
24915 2009-10-18  Jim Meyering  <meyering@redhat.com>
24916
24917         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24918         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24919         right after its initialization, rather than farther down.
24920         Keeping these in close proximity makes it easier to ensure
24921         that each such variable is initialized.  E.g.,
24922
24923             LIB_CLOCK_GETTIME=
24924             AC_SUBST([LIB_CLOCK_GETTIME])
24925
24926         This change also increments these serial numbers.
24927         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24930
24931 2009-10-18  Bruno Haible  <bruno@clisp.org>
24932
24933         Don't let environment variables perturb build.
24934         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24935         (gl_PREREQ_GETHRXTIME): ... not here.
24936
24937 2009-10-18  Bruno Haible  <bruno@clisp.org>
24938
24939         Avoid symlink attack in localcharset module.
24940         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24941         (O_NOFOLLOW): Define fallback.
24942         (get_charset_aliases): Don't open the file if it is a symbolic link.
24943         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24944         gl_FCNTL_H.
24945         (gl_FCNTL_H): Require it.
24946         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24947         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24948         Reported by Fergal Glynn <fglynn@veracode.com>.
24949
24950 2009-10-18  Bruno Haible  <bruno@clisp.org>
24951
24952         Implement nproc for mingw.
24953         * lib/nproc.c: Include <windows.h>
24954         (num_processors): On native Windows platforms, try GetSystemInfo.
24955
24956 2009-10-18  Bruno Haible  <bruno@clisp.org>
24957
24958         Implement nproc for IRIX.
24959         * lib/nproc.c: Include <sys/sysmp.h>.
24960         (num_processors): On IRIX systems, try sysmp.
24961         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24962
24963 2009-10-18  Bruno Haible  <bruno@clisp.org>
24964
24965         Implement nproc for HP-UX.
24966         * lib/nproc.c: Include <sys/pstat.h>
24967         (num_processors): On HP-UX systems, try pstat_getdynamic.
24968         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24969         pstat_getdynamic.
24970
24971 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24972             Bruno Haible  <bruno@clisp.org>
24973
24974         Implement nproc for NetBSD, OpenBSD.
24975         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24976         (ARRAY_SIZE): New macro.
24977         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24978         * m4/nproc.m4: New file.
24979         * modules/nproc (Files): Add m4/nproc.m4.
24980         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24981         (Makefile.am): Instead, augment lib_SOURCES.
24982
24983 2009-10-18  Bruno Haible  <bruno@clisp.org>
24984
24985         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24986         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24987         sys/param.h.
24988
24989 2009-10-16  Eric Blake  <ebb9@byu.net>
24990
24991         utimensat: new module
24992         * modules/utimensat: New file.
24993         * lib/utimensat.c (utimensat): Likewise.
24994         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24995         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24996         so we can work around Linux bugs.
24997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24998         * modules/sys_stat (Makefile.am): Substitute them.
24999         * lib/sys_stat.in.h (utimensat): Declare it.
25000         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25001         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25002         * modules/utimensat-tests: New test.
25003         * tests/test-utimensat.c: Likewise.
25004
25005         utimens: let lutimens work on non-symlinks
25006         * lib/utimens.c (lutimens): Fall back to utimens rather than
25007         failing with ENOSYS, when file is not a symlink.
25008         (utimens): Reduce redirection.
25009         * tests/test-lutimens.h (test_lutimens): Update test to cover
25010         non-symlinks.
25011         * tests/test-utimens.h (test_utimens): Update test to cover
25012         symlinks.
25013         * tests/test-utimens.c (main): Update caller.
25014
25015         utimens: cache whether utimensat syscall works
25016         * lib/utimens.c (utimensat_works_really): New cache variable.
25017         (fdutimens, lutimens): Use it to avoid failing syscall.
25018
25019         test-stat-time, test-utimens: improve portability
25020         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25021         ext4 on alpha, and for cygwin.
25022         * tests/test-utimens-common.h: New file.
25023         (nap): Factor delays into single function.
25024         * tests/test-lutimens.h (test_lutimens): Use new header.
25025         * tests/test-futimens.h (test_futimens): Likewise.
25026         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25027         timestamps to occur from same machine, as was done previously for
25028         test_utimens.
25029         * modules/utimens-tests (Files): Ship new file.
25030         * modules/futimens-tests (Files): Likewise.
25031         Reported in part by Jim Meyering.
25032
25033         sys_stat: sort replacement declarations
25034         * lib/sys_stat.in.h: Sort declarations.
25035         * lib/futimens.c (futimens): Fix typo.
25036
25037 2009-10-15  Jim Meyering  <meyering@redhat.com>
25038
25039         don't let environment settings perturb build
25040         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25041         could cause a configure-time and/or build-time malfunction.
25042         Typically, a configure-time function-in-library test is performed
25043         via code like this:
25044
25045           LIB_VAR=
25046           AC_SUBST([LIB_VAR])
25047           prefix_saved_LIBS=$LIBS
25048             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25049                        [test "$ac_cv_search_FUNC" = "none required" ||
25050                         LIB_VAR=$ac_cv_search_FUNC])
25051           LIBS=$prefix_saved_LIBS
25052
25053         However, in each of the files affected by this change, the LIB_VAR=
25054         initialization was omitted.  Thus, when set in the environment, its
25055         value would propagate into generated Makefiles when FUNC is not found
25056         in LIB_NAME.
25057         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25058         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25060
25061 2009-10-14  Eric Blake  <ebb9@byu.net>
25062
25063         fchdir: avoid infinite recursion in mingw
25064         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25065         recursing.
25066
25067         test-stat-time: port to mingw
25068         * tests/test-stat-time.c (force_unlink): Return a value.
25069         (test_ctime) [W32]: Fix compilation error.
25070         (nap): Don't call usleep with too large an argument.  Use
25071         force_unlink.
25072         * doc/pastposix-functions/usleep.texi (usleep): Document the
25073         portability issue.
25074
25075 2009-10-13  Jim Meyering  <meyering@redhat.com>
25076
25077         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25078         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25079         * modules/pipe-filter-ii: Likewise.
25080         * modules/sys_socket-tests: Likewise.
25081         * modules/tsearch-tests: Likewise.
25082         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25083         (check): Depend on it.
25084
25085 2009-10-12  Eric Blake  <ebb9@byu.net>
25086
25087         utimens-tests: port to NFS file systems
25088         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25089         comparisons to avoid spurious failures from timestamp drift
25090         between NFS machines.
25091
25092 2009-10-12  Eric Blake  <ebb9@byu.net>
25093
25094         stat-time-tests: minor cleanups
25095         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25096         * tests/test-stat-time.c (nap): Separate assignment from call.
25097         Suggested by Paolo Bonzini and Bruno Haible.
25098
25099         sys_stat: guarantee struct timespec
25100         * lib/sys_stat.in.h (includes): Always include <time.h>
25101         * modules/sys_stat (Depends-on): Add time.
25102         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25103         mode_t permission values.
25104         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25105         get at subsecond timestamps.
25106
25107 2009-10-10  Eric Blake  <ebb9@byu.net>
25108
25109         futimens: new module
25110         * modules/futimens: New file.
25111         * lib/futimens.c (futimens): Likewise.
25112         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25113         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25114         we can work around Linux bugs.
25115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25116         * modules/sys_stat (Makefile.am): Substitute them.
25117         * lib/sys_stat.in.h (futimens): Declare it.
25118         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25119         * doc/posix-functions/futimens.texi (futimens): Likewise.
25120         * modules/futimens-tests: New test.
25121         * tests/test-futimens.c: Likewise.
25122
25123         utimens: introduce fdutimens
25124         * lib/utimens.h (fdutimens): New prototype.
25125         * lib/utimens.c (gl_futimens): Move guts...
25126         (fdutimens): ...to new interface.
25127         * tests/test-utimens.c (do_fdutimens): Use it.
25128
25129         utimens: add UTIME_NOW and UTIME_OMIT support
25130         * lib/utimens.c (validate_timespec, update_timespec): New helper
25131         functions.
25132         (gl_futimens, lutimens): Use them.
25133         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25134         stdbool, sys_stat.
25135         (Link): Mention resulting library dependency.
25136         * modules/utimecmp (Link): Likewise.
25137         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25138         (Makefile.am): Pick up library dependency.
25139         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25140         definition.
25141         * tests/test-sys_stat.c: Test the definitions.
25142         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25143         * NEWS: Document library dependency.
25144
25145         utimecmp: support symlink timestamps
25146         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25147         hashing when possible.  Use pathconf when available.
25148         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25149         * modules/utimecmp (Depends-on): Add lstat.
25150
25151         utimens: add lutimens interface
25152         * lib/utimens.c (lutimens): New function.
25153         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25154         * lib/utimens.h (lutimens): Declare new interface.
25155         * tests/test-utimens.c (main): Enhance test.
25156         * tests/test-lutimens.h (test_lutimens): New file.
25157         * modules/utimens-tests (Files): Distribute it.
25158         (Depends-on): Add symlink.
25159         (configure.ac): Check for usleep.
25160
25161         utimens: validate futimens usage
25162         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25163         fewer syscalls on failure later on.  Avoid compiler warning on
25164         mingw.
25165         * modules/utimens (Depends-on): Add dup2.
25166
25167         utimens: add test
25168         * modules/utimens-tests: New test.
25169         * tests/test-utimens.h: New file.
25170         * tests/test-futimens.h: Likewise.
25171         * tests/test-utimens.c: Likewise.
25172
25173         doc: mention timestamp portability issues
25174         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25175         instead.
25176         * doc/posix-functions/utime.texi (utime): Likewise.
25177         * doc/posix-functions/utimes.texi (utimes): Likewise.
25178         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25179         instead.
25180         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25181         module.
25182         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25183         Mention weakness with symlink timestamps.
25184         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25185         to utimensat/futimens instead.
25186         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25187
25188         test-dup2: enhance test
25189         * tests/test-dup2.c (main): Also check AT_FDCWD.
25190
25191         test-stat-time: avoid more spurious failures
25192         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25193         xfs; and avoid race if the two timestamps cross quantization edge.
25194
25195         relocatable: prefer 'file system' over 'filesystem'
25196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25197         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25198         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25199         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25200         * lib/relocatable.c (compute_curr_prefix): Likewise.
25201
25202 2009-10-10  Jim Meyering  <meyering@redhat.com>
25203
25204         stat-time-tests: check for the usleep function
25205         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25206
25207 2009-10-10  Bruno Haible  <bruno@clisp.org>
25208
25209         * modules/xnanosleep: Put the Link section after the Include section.
25210
25211 2009-10-09  Eric Blake  <ebb9@byu.net>
25212
25213         dup2: work around FreeBSD 6.1 bug
25214         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25215         * doc/posix-functions/dup2.texi (dup2): Document it.
25216         Reported by Nelson H. F. Beebe and Jim Meyering.
25217
25218         test-stat-time: port to buggy NFS clients
25219         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25220         (test_ctime): Also skip test if mtime and ctime are skewed.
25221
25222         maint: prefer 'file system' over 'filesystem'
25223         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25224         * doc/posix-functions/lstat.texi (lstat): Likewise.
25225         * lib/file-has-acl.c (file_has_acl): Likewise.
25226         * lib/fwriteerror.c [TEST]: Likewise.
25227         * tests/test-areadlink.h (test_areadlink): Likewise.
25228         * tests/test-areadlinkat-with-size.c (main): Likewise.
25229         * tests/test-areadlinkat.c (main): Likewise.
25230         * tests/test-canonicalize-lgpl.c (main): Likewise.
25231         * tests/test-canonicalize.c (main): Likewise.
25232         * tests/test-fstatat.c (main): Likewise.
25233         * tests/test-linkat.c (main): Likewise.
25234         * tests/test-lstat.h (test_lstat_func): Likewise.
25235         * tests/test-mkdir.h (test_mkdir): Likewise.
25236         * tests/test-readlink.h (test_readlink): Likewise.
25237         * tests/test-remove.c (main): Likewise.
25238         * tests/test-rename.h (test_rename): Likewise.
25239         * tests/test-renameat.c (main): Likewise.
25240         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25241         * tests/test-symlink.h (test_symlink): Likewise.
25242         * tests/test-symlinkat.c (main): Likewise.
25243         * tests/test-unlink.h (test_unlink_func): Likewise.
25244         * tests/test-unlinkat.c (main): Likewise.
25245
25246         maint: make realtime library usage explicit
25247         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25248         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25249         * modules/settime (Link): Likewise.
25250         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25251
25252         test-stat-time: speed up execution
25253         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25254         warning on mingw.
25255         (nap): New helper function.
25256         (prepare_test): Use it to reduce sleep time.
25257         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25258         execution.
25259         * modules/stat-time-tests (configure.ac): Check for usleep.
25260
25261 2009-10-09  Jim Meyering  <meyering@redhat.com>
25262
25263         selinux-h: always use getfilecon wrappers
25264         * lib/getfilecon.c: New file.
25265         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25266         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25267         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25268         (fgetfilecon): Provide a stub.
25269         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25270         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25271         file unconditionally.
25272         When <selinux/selinux.h> is found, arrange to use wrappers.
25273         * modules/selinux-h (Files): Add getfilecon.c.
25274         (Makefile.am): Substitute include-next-related bits
25275         into the now-always-generated selinux/selinux.h file.
25276         * doc/glibc-functions/lgetfilecon.texi: New file.
25277         * doc/glibc-functions/fgetfilecon.texi: New file.
25278         * doc/glibc-functions/getfilecon.texi: New file.
25279         * doc/glibc-functions/getfilecon-desc.texi: New file.
25280         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25281         which to pull in the new files.
25282         * MODULES.html.sh (Misc): Add selinux-h.
25283
25284 2009-10-08  Jim Meyering  <meyering@redhat.com>
25285
25286         unistd: fix comment typo
25287         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25288
25289 2009-10-08  Eric Blake  <ebb9@byu.net>
25290
25291         areadlink: use SIZE_MAX consistently
25292         * modules/areadlink (Depends-on): Add stdint.
25293         * modules/areadlink-with-size (Depends-on): Likewise.
25294         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25295         gives NULL; drop sys/types, since unistd gives size_t; and add
25296         stdint for SIZE_MAX.
25297         (SIZE_MAX): Rely on headers.
25298         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25299         and add stdint.
25300         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25301         (SIZE_MAX): Likewise.
25302         (INITIAL_BUF_SIZE): Turn into enum.
25303         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25304
25305 2009-10-08  Jim Meyering  <meyering@redhat.com>
25306
25307         areadlinkat: avoid compilation failure
25308         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25309         Fix typo in comment.
25310
25311 2009-10-07  Eric Blake  <ebb9@byu.net>
25312
25313         areadlinkat-with-size: new module
25314         * modules/areadlinkat-with-size: New module.
25315         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25316         * lib/areadlink.h (areadlinkat): Declare it.
25317         * MODULES.html.sh (File system functions): Mention it.
25318         * modules/areadlinkat-with-size-tests: New test.
25319         * tests/test-areadlinkat-with-size.c: New file.
25320
25321         xreadlinkat: new module
25322         * modules/xreadlinkat: New module.
25323         * lib/xreadlinkat.c (xreadlinkat): New file.
25324         * lib/xreadlink.h (xreadlinkat): Declare it.
25325         * MODULES.html.sh (File system functions): Mention it.
25326
25327         areadlinkat: new module
25328         * lib/at-func.c (FUNC_FAIL): New define.
25329         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25330         * modules/areadlinkat: New module.
25331         * lib/linkat.c (areadlinkat): Move...
25332         * lib/areadlinkat.c (areadlinkat): ...to new file.
25333         * lib/areadlink.h (areadlinkat): Declare it.
25334         * modules/linkat (Depends-on): Add areadlinkat.
25335         * MODULES.html.sh (File system functions): Mention it.
25336         * modules/areadlinkat-tests: New test.
25337         * tests/test-areadlinkat.c: New file.
25338
25339         areadlink, areadlink-with-size: add tests
25340         * modules/areadlink-tests: New test.
25341         * modules/areadlink-with-size-tests: Likewise.
25342         * tests/test-areadlink.h: New file.
25343         * tests/test-areadlink.c: Likewise.
25344         * tests/test-areadlink-with-size.c: Likewise.
25345
25346         maint: minor cleanups
25347         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25348         _UNUSED_PARAMETER_ instead.
25349         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25350         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25351         * modules/linkat-tests (Files): Distribute test-link.h.
25352
25353         openat, utimens: whitespace cleanup
25354         * lib/openat.c: Prefer space throughout, rather than mix of 8
25355         spaces vs. tabs.
25356         * lib/at-func.c: Likewise.
25357         * lib/utimens.c: Likewise.
25358
25359         openat: avoid using wrong fd
25360         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25361         working directory chooses same fd.
25362         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25363
25364         mkdir, mkdirat: fix cygwin 1.5.x bug
25365         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25366         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25367         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25368         bug.
25369         (gl_PREREQ_MKDIR): Delete unused macro.
25370         * modules/mkdir (Files): Track file rename.
25371         (configure.ac): Update macro name.
25372         * modules/openat (Depends-on): Add mkdir.
25373         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25374
25375         mkdir, mkdirat: add tests
25376         * modules/mkdir-tests: New test.
25377         * tests/test-mkdir.h: New file.
25378         * tests/test-mkdir.c: Likewise.
25379         * tests/test-mkdirat.c: Likewise.
25380         * modules/openat-tests (Files): Add new files.
25381         (Makefile.am): Run new test.
25382
25383 2009-10-06  Eric Blake  <ebb9@byu.net>
25384
25385         doc: tweak *at function documentation
25386         * doc/posix-functions/faccessat.texi (faccessat): Mention
25387         known issue with replacement.
25388         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25389         * doc/posix-functions/linkat.texi (linkat): Likewise.
25390         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25391         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25392         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25393         * doc/posix-functions/renameat.texi (renameat): Likewise.
25394         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25395
25396         openat: fix GNU/Hurd bug in unlinkat
25397         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25398         broken.
25399         * doc/posix-functions/unlink.texi (unlink): Document this.
25400         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25401
25402         fdopendir: fix GNU/Hurd bug
25403         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25404         allowing non-directory fds.
25405         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25406         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25407         * modules/dirent (Makefile.am): Substitute it.
25408         * lib/dirent.in.h (fdopendir): Declare replacement.
25409         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25410         * tests/test-fdopendir.c (main): Test something other than
25411         /dev/null, since on Hurd that behaves like a directory.
25412
25413         test-symlink: port to GNU/Hurd
25414         * tests/test-symlink.h (test_symlink): Relax expected errno.
25415
25416         doc: tweak more cygwin information
25417         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25418         now compatible with glibc.
25419         * doc/posix-functions/getopt.texi (getopt): Likewise.
25420
25421         getopt-gnu: add another test
25422         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25423         guarantee behavior relied on by m4.
25424         * tests/test-getopt.c (main): Use it.
25425         * modules/getopt-posix-tests (Depends-on): Add setenv.
25426         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25427
25428         getopt: fix compilation on darwin
25429         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25430         include.
25431         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25432         Reported by Ludovic Courtès.
25433
25434 2009-10-06  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/size_max (Description): Discourage its use.
25437         Reported by Simon Josefsson.
25438
25439 2009-10-06  Jim Meyering  <meyering@redhat.com>
25440
25441         linkat: avoid compilation failure
25442         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25443
25444 2009-10-05  Eric Blake  <ebb9@byu.net>
25445
25446         linkat: support Linux 2.6.17
25447         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25448         linkat on Linux, but allow cache variable override.
25449         * lib/linkat.c (rpl_linkat): Define override.
25450         * modules/linkat (Depends-on): Add symlinkat.
25451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25452         * modules/unistd (Makefile.am): Substitute it.
25453         * lib/unistd.in.h (linkat): Declare replacement.
25454         Reported by Pádraig Brady.
25455
25456         quotearg: port test to systems with C.UTF-8 locale
25457         * tests/test-quotearg.c (struct result_strings): Add another
25458         member, differentiating between C.ASCII and C.UTF-8 handling.
25459         (compare_strings): Add parameter.
25460         (main): Adjust all callers.
25461
25462         getopt: avoid clash with FreeBSD _getopt_internal
25463         * lib/getopt.in.h (_getopt_internal): Override the name.
25464         * lib/getopt_int.h (includes): Pick up any overrides.
25465         Reported by Reuben Thomas.
25466
25467         hash: allow C89 compilation
25468         * lib/hash.c (check_tuning): Move declaration before statement.
25469         Reported by Reuben Thomas.
25470
25471 2009-10-05  Karl Berry  <karl@gnu.org>
25472
25473         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25474
25475 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25476             Bruno Haible  <bruno@clisp.org>
25477
25478         * lib/uname.c (uname): Use a table-driven algorithm to compute
25479         Windows NT versions.
25480
25481 2009-10-04  Bruno Haible  <bruno@clisp.org>
25482
25483         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25484         program_invocation_short_name.
25485         * modules/progname (configure.ac): Test for presence of
25486         program_invocation_short_name.
25487         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25488
25489 2009-10-04  Bruno Haible  <bruno@clisp.org>
25490
25491         * lib/progname.c (set_program_name): Fix comment.
25492         Reported by Jim Meyering.
25493
25494 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25495             Bruno Haible  <bruno@clisp.org>
25496
25497         * lib/uname.c: Include <string.h>.
25498         (uname): Do only one call to GetVersionEx in the common case.
25499
25500 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25501             Bruno Haible  <bruno@clisp.org>
25502
25503         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25504         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25505         (uname): Add support for Windows CE and various non-x86 CPU types.
25506
25507 2009-10-03  Bruno Haible  <bruno@clisp.org>
25508
25509         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25510         invocation to tests/configure.ac.
25511         Reported by Ian Beckwith <ianb@erislabs.net>.
25512
25513 2009-10-02  Eric Blake  <ebb9@byu.net>
25514
25515         fchdir: avoid compiler warning
25516         * lib/fchdir.c (canonicalize_file_name)
25517         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25518
25519         test-open: support mingw errno values
25520         * tests/test-open.h (test_open): Relax test.
25521         * tests/test-fopen.h (test_fopen): Likewise.
25522         * tests/test-openat-safer.c (main): Likewise.
25523
25524         open: fix opening directory on mingw
25525         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25526
25527         test-open: on GNU/Hurd, /dev/null is a directory
25528         * tests/test-fopen.h (main): Rename...
25529         (test_fopen): ...to this.  Use a guaranteed non-directory when
25530         confirming open behavior on trailing slash.
25531         * tests/test-openat-safer.c (main): Likewise.
25532         * tests/test-open.h (main): Likewise....
25533         (test_open): ...to this.
25534         * tests/test-fopen.c (main): Adjust caller.
25535         * tests/test-fopen-safer.c (main): Likewise.
25536         * tests/test-open.c (main): Likewise.
25537         * tests/test-fcntl-safer.c (main): Likewise.
25538         Reported by Samuel Thibault.
25539
25540         rename, fchdir: don't ignore chdir failure
25541         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25542         * lib/rename.c (rpl_rename) [W32]: Likewise.
25543         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25544         an empty destination directory if source cannot be renamed,
25545         although there is still possibility for failure.
25546         * doc/posix-functions/rename.texi (rename): Document the race.
25547         Reported by Jim Meyering.
25548
25549         maint: cleanup whitespace in recent commits
25550         * lib/rename.c (rpl_rename): Remove tabs.
25551         * tests/test-link.h (test_link): Likewise.
25552         * lib/fchdir.c (get_name): Likewise.
25553         Reported by Jim Meyering.
25554
25555 2009-10-02  Ben Pfaff  <blp@gnu.org>
25556
25557         relocatable-prog-wrapper: Add missing dependency on
25558         double-slash-root.
25559         * modules/relocatable-prog-wrapper: Add dependency.
25560         Reported by Ian Beckwith <ianb@erislabs.net>.
25561
25562 2009-10-02  Eric Blake  <ebb9@byu.net>
25563
25564         renameat: fix Solaris bugs
25565         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25566         needed fixing.
25567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25568         * modules/stdio (Makefile.am): Substitute it.
25569         * lib/stdio.in.h (renameat): Declare replacement.
25570         * lib/renameat.c (rpl_renameat): Implement fix.
25571
25572         renameat: new module
25573         * modules/renameat: New file.
25574         * lib/renameat.c (renameat): Likewise.
25575         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25577         * modules/stdio (Makefile.am): Substitute them.
25578         * lib/stdio.in.h (renameat): Declare it.
25579         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25580         * doc/posix-functions/renameat.texi (renameat): Likewise.
25581         * modules/renameat-tests: New test.
25582         * tests/test-renameat.c: Likewise.
25583
25584         rename: fix mingw bugs
25585         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25586         directory overwrite bugs.
25587
25588         rename: fix another cygwin 1.5 bug
25589         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25590         checks.
25591         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25592         unnecessary cygwin workarounds.  Also work around bug with moving
25593         full directory onto an empty one.
25594         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25595
25596         rename-dest-slash: merge into rename module
25597         * modules/rename-dest-slash (Status): Mark obsolete.
25598         (Depends-on): Add rename.
25599         (Files): Let rename do it all.
25600         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25601         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25602         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25603         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25604         * lib/rename.c (rpl_rename): Update comments.
25605
25606         rename: fix cygwin 1.5.x bugs
25607         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25608         * lib/rename.c (rpl_rename): Work around them.
25609         * modules/rename (Depends-on): Add same-inode.
25610
25611         rename: fix Solaris 10 bug
25612         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25613         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25614         was the only bug.
25615
25616         rename: fix Solaris 9 bug
25617         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25618         on non-directory.  Avoid calling exit.
25619         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25620         strdup.
25621         * modules/rename-tests (Depends-on): Drop lstat.
25622         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25623         (gl_PREREQ_RENAME): Delete unused macro.
25624
25625         rename-dest-slash: fix NetBSD bug
25626         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25627         links.
25628         * modules/rename-dest-slash (Depends-on): Add same-inode.
25629
25630         rename-tests: new test, exposes several platform bugs
25631         * modules/rename-tests: New file.
25632         * tests/test-rename.h: Likewise.
25633         * tests/test-rename.c: Likewise.
25634         * doc/posix-functions/rename.texi (rename): Improve documentation,
25635         including bugs that will eventually be fixed in gnulib.
25636
25637 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25638
25639         * lib/uname.c: Include <stdlib.h>
25640         (uname): Assume version info is available.
25641
25642 2009-10-02  Jim Meyering  <meyering@redhat.com>
25643
25644         gnu-web-doc-update: correct --help output
25645         * build-aux/gnu-web-doc-update: Make --help output relevant.
25646
25647         gnu-web-doc-update: add standard options
25648         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25649
25650         gnu-web-doc-update: New module.
25651         Use this script to automatically update the on-line web documentation
25652         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25653         * modules/gnu-web-doc-update: New file, from coreutils.
25654         * build-aux/gnu-web-doc-update: New script.
25655
25656 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25657
25658         link: LoadLibrary is not needed.
25659         * lib/link.c: Use GetModuleHandle.
25660
25661 2009-10-01  Eric Blake  <ebb9@byu.net>
25662
25663         getopt: bump serial number
25664         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25665         change.
25666
25667         tests: tighten link, rmdir, and remove tests
25668         * tests/test-link.h (includes): No need to use <config.h> here.
25669         Clean up if directory hard link was created, otherwise test for
25670         trailing '.'.
25671         * tests/test-linkat.c (main): Simplify.
25672         * tests/test-remove.c (main): Enhance test for trailing '.'.
25673         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25674
25675 2009-10-01  Jim Meyering  <meyering@redhat.com>
25676
25677         maint.mk: requiring "make major" was annoying, for a "minor" release.
25678         What is intended is "stable", to contrast with alpha and beta,
25679         so require "make stable", not "make major".
25680         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25681         (get_tool_versions): Likewise.
25682         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25683
25684 2009-09-30  Ben Pfaff  <blp@gnu.org>
25685
25686         Fix broken build of replacement for Windows tmpfile().
25687         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25688         flags argument added along with the 'mkostemp' module.
25689
25690 2009-09-28  Bruno Haible  <bruno@clisp.org>
25691
25692         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25693         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25694         to 'remove_elt'.
25695         (gl_list_remove): Update.
25696         * lib/gl_list.c (gl_list_remove): Update.
25697         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25698         to 'remove_elt'.
25699         (gl_oset_remove): Update.
25700         * lib/gl_list.c (gl_oset_remove): Update.
25701         Reported by Eric Blake.
25702
25703 2009-09-28  Eric Blake  <ebb9@byu.net>
25704
25705         doc: mention yet more cygwin 1.7 status
25706         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25707         cygwin.
25708         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25709         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25710
25711         argp: fix test failure
25712         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25713         that are not upper-case.  Pass correct range to tolower.
25714
25715 2009-09-27  Jim Meyering  <meyering@redhat.com>
25716
25717         test-yesno: work around sparc-dash here-document infelicity
25718         Without this change, the literal \177 byte in a here document
25719         would make dash 0.5.5.1-3 access uninitialized memory.
25720         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25721         Instead, use a marker, "@", and filter through tr to create the desired
25722         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25723
25724 2009-09-27  Bruno Haible  <bruno@clisp.org>
25725
25726         Disable untested support for new flavours of ACLs on AIX.
25727         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25728         progress.
25729         * lib/set-mode-acl.c (qset_acl): Likewise.
25730
25731 2008-12-07  Bruno Haible  <bruno@clisp.org>
25732
25733         Add support for new flavours of ACLs on AIX. (Untested.)
25734         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25735         (file_has_acl): Add support for newer AIX.
25736         * lib/set-mode-acl.c (qset_acl): Likewise.
25737         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25738         Rainer Tammer <tammer@tammer.net>.
25739
25740 2009-09-26  Eric Blake  <ebb9@byu.net>
25741
25742         argp: fix compilation of getopt
25743         * lib/getopt.in.h (includes): Use different guard than glibc.
25744         Reported by Sergey Poznyakoff.
25745
25746         doc: mention more cygwin 1.7 status
25747         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25748         bug.
25749         * doc/posix-functions/execl.texi (execl): Likewise.
25750         * doc/posix-functions/execle.texi (execle): Likewise.
25751         * doc/posix-functions/execlp.texi (execlp): Likewise.
25752         * doc/posix-functions/execv.texi (execv): Likewise.
25753         * doc/posix-functions/execve.texi (execve): Likewise.
25754         * doc/posix-functions/execvp.texi (execvp): Likewise.
25755         * doc/glibc-functions/canonicalize_file_name.texi
25756         (canonicalize_file_name): Cygwin 1.7 now provides this.
25757         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25758         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25759         on AT_SYMLINK_NOFOLLOW.
25760
25761 2009-09-24  Eric Blake  <ebb9@byu.net>
25762
25763         test-linkat: make test more robust
25764         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25765
25766         getopt: fix inclusion guards for cygwin
25767         * modules/getopt-posix (Depends-on): Add include-next.
25768         (Makefile.am): Substitute more items in replacement header.
25769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25770         <getopt.h>.
25771         * lib/getopt.in.h (includes): Use split inclusion guard, and
25772         prefer <getopt.h> over include <unistd.h> when one is present.
25773         (option): Also override name of 'struct option'.
25774
25775         same-inode: revert prior change; it is not yet ready
25776         * NEWS: Undo mention of this change.
25777         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25778         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25779         * lib/cycle-check.c (cycle_check): Likewise.
25780         * lib/same.c (same_name): Likewise.
25781         * lib/at-func2.c (at_func2): Likewise.
25782
25783 2009-09-23  Eric Blake  <ebb9@byu.net>
25784
25785         linkat: new module
25786         * modules/linkat: New file.
25787         * lib/at-func2.c (at_func2): Likewise.
25788         * lib/linkat.c (linkat): Likewise.
25789         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25790         * lib/openat-priv.h (at_func2): Add declaration.
25791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25792         * modules/unistd (Makefile.am): Substitute them.
25793         * lib/unistd.in.h (linkat): Declare it.
25794         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25795         * doc/posix-functions/linkat.texi (linkat): Likewise.
25796         * doc/posix-functions/link.texi (link): Tweak wording.
25797         * tests/test-link.c (main): Move guts...
25798         * tests/test-link.h (test_link): ...into new file.
25799         * modules/linkat-tests: New test.
25800         * tests/test-linkat.c: Likewise.
25801         * modules/link-tests (Files): Ship new file.
25802         (Depends-on): Add stdbool.
25803
25804         dirname: add library-safe mdir_name
25805         * lib/dirname.h (mdir_name): New prototype.
25806         * lib/dirname.c (dir_name): Move guts...
25807         (mdir_name): ...to new function that avoids xalloc_die.
25808
25809         fchdir: another mingw fix
25810         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25811         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25812         on mingw (where it has not yet been ported), and make it optional
25813         elsewhere.
25814         (_gl_register_fd): Use it.
25815
25816         same-inode: make SAME_INODE tri-state, to port to mingw
25817         * NEWS: Mention this change.
25818         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25819         st_ino always being 0.
25820         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25821         * lib/cycle-check.c (cycle_check): Likewise.
25822         * lib/same.c (same_name): Likewise.
25823
25824         lstat: avoid mingw compilation error
25825         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25826         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25827         lstat ourselves.
25828         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25829         was adequate.
25830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25831         the checks for lstat.
25832         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25833
25834         link: fix test failure on Solaris 9
25835         * lib/link.c (rpl_link): Don't assume link will catch bogus
25836         trailing slash on source.
25837
25838         test-symlinkat: enhance test
25839         * tests/test-readlink.c (main): Move guts...
25840         * tests/test-readlink.h (test_readlink): ...into new file.
25841         * tests/test-symlink.c (main): Move guts...
25842         * tests/test-symlink.h (test_symlink): ...into new file.
25843         * tests/test-symlinkat.c (main): Use new files for further
25844         coverage.
25845         (do_symlink, do_readlink): New helper functions.
25846         * modules/symlink-tests (Files): Ship new file.
25847         (Depends-on): Add stdbool.
25848         * modules/readlink-tests (Files): Ship new file.
25849         (Depends-on): Add stdbool.
25850         * modules/symlinkat-tests (Files): Use new files.
25851
25852 2009-09-23  Eric Blake  <ebb9@byu.net>
25853
25854         readlink: document portability issue with symlink length
25855         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25856         systems have bogus st_size on symlinks, and mention the
25857         areadlink-with-size module.
25858         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25859         * doc/posix-functions/readlink.texi (readlink): Mention the
25860         areadlink module, and ERANGE failure.
25861         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25862         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25863
25864         readlink: fix Solaris 9 bug with trailing slash
25865         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25866         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25867         * doc/posix-functions/readlink.texi (readlink): Document this.
25868         * modules/readlink-tests: New test.
25869         * tests/test-readlink.c: Likewise.
25870
25871         readlink: fix cygwin 1.5.x bug with return type
25872         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25873         * lib/unistd.in.h (readlink): Use ssize_t.
25874         * lib/readlink.c (readlink): Likewise.
25875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25876         * modules/unistd (Makefile.am): Substitute it.
25877         * lib/unistd.in.h (readlink): Declare replacement.
25878         * doc/posix-functions/readlink.texi (readlink): Document this.
25879
25880         symlink: use throughout gnulib
25881         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25882         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25883         symlink is not used.
25884         * modules/symlinkat (Depends-on): Add symlink.
25885         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25886         * modules/canonicalize-tests (Depends-on): Likewise.
25887         * modules/lstat-tests (Depends-on): Likewise.
25888         * modules/openat-tests (Depends-on): Likewise.
25889         * modules/remove-tests (Depends-on): Likewise.
25890         * modules/rmdir-tests (Depends-on): Likewise.
25891         * modules/unlink-tests (Depends-on): Likewise.
25892         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25893         * tests/test-canonicalize.c (symlink): Likewise.
25894         * tests/test-fstatat.c (symlink): Likewise.
25895         * tests/test-lstat.c (symlink): Likewise.
25896         * tests/test-remove.c (symlink): Likewise.
25897         * tests/test-rmdir.c (symlink): Likewise.
25898         * tests/test-unlink.c (symlink): Likewise.
25899         * tests/test-unlinkat.c (symlink): Likewise.
25900
25901         symlink: new module, for Solaris 9 bug
25902         * modules/symlink: New file.
25903         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25904         * lib/symlink.c: Likewise.
25905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25906         * modules/unistd (Makefile.am): Substitute them.
25907         * lib/unistd.in.h (symlink): Declare replacement.
25908         * MODULES.html.sh (File system functions): Mention it.
25909         * doc/posix-functions/symlink.texi (symlink): Likewise.
25910         * modules/symlink-tests: New test.
25911         * tests/test-symlink.c: Likewise.
25912
25913 2009-09-23  Bruno Haible  <bruno@clisp.org>
25914
25915         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25916         when needed.
25917         Test case: gnulib-tool --import --with-tests atexit inttypes.
25918         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25919
25920 2009-09-23  Bruno Haible  <bruno@clisp.org>
25921
25922         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25923         subcommand, not in a subshell.
25924
25925 2009-09-22  Eric Blake  <ebb9@byu.net>
25926
25927         unistd: sort replacement declarations
25928         * lib/unistd.in.h: Sort declarations.
25929
25930         open, openat: minor optimization
25931         * lib/open.c (open): If open succeeded, len is non-zero.
25932         * lib/openat.c (rpl_openat): Likewise.
25933
25934         link-follow: ensure correct result
25935         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25936         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25937         distinguish between possible failures.
25938
25939 2009-09-21  Eric Blake  <ebb9@byu.net>
25940
25941         fts: avoid compiler warning
25942         * lib/fts.c (dirent_inode_sort_may_be_useful)
25943         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25944
25945 2009-09-19  Bruno Haible  <bruno@clisp.org>
25946
25947         * lib/progreloc.c (canonicalize_file_name): New declaration.
25948
25949 2009-09-19  Eric Blake  <ebb9@byu.net>
25950
25951         link: fix quoting
25952         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25953
25954         openat: fix openat bugs on Solaris 9
25955         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25956         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25957         * modules/openat (Depends-on): Add open.
25958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25959         * modules/fcntl-h (Makefile.am): Substitute it.
25960         * lib/fcntl.in.h (openat): Declare replacement.
25961         * doc/posix-functions/openat.texi (openat): Document this.
25962
25963         openat: move fstatat and unlinkat into correct files
25964         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25965         compiled.
25966         * lib/openat.c (fstatat, unlinkat): Move...
25967         * lib/fstatat.c (fstatat): ...into correct files.
25968         * lib/unlinkat.c (unlinkat): Likewise.
25969
25970         openat: fix unlinkat bugs on Solaris 9
25971         * lib/unlinkat.c (unlinkat): New file.
25972         * modules/openat (Depends-on): Add unlink.
25973         (Files): Distribute it.
25974         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25975         trailing slash behavior is broken.
25976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25977         * modules/unistd (Makefile.am): Substitute it.
25978         * lib/unistd.in.h (unlinkat): Declare replacement.
25979         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25980
25981         openat: fix fstatat bugs on Solaris 9
25982         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25983         stat.
25984         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25985
25986         test-unlinkat: enhance test, to expose Solaris 9 bug
25987         * tests/test-unlink.c (main): Factor guts...
25988         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25989         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25990         * tests/test-rmdir.c (main): Adjust caller.
25991         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25992         (unlinker): New helper function.
25993         (rmdirat): Enhance check.
25994         * modules/rmdir-tests (Depends-on): Add stdbool.
25995         * modules/unlink-tests (Depends-on): Likewise.
25996         (Files): Add test-unlink.h.
25997         * modules/openat-tests (Files): Likewise.
25998         (Depends-on): Add unlinkdir.
25999
26000         test-fstatat: new test, to expose Solaris 9 bugs
26001         * tests/test-stat.c (main): Factor guts...
26002         * tests/test-stat.h (test_stat_func): ...into new file.
26003         * tests/test-lstat.c (main): Factor guts...
26004         * tests/test-lstat.h (test_lstat_func): ...into new file.
26005         * tests/test-fstatat.c: New file.
26006         * modules/stat-tests (Files): Add test-stat.h.
26007         * modules/lstat-tests (Files): Add test-lstat.h.
26008         (Depends-on): Add stdbool.
26009         * modules/openat-tests (Depends-on): Add pathmax.
26010         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26011         (Makefile.am): Run new test.
26012
26013         remove: new module, for mingw and Solaris 9 bugs
26014         * modules/remove: New file.
26015         * lib/remove.c: Likewise.
26016         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26018         * modules/stdio (Makefile.am): Use them.
26019         * lib/stdio.in.h (remove): Declare replacement.
26020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26021         * doc/posix-functions/remove.texi (remove): Likewise.
26022         * modules/remove-tests: New test.
26023         * tests/test-remove.c: Likewise.
26024
26025         unlink: new module, for Solaris 9 bug
26026         * modules/unlink: New file.
26027         * lib/unlink.c: Likewise.
26028         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26030         * modules/unistd (Makefile.am): Use them.
26031         * lib/unistd.in.h (stat): Declare replacement.
26032         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26033         * doc/posix-functions/unlink.texi (unlink): Likewise.
26034         * modules/unlink-tests: New test.
26035         * tests/test-unlink.c: Likewise.
26036
26037         lstat: fix Solaris 9 bug
26038         * lib/lstat.c (lstat): Also check for trailing slash on
26039         non-symlink, non-directories.  Use stat module to simplify logic.
26040         * doc/posix-functions/lstat.texi (lstat): Document it.
26041         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26042         (configure.ac): Check for symlink.
26043         * tests/test-lstat.c (main): Add more tests.
26044
26045         stat: add as dependency to other modules
26046         * modules/chown (Depends-on): Add stat.
26047         * modules/euidaccess (Depends-on): Likewise.
26048         * modules/fchdir (Depends-on): Likewise.
26049         * modules/isdir (Depends-on): Likewise.
26050         * modules/link (Depends-on): Likewise.
26051         * modules/lstat (Depends-on): Likewise.
26052         * modules/mkdir-p (Depends-on): Likewise.
26053         * modules/modechange (Depends-on): Likewise.
26054         * modules/open (Depends-on): Likewise.
26055         * modules/readlink (Depends-on): Likewise.
26056         * modules/same (Depends-on): Likewise.
26057
26058         stat: fix Solaris 9 bug
26059         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26060         slash.
26061         * lib/stat.c (rpl_stat): Work around it.
26062         * doc/posix-functions/stat.texi (stat): Update documentation.
26063
26064         stat: new module, for mingw bug
26065         * modules/stat: New file.
26066         * lib/stat.c: Likewise.
26067         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26069         * modules/sys_stat (Makefile.am): Use them.
26070         * lib/sys_stat.in.h (stat): Declare replacement.
26071         * lib/openat.c (fstatat): Deal with lstat and stat being function
26072         macros.
26073         * modules/openat (Depends-on): Add inline.
26074         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26075         * doc/posix-functions/stat.texi (stat): Likewise.
26076         * modules/stat-tests: New test.
26077         * tests/test-stat.c: Likewise.
26078
26079 2009-09-19  Jim Meyering  <meyering@redhat.com>
26080
26081         syntax-check: detect unnecessary inclusion of canonicalize.h
26082         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26083
26084 2009-09-19  Eric Blake  <ebb9@byu.net>
26085
26086         canonicalize-lgpl: adjust clients to use correct header
26087         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26088         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26089         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26090         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26091         * lib/progreloc.c (includes): Likewise.
26092
26093 2009-09-19  Jim Meyering  <meyering@redhat.com>
26094
26095         test-posixtm.c: correct a comment
26096         * tests/test-posixtm.c: Correct first-line comment.
26097         Spotted by Eric Blake.
26098
26099 2009-09-16  Jim Meyering  <meyering@redhat.com>
26100
26101         posixtm-tests: make T const-correct; add a test case
26102         * tests/test-posixtm.c (T): Declare const.
26103         Add a test for -(2^31+1).
26104         Remove useless can-succeed-only-in-2002 test.
26105
26106         posixtm-tests: adjust the sole failing test
26107         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26108         expected output matches what mktime now produces.  Cross-checked via
26109         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26110
26111         posixtm: move #ifdef'd tests into a new module
26112         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26113         * tests/test-posixtm.c: ... this new file.
26114         * modules/posixtm-tests: New module.
26115
26116 2009-09-19  Eric Blake  <ebb9@byu.net>
26117
26118         openat: simplify use of at-func.c
26119         * lib/at-func.c (includes): Include prerequisites here, to
26120         simplify requirements on client files.
26121         * lib/openat-priv.h: Add double-inclusion guard.
26122         * lib/faccessat.c (includes): Simplify.
26123         * lib/fchmodat.c (includes): Likewise.
26124         * lib/fchownat.c (includes): Likewise.
26125         * lib/mkdirat.c (includes): Likewise.
26126         * lib/mkfifoat.c (includes): Likewise.
26127         * lib/symlinkat.c (includes): Likewise.
26128
26129         openat: allow return of fd 0
26130         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26131         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26132         unistd-safer.
26133         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26134         <fcntl.h>; this module does not leak fds.
26135         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26136         must be allowed to return 0, leaving openat_safer to add the
26137         safety.
26138         (openat_permissive): Avoid writing to just-opened fd 2 if
26139         restoring the current directory fails.
26140         * lib/openat-die.c (openat_restore_fail): Add comment.
26141         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26142         (save_cwd): Guarantee safe fd, but without use of open_safer.
26143         * tests/test-openat.c: New test.
26144         * modules/openat-tests (Files, Makefile.am): Distribute and build
26145         new file.
26146
26147         relocatable-prog-wrapper: fix build
26148         * modules/relocatable-prog-wrapper (Files): Update name of
26149         canonicalize m4 file, broken on 2009-09-17.
26150         Reported by emad hajjar <aleppos@hotmail.com>.
26151
26152 2009-09-19  Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26155         * lib/safe-alloc.c: Likewise.
26156         Reported by Ian Beckwith <ianb@erislabs.net>.
26157
26158 2009-09-18  Bruno Haible  <bruno@clisp.org>
26159
26160         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26161         Reported by <erobles@sensacd.com.mx>.
26162
26163 2009-09-17  Eric Blake  <ebb9@byu.net>
26164
26165         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26166         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26167         slashes when checking if last component is missing.
26168         * tests/test-canonicalize.c (main): Test this.
26169
26170         canonicalize, canonicalize-lgpl: honor // if distinct from /
26171         * modules/canonicalize (Files): Add double-slash-root.m4.
26172         * modules/canonicalize-lgpl (Files): Likewise.
26173         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26174         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26175         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26176         fallback definition.
26177         (canonicalize_filename_mode): Use it to protect //.
26178         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26179         (__realpath): Likewise.
26180         * tests/test-canonicalize.c (main): Test this.
26181         * tests/test-canonicalize-lgpl.c (main): Likewise.
26182         * modules/canonicalize-tests (Depends-on): Add same-inode.
26183         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26184
26185         canonicalize-lgpl: fix glibc bug with trailing slash
26186         * m4/canonicalize-lgpl.m4: Move contents...
26187         * m4/canonicalize.m4: ...here.
26188         (gl_CANONICALIZE_LGPL): Factor realpath check...
26189         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26190         glibc 2.3.5 bug, fixed 2005-04-27.
26191         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26192         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26193         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26194         * modules/canonicalize-lgpl (Files): Manage file rename.
26195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26196         * modules/stdlib (Makefile.am): Substitute witness.
26197         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26198         is needed.
26199         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26200         replacement is required.
26201         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26202         * doc/glibc-functions/canonicalize_file_name.texi
26203         (canonicalize_file_name): Document this.
26204         * doc/posix-functions/realpath.texi (realpath): Likewise.
26205
26206         canonicalize-lgpl: reject non-directory with trailing slash
26207         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26208         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26209         catches failures in glibc 2.3.5.
26210         * tests/test-canonicalize.c (main): Likewise.
26211
26212         canonicalize-lgpl: use native realpath if it works
26213         * lib/canonicalize-lgpl.c (realpath): Guard with
26214         FUNC_REALPATH_WORKS.
26215         * lib/stdlib.in.h (realpath): Make declaration optional based on
26216         HAVE_REALPATH.
26217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26218         native realpath works.
26219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26220         * modules/stdlib (Makefile.am): Substitute witness.
26221
26222         canonicalize, canonicalize-lgpl: use <stdlib.h>
26223         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26224         (Include): Mention <stdlib.h>.
26225         (configure.ac): Mention functions we provide.
26226         * modules/canonicalize (configure.ac): Likewise.
26227         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26228         realpath if canonicalize_file_name is missing.
26229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26230         * modules/stdlib (Makefile.am): Substitute witnesses.
26231         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26232         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26233         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26234         * NEWS: Document this.
26235         * doc/glibc-functions/canonicalize_file_name.texi
26236         (canonicalize_file_name): Likewise.
26237         * doc/posix-functions/realpath.texi (realpath): Likewise.
26238         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26239
26240         test-canonicalize: consolidate into single C program
26241         * tests/test-canonicalize.sh: Delete; move setup into...
26242         * tests/test-canonicalize.c (main): ...the program, making it
26243         easier to run in debugger.  Add some tests.
26244         * modules/canonicalize-tests (Files): Remove unused file.
26245         (Depends-on): Add progname.
26246         (configure.ac, Makefile.am): Simplify.
26247
26248         test-canonicalize-lgpl: consolidate into single C program
26249         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26250         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26251         easier to run in debugger.  Add some tests.
26252         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26253         (configure.ac, Makefile.am): Simplify.
26254
26255         canonicalize: avoid resolvepath
26256         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26257         unnecessary checks.
26258         * lib/canonicalize.c (includes): Simplify.
26259         (canonicalize_file_name): Drop resolvepath implementation.
26260         * modules/canonicalize (Depends-on): Drop filenamecat.
26261
26262         canonicalize: don't lose errno
26263         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26264         over calls to free.
26265
26266         canonicalize: simplify errno handling
26267         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26268         assignment.
26269
26270         canonicalize, canonicalize-lgpl: update module dependencies
26271         * modules/canonicalize (Depends-on): Add extensions, lstat,
26272         pathmax, stdlib.
26273         (Files): Drop pathmax.h.
26274         (configure.ac): Adjust macro name.
26275         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26276         lstat, stdlib, sys_stat.
26277         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26278         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26279         extensions.
26280         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26281         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26282         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26283         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26284         declaration, if available.
26285         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26286         we can rely on the readlink module.
26287         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26288         (includes): Use <unistd.h> unconditionally.
26289
26290 2009-09-17  Eric Blake  <ebb9@byu.net>
26291
26292         maint: make Include sections of modules consistent
26293         * modules/alloca: Use only header name; no need to list #include.
26294         * modules/alloca-opt: Likewise.
26295         * modules/arpa_inet: Likewise.
26296         * modules/canon-host: Likewise.
26297         * modules/configmake: Likewise.
26298         * modules/dirent: Likewise.
26299         * modules/eealloc: Likewise.
26300         * modules/environ: Likewise.
26301         * modules/fchdir: Likewise.
26302         * modules/fcntl: Likewise.
26303         * modules/fcntl-h: Likewise.
26304         * modules/gethrxtime: Likewise.
26305         * modules/gettime: Likewise.
26306         * modules/ignore-value: Likewise.
26307         * modules/inet_ntop: Likewise.
26308         * modules/inet_pton: Likewise.
26309         * modules/inttypes: Likewise.
26310         * modules/isnand-nolibm: Likewise.
26311         * modules/isnanf-nolibm: Likewise.
26312         * modules/mbchar: Likewise.
26313         * modules/mbfile: Likewise.
26314         * modules/mbiter: Likewise.
26315         * modules/mbuiter: Likewise.
26316         * modules/netdb: Likewise.
26317         * modules/netinet_in: Likewise.
26318         * modules/nproc: Likewise.
26319         * modules/pagealign_alloc: Likewise.
26320         * modules/poll: Likewise.
26321         * modules/printf-frexp: Likewise.
26322         * modules/pthread: Likewise.
26323         * modules/putenv: Likewise.
26324         * modules/random_r: Likewise.
26325         * modules/relocatable-prog: Likewise.
26326         * modules/search: Likewise.
26327         * modules/select: Likewise.
26328         * modules/selinux-h: Likewise.
26329         * modules/settime: Likewise.
26330         * modules/signal: Likewise.
26331         * modules/size_max: Likewise.
26332         * modules/socklen: Likewise.
26333         * modules/ssize_t: Likewise.
26334         * modules/stdarg: Likewise.
26335         * modules/stdbool: Likewise.
26336         * modules/stddef: Likewise.
26337         * modules/stdint: Likewise.
26338         * modules/stdio: Likewise.
26339         * modules/stdlib: Likewise.
26340         * modules/string: Likewise.
26341         * modules/strings: Likewise.
26342         * modules/sys_file: Likewise.
26343         * modules/sys_ioctl: Likewise.
26344         * modules/sys_select: Likewise.
26345         * modules/sys_socket: Likewise.
26346         * modules/sys_stat: Likewise.
26347         * modules/sys_time: Likewise.
26348         * modules/sys_times: Likewise.
26349         * modules/sys_utsname: Likewise.
26350         * modules/sys_wait: Likewise.
26351         * modules/sysexits: Likewise.
26352         * modules/time: Likewise.
26353         * modules/times: Likewise.
26354         * modules/tmpfile: Likewise.
26355         * modules/trim: Likewise.
26356         * modules/unistd: Likewise.
26357         * modules/wchar: Likewise.
26358         * modules/wctype: Likewise.
26359
26360 2009-09-17  Bruno Haible  <bruno@clisp.org>
26361
26362         Make getdate.y compile on QNX and NetBSD 5 / i386.
26363         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26364         TIME_T_FITS_IN_LONG_INT.
26365         * lib/getdate.y (long_time_t): New type.
26366         (relative_time): Change type of 'seconds' field to long_time_t.
26367         (get_date): Update types of local variables. Check against overflow
26368         during conversion from long_time_t to time_t.
26369         Reported by Matt Kraai <kraai@ftbfs.org>
26370         and Hasso Tepper <hasso@netbsd.org>.
26371
26372 2009-09-17  Bruno Haible  <bruno@clisp.org>
26373
26374         * modules/COPYING: Update copyright years.
26375         * modules/README: Likeiwse.
26376         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26377         Reported by Ian Beckwith <ianb@erislabs.net>.
26378
26379 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26380
26381         * users.txt: Update references for gnuit package.
26382
26383 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26384
26385         * m4/getdelim.m4: Fix typo in copyright line.
26386
26387 2009-09-17  Bruno Haible  <bruno@clisp.org>
26388
26389         * lib/atoll.c: Use the standard header with GPL copyright.
26390         * lib/argz.in.h: Likewise.
26391         * lib/glob.c: Likewise.
26392         * lib/glob-libc.h: Likewise.
26393         * lib/random_r.c: Likewise.
26394         * lib/siglist.h: Likewise.
26395         * lib/strsignal.c: Likewise.
26396         Reported by Ian Beckwith <ianb@erislabs.net>.
26397
26398 2009-09-17  Eric Blake  <ebb9@byu.net>
26399
26400         rmdir: ensure correct dependency order
26401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26402
26403 2009-09-17  Bruno Haible  <bruno@clisp.org>
26404
26405         Disable assertion that fails on NetBSD 5 / i386.
26406         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26407         Reported by Sam Steingold <sds@gnu.org>
26408         and Hasso Tepper <hasso@netbsd.org>.
26409
26410 2009-09-16  Eric Blake  <ebb9@byu.net>
26411
26412         unlinkdir: port to mingw
26413         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26414         on which no one can unlink a directory.
26415
26416         stdlib: sort witness names
26417         * modules/stdlib (Makefile.am): Sort replacements.
26418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26419         * lib/stdlib.in.h: Likewise.
26420
26421         parse-duration-tests: avoid link failure
26422         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26423         LIBINTL.
26424         Reported by Tom G. Christensen.
26425
26426         openat-tests: ensure unlinkat behaves like rmdir
26427         * tests/test-rmdir.c (main): Factor guts...
26428         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26429         * modules/rmdir-tests (Files): Ship new file.
26430         * modules/openat-tests: New test.
26431         * tests/test-unlinkat.c: Likewise.
26432
26433         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26434         * modules/rmdir-errno (Status, Notice): Now obsolete.
26435
26436         rmdir: work around cygwin 1.5.x and mingw bugs
26437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26438         * lib/rmdir.c (rmdir): Work around it.
26439         * modules/rmdir (Status, Notice): No longer obsolete.
26440         (Files): Add dos.m4.
26441         (Depends-on): Add unistd.
26442         (configure.ac): Set witnesses.
26443         (License): Relax to LGPLv2+.
26444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26445         * modules/unistd (Makefile.am): Substitute witnesses.
26446         * lib/unistd.in.h (rmdir): Declare replacement.
26447         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26448         * modules/rmdir-tests: New tests.
26449         * tests/test-rmdir.c: Likewise.
26450
26451 2009-09-15  Eric Blake  <ebb9@byu.net>
26452
26453         fchdir: improve use of replacement functions
26454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26456         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26457         REPLACE_CLOSEDIR.
26458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26459         * modules/sys_stat (Makefile.am): Substitute correct witness.
26460         * modules/dirent (Makefile.am): Likewise.
26461         * modules/unistd (Makefile.am): Likewise.
26462         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26463         * lib/unistd.in.h (dup): Likewise.
26464         * lib/sys_stat.in.h (fstat): Likewise.
26465
26466         maint: ignore gnulib-tool temp files
26467         * .gitignore: Ignore files created during gnulib-tool --test.
26468
26469 2009-09-13  Jim Meyering  <meyering@redhat.com>
26470
26471         posixtm: don't reject a time that specify "60" as the number of seconds
26472         * lib/posixtm.c (posixtime): The code to reject invalid dates
26473         would also reject a time specified with the .60 suffix.
26474         But POSIX allows that, in order to accommodate leap seconds.
26475         So don't reject it.
26476         (main): Adjust tests accordingly.
26477         * modules/posixtm (Depends-on): Add stpcpy.
26478
26479 2009-09-11  Jim Meyering  <meyering@redhat.com>
26480
26481         announce-gen: include [$release_type] in emitted Subject:
26482         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26483         e.g., [stable] in the emitted Subject: line.
26484
26485 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26486
26487         Remove obsolete macros from several modules.
26488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26489         obsolete Autoconf macros with their modern counterparts.
26490         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26491         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26493         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26494         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26495         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26497         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26498         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26499         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26500         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26502         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26503         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26504         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26505         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26506         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26507         * m4/time_r.m4 (gl_TIME_R): Likewise.
26508         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26509         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26510         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26511
26512         Fix copyright header in build-aux scripts.
26513         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26514         recommendation.
26515         * build-aux/ncftpput-ftp: Likewise.
26516         * build-aux/update-copyright: Likewise.
26517
26518 2009-09-09  Eric Blake  <ebb9@byu.net>
26519
26520         test-link: allow Linux choice of errno
26521         * tests/test-link.c (main): Relax test for alternate error.
26522
26523         strndup: fix improper m4 caching
26524         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26525         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26526         (gl_PREREQ_STRNDUP): Delete.
26527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26528         * modules/string (Makefile.am): Substitute it.
26529         * lib/string.in.h (strndup): Modernize prototype.
26530
26531         getcwd: port to mingw
26532         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26533         different from the POSIX assumptions made throughout the getcwd
26534         module; fortunately, the mingw getcwd does not need replacement.
26535         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26536         * modules/getcwd-tests: New test.
26537         * tests/test-getcwd.c: Likewise.
26538
26539         link: fix platform bugs
26540         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26541         * lib/link.c (link): Work around them.  Fix related mingw bug.
26542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26543         * modules/unistd (Makefile.am): Substitute it.
26544         * lib/unistd.in.h (link): Declare replacement.
26545         * doc/posix-functions/link.texi (link): Document this.
26546         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26547
26548         test-link: consolidate into single C program, test more cases
26549         * tests/test-link.sh: Delete.
26550         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26551         at least Cygwin and Solaris.
26552         * modules/link-tests (Files): Remove unused file.
26553         (Depends-on): Add errno, sys_stat.
26554         (Makefile.am): Simplify.
26555
26556 2009-09-08  Bruno Haible  <bruno@clisp.org>
26557
26558         Work around towlower, towupper bug on mingw.
26559         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26560         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26561         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26562         * doc/posix-functions/towupper.texi: Likewise.
26563         Reported by Eric Blake.
26564
26565 2009-09-08  Jim Meyering  <meyering@redhat.com>
26566
26567         build: don't try to run autoheader if we don't use it
26568         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26569         is not used in configure.ac.
26570
26571 2009-09-08  Eric Blake  <ebb9@byu.net>
26572
26573         euidaccess: fix compilation error
26574         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26575
26576         rawmemchr: relax license
26577         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26578         okay.
26579         Reported by Jim Meyering.
26580
26581         mkfifoat: new module
26582         * modules/mkfifoat: New file.
26583         * lib/mkfifoat.c: Likewise.
26584         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26586         * modules/sys_stat (Makefile.am): Use them.
26587         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26588         * MODULES.html.sh (File system functions): Mention module.
26589         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26590         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26591         * modules/mkfifoat-tests: New test.
26592         * tests/test-mkfifoat.c: Likewise.
26593
26594         strchrnul: relax license
26595         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26596         okay.
26597         Reported by Jim Meyering.
26598
26599 2009-09-08  Eric Blake  <ebb9@byu.net>
26600
26601         fstatat: fix compilation on Solaris
26602         * lib/fstatat.c (includes): Add fcntl.h.
26603         Reported by Pádraig Brady.
26604
26605 2009-09-07  Eric Blake  <ebb9@byu.net>
26606
26607         rename: modernize replacement
26608         * modules/rename (Depends-on): Add stdio.
26609         (configure.ac): Declare witness.
26610         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26611         stdio take care of replacement.
26612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26613         * modules/stdio (Makefile.am): Substitute them.
26614         * lib/stdio.in.h (rename): Declare replacement.
26615         * lib/rename.c (includes): Allow cross-compilation to non-windows
26616         machines.
26617         * doc/posix-functions/rename.texi (rename): Improve
26618         documentation.
26619
26620         stdio: sort witness names
26621         * modules/stdio (Makefile.am): Sort replacements.
26622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26623         * lib/stdio.in.h: Likewise.
26624
26625         getcwd: minor cleanups
26626         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26627         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26628
26629         openat: provide more convenience names
26630         * modules/faccessat (configure.ac): Add C witness.
26631         * lib/unistd.in.h (readlinkat): Fix typo.
26632         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26633         convenience wrappers.
26634         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26635         wrappers in syntax checks.
26636
26637 2009-09-06  Eric Blake  <ebb9@byu.net>
26638
26639         doc: fix comments in recent patches
26640         * lib/faccessat.c: Mention correct function.
26641         * lib/fchmodat.c: Likewise.
26642         * lib/fchownat.c: Likewise.
26643         * lib/symlinkat.c: Likewise.
26644         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26645         constants.
26646
26647         faccessat, symlinkat: continue cleanup of previous patch
26648         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26649         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26650         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26652         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26653         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26654         set.
26655
26656 2009-09-06  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26659         (fstatat): Declare if GNULIB_FSTATAT is set.
26660         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26661         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26662         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26663         * modules/fcntl-h (Files): Remove m4/openat.m4.
26664         * modules/sys_stat (Files): Remove m4/openat.m4.
26665         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26666         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26667         * modules/unistd (Files): Remove m4/openat.m4.
26668         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26669         GNULIB_OPENAT.
26670         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26671         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26673         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26674         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26675         gl_OPENAT_DEFAULTS.
26676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26677         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26678         Don't require gl_OPENAT_DEFAULTS.
26679         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26680         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26681         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26682         (gl_OPENAT_DEFAULTS): Remove macro.
26683
26684 2009-09-06  Bruno Haible  <bruno@clisp.org>
26685
26686         * modules/openat (configure.ac): Remove unneeded witness.
26687
26688 2009-09-06  Bruno Haible  <bruno@clisp.org>
26689
26690         Set errno to ENOSYS when a function is entirely unsupported.
26691         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26692         EOPNOTSUPP.
26693         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26694         * modules/chown (Depends-on): Remove errno.
26695
26696 2009-09-06  Bruno Haible  <bruno@clisp.org>
26697
26698         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26699
26700 2009-09-06  Bruno Haible  <bruno@clisp.org>
26701
26702         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26703
26704 2009-09-06  Ben Pfaff  <blp@gnu.org>
26705             Bruno Haible  <bruno@clisp.org>
26706
26707         Work around a glibc bug in strtok_r.
26708         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26709         Undefine if UNDEFINE_STRTOK_R is set.
26710         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26712         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26713         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26714         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26715         UNDEFINE_STRTOK_R.
26716         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26717
26718 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26719
26720         exclude: minor fix
26721         * lib/exclude.c: Include wctype.h
26722
26723 2009-09-06  Akim Demaille  <demaille@gostai.com>
26724
26725         bootstrap: improve error message
26726         * build-aux/bootstrap (find_tool): Upon failure, report the list
26727         of candidates.
26728         Honor the initial value of the envvar.
26729
26730 2009-09-05  Eric Blake  <ebb9@byu.net>
26731
26732         symlinkat: new module
26733         * modules/symlinkat: New file.
26734         * lib/symlinkat.c: Likewise.
26735         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26737         * modules/unistd (Makefile.am): Use them.
26738         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26739         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26740         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26741         * MODULES.html.sh (File system functions): Mention module.
26742         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26743         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26744         * modules/symlinkat-tests: New test.
26745         * tests/test-symlinkat.c: Likewise.
26746
26747         test-openat-safer: add more checks
26748         * tests/test-openat-safer.c (main): Check more code paths.
26749
26750 2009-09-05  Jim Meyering  <meyering@redhat.com>
26751
26752         syntax-check: detect unnecessary inclusion of openat.h
26753         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26754
26755 2009-09-05  Bruno Haible  <bruno@clisp.org>
26756
26757         Support towlower, towupper.
26758         * doc/posix-functions/towlower.texi: Mention module wctype.
26759         * doc/posix-functions/towupper.texi: Likewise.
26760         * lib/wctype.in.h (towlower, towupper): New functions.
26761         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26762         (ASSERT): New macro.
26763         (e): New variable.
26764         (main): Test also towlower, towupper. Test WEOF argument.
26765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26766
26767 2009-09-05  Bruno Haible  <bruno@clisp.org>
26768
26769         Fix conversion behaviour when the input is invalid.
26770         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26771         mark occurring in first pass of indirect conversion.
26772         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26773         input.
26774         Found by clang's static analyzer.
26775
26776 2009-09-05  Bruno Haible  <bruno@clisp.org>
26777
26778         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26779         where direct conversion is possible.
26780
26781 2009-09-04  Eric Blake  <ebb9@byu.net>
26782
26783         openat: fail with ENOENT on empty name
26784         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26785         buffer.
26786
26787         link-follow: fix logic bug in prior patch
26788         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26789         reversed sense of yes and no in prior patch.  Avoid confusing
26790         compilation failure with desired semantics.
26791
26792         link-follow: accomodate mingw and cross-compilation
26793         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26794         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26795         cross-compilation results to -1, to make linkat easier to
26796         implement when cross-compiling.  Trivially support mingw.
26797         * modules/link-follow (configure.ac): Call new name.
26798         * NEWS: Mention this.
26799
26800 2009-09-03  Eric Blake  <ebb9@byu.net>
26801
26802         faccessat: compile replacement
26803         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26804         needed.
26805
26806         fts: fix compilation error
26807         * lib/fts.c (includes): Re-add "openat.h", for
26808         openat_needs_fchdir.
26809
26810         faccessat: new module
26811         * modules/faccessat: New file.
26812         * lib/faccessat.c: Likewise.
26813         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26815         * modules/unistd (Makefile.am): Use it.
26816         * lib/unistd.in.h (faccessat): Declare it.
26817         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26818         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26819         * MODULES.html.sh (File system functions): Mention it.
26820         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26821         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26822
26823         euidaccess: prefer POSIX over non-standard implementation
26824         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26825         * lib/euidaccess.c (euidaccess): Use it if available.
26826
26827         openat: make template easier to use
26828         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26829         AT_FUNC_F2 to be undefined.
26830         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26831         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26832         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26833         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26834         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26835         Likewise.
26836         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26837         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26838         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26839         Likewise.
26840
26841         openat: declare in POSIX headers
26842         * NEWS: Mention this.
26843         * modules/openat (configure.ac): Declare witnesses.
26844         (Depends-on): Add fcntl-h, sys_stat, unistd.
26845         (Include): Mention correct headers.
26846         * modules/fcntl-h (Depends-on): Add link-warning.
26847         (Files): Add openat.m4.
26848         (Makefile.am): Substitute witnesses.
26849         * modules/sys_stat (Files, Makefile.am): Likewise.
26850         * modules/unistd (Files, Makefile.am): Likewise.
26851         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26852         (gl_OPENAT_DEFAULTS): New macro.
26853         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26856         (SYS_STAT_H): Remove unused variable.
26857         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26858         * lib/fcntl--.h (includes): Remove unneeded header.
26859         * lib/openat-safer.c (includes): Likewise.
26860         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26861         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26862         appropriate headers.
26863         (__OPENAT_PREFIX): Delete.
26864         * lib/fcntl.in.h (openat): Provide declaration.
26865         (AT_FDCWD): Fix Solaris bug.
26866         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26867         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26868         * lib/fchmodat.c (includes):  Adjust to find declaration.
26869         * lib/fchownat.c (includes): Likewise.
26870         * lib/mkdirat.c (includes): Likewise.
26871         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26872         still visible.
26873
26874 2009-09-02  Eric Blake  <ebb9@byu.net>
26875
26876         errno: use consistently
26877         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26878         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26879         * lib/canonicalize.c (ELOOP): Likewise.
26880         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26881         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26882         * lib/lchown.c (EOPNOTSUPP): Likewise.
26883         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26884         * lib/savewd.c (ESTALE): Likewise.
26885         * lib/settime.c (ENOSYS): Likewise.
26886         * lib/utimens.c (ENOSYS): Likewise.
26887         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26888         * lib/chdir-safer.c (ELOOP): Likewise.
26889         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26890         * modules/c-stack (Depends-on): Add errno.
26891         * modules/canonicalize (Depends-on): Likewise.
26892         * modules/chdir-safer (Depends-on): Likewise.
26893         * modules/fdopendir (Depends-on): Likewise.
26894         * modules/inet_ntop (Depends-on): Likewise.
26895         * modules/inet_pton (Depends-on): Likewise.
26896         * modules/lchown (Depends-on): Likewise.
26897         * modules/openat (Depends-on): Likewise.
26898         * modules/savewd (Depends-on): Likewise.
26899         * modules/settime (Depends-on): Likewise.
26900         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26901
26902         fts: avoid leaking fds
26903         * modules/fts (Depends-on): Add cloexec.
26904         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26905         flag.
26906
26907         fts: make directory fds more robust
26908         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26909         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26910
26911         backupfile, chdir-long, fts, savedir: make safer
26912         * lib/backupfile.c (includes): Use "dirent--.h", since
26913         numbered_backup can write to stderr during readdir.
26914         * lib/savedir.c (includes): Likewise.
26915         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26916         emulation can write to stderr on failure.
26917         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26918         * lib/getcwd.c: Document why opendir_safer is unused.
26919         * lib/glob.c: Likewise.
26920         * lib/scandir.c: Likewise.
26921         * lib/openat-proc.c: Likewise, for open_safer.
26922         * modules/backupfile (Depends-on): Add dirent-safer.
26923         * modules/savedir (Depends-on): Likewise.
26924         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26925         * modules/chdir-long (Depends-on): Add openat-safer.
26926
26927         openat-safer: new module
26928         * modules/openat-safer: New file.
26929         * lib/openat-safer.c: Likewise.
26930         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26931         * lib/fcntl-safer.h (openat_safer): Declare.
26932         * lib/fcntl--.h (openat): Override.
26933         * MODULES.html.sh (File descriptor based I/O): Mention it.
26934         * lib/openat.h: Add double-inclusion guards.
26935         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26936         "fcntl--.h", so we can implement openat.
26937         * modules/openat-safer-tests: New test.
26938         * tests/test-openat-safer.c: New file.
26939
26940         dirent-safer: new module
26941         * modules/dirent-safer: New file.
26942         * lib/dirent--.h: Likewise.
26943         * lib/dirent-safer.h: Likewise.
26944         * lib/opendir-safer.c: Likewise.
26945         * m4/dirent-safer.m4: Likewise.
26946         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26947         * modules/dirent-safer-tests: New test.
26948         * tests/test-dirent-safer.c: New file.
26949         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26950
26951         fdopendir: optimize on mingw
26952         * lib/unistd.in.h (_gl_directory_name): New prototype.
26953         * lib/fchdir.c (_gl_directory_name): Implement it.
26954         (fchdir): Use it to simplify implementation.
26955         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26956         fchdir, when available, to avoid calling [f]chdir().
26957
26958         fdopendir: split into its own module
26959         * lib/openat.c (fdopendir): Move...
26960         * lib/fdopendir.c: ...into new file.
26961         * modules/fdopendir: New module.
26962         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26963         * modules/openat (Depends-on): Add fdopendir.
26964         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26965         fdopendir here.
26966         * modules/savedir (Depends-on): Only need fdopendir, not full
26967         openat.
26968         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26969         * lib/openat.h (fdopendir): Drop prototype.
26970         * lib/dirent.in.h (fdopendir): Provide prototype.
26971         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26972         * modules/dirent (Makefile.am): Substitute them.
26973         * MODULES.html.sh (File system functions): Mention it.
26974         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26975         * modules/fdopendir-tests: New file.
26976         * tests/test-fdopendir.c: Likewise.
26977
26978         fchdir: use more consistent macro convention
26979         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26980         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26981         REPLACE_FCHDIR, rather than relying on config.h macros.
26982         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26983         inside a single make-time REPLACE_FCHDIR block, rather than using
26984         the config.h FCHDIR_REPLACEMENT.
26985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26986         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26987         Manage fstat replacement.
26988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26989         REPLACE_FCHDIR.
26990         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26991         (Makefile.am): Substitute REPLACE_FCHDIR.
26992         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26993         FCHDIR_REPLACEMENT.
26994         * lib/dup-safer.c (dup_safer): Likewise.
26995         * lib/dup2.c (rpl_dup2): Likewise.
26996         * lib/dup3.c (rpl_dup3): Likewise.
26997         * lib/open.c (rpl_open): Likewise.
26998
26999         fchdir: simplify error handling, and support dup3
27000         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27001         stdbool, malloc-posix, realloc-posix.
27002         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27003         (ensure_dirs_slot): Return false on allocation failure.
27004         (rpl_dup2): Delete.
27005         (_gl_register_dup): New function.
27006         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27007         (_gl_register_fd): Close fd on allocation failure.
27008         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27009         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27010         prototype.
27011         (rpl_dup2_fchdir): Delete prototype.
27012         * lib/open.c (open): Update caller.
27013         * lib/dup2.c (dup2): Track fchdir metadata.
27014         * lib/dup3.c (dup3): Likewise.
27015         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27017
27018 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27019
27020         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27021         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27022         don't pass arguments to AC_OUTPUT.
27023
27024 2009-09-02  Bruno Haible  <bruno@clisp.org>
27025
27026         * modules/mkdtemp (License): Relicense under LGPLv2+.
27027         Reported by Paolo Bonzini.
27028
27029 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27030
27031         Replace uses of obsolete autoconf macros in Jim's modules.
27032         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27033         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27034         can evoke a warning from autoconf when run with -Wobsolete
27035         enabled.  They were declared obsolete for good reasons (see
27036         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27037         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27038         should not continue using the deprecated macros.
27039         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27040         obsolete Autoconf macros with modern counterparts.
27041         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27042         * m4/dos.m4 (gl_AC_DOS): Likewise.
27043         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27045         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27046         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27047         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27049         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27050         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27051         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27052         Likewise.
27053         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27054         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27055         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27056         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27057         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27058         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27059
27060 2009-09-01  Eric Blake  <ebb9@byu.net>
27061
27062         fchdir: fix off-by-one bug in previous patch
27063         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27064         (_gl_unregister_fd): Delete useless if.
27065
27066 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27067
27068         maint.mk: sort the list of syntax-check rules
27069         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27070         easier to get a sense of progress when the rules are run sequentially
27071         and take a long time.
27072
27073 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27074
27075         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27076         * modules/netinet_in: Likewise.
27077         * modules/sys_file: Likewise.
27078         * modules/sys_ioctl: Likewise.
27079         * modules/sys_select: Likewise.
27080         * modules/sys_socket: Likewise.
27081         * modules/sys_stat: Likewise.
27082         * modules/sys_time: Likewise.
27083         * modules/sys_times: Likewise.
27084         * modules/sys_utsname: Likewise.
27085         * modules/sys_wait: Likewise.
27086
27087 2009-09-01  Jim Meyering  <meyering@redhat.com>
27088
27089         fts: help ensure that return values are not ignored
27090         * lib/fts_.h (__GNUC_PREREQ): Define.
27091         (__attribute_warn_unused_result__): Define.
27092         (fts_children, fts_close, fts_open, fts_read): Declare with
27093         __attribute_warn_unused_result__.
27094
27095         fts: fts_close now fails also when closing a dir file descriptor fails
27096         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27097         and propagate to caller, along with errno.
27098
27099         announce-gen: correct formatting in --help output
27100         * build-aux/announce-gen (usage): Move the one-line description in
27101         --help output "up", to where it belongs, just after Usage:.
27102
27103 2009-08-31  Eric Blake  <ebb9@byu.net>
27104
27105         fchdir: port to mingw
27106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27107         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27108         opened, then use a substitute.
27109         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27110         replacement.
27111         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27112         (_gl_register_fd): No need to check stat if open already filters
27113         all directories.
27114         (fchdir): Fix error condition to match POSIX.
27115         * modules/fchdir (Depends-on): Add sys_stat.
27116         * doc/posix-functions/open.texi (open): Document the limitation.
27117         * modules/fchdir-tests: New file.
27118         * tests/test-fchdir.c: Likewise.
27119
27120         canonicalize: allow cross-testing from cygwin to mingw
27121         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27122         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27123         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27124         Likewise.
27125         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27126         target does not support symlinks.
27127         * tests/test-canonicalize-lgpl.sh: Likewise.
27128
27129         chown: avoid compilation warning on mingw
27130         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27131         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27132         mingw.
27133         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27134         * modules/chown (Depends-on): Add errno.
27135
27136 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27137
27138         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27139         command.
27140
27141 2009-08-31  Jim Meyering  <meyering@redhat.com>
27142
27143         canonicalize: remove useless initialization
27144         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27145         initialization of local, "end".
27146
27147 2009-08-30  Bruno Haible  <bruno@clisp.org>
27148
27149         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27150         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27151         ENOSYS.
27152
27153 2009-08-30  Bruno Haible  <bruno@clisp.org>
27154
27155         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27156         /usr/xpg4/bin/tr when it exists.
27157         * tests/test-pipe-filter-gi1.sh: Likewise.
27158
27159 2009-08-30  Bruno Haible  <bruno@clisp.org>
27160
27161         Work around deficient /usr/bin/id program on Solaris.
27162         * tests/test-file-has-acl.sh (ID): New variable.
27163         * tests/test-set-mode-acl.sh (ID): Likewise.
27164         * tests/test-copy-acl.sh (ID): Likewise.
27165         * tests/test-copy-file.sh (ID): Likewise.
27166
27167 2009-08-30  Bruno Haible  <bruno@clisp.org>
27168
27169         New module 'xstriconveh'.
27170         * lib/xstriconveh.h: New file.
27171         * lib/xstriconveh.c: New file.
27172         * modules/xstriconveh: New file.
27173
27174 2009-08-30  Bruno Haible  <bruno@clisp.org>
27175
27176         Make it easier to use mem_cd_iconveh.
27177         * lib/striconveh.h (iconveh_t): New type.
27178         (iconveh_open, iconveh_close): New declarations.
27179         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27180         with a single 'const iconveh_t *' argument.
27181         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27182         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27183         with a single 'const iconveh_t *' argument.
27184         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27185         * tests/test-striconveh.c (main): Update.
27186         * NEWS: Mention the change.
27187
27188 2009-08-30  Bruno Haible  <bruno@clisp.org>
27189
27190         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27191         problem.
27192
27193 2009-08-30  Bruno Haible  <bruno@clisp.org>
27194
27195         Work around iconv_open problem on Solaris.
27196         * lib/iconv_open-solaris.gperf: New file.
27197         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27198         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27199         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27200         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27201         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27202         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27203
27204 2009-08-29  Jim Meyering  <meyering@redhat.com>
27205
27206         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27207         * top/maint.mk (cvs-check): Remove target; it was just an alias
27208         to the better-named vc-diff-check.
27209         (maintainer-distcheck): Remove rule.  It was used only from
27210         the (alpha/beta/major) target, and all of its commands but one
27211         were coreutils-specific.
27212         (vc-dist): Remove rule.
27213         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27214         Run vc-diff-check, not vc-dist.
27215         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27216
27217 2009-08-27  Bruno Haible  <bruno@clisp.org>
27218
27219         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27220         of 0.
27221
27222 2009-08-27  Bruno Haible  <bruno@clisp.org>
27223
27224         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27225         compilers.
27226         * doc/func.texi: Document the SunPRO C bug.
27227
27228 2009-08-27  Bruno Haible  <bruno@clisp.org>
27229
27230         Fix link error on Solaris.
27231         * tests/test-parse-duration.c (xstrdup): Remove function.
27232
27233 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27234
27235         ignore-value: handle pointer types, too
27236         * lib/ignore-value.h (__attribute__): Remove definition.
27237         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27238         of a more concise and more-often effective "(void) i" statement.
27239         (ignore_ptr): New function to suppress warnings from functions that
27240         return pointers, and to make it explicit that one function doesn't
27241         handle all cases.
27242
27243 2009-08-25  Bruno Haible  <bruno@clisp.org>
27244
27245         dup2: work around a Linux bug.
27246         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27247         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27248         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27249         Reported by Simon Josefsson.
27250
27251 2009-08-25  Jim Meyering  <meyering@redhat.com>
27252
27253         libguestfs uses gnulib
27254         * users.txt: Add libguestfs.
27255
27256 2009-08-24  Eric Blake  <ebb9@byu.net>
27257
27258         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27259         * lib/pipe2.c (includes): Add binary-io.h.
27260         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27261
27262 2009-08-24  Bruno Haible  <bruno@clisp.org>
27263
27264         Tolerate declared but missing accept4 syscall.
27265         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27266         available.
27267         * lib/sys_socket.in.h (accept4): If the function is already present,
27268         override it.
27269         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27270         * modules/accept4 (Makefile.am): Compile accept4.c always.
27271         Reported by Paolo Bonzini and Eric Blake.
27272
27273 2009-08-23  Bruno Haible  <bruno@clisp.org>
27274
27275         New module 'accept4'.
27276         * lib/sys_socket.in.h (accept4): New declaration.
27277         * lib/accept4.c: New file.
27278         * m4/accept4.m4: New file.
27279         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27280         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27281         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27282         HAVE_ACCEPT4.
27283         * modules/accept4: New file.
27284         * doc/glibc-functions/accept4.texi: Mention the new module.
27285
27286 2009-08-24  Jim Meyering  <meyering@redhat.com>
27287
27288         progname: also set global program_invocation_name, when possible
27289         Before this change, a libtool-enabled program that calls glibc's
27290         error function would report the program name as
27291         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27292         * modules/progname (configure.ac): Check for a declaration of
27293         program_invocation_name.
27294         * lib/progname.c:  Include <errno.h>.
27295         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27296         Set program_invocation_name.
27297
27298 2009-08-23  Bruno Haible  <bruno@clisp.org>
27299
27300         * lib/dup3.c: Include <string.h>.
27301
27302 2009-08-23  Bruno Haible  <bruno@clisp.org>
27303
27304         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27305         * lib/pipe2.c (pipe2): Likewise.
27306         Suggested by Eric Blake.
27307
27308 2009-08-23  Bruno Haible  <bruno@clisp.org>
27309
27310         Tolerate declared but missing dup3 syscall.
27311         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27312         * lib/unistd.in.h (dup3): If the function is already present,
27313         override it.
27314         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27315         * modules/dup3 (Makefile.am): Compile dup3.c always.
27316         Reported by Paolo Bonzini.
27317
27318 2009-08-23  Bruno Haible  <bruno@clisp.org>
27319
27320         Tolerate declared but missing pipe2 syscall.
27321         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27322         available.
27323         * lib/unistd.in.h (pipe2): If the function is already present,
27324         override it.
27325         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27326         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27327         Reported by Paolo Bonzini.
27328
27329 2009-08-23  Bruno Haible  <bruno@clisp.org>
27330
27331         * lib/pipe2.c (pipe2): Move #ifs inside function.
27332
27333 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27334
27335         quotearg: document limitations of quote_these_too
27336         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27337         those limitations are created.
27338         * lib/quotearg.h (set_char_quoting): Document that digits and
27339         letters that are special after backslash are not permitted.
27340         (quotearg_char): Cross-reference set_char_quoting documentation.
27341
27342 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27343
27344         quotearg: implement custom_quoting_style
27345         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27346         right_quote fields.
27347         (set_custom_quoting): New public function.
27348         (quotearg_buffer_restyled): Add left_quote and right_quote
27349         arguments, handle them very much like locale quoting, and update
27350         all uses.
27351         (quotearg_n_custom): New public function.
27352         (quotearg_n_custom_mem): New public function.
27353         (quotearg_custom): New public function.
27354         (quotearg_custom_mem): New public function.
27355         * lib/quotearg.h: Prototype and document new public functions.
27356         (enum quoting_style): For escape_quoting_style and
27357         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27358         ignored even though they're otherwise like c_quoting_style.
27359         Add custom_quoting_style member and document with comparison to
27360         clocale_quoting_style.
27361         * tests/test-quotearg.c (custom_quotes): New array.
27362         (custom_results): New array.
27363         (main): Extend to test custom quoting.
27364
27365 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27366
27367         quotearg: fix right quote escaping when it's in quote_these_too
27368         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27369         quote, be sure to prepend only one backslash.
27370         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27371         (main): Test it.
27372
27373 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27374
27375         quotearg-tests: test escaping of embedded locale quotes
27376         * tests/test-quotearg.c (struct result_strings): Add member for
27377         new input.
27378         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27379         (inputs): Add new input.
27380         (results_g): Add expected results.
27381         (flag_results): Likewise.
27382         (locale_results): Likewise.
27383         (compare_strings): Check those.
27384
27385 2009-08-23  Bruno Haible  <bruno@clisp.org>
27386
27387         Tests for module 'dup3'.
27388         * modules/dup3-tests: New file.
27389         * tests/test-dup3.c: New file.
27390
27391         New module 'dup3'.
27392         * lib/unistd.in.h (dup3): New declaration.
27393         * lib/dup3.c: New file.
27394         * m4/dup3.m4: New file.
27395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27396         HAVE_DUP3.
27397         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27398         * modules/dup3: New file.
27399         * doc/glibc-functions/dup3.texi: Mention the new module.
27400
27401 2009-08-23  Bruno Haible  <bruno@clisp.org>
27402
27403         Tweak the dup2 test.
27404         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27405         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27406         the test file is still empty. Fix argument order of lseek.
27407
27408 2009-08-23  Bruno Haible  <bruno@clisp.org>
27409
27410         Avoid test link errors when the modules getopt-gnu, gettext are used.
27411         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27413
27414 2009-08-23  Bruno Haible  <bruno@clisp.org>
27415
27416         Fix getdtablesize() on mingw.
27417         * lib/getdtablesize.c (getdtablesize): Implement differently.
27418         * lib/unistd.in.h (getdtablesize): Improve comment.
27419
27420 2009-08-23  Bruno Haible  <bruno@clisp.org>
27421
27422         New module 'mkostemp'.
27423         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27424         * lib/stdlib.in.h (mksotemp): New declaration.
27425         * lib/mkostemp.c: New file, from glibc with modifications.
27426         * lib/tempname.h (GT_FILE): Remove outdated comment.
27427         (gen_tempname): Add flags argument.
27428         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27429         (__GT_FILE): Map to 1.
27430         (small_open, large_open): Remove macros.
27431         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27432         * lib/mkstemp.c (mkstemp): Update.
27433         * lib/mkdtemp.c (mkdtemp): Likewise.
27434         * m4/mkostemp.m4: New file.
27435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27436         HAVE_MKOSTEMP.
27437         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27438         HAVE_MKOSTEMP.
27439         * modules/mkostemp: New file, based on modules/mkstemp.
27440         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27441         * NEWS: Mention the change.
27442
27443 2009-08-23  Bruno Haible  <bruno@clisp.org>
27444
27445         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27446         Reported by Eric Blake.
27447
27448 2009-08-23  Bruno Haible  <bruno@clisp.org>
27449
27450         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27451         Reported by Eric Blake.
27452
27453 2009-08-23  Bruno Haible  <bruno@clisp.org>
27454
27455         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27456         * modules/pipe2 (Depends-on): Likewise.
27457
27458 2009-08-23  Eric Blake  <ebb9@byu.net>
27459
27460         fcntl-h: add O_TTY_INIT support
27461         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27462         * tests/test-fcntl-h.c (o): Test it.
27463         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27464
27465         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27466         * modules/fcntl: Move <fcntl.h> header replacement...
27467         * modules/fcntl-h: ...to new name, so as not to collide with
27468         like-named function.
27469         * tests/test-fcntl.c: Rename...
27470         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27471         * modules/fcntl-tests: Rename...
27472         * modules/fcntl-h-tests: ...to this.  Update test file name.
27473         * modules/chdir-long (Depends-on): Update clients.
27474         * modules/chdir-safer (Depends-on): Likewise.
27475         * modules/fcntl-safer (Depends-on): Likewise.
27476         * modules/fts (Depends-on): Likewise.
27477         * modules/mkancesdirs (Depends-on): Likewise.
27478         * modules/mkdir-p (Depends-on): Likewise.
27479         * modules/open (Depends-on): Likewise.
27480         * modules/savewd (Depends-on): Likewise.
27481         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27482         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27483
27484 2009-08-22  Bruno Haible  <bruno@clisp.org>
27485
27486         * modules/binary-io (License): Relicense under LGPL.
27487         * modules/pipe2 (License): Likewise.
27488
27489 2009-08-22  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27492         return value.
27493         * lib/pipe-filter-gi.c (filter_init): Likewise.
27494         Reported by Eric Blake.
27495
27496 2009-08-22  Bruno Haible  <bruno@clisp.org>
27497
27498         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27499         * modules/pipe (Depends-on): Add pipe2.
27500
27501 2009-08-22  Bruno Haible  <bruno@clisp.org>
27502
27503         Tests for module 'pipe2'.
27504         * modules/pipe2-tests: New file.
27505         * tests/test-pipe2.c: New file.
27506
27507         New module 'pipe2'.
27508         * lib/unistd.in.h (pipe2): New declaration.
27509         * lib/pipe2.c: New file.
27510         * m4/pipe2.m4: New file.
27511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27512         HAVE_PIPE2.
27513         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27514         * modules/pipe2: New file.
27515         * doc/glibc-functions/pipe2.texi: Mention the new module.
27516
27517 2009-08-22  Bruno Haible  <bruno@clisp.org>
27518
27519         Reference some new glibc functions.
27520         * doc/glibc-functions/accept4.texi: New file.
27521         * doc/glibc-functions/dup3.texi: New file.
27522         * doc/glibc-functions/mkostemp.texi: New file.
27523         * doc/glibc-functions/pipe2.texi: New file.
27524         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27525         (Glibc sys/socket.h): Refer to accept4.
27526         (Glibc unistd.h): Refer to dup3, pipe2.
27527         Reported by Eric Blake.
27528
27529 2009-08-22  Jim Meyering  <meyering@redhat.com>
27530             Bruno Haible  <bruno@clisp.org>
27531
27532         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27533         This makes it so packages using automake-1.11's silent-rules option
27534         can print e.g., a single "GEN    configmake.h" line, rather than
27535         the 30+ statements that perform the job.  If you want to see the
27536         actual commands, you can still run "make V=1".
27537         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27538         so that make output is abbreviated when those variables are defined
27539         appropriately.
27540         * modules/argz: Likewise.
27541         * modules/arpa_inet: Likewise.
27542         * modules/byteswap: Likewise.
27543         * modules/configmake: Likewise.
27544         * modules/dirent: Likewise.
27545         * modules/errno: Likewise.
27546         * modules/fcntl: Likewise.
27547         * modules/float: Likewise.
27548         * modules/fnmatch: Likewise.
27549         * modules/getopt-posix: Likewise.
27550         * modules/glob: Likewise.
27551         * modules/iconv_open: Likewise.
27552         * modules/inttypes: Likewise.
27553         * modules/localcharset: Likewise.
27554         * modules/locale: Likewise.
27555         * modules/math: Likewise.
27556         * modules/netdb: Likewise.
27557         * modules/netinet_in: Likewise.
27558         * modules/poll: Likewise.
27559         * modules/posix_spawnp-tests: Likewise.
27560         * modules/sched: Likewise.
27561         * modules/search: Likewise.
27562         * modules/selinux-h: Likewise.
27563         * modules/signal: Likewise.
27564         * modules/spawn: Likewise.
27565         * modules/stdarg: Likewise.
27566         * modules/stdbool: Likewise.
27567         * modules/stddef: Likewise.
27568         * modules/stdint: Likewise.
27569         * modules/stdio: Likewise.
27570         * modules/stdlib: Likewise.
27571         * modules/string: Likewise.
27572         * modules/strings: Likewise.
27573         * modules/sys_file: Likewise.
27574         * modules/sys_ioctl: Likewise.
27575         * modules/sys_select: Likewise.
27576         * modules/sys_socket: Likewise.
27577         * modules/sys_stat: Likewise.
27578         * modules/sys_time: Likewise.
27579         * modules/sys_times: Likewise.
27580         * modules/sys_utsname: Likewise.
27581         * modules/sys_wait: Likewise.
27582         * modules/sysexits: Likewise.
27583         * modules/time: Likewise.
27584         * modules/unistd: Likewise.
27585         * modules/wchar: Likewise.
27586         * modules/wctype: Likewise.
27587
27588 2009-08-22  Jim Meyering  <meyering@redhat.com>
27589
27590         announce-gen: detect write failure
27591         * build-aux/announce-gen: Add Coda at end.
27592         Remove equivalent-but-more-verbose block at top.
27593
27594 2009-08-19  Akim Demaille  <demaille@gostai.com>
27595
27596         bootstrap: --help to stdout.
27597         * bootstrap (usage): Don't send --help to stderr.
27598         Use a here doc instead of a long string.
27599
27600 2009-08-21  Eric Blake  <ebb9@byu.net>
27601
27602         test-popen-safer: split from test-popen
27603         * tests/test-popen.c (main): Move...
27604         * tests/test-popen.h: ...into new file.
27605         * tests/test-popen-safer2.c: New file.
27606         * modules/popen-tests (Files): Add test-popen.h.
27607         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27608         Suggested by Bruno Haible.
27609
27610         test-fcntl-safer: split from test-open
27611         * tests/test-open.c (main): Move...
27612         * tests/test-open.h: ...into new file.
27613         * tests/test-fcntl-safer.c: New file.
27614         * modules/open-tests (Files): Add test-open.h.
27615         * modules/fcntl-safer-tests: New file.
27616         Suggested by Bruno Haible.
27617
27618         test-fopen-safer: split from test-fopen
27619         * tests/test-fopen.c (main): Move...
27620         * tests/test-fopen.h: ...into new file.
27621         * tests/test-fopen-safer.c: New file.
27622         * modules/fopen-tests (Files): Add test-fopen.h.
27623         * modules/fopen-safer-tests: New file.
27624         Suggested by Bruno Haible.
27625
27626 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27627
27628         popen-safer: test O_CLOEXEC at run-time.
27629         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27630
27631 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27632
27633         fcntl: move more flags to the header
27634         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27635         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27636         * lib/fcntl.in.h: Do both things here.
27637
27638 2009-08-21  Jim Meyering  <meyering@redhat.com>
27639
27640         consistently remove $@-t before redirecting to it
27641         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27642         * modules/alloca-opt: Likewise.
27643         * modules/byteswap: Likewise.
27644         * modules/fnmatch: Likewise.
27645         * modules/getopt-posix: Likewise.
27646         * modules/glob: Likewise.
27647         * modules/poll: Likewise.
27648         * modules/posix_spawnp-tests: Likewise.
27649         * modules/sys_socket: Likewise.
27650         * modules/sysexits: Likewise.
27651
27652 2009-08-21  Eric Blake  <ebb9@byu.net>
27653
27654         popen: simplify access to original popen
27655         * lib/popen.c (rpl_popen): No need to worry about popen being a
27656         macro.
27657         Reported by Bruno Haible.
27658
27659 2009-08-20  Eric Blake  <ebb9@byu.net>
27660
27661         build: avoid some compiler warnings
27662         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27663         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27664         type.
27665         (new_exclude_segment, excluded_file_pattern_p)
27666         (excluded_file_name_p): Reduce scope.
27667         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27668         old-style declaration.
27669
27670 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27671
27672         * tests/test-exclude1.sh: Handle Windows EOL.
27673         * tests/test-exclude2.sh: Likewise.
27674         * tests/test-exclude3.sh: Likewise.
27675         * tests/test-exclude4.sh: Likewise.
27676         * tests/test-exclude5.sh: Likewise.
27677         * tests/test-exclude6.sh: Likewise.
27678         * tests/test-exclude7.sh: Likewise.
27679
27680 2009-08-19  Akim Demaille  <demaille@gostai.com>
27681
27682         bootstrap: find sha1sum when named gsha1sum.
27683         * bootstrap (find_tool): New.
27684         ($SHA1SUM): New.
27685         Use it.
27686
27687 2009-08-20  Jim Meyering  <meyering@redhat.com>
27688
27689         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27690         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27691         expression that converts "." in a file name to "\." in the resulting
27692         regexp.  Start with a dummy statement, so that prior shell variable
27693         definitions are expanded portably.  Reported by Simon Josefsson.
27694
27695 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27696
27697         Fix polling for writeability of a screen buffer.
27698         * lib/poll.c: Distinguish input and screen buffers for the
27699         Win32 implementation.
27700         * lib/select.c: Likewise.
27701
27702 2009-08-19  Eric Blake  <ebb9@byu.net>
27703
27704         popen-safer: prevent popen from clobbering std descriptors
27705         * modules/popen-safer: New file.
27706         * lib/popen-safer.c: Likewise.
27707         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27708         * lib/stdio--.h (popen): Provide override.
27709         * lib/stdio-safer.h (popen_safer): Provide declaration.
27710         * tests/test-popen.c (includes): Partially test this.
27711         * modules/popen-safer-tests: New file, for more tests.
27712         * tests/test-popen-safer.c: Likewise.
27713         * MODULES.html.sh (file stream based Input/Output): Mention it.
27714
27715         tests: test some of the *-safer modules
27716         * modules/fopen-safer (Depends-on): Add fopen.
27717         * modules/fcntl-safer (Depends-on): Add fcntl.
27718         * modules/stdlib-safer (Depends-on): Add stdlib.
27719         (configure.ac): Set indicator.
27720         * modules/unistd-safer (configure.ac): Likewise.
27721         * modules/tmpfile-safer (configure.ac): Likewise.
27722         (Depends-on): Add tmpfile.
27723         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27724         active.
27725         * tests/test-fopen.c (includes): Test safer versions when they are
27726         in use.
27727         * tests/test-open.c (includes): Likewise.
27728
27729         popen: fix cygwin 1.5 bug when stdin closed
27730         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27731         * modules/popen: New file.
27732         * modules/popen-tests: Likewise.
27733         * tests/test-popen.c: Likewise.
27734         * m4/popen.m4: Likewise.
27735         * lib/popen.c: Likewise.
27736         * lib/stdio.in.h (popen): New declaration.
27737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27738         * modules/stdio (Makefile.am): Likewise.
27739         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27740
27741 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27742
27743         maint.mk: give full control over update-copyright exclusions
27744         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27745         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27746         (update-copyright): Don't force inclusion of top-level
27747         ChangeLog.  Don't force exclusion of all COPYING files, but make
27748         them the default exclusion instead.
27749
27750 2009-08-16  Bruno Haible  <bruno@clisp.org>
27751
27752         Fix test failures on Solaris 10.
27753         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27754         tests when Solaris iconv() is used.
27755         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27756         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27757         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27758         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27759         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27760
27761 2009-08-16  Bruno Haible  <bruno@clisp.org>
27762
27763         Fix test failures on Solaris 10.
27764         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27765         'tr' program and pass it as first argument.
27766         * tests/test-pipe-filter-gi1.sh: Likewise.
27767         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27768         program as first argument.
27769         * tests/test-pipe-filter-gi1.c (main): Likewise.
27770
27771 2009-08-16  Eric Blake  <ebb9@byu.net>
27772
27773         fpurge: fix previous commits
27774         * modules/fpurge (Makefile.am): Make replacement conditional,
27775         partially reverting 2007-04-29 change; missed in previous
27776         attempt.
27777         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27778         is missing.
27779
27780 2009-08-16  Bruno Haible  <bruno@clisp.org>
27781
27782         Clarify fpurge's effect on the file position.
27783         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27784         * tests/test-fpurge.c (main): Make a second pass for checking the file
27785         position.
27786
27787 2009-08-16  Bruno Haible  <bruno@clisp.org>
27788
27789         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27790         declaration of fpurge is missing.
27791         * tests/test-fpurge.c (main): Check that the file has not more contents
27792         than expected. Close the file before removing it.
27793
27794 2009-08-15  Eric Blake  <ebb9@byu.net>
27795
27796         fpurge: don't wrap working cygwin implementation
27797         * lib/fpurge.c (fpurge): Fix comment typo.
27798         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27799         1.7 to avoid replacement.
27800         * tests/test-fpurge.c (main): Enhance test.
27801
27802 2009-08-15  Eric Blake  <ebb9@byu.net>
27803         and Jim Meyering  <meyering@redhat.com>
27804
27805         test-update-copyright: skip if perl is insufficient
27806         * tests/test-update-copyright.sh: Failure to run maintainer tool
27807         should not cause testsuite failure on cygwin 1.5.
27808
27809 2009-08-14  Eric Blake  <ebb9@byu.net>
27810
27811         doc: mention more functions added in cygwin 1.7.0
27812         * doc/posix-headers/limits.texi (limits.h): Update for recent
27813         cygwin additions.
27814         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27815         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27816         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27817         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27818         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27819
27820 2009-08-14  Eric Blake  <ebb9@byu.net>
27821
27822         maint.mk: simplify update-copyright rule
27823         * top/maint.mk (update-copyright-local): Delete, and document how
27824         to do it in cfg.mk instead.
27825         (update-copyright-exclude-regexp): Delete, and document how to do
27826         it in .x-update-copyright instead.
27827         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27828         exclude ChangeLog.
27829
27830 2009-08-14  Bruno Haible  <bruno@clisp.org>
27831
27832         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27833
27834 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27835
27836         maint.mk: support update-copyright-env
27837         * top/maint.mk (update-copyright-env): Define place-holder.
27838         (update-copyright): Expand $(update-copyright-env) before
27839         invoking update-copyright.
27840
27841 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27842
27843         update-copyright: implement forced reformatting
27844         * build-aux/update-copyright: Implement and document
27845         UPDATE_COPYRIGHT_FORCE.
27846         * tests/test-update-copyright.sh: Test it.
27847
27848 2009-08-14  Eric Blake  <ebb9@byu.net>
27849         and Bruno Haible  <bruno@clisp.org>
27850
27851         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27852         * tests/test-locale.c: Revert previous patch related to NULL.
27853         * tests/test-stdio.c: Likewise.
27854         * tests/test-stdlib.c: Likewise.
27855         * tests/test-string.c: Likewise.
27856         * tests/test-unistd.c: Likewise.
27857         * modules/time-tests (Depends-on): Add verify.
27858         * modules/wchar-tests (Depends-on): Likewise.
27859         * tests/test-time.c: Test for NULL compliance.
27860         * tests/test-wchar.c: Likewise.
27861         * modules/locale (Depends-on): Add stddef.
27862         * modules/stdio (Depends-on): Likewise.
27863         * modules/stdlib (Depends-on): Likewise.
27864         * modules/string (Depends-on): Likewise.
27865         * modules/time (Depends-on): Likewise.
27866         * modules/unistd (Depends-on): Likewise.
27867         * modules/wchar (Depends-on): Likewise.
27868         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27869         * lib/stdlib.in.h (includes): Likewise.
27870         * lib/string.in.h (includes): Likewise.
27871         * lib/time.in.h (includes): Likewise.
27872         * lib/unistd.in.h (includes): Likewise.
27873         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27874         replaced.
27875         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27876         * m4/stddef_h.m4: New file.
27877         * modules/stddef: Likewise.
27878         * lib/stddef.in.h: Likewise.
27879         * modules/stddef-tests: Likewise.
27880         * tests/test-stddef.c: Likewise.
27881         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27882         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27883         * doc/posix-headers/locale.texi (locale.h): Likewise.
27884         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27885         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27886         * doc/posix-headers/string.texi (string.h): Likewise.
27887         * doc/posix-headers/time.texi (time.h): Likewise.
27888         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27889         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27890
27891 2009-08-14  Eric Blake  <ebb9@byu.net>
27892
27893         doc: improve git diff of texinfo files
27894         * .gitattributes: Add rule for *.texi files, with hint on how to
27895         use it.
27896         Copied from m4, and based on a report by Bruno Haible.
27897
27898 2009-08-14  Bruno Haible  <bruno@clisp.org>
27899
27900         Disable multithread support by default on Cygwin 1.5.x for real.
27901         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27902
27903 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27904
27905         update-copyright: much ado about intervals
27906         * build-aux/update-copyright: Implement and document
27907         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27908         of copyright year intervals.
27909         Also, document UPDATE_COPYRIGHT_YEAR.
27910         * tests/test-update-copyright.sh: Test it.
27911
27912         update-copyright: convert 2-digit to 4-digit years
27913         * build-aux/update-copyright: Implement and document.
27914         * tests/test-update-copyright.sh: Update.
27915
27916 2009-08-14  Jim Meyering  <meyering@redhat.com>
27917
27918         test-exclude: avoid coreutils "make check" failure
27919         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27920         just as in test-argmatch.c.
27921
27922 2009-08-13  Eric Blake  <ebb9@byu.net>
27923
27924         test-dup2: fix bad assumption
27925         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27926         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27927
27928         test-version-etc: fix CRLF portability issue
27929         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27930         recognize \r.
27931         * tests/test-argp-version-etc-1.sh: Likewise.
27932
27933         getopt: update client modules
27934         * modules/argp (Depends-on): Use getopt-gnu.
27935         * modules/git-merge-changelog (Depends-on): Likewise.
27936         * modules/long-options (Depends-on): Likewise.
27937         * modules/xstrtol (Depends-on): Likewise.
27938
27939 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27940
27941         * tests/test-version-etc.sh: Don't fail on different
27942         project/version.  Don't fail on CRLF differences.  Rewrite to use
27943         multiple -e instead of multiple sed forks, suggested by Eric Blake
27944         <ebb9@byu.net>.
27945         * tests/test-argp-version-etc-1.sh: Likewise.
27946
27947 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27948
27949         * tests/test-version-etc.sh: Don't fail on different
27950         project/version.
27951
27952 2009-08-12  Bruno Haible  <bruno@clisp.org>
27953
27954         Tests for modules 'getopt-posix', 'getopt-gnu'.
27955         * modules/getopt-posix-tests: New file.
27956         * tests/test-getopt.c: New file.
27957         * tests/test-getopt.h: New file.
27958         * tests/test-getopt_long.h: New file.
27959
27960         New modules 'getopt-posix', 'getopt-gnu'.
27961         * modules/getopt-gnu: New file, renamed from modules/getopt.
27962         * modules/getopt-posix: New file.
27963         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27964         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27965         (gl_GETOPT): Remove macro.
27966         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27967         Disable the test against BSD systems that declare optreset. Test
27968         against mingw bug. Test against lack of support of optional arguments
27969         on many platforms.
27970         * doc/glibc-headers/getopt.texi: Update module name and list of
27971         relevant platforms.
27972         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27973         'getopt-gnu' and more portability problems.
27974         * NEWS: Mention the changes.
27975
27976 2009-08-12  Bruno Haible  <bruno@clisp.org>
27977
27978         Ensure that optarg etc. get declared by <unistd.h>.
27979         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27980         AC_USE_SYSTEM_EXTENSIONS.
27981         * modules/getopt (Depends-on): Add 'extensions'.
27982
27983 2009-08-12  Bruno Haible  <bruno@clisp.org>
27984
27985         Avoid test link errors.
27986         * modules/pipe-filter-ii-tests (Makefile.am): Define
27987         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27988         * modules/pipe-filter-gi-tests (Makefile.am): Define
27989         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27991
27992 2009-08-12  Bruno Haible  <bruno@clisp.org>
27993
27994         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27995         gl_GETOPT_SUBSTITUTE before.
27996         (gl_GETOPT): Use it.
27997         * m4/argp.m4 (gl_ARGP): Update.
27998         Reported by Sergey Poznyakoff.
27999
28000         * m4/getopt.m4: Reorder macros.
28001         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28002         (gl_GETOPT_SUBSTITUTE): Remove macro.
28003
28004 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28005
28006         Minor improvement in gitlog-to-changelog
28007
28008         * build-aux/gitlog-to-changelog: New option `--format' makes
28009         output format string configurable.
28010
28011 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28012
28013         Optimize exclude: use hash tables for non-wildcard patterns.
28014
28015         * lib/exclude.c: Include hash.h and mbuiter.h
28016         (struct exclude_pattern, exclude_segment): New data types.
28017         (struct exclude): Rewrite.
28018         (fnmatch_pattern_has_wildcards): New function.
28019         (new_exclude_segment, free_exclude_segment): New functions.
28020         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28021         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28022         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28023         * modules/exclude: Depend on hash and mbuiter.
28024
28025         * modules/exclude-tests: New file.
28026         * tests/test-exclude.c: New file.
28027         * tests/test-exclude1.sh: New file.
28028         * tests/test-exclude2.sh: New file.
28029         * tests/test-exclude3.sh: New file.
28030         * tests/test-exclude4.sh: New file.
28031         * tests/test-exclude5.sh: New file.
28032         * tests/test-exclude6.sh: New file.
28033         * tests/test-exclude7.sh: New file.
28034
28035 2009-08-12  Bruno Haible  <bruno@clisp.org>
28036
28037         Ensure that getopt() gets declared by <unistd.h>.
28038         * lib/unistd.in.h: Conditionally include getopt.h.
28039         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28040         Set GNULIB_UNISTD_H_GETOPT.
28041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28042         GNULIB_UNISTD_H_GETOPT.
28043         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28044
28045 2009-08-12  Bruno Haible  <bruno@clisp.org>
28046
28047         Clarify logic.
28048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28049         gl_replace_getopt instead of GETOPT_H.
28050
28051 2009-08-12  Bruno Haible  <bruno@clisp.org>
28052
28053         * m4/getopt.m4: Add comments.
28054
28055 2009-08-12  Bruno Haible  <bruno@clisp.org>
28056
28057         Disable multithread support by default on Cygwin 1.5.x.
28058         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28059         set gl_use_threads=no if not specified otherwise.
28060
28061 2009-08-11  Bruno Haible  <bruno@clisp.org>
28062
28063         Avoid compilation error on NetBSD 5.0.
28064         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28065         * tests/test-stdio.c: Likewise.
28066         * tests/test-stdlib.c: Likewise.
28067         * tests/test-string.c: Likewise.
28068         * tests/test-unistd.c: Likewise.
28069         Reported by Greg Troxel <gdt@ir.bbn.com>
28070         at <https://savannah.gnu.org/support/?106973>.
28071
28072 2009-08-11  Bruno Haible  <bruno@clisp.org>
28073
28074         * modules/dup2-tests (Depends-on): Remove close.
28075
28076         Undo 2009-07-19 commit.
28077         * modules/acl-tests (Depends-on): Remove close.
28078         * modules/binary-io-tests (Depends-on): Likewise.
28079         * modules/closein-tests (Depends-on): Likewise.
28080         * modules/flock-tests (Depends-on): Likewise.
28081         * modules/fsync-tests (Depends-on): Likewise.
28082         * modules/lseek-tests (Depends-on): Likewise.
28083         * modules/pipe-tests (Depends-on): Likewise.
28084         * modules/posix_spawn-tests (Depends-on): Likewise.
28085         * modules/posix_spawnp-tests (Depends-on): Likewise.
28086         * modules/stat-time-tests (Depends-on): Likewise.
28087         * modules/yesno-tests (Depends-on): Likewise.
28088
28089 2009-08-10  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28092
28093 2009-08-10  Bruno Haible  <bruno@clisp.org>
28094
28095         Fix a gcc warning.
28096         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28097
28098 2009-08-10  Bruno Haible  <bruno@clisp.org>
28099
28100         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28101         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28102         not only the first time.
28103         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28104         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28105         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28106         is 1, not only the the first time.
28107
28108 2009-08-10  Bruno Haible  <bruno@clisp.org>
28109
28110         Make it possible to use module 'gethostname' without module 'close'.
28111         * lib/unistd.in.h (close): Evoke a link error only if
28112         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28114         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28115         * modules/unistd (Makefile.am): Substitute
28116         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28117         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28119         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28120         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28121         * modules/sys_ioctl (Makefile.am): Substitute
28122         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28123         * modules/socket (configure.ac): On native Windows, set
28124         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28125         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28126         Reported by Sam Steingold <sds@gnu.org>.
28127
28128 2009-08-10  Bruno Haible  <bruno@clisp.org>
28129
28130         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28131         * modules/ioctl (configure.ac): Likewise.
28132
28133 2009-08-10  Bruno Haible  <bruno@clisp.org>
28134
28135         Avoid collision between gnulib wrapper and libintl wrapper.
28136         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28137         already defined in intl/printf.c.
28138         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28139         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28140
28141 2009-08-09  Bruno Haible  <bruno@clisp.org>
28142
28143         Make <sys/select.h> really self-contained, also on Solaris 10.
28144         * lib/sys_select.in.h: Include <string.h>.
28145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28146         Solaris 10 problem.
28147         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28148         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28149         Reported by Jim Meyering.
28150
28151 2009-08-09  Bruno Haible  <bruno@clisp.org>
28152
28153         Avoid warnings from 'aclocal' that are due to a use of macro name
28154         AM_XGETTEXT_OPTION that is not defined in automake.
28155         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28156         automake.
28157         * modules/error (configure.ac): Likewise.
28158         * modules/propername (configure.ac): Likewise.
28159         * modules/vasprintf (configure.ac): Likewise.
28160         * modules/verror (configure.ac): Likewise.
28161         * modules/xprintf (configure.ac): Likewise.
28162         * modules/xvasprintf (configure.ac): Likewise.
28163
28164 2009-08-08  Bruno Haible  <bruno@clisp.org>
28165
28166         Avoid compilation error in C++ mode.
28167         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28168         Reported by Sam Steingold <sds@gnu.org>.
28169
28170 2009-08-08  Bruno Haible  <bruno@clisp.org>
28171
28172         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28173         for the various Unix platforms.
28174         * doc/posix-headers/limits.texi: Update platforms list regarding
28175         HOST_NAME_MAX.
28176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28177
28178 2009-08-07  Jim Meyering  <meyering@redhat.com>
28179
28180         selinux-at: fix typo in a comment
28181         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28182         Spotted by Paolo Bonzini.
28183
28184         selinux-at: remove redundant m4 code, add documentation
28185         * modules/selinux-at (configure.ac): Remove redundant code.
28186         LIB_SELINUX is already set via the dependent module, selinux-h.
28187         (Include): Add quotes around selinux-at.h.
28188         * lib/selinux-at.h: Add documentation.
28189         Reported by Bruno Haible in
28190         http://marc.info/?l=gnulib-bug&m=124958988300749
28191
28192 2009-08-07  Bruno Haible  <bruno@clisp.org>
28193
28194         Avoid link error on MacOS X 10.3 and 10.4.
28195         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28196         on non-ELF systems.
28197         * lib/argp-pv.c (argp_program_version): Likewise.
28198         Reported by Simon Josefsson.
28199
28200 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28201
28202         * tests/test-version-etc.sh: Use $EXEEXT.
28203
28204 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28205
28206         update-copyright: update documentation to point to maint.mk
28207         * build-aux/update-copyright: Here.
28208
28209 2009-08-06  Jim Meyering  <meyering@redhat.com>
28210
28211         maint.mk: support update-copyright-local
28212         * top/maint.mk (update-copyright-local): Define place-holder.
28213         (update-copyright): Depend on $(update-copyright-local).
28214
28215 2009-08-06  Jim Meyering  <meyering@redhat.com>
28216
28217         selinux-at: new module
28218         Initially written for coreutils, this module will soon be
28219         used by findutils, too.
28220         * MODULES.html.sh [Misc]: Add selinux-at.
28221         * lib/selinux-at.h: New file, from coreutils.
28222         * lib/selinux-at.c: Likewise.
28223         * modules/selinux-at: Likewise.
28224         (License): Change from LGPL to GPL, since it depends
28225         on the GPL'd openat module.
28226
28227         doc: update README
28228         * README: Remove references to cogito.
28229         Remove cvs-repo-updating instructions from 2007.
28230         Don't imply that CVS is better if you have limited disk space.
28231
28232 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28233
28234         update-copyright: support C-style comments
28235         * build-aux/update-copyright: Implement and document.
28236         * tests/test-update-copyright.sh: Test.
28237
28238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28239
28240         update-copyright: support omitted "(C)"
28241         * build-aux/update-copyright: Implement and document.  Also,
28242         allow variable whitespace before "(C)".
28243         * tests/test-update-copyright.sh: Test.
28244
28245 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28246
28247         update-copyright: don't trip on non-FSF copyright statements
28248         * build-aux/update-copyright: Fix so that the first correctly
28249         formatted FSF copyright statement is recognized no matter what
28250         appears before it.  Update documentation.
28251         * tests/test-update-copyright.sh: Test that.
28252
28253 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28254
28255         update-copyright: clean up code a little
28256         * build-aux/update-copyright: Append "_re" to the name of any
28257         variable holding a regular expression.
28258         Replace "old" and "new" with "stmt" in variable names.
28259         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28260         handled correctly.
28261         Format code more consistently.
28262
28263 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28264
28265         update-copyright-tests: improve portability
28266         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28267         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28268
28269 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28270
28271         update-copyright: support @copyright{} and &copy;
28272         * build-aux/update-copyright: Implement and document.
28273         * tests/test-update-copyright.sh: Test.
28274
28275 2009-08-04  Jim Meyering  <meyering@redhat.com>
28276
28277         update-copyright-tests: correctly test EOL=\r\n handling
28278         * tests/test-update-copyright.sh: Put \r at the end of some lines
28279         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28280
28281         maint.mk: make update-copyright exclusion list more configurable
28282         * top/maint.mk (update-copyright): Default to excluding COPYING,
28283         but allow an override, in case someone does want to update that file.
28284
28285         maint.mk: don't update copyright date in COPYING
28286         * top/maint.mk (update-copyright): Exclude COPYING.
28287
28288         maint.mk: add a copyright-updating rule
28289         * top/maint.mk (update-copyright): New rule.
28290         Derived from coreutils/Makefile.am.
28291
28292         update-copyright: rename some variables
28293         * build-aux/update-copyright: Rename a few variables for clarity.
28294         Tweak syntax.  List Joel E. Denny as coauthor.
28295
28296 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28297
28298         update-copyright: fix bug for 2-digit last year and add tests
28299         * build-aux/update-copyright: Fix bug.
28300         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28301         specified.
28302         * modules/update-copyright-tests: New
28303         * tests/test-update-copyright.sh: New.
28304
28305 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28306
28307         update-copyright: handle leading tabs in line prefix
28308         * build-aux/update-copyright: Count leading tabs as 8 spaces
28309         when computing margin.  This helps with the formatting of
28310         ChangeLogs, for example.
28311         Fix documentation a little.
28312
28313 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28314
28315         update-copyright: support EOL=\r\n
28316         * build-aux/update-copyright: Implement that.
28317
28318 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28319
28320         update-copyright: automatically format copyright statements
28321         * build-aux/update-copyright: Implement that.
28322         Also, be a little more predictable and safer by always failing
28323         when the full copyright format is not perfectly recognized as an
28324         unbroken whole.  Discussed at
28325         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28326         Rewrite documentation.
28327
28328 2009-08-03  Bruno Haible  <bruno@clisp.org>
28329
28330         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28331
28332 2009-08-02  Bruno Haible  <bruno@clisp.org>
28333
28334         Tests for module 'uname'.
28335         * modules/uname-tests: New file.
28336         * tests/test-uname.c: New file.
28337
28338         New module 'uname'.
28339         * lib/uname.c: New file.
28340         * m4/uname.m4: New file.
28341         * modules/uname: New file.
28342         * doc/posix-functions/uname.texi: Mention the new module.
28343
28344 2009-08-02  Bruno Haible  <bruno@clisp.org>
28345
28346         Tests for module 'sys_utsname'.
28347         * modules/sys_utsname-tests: New file.
28348         * tests/test-sys_utsname.c: New file.
28349
28350         New module 'sys_utsname'.
28351         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28352         * m4/sys_utsname_h.m4: New file.
28353         * modules/sys_utsname: New file.
28354         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28355
28356 2009-08-02  Bruno Haible  <bruno@clisp.org>
28357
28358         Implicitly initialize the sockets library.
28359         * lib/gethostname.c: Include sockets.h.
28360         (rpl_gethostname): Invoke gl_sockets_startup.
28361         * lib/socket.c: Include sockets.h.
28362         (rpl_socket): Invoke gl_sockets_startup.
28363         * modules/gethostname (Depends-on): Add sockets.
28364         * modules/socket (Depends-on): Likewise.
28365         * tests/test-poll.c: Don't include sockets.h.
28366         (main): Don't invoke gl_sockets_startup.
28367         * tests/test-select.c: Don't include sockets.h.
28368         (main): Don't invoke gl_sockets_startup.
28369
28370 2009-08-02  Bruno Haible  <bruno@clisp.org>
28371
28372         Allow multiple calls to gl_sockets_startup.
28373         * lib/sockets.c (initialized_sockets_version): New variable.
28374         (gl_sockets_startup): Do nothing if already called for this or a higher
28375         version.
28376         (gl_sockets_cleanup): Reset initialized_sockets_version.
28377
28378 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28379
28380         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28381         different project/version.
28382
28383 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28384             Bruno Haible  <bruno@clisp.org>
28385
28386         Tests for module 'pipe-filter-gi'.
28387         * modules/pipe-filter-gi-tests: New file.
28388         * tests/test-pipe-filter-gi1.sh: New file.
28389         * tests/test-pipe-filter-gi1.c: New file.
28390         * tests/test-pipe-filter-gi2.sh: New file.
28391         * tests/test-pipe-filter-gi2-main.c: New file.
28392         * tests/test-pipe-filter-gi2-child.c: New file.
28393
28394         New module 'pipe-filter-gi'.
28395         * lib/pipe-filter-gi.c: New file.
28396         * modules/pipe-filter-gi: New file.
28397
28398 2009-08-02  Bruno Haible  <bruno@clisp.org>
28399             Paolo Bonzini  <bonzini@gnu.org>
28400
28401         Tests for module 'pipe-filter-ii'.
28402         * modules/pipe-filter-ii-tests: New file.
28403         * tests/test-pipe-filter-ii1.sh: New file.
28404         * tests/test-pipe-filter-ii1.c: New file.
28405         * tests/test-pipe-filter-ii2.sh: New file.
28406         * tests/test-pipe-filter-ii2-main.c: New file.
28407         * tests/test-pipe-filter-ii2-child.c: New file.
28408
28409         New module 'pipe-filter-ii'.
28410         * lib/pipe-filter.h: New file.
28411         * lib/pipe-filter-ii.c: New file.
28412         * lib/pipe-filter-aux.h: New file.
28413         * modules/pipe-filter-ii: New file.
28414
28415 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28416
28417         * lib/gc-libgcrypt.c: Change copyright to FSF.
28418         * lib/gc-gnulib.c: Likewise.
28419
28420 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28421
28422         * lib/gethostname.c: Include limits.h.
28423
28424 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28425             Bruno Haible  <bruno@clisp.org>
28426
28427         Ensure HOST_NAME_MAX as part of the gethostname module.
28428         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28429         define also HOST_NAME_MAX.
28430         * tests/test-gethostname.c: Include <limits.h>.
28431         (main): Check also HOST_NAME_MAX.
28432         * doc/posix-headers/limits.texi: Document the mingw problem.
28433
28434 2009-08-02  Bruno Haible  <bruno@clisp.org>
28435
28436         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28437         Add comments.
28438
28439 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28440
28441         * lib/gethostname.c: Add Windows wrapper.
28442         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28443         * modules/gethostname: Depend on sys_socket & errno, for also
28444         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28445         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28446
28447 2009-07-31  Jim Meyering  <meyering@redhat.com>
28448
28449         getloadavg: fix symbol name in comment
28450         * lib/getloadavg.c: Correct a typo I introduced when adding
28451         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28452         Matt Kraai spotted the problem.
28453
28454 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28455
28456         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28457         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28458         code also if ! defined N_NAME_POINTER.
28459         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28460         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28461         but the n_name member is a 12-byte array.
28462
28463 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28464
28465         update-copyright: generalize comment handling
28466         * build-aux/update-copyright: Handle copyright statements
28467         within more comment styles.
28468         Document usage.
28469         Report any file with an external copyright holder or parse failure.
28470
28471 2009-07-29  Jim Meyering  <meyering@redhat.com>
28472
28473         mktime: correct setting of REPLACE_MKTIME
28474         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28475
28476         update-copyright: new module
28477         * modules/update-copyright: New file.
28478         * build-aux/update-copyright: New file.
28479         * MODULES.html.sh (maint+release support): Add update-copyright.
28480
28481 2009-07-27  Bruno Haible  <bruno@clisp.org>
28482
28483         Fix compilation error when <ctime> is used and mktime is replaced.
28484         * lib/time.in.h (mktime): New declaration.
28485         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28486         REPLACE_MKTIME instead of defining mktime in config.h.
28487         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28488         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28489         Reported by Ross McFarland <rwmcfa1@neces.com>.
28490
28491 2009-07-27  Bruno Haible  <bruno@clisp.org>
28492
28493         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28494         Reported by Matt Kraai <mkraai@beckman.com>.
28495
28496 2009-07-25  Jim Meyering  <meyering@redhat.com>
28497
28498         maint.mk: avoid warnings about missing files
28499         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28500         diagnostic when .prev-version does not exist.
28501         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28502         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28503         nonexistent cfg.mk.
28504         Suggestions from Simon Josefsson.
28505
28506 2009-07-25  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28509         defined as macros. Needed on QNX 6.4.1.
28510         Reported by Matt Kraai <mkraai@beckman.com>.
28511
28512 2009-07-23  Jim Meyering  <meyering@redhat.com>
28513
28514         maint.mk: invoke "make dist" with a working value of XZ_OPT
28515         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28516
28517 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28518
28519         Make fseeko.c compile on QNX.
28520         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28521
28522 2009-07-22  Peter Simons  <simons@cryp.to>
28523
28524         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28525         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28526         * lib/md4.h: Likewise.
28527         * lib/md5.h: Likewise.
28528         * lib/sha1.h: Likewise.
28529         * lib/sha256.h: Likewise.
28530         * lib/sha512.h: Likewise.
28531
28532         tests-sha1: don't assign literal string to 'char *' variable
28533         * tests/test-sha1.c (main): Declare locals with "const" to match
28534         attributes of the right hand side.
28535
28536 2009-07-21  Eric Blake  <ebb9@byu.net>
28537
28538         dup2: fix more mingw problems
28539         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28540         fd to itself.
28541         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28542         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28543         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28544         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28545         care of mingw bugs.
28546
28547 2009-07-21  Jim Meyering  <meyering@redhat.com>
28548
28549         vc-list-files: avoid failure when /bin/sh is dash
28550         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28551         On some Debian based systems, /bin/sh is a symlink to dash, and running
28552         this command would omit the "/" following each 'tests' prefix:
28553           dash -x build-aux/vc-list-files -C . tests
28554         That is because bash and dash work differently:
28555           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28556           bash ok
28557           dash odd
28558
28559 2009-07-21  Eric Blake  <ebb9@byu.net>
28560
28561         dup2-tests: test previous patch
28562         * modules/dup2-tests: New file.
28563         * tests/test-dup2.c: Likewise.
28564         * tests/test-open.c (main): Avoid unspecified behavior.
28565         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28566         test.
28567
28568         dup2: work around mingw and cygwin 1.5 bug
28569         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28571         * modules/unistd (Makefile.am): Substitute it.
28572         * lib/unistd.in.h (dup2): Declare the replacement.
28573         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28574         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28575         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28576         * modules/execute (Depends-on): Add dup2.
28577         * modules/fseterr (Depends-on): Likewise.
28578         * modules/pipe (Depends-on): Likewise.
28579         * modules/posix_spawn-internal (Depends-on): Likewise.
28580
28581 2009-07-21  Bruno Haible  <bruno@clisp.org>
28582
28583         * modules/.gitattributes: New file.
28584
28585 2009-07-20  Bruno Haible  <bruno@clisp.org>
28586
28587         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28588         (main): Use it.
28589
28590 2009-07-20  Eric Blake  <ebb9@byu.net>
28591
28592         test-pipe: make a bit more robust.
28593         * tests/test-pipe.c (myerr): Allow error messages regardless of
28594         what we do to stderr.
28595         (test_pipe): Rearrange to avoid deadlock.
28596         (child_main): Try a larger read, to ensure we avoided deadlock.
28597         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28598         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28599         if misused.
28600
28601 2009-07-19  Jim Meyering  <meyering@redhat.com>
28602
28603         fts: avoid false-positive cycle-detection
28604         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28605         for each new command line argument.
28606
28607 2009-07-19  Bruno Haible  <bruno@clisp.org>
28608
28609         Fix build error on mingw with the modules sys_select and unistd.
28610         * modules/acl-tests (Depends-on): Add close.
28611         * modules/binary-io-tests (Depends-on): Likewise.
28612         * modules/closein-tests (Depends-on): Likewise.
28613         * modules/flock-tests (Depends-on): Likewise.
28614         * modules/fsync-tests (Depends-on): Likewise.
28615         * modules/lseek-tests (Depends-on): Likewise.
28616         * modules/pipe-tests (Depends-on): Likewise.
28617         * modules/posix_spawn-tests (Depends-on): Likewise.
28618         * modules/posix_spawnp-tests (Depends-on): Likewise.
28619         * modules/stat-time-tests (Depends-on): Likewise.
28620         * modules/yesno-tests (Depends-on): Likewise.
28621
28622 2009-07-19  Bruno Haible  <bruno@clisp.org>
28623
28624         Unify conditionals.
28625         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28626         macros, not at the compiler macros.
28627         * lib/pipe.c: Likewise.
28628         * lib/execute.c: Likewise.
28629         * lib/spawni.c: Likewise.
28630
28631 2009-07-19  Bruno Haible  <bruno@clisp.org>
28632
28633         Fix handling of closed stdin/stdout/stderr on mingw.
28634         * lib/w32spawn.h: Include unistd.h.
28635         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28636         file descriptor with O_NOINHERIT flag.
28637         (fd_safer_noinherit): New function, based on fd-safer.c.
28638         (dup_safer_noinherit): New function, based on dup-safer.c.
28639         (undup_safer_noinherit): New function.
28640         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28641         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28642         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28643         instead of fd_safer.
28644         * tests/test-pipe.c: Include <windows.h>.
28645         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28646         result.
28647
28648         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28649         from main.
28650         (test_pipe): Pass an extra argument for disambiguation.
28651         (main): Invoke parent_main or child_main.
28652
28653         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28654         consistently.
28655
28656 2009-07-18  Eric Blake  <ebb9@byu.net>
28657
28658         test-pipe: fix mingw build
28659         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28660
28661 2009-07-18  Bruno Haible  <bruno@clisp.org>
28662
28663         * modules/pipe-tests (Makefile.am): Fix typo.
28664
28665 2009-07-18  Eric Blake  <ebb9@byu.net>
28666
28667         error: fix mingw build
28668         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28669         Reported by Bruno Haible.
28670
28671         error: avoid undefined use of stdout
28672         * lib/error.c (error, error_at_line): Check that fd 1 is open
28673         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28674         is handling faults and the close_stdout module wants to report the
28675         detection of closed stdout as an error.
28676
28677 2009-07-17  Eric Blake  <ebb9@byu.net>
28678
28679         pipe: be robust in face of closed fds
28680         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28681         should cause child to misbehave.
28682         * modules/pipe-tests: New module.
28683         * tests/test-pipe.c: New file.
28684         * tests/test-pipe.sh: New file.
28685         Reported by Akim Demaille.
28686
28687 2009-07-14  Bruno Haible  <bruno@clisp.org>
28688
28689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28690         Reported by anonymous kc.
28691
28692 2009-07-07  Jim Meyering  <meyering@redhat.com>
28693
28694         maint.mk: don't look for translatable strings in *.m4 or *.mk
28695         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28696         when searching for translatable strings.
28697
28698 2009-07-05  Jim Meyering  <meyering@redhat.com>
28699
28700         remove superfluous parentheses in STREQ definition
28701         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28702         * lib/getugroups.c (STREQ): Likewise.
28703         * lib/fnmatch.c (STREQ): Likewise.
28704         Spotted by Bruno Haible.
28705
28706 2009-07-04  Jim Meyering  <meyering@redhat.com>
28707
28708         argv-iter: new module
28709         * MODULES.html.sh: Add argv-iter.
28710         * lib/argv-iter.c, lib/argv-iter.h: New files.
28711         * modules/argv-iter: New file.
28712         * modules/argv-iter-tests: New file.
28713         * tests/test-argv-iter.c: Test it.
28714
28715 2009-07-04  Bruno Haible  <bruno@clisp.org>
28716
28717         Fix assertion.
28718         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28719         contains more exact copies of a given entry than file2, leave the extra
28720         copies unpaired rather than aborting.
28721         Reported by Eric Blake.
28722
28723 2009-07-02  Bruno Haible  <bruno@clisp.org>
28724
28725         Speedup git-merge-changelog for git cherry-pick.
28726         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28727         (entries_mapping_get): New function, extracted from compute_mapping.
28728         (entries_mapping_reverse_get): New function.
28729         (compute_mapping): Add a 'full' argument. Return the result in a
28730         'struct entries_mapping'.
28731         (main): Update. Access the mappings through entries_mapping_get.
28732         Reported by Eric Blake.
28733
28734 2009-07-02  Bruno Haible  <bruno@clisp.org>
28735
28736         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28737         best_i.
28738
28739 2009-07-02  Bruno Haible  <bruno@clisp.org>
28740
28741         Speed up approximate search for matching ChangeLog entries.
28742         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28743         argument. Call fstrcmp_bounded instead of fstrcmp.
28744         (compute_mapping, try_split_merged_entry, main): Update callers.
28745
28746 2009-07-02  Bruno Haible  <bruno@clisp.org>
28747
28748         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28749
28750 2009-06-30  Bruno Haible  <bruno@clisp.org>
28751
28752         Reduce the number of uc_is_cased calls.
28753         * lib/unicase.h (casing_suffix_context_t): Add
28754         'first_char_except_ignorable' field.
28755         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28756         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28757         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28758         Update initializer.
28759         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28760         case-ignorable characters.
28761         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28762         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28763         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28764         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28765         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28766
28767 2009-06-30  Bruno Haible  <bruno@clisp.org>
28768
28769         Tests for module 'unicase/ignorable'.
28770         * modules/unicase/ignorable-tests: New file.
28771         * tests/unicase/test-ignorable.c: New file, generated by
28772         gen-uni-tables.
28773
28774         Tests for module 'unicase/cased'.
28775         * modules/unicase/cased-tests: New file.
28776         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28777         * tests/unicase/test-predicate-part1.h: New file, derived from
28778         tests/unictype/test-predicate-part1.h.
28779         * tests/unicase/test-predicate-part2.h: New file, same as
28780         tests/unictype/test-predicate-part2.h.
28781
28782         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28783         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28784         (output_casing_properties): New function.
28785         (main): Call it.
28786         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28787         * lib/unicase/cased.c: Include unictype/bitmap.h.
28788         (uc_is_cased): Define through a bitmap lookup.
28789         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28790         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28791         (uc_is_case_ignorable): Define through a bitmap lookup.
28792         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28793         lib/unictype/bitmap.h.
28794         (Depends-on): Add inline. Clean up.
28795         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28796         lib/unictype/bitmap.h.
28797         (Depends-on): Add inline. Clean up.
28798         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28799         recognition.
28800         * tests/unicase/test-u16-tolower.c (main): Likewise.
28801         * tests/unicase/test-u32-tolower.c (main): Likewise.
28802
28803 2009-06-30  Bruno Haible  <bruno@clisp.org>
28804
28805         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28806         * lib/unicase/u16-casemap.c: Likewise.
28807         * lib/unicase/u32-casemap.c: Likewise.
28808
28809 2009-06-29  Bruno Haible  <bruno@clisp.org>
28810
28811         Define u32_casefold as a wrapper around u32_ct_casefold.
28812         * lib/unicase/u32-casefold.c: Update.
28813         * modules/unicase/u32-casefold (Depends-on): Add
28814         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28815         unicase/empty-suffix-context. Clean up.
28816
28817         Define u16_casefold as a wrapper around u16_ct_casefold.
28818         * lib/unicase/u16-casefold.c: Update.
28819         * modules/unicase/u16-casefold (Depends-on): Add
28820         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28821         unicase/empty-suffix-context. Clean up.
28822
28823         Define u8_casefold as a wrapper around u8_ct_casefold.
28824         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28825         * lib/unicase/u8-casefold.c: Update.
28826         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28827         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28828
28829         Define u32_totitle as a wrapper around u32_ct_totitle.
28830         * lib/unicase/u32-totitle.c: Update.
28831         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28833
28834         Define u16_totitle as a wrapper around u16_ct_totitle.
28835         * lib/unicase/u16-totitle.c: Update.
28836         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28837         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28838
28839         Define u8_totitle as a wrapper around u8_ct_totitle.
28840         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28841         functions.
28842         (FUNC): Delegate to U_CT_TOTITLE.
28843         * lib/unicase/u8-totitle.c: Update.
28844         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28845         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28846
28847         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28848         invocation.
28849         * modules/unicase/u32-tolower (Depends-on): Add
28850         unicase/empty-prefix-context, unicase/empty-suffix-context.
28851
28852         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28853         invocation.
28854         * modules/unicase/u16-tolower (Depends-on): Add
28855         unicase/empty-prefix-context, unicase/empty-suffix-context.
28856
28857         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28858         * modules/unicase/u8-tolower (Depends-on): Add
28859         unicase/empty-prefix-context, unicase/empty-suffix-context.
28860
28861         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28862         invocation.
28863         * modules/unicase/u32-toupper (Depends-on): Add
28864         unicase/empty-prefix-context, unicase/empty-suffix-context.
28865
28866         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28867         invocation.
28868         * modules/unicase/u16-toupper (Depends-on): Add
28869         unicase/empty-prefix-context, unicase/empty-suffix-context.
28870
28871         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28872         * modules/unicase/u8-toupper (Depends-on): Add
28873         unicase/empty-prefix-context, unicase/empty-suffix-context.
28874
28875         New module 'unicase/u32-ct-casefold'.
28876         * lib/unicase/u32-ct-casefold.c: New file.
28877         * modules/unicase/u32-ct-casefold: New file.
28878
28879         New module 'unicase/u16-ct-casefold'.
28880         * lib/unicase/u16-ct-casefold.c: New file.
28881         * modules/unicase/u16-ct-casefold: New file.
28882
28883         New module 'unicase/u8-ct-casefold'.
28884         * lib/unicase/u8-ct-casefold.c: New file.
28885         * lib/unicase/u-ct-casefold.h: New file, derived from
28886         lib/unicase/u-casefold.h.
28887         * modules/unicase/u8-ct-casefold: New file.
28888
28889         New module 'unicase/u32-ct-totitle'.
28890         * lib/unicase/u32-ct-totitle.c: New file.
28891         * modules/unicase/u32-ct-totitle: New file.
28892
28893         New module 'unicase/u16-ct-totitle'.
28894         * lib/unicase/u16-ct-totitle.c: New file.
28895         * modules/unicase/u16-ct-totitle: New file.
28896
28897         New module 'unicase/u8-ct-totitle'.
28898         * lib/unicase/u8-ct-totitle.c: New file.
28899         * lib/unicase/u-ct-totitle.h: New file, derived from
28900         lib/unicase/u-totitle.h.
28901         * modules/unicase/u8-ct-totitle: New file.
28902
28903         New module 'unicase/u32-ct-tolower'.
28904         * lib/unicase/u32-ct-tolower.c: New file.
28905         * modules/unicase/u32-ct-tolower: New file.
28906
28907         New module 'unicase/u16-ct-tolower'.
28908         * lib/unicase/u16-ct-tolower.c: New file.
28909         * modules/unicase/u16-ct-tolower: New file.
28910
28911         New module 'unicase/u8-ct-tolower'.
28912         * lib/unicase/u8-ct-tolower.c: New file.
28913         * modules/unicase/u8-ct-tolower: New file.
28914
28915         New module 'unicase/u32-ct-toupper'.
28916         * lib/unicase/u32-ct-toupper.c: New file.
28917         * modules/unicase/u32-ct-toupper: New file.
28918
28919         New module 'unicase/u16-ct-toupper'.
28920         * lib/unicase/u16-ct-toupper.c: New file.
28921         * modules/unicase/u16-ct-toupper: New file.
28922
28923         New module 'unicase/u8-ct-toupper'.
28924         * lib/unicase/u8-ct-toupper.c: New file.
28925         * modules/unicase/u8-ct-toupper: New file.
28926
28927         Add context arguments to u*_casemap functions.
28928         * lib/unicase/unicasemap.h: Include unicase.h.
28929         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28930         suffix_context arguments.
28931         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28932         functions.
28933         (FUNC): Add prefix_context and suffix_context arguments. Use
28934         uc_is_cased and uc_is_case_ignorable.
28935         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28936         * lib/unicase/u16-casemap.c: Likewise.
28937         * lib/unicase/u32-casemap.c: Likewise.
28938         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28939         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28940         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28941         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28942         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28943         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28944
28945         New module 'unicase/u32-suffix-context'.
28946         * lib/unicase/u32-suffix-context.c: New file.
28947         * modules/unicase/u32-suffix-context: New file.
28948
28949         New module 'unicase/u16-suffix-context'.
28950         * lib/unicase/u16-suffix-context.c: New file.
28951         * modules/unicase/u16-suffix-context: New file.
28952
28953         New module 'unicase/u8-suffix-context'.
28954         * lib/unicase/u8-suffix-context.c: New file.
28955         * lib/unicase/u-suffix-context.h: New file.
28956         * modules/unicase/u8-suffix-context: New file.
28957
28958         New module 'unicase/empty-suffix-context'.
28959         * lib/unicase/empty-suffix-context.c: New file.
28960         * modules/unicase/empty-suffix-context: New file.
28961
28962         New module 'unicase/u32-prefix-context'.
28963         * lib/unicase/u32-prefix-context.c: New file.
28964         * modules/unicase/u32-prefix-context: New file.
28965
28966         New module 'unicase/u16-prefix-context'.
28967         * lib/unicase/u16-prefix-context.c: New file.
28968         * modules/unicase/u16-prefix-context: New file.
28969
28970         New module 'unicase/u8-prefix-context'.
28971         * lib/unicase/u8-prefix-context.c: New file.
28972         * lib/unicase/u-prefix-context.h: New file.
28973         * lib/unicase/context.h: New file.
28974         * modules/unicase/u8-prefix-context: New file.
28975
28976         New module 'unicase/empty-prefix-context'.
28977         * lib/unicase/empty-prefix-context.c: New file.
28978         * modules/unicase/empty-prefix-context: New file.
28979
28980         New module 'unicase/ignorable'.
28981         * lib/unicase/ignorable.c: New file.
28982         * modules/unicase/ignorable: New file.
28983
28984         New module 'unicase/cased'.
28985         * lib/unicase/caseprop.h: New file.
28986         * lib/unicase/cased.c: New file.
28987         * modules/unicase/cased: New file.
28988
28989         New functions for case mapping of substrings.
28990         * lib/unicase.h (casing_prefix_context_t): New type.
28991         (unicase_empty_prefix_context): New variable.
28992         (u8_casing_prefix_context, u16_casing_prefix_context,
28993         u32_casing_prefix_context, u8_casing_prefixes_context,
28994         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28995         declarations.
28996         (casing_suffix_context_t): New type.
28997         (unicase_empty_suffix_context): New variable.
28998         (u8_casing_suffix_context, u16_casing_suffix_context,
28999         u32_casing_suffix_context, u8_casing_suffixes_context,
29000         u16_casing_suffixes_context, u32_casing_suffixes_context,
29001         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29002         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29003         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29004         declarations.
29005
29006 2009-06-28  Jim Meyering  <meyering@redhat.com>
29007
29008         boostrap: indent only with spaces
29009         * build-aux/bootstrap: Indent only with spaces, never TABs.
29010
29011         bootstrap: split long lines
29012         * build-aux/bootstrap: Keep line length < 80.
29013
29014         bootstrap: sync from coreutils
29015         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29016         just as autoreconf does.  Verify a list of prerequisite
29017         package-name,version-number pairs if defined in bootstrap.conf.
29018         Refer to README-prereq, if prerequisites are not satisfied.
29019
29020 2009-06-27  Eric Blake  <ebb9@byu.net>
29021
29022         tests: add test for bogus NULL definition
29023         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29024         * tests/test-stdlib.c: Likewise.
29025         * tests/test-string.c: Likewise.
29026         * tests/test-locale.c: Likewise.
29027         * tests/test-unistd.c: Likewise.
29028         * modules/stdio-tests (Depends-on): Add verify.
29029         * modules/stdlib-tests (Depends-on): Likewise.
29030         * modules/string-tests (Depends-on): Likewise.
29031         * modules/locale-tests (Depends-on): Likewise.
29032         * modules/unistd-tests (Depends-on): Likewise.
29033
29034 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29035
29036         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29037         self-explaining comment.
29038         * m4/selinux-selinux-h: Update serial.
29039         (gl_LIBSELINUX): New macro, adding a warning for missing development
29040         packages to code extracted from...
29041         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29042         Add warning for missing development packages here, too.
29043
29044 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29045
29046         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29047
29048 2009-06-25  Eric Blake  <ebb9@byu.net>
29049
29050         version-etc: fix regression
29051         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29052         gcc.
29053         (version_etc): Use it, to catch bugs with trailing NULL.
29054         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29055         (version_etc_va): Fix logic bug.
29056         * modules/version-etc-tests: Add test.
29057         * tests/test-version-etc.c: New file.
29058         * tests/test-version-etc.sh: Likewise.
29059
29060 2009-06-25  Sam Steingold  <sds@gnu.org>
29061
29062         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29063         mbtowc declaration.
29064
29065 2009-06-25  Eric Blake  <ebb9@byu.net>
29066
29067         fpurge: migrate into <stdio.h>
29068         * lib/fpurge.h: Delete...
29069         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29070         * lib/fpurge.c (fpurge): Change declaring header.
29071         * modules/fpurge (Files): Drop deleted file.
29072         (Depends-on): Add stdio.
29073         (configure.ac): Set witness.
29074         * modules/stdio (Makefile.am): Support fpurge macros.
29075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29076         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29077         * lib/fflush.c: Update client.
29078         * tests/test-fpurge.c: Likewise.
29079         * NEWS: Mention the change.
29080
29081 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29082
29083         * lib/argp-version-etc.c (program_authors): Add const
29084         qualifier.
29085         * lib/version-etc.c: Fix typos in the comments.
29086         * modules/argp-version-etc: Depends on version-etc.
29087
29088 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29089
29090         argp-version-etc: new module.
29091
29092         * lib/argp-version-etc.c: New file.
29093         * lib/argp-version-etc.h: New file.
29094         * modules/argp-version-etc: New file.
29095         * modules/argp-version-etc-tests: New file.
29096         * tests/test-argp-version-etc.c: New test.
29097         * tests/test-argp-version-etc-1.sh: New test.
29098
29099 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29100
29101         Provide additional interfaces and documentation for version-etc
29102         module.
29103
29104         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29105         interfaces.
29106         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29107         prototypes.
29108
29109 2009-06-24  Bruno Haible  <bruno@clisp.org>
29110
29111         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29112         HAVE_LIB${NAME} macro.
29113         Reported by Sam Steingold <sds@gnu.org>.
29114
29115 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29116
29117         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29118         needed.
29119
29120 2009-06-21  Bruno Haible  <bruno@clisp.org>
29121
29122         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29123         work.
29124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29125         together with LIB${NAME}, LTLIB${NAME}.
29126         Reported by Sam Steingold <sds@gnu.org>.
29127
29128 2009-06-20  Jim Meyering  <meyering@redhat.com>
29129
29130         tests: make sc_require_test_exit_idiom more generic
29131         * top/maint.mk (Exit_witness_file): New overridable variable.
29132         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29133         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29134
29135 2009-06-19  Jim Meyering  <meyering@redhat.com>
29136
29137         hash: reverse order of src/dst parameters in an internal interface
29138         * lib/hash.c (transfer_entries): Reverse order of parameters to
29139         put DST before SRC.  Adjust callers.
29140
29141         tests: test-hash: avoid wholesale duplication
29142         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29143         Instead, use a loop and add a single conditional.
29144
29145         tests: test-hash: allow seed selection via a command line argument
29146         * tests/test-hash.c (get_seed): New function.
29147         (main): Use it.
29148
29149 2009-06-19  Eric Blake  <ebb9@byu.net>
29150
29151         hash: avoid memory leak on allocation failure
29152         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29153         failure.  Factor repeated algorithm...
29154         (transfer_entries): ...into new helper routine.
29155         (hash_delete): React to hash_rehash return value.
29156
29157         hash: reduce memory pressure in hash_rehash no-op case
29158         * lib/hash.c (next_prime): Avoid overflow.
29159         (hash_initialize): Factor bucket size computation...
29160         (compute_bucket_size): ...into new helper function.
29161         (hash_rehash): Use new function and open coding to reduce memory
29162         pressure, and avoid a memory leak in USE_OBSTACK code.
29163         Reported by Jim Meyering.
29164
29165 2009-06-18  Eric Blake  <ebb9@byu.net>
29166
29167         hash: make rotation more obvious
29168         * modules/hash (Depends-on): Add bitrotate and stdint.
29169         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29170         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29171         (SIZE_MAX): Rely on headers for definition.
29172         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29173         (raw_hasher): Use rotr_sz.
29174         Suggested by Jim Meyering.
29175
29176         hash: fix memory leak in last patch
29177         * lib/hash.c (hash_rehash): Avoid memory leak.
29178
29179         hash: avoid no-op rehashing
29180         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29181
29182         hash: provide default callback functions
29183         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29184         (hash_initialize): Use them as defaults.
29185         * tests/test-hash.c (main): Test this.
29186
29187         hash: minor optimization
29188         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29189         when possible.
29190         (hash_initialize): Document this promise.
29191         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29192         * tests/test-hash.c (hash_compare_strings): Test this.
29193
29194 2009-06-18  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29197         going to be replaced anyway.
29198
29199 2009-06-18  Bruno Haible  <bruno@clisp.org>
29200
29201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29202         in one place.
29203         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29204         be replaced anyway.
29205
29206 2009-06-18  Eric Blake  <ebb9@byu.net>
29207
29208         hash: check for resize before insertion
29209         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29210         threshold before insertion, so that a pathological hash_rehash
29211         that fills every bucket can still trigger another rehash.
29212
29213 2009-06-18  Jim Meyering  <meyering@redhat.com>
29214
29215         hash-tests: add a loop around the small tests
29216         * tests/test-hash.c (main): Repeat small tests with selected
29217         small initial table sizes.
29218
29219 2009-06-17  Eric Blake  <ebb9@byu.net>
29220
29221         hash: minor cleanups
29222         * lib/hash.h (hash_entry): Make opaque, by moving...
29223         * lib/hash.c (hash_entry): ...here.
29224         (hash_insert): Clarify restrictions on what can be inserted.
29225         (hash_get_next): Clarify when it is safe to remove an element
29226         during traversal.
29227         (check_tuning): Skip verification when tuning is known safe.
29228         (hash_initialize): Clarify restrictions on tuning.
29229
29230 2009-06-17  Jim Meyering  <jim@meyering.net>
29231         and Eric Blake  <ebb9@byu.net>
29232
29233         hash-tests: new module
29234         * modules/hash-tests: New file.
29235         * tests/test-hash.c: New file.
29236
29237 2009-06-17  Eric Blake  <ebb9@byu.net>
29238
29239         strstr-simple: document new module
29240         * MODULES.html.sh: Document new module.
29241
29242         strstr, strcasestr: replace on platforms with broken memchr
29243         * modules/strstr: Split into...
29244         * modules/strstr-simple: ...new module that does not care about
29245         performance, but does care about glibc bug.
29246         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29247         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29248         if platform memchr is broken, per Debian bug 521737.
29249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29250         memchr.
29251         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29252         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29253         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29254         * modules/mountlist (Depends-on): Add strstr-simple.
29255         * modules/gen-uni-tables (Depends-on): Likewise.
29256         * modules/argz (Depends-on): Add strstr.
29257
29258 2009-06-17  Bruno Haible  <bruno@clisp.org>
29259
29260         * modules/posix_spawn-internal (Depends-on): Add errno.
29261
29262 2009-06-17  Bruno Haible  <bruno@clisp.org>
29263
29264         Define missing ESTALE on Interix 3.5.
29265         * lib/errno.in.h (ESTALE): Assign a value if missing.
29266         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29268         missing.
29269         * doc/posix-headers/errno.texi: Mention the Interix bug.
29270         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29271
29272 2009-06-15  Eric Blake  <ebb9@byu.net>
29273
29274         memchr, memchr2: add valgrind exception
29275         * lib/memchr.valgrind: New file.
29276         * lib/memchr2.valgrind: New file.
29277         * modules/memchr (Files): Distribute valgrind file.
29278         * modules/memchr2 (Files): Likewise.
29279
29280         docs: memchr is no longer obsolete
29281         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29282         * lib/string.in.h (memchr): Simplify logic.
29283
29284 2009-06-14  Jim Meyering  <meyering@redhat.com>
29285
29286         link-follow: fix the "checking..." message to not mention trailing slash
29287         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29288         never considered trailing slashes.
29289
29290 2009-06-14  Bruno Haible  <bruno@clisp.org>
29291
29292         * m4/memchr.m4: Mention also the bug on IA-64.
29293         * doc/posix-functions/memchr.texi: Likewise.
29294
29295 2009-06-12  Eric Blake  <ebb9@byu.net>
29296
29297         memchr: detect broken x86_64 and alpha implementations
29298         * modules/memchr-tests (Depends-on): Move mmap detection...
29299         * modules/memchr (Depends-on): ...here.
29300         (configure.ac): Set indicator.
29301         * lib/string.in.h (memchr): Declare replacement.
29302         * modules/string (Makefile.am): Trigger replacement.
29303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29304         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29305         bugs.
29306         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29307         * modules/getpagesize (License): Relax license.
29308
29309 2009-06-11  Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/idpriv.h: Add more references.
29312
29313 2009-06-08  Bruno Haible  <bruno@clisp.org>
29314
29315         Tests for module 'idpriv-droptemp'.
29316         * modules/idpriv-droptemp-tests: New file.
29317         * tests/test-idpriv-droptemp.sh: New file.
29318         * tests/test-idpriv-droptemp.su.sh: New file.
29319         * tests/test-idpriv-droptemp.c: New file.
29320
29321         New module 'idpriv-droptemp'.
29322         * lib/idpriv-droptemp.c: New file.
29323         * modules/idpriv-droptemp: New file.
29324
29325 2009-06-08  Bruno Haible  <bruno@clisp.org>
29326
29327         Tests for module 'idpriv-drop'.
29328         * modules/idpriv-drop-tests: New file.
29329         * tests/test-idpriv-drop.sh: New file.
29330         * tests/test-idpriv-drop.su.sh: New file.
29331         * tests/test-idpriv-drop.c: New file.
29332
29333         New module 'idpriv-drop'.
29334         * lib/idpriv.h: New file.
29335         * lib-idpriv-drop.c: New file.
29336         * m4/idpriv.m4: New file.
29337         * modules/idpriv-drop: New file.
29338
29339 2009-06-08  Bruno Haible  <bruno@clisp.org>
29340
29341         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29342         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29343         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29344         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29345         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29348
29349 2009-06-08  Eric Blake  <ebb9@byu.net>
29350
29351         test-strstr: use memory fence, when possible
29352         * tests/test-strstr.c (main): Use memory fence, in order to be
29353         more likely to trigger Debian bug 521737.
29354         * modules/strstr-tests (Files): Pull in additional files.
29355
29356         memchr: no longer obsolete, for wider field testing
29357         * modules/memchr (Status, Notice): Delete, this module is no
29358         longer obsolete.
29359         * modules/vasnprintf (Depends-on): Add memchr.
29360
29361 2009-06-07  Jim Meyering  <meyering@redhat.com>
29362
29363         hash: declare some functions with the warn_unused_result attribute
29364         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29365
29366 2009-06-07  Bruno Haible  <bruno@clisp.org>
29367
29368         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29369         Reported by Eric Blake.
29370
29371 2009-06-06  Eric Blake  <ebb9@byu.net>
29372
29373         test-alignof: fix typo with long double
29374         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29375         compiler error.
29376
29377 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29378
29379         Escape non-texinfo { and }s.
29380         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29381         markup error.
29382
29383 2009-06-04  Jim Meyering  <meyering@redhat.com>
29384
29385         gitlog-to-changelog: don't infloop on an empty commit log
29386         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29387         Reported by Boris Petersen <transacid@centerim.org>.
29388
29389 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29390
29391         version-etc: extend for packagers
29392         Add three new configure options, intended for packagers:
29393           --with-packager="packager name"
29394           --with-packager-version="packager-specific version"
29395           --with-packager-bug-reports="packager bug reporting"
29396         An example with coreutils:
29397           $ ./configure \
29398             --with-packager=Gentoo \
29399             --with-packager-bug-report=http://bugs.gentoo.org/ \
29400             --with-packager-version="patchset 1.6"
29401           $ ./src/ls --version | head -n2
29402           ls (GNU coreutils) 7.1-dirty
29403           Packaged by Gentoo (patchset 1.6)
29404         Note that the bug reporting info via --help doesn't show up because
29405         coreutils uses its own custom emit_bug_reporting_address() implementation
29406         in src/system.h.  If it didn't, it'd look like:
29407           $ ./src/ls --help | tail -n4
29408           Report bugs to <bug-coreutils@gnu.org>.
29409           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29410           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29411           General help using GNU software: <http://www.gnu.org/gethelp/>.
29412         * lib/version-etc.c: Print new information, if provided.
29413         * m4/version-etc.m4: New file.
29414         * modules/version-etc (Files): Add m4/version-etc.m4.
29415         (configure.ac): Add gl_VERSION_ETC.
29416
29417 2009-05-31  Bruno Haible  <bruno@clisp.org>
29418
29419         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29420         and 'int64_t'.
29421         * modules/alignof-tests (Dependencies): Add stdint.
29422         Reported by Eric Blake.
29423
29424 2009-05-31  Bruno Haible  <bruno@clisp.org>
29425
29426         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29427         restriction due to compiler bugs.
29428         Reported by Eric Blake.
29429
29430 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29431             Bruno Haible  <bruno@clisp.org>
29432
29433         Fix test-alignof failure.
29434         * lib/alignof.h (alignof_slot): New macro.
29435         (alignof_type): New macro, with the same semantics as the previous
29436         'alignof'.
29437         (alignof): Alias to alignof_slot.
29438         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29439         check that the results are usable as constant expressions.
29440
29441 2009-05-31  Bruno Haible  <bruno@clisp.org>
29442
29443         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29444         * tests/test-memchr.c (main): Check that memchr does not read past the
29445         first occurrence of the byte.
29446         * tests/test-strstr.c (main): Update comment.
29447         Suggested by Eric Blake.
29448
29449 2009-05-30  Bruno Haible  <bruno@clisp.org>
29450
29451         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29452         detail how to use dumpbin.
29453         Reported by David Byron <dbyron@dbyron.com>.
29454
29455 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29456
29457         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29458
29459 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29460
29461         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29462
29463 2009-05-28  Bruno Haible  <bruno@clisp.org>
29464
29465         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29466         build-aux/ files.
29467
29468 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29469
29470         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29471
29472 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29473
29474         * gnulib-tool (sed_transform_main_lib_file)
29475         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29476         regexps.
29477
29478 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29479
29480         * tests/test-strstr.c: Add another self-test.
29481         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29482         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29483
29484 2009-05-23  Bruno Haible  <bruno@clisp.org>
29485
29486         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29487         change.
29488
29489 2009-05-21  Bruno Haible  <bruno@clisp.org>
29490
29491         Simplify use of mode_t varargs.
29492         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29493         uses 'mode_t' or 'int'.
29494         * lib/openat.c (openat): Likewise.
29495         * lib/open-safer.c (open_safer): Likewise.
29496         * m4/mode_t.m4: New file.
29497         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29498         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29500         * modules/open (Files): Add m4/mode_t.m4.
29501         * modules/openat (Files): Likewise.
29502         * modules/fcntl-safer (Files): Likewise.
29503         Suggested by Eric Blake.
29504
29505 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29506
29507         * doc/glibc-functions/fallocate.texi: New file.
29508         * doc/gnulib.texi: Include it.
29509
29510 2009-05-21  Eric Blake  <ebb9@byu.net>
29511             Bruno Haible  <bruno@clisp.org>
29512
29513         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29514         invocations.
29515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29516
29517 2009-05-21  Eric Blake  <ebb9@byu.net>
29518             Bruno Haible  <bruno@clisp.org>
29519
29520         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29521         include_next. Fix of 2008-11-20 commit.
29522         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29523         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29524         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29525         NEXT_MATH_H.
29526         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29527         instead of NEXT_MATH_H.
29528
29529 2009-05-21  Bruno Haible  <bruno@clisp.org>
29530
29531         Avoid redefinition warnings for SIZE_MAX.
29532         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29533         Reported by Simon Josefsson.
29534
29535 2009-05-21  Bruno Haible  <bruno@clisp.org>
29536
29537         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29538         AC_CACHE_VAL.
29539
29540 2009-05-20  Bruno Haible  <bruno@clisp.org>
29541
29542         Make zeroptr.h work on mingw.
29543         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29544         mprotect.
29545         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29546         * modules/memchr2-tests (configure.ac): Likewise.
29547         * modules/memcmp-tests (configure.ac): Likewise.
29548         * modules/memmem-tests (configure.ac): Likewise.
29549         * modules/memrchr-tests (configure.ac): Likewise.
29550         Reported by Simon Josefsson.
29551
29552 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29553
29554         * tests/test-glob.c: Include string.h for strcmp prototype.
29555
29556 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29557
29558         * modules/getdelim (Depends-on): Add explicit stdint, although it
29559         was implicitly already pulled in via realloc-posix.
29560         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29561
29562 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29563
29564         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29565         G. Christensen" <tgc@jupiterrise.com>.
29566         * m4/sys_socket_h.m4: Check for sa_family_t.
29567         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29568         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29569         * tests/test-sys_socket.c: Check that sa_family_t works.
29570
29571 2009-05-18  Eric Blake  <ebb9@byu.net>
29572
29573         maint.mk: allow gnulib_dir in VPATH build
29574         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29575
29576 2009-05-15  Jim Meyering  <meyering@redhat.com>
29577
29578         maint.mk: Give gnulib_dir a default definition.
29579         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29580         Thus, most packages no longer need to specify this variable in cfg.mk
29581
29582 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29583
29584         rename.m4: fix typos that would make non-mingw cross-configure fail
29585         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29586
29587 2009-05-13  Eric Blake  <ebb9@byu.net>
29588
29589         mmap-anon: avoid out-of-order autoconf expansion
29590         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29591         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29592         * modules/memchr-tests (Depends-on): Add extensions.
29593         * modules/memchr2-tests (Depends-on): Add extensions.
29594         * modules/memcmp-tests (Depends-on): Add extensions.
29595         * modules/memmem-tests (Depends-on): Add extensions.
29596         * modules/memrchr-tests (Depends-on): Add extensions.
29597
29598 2009-05-13  Bruno Haible  <bruno@clisp.org>
29599
29600         Make some tests ISO C 99 compliant.
29601         * tests/zerosize-ptr.h: New file.
29602         * tests/test-memchr.c: Include zerosize-ptr.h.
29603         (main): Use a zero-size object pointer instead of NULL.
29604         * tests/test-memchr2.c: Include zerosize-ptr.h.
29605         (main): Use a zero-size object pointer instead of NULL.
29606         * tests/test-memcmp.c: Include zerosize-ptr.h.
29607         (main): Use a zero-size object pointer instead of NULL.
29608         * tests/test-memmem.c: Include zerosize-ptr.h.
29609         (main): Use a zero-size object pointer instead of NULL.
29610         * tests/test-memrchr.c: Include zerosize-ptr.h.
29611         (main): Use a zero-size object pointer instead of NULL.
29612         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29613         m4/mmap-anon.m4.
29614         (Depends-on): Add getpagesize.
29615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29616         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29617         m4/mmap-anon.m4.
29618         (Depends-on): Add getpagesize.
29619         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29620         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29621         m4/mmap-anon.m4.
29622         (Depends-on): Add getpagesize.
29623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29624         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29625         m4/mmap-anon.m4.
29626         (Depends-on): Add getpagesize.
29627         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29628         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29629         m4/mmap-anon.m4.
29630         (Depends-on): Add getpagesize.
29631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29632
29633 2009-05-12  Bruno Haible  <bruno@clisp.org>
29634
29635         Tests for module 'alignof'.
29636         * modules/alignof-tests: New file.
29637         * tests/test-alignof.c: New file.
29638
29639 2009-05-12  Bruno Haible  <bruno@clisp.org>
29640
29641         Fix alignof macro.
29642         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29643         vendor compilers that are always correct.
29644
29645 2009-05-12  Bruno Haible  <bruno@clisp.org>
29646
29647         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29648         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29649         not whether its fully works.
29650
29651 2009-05-12  Bruno Haible  <bruno@clisp.org>
29652
29653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29654
29655 2009-05-12  Jim Meyering  <meyering@redhat.com>
29656
29657         * top/maint.mk: Adjust backslash alignment.
29658
29659 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29660
29661         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29662
29663 2009-05-11  Eric Blake  <ebb9@byu.net>
29664
29665         argp: avoid undefined behavior
29666         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29667         macros.
29668
29669 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29670
29671         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29672         user.name to prevent git commit from complaining.
29673
29674 2009-05-10  Bruno Haible  <bruno@clisp.org>
29675
29676         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29677         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29678         it rewrites every file name only once.
29679         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29680
29681 2009-05-08  Bruno Haible  <bruno@clisp.org>
29682
29683         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29684         instead of 'max'.
29685
29686 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29687
29688         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29689         sockaddr_storage test.
29690
29691 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29692
29693         * modules/sys_socket (Makefile.am): Substitute
29694         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29695         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29696         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29697         * tests/test-sys_socket.c: Check sockaddr_storage.
29698
29699 2009-05-08  Bruno Haible  <bruno@clisp.org>
29700
29701         New module 'alignof'.
29702         * lib/alignof.h: New file.
29703         * modules/alignof: New file.
29704
29705 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29706             Bruno Haible  <bruno@clisp.org>
29707
29708         Fix test-file-has-acl on FreeBSD.
29709         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29710         mask is implicitly added.
29711         * tests/test-file-has-acl.c: Include <signal.h>.
29712         (main): Terminate the test after 5 seconds.
29713         * modules/acl-tests (configure.ac): Check for alarm function.
29714
29715 2009-05-04  Bruno Haible  <bruno@clisp.org>
29716
29717         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29719         * modules/errno (configure.ac): Drop AC_REQUIRE.
29720         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29721         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29722
29723 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29724
29725         * modules/glob-tests: New module.
29726         * tests/test-glob.c: Add.
29727
29728 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29729
29730         * modules/fnmatch-tests: New module.
29731         * tests/test-fnmatch.c: Add.
29732
29733 2009-05-04  Eric Blake  <ebb9@byu.net>
29734
29735         maint: make the new no-submodule-changes rule VPATH-safe
29736         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29737
29738 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29739             Bruno Haible  <bruno@clisp.org>
29740
29741         acl: Fix infinite loop on FreeBSD.
29742         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29743         of return value from acl_get_entry.
29744         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29745         Likewise.
29746
29747 2009-05-03  Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/acl-internal.h (acl_entries): Clarify return value.
29750         * lib/acl_entries.c (acl_entries): Likewise.
29751
29752 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29753
29754         Bug fix in acl module.
29755         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29756
29757 2009-05-03  Bruno Haible  <bruno@clisp.org>
29758
29759         Create gperf-generated file in the source dir, not in the build dir.
29760         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29761         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29762         * modules/unicase/locale-language (unicase/locale-languages.h):
29763         Likewise.
29764         * modules/unicase/special-casing (unicase/special-casing-table.h):
29765         Likewise.
29766         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29767         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29768         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29769         Reported by Ralf Wildenhues.
29770
29771 2009-05-03  Bruno Haible  <bruno@clisp.org>
29772
29773         * modules/fnmatch (Description, configure.ac): Taken from
29774         fnmatch-posix.
29775         * modules/fnmatch-posix: Turn into a symbolic reference to the
29776         'fnmatch' module, and deprecate.
29777         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29778
29779 2009-05-03  Bruno Haible  <bruno@clisp.org>
29780
29781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29782         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29783         Reported by Ralf Wildenhues.
29784
29785 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29786
29787         * m4/fnmatch.m4: Fix fnmatch re-define.
29788
29789 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29790
29791         priv-set: new module and tests; adapt write-any-file
29792         * lib/priv-set.c: New file.
29793         * lib/priv-set.h: New file.
29794         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29795         * lib/write-any-file.c: Simplify by using priv-set module.
29796         * m4/priv-set.m4: New file.
29797         * modules/priv-set: New file.
29798         * modules/unlinkdir: Add dependency on priv-set module.
29799         * modules/write-any-file: Likewise.
29800
29801         Tests for module 'priv-set'.
29802         * modules/priv-set-tests: New file.
29803         * tests/test-priv-set.c: New file.
29804
29805 2009-05-03  Jim Meyering  <meyering@redhat.com>
29806             Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29809         use the converted UTF-8 variant of the name instead.
29810
29811 2009-05-03  Jim Meyering  <meyering@redhat.com>
29812
29813         tests: tighten some getdate tests
29814         * tests/test-getdate.c (main): Tighten tests: require equality,
29815         not just greater than.  Set TZ envvar to UTC0.
29816
29817 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29818
29819         getdate: correctly interpret "next monday" when run on a Monday
29820         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29821         that e.g., "next tues" (when run on a tuesday) results in a date
29822         that is one week in the future, and not today's date.
29823         I.e., add a week when the wday is the same as the current one.
29824         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29825         and earlier by Martin Bernreuther and Jan Minář.
29826         * tests/test-getdate.c (main): Check that "next DAY" is always in
29827         the future and that "last DAY" is always in the past.
29828
29829 2009-05-02  Jim Meyering  <meyering@redhat.com>
29830
29831         build: ensure that a release build fails when a submodule is unclean
29832         * top/maint.mk (no-submodule-changes): New rule.
29833         (alpha beta major): Depend on it.
29834
29835 2009-05-02  Bruno Haible  <bruno@clisp.org>
29836
29837         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29838         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29839         shell variable gl_fnmatch_required to detect which variant is
29840         requested.
29841         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29842         gl_FUNC_FNMATCH_POSIX.
29843         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29844         exclude fnmatch-posix.
29845
29846 2009-05-02  Bruno Haible  <bruno@clisp.org>
29847
29848         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29849         * modules/mbsrtowcs (License): Change to LGPLv2+.
29850         * modules/strnlen1 (License): Likewise.
29851         Reported by Simon Josefsson.
29852
29853 2009-05-02  Bruno Haible  <bruno@clisp.org>
29854
29855         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29856         "cross".
29857         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29858         gnulib-tool was called with option --source-base=lib.
29859
29860 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29861
29862         Use automake *-local hooks without commands, for extensibility.
29863         * modules/localcharset (Makefile.am): Rename install-exec-local
29864         rule to install-exec-localcharset, and make it a prerequisite of
29865         install-exec-local.  Likewise, rename the uninstall-local rule to
29866         uninstall-localcharset, and make it a prerequisite of the former.
29867
29868 2009-05-01  Bruno Haible  <bruno@clisp.org>
29869
29870         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29871         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29872         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29874         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29875         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29876         m4/locale-zh.m4, m4/codeset.m4.
29877
29878         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29879         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29880         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29881         m4/locale-zh.m4.
29882
29883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29884         REPLACE_WCRTOMB if mbstate_t must be replaced.
29885         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29886         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29887
29888 2009-05-01  Bruno Haible  <bruno@clisp.org>
29889
29890         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29891         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29892         dngettext, dcngettext, textdomain, bindtextdomain,
29893         bind_textdomain_codeset): Undefine before redefining.
29894
29895 2009-04-30  Bruno Haible  <bruno@clisp.org>
29896
29897         Fix bug introduced on 2009-04-25.
29898         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29899         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29900         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29901         is defined.
29902         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29903         is defined.
29904         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29905         is defined.
29906         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29907
29908 2009-04-28  Bruno Haible  <bruno@clisp.org>
29909
29910         Comment tweaks.
29911         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29912         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29913         * lib/unicase.h (u*_casexfrm): Likewise.
29914         Reported by Paolo Bonzini.
29915
29916 2009-04-28  Bruno Haible  <bruno@clisp.org>
29917
29918         Fix a compilation error.
29919         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29920         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29921         Reported by Jim Meyering.
29922
29923 2009-04-27  Bruno Haible  <bruno@clisp.org>
29924
29925         New module 'libunistring'.
29926         * modules/libunistring: New file.
29927         * m4/libunistring.m4: New file.
29928         * MODULES.html.sh (Unicode string functions): Add it.
29929
29930 2009-04-27  Eric Blake  <ebb9@byu.net>
29931
29932         maint.mk: allow package-specific header to provide <config.h>
29933         * top/maint.mk (sc_require_config_h): New variable.
29934         (sc_require_config_h, sc_require_config_h_first): Use it.
29935
29936 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29937
29938         * top/maint.mk (sc_avoid_if_before_free): Except
29939         useless-if-before-free script.
29940
29941 2009-04-27  Eric Blake  <ebb9@byu.net>
29942
29943         maintainer-makefile: depend on all required helper scripts
29944         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29945         useless-if-before-free.
29946         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29947         version, rather than assuming gnulib checkout is available.
29948         Reported by Simen Josefsson.
29949
29950 2009-04-26  Bruno Haible  <bruno@clisp.org>
29951
29952         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29953         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29954         "../" or "..".
29955
29956 2009-04-26  Bruno Haible  <bruno@clisp.org>
29957
29958         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29959         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29960         AC_LIB_HAVE_LINKFLAGS.
29961
29962 2009-04-26  Bruno Haible  <bruno@clisp.org>
29963
29964         Simplify calling convention of u*_conv_from_encoding.
29965         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29966         u32_conv_from_encoding): Expect a resultbuf argument and return the
29967         result directly as a pointer.
29968         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29969         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29970         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29971         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29972         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29973         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29974         Update.
29975         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29976         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29977         * lib/vasnprintf.c (VASNPRINTF): Update.
29978         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29979         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29980         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29981         * NEWS: Mention the change.
29982
29983 2009-04-26  Bruno Haible  <bruno@clisp.org>
29984
29985         Simplify calling convention of u*_conv_to_encoding.
29986         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29987         u32_conv_to_encoding): Expect a resultbuf argument and return the
29988         result directly as a pointer.
29989         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29990         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29991         freeing scaled_offsets if mem_iconveha failed.
29992         * lib/unicase/u-casexfrm.h (FUNC): Update.
29993         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29994         * lib/vasnprintf.c (VASNPRINTF): Update.
29995         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29996         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29997         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29998         * NEWS: Mention the change.
29999
30000 2009-04-26  Bruno Haible  <bruno@clisp.org>
30001
30002         Avoid test failures on AIX and OSF/1.
30003         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30004         malloc(0).
30005         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30006         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30007         Likewise.
30008         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30009         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30010         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30011         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30012         * doc/posix-functions/malloc.texi: Document the portability problem
30013         related to malloc(0).
30014
30015 2009-04-26  Bruno Haible  <bruno@clisp.org>
30016
30017         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30018         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30019         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30020
30021 2009-04-25  Bruno Haible  <bruno@clisp.org>
30022
30023         Avoid link error when creating a namespace clean library.
30024         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30025         as macro with arguments if already defined as an alias.
30026         * lib/signbitf.c (gl_signbitf): Don't undefine.
30027         * lib/signbitd.c (gl_signbitd): Don't undefine.
30028         * lib/signbitl.c (gl_signbitl): Don't undefine.
30029
30030 2009-04-25  Jim Meyering  <meyering@redhat.com>
30031
30032         vc-list-files: fix another quoting bug
30033         * build-aux/vc-list-files: Avoid sed backslash expansion
30034         of pathological directory names.
30035
30036 2009-04-25  Eric Blake  <ebb9@byu.net>
30037
30038         vc-list-files: fix shell quoting error
30039         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30040         timestamp.
30041
30042 2009-04-25  Jim Meyering  <meyering@redhat.com>
30043
30044         vc-list-files: restore lost functionality with subdir argument
30045         * build-aux/vc-list-files: When given a non-"." sub-directory
30046         argument, substitute the $dir/ prefix back onto each resulting name.
30047         Otherwise, coreutils' root_tests check would fail.
30048
30049 2009-04-24  Eric Blake  <ebb9@byu.net>
30050
30051         vc-list-files: ignore git symlinks
30052         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30053         than ls-files, to ignore git symlinks.
30054
30055         maint.mk: import improvements from m4
30056         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30057         (move_if_change): Delete unused macro.
30058         (news-date-check, vc-diff-check): Support VPATH builds.
30059         (announcement): Likewise.  Split --bootstrap-tools list...
30060         (boostrap-tools): ...into separate list, which can be overridden
30061         in cfg.mk.
30062         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30063         requiring dependency on useless-if-before-free module.
30064         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30065         Support VPATH builds.
30066
30067 2009-04-24  Jim Meyering  <meyering@redhat.com>
30068
30069         maint.mk: remove coreutils-specific rules and variables
30070         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30071         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30072         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30073
30074         maint.mk: remove obsolete rule
30075         * top/maint.mk (rel-check): Remove rule.
30076         (WGET, WGETFLAGS): Remove now-unused variables.
30077
30078 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30079
30080         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30081         consistency.
30082
30083         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30084         '$(PATH_SEPARATOR)' instead of ':'.
30085
30086 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30087
30088         * lib/getopt1.c (main): Use 'const' for static array.
30089
30090 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30091
30092         * top/maint.mk: Sync with coreutils.
30093         * NEWS: Explain incompatibilities.
30094
30095 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30096             Bruno Haible  <bruno@clisp.org>
30097
30098         Fix cross-compilation results.
30099         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30100         statement, as third argument of AC_TRY_RUN.
30101         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30102         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30103         Likewise.
30104         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30105         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30106         Likewise.
30107         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30108         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30109         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30110
30111 2009-04-20  Bruno Haible  <bruno@clisp.org>
30112
30113         Avoid test failure on mingw.
30114         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30115
30116 2009-04-20  Bruno Haible  <bruno@clisp.org>
30117
30118         Avoid compilation error on mingw.
30119         * modules/localename-tests (Depends-on): Add locale.
30120
30121 2009-04-19  Bruno Haible  <bruno@clisp.org>
30122
30123         Support for building a shared library on Windows platforms.
30124         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30125         (main): Test the presence of UNINORM_NFC here.
30126         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30127         (main): Test the presence of UNINORM_NFD here.
30128         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30129         (main): Test the presence of UNINORM_NFKC here.
30130         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30131         (main): Test the presence of UNINORM_NFKD here.
30132
30133 2009-04-19  Bruno Haible  <bruno@clisp.org>
30134
30135         Avoid a compiler warning.
30136         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30137         Change type of variable 'sequence'.
30138
30139 2009-04-19  Bruno Haible  <bruno@clisp.org>
30140
30141         * modules/configmake (Makefile.am): When the contents of configmake.h
30142         does not change, arrange to preserve its modification time.
30143
30144 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30145
30146         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30147         gettext domain.
30148
30149 2009-04-16  Jim Meyering  <meyering@redhat.com>
30150
30151         useless-if-before-free: improve conversion code
30152         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30153         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30154
30155 2009-04-14  Bruno Haible  <bruno@clisp.org>
30156
30157         * modules/fcntl (Depends-on): Add extensions.
30158         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30159
30160 2009-04-12  Ben Pfaff  <blp@gnu.org>
30161
30162         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30163         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30164
30165 2009-03-20  Ben Pfaff  <blp@gnu.org>
30166
30167         Make rename replace existing destinations on Windows.
30168         * m4/rename.m4: Add test for Mingw.
30169         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30170         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30171         * doc/posix-functions/rename.texi: Document.
30172
30173 2009-04-10  Bruno Haible  <bruno@clisp.org>
30174
30175         New include file "iconveh.h".
30176         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30177         * lib/striconveh.h: Include it.
30178         (enum iconv_ilseq_handler): Remove definition.
30179         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30180         striconveh.h.
30181         * lib/striconveha.c: Include striconveh.h.
30182         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30183         * modules/striconveh (Files): Add lib/iconveh.h.
30184         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30185         lib/striconveh.h.
30186
30187 2009-04-10  Bruno Haible  <bruno@clisp.org>
30188
30189         * lib/uniconv.h: Update comment.
30190
30191 2009-04-10  Bruno Haible  <bruno@clisp.org>
30192
30193         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30194         always.
30195         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30196         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30197         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30198         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30199         "unistring-notinline.h", so that the function gets defined always.
30200         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30201         * lib/unistr/u8-uctomb.c: Likewise.
30202         * lib/unistr/u16-mbtouc.c: Likewise.
30203         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30204         * lib/unistr/u16-uctomb.c: Likewise.
30205         * lib/unistr/u32-mbtouc.c: Likewise.
30206         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30207         * lib/unistr/u32-uctomb.c: Likewise.
30208
30209 2009-04-10  Bruno Haible  <bruno@clisp.org>
30210
30211         Mark 'utime' obsolete.
30212         * modules/utime (Status, Notice): New sections.
30213         Suggested by Jim Meyering.
30214
30215         Fix cross-compile guess for utime test.
30216         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30217         autoconf.
30218         * doc/posix-functions/utime.texi: Give more precisions.
30219         Reported by Jan <ipif@ymail.com>.
30220
30221 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30222
30223         filevercmp: correct today's change
30224         * lib/filevercmp.c: Also handle coreutils' test inputs.
30225         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30226
30227         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30228         for reporting it.
30229         * lib/filevercmp.c: Special handle for "", "." and "..".
30230         * tests/test-filevercmp.c: Enlarge the set suite.
30231
30232 2009-04-07  Jim Meyering  <meyering@redhat.com>
30233
30234         useless-if-before-free: show how to remove braced useless free, too
30235         * build-aux/useless-if-before-free: still only in a comment, though.
30236
30237 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30238
30239         maint.mk: import changes to syntax-check macros from coreutils
30240         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30241         Use them in the relevant macros.
30242
30243 2009-04-06  Bruno Haible  <bruno@clisp.org>
30244
30245         Fix unportable use of bit-fields.
30246         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30247         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30248         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30249
30250 2009-04-06  Bruno Haible  <bruno@clisp.org>
30251
30252         Avoid test failures on AIX and OSF/1.
30253         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30254         that malloc(0) = NULL.
30255         * tests/unicase/test-u8-tolower.c (check): Likewise.
30256         * tests/unicase/test-u8-totitle.c (check): Likewise.
30257         * tests/unicase/test-u8-toupper.c (check): Likewise.
30258         * tests/unicase/test-u16-casefold.c (check): Likewise.
30259         * tests/unicase/test-u16-tolower.c (check): Likewise.
30260         * tests/unicase/test-u16-totitle.c (check): Likewise.
30261         * tests/unicase/test-u16-toupper.c (check): Likewise.
30262         * tests/unicase/test-u32-casefold.c (check): Likewise.
30263         * tests/unicase/test-u32-tolower.c (check): Likewise.
30264         * tests/unicase/test-u32-totitle.c (check): Likewise.
30265         * tests/unicase/test-u32-toupper.c (check): Likewise.
30266         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30267         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30268         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30269         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30270         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30271         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30272         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30273         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30274         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30275         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30276         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30277         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30278
30279 2009-04-05  Bruno Haible  <bruno@clisp.org>
30280
30281         Work around an autoconf limitation.
30282         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30283         comment line if it would be longer than 3 KB.
30284
30285 2009-04-05  Bruno Haible  <bruno@clisp.org>
30286
30287         Avoid test failure with libiconv-1.13.
30288         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30289         of the expected test results.
30290
30291 2009-04-05  Bruno Haible  <bruno@clisp.org>
30292
30293         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30294         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30295         that it should be installed.
30296
30297 2009-04-05  Bruno Haible  <bruno@clisp.org>
30298
30299         * gnulib-tool: New option --copy-file.
30300         (func_usage): Document it.
30301         (func_dest_tmpfilename): Moved out of func_import.
30302         (func_add_file, func_update_file): New functions, extracted from
30303         func_import.
30304         (func_import): Update.
30305
30306 2009-04-05  Karl Berry  <karl@gnu.org>
30307
30308         * README: prominently mention gnulib-tool.
30309         Rearrange sections so getting the code is near the top.
30310
30311 2009-04-05  Bruno Haible  <bruno@clisp.org>
30312
30313         * lib/unicase.h: Mention u*_cmp2.
30314         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30315         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30316         * lib/unicase/ulc-casecmp.c: Likewise.
30317         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30318         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30319         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30320         unistr/u8-cmp.
30321         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30322         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30323         unistr/u16-cmp.
30324         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30325         unistr/u32-cmp.
30326
30327         * lib/uninorm.h: Mention u*_cmp2.
30328         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30329         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30330         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30331         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30332         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30333         unistr/u8-cmp.
30334         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30335         unistr/u16-cmp.
30336         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30337         unistr/u32-cmp.
30338
30339         New module 'unistr/u32-cmp2'.
30340         * lib/unistr/u32-cmp2.c: New file.
30341         * modules/unistr/u32-cmp2: New file.
30342
30343         New module 'unistr/u16-cmp2'.
30344         * lib/unistr/u16-cmp2.c: New file.
30345         * modules/unistr/u16-cmp2: New file.
30346
30347         New module 'unistr/u8-cmp2'.
30348         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30349         * lib/unistr/u8-cmp2.c: New file.
30350         * lib/unistr/u-cmp2.h: New file.
30351         * modules/unistr/u8-cmp2: New file.
30352
30353 2009-04-05  Bruno Haible  <bruno@clisp.org>
30354
30355         * lib/unictype.h (uc_property_is_valid): New macro.
30356         * tests/unictype/test-pr_byname.c (main): Use it.
30357
30358         * lib/unistr.h: Doc fixes.
30359         * lib/uniconv.h: Doc fixes.
30360         * lib/unictype.h: Doc fixes.
30361
30362 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30363
30364         Port coreutils 7.2 to Solaris 8.
30365
30366         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30367         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30368         for Solaris 8.  This is a bit of a hack, as it means it's the
30369         caller's responsibility to add -lnsl if needed, but most likely it
30370         won't be needed since only getaddrinfo uses this and getaddrinfo
30371         isn't needed on Solaris 8.
30372
30373         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30374         problem to Solaris 8 encountered with coreutils 7.2, which
30375         resulted in a message "fnmatch.c:292: warning: passing argument 4
30376         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30377         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30378
30379 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30380
30381         * m4/ld-version-script.m4: Add FIXME comment.
30382
30383 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30384
30385         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30386         SOVERSION variable.
30387
30388 2009-04-02  Bruno Haible  <bruno@clisp.org>
30389
30390         * Makefile (info, html, dvi, pdf): Combine the rules.
30391         Suggested by Jim Meyering.
30392
30393 2009-04-01  Bruno Haible  <bruno@clisp.org>
30394
30395         * Makefile (info, html, dvi, pdf): New targets.
30396         Reported by Reuben Thomas <rrt@sc3d.org>.
30397
30398 2009-04-01  Bruno Haible  <bruno@clisp.org>
30399
30400         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30401         can be put into PATH.
30402         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30403
30404 2009-04-01  Bruno Haible  <bruno@clisp.org>
30405
30406         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30407
30408 2009-04-01  Bruno Haible  <bruno@clisp.org>
30409
30410         Rename module 'visibility'.
30411         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30412         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30413         * doc/gnulib.texi: Update.
30414         * MODULES.html.sh (Misc): Update.
30415         * NEWS: Mention the change.
30416
30417 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30418
30419         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30420         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30421         Eric Blake <ebb9@byu.net> for review.
30422         * MODULES.html.sh: Add lib-msvc-compat.
30423         * doc/gnulib.texi: Link to new section.
30424         * m4/ld-output-def.m4: New file.
30425         * doc/ld-output-def.texi: New file.
30426
30427 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30428
30429         Rename ld-version-script to lib-symbol-versions.  Suggested by
30430         Bruno Haible <bruno@clisp.org>.
30431         * modules/ld-version-script: Renamed to lib-symbol-versions.
30432         * doc/ld-version-script.texi: Fix module name.
30433         * MODULES.html.sh: Add lib-symbol-versions.
30434
30435 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30436
30437         * modules/u64-tests: New file.
30438         * tests/test-u64.c: New file.
30439
30440 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30441
30442         * MODULES.html.sh: Mention u64.
30443         * modules/u64: New module.
30444         * modules/crypto/sha512: Depend on u64 module instead of providing
30445         u64.h.
30446
30447 2009-03-27  Eric Blake  <ebb9@byu.net>
30448
30449         test-strerror: make debugging EAI_SYSTEM easier
30450         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30451         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30452         failure was EAI_SYSTEM.
30453
30454 2009-03-25  Bruno Haible  <bruno@clisp.org>
30455
30456         Fix a problem with --enable-relocatable on Solaris 7.
30457         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30458         since 2008-02-24.
30459
30460 2009-03-25  Eric Blake  <ebb9@byu.net>
30461
30462         test-sockets: avoid gcc warning
30463         * tests/test-sockets.c (main): Silence compiler warning.
30464
30465 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30466
30467         New modules nproc, pthread, contributed by Glen Lenker.
30468
30469         * MODULES.html.sh: Add pthread, nproc.
30470         * lib/nproc.c: New file.
30471         * lib/nproc.h: New file.
30472         * lib/pthread.in.h: New file.
30473         * m4/pthread.m4: New file.
30474         * modules/nproc: New file.
30475         * modules/pthread: New file.
30476
30477 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30478
30479         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30480         New variable.
30481
30482 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30483
30484         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30485         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30486         * tests/test-filevercmp.c: Add tests for backup suffixes.
30487
30488 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30489
30490         * modules/stdlib (Depends-on): Add stdint, needed when defining
30491         struct random_data on, for example, HP-UX 10.20.  Reported by
30492         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30493
30494 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30495
30496         * lib/readline.c (readline): Call fflush on stdout after printing
30497         prompt.
30498
30499 2009-03-20  Bruno Haible  <bruno@clisp.org>
30500
30501         Remove dependency from 'close' module to -lws2_32 on native Windows.
30502         * lib/close-hook.h: New file.
30503         * lib/close-hook.c: New file.
30504         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30505         w32sock.h.
30506         (_gl_close_fd_maybe_socket): Remove function.
30507         (rpl_close): Invoke execute_all_close_hooks instead of
30508         _gl_close_fd_maybe_socket.
30509         * lib/sockets.c: Include close-hook.h, w32sock.h.
30510         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30511         (close_sockets_hook): New variable.
30512         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30513         (gl_sockets_cleanup): Unregister it.
30514         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30515         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30516         * modules/close-hook: New file.
30517         * modules/close (Files): Remove lib/w32sock.h.
30518         (Depends-on): Add close-hook.
30519         (Link): Remove section.
30520         * modules/sockets (Files): Add lib/w32sock.h.
30521         (Depends-on): Add close-hook.
30522         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30523         invocation.
30524         * NEWS: Mention that LIB_CLOSE is gone.
30525
30526 2009-03-23  Eric Blake  <ebb9@byu.net>
30527
30528         signal-tests: test previous patch
30529         * tests/test-signal.c: New file.
30530         * modules/signal-tests: Likewise.
30531
30532         signal.h: always support 'volatile sig_atomic_t'
30533         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30534         (gl_SIGNAL_H_DEFAULTS): Add a default.
30535         * modules/signal (Makefile.am): Substitute if needed.
30536         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30537         users can blindly add volatile.
30538         * doc/posix-headers/signal.texi (signal.h): Document it.
30539         Reported by Matthew Woehlke.
30540
30541 2009-03-23  Jim Meyering  <meyering@redhat.com>
30542
30543         pathmax: PATH_MAX: use pathconf only when available
30544         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30545         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30546         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30547         This avoids a link failure in a PSP cross-compilation environment
30548         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30549
30550         * lib/vasnprintf.c (divide): Fix typo in comment.
30551
30552 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30553
30554         * gnulib-tool (func_filter_filelist): Fix comment.
30555
30556 2009-03-20  Bruno Haible  <bruno@clisp.org>
30557
30558         Make sockets.h self-contained.
30559         * lib/sockets.c: Include sockets.h first.
30560         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30561
30562 2009-03-19  Eric Blake  <ebb9@byu.net>
30563
30564         doc: mention more functions added in cygwin 1.7.0
30565         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30566         addition.
30567         * doc/posix-functions/log2f.texi: Likewise.
30568
30569 2009-03-19  Jim Meyering  <meyering@redhat.com>
30570
30571         fsusage: avoid syntax error due to statement-before-declaration
30572         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30573         after all declarations.  Reported by Matthew Woehlke in
30574         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30575
30576 2009-03-18  Eric Blake  <ebb9@byu.net>
30577
30578         build-aux/compile: sync from automake
30579         * build-aux/compile: New file, from automake.
30580         * config/srclist.txt: Mention build-aux/compile.
30581
30582 2009-03-17  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/git-merge-changelog.c: Fix typo in comment.
30585         Reported by Reuben Thomas <rrt@sc3d.org>.
30586
30587 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30588
30589         * m4/regex.m4: update and improve help for
30590         --without-included-regex.
30591
30592 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30593
30594         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30595         failure on missing include files.
30596
30597 2009-03-17  Eric Blake  <ebb9@byu.net>
30598
30599         doc: mention more functions added in cygwin 1.7.0
30600         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30601         addition.
30602         * doc/posix-functions/fwscanf.texi: Likewise.
30603         * doc/posix-functions/swprintf.texi: Likewise.
30604         * doc/posix-functions/swscanf.texi: Likewise.
30605         * doc/posix-functions/vfwprintf.texi: Likewise.
30606         * doc/posix-functions/vfwscanf.texi: Likewise.
30607         * doc/posix-functions/vswprintf.texi: Likewise.
30608         * doc/posix-functions/vswscanf.texi: Likewise.
30609         * doc/posix-functions/vwprintf.texi: Likewise.
30610         * doc/posix-functions/vwscanf.texi: Likewise.
30611         * doc/posix-functions/wcscasecmp.texi: Likewise.
30612         * doc/posix-functions/wcsdup.texi: Likewise.
30613         * doc/posix-functions/wcsftime.texi: Likewise.
30614         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30615         * doc/posix-functions/wprintf.texi: Likewise.
30616         * doc/posix-functions/wscanf.texi: Likewise.
30617         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30618
30619 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30620
30621         maint.mk: really add $(AM_MAKEFLAGS)
30622         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30623         was inadvertently omitted in the last commit.
30624         Spotted by Bruno Haible.
30625
30626         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30627         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30628         $(AM_MAKEFLAGS)' rather than plain `make'.
30629
30630         gnulib-tool: execute $MAKE not make
30631         * gnulib-tool: Default $MAKE to 'make'.
30632         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30633         than make.  Initialize $MAKE in the do-autobuild script.
30634
30635         gnulib-tool: use $MAKE not make in generated files
30636         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30637         make, in generated files.  Initialize $MAKE in the do-autobuild
30638         script.
30639
30640         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30641
30642         GNUmakefile: disable parallelism only for multiple, recursive targets
30643         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30644         additions in the Makefile.
30645         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30646         by Automake.
30647         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30648         are listed on the command line and at least one of them is
30649         listed in $(ALL_RECURSIVE_TARGETS).
30650
30651 2009-03-14  Bruno Haible  <bruno@clisp.org>
30652
30653         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30654         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30655         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30656         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30657         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30658         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30659         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30660         unistr/u8-uctomb.
30661         * modules/unistr/u8-strchr (Depends-on): Likewise.
30662         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30663         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30664         unistr/u16-uctomb.
30665         * modules/unistr/u16-strchr (Depends-on): Likewise.
30666         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30667
30668 2009-03-12  Bruno Haible  <bruno@clisp.org>
30669
30670         Work around select() bug on Interix 3.5.
30671         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30672         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30673         * m4/select.m4: New file.
30674         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30675         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30676         * modules/select (Files): Add m4/select.m4.
30677         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30678         * modules/nanosleep (Depends-on): Add select.
30679         * modules/poll (Depends-on): Likewise.
30680         * doc/posix-functions/select.texi: Mention the Interix bug.
30681         Reported by Markus Duft <mduft@gentoo.org>.
30682
30683         * lib/select.c: Renamed from lib/winsock-select.c.
30684         * modules/select (Files): Add lib/select.c, remove
30685         lib/winsock-select.c.
30686         (configure.ac): Update.
30687
30688 2009-03-12  Jim Meyering  <meyering@redhat.com>
30689
30690         avoid gcc warnings about unused macro definitions
30691         * lib/readtokens.c (STREQ): Remove unused definition.
30692         * lib/xmalloc.c (SIZE_MAX): Likewise.
30693         * lib/openat-die.c (N_): Likewise.
30694         * lib/mountlist.c (SIZE_MAX): Remove definition.
30695         Instead, include <stdint.h>.
30696         * lib/readutmp.c: Likewise.
30697         * modules/readutmp (Depends-on): Add stdint.
30698         * modules/mountlist (Depends-on): Add stdint.
30699         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30700
30701 2009-03-10  Bruno Haible  <bruno@clisp.org>
30702
30703         Tests for module 'mbmemcasecoll'.
30704         * modules/mbmemcasecoll-tests: New file.
30705         * tests/test-mbmemcasecoll1.sh: New file.
30706         * tests/test-mbmemcasecoll2.sh: New file.
30707         * tests/test-mbmemcasecoll3.sh: New file.
30708         * tests/test-mbmemcasecoll.c: New file.
30709
30710         New module 'mbmemcasecoll'.
30711         * lib/mbmemcasecoll.h: New file.
30712         * lib/mbmemcasecoll.c: New file.
30713         * modules/mbmemcasecoll: New file.
30714
30715         * tests/test-mbmemcasecmp.h: New file, extracted from
30716         tests/test-mbmemcasecmp.c.
30717         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30718         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30719         (main): Update.
30720         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30721
30722 2009-03-09  Bruno Haible  <bruno@clisp.org>
30723
30724         Tests for module 'mbmemcasecmp'.
30725         * modules/mbmemcasecmp-tests: New file.
30726         * tests/test-mbmemcasecmp1.sh: New file.
30727         * tests/test-mbmemcasecmp2.sh: New file.
30728         * tests/test-mbmemcasecmp3.sh: New file.
30729         * tests/test-mbmemcasecmp.c: New file.
30730
30731         New module 'mbmemcasecmp'.
30732         * lib/mbmemcasecmp.h: New file.
30733         * lib/mbmemcasecmp.c: New file.
30734         * modules/mbmemcasecmp: New file.
30735
30736 2009-03-09  Bruno Haible  <bruno@clisp.org>
30737
30738         Tests for module 'unicase/ulc-casecoll'.
30739         * modules/unicase/ulc-casecoll-tests: New file.
30740         * tests/unicase/test-ulc-casecoll1.sh: New file.
30741         * tests/unicase/test-ulc-casecoll2.sh: New file.
30742         * tests/unicase/test-ulc-casecoll.c: New file.
30743
30744         New module 'unicase/ulc-casecoll'.
30745         * lib/unicase.h (ulc_casecoll): New declaration.
30746         * lib/unicase/ulc-casecoll.c: New file.
30747         * modules/unicase/ulc-casecoll: New file.
30748
30749         New module 'unicase/ulc-casexfrm'.
30750         * lib/unicase.h (ulc_casexfrm): New declaration.
30751         * lib/unicase/ulc-casexfrm.c: New file.
30752         * modules/unicase/ulc-casexfrm: New file.
30753
30754 2009-03-09  Bruno Haible  <bruno@clisp.org>
30755
30756         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30757         invocations.
30758
30759         * m4/mbscasecmp.m4: Remove file.
30760         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30761         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30762
30763         * m4/mbscasestr.m4: Remove file.
30764         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30765         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30766
30767         * m4/mbschr.m4: Remove file.
30768         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30769         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30770
30771         * m4/mbscspn.m4: Remove file.
30772         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30773         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30774
30775         * m4/mbslen.m4: Remove file.
30776         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30777         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30778
30779         * m4/mbsncasecmp.m4: Remove file.
30780         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30781         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30782
30783         * m4/mbsnlen.m4: Remove file.
30784         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30785         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30786
30787         * m4/mbspbrk.m4: Remove file.
30788         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30789         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30790
30791         * m4/mbspcasecmp.m4: Remove file.
30792         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30793         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30794
30795         * m4/mbsrchr.m4: Remove file.
30796         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30797         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30798
30799         * m4/mbssep.m4: Remove file.
30800         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30801         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30802
30803         * m4/mbsspn.m4: Remove file.
30804         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30805         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30806
30807         * m4/mbsstr.m4: Remove file.
30808         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30809         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30810
30811         * m4/mbstok_r.m4: Remove file.
30812         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30813         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30814
30815         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30816
30817         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30818         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30819
30820         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30821
30822 2009-03-08  Bruno Haible  <bruno@clisp.org>
30823
30824         Tests for module 'unicase/ulc-casecmp'.
30825         * modules/unicase/ulc-casecmp-tests: New file.
30826         * tests/unicase/test-ulc-casecmp1.sh: New file.
30827         * tests/unicase/test-ulc-casecmp2.sh: New file.
30828         * tests/unicase/test-ulc-casecmp.c: New file.
30829
30830         New module 'unicase/ulc-casecmp'.
30831         * lib/unicase.h (ulc_casecmp): New declaration.
30832         * lib/unicase/ulc-casecmp.c: New file.
30833         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30834         'const SRC_UNIT *'.
30835         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30836         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30837         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30838         * modules/unicase/ulc-casecmp: New file.
30839
30840         Tests for module 'unicase/u32-is-cased'.
30841         * modules/unicase/u32-is-cased-tests: New file.
30842         * tests/unicase/test-u32-is-cased.c: New file.
30843
30844         Tests for module 'unicase/u16-is-cased'.
30845         * modules/unicase/u16-is-cased-tests: New file.
30846         * tests/unicase/test-u16-is-cased.c: New file.
30847
30848         Tests for module 'unicase/u8-is-cased'.
30849         * modules/unicase/u8-is-cased-tests: New file.
30850         * tests/unicase/test-u8-is-cased.c: New file.
30851         * tests/unicase/test-is-cased.h: New file.
30852
30853         New module 'unicase/u32-is-cased'.
30854         * lib/unicase/u32-is-cased.c: New file.
30855         * modules/unicase/u32-is-cased: New file.
30856
30857         New module 'unicase/u16-is-cased'.
30858         * lib/unicase/u16-is-cased.c: New file.
30859         * modules/unicase/u16-is-cased: New file.
30860
30861         New module 'unicase/u8-is-cased'.
30862         * lib/unicase/u8-is-cased.c: New file.
30863         * lib/unicase/u-is-cased.h: New file.
30864         * modules/unicase/u8-is-cased: New file.
30865
30866         Tests for module 'unicase/u32-is-casefolded'.
30867         * modules/unicase/u32-is-casefolded-tests: New file.
30868         * tests/unicase/test-u32-is-casefolded.c: New file.
30869
30870         Tests for module 'unicase/u16-is-casefolded'.
30871         * modules/unicase/u16-is-casefolded-tests: New file.
30872         * tests/unicase/test-u16-is-casefolded.c: New file.
30873
30874         Tests for module 'unicase/u8-is-casefolded'.
30875         * modules/unicase/u8-is-casefolded-tests: New file.
30876         * tests/unicase/test-u8-is-casefolded.c: New file.
30877         * tests/unicase/test-is-casefolded.h: New file.
30878
30879         New module 'unicase/u32-is-casefolded'.
30880         * lib/unicase/u32-is-casefolded.c: New file.
30881         * modules/unicase/u32-is-casefolded: New file.
30882
30883         New module 'unicase/u16-is-casefolded'.
30884         * lib/unicase/u16-is-casefolded.c: New file.
30885         * modules/unicase/u16-is-casefolded: New file.
30886
30887         New module 'unicase/u8-is-casefolded'.
30888         * lib/unicase/u8-is-casefolded.c: New file.
30889         * modules/unicase/u8-is-casefolded: New file.
30890
30891         Tests for module 'unicase/u32-is-titlecase'.
30892         * modules/unicase/u32-is-titlecase-tests: New file.
30893         * tests/unicase/test-u32-is-titlecase.c: New file.
30894
30895         Tests for module 'unicase/u16-is-titlecase'.
30896         * modules/unicase/u16-is-titlecase-tests: New file.
30897         * tests/unicase/test-u16-is-titlecase.c: New file.
30898
30899         Tests for module 'unicase/u8-is-titlecase'.
30900         * modules/unicase/u8-is-titlecase-tests: New file.
30901         * tests/unicase/test-u8-is-titlecase.c: New file.
30902         * tests/unicase/test-is-titlecase.h: New file.
30903
30904         New module 'unicase/u32-is-titlecase'.
30905         * lib/unicase/u32-is-titlecase.c: New file.
30906         * modules/unicase/u32-is-titlecase: New file.
30907
30908         New module 'unicase/u16-is-titlecase'.
30909         * lib/unicase/u16-is-titlecase.c: New file.
30910         * modules/unicase/u16-is-titlecase: New file.
30911
30912         New module 'unicase/u8-is-titlecase'.
30913         * lib/unicase/u8-is-titlecase.c: New file.
30914         * modules/unicase/u8-is-titlecase: New file.
30915
30916         Tests for module 'unicase/u32-is-lowercase'.
30917         * modules/unicase/u32-is-lowercase-tests: New file.
30918         * tests/unicase/test-u32-is-lowercase.c: New file.
30919
30920         Tests for module 'unicase/u16-is-lowercase'.
30921         * modules/unicase/u16-is-lowercase-tests: New file.
30922         * tests/unicase/test-u16-is-lowercase.c: New file.
30923
30924         Tests for module 'unicase/u8-is-lowercase'.
30925         * modules/unicase/u8-is-lowercase-tests: New file.
30926         * tests/unicase/test-u8-is-lowercase.c: New file.
30927         * tests/unicase/test-is-lowercase.h: New file.
30928
30929         New module 'unicase/u32-is-lowercase'.
30930         * lib/unicase/u32-is-lowercase.c: New file.
30931         * modules/unicase/u32-is-lowercase: New file.
30932
30933         New module 'unicase/u16-is-lowercase'.
30934         * lib/unicase/u16-is-lowercase.c: New file.
30935         * modules/unicase/u16-is-lowercase: New file.
30936
30937         New module 'unicase/u8-is-lowercase'.
30938         * lib/unicase/u8-is-lowercase.c: New file.
30939         * modules/unicase/u8-is-lowercase: New file.
30940
30941         Tests for module 'unicase/u32-is-uppercase'.
30942         * modules/unicase/u32-is-uppercase-tests: New file.
30943         * tests/unicase/test-u32-is-uppercase.c: New file.
30944
30945         Tests for module 'unicase/u16-is-uppercase'.
30946         * modules/unicase/u16-is-uppercase-tests: New file.
30947         * tests/unicase/test-u16-is-uppercase.c: New file.
30948
30949         Tests for module 'unicase/u8-is-uppercase'.
30950         * modules/unicase/u8-is-uppercase-tests: New file.
30951         * tests/unicase/test-u8-is-uppercase.c: New file.
30952         * tests/unicase/test-is-uppercase.h: New file.
30953
30954         New module 'unicase/u32-is-uppercase'.
30955         * lib/unicase/u32-is-uppercase.c: New file.
30956         * modules/unicase/u32-is-uppercase: New file.
30957
30958         New module 'unicase/u16-is-uppercase'.
30959         * lib/unicase/u16-is-uppercase.c: New file.
30960         * modules/unicase/u16-is-uppercase: New file.
30961
30962         New module 'unicase/u8-is-uppercase'.
30963         * lib/unicase/u8-is-uppercase.c: New file.
30964         * modules/unicase/u8-is-uppercase: New file.
30965
30966         New module 'unicase/u32-is-invariant'.
30967         * lib/unicase/u32-is-invariant.c: New file.
30968         * modules/unicase/u32-is-invariant: New file.
30969
30970         New module 'unicase/u16-is-invariant'.
30971         * lib/unicase/u16-is-invariant.c: New file.
30972         * modules/unicase/u16-is-invariant: New file.
30973
30974         New module 'unicase/u8-is-invariant'.
30975         * lib/unicase/u8-is-invariant.c: New file.
30976         * lib/unicase/invariant.h: New file.
30977         * lib/unicase/u-is-invariant.h: New file.
30978         * modules/unicase/u8-is-invariant: New file.
30979
30980         Tests for module 'unicase/u32-casecoll'.
30981         * modules/unicase/u32-casecoll-tests: New file.
30982         * tests/unicase/test-u32-casecoll.c: New file.
30983
30984         Tests for module 'unicase/u16-casecoll'.
30985         * modules/unicase/u16-casecoll-tests: New file.
30986         * tests/unicase/test-u16-casecoll.c: New file.
30987
30988         Tests for module 'unicase/u8-casecoll'.
30989         * modules/unicase/u8-casecoll-tests: New file.
30990         * tests/unicase/test-u8-casecoll.c: New file.
30991
30992         New module 'unicase/u32-casecoll'.
30993         * lib/unicase/u32-casecoll.c: New file.
30994         * modules/unicase/u32-casecoll: New file.
30995
30996         New module 'unicase/u16-casecoll'.
30997         * lib/unicase/u16-casecoll.c: New file.
30998         * modules/unicase/u16-casecoll: New file.
30999
31000         New module 'unicase/u8-casecoll'.
31001         * lib/unicase/u8-casecoll.c: New file.
31002         * lib/unicase/u-casecoll.h: New file.
31003         * modules/unicase/u8-casecoll: New file.
31004
31005         New module 'unicase/u32-casexfrm'.
31006         * lib/unicase/u32-casexfrm.c: New file.
31007         * modules/unicase/u32-casexfrm: New file.
31008
31009         New module 'unicase/u16-casexfrm'.
31010         * lib/unicase/u16-casexfrm.c: New file.
31011         * modules/unicase/u16-casexfrm: New file.
31012
31013         New module 'unicase/u8-casexfrm'.
31014         * lib/unicase/u8-casexfrm.c: New file.
31015         * lib/unicase/u-casexfrm.h: New file.
31016         * modules/unicase/u8-casexfrm: New file.
31017
31018         Tests for module 'unicase/u32-casecmp'.
31019         * modules/unicase/u32-casecmp-tests: New file.
31020         * tests/unicase/test-u32-casecmp.c: New file.
31021
31022         Tests for module 'unicase/u16-casecmp'.
31023         * modules/unicase/u16-casecmp-tests: New file.
31024         * tests/unicase/test-u16-casecmp.c: New file.
31025
31026         Tests for module 'unicase/u8-casecmp'.
31027         * modules/unicase/u8-casecmp-tests: New file.
31028         * tests/unicase/test-u8-casecmp.c: New file.
31029         * tests/unicase/test-casecmp.h: New file.
31030
31031         New module 'unicase/u32-casecmp'.
31032         * lib/unicase/u32-casecmp.c: New file.
31033         * modules/unicase/u32-casecmp: New file.
31034
31035         New module 'unicase/u16-casecmp'.
31036         * lib/unicase/u16-casecmp.c: New file.
31037         * modules/unicase/u16-casecmp: New file.
31038
31039         New module 'unicase/u8-casecmp'.
31040         * lib/unicase/u8-casecmp.c: New file.
31041         * lib/unicase/u-casecmp.h: New file.
31042         * modules/unicase/u8-casecmp: New file.
31043
31044         Tests for module 'unicase/u32-casefold'.
31045         * modules/unicase/u32-casefold-tests: New file.
31046         * tests/unicase/test-u32-casefold.c: New file.
31047
31048         Tests for module 'unicase/u16-casefold'.
31049         * modules/unicase/u16-casefold-tests: New file.
31050         * tests/unicase/test-u16-casefold.c: New file.
31051
31052         Tests for module 'unicase/u8-casefold'.
31053         * modules/unicase/u8-casefold-tests: New file.
31054         * tests/unicase/test-u8-casefold.c: New file.
31055
31056         New module 'unicase/u32-casefold'.
31057         * lib/unicase/u32-casefold.c: New file.
31058         * modules/unicase/u32-casefold: New file.
31059
31060         New module 'unicase/u16-casefold'.
31061         * lib/unicase/u16-casefold.c: New file.
31062         * modules/unicase/u16-casefold: New file.
31063
31064         New module 'unicase/u8-casefold'.
31065         * lib/unicase/u8-casefold.c: New file.
31066         * lib/unicase/u-casefold.h: New file.
31067         * modules/unicase/u8-casefold: New file.
31068
31069         New module 'unicase/tocasefold'.
31070         * lib/unicase/casefold.h: New file.
31071         * lib/unicase/tocasefold.c: New file.
31072         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31073         * modules/unicase/tocasefold: New file.
31074
31075         Tests for module 'unicase/u32-totitle'.
31076         * modules/unicase/u32-totitle-tests: New file.
31077         * tests/unicase/test-u32-totitle.c: New file.
31078
31079         Tests for module 'unicase/u16-totitle'.
31080         * modules/unicase/u16-totitle-tests: New file.
31081         * tests/unicase/test-u16-totitle.c: New file.
31082
31083         Tests for module 'unicase/u8-totitle'.
31084         * modules/unicase/u8-totitle-tests: New file.
31085         * tests/unicase/test-u8-totitle.c: New file.
31086
31087         New module 'unicase/u32-totitle'.
31088         * lib/unicase/u32-totitle.c: New file.
31089         * modules/unicase/u32-totitle: New file.
31090
31091         New module 'unicase/u16-totitle'.
31092         * lib/unicase/u16-totitle.c: New file.
31093         * modules/unicase/u16-totitle: New file.
31094
31095         New module 'unicase/u8-totitle'.
31096         * lib/unicase/u8-totitle.c: New file.
31097         * lib/unicase/u-totitle.h: New file.
31098         * modules/unicase/u8-totitle: New file.
31099
31100         Tests for module 'unicase/u32-tolower'.
31101         * modules/unicase/u32-tolower-tests: New file.
31102         * tests/unicase/test-u32-tolower.c: New file.
31103
31104         Tests for module 'unicase/u16-tolower'.
31105         * modules/unicase/u16-tolower-tests: New file.
31106         * tests/unicase/test-u16-tolower.c: New file.
31107
31108         Tests for module 'unicase/u8-tolower'.
31109         * modules/unicase/u8-tolower-tests: New file.
31110         * tests/unicase/test-u8-tolower.c: New file.
31111
31112         New module 'unicase/u32-tolower'.
31113         * lib/unicase/u32-tolower.c: New file.
31114         * modules/unicase/u32-tolower: New file.
31115
31116         New module 'unicase/u16-tolower'.
31117         * lib/unicase/u16-tolower.c: New file.
31118         * modules/unicase/u16-tolower: New file.
31119
31120         New module 'unicase/u8-tolower'.
31121         * lib/unicase/u8-tolower.c: New file.
31122         * modules/unicase/u8-tolower: New file.
31123
31124         Tests for module 'unicase/u32-toupper'.
31125         * modules/unicase/u32-toupper-tests: New file.
31126         * tests/unicase/test-u32-toupper.c: New file.
31127
31128         Tests for module 'unicase/u16-toupper'.
31129         * modules/unicase/u16-toupper-tests: New file.
31130         * tests/unicase/test-u16-toupper.c: New file.
31131
31132         Tests for module 'unicase/u8-toupper'.
31133         * modules/unicase/u8-toupper-tests: New file.
31134         * tests/unicase/test-u8-toupper.c: New file.
31135
31136         New module 'unicase/u32-toupper'.
31137         * lib/unicase/u32-toupper.c: New file.
31138         * modules/unicase/u32-toupper: New file.
31139
31140         New module 'unicase/u16-toupper'.
31141         * lib/unicase/u16-toupper.c: New file.
31142         * modules/unicase/u16-toupper: New file.
31143
31144         New module 'unicase/u8-toupper'.
31145         * lib/unicase/u8-toupper.c: New file.
31146         * modules/unicase/u8-toupper: New file.
31147
31148         New module 'unicase/u32-casemap'.
31149         * lib/unicase/u32-casemap.c: New file.
31150         * modules/unicase/u32-casemap: New file.
31151
31152         New module 'unicase/u16-casemap'.
31153         * lib/unicase/u16-casemap.c: New file.
31154         * modules/unicase/u16-casemap: New file.
31155
31156         New module 'unicase/u8-casemap'.
31157         * lib/unicase/unicasemap.h: New file.
31158         * lib/unicase/u8-casemap.c: New file.
31159         * lib/unicase/u-casemap.h: New file.
31160         * modules/unicase/u8-casemap: New file.
31161
31162         New module 'unicase/special-casing'.
31163         * lib/unicase/special-casing.h: New file.
31164         * lib/unicase/special-casing.c: New file.
31165         * lib/unicase/special-casing-table.gperf: New file, generated by
31166         gen-uni-tables.c.
31167         * modules/unicase/special-casing: New file.
31168
31169         Tests for module 'unicase/locale-language'.
31170         * modules/unicase/locale-language-tests: New file.
31171         * tests/unicase/test-locale-language.sh: New file.
31172         * tests/unicase/test-locale-language.c: New file.
31173
31174         New module 'unicase/locale-language'.
31175         * lib/unicase/locale-language.c: New file.
31176         * lib/unicase/locale-languages.gperf: New file.
31177         * modules/unicase/locale-language: New file.
31178
31179         Generate more tables for case conversion and case folding.
31180         * lib/gen-uni-tables.c (SCC_*): New enum items.
31181         (struct special_casing_rule): New type.
31182         (casing_rules, num_casing_rules, allocated_casing_rules): New
31183         variables.
31184         (add_casing_rule, fill_casing_rules): New functions.
31185         (struct casefold_rule): New type.
31186         (casefolding_rules, num_casefolding_rules,
31187         allocated_casefolding_rules): New variables.
31188         (fill_casefolding_rules): New function.
31189         (unicode_casefold): New variable.
31190         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31191         sort_casing_rules, output_casing_rules): New functions.
31192         (main): Accept to more arguments: SpecialCasing.txt and
31193         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31194         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31195         Output mapping for casefolding.
31196
31197         * lib/unicase.h: Include stdbool.h, uninorm.h.
31198         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31199         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31200         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31201         arguments.
31202         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31203         resultp arguments.
31204         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31205         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31206         resultp arguments.
31207         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31208         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31209         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31210         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31211         declarations.
31212         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31213
31214 2009-03-08  Bruno Haible  <bruno@clisp.org>
31215
31216         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31217         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31218         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31219         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31220
31221 2009-03-07  Bruno Haible  <bruno@clisp.org>
31222
31223         Adjust u*_normcmp, u*_normcoll API.
31224         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31225         u16_normcoll, u32_normcoll): Change failure conventions.
31226         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31227         errno and return -1.
31228         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31229
31230 2009-03-07  Bruno Haible  <bruno@clisp.org>
31231
31232         Tests for module 'uninorm/u32-normcoll'.
31233         * modules/uninorm/u32-normcoll-tests: New file.
31234         * tests/uninorm/test-u32-normcoll.c: New file.
31235
31236         Tests for module 'uninorm/u16-normcoll'.
31237         * modules/uninorm/u16-normcoll-tests: New file.
31238         * tests/uninorm/test-u16-normcoll.c: New file.
31239
31240         Tests for module 'uninorm/u8-normcoll'.
31241         * modules/uninorm/u8-normcoll-tests: New file.
31242         * tests/uninorm/test-u8-normcoll.c: New file.
31243
31244 2009-03-07  Bruno Haible  <bruno@clisp.org>
31245
31246         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31247         tests/uninorm/test-u32-normcmp.c.
31248         * tests/uninorm/test-u32-normcmp.c: Include it.
31249         (test_nonascii): New function, extracted from main. Add some more
31250         tests.
31251         (main): Invoke test_ascii and test_nonascii.
31252         * modules/uninorm/u32-normcmp-tests (Files): Add
31253         tests/uninorm/test-u32-normcmp.h.
31254         (Depends-on): Remove uninorm/u32-normcmp.
31255
31256         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31257         tests/uninorm/test-u16-normcmp.c.
31258         * tests/uninorm/test-u16-normcmp.c: Include it.
31259         (test_nonascii): New function, extracted from main. Add some more
31260         tests.
31261         (main): Invoke test_ascii and test_nonascii.
31262         * modules/uninorm/u16-normcmp-tests (Files): Add
31263         tests/uninorm/test-u16-normcmp.h.
31264         (Depends-on): Remove uninorm/u16-normcmp.
31265
31266         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31267         tests/uninorm/test-u8-normcmp.c.
31268         * tests/uninorm/test-u8-normcmp.c: Include it.
31269         (test_nonascii): New function, extracted from main. Add some more
31270         tests.
31271         (main): Invoke test_ascii and test_nonascii.
31272         * modules/uninorm/u8-normcmp-tests (Files): Add
31273         tests/uninorm/test-u8-normcmp.h.
31274         (Depends-on): Remove uninorm/u8-normcmp.
31275
31276 2009-03-07  Bruno Haible  <bruno@clisp.org>
31277
31278         New module 'uninorm/u32-normcoll'.
31279         * lib/uninorm/u32-normcoll.c: New file.
31280         * modules/uninorm/u32-normcoll: New file.
31281
31282         New module 'uninorm/u16-normcoll'.
31283         * lib/uninorm/u16-normcoll.c: New file.
31284         * modules/uninorm/u16-normcoll: New file.
31285
31286         New module 'uninorm/u8-normcoll'.
31287         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31288         declarations.
31289         * lib/uninorm/u8-normcoll.c: New file.
31290         * lib/uninorm/u-normcoll.h: New file.
31291         * modules/uninorm/u8-normcoll: New file.
31292
31293         New module 'uninorm/u32-normxfrm'.
31294         * lib/uninorm/u32-normxfrm.c: New file.
31295         * modules/uninorm/u32-normxfrm: New file.
31296
31297         New module 'uninorm/u16-normxfrm'.
31298         * lib/uninorm/u16-normxfrm.c: New file.
31299         * modules/uninorm/u16-normxfrm: New file.
31300
31301         New module 'uninorm/u8-normxfrm'.
31302         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31303         declarations.
31304         * lib/uninorm/u8-normxfrm.c: New file.
31305         * lib/uninorm/u-normxfrm.h: New file.
31306         * modules/uninorm/u8-normxfrm: New file.
31307
31308 2009-03-07  Bruno Haible  <bruno@clisp.org>
31309
31310         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31311         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31312         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31313
31314 2009-03-07  Bruno Haible  <bruno@clisp.org>
31315
31316         New module 'memxfrm'.
31317         * lib/memxfrm.h: New file.
31318         * lib/memxfrm.c: New file.
31319         * modules/memxfrm: New file.
31320
31321 2009-03-07  Bruno Haible  <bruno@clisp.org>
31322
31323         New module 'memcmp2'.
31324         * lib/memcmp2.h: New file.
31325         * lib/memcmp2.c: New file.
31326         * modules/memcmp2: New file.
31327
31328 2009-03-07  Bruno Haible  <bruno@clisp.org>
31329
31330         Tests for module 'uninorm/decomposing-form'.
31331         * modules/uninorm/decomposing-form-tests: New file.
31332         * tests/uninorm/test-decomposing-form.c: New file.
31333
31334         New module 'uninorm/decomposing-form'.
31335         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31336         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31337         Add 'decomposing_variant' field.
31338         * lib/uninorm/decomposing-form.c: New file.
31339         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31340         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31341         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31342         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31343         * modules/uninorm/decomposing-form: New file.
31344         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31345         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31346
31347 2009-03-07  Bruno Haible  <bruno@clisp.org>
31348
31349         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31350         strings.
31351
31352 2009-03-06  Bruno Haible  <bruno@clisp.org>
31353
31354         Tests for module 'uninorm/u32-normcmp'.
31355         * tests/uninorm/test-u32-normcmp.c: New file.
31356         * modules/uninorm/u32-normcmp-tests: New file.
31357
31358         Tests for module 'uninorm/u16-normcmp'.
31359         * tests/uninorm/test-u16-normcmp.c: New file.
31360         * modules/uninorm/u16-normcmp-tests: New file.
31361
31362         Tests for module 'uninorm/u8-normcmp'.
31363         * tests/uninorm/test-u8-normcmp.c: New file.
31364         * modules/uninorm/u8-normcmp-tests: New file.
31365
31366         New module 'uninorm/u32-normcmp'.
31367         * lib/uninorm/u32-normcmp.c: New file.
31368         * modules/uninorm/u32-normcmp: New file.
31369
31370         New module 'uninorm/u16-normcmp'.
31371         * lib/uninorm/u16-normcmp.c: New file.
31372         * modules/uninorm/u16-normcmp: New file.
31373
31374         New module 'uninorm/u8-normcmp'.
31375         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31376         declarations.
31377         * lib/uninorm/u8-normcmp.c: New file.
31378         * lib/uninorm/u-normcmp.h: New file.
31379         * modules/uninorm/u8-normcmp: New file.
31380
31381 2009-03-06  Bruno Haible  <bruno@clisp.org>
31382
31383         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31384         Reported by Eric Blake.
31385
31386 2009-03-06  Eric Blake  <ebb9@byu.net>
31387             Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31390         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31391         condition.
31392         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31393         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31394         condition.
31395         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31396
31397 2009-03-06  Eric Blake  <ebb9@byu.net>
31398
31399         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31400         to avoid compiler warnings.
31401         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31402
31403 2009-03-05  Bruno Haible  <bruno@clisp.org>
31404
31405         * tests/test-ftell.c (main): Disable test beyond end of file on
31406         FreeMiNT.
31407         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31408
31409 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31410
31411         * lib/filevercmp.c: Move hidden files up in ordering.
31412         * tests/test-filevercmp.c: Add tests for hidden files.
31413
31414 2009-03-04  Bruno Haible  <bruno@clisp.org>
31415
31416         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31417         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31418         AM_CFLAGS.
31419         Reported by Simon Josefsson.
31420
31421 2009-03-03  Bruno Haible  <bruno@clisp.org>
31422
31423         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31424         Reported by Simon Josefsson.
31425
31426         * doc/ld-version-script.texi: Update node reference.
31427
31428 2009-03-03  Bruno Haible  <bruno@clisp.org>
31429
31430         * modules/visibility (License): Change to 'unlimited'.
31431         Suggested by Simon Josefsson.
31432
31433 2009-03-03  Jim Meyering  <meyering@redhat.com>
31434
31435         unlinkdir: cannot_unlink_dir may modify process state
31436         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31437         it's neither thread-safe nor appropriate for use in a library.
31438
31439 2009-03-03  Eric Blake  <ebb9@byu.net>
31440
31441         test-closein: silence test under Darwin
31442         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31443         care if it dies from EPIPE or EBADF.
31444
31445 2009-03-03  Bruno Haible  <bruno@clisp.org>
31446
31447         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31448         earlier.
31449         * doc/visibility.texi: Fix @node and @section.
31450
31451 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31452
31453         * doc/gnulib.texi: Link to sections for ld version script and
31454         visibility.
31455         * doc/visibility.texi: Add @node and @section.
31456         * modules/ld-version-script: New module.
31457         * m4/ld-version-script.m4: New file.
31458         * doc/ld-version-script.texi: New file.
31459
31460 2009-03-02  David Lutterkort  <lutter@redhat.com>
31461
31462         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31464
31465 2009-03-02  Bruno Haible  <bruno@clisp.org>
31466
31467         * doc/visibility.texi: Mention libtool's -export-symbols option.
31468
31469 2009-03-02  Jim Meyering  <meyering@redhat.com>
31470
31471         announce-gen: new option: --no-print-checksums
31472         * build-aux/announce-gen (usage): Describe it.
31473         (print_checksums): Print a newline here, not in the [*] footnote.
31474         (main): Honor it.
31475
31476 2009-03-01  Bruno Haible  <bruno@clisp.org>
31477
31478         Use socklen_t in the native Windows replacements prototypes.
31479         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31480         instead of 'int'.
31481         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31482         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31483         * modules/getsockopt (Depends-on): Add socklen.
31484         * modules/setsockopt (Depends-on): Add socklen.
31485
31486 2009-03-01  Bruno Haible  <bruno@clisp.org>
31487
31488         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31489         least 4.2.
31490
31491 2009-03-01  Eric Blake  <ebb9@byu.net>
31492             Bruno Haible  <bruno@clisp.org>
31493
31494         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31495         error messages.
31496         * lib/wait-process.c (wait_subprocess): Omit error message about
31497         deadly signal sent to the child of termsigp != NULL.
31498
31499 2009-03-01  Eric Blake  <ebb9@byu.net>
31500
31501         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31502
31503 2009-03-01  Bruno Haible  <bruno@clisp.org>
31504
31505         Avoid a gcc warning.
31506         * tests/test-sched.c (b): Make global.
31507         Reported by Eric Blake.
31508
31509 2009-01-19  Martin Lambers  <marlam@marlam.de>
31510
31511         Provide POSIX semantics for socket timeout options on W32.
31512         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31513         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31514         * modules/setsockopt: Depend on sys_time module for struct timeval.
31515         * modules/getsockopt: Depend on sys_time module for struct timeval.
31516
31517 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31518
31519         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31520         __USE_GNU, for consistency with netdb.in.h.
31521         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31522
31523 2009-03-01  Bruno Haible  <bruno@clisp.org>
31524
31525         More support for FreeMiNT.
31526         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31527         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31528
31529 2009-03-01  Bruno Haible  <bruno@clisp.org>
31530
31531         More support for FreeMiNT.
31532         * lib/fpurge.c (fpurge): Correct last commit.
31533         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31534
31535 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31536
31537         Fix unportable awk script in vc-list-files.
31538         * build-aux/vc-list-files: In the replacement awk script, use
31539         substr with a second argument of 1, not zero.
31540         Report by Simon Josefsson.
31541
31542 2009-02-28  Bruno Haible  <bruno@clisp.org>
31543
31544         More support for FreeMiNT.
31545         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31546         to FreeMiNT today.
31547         * lib/fwriting.c (fwriting): Likewise.
31548         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31549
31550 2009-02-28  Bruno Haible  <bruno@clisp.org>
31551
31552         * tests/test-freadseek.c (main): Disable test beyond end of file on
31553         FreeMiNT.
31554         * tests/test-ftello.c (main): Likewise.
31555         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31556
31557 2009-02-28  Bruno Haible  <bruno@clisp.org>
31558
31559         Add tentative support for FreeMiNT.
31560         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31561         * lib/fpurge.c (fpurge): Likewise.
31562         * lib/freadable.c (freadable): Likewise.
31563         * lib/freading.c (freading): Likewise.
31564         * lib/freadptr.c (freadptr): Likewise.
31565         * lib/freadseek.c (freadptrinc): Likewise.
31566         * lib/fseeko.c (rpl_fseeko): Likewise.
31567         * lib/fseterr.c (fseterr): Likewise.
31568         * lib/fwritable.c (fwritable): Likewise.
31569         * lib/fwriting.c (fwriting): Likewise.
31570         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31571         Hourihane.
31572         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31573
31574 2009-02-28  Bruno Haible  <bruno@clisp.org>
31575
31576         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31577         SIGCHLD.
31578         Reported by Jim Meyering.
31579
31580 2009-02-28  Bruno Haible  <bruno@clisp.org>
31581
31582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31583         Mention the results of these tests on various platforms.
31584         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31585         order.
31586         * doc/posix-functions/printf.texi: Likewise.
31587         * doc/posix-functions/snprintf.texi: Likewise.
31588         * doc/posix-functions/sprintf.texi: Likewise.
31589         * doc/posix-functions/vfprintf.texi: Likewise.
31590         * doc/posix-functions/vprintf.texi: Likewise.
31591         * doc/posix-functions/vsnprintf.texi: Likewise.
31592         * doc/posix-functions/vsprintf.texi: Likewise.
31593         * doc/glibc-functions/obstack_printf.texi: Likewise.
31594         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31595
31596 2009-02-28  Bruno Haible  <bruno@clisp.org>
31597
31598         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31599         Reported by Loïc Minier <lool@dooz.org>.
31600
31601 2009-02-27  Bruno Haible  <bruno@clisp.org>
31602
31603         * gnulib-tool (func_import): Make the sed expression used to create the
31604         sed script for updating the .gitignore file POSIX compliant.
31605         Reported by Eric Blake.
31606
31607 2009-02-27  Bruno Haible  <bruno@clisp.org>
31608
31609         * gnulib-tool (sed): Don't alias as "sed --posix".
31610         Reported by Eric Blake.
31611
31612 2009-02-27  Bruno Haible  <bruno@clisp.org>
31613
31614         Avoid test link errors.
31615         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31616         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31617         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31618         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31620
31621 2009-02-27  Bruno Haible  <bruno@clisp.org>
31622
31623         Avoid spurious "(cached)" in configure output.
31624         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31625         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31626         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31627         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31628         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31629         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31630         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31631         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31632         Reported by Eric Blake.
31633
31634 2009-02-27  Eric Blake  <ebb9@byu.net>
31635
31636         printf: fix regression in previous patch
31637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31638
31639 2009-02-27  Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31642         value.
31643         * lib/stdint.in.h: Likewise.
31644         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31645
31646 2009-02-27  Eric Blake  <ebb9@byu.net>
31647
31648         doc: mention more functions added in cygwin 1.7.0
31649         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31650         addition.
31651         * doc/posix-functions/open_wmemstream.texi: Likewise.
31652         * doc/posix-functions/wcsnlen.texi: Likewise.
31653         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31654         * doc/posix-functions/wcstod.texi: Likewise.
31655         * doc/posix-functions/wcstof.texi: Likewise.
31656         * doc/posix-functions/wcstoimax.texi: Likewise.
31657         * doc/posix-functions/wcstok.texi: Likewise.
31658         * doc/posix-functions/wcstoumax.texi: Likewise.
31659
31660         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31661         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31662         * doc/posix-functions/fprintf.texi: Update.
31663         * doc/posix-functions/printf.texi: Update.
31664         * doc/posix-functions/snprintf.texi: Update.
31665         * doc/posix-functions/sprintf.texi: Update.
31666         * doc/posix-functions/vfprintf.texi: Update.
31667         * doc/posix-functions/vprintf.texi: Update.
31668         * doc/posix-functions/vsnprintf.texi: Update.
31669         * doc/posix-functions/vsprintf.texi: Update.
31670         * doc/glibc-functions/obstack_printf.texi: Update.
31671         * doc/glibc-functions/obstack_vprintf.texi: Update.
31672
31673 2009-02-26  Eric Blake  <ebb9@byu.net>
31674
31675         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31676         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31677         compilation bug by using runtime conversion.
31678         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31679         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31680         * modules/ceill-tests (Files): Use nan.h.
31681         * modules/floorl-tests (Files): Likewise.
31682         * modules/frexpl-tests (Files): Likewise.
31683         * modules/isnanl-tests (Files): Likewise.
31684         * modules/ldexpl-tests (Files): Likewise.
31685         * modules/roundl-tests (Files): Likewise.
31686         * modules/truncl-tests (Files): Likewise.
31687         * tests/test-ceill.c (main): Use a working NaN.
31688         * tests/test-floorl.c (main): Likewise.
31689         * tests/test-frexpl.c (main): Likewise.
31690         * tests/test-isnan.c (test_long_double): Likewise.
31691         * tests/test-isnanl.h (main): Likewise.
31692         * tests/test-ldexpl.h (main): Likewise.
31693         * tests/test-roundl.h (main): Likewise.
31694         * tests/test-truncl.h (main): Likewise.
31695         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31696
31697 2009-02-26  Eric Blake  <ebb9@byu.net>
31698             Bruno Haible  <bruno@clisp.org>
31699
31700         Work around a *printf bug with %ls on Solaris.
31701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31702         precision is specified, sprintf stops converting the wide string
31703         argument when the number of bytes that have been produced by this
31704         conversion equals or exceeds the precision.
31705         * doc/posix-functions/fprintf.texi: Update.
31706         * doc/posix-functions/printf.texi: Update.
31707         * doc/posix-functions/snprintf.texi: Update.
31708         * doc/posix-functions/sprintf.texi: Update.
31709         * doc/posix-functions/vfprintf.texi: Update.
31710         * doc/posix-functions/vprintf.texi: Update.
31711         * doc/posix-functions/vsnprintf.texi: Update.
31712         * doc/posix-functions/vsprintf.texi: Update.
31713         * doc/glibc-functions/obstack_printf.texi: Update.
31714         * doc/glibc-functions/obstack_vprintf.texi: Update.
31715
31716 2009-02-26  Eric Blake  <ebb9@byu.net>
31717
31718         stdlib: favor compiler check of random.h
31719         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31720         to avoid an ObjC random.h installed by Swarm.
31721
31722 2009-02-26  Bruno Haible  <bruno@clisp.org>
31723
31724         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31725         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31726         Reported by Gary V. Vaughan <gary@gnu.org>.
31727
31728 2009-02-26  Bruno Haible  <bruno@clisp.org>
31729
31730         Fix *printf behaviour regarding the %ls directive.
31731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31732         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31733         NEED_PRINTF_DIRECTIVE_LS.
31734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31735         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31737         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31738         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31739         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31740         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31745         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31746         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31749         * doc/posix-functions/fprintf.texi: Update.
31750         * doc/posix-functions/printf.texi: Update.
31751         * doc/posix-functions/snprintf.texi: Update.
31752         * doc/posix-functions/sprintf.texi: Update.
31753         * doc/posix-functions/vfprintf.texi: Update.
31754         * doc/posix-functions/vprintf.texi: Update.
31755         * doc/posix-functions/vsnprintf.texi: Update.
31756         * doc/posix-functions/vsprintf.texi: Update.
31757         * doc/glibc-functions/obstack_printf.texi: Update.
31758         * doc/glibc-functions/obstack_vprintf.texi: Update.
31759         Reported by Eric Blake.
31760
31761 2009-02-25  Bruno Haible  <bruno@clisp.org>
31762
31763         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31764         with known value.
31765         Reported by Gary V. Vaughan <gary@gnu.org>.
31766
31767 2009-02-25  Bruno Haible  <bruno@clisp.org>
31768
31769         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31770         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31771         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31772         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31773         Reported by Gary V. Vaughan <gary@gnu.org>.
31774
31775 2009-02-25  Bruno Haible  <bruno@clisp.org>
31776
31777         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31778         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31779         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31780         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31781         Reported by Gary V. Vaughan <gary@gnu.org>.
31782
31783 2009-02-25  Eric Blake  <ebb9@byu.net>
31784
31785         tests: skip fseek/ftell tests if ungetc is broken
31786         * m4/ungetc.m4: New file.
31787         * modules/fseek-tests: Split test, so ungetc dependency is
31788         separate from rest of test.
31789         * modules/fseeko-tests: Likewise.
31790         * modules/ftell-tests: Likewise.
31791         * modules/ftello-tests: Likewise.
31792         * tests/test-fseek.c (main): Isolate ungetc dependency.
31793         * tests/test-fseeko.c (main): Likewise.
31794         * tests/test-ftell.c (main): Likewise.
31795         * tests/test-ftello.c (main): Likewise.
31796         * tests/test-fseek2.sh: New file.
31797         * tests/test-fseeko2.sh: Likewise.
31798         * tests/test-ftell2.sh: Likewise.
31799         * tests/test-ftello2.sh: Likewise.
31800
31801 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31802
31803         test-getaddrinfo: fix usage of skip return code 77
31804         * tests/test-gettaddrinfo.c: Return skip code 77 only
31805         for first occurance of skip (4x77 is not 77)
31806
31807 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31808
31809         strtod: avoid C99 decl-after-statement
31810         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31811
31812 2009-02-24  Eric Blake  <ebb9@byu.net>
31813
31814         strtod: detect HP-UX 11.31 bug
31815         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31816         Reported by Gary V. Vaughan.
31817
31818 2009-02-23  Bruno Haible  <bruno@clisp.org>
31819
31820         Fix invalid read past end of memory block.
31821         * lib/vasnprintf.c (DCHAR_SET): Define.
31822         (local_wcslen): Define only when needed.
31823         (local_strnlen, local_wcsnlen): New functions.
31824         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31825         directives that involve a conversion ourselves.
31826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31827         wcsnlen, mbrtowc, wcrtomb.
31828         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31829         * tests/test-vasprintf-posix.c (test_function): Likewise.
31830         * tests/test-snprintf-posix.h (test_function): Likewise.
31831         * tests/test-sprintf-posix.h (test_function): Likewise.
31832         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31833
31834 2009-02-22  Bruno Haible  <bruno@clisp.org>
31835
31836         Implement new clarified decomposition of Hangul syllables.
31837         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31838         of type LTV, return only a pairwise decomposition.
31839         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31840         Likewise.
31841         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31842         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31843         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31844
31845 2009-02-22  Bruno Haible  <bruno@clisp.org>
31846
31847         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31848         zero-length results and shrink excess allocated memory.
31849         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31850         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31851         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31852         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31853         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31854         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31855         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31856         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31857         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31858         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31859         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31860         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31861
31862 2009-02-21  Bruno Haible  <bruno@clisp.org>
31863
31864         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31865         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31866         spaces after a period. Put a space between a macro name and its
31867         argument list. Trivial rewordings.
31868         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31869         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31870         (main): Return 0 explicitly.
31871
31872 2009-02-21  Bruno Haible  <bruno@clisp.org>
31873
31874         Tests for module 'uninorm/filter'.
31875         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31876         * modules/uninorm/filter-tests: New file.
31877
31878         New module 'uninorm/filter'.
31879         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31880         uninorm_filter_flush, uninorm_filter_free): New declarations.
31881         * lib/uninorm/uninorm-filter.c: New file.
31882         * modules/uninorm/filter: New file.
31883
31884 2009-02-21  Bruno Haible  <bruno@clisp.org>
31885
31886         Tests for module 'uninorm/nfkc'.
31887         * tests/uninorm/test-nfkc.c: New file.
31888         * tests/uninorm/test-u8-nfkc.c: New file.
31889         * tests/uninorm/test-u16-nfkc.c: New file.
31890         * tests/uninorm/test-u32-nfkc.c: New file.
31891         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31892         * tests/uninorm/test-u32-nfkc-big.c: New file.
31893         * modules/uninorm/nfkc-tests: New file.
31894
31895         New module 'uninorm/nfkc'.
31896         * lib/uninorm/nfkc.c: New file.
31897         * modules/uninorm/nfkc: New file.
31898
31899         Tests for module 'uninorm/nfkd'.
31900         * tests/uninorm/test-nfkd.c: New file.
31901         * tests/uninorm/test-u8-nfkd.c: New file.
31902         * tests/uninorm/test-u16-nfkd.c: New file.
31903         * tests/uninorm/test-u32-nfkd.c: New file.
31904         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31905         * tests/uninorm/test-u32-nfkd-big.c: New file.
31906         * modules/uninorm/nfkd-tests: New file.
31907
31908         New module 'uninorm/nfkd'.
31909         * lib/uninorm/nfkd.c: New file.
31910         * modules/uninorm/nfkd: New file.
31911
31912         Tests for module 'uninorm/nfc'.
31913         * tests/uninorm/test-nfc.c: New file.
31914         * tests/uninorm/test-u8-nfc.c: New file.
31915         * tests/uninorm/test-u16-nfc.c: New file.
31916         * tests/uninorm/test-u32-nfc.c: New file.
31917         * tests/uninorm/test-u32-nfc-big.sh: New file.
31918         * tests/uninorm/test-u32-nfc-big.c: New file.
31919         * modules/uninorm/nfc-tests: New file.
31920
31921         New module 'uninorm/nfc'.
31922         * lib/uninorm/nfc.c: New file.
31923         * modules/uninorm/nfc: New file.
31924
31925         Tests for module 'uninorm/nfd'.
31926         * tests/uninorm/test-nfd.c: New file.
31927         * tests/uninorm/test-u8-nfd.c: New file.
31928         * tests/uninorm/test-u16-nfd.c: New file.
31929         * tests/uninorm/test-u32-nfd.c: New file.
31930         * tests/uninorm/test-u32-nfd-big.sh: New file.
31931         * tests/uninorm/test-u32-nfd-big.c: New file.
31932         * tests/uninorm/test-u32-normalize-big.h: New file.
31933         * tests/uninorm/test-u32-normalize-big.c: New file.
31934         * tests/uninorm/NormalizationTest.txt: New file, created from
31935         Unicode 5.1.0 NormalizationTest.txt.
31936         * modules/uninorm/nfd-tests: New file.
31937
31938         New module 'uninorm/nfd'.
31939         * lib/uninorm/nfd.c: New file.
31940         * modules/uninorm/nfd: New file.
31941
31942         New module 'uninorm/u32-normalize'.
31943         * lib/uninorm/u32-normalize.c: New file.
31944         * modules/uninorm/u32-normalize: New file.
31945
31946         New module 'uninorm/u16-normalize'.
31947         * lib/uninorm/u16-normalize.c: New file.
31948         * modules/uninorm/u16-normalize: New file.
31949
31950         New module 'uninorm/u8-normalize'.
31951         * lib/uninorm/u8-normalize.c: New file.
31952         * lib/uninorm/normalize-internal.h: New file.
31953         * lib/uninorm/u-normalize-internal.h: New file.
31954         * modules/uninorm/u8-normalize: New file.
31955
31956         New module 'uninorm/decompose-internal'.
31957         * lib/uninorm/decompose-internal.c: New file.
31958         * modules/uninorm/decompose-internal: New file.
31959
31960         Tests for module 'uninorm/composition'.
31961         * tests/uninorm/test-composition.c: New file.
31962         * modules/uninorm/composition-tests: New file.
31963
31964         New module 'uninorm/composition'.
31965         * lib/uninorm/composition.c: New file.
31966         * lib/uninorm/composition-table.gperf: New file, generated by
31967         gen-uni-tables.
31968         * modules/uninorm/composition: New file.
31969
31970         Tests for module 'uninorm/compat-decomposition'.
31971         * tests/uninorm/test-compat-decomposition.c: New file.
31972         * modules/uninorm/compat-decomposition-tests: New file.
31973
31974         New module 'uninorm/compat-decomposition'.
31975         * lib/uninorm/decompose-internal.h: New file.
31976         * lib/uninorm/compat-decomposition.c: New file.
31977         * modules/uninorm/compat-decomposition: New file.
31978
31979         Tests for module 'uninorm/canonical-decomposition'.
31980         * tests/uninorm/test-canonical-decomposition.c: New file.
31981         * modules/uninorm/canonical-decomposition-tests: New file.
31982
31983         New module 'uninorm/canonical-decomposition'.
31984         * lib/uninorm/canonical-decomposition.c: New file.
31985         * modules/uninorm/canonical-decomposition: New file.
31986
31987         Tests for module 'uninorm/decomposition'.
31988         * tests/uninorm/test-decomposition.c: New file.
31989         * modules/uninorm/decomposition-tests: New file.
31990
31991         New module 'uninorm/decomposition'.
31992         * lib/uninorm/decomposition.c: New file.
31993         * modules/uninorm/decomposition: New file.
31994
31995         New module 'uninorm/decomposition-table'.
31996         * lib/uninorm/decomposition-table.h: New file.
31997         * lib/uninorm/decomposition-table.c: New file.
31998         * lib/uninorm/decomposition-table1.h: New file, generated by
31999         gen-uni-tables.
32000         * lib/uninorm/decomposition-table2.h: New file, generated by
32001         gen-uni-tables.
32002         * modules/uninorm/decomposition-table: New file.
32003
32004         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32005         (UC_DECOMP_*): New enumeration items.
32006         (get_decomposition): New function.
32007         (struct decomp_table): New type.
32008         (output_decomposition, output_decomposition_tables): New functions.
32009         (unicode_composition_exclusions): New variable.
32010         (fill_composition_exclusions, debug_output_composition_tables): New
32011         functions.
32012         (main): Accept one more argument. Invoke fill_composition_exclusions.
32013         Output decomposition and composition tables.
32014
32015         New module 'uninorm/base'.
32016         * lib/uninorm.h: New file.
32017         * lib/unictype.h: Update comment.
32018         * modules/uninorm/base: New file.
32019
32020 2009-02-21  David Lutterkort  <lutter@redhat.com>
32021
32022         Tests for module 'safe-alloc'.
32023         * tests/test-safe-alloc.c: New file.
32024         * modules/safe-alloc-tests: New file.
32025
32026         New module 'safe-alloc'.
32027         * lib/safe-alloc.h: New file.
32028         * lib/safe-alloc.c: New file.
32029         * m4/safe-alloc.m4: New file.
32030         * modules/safe-alloc: New file.
32031         * doc/safe-alloc.texi: New file.
32032         * doc/gnulib.texi: Include it.
32033         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32034         safe-alloc.
32035
32036 2009-02-18  Bruno Haible  <bruno@clisp.org>
32037
32038         Fix link error on non-glibc systems.
32039         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32040         variable.
32041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32042
32043 2009-02-18  Jim Meyering  <meyering@redhat.com>
32044
32045         fts: avoid used-uninitialized error due to recent change
32046         * lib/fts.c (fts_read): Guard uses of the new member,
32047         parent->fts_n_dirs_remaining, since it's not relevant for
32048         the parent of a directory specified on the command-line.
32049
32050 2009-02-17  James Youngman  <jay@gnu.org>
32051             Bruno Haible  <bruno@clisp.org>
32052
32053         * m4/include_next.m4: Reformulate comment.
32054
32055 2009-02-16  Jim Meyering  <meyering@redhat.com>
32056
32057         fts: add #if guards so that the fts_lgpl module still builds
32058         * lib/fts.c: Guard just-added hash-table-using parts with
32059         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32060         Reported by Simon Josefsson.
32061
32062 2009-02-15  Bruno Haible  <bruno@clisp.org>
32063
32064         * modules/array-mergesort-tests: New file.
32065         * tests/test-array-mergesort.c: New file.
32066
32067         New module 'array-mergesort'.
32068         * modules/array-mergesort: New file.
32069         * lib/array-mergesort.h: New file.
32070
32071 2009-02-15  Bruno Haible  <bruno@clisp.org>
32072
32073         Fix 2009-02-07 commit.
32074         * lib/gen-uni-tables.c (output_predicate, output_category,
32075         output_combclass, output_bidi_category, output_decimal_digit,
32076         output_digit, output_numeric, output_mirror, output_scripts,
32077         output_ident_category, output_simple_mapping): Fix format directives.
32078         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32079
32080 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32081
32082         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32083         fixes are available from IBM.
32084
32085 2009-02-13  Jim Meyering  <meyering@redhat.com>
32086
32087         fts: arrange not to stat non-directories in more cases
32088         This makes GNU find (when it doesn't need to stat each file)
32089         *much* more efficient at traversing reiserfs file systems.
32090         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32091         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32092         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32093         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32094         (leaf_optimization_applies): New function.
32095         (LCO_hash, LCO_compare): New helper functions.
32096         (link_count_optimize_ok): New function.
32097         (fts_stat): Initialize new member (if dir).
32098         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32099         we've just stat'ed a directory.  Skip the stat call when possible.
32100         ---
32101         Note this AFS-related exchange:
32102         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32103         and note find's pioctl call in find/fstype.c.
32104         But that is necessary only if you want to enable the
32105         optimization for AFS, and for now, I don't.
32106
32107         fts: move a function definition "up" (no semantic change)
32108         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32109         "up" to precede upcoming use of a related function.
32110
32111 2009-02-11  Jim Meyering  <meyering@redhat.com>
32112
32113         fts: correct internal computation of nlinks (optimization-related)
32114         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32115         whether the current entry is a directory, so don't test it.
32116
32117 2009-02-10  Bruno Haible  <bruno@clisp.org>
32118
32119         Tests for module 'uniwbrk/ulc-wordbreaks'.
32120         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32121         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32122         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32123
32124         Tests for module 'uniwbrk/u32-wordbreaks'.
32125         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32126         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32127
32128         Tests for module 'uniwbrk/u16-wordbreaks'.
32129         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32130         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32131
32132         Tests for module 'uniwbrk/u8-wordbreaks'.
32133         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32134         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32135
32136 2009-02-10  Bruno Haible  <bruno@clisp.org>
32137
32138         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32139         property.
32140         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32141         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32142         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32143
32144 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32145
32146         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32147         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32148
32149 2009-02-10  Bruno Haible  <bruno@clisp.org>
32150
32151         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32152         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32153         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32154         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32155         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32156         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32157
32158 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32159
32160         * lib/sockets.h (gl_fd_to_handle): New function.
32161
32162         * tests/test-sockets.c: Call gl_fd_to_handle.
32163
32164 2009-02-09  Bruno Haible  <bruno@clisp.org>
32165
32166         * doc/havelib.texi: Document the conventions on bi-arch systems.
32167
32168 2009-02-08  Bruno Haible  <bruno@clisp.org>
32169
32170         Document the AC_LIB_LINKFLAGS macro.
32171         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32172         * doc/gnulib.texi: Include it.
32173
32174 2009-02-08  Bruno Haible  <bruno@clisp.org>
32175
32176         Fix wrong order of sections, compared to TOC.
32177         * doc/gnulib.texi: Include relocatable-maint.texi after the
32178         "Regular expressions" node, not before.
32179
32180 2009-02-08  Bruno Haible  <bruno@clisp.org>
32181
32182         Tests for module 'unicase/totitle'.
32183         * modules/unicase/totitle-tests: New file.
32184
32185         Tests for module 'unicase/tolower'.
32186         * modules/unicase/tolower-tests: New file.
32187
32188         Tests for module 'unicase/toupper'.
32189         * modules/unicase/toupper-tests: New file.
32190         * tests/unicase/test-mapping-part1.h: New file.
32191         * tests/unicase/test-mapping-part2.h: New file.
32192
32193         New module 'unicase/totitle'.
32194         * modules/unicase/totitle: New file.
32195         * lib/unicase/totitle.c: New file.
32196
32197         New module 'unicase/tolower'.
32198         * modules/unicase/tolower: New file.
32199         * lib/unicase/tolower.c: New file.
32200
32201         New module 'unicase/toupper'.
32202         * modules/unicase/toupper: New file.
32203         * lib/unicase/toupper.c: New file.
32204         * lib/unicase/simple-mapping.h: New file.
32205
32206         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32207         (mapping_table): New structure.
32208         (output_simple_mapping): New function.
32209         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32210         * modules/gen-uni-tables (Description): Update.
32211         * lib/unicase/toupper.h: New file, automatically generated by
32212         gen-uni-tables.
32213         * lib/unicase/tolower.h: New file, automatically generated by
32214         gen-uni-tables.
32215         * lib/unicase/totitle.h: New file, automatically generated by
32216         gen-uni-tables.
32217         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32218         gen-uni-tables.
32219         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32220         gen-uni-tables.
32221         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32222         gen-uni-tables.
32223
32224         New module 'unicase/base'.
32225         * modules/unicase/base: New file.
32226         * lib/unicase.h: New file.
32227
32228 2009-02-08  Bruno Haible  <bruno@clisp.org>
32229
32230         New module 'uniwbrk/ulc-wordbreaks'.
32231         * modules/uniwbrk/ulc-wordbreaks: New file.
32232         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32233
32234         New module 'uniwbrk/u32-wordbreaks'.
32235         * modules/uniwbrk/u32-wordbreaks: New file.
32236         * lib/uniwbrk/u32-wordbreaks.c: New file.
32237
32238         New module 'uniwbrk/u16-wordbreaks'.
32239         * modules/uniwbrk/u16-wordbreaks: New file.
32240         * lib/uniwbrk/u16-wordbreaks.c: New file.
32241
32242         New module 'uniwbrk/u8-wordbreaks'.
32243         * modules/uniwbrk/u8-wordbreaks: New file.
32244         * lib/uniwbrk/u8-wordbreaks.c: New file.
32245         * lib/uniwbrk/u-wordbreaks.h: New file.
32246
32247         New module 'uniwbrk/table'.
32248         * modules/uniwbrk/table: New file.
32249         * lib/uniwbrk/wbrktable.h: New file.
32250         * lib/uniwbrk/wbrktable.c: New file.
32251
32252         New module 'uniwbrk/wordbreak-property'.
32253         * modules/uniwbrk/wordbreak-property: New file.
32254         * lib/uniwbrk/wordbreak-property.c: New file.
32255
32256         * lib/gen-uni-tables.c (WBP_*): New enum items.
32257         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32258         (unicode_org_wbp): New variable.
32259         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32260         New functions.
32261         (wbp_table): New structure.
32262         (output_wbp, output_wbrk_tables): New functions.
32263         (main): Accept additional argument. Invoke fill_org_wbp,
32264         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32265         output_wbrk_tables.
32266         * modules/gen-uni-tables (Description): Update.
32267         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32268         gen-uni-tables.
32269
32270         New module 'uniwbrk/base'.
32271         * modules/uniwbrk/base: New file.
32272         * lib/uniwbrk.h: New file.
32273
32274 2009-02-08  Bruno Haible  <bruno@clisp.org>
32275
32276         Update to Unicode 5.1.0.
32277         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32278         U+2185..U+2188.
32279         (is_property_default_ignorable_code_point): Don't include characters
32280         of category Cc or Cs and not-a-characters.
32281         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32282         U+0D79, U+109E, U+109F, U+A60C.
32283         * lib/unictype/bidi_of.h: Regenerated.
32284         * lib/unictype/blocks.h: Regenerated.
32285         * lib/unictype/categ_C.h: Regenerated.
32286         * lib/unictype/categ_Cf.h: Regenerated.
32287         * lib/unictype/categ_Cn.h: Regenerated.
32288         * lib/unictype/categ_L.h: Regenerated.
32289         * lib/unictype/categ_Ll.h: Regenerated.
32290         * lib/unictype/categ_Lm.h: Regenerated.
32291         * lib/unictype/categ_Lo.h: Regenerated.
32292         * lib/unictype/categ_Lu.h: Regenerated.
32293         * lib/unictype/categ_M.h: Regenerated.
32294         * lib/unictype/categ_Mc.h: Regenerated.
32295         * lib/unictype/categ_Me.h: Regenerated.
32296         * lib/unictype/categ_Mn.h: Regenerated.
32297         * lib/unictype/categ_N.h: Regenerated.
32298         * lib/unictype/categ_Nd.h: Regenerated.
32299         * lib/unictype/categ_Nl.h: Regenerated.
32300         * lib/unictype/categ_No.h: Regenerated.
32301         * lib/unictype/categ_P.h: Regenerated.
32302         * lib/unictype/categ_Pd.h: Regenerated.
32303         * lib/unictype/categ_Pe.h: Regenerated.
32304         * lib/unictype/categ_Pf.h: Regenerated.
32305         * lib/unictype/categ_Pi.h: Regenerated.
32306         * lib/unictype/categ_Po.h: Regenerated.
32307         * lib/unictype/categ_Ps.h: Regenerated.
32308         * lib/unictype/categ_S.h: Regenerated.
32309         * lib/unictype/categ_Sk.h: Regenerated.
32310         * lib/unictype/categ_Sm.h: Regenerated.
32311         * lib/unictype/categ_So.h: Regenerated.
32312         * lib/unictype/categ_of.h: Regenerated.
32313         * lib/unictype/combining.h: Regenerated.
32314         * lib/unictype/ctype_alnum.h: Regenerated.
32315         * lib/unictype/ctype_alpha.h: Regenerated.
32316         * lib/unictype/ctype_graph.h: Regenerated.
32317         * lib/unictype/ctype_lower.h: Regenerated.
32318         * lib/unictype/ctype_print.h: Regenerated.
32319         * lib/unictype/ctype_punct.h: Regenerated.
32320         * lib/unictype/ctype_upper.h: Regenerated.
32321         * lib/unictype/decdigit.h: Regenerated.
32322         * lib/unictype/digit.h: Regenerated.
32323         * lib/unictype/mirror.h: Regenerated.
32324         * lib/unictype/numeric.h: Regenerated.
32325         * lib/unictype/pr_alphabetic.h: Regenerated.
32326         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32327         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32328         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32329         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32330         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32331         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32332         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32333         * lib/unictype/pr_combining.h: Regenerated.
32334         * lib/unictype/pr_dash.h: Regenerated.
32335         * lib/unictype/pr_decimal_digit.h: Regenerated.
32336         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32337         * lib/unictype/pr_deprecated.h: Regenerated.
32338         * lib/unictype/pr_diacritic.h: Regenerated.
32339         * lib/unictype/pr_extender.h: Regenerated.
32340         * lib/unictype/pr_format_control.h: Regenerated.
32341         * lib/unictype/pr_grapheme_base.h: Regenerated.
32342         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32343         * lib/unictype/pr_grapheme_link.h: Regenerated.
32344         * lib/unictype/pr_id_continue.h: Regenerated.
32345         * lib/unictype/pr_id_start.h: Regenerated.
32346         * lib/unictype/pr_ideographic.h: Regenerated.
32347         * lib/unictype/pr_ignorable_control.h: Regenerated.
32348         * lib/unictype/pr_lowercase.h: Regenerated.
32349         * lib/unictype/pr_math.h: Regenerated.
32350         * lib/unictype/pr_numeric.h: Regenerated.
32351         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32352         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32353         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32354         * lib/unictype/pr_other_id_continue.h: Regenerated.
32355         * lib/unictype/pr_other_lowercase.h: Regenerated.
32356         * lib/unictype/pr_other_math.h: Regenerated.
32357         * lib/unictype/pr_punctuation.h: Regenerated.
32358         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32359         * lib/unictype/pr_soft_dotted.h: Regenerated.
32360         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32361         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32362         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32363         * lib/unictype/pr_uppercase.h: Regenerated.
32364         * lib/unictype/pr_xid_continue.h: Regenerated.
32365         * lib/unictype/pr_xid_start.h: Regenerated.
32366         * lib/unictype/pr_zero_width.h: Regenerated.
32367         * lib/unictype/scripts.h: Regenerated.
32368         * lib/unictype/scripts_byname.gperf: Regenerated.
32369         * lib/unictype/sy_java_ident.h: Regenerated.
32370         * lib/unilbrk/lbrkprop1.h: Regenerated.
32371         * lib/unilbrk/lbrkprop2.h: Regenerated.
32372         * tests/unictype/test-categ_C.c: Regenerated.
32373         * tests/unictype/test-categ_Cf.c: Regenerated.
32374         * tests/unictype/test-categ_Cn.c: Regenerated.
32375         * tests/unictype/test-categ_L.c: Regenerated.
32376         * tests/unictype/test-categ_Ll.c: Regenerated.
32377         * tests/unictype/test-categ_Lm.c: Regenerated.
32378         * tests/unictype/test-categ_Lo.c: Regenerated.
32379         * tests/unictype/test-categ_Lu.c: Regenerated.
32380         * tests/unictype/test-categ_M.c: Regenerated.
32381         * tests/unictype/test-categ_Mc.c: Regenerated.
32382         * tests/unictype/test-categ_Me.c: Regenerated.
32383         * tests/unictype/test-categ_Mn.c: Regenerated.
32384         * tests/unictype/test-categ_N.c: Regenerated.
32385         * tests/unictype/test-categ_Nd.c: Regenerated.
32386         * tests/unictype/test-categ_Nl.c: Regenerated.
32387         * tests/unictype/test-categ_No.c: Regenerated.
32388         * tests/unictype/test-categ_P.c: Regenerated.
32389         * tests/unictype/test-categ_Pd.c: Regenerated.
32390         * tests/unictype/test-categ_Pe.c: Regenerated.
32391         * tests/unictype/test-categ_Pf.c: Regenerated.
32392         * tests/unictype/test-categ_Pi.c: Regenerated.
32393         * tests/unictype/test-categ_Po.c: Regenerated.
32394         * tests/unictype/test-categ_Ps.c: Regenerated.
32395         * tests/unictype/test-categ_S.c: Regenerated.
32396         * tests/unictype/test-categ_Sk.c: Regenerated.
32397         * tests/unictype/test-categ_Sm.c: Regenerated.
32398         * tests/unictype/test-categ_So.c: Regenerated.
32399         * tests/unictype/test-ctype_alnum.c: Regenerated.
32400         * tests/unictype/test-ctype_alpha.c: Regenerated.
32401         * tests/unictype/test-ctype_graph.c: Regenerated.
32402         * tests/unictype/test-ctype_lower.c: Regenerated.
32403         * tests/unictype/test-ctype_print.c: Regenerated.
32404         * tests/unictype/test-ctype_punct.c: Regenerated.
32405         * tests/unictype/test-ctype_upper.c: Regenerated.
32406         * tests/unictype/test-decdigit.h: Regenerated.
32407         * tests/unictype/test-digit.h: Regenerated.
32408         * tests/unictype/test-numeric.h: Regenerated.
32409         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32410         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32411         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32412         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32413         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32414         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32415         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32416         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32417         * tests/unictype/test-pr_combining.c: Regenerated.
32418         * tests/unictype/test-pr_dash.c: Regenerated.
32419         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32420         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32421         * tests/unictype/test-pr_deprecated.c: Regenerated.
32422         * tests/unictype/test-pr_diacritic.c: Regenerated.
32423         * tests/unictype/test-pr_extender.c: Regenerated.
32424         * tests/unictype/test-pr_format_control.c: Regenerated.
32425         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32426         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32427         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32428         * tests/unictype/test-pr_id_continue.c: Regenerated.
32429         * tests/unictype/test-pr_id_start.c: Regenerated.
32430         * tests/unictype/test-pr_ideographic.c: Regenerated.
32431         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32432         * tests/unictype/test-pr_lowercase.c: Regenerated.
32433         * tests/unictype/test-pr_math.c: Regenerated.
32434         * tests/unictype/test-pr_numeric.c: Regenerated.
32435         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32436         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32437         Regenerated.
32438         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32439         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32440         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32441         * tests/unictype/test-pr_other_math.c: Regenerated.
32442         * tests/unictype/test-pr_punctuation.c: Regenerated.
32443         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32444         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32445         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32446         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32447         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32448         * tests/unictype/test-pr_uppercase.c: Regenerated.
32449         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32450         * tests/unictype/test-pr_xid_start.c: Regenerated.
32451         * tests/unictype/test-pr_zero_width.c: Regenerated.
32452
32453         Update to Unicode 5.1.0.
32454         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32455         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32456         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32457         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32458         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32459         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32460         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32461         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32462         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32463         (nonspacing_table_ind): Update.
32464         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32465
32466         Update to Unicode 5.1.0.
32467         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32468         code transform.
32469         * lib/uniname/uniname.c (unicode_character_name,
32470         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32471         * lib/uniname/uninames.h: Regenerated.
32472         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32473
32474 2009-02-07  Bruno Haible  <bruno@clisp.org>
32475
32476         Merge gen-ctype and gen-lbrk into a single program.
32477         * lib/gen-uni-tables.c: New file, incorporating
32478         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32479         Add directory prefixes to the names of the generated files.
32480         * lib/unictype/gen-ctype.c: Remove file.
32481         * lib/unilbrk/gen-lbrk.c: Remove file.
32482         * modules/gen-uni-tables: New file.
32483         * modules/unictype/gen-ctype: Remove file.
32484         * modules/unilbrk/gen-lbrk: Remove file.
32485
32486 2009-02-07  Bruno Haible  <bruno@clisp.org>
32487
32488         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32489
32490         New module 'unistr/u32-strcoll'.
32491         * modules/unistr/u32-strcoll: New file.
32492         * lib/unistr/u32-strcoll.c: New file.
32493
32494         New module 'unistr/u16-strcoll'.
32495         * modules/unistr/u16-strcoll: New file.
32496         * lib/unistr/u16-strcoll.c: New file.
32497
32498         New module 'unistr/u8-strcoll'.
32499         * modules/unistr/u8-strcoll: New file.
32500         * lib/unistr/u8-strcoll.c: New file.
32501         * lib/unistr/u-strcoll.h: New file.
32502
32503 2009-02-07  Bruno Haible  <bruno@clisp.org>
32504
32505         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32506         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32507         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32508         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32509         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32510         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32511
32512 2009-02-07  Bruno Haible  <bruno@clisp.org>
32513
32514         Make 64-bit clean.
32515         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32516         output_combclass, output_bidi_category, output_decimal_digit,
32517         output_digit, output_numeric, output_mirror, output_scripts,
32518         output_ident_category): Use proper width specifier in format strings.
32519
32520 2009-02-07  Bruno Haible  <bruno@clisp.org>
32521
32522         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32523         failure behaviour.
32524
32525 2009-02-07  Jim Meyering  <meyering@redhat.com>
32526
32527         regex: avoid compilation failure with upcoming gcc-4.4
32528         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32529         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32530         "... error: integer overflow in preprocessor expression".
32531
32532 2009-02-05  Ben Pfaff  <blp@gnu.org>
32533
32534         Fix link errors on Windows when close module is used.
32535         * modules/close: Add $(LIB_CLOSE) to Link section.
32536         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32537         $(LIB_CLOSE) on Windows.
32538
32539 2009-02-05  Jim Meyering  <meyering@redhat.com>
32540
32541         still avoid unused-parameter warnings, but do it cleanly
32542         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32543         (get_fs_usage): Cast to void instead.
32544         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32545         (dev_from_mount_options, read_file_system_list): Cast to void.
32546         Prompted by Bruno Haible.
32547
32548 2009-02-04  Jim Meyering  <meyering@redhat.com>
32549
32550         fsusage.c: correct copyright year
32551         * lib/fsusage.c: Reflect year in which the change is pushed into
32552
32553         avoid misc. warnings
32554         * lib/fsusage.c (UNUSED_PARAM): Define.
32555         (get_fs_usage): Mark parameter "disk" as unused.
32556         * lib/getugroups.c (getgrent): Use "void" in prototype.
32557         * lib/mountlist.c: Mark unused parameters.
32558         (read_file_system_list): Declare a local with "const".
32559         * lib/nanosleep.c (getnow): Declare static.
32560         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32561
32562         dirfd: set errno upon failure
32563         * lib/dirfd.c: Include <errno.h>.
32564         Set errno to ENOTSUP when returning -1.
32565         * modules/dirfd (Depends-on): Add errno.
32566         Suggested by John Kodis <kodis@comcast.net>.
32567
32568 2009-02-01  Bruno Haible  <bruno@clisp.org>
32569
32570         Don't assume sizeof (long) >= sizeof (void *).
32571         * lib/memcmp.c: Include stdint.h.
32572         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32573         srcp2 to 'const byte *'.
32574         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32575         types to uintptr_t.
32576         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32577         * modules/memcmp (Depends-on): Add stdint.
32578         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32579
32580 2009-01-30  Eric Blake  <ebb9@byu.net>
32581
32582         fix more require-before-expand issues
32583         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32584         expand, AC_PROG_AWK.
32585         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32586
32587 2009-01-28  Eric Blake  <ebb9@byu.net>
32588
32589         version-etc: use consistent URL formatting
32590         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32591         Improve formatting.  Use fputs for string without %.
32592
32593 2009-01-28  Jim Meyering  <meyering@redhat.com>
32594
32595         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32596         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32597         "underquoted definition of NAME" from autoconf-2.59.
32598
32599 2009-01-28  Bruno Haible  <bruno@clisp.org>
32600
32601         * doc/gnulib.texi: Add "Obsolete modules" to index.
32602
32603 2009-01-28  Jim Meyering  <meyering@redhat.com>
32604
32605         useless-if-before-free: recognize more variants
32606         * build-aux/useless-if-before-free: Also recognize e.g.,
32607         if (NULL != p) free (p);
32608
32609 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32610
32611         test-getaddrinfo: skip (don't fail) this test when there's no network
32612         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32613         on the presumption that it means you lack network access.
32614
32615 2009-01-26  Jim Meyering  <meyering@redhat.com>
32616
32617         fflush: avoid warnings on modern systems
32618         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32619         pos and result, into scopes where they're used.
32620
32621 2009-01-26  Eric Blake  <ebb9@byu.net>
32622
32623         Silence warning reintroduced by recent extensions patch.
32624         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32625         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32626         autoconf.
32627
32628         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32629         * m4/00gnulib.m4: New file.
32630         * gnulib-tool (func_get_filelist): Always use it.
32631         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32632         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32633
32634 2009-01-25  Bruno Haible  <bruno@clisp.org>
32635
32636         Make test-quotearg work on MacOS X and AIX.
32637         * tests/test-quotearg.sh: New file.
32638         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32639         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32640         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32641         include <libintl.h>.
32642         (fake_locale): Remove variable.
32643         (gettext, dgettext, dcgettext): Remove functions.
32644         (main): Instead of setting a fake locale, set a real locale. Call
32645         textdomain and bindtextdomain.
32646         * modules/quotearg-tests (Files): Add the new files.
32647         (Depends-on): Add gettext, setenv, unsetenv.
32648         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32649         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32650         Augment TESTS_ENVIRONMENT.
32651
32652 2009-01-25  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32655         fr_FR.ISO8859-1 locale on MacOS X.
32656         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32657         ja_JP.eucJP locale on MacOS X.
32658         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32659         zh_CN.GB18030 locale on MacOS X.
32660
32661 2009-01-25  Bruno Haible  <bruno@clisp.org>
32662
32663         Avoid link errors on MacOS X 10.3.
32664         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32665         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32666
32667 2009-01-25  Bruno Haible  <bruno@clisp.org>
32668
32669         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32670         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32671         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32672         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32673         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32674         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32675         posix_spawnattr_init, posix_spawnattr_setsigmask,
32676         posix_spawnattr_setflags, posix_spawnattr_destroy.
32677
32678         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32679         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32680         * modules/execute (Files): Remove m4/posix_spawn.m4.
32681         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32682         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32683         posix_spawnattr_init, posix_spawnattr_setsigmask,
32684         posix_spawnattr_setflags, posix_spawnattr_destroy.
32685
32686 2009-01-25  Bruno Haible  <bruno@clisp.org>
32687
32688         * lib/glthread/threadlib.c: Include <stdlib.h>.
32689
32690 2009-01-25  Bruno Haible  <bruno@clisp.org>
32691
32692         * lib/glthread/threadlib.c (dummy): New declaration.
32693
32694 2009-01-25  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32697         multibyte characters also for the GB18030 encoding. Don't crash when
32698         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32699
32700 2009-01-25  Bruno Haible  <bruno@clisp.org>
32701
32702         Avoid redefining 'struct random_data' on OSF/1 5.1.
32703         * lib/stdlib.in.h: Include <random.h> if it exists.
32704         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32705         HAVE_RANDOM_H. Include <random.h> when testing whether
32706         'struct random_data' exists.
32707         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32708
32709 2009-01-25  Bruno Haible  <bruno@clisp.org>
32710
32711         Don't install charset.alias on MacOS X >= 10.3.
32712         * lib/localcharset.c (DARWIN7): New macro.
32713         (get_charset_aliases): Hardcode the result for Darwin7.
32714         * modules/localcharset (install-exec-local): Don't install
32715         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32716
32717 2009-01-25  Bruno Haible  <bruno@clisp.org>
32718
32719         Don't install charset.alias on mingw and Cygwin.
32720         * modules/localcharset (install-exec-local): Don't install
32721         charset.alias on mingw and Cygwin, if the file does not yet exist.
32722         The result for these platforms is hardcoded in localcharset.c.
32723
32724 2009-01-25  Bruno Haible  <bruno@clisp.org>
32725
32726         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32728         before requiring AC_USE_SYSTEM_EXTENSIONS.
32729
32730 2009-01-25  Jim Meyering  <meyering@redhat.com>
32731
32732         c-strtod: avoid warnings
32733         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32734         "assignment discards qualifiers from pointer target type" warnings.
32735
32736 2009-01-24  Bruno Haible  <bruno@clisp.org>
32737
32738         Add support for non-UTF-8 locales on MacOS X.
32739         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32740         canonical encodings. For Darwin 7 and newer, don't map traditional
32741         encodings to UTF-8.
32742         Reported by Vincent Lefevre <vincent@vinc17.org>
32743         at <http://savannah.gnu.org/bugs/?25235>.
32744
32745 2009-01-24  Bruno Haible  <bruno@clisp.org>
32746
32747         * doc/gnulib.texi (Obsolete modules): New section.
32748         Reported by Mike Frysinger <vapier@gentoo.org>.
32749
32750 2009-01-24  Bruno Haible  <bruno@clisp.org>
32751
32752         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32753         (%.dvi): New rule.
32754
32755 2009-01-24  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32758         Reported by Eric Blake.
32759
32760 2009-01-24  Bruno Haible  <bruno@clisp.org>
32761
32762         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32763         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32764         Reported by Gary V. Vaughan <gary@gnu.org>.
32765
32766 2009-01-24  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32769
32770 2009-01-23  Bruno Haible  <bruno@clisp.org>
32771
32772         Make c-strtod, c-strtold usable in libraries.
32773         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32774         (C_STRTOD): Call strdup instead of xstrdup.
32775         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32776         * modules/c-strtold (Depends-on): Likewise.
32777         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32778         * NEWS: Mention the change.
32779         Reported by Michael Gold <mgold@ncf.ca>.
32780
32781 2009-01-23  Jim Meyering  <meyering@redhat.com>
32782
32783         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32784         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32785         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32786
32787 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32788
32789         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32790         GNU CoreUtils.
32791         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32792         * modules/version-etc (Description): Update.
32793
32794 2009-01-22  Bruno Haible  <bruno@clisp.org>
32795
32796         Cache the C locale object.
32797         * lib/c-strtod.c (c_locale_cache): New variable.
32798         (c_locale): New function.
32799         (C_STRTOD): Use it, and don't call freelocale.
32800         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32801         Suggested by Paolo Bonzini.
32802
32803 2009-01-21  Bruno Haible  <bruno@clisp.org>
32804
32805         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32806         conditions other than overflow.
32807
32808 2009-01-21  Bruno Haible  <bruno@clisp.org>
32809
32810         * lib/c-strtod.c: Include errno.h.
32811         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32812         value from STRTOD_L and STRTOD.
32813
32814 2009-01-21  Bruno Haible  <bruno@clisp.org>
32815         and Jim Meyering  <meyering@redhat.com>
32816
32817         nanosleep: skip configure test (fail it) for apple universal builds
32818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32819         universal builds, assume that nanosleep does not work.
32820         * modules/nanosleep (Depends-on): Add multiarch.
32821
32822         mktime: skip configure test (fail it) for apple universal builds
32823         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32824         universal builds, assume that mktime does not work.
32825         * modules/mktime (Depends-on): Add multiarch.
32826
32827 2009-01-21  Eric Blake  <ebb9@byu.net>
32828
32829         multiarch: avoid expand-before-require warning
32830         * modules/multiarch (configure.ac): Require, rather than expand,
32831         gl_MULTIARCH.
32832         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32833         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32834         enforce that all clients require it.  Partial reversion of
32835         2008-12-29 patch.
32836
32837         error: avoid expand-before-require warning
32838         * modules/errno (configure.ac): Require, rather than expand,
32839         gl_HEADER_ERRNO_H.
32840         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32841         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32842         enforce that all clients require it.
32843
32844         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32845         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32846         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32847         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32848
32849 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32850
32851         Revert:
32852         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32853
32854         regex: do not depend on obsolete modules.
32855         * modules/regex: Remove memcmp and memmove.
32856
32857 2009-01-20  Bruno Haible  <bruno@clisp.org>
32858
32859         Make the 'link' module link on Windows NT 4.
32860         * lib/link.c (_WIN32_WINNT): Don't define.
32861         (CreateHardLinkFuncType): New type.
32862         (CreateHardLinkFunc, initialized): New variables.
32863         (initialize): New function.
32864         (link): Invoke CreateHardLink indirectly through the function pointer.
32865
32866 2009-01-20  Bruno Haible  <bruno@clisp.org>
32867
32868         Fix compilation failure on mingw.
32869         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32870
32871 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32872
32873         * doc/c-strtod.texi: Mention a couple of restrictions.
32874
32875 2009-01-20  Jim Meyering  <meyering@redhat.com>
32876
32877         gettimeofday: move more declarations out of functions
32878         * lib/gettimeofday.c: Move extern declarations of tzset and
32879         gmtime out of containing functions.  Prompted by Bruno Haible.
32880
32881 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32882
32883         regex: do not depend on obsolete modules.
32884         * modules/regex: Remove memcmp and memmove.
32885
32886 2009-01-19  Bruno Haible  <bruno@clisp.org>
32887
32888         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32889         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32890         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32891         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32892         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32893
32894 2009-01-19  Bruno Haible  <bruno@clisp.org>
32895
32896         * tests/test-link.c: Include <errno.h>.
32897         (main): Exit with code 77 when a hard link cannot be created due to
32898         the file system.
32899         * tests/test-link.sh: Skip test when a hard link cannot be created due
32900         to the file system.
32901         Suggested by Eric Blake.
32902
32903 2009-01-19  Martin Lambers  <marlam@marlam.de>
32904
32905         * modules/link-tests: New file.
32906         * tests/test-link.sh: New file.
32907         * tests/test-link.c: New file.
32908
32909 2009-01-19  Eric Blake  <ebb9@byu.net>
32910
32911         doc: mention another function added in cygwin 1.7.0
32912         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32913         Another new function in cygwin 1.7.
32914
32915 2009-01-19  Bruno Haible  <bruno@clisp.org>
32916
32917         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32918         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32919         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32920         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32921         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32922         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32923         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32924         * m4/md4.m4 (gl_MD4): Likewise.
32925         * m4/md5.m4 (gl_MD5): Likewise.
32926         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32927         * m4/sha1.m4 (gl_SHA1): Likewise.
32928         * m4/sha256.m4 (gl_SHA256): Likewise.
32929         * m4/sha512.m4 (gl_SHA512): Likewise.
32930
32931 2009-01-19  Bruno Haible  <bruno@clisp.org>
32932
32933         * modules/uniname/uniname-tests (Depends-on): Add progname.
32934         * tests/uniname/test-uninames.c: Include progname.h.
32935         (main): Call set_program_name.
32936
32937         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32938         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32939         (main): Call set_program_name.
32940
32941         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32942         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32943         (main): Call set_program_name.
32944
32945         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32946         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32947         (main): Call set_program_name.
32948
32949         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32950         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32951         (main): Call set_program_name.
32952
32953         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32954         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32955         (main): Call set_program_name.
32956
32957         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32958         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32959         (main): Call set_program_name.
32960
32961         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32962         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32963         (main): Call set_program_name.
32964
32965         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32966         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32967         (main): Call set_program_name.
32968
32969 2009-01-19  Eric Blake  <ebb9@byu.net>
32970
32971         test-unistd: test previous patch
32972         * tests/test-unistd.c: Test *_FILENO macros.
32973
32974         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32975         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32976         Guarantee a definition.
32977         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32978         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32979         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32980         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32981         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32982         Likewise.
32983         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32984         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32985         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32986         Likewise.
32987         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32988         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32989         (STDERR_FILENO): Likewise.
32990         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32991         (STDERR_FILENO): Likewise.
32992         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32993         (STDERR_FILENO): Likewise.
32994         Reported by Elbert Pol.
32995
32996 2009-01-19  Eric Blake  <ebb9@byu.net>
32997
32998         doc: mention more functions added in cygwin 1.7.0
32999         * doc/posix-functions/abort.texi (abort): Update wording related
33000         to cygwin.
33001         * doc/posix-functions/daylight.texi (daylight): Likewise.
33002         * doc/posix-functions/optarg.texi (optarg): Likewise.
33003         * doc/posix-functions/optarg.texi (opterr): Likewise.
33004         * doc/posix-functions/optarg.texi (optind): Likewise.
33005         * doc/posix-functions/optarg.texi (optopt): Likewise.
33006         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33007         worked in 1.5.x, and was withdrawn in 1.7.
33008         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33009         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33010         cygwin versions.
33011         * doc/posix-functions/perror.texi (perror): Likewise.
33012         * doc/posix-functions/printf.texi (printf): Likewise.
33013         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33014         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33015         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33016         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33017         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33018         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33019         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33020         Likewise.
33021         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33022         Likewise.
33023         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33024         this function.
33025         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33026         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33027         Likewise.
33028         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33029         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33030         * doc/posix-functions/confstr.texi (confstr): Likewise.
33031         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33032         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33033         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33034         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33035         * doc/posix-functions/fputws.texi (fputws): Likewise.
33036         * doc/posix-functions/fwide.texi (fwide): Likewise.
33037         * doc/posix-functions/getwc.texi (getwc): Likewise.
33038         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33039         * doc/posix-functions/putwc.texi (putwc): Likewise.
33040         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33041         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33042         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33043         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33044         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33045         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33046         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33047         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33048         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33049         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33050         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33051
33052 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33053
33054         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33055         * lib/ioctl.c: Include <sys/ioctl.h>.
33056
33057 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33058
33059         * modules/getdate-tests (Depends-on): Add progname.
33060         * tests/test-getdate.c: Use progname module, to avoid link errors
33061         on non-glibc systems.
33062
33063 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33064
33065         * modules/filenamecat-tests (Depends-on): Add progname.
33066         * modules/fstrcmp-tests (Depends-on): Likewise.
33067
33068         * tests/test-filenamecat.c: Use progname module, to avoid link
33069         errors on non-glibc systems.
33070         * tests/test-fstrcmp.c: Likewise.
33071
33072 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33073
33074         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33075         * lib/gettimeofday.c: Move extern declaration out of function.
33076
33077 2009-01-18  Bruno Haible  <bruno@clisp.org>
33078
33079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33080         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33081         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33082
33083 2009-01-18  Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/strftime.c (MEMPCPY): Remove unused macro.
33086         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33087
33088 2009-01-18  Martin Lambers  <marlam@marlam.de>
33089
33090         New module 'link'.
33091         * lib/unistd.in.h (link): New declaration.
33092         * lib/link.c: New file.
33093         * m4/link.m4: New file.
33094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33095         HAVE_LINK.
33096         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33097         * modules/link: New file.
33098         * doc/posix-functions/link.texi: Mention the new module.
33099
33100 2009-01-18  Bruno Haible  <bruno@clisp.org>
33101
33102         * tests/test-avltree_list.c (main): Call set_program_name.
33103         * tests/test-avltree_oset.c (main): Likewise.
33104         * tests/test-obstack-printf.c: Include progname.h.
33105         (main): Call set_program_name.
33106         * tests/test-quotearg.c: Include progname.h.
33107         (main): Call set_program_name.
33108         * tests/test-xmemdup0.c: Include progname.h.
33109         (main): Call set_program_name.
33110
33111 2009-01-18  Bruno Haible  <bruno@clisp.org>
33112
33113         New module 'alphasort'.
33114         * lib/dirent.in.h (alphasort): New declaration.
33115         * lib/alphasort.c: New file, from glibc with modifications.
33116         * m4/alphasort.m4: New file.
33117         * modules/alphasort: New file.
33118         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33119         HAVE_ALPHASORT.
33120         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33121         HAVE_ALPHASORT.
33122         * doc/posix-functions/alphasort.texi: Mention the new module and the
33123         portability problems.
33124
33125 2009-01-18  Bruno Haible  <bruno@clisp.org>
33126
33127         New module 'scandir'.
33128         * lib/dirent.in.h (scandir): New declaration.
33129         * lib/scandir.c: New file, from glibc with modifications.
33130         * m4/scandir.m4: New file.
33131         * modules/scandir: New file.
33132         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33133         HAVE_SCANDIR.
33134         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33135         HAVE_SCANDIR.
33136         * doc/posix-functions/scandir.texi: Mention the new module and the
33137         portability problems.
33138
33139 2009-01-17  Bruno Haible  <bruno@clisp.org>
33140
33141         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33142         Update documentation.
33143         (func_remove_suffix): Escape all dots in the suffix. Update
33144         documentation.
33145         (func_filter_filelist): Update documentation.
33146         Reported by Ralf Wildenhues.
33147
33148 2009-01-17  Bruno Haible  <bruno@clisp.org>
33149
33150         * modules/dprintf-posix-tests: New file.
33151         * tests/test-dprintf-posix.sh: New file.
33152         * tests/test-dprintf-posix.c: New file.
33153
33154         New modules 'dprintf', 'dprintf-posix'.
33155         * lib/stdio.in.h (dprintf): New declaration.
33156         * lib/dprintf.c: New file.
33157         * m4/dprintf.m4: New file.
33158         * m4/dprintf-posix.m4: New file.
33159         * modules/dprintf: New file.
33160         * modules/dprintf-posix: New file.
33161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33162         HAVE_DPRINTF, REPLACE_DPRINTF.
33163         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33164         HAVE_DPRINTF, REPLACE_DPRINTF.
33165         * doc/posix-functions/dprintf.texi: Mention the new modules.
33166
33167 2009-01-17  Bruno Haible  <bruno@clisp.org>
33168
33169         * modules/vdprintf-posix-tests: New file.
33170         * tests/test-vdprintf-posix.sh: New file.
33171         * tests/test-vdprintf-posix.c: New file.
33172
33173         New modules 'vdprintf', 'vdprintf-posix'.
33174         * lib/stdio.in.h (vdprintf): New declaration.
33175         * lib/vdprintf.c: New file.
33176         * m4/vdprintf.m4: New file.
33177         * m4/vdprintf-posix.m4: New file.
33178         * modules/vdprintf: New file.
33179         * modules/vdprintf-posix: New file.
33180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33181         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33182         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33183         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33184         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33185
33186 2009-01-17  Bruno Haible  <bruno@clisp.org>
33187
33188         Fix replacement of fopen on mingw.
33189         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33190         mingw.
33191
33192 2009-01-17  Bruno Haible  <bruno@clisp.org>
33193
33194         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33195         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33196
33197 2009-01-17  Bruno Haible  <bruno@clisp.org>
33198
33199         Avoid test-fflush2.sh failure on mingw.
33200         * tests/test-fflush2.c: Include binary-io.h.
33201         (main): Put standard input into binary mode.
33202         * modules/fflush-tests (Depends-on): Add binary-io.
33203
33204 2009-01-17  Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/wchar.in.h: In another particular situation, include only the
33207         system's <wchar.h> file.
33208         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33209         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33210         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33211
33212 2009-01-17  Bruno Haible  <bruno@clisp.org>
33213
33214         Support for stripping executables in --enable-relocatable.
33215         * build-aux/install-reloc: Expect one more argument, or an environment
33216         variable RELOC_STRIP_PROG. If set, strip the destination program and
33217         its wrapper.
33218         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33219         RELOC_STRIP_PROG.
33220         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33221         to set RELOCATABLE_STRIP.
33222         * NEWS: Mention the new Makefile requirement.
33223
33224 2009-01-17  Bruno Haible  <bruno@clisp.org>
33225
33226         * build-aux/install-reloc: Remove debugging information left over by
33227         C compiler on MacOS X.
33228
33229 2009-01-17  Bruno Haible  <bruno@clisp.org>
33230
33231         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33232         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33233         _NSGetExecutablePath.
33234
33235 2009-01-16  Jim Meyering  <meyering@redhat.com>
33236
33237         strerror: avoid warnings about discarding "const"
33238         * lib/strerror.c (rpl_strerror): Instead of returning a const
33239         string from each and every "case", use a variable, and add a single
33240         cast after the switch.
33241
33242 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33243
33244         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33245
33246 2009-01-16  Bruno Haible  <bruno@clisp.org>
33247
33248         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33249         array initializer syntax that also works in C++ mode.
33250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33251
33252 2009-01-16  Jim Meyering  <meyering@redhat.com>
33253
33254         poll: suppress a warning
33255         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33256         to ignore "...unsigned expression < 0 is always false" warnings.
33257
33258 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33259
33260         poll: remove declarations of unused variables
33261         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33262         sockbuf and optlen.
33263
33264 2009-01-15  Bruno Haible  <bruno@clisp.org>
33265
33266         Make fflush-after-ungetc POSIX compliant on BSD systems.
33267         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33268         (clear_ungetc_buffer): Implement also for other systems.
33269         (rpl_fflush): On glibc systems, invoke
33270         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33271         clear_ungetc_buffer after fetching the stream's position, not before.
33272
33273 2009-01-15  Bruno Haible  <bruno@clisp.org>
33274
33275         Make fflush-after-ungetc POSIX compliant on glibc systems.
33276         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33277         after ungetc.
33278         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33279         (rpl_fflush): On glibc systems, simply call the system's fflush
33280         function after clearing the ungetc buffer.
33281         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33282         Instead, lseek only to the end of file, then use the system's fseeko
33283         for the rest. On glibc systems, reset the EOF indicator bit.
33284
33285 2009-01-15  Jim Meyering  <meyering@redhat.com>
33286
33287         openmp.m4: revert quote-adding change, for portability to older autoconf
33288         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33289         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33290         Simon Josefsson noticed the problem when using autoconf-2.61.
33291
33292 2009-01-15  Bruno Haible  <bruno@clisp.org>
33293
33294         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33295         * tests/test-fflush2.c (ASSERT): Always fail.
33296         (main): Add two tests for fflush() after ungetc(), taking into account
33297         the Austin Group's clarification.
33298         Suggested by Eric Blake.
33299
33300 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33301
33302         mktime.m4: remove K&R-style function prototypes
33303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33304         for the Sun C++ compiler.
33305
33306 2009-01-14  Bruno Haible  <bruno@clisp.org>
33307
33308         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33309         while including <wchar.h>.
33310         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33311         the system's <wchar.h> file.
33312         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33313
33314 2009-01-14  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/csharp.m4: Don't mention gettext on the serial number line.
33317         * m4/csharpexec.m4: Likewise.
33318         * m4/eaccess.m4: Likewise.
33319         * m4/javaexec.m4: Likewise.
33320         * m4/sig_atomic_t.m4: Likewise.
33321         * m4/tmpdir.m4: Likewise.
33322         * m4/intldir.m4: Bump gettext version.
33323         * m4/lib-ld.m4: Likewise.
33324
33325 2009-01-14  Bruno Haible  <bruno@clisp.org>
33326
33327         * lib/progname.c (set_program_name): Add more comments.
33328         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33329
33330 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33331
33332         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33333         were sys/stat.h does not define it.
33334
33335 2009-01-14  Jim Meyering  <meyering@redhat.com>
33336
33337         many *.m4 files: improve m4 quoting
33338         99% of this change was performed by running the following commands:
33339         git ls-files | grep '\.m4$' | xargs perl -pi \
33340           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33341           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33342           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33343           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33344         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33345         The remainder were to add Copyright dates, increment serial numbers,
33346         undo some changes in comments, exclude m4/intl.m4, and add quotes
33347         around the "1" in ",1" where the unusual spacing prohibited the
33348         above regexps from doing the job.  For more details, see
33349         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33350         * m4/acl.m4: Modified.
33351         * m4/afs.m4: Likewise.
33352         * m4/alloca.m4: Likewise.
33353         * m4/argp.m4: Likewise.
33354         * m4/argz.m4: Likewise.
33355         * m4/atexit.m4: Likewise.
33356         * m4/bison-i18n.m4: Likewise.
33357         * m4/bison.m4: Likewise.
33358         * m4/byteswap.m4: Likewise.
33359         * m4/c-stack.m4: Likewise.
33360         * m4/c-strtod.m4: Likewise.
33361         * m4/calloc.m4: Likewise.
33362         * m4/canonicalize-lgpl.m4: Likewise.
33363         * m4/chown.m4: Likewise.
33364         * m4/clock_time.m4: Likewise.
33365         * m4/codeset.m4: Likewise.
33366         * m4/copy-file.m4: Likewise.
33367         * m4/csharp.m4: Likewise.
33368         * m4/csharpcomp.m4: Likewise.
33369         * m4/csharpexec.m4: Likewise.
33370         * m4/d-ino.m4: Likewise.
33371         * m4/d-type.m4: Likewise.
33372         * m4/dirfd.m4: Likewise.
33373         * m4/double-slash-root.m4: Likewise.
33374         * m4/eaccess.m4: Likewise.
33375         * m4/eealloc.m4: Likewise.
33376         * m4/environ.m4: Likewise.
33377         * m4/errno_h.m4: Likewise.
33378         * m4/euidaccess.m4: Likewise.
33379         * m4/execute.m4: Likewise.
33380         * m4/fatal-signal.m4: Likewise.
33381         * m4/fchdir.m4: Likewise.
33382         * m4/fcntl_h.m4: Likewise.
33383         * m4/fileblocks.m4: Likewise.
33384         * m4/filenamecat.m4: Likewise.
33385         * m4/findprog.m4: Likewise.
33386         * m4/flexmember.m4: Likewise.
33387         * m4/fnmatch.m4: Likewise.
33388         * m4/fopen.m4: Likewise.
33389         * m4/fpending.m4: Likewise.
33390         * m4/fprintf-posix.m4: Likewise.
33391         * m4/free.m4: Likewise.
33392         * m4/frexp.m4: Likewise.
33393         * m4/frexpl.m4: Likewise.
33394         * m4/fsusage.m4: Likewise.
33395         * m4/ftruncate.m4: Likewise.
33396         * m4/gc-camellia.m4: Likewise.
33397         * m4/gc-random.m4: Likewise.
33398         * m4/gc.m4: Likewise.
33399         * m4/getaddrinfo.m4: Likewise.
33400         * m4/getcwd-abort-bug.m4: Likewise.
33401         * m4/getcwd-path-max.m4: Likewise.
33402         * m4/getdate.m4: Likewise.
33403         * m4/getdomainname.m4: Likewise.
33404         * m4/getgroups.m4: Likewise.
33405         * m4/gethostname.m4: Likewise.
33406         * m4/gethrxtime.m4: Likewise.
33407         * m4/getline.m4: Likewise.
33408         * m4/getloadavg.m4: Likewise.
33409         * m4/getndelim2.m4: Likewise.
33410         * m4/getpass.m4: Likewise.
33411         * m4/gettext.m4: Likewise.
33412         * m4/gettime.m4: Likewise.
33413         * m4/gettimeofday.m4: Likewise.
33414         * m4/gnulib-common.m4: Likewise.
33415         * m4/group-member.m4: Likewise.
33416         * m4/host-os.m4: Likewise.
33417         * m4/iconv.m4: Likewise.
33418         * m4/iconv_open.m4: Likewise.
33419         * m4/inet_ntop.m4: Likewise.
33420         * m4/inet_pton.m4: Likewise.
33421         * m4/inline.m4: Likewise.
33422         * m4/intldir.m4: Likewise.
33423         * m4/intlmacosx.m4: Likewise.
33424         * m4/intmax.m4: Likewise.
33425         * m4/intmax_t.m4: Likewise.
33426         * m4/inttypes.m4: Likewise.
33427         * m4/inttypes_h.m4: Likewise.
33428         * m4/inttypes-pri.m4: Likewise.
33429         * m4/isapipe.m4: Likewise.
33430         * m4/isnand.m4: Likewise.
33431         * m4/isnanf.m4: Likewise.
33432         * m4/isnanl.m4: Likewise.
33433         * m4/javacomp.m4: Likewise.
33434         * m4/javaexec.m4: Likewise.
33435         * m4/jm-winsz1.m4: Likewise.
33436         * m4/jm-winsz2.m4: Likewise.
33437         * m4/lchown.m4: Likewise.
33438         * m4/lcmessage.m4: Likewise.
33439         * m4/ldexpl.m4: Likewise.
33440         * m4/lib-ld.m4: Likewise.
33441         * m4/lib-link.m4: Likewise.
33442         * m4/libsigsegv.m4: Likewise.
33443         * m4/link-follow.m4: Likewise.
33444         * m4/localcharset.m4: Likewise.
33445         * m4/locale-fr.m4: Likewise.
33446         * m4/locale-ja.m4: Likewise.
33447         * m4/locale-tr.m4: Likewise.
33448         * m4/locale-zh.m4: Likewise.
33449         * m4/lock.m4: Likewise.
33450         * m4/longlong.m4: Likewise.
33451         * m4/ls-mntd-fs.m4: Likewise.
33452         * m4/lstat.m4: Likewise.
33453         * m4/malloc.m4: Likewise.
33454         * m4/mathl.m4: Likewise.
33455         * m4/mbrtowc.m4: Likewise.
33456         * m4/mbstate_t.m4: Likewise.
33457         * m4/mbswidth.m4: Likewise.
33458         * m4/memchr.m4: Likewise.
33459         * m4/memcmp.m4: Likewise.
33460         * m4/memcpy.m4: Likewise.
33461         * m4/memmem.m4: Likewise.
33462         * m4/memmove.m4: Likewise.
33463         * m4/mempcpy.m4: Likewise.
33464         * m4/memrchr.m4: Likewise.
33465         * m4/memset.m4: Likewise.
33466         * m4/minmax.m4: Likewise.
33467         * m4/mkdir-slash.m4: Likewise.
33468         * m4/mkdtemp.m4: Likewise.
33469         * m4/mktime.m4: Likewise.
33470         * m4/mmap-anon.m4: Likewise.
33471         * m4/mountlist.m4: Likewise.
33472         * m4/nanosleep.m4: Likewise.
33473         * m4/nls.m4: Likewise.
33474         * m4/nocrash.m4: Likewise.
33475         * m4/open.m4: Likewise.
33476         * m4/openat.m4: Likewise.
33477         * m4/openmp.m4: Likewise.
33478         * m4/pathmax.m4: Likewise.
33479         * m4/perl.m4: Likewise.
33480         * m4/physmem.m4: Likewise.
33481         * m4/pipe.m4: Likewise.
33482         * m4/po.m4: Likewise.
33483         * m4/poll.m4: Likewise.
33484         * m4/posixtm.m4: Likewise.
33485         * m4/posixver.m4: Likewise.
33486         * m4/printf-frexp.m4: Likewise.
33487         * m4/printf-frexpl.m4: Likewise.
33488         * m4/printf-posix.m4: Likewise.
33489         * m4/printf-posix-rpl.m4: Likewise.
33490         * m4/printf.m4: Likewise.
33491         * m4/progtest.m4: Likewise.
33492         * m4/putenv.m4: Likewise.
33493         * m4/readline.m4: Likewise.
33494         * m4/readlink.m4: Likewise.
33495         * m4/readutmp.m4: Likewise.
33496         * m4/realloc.m4: Likewise.
33497         * m4/regex.m4: Likewise.
33498         * m4/relocatable.m4: Likewise.
33499         * m4/relocatable-lib.m4: Likewise.
33500         * m4/rename-dest-slash.m4: Likewise.
33501         * m4/rename.m4: Likewise.
33502         * m4/rmdir-errno.m4: Likewise.
33503         * m4/rmdir.m4: Likewise.
33504         * m4/roundf.m4: Likewise.
33505         * m4/roundl.m4: Likewise.
33506         * m4/rpmatch.m4: Likewise.
33507         * m4/save-cwd.m4: Likewise.
33508         * m4/selinux-selinux-h.m4: Likewise.
33509         * m4/setenv.m4: Likewise.
33510         * m4/settime.m4: Likewise.
33511         * m4/sig2str.m4: Likewise.
33512         * m4/sig_atomic_t.m4: Likewise.
33513         * m4/signalblocking.m4: Likewise.
33514         * m4/signbit.m4: Likewise.
33515         * m4/sigpipe.m4: Likewise.
33516         * m4/sockets.m4: Likewise.
33517         * m4/sockpfaf.m4: Likewise.
33518         * m4/st_dm_mode.m4: Likewise.
33519         * m4/stat-time.m4: Likewise.
33520         * m4/stdbool.m4: Likewise.
33521         * m4/stdint.m4: Likewise.
33522         * m4/stdint_h.m4: Likewise.
33523         * m4/stpcpy.m4: Likewise.
33524         * m4/stpncpy.m4: Likewise.
33525         * m4/strcase.m4: Likewise.
33526         * m4/strchrnul.m4: Likewise.
33527         * m4/strcspn.m4: Likewise.
33528         * m4/strdup.m4: Likewise.
33529         * m4/strftime.m4: Likewise.
33530         * m4/strndup.m4: Likewise.
33531         * m4/strnlen.m4: Likewise.
33532         * m4/strpbrk.m4: Likewise.
33533         * m4/strptime.m4: Likewise.
33534         * m4/strsep.m4: Likewise.
33535         * m4/strtod.m4: Likewise.
33536         * m4/strtoimax.m4: Likewise.
33537         * m4/strtok_r.m4: Likewise.
33538         * m4/strtol.m4: Likewise.
33539         * m4/strtoll.m4: Likewise.
33540         * m4/strtoul.m4: Likewise.
33541         * m4/strtoull.m4: Likewise.
33542         * m4/strtoumax.m4: Likewise.
33543         * m4/strverscmp.m4: Likewise.
33544         * m4/threadlib.m4: Likewise.
33545         * m4/timegm.m4: Likewise.
33546         * m4/tm_gmtoff.m4: Likewise.
33547         * m4/tmpdir.m4: Likewise.
33548         * m4/tmpfile.m4: Likewise.
33549         * m4/tzset.m4: Likewise.
33550         * m4/uintmax_t.m4: Likewise.
33551         * m4/unlinkdir.m4: Likewise.
33552         * m4/unlocked-io.m4: Likewise.
33553         * m4/uptime.m4: Likewise.
33554         * m4/userspec.m4: Likewise.
33555         * m4/utimbuf.m4: Likewise.
33556         * m4/utime.m4: Likewise.
33557         * m4/utimes-null.m4: Likewise.
33558         * m4/utimes.m4: Likewise.
33559         * m4/vararrays.m4: Likewise.
33560         * m4/vasnprintf.m4: Likewise.
33561         * m4/vfprintf-posix.m4: Likewise.
33562         * m4/vprintf-posix.m4: Likewise.
33563         * m4/wait-process.m4: Likewise.
33564         * m4/wchar_t.m4: Likewise.
33565         * m4/wint_t.m4: Likewise.
33566         * m4/write-any-file.m4: Likewise.
33567         * m4/yield.m4: Likewise.
33568
33569 2009-01-13  Bruno Haible  <bruno@clisp.org>
33570
33571         Avoid test-copy-file.sh failures when ACL support insufficient.
33572         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33573         TESTS_ENVIRONMENT.
33574         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33575         Reported by Jim Meyering.
33576
33577 2009-01-13  Bruno Haible  <bruno@clisp.org>
33578
33579         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33580         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33581         * modules/unistdio/u8-printf-parse (Files): Likewise.
33582         * modules/unistdio/u32-printf-parse (Files): Likewise.
33583         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33584
33585 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33586
33587         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33588         and m4/inttypes_h.m4 too.
33589
33590 2009-01-12  Eric Blake  <ebb9@byu.net>
33591
33592         tests: IRIX 6.2 cc can't compile -0.0 into .data
33593         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33594         rather than at compile-time.
33595         * tests/test-floorl.c (minus_zero): Likewise.
33596         * tests/test-frexpl.c (minus_zero): Likewise.
33597         * tests/test-isnan.c (minus_zerol): Likewise.
33598         * tests/test-isnanl.h (minus_zero): Likewise.
33599         * tests/test-ldexpl.c (minus_zero): Likewise.
33600         * tests/test-roundl.c (minus_zero): Likewise.
33601         * tests/test-signbit.c (minus_zerol): Likewise.
33602         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33603         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33604         * tests/test-truncl.c (minus_zero): Likewise.
33605         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33606         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33607         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33608
33609 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33610
33611         regex: fix glibc bug 9697
33612         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33613         handling.
33614
33615 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33616
33617         regex: fix glibc bug 697
33618         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33619         being NULL also if there are no backreferences.
33620
33621 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33622
33623         regex: merge glibc changes
33624         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33625         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33626         re_string_skip_chars, re_string_reconstruct): Likewise.
33627         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33628
33629 2009-01-07  Jim Meyering  <meyering@redhat.com>
33630
33631         poll: filter through cppi
33632         * lib/poll.c: Indent cpp directives to reflect nesting.
33633
33634 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33635
33636         poll: don't return uninitialized
33637         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33638
33639 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33640
33641         avoid compile failure on AIX 6.1
33642         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33643         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33644
33645 2009-01-04  Jim Meyering  <meyering@redhat.com>
33646
33647         remove duplicate inclusion of <stdio.h>
33648         * tests/test-fprintf-posix.c: Likewise.
33649         * tests/test-printf-posix.c: Likewise.
33650         * tests/test-snprintf-posix.c: Likewise.
33651         * tests/test-sprintf-posix.c: Likewise.
33652         * tests/test-vasprintf-posix.c: Likewise.
33653         * tests/test-vfprintf-posix.c: Likewise.
33654         * tests/test-vprintf-posix.c: Likewise.
33655         * tests/test-vsnprintf-posix.c: Likewise.
33656         * tests/test-vsprintf-posix.c: Likewise.
33657
33658 2009-01-03  Jim Meyering  <meyering@redhat.com>
33659
33660         gnulib-tool: fix sed-based filtering
33661         * gnulib-tool (func_filter_filelist): Remove extra backslash
33662         in sed_fff_filter definition.
33663
33664 2009-01-02  Jim Meyering  <meyering@redhat.com>
33665
33666         strftime: avoid compilation failure on Solaris 2.6
33667         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33668         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33669         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33670         be available.  Reported by Tom G. Christensen.  Details in
33671         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33672
33673 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33674             Bruno Haible  <bruno@clisp.org>
33675
33676         Speed up gnulib-tool by doing more string processing through shell
33677         built-ins.
33678         * gnulib-tool (fast_func_append): New variable.
33679         (func_remove_prefix, func_remove_suffix): New functions.
33680         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33681         (func_filter_filelist): New function.
33682         (func_get_dependencies): Use func_remove_suffix instead of sed.
33683         (func_get_automake_snippet): Use func_filter_filelist instead of a
33684         subshell and sed invocation.
33685
33686 2009-01-01  Bruno Haible  <bruno@clisp.org>
33687
33688         Fix a security bug.
33689         * gnulib-tool (func_import, import, update): Don't allow the characters
33690         '"', '$', '`', '\' in macro arguments that become part of commands that
33691         are evaluated.
33692
33693 2009-01-01  Bruno Haible  <bruno@clisp.org>
33694
33695         * gnulib-tool (func_reset_sigpipe): Add more comments.
33696
33697 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33698
33699         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33700         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33701         already know the answer.
33702
33703 2009-01-01  Jim Meyering  <meyering@redhat.com>
33704
33705         * lib/version-etc.c (version_etc_va): Update copyright year.
33706
33707 2008-12-30  Bruno Haible  <bruno@clisp.org>
33708
33709         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33710         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33711         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33712
33713 2008-12-29  Eric Blake  <ebb9@byu.net>
33714
33715         multiarch: avoid autoconf AC_REQUIRE bug
33716         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33717         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33718         2.63 and older.
33719         Reported by Bruno Haible, and analyzed in
33720         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33721
33722 2008-12-29  Bruno Haible  <bruno@clisp.org>
33723
33724         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33725         files in subdirectories correctly.
33726         Reported by Ralf Wildenhues.
33727
33728 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33729
33730         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33731         rather than 'join FILE -', for Solaris join.
33732
33733 2008-12-29  Bruno Haible  <bruno@clisp.org>
33734
33735         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33736         quoting.
33737         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33738         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33739         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33740         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33741         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33742         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33743         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33744         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33745         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33746         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33747         * m4/nls.m4 (AM_NLS): Likewise.
33748         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33749         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33750         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33751         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33752         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33753         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33754         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33755         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33756         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33757         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33758         * m4/xsize.m4 (gl_XSIZE): Likewise.
33759         Suggested by Jim Meyering.
33760
33761 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33762
33763         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33764         * lib/parse-duration.c: use a switch instead of cascading if's.
33765
33766 2008-12-29  Eric Blake  <ebb9@byu.net>
33767
33768         wchar.h: supply WEOF on Irix 5.3
33769         * lib/wchar.in.h (wint_t): Also supply WEOF.
33770         * lib/wctype.in.h (wint_t): Likewise.
33771         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33772         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33773         Reported by Tom G. Christensen.
33774
33775 2008-12-26  Bruno Haible  <bruno@clisp.org>
33776
33777         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33778         i486, i586, i686.
33779
33780 2008-12-26  Bruno Haible  <bruno@clisp.org>
33781
33782         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33783
33784 2008-12-26  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33787         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33788         not __STDC_CONSTANT_MACROS.
33789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33790
33791 2008-12-25  Bruno Haible  <bruno@clisp.org>
33792
33793         Add support for universal builds to vasnprintf.
33794         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33795         universal builds, guess no.
33796         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33797         * modules/vasprintf-posix (Depends-on): Likewise.
33798         * modules/fprintf-posix (Depends-on): Likewise.
33799         * modules/vfprintf-posix (Depends-on): Likewise.
33800         * modules/snprintf-posix (Depends-on): Likewise.
33801         * modules/vsnprintf-posix (Depends-on): Likewise.
33802         * modules/sprintf-posix (Depends-on): Likewise.
33803         * modules/vsprintf-posix (Depends-on): Likewise.
33804         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33805         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33806         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33811
33812         Add support for universal builds to <inttypes.h>.
33813         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33814         _SCNu64_PREFIX): In Apple
33815         universal builds, define directly, using _LP64.
33816         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33817         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33818         * modules/inttypes (Depends-on): Add multiarch.
33819         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33820
33821         Add support for universal builds to <stdint.h>.
33822         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33823         universal builds, define directly, using _LP64.
33824         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33825         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33826         and size_t.
33827         * modules/stdint (Depends-on): Add multiarch.
33828         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33829
33830         New module 'multiarch'.
33831         * modules/multiarch: New file.
33832         * m4/multiarch.m4: New file.
33833
33834 2008-12-25  Bruno Haible  <bruno@clisp.org>
33835
33836         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33837
33838 2008-12-25  Bruno Haible  <bruno@clisp.org>
33839
33840         * modules/btowc (License): Relicense under LGPLv2+.
33841         * modules/mbsinit (License): Likewise.
33842         * modules/mbrtowc (License): Likewise.
33843         * modules/wcrtomb (License): Likewise.
33844         * modules/streq (License): Likewise.
33845         Reported by David Lutterkort <lutter@redhat.com>.
33846
33847 2008-12-23  Bruno Haible  <bruno@clisp.org>
33848
33849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33850
33851 2008-12-23  Bruno Haible  <bruno@clisp.org>
33852
33853         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33855         GETADDRINFO_LIB, not in LIBS.
33856         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33857         * modules/canon-host (Link): Likewise.
33858         * NEWS: Mention the change.
33859         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33860         GETADDRINFO_LIB.
33861
33862 2008-12-22  Bruno Haible  <bruno@clisp.org>
33863
33864         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33865         * doc/posix-functions/iswalpha_l.texi: Likewise.
33866         * doc/posix-functions/iswblank_l.texi: Likewise.
33867         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33868         * doc/posix-functions/iswctype_l.texi: Likewise.
33869         * doc/posix-functions/iswdigit_l.texi: Likewise.
33870         * doc/posix-functions/iswgraph_l.texi: Likewise.
33871         * doc/posix-functions/iswlower_l.texi: Likewise.
33872         * doc/posix-functions/iswprint_l.texi: Likewise.
33873         * doc/posix-functions/iswpunct_l.texi: Likewise.
33874         * doc/posix-functions/iswspace_l.texi: Likewise.
33875         * doc/posix-functions/iswupper_l.texi: Likewise.
33876         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33877         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33878         * doc/posix-functions/open_wmemstream.texi: Likewise.
33879         * doc/posix-functions/swscanf.texi: Likewise.
33880         * doc/posix-functions/towctrans_l.texi: Likewise.
33881         * doc/posix-functions/towlower.texi: Likewise.
33882         * doc/posix-functions/towlower_l.texi: Likewise.
33883         * doc/posix-functions/towupper.texi: Likewise.
33884         * doc/posix-functions/towupper_l.texi: Likewise.
33885         * doc/posix-functions/vfwprintf.texi: Likewise.
33886         * doc/posix-functions/vfwscanf.texi: Likewise.
33887         * doc/posix-functions/vswscanf.texi: Likewise.
33888         * doc/posix-functions/vwprintf.texi: Likewise.
33889         * doc/posix-functions/vwscanf.texi: Likewise.
33890         * doc/posix-functions/wcpcpy.texi: Likewise.
33891         * doc/posix-functions/wcpncpy.texi: Likewise.
33892         * doc/posix-functions/wcscasecmp.texi: Likewise.
33893         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33894         * doc/posix-functions/wcscoll_l.texi: Likewise.
33895         * doc/posix-functions/wcsdup.texi: Likewise.
33896         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33897         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33898         * doc/posix-functions/wcsnlen.texi: Likewise.
33899         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33900         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33901         * doc/posix-functions/wctrans_l.texi: Likewise.
33902         * doc/posix-functions/wctype_l.texi: Likewise.
33903         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33904         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33905         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33906         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33907         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33908         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33909         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33910         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33911         * doc/glibc-functions/wcschrnul.texi: Likewise.
33912         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33913         * doc/glibc-functions/wcstod_l.texi: Likewise.
33914         * doc/glibc-functions/wcstof_l.texi: Likewise.
33915         * doc/glibc-functions/wcstol_l.texi: Likewise.
33916         * doc/glibc-functions/wcstold_l.texi: Likewise.
33917         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33918         * doc/glibc-functions/wcstoq.texi: Likewise.
33919         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33920         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33921         * doc/glibc-functions/wcstouq.texi: Likewise.
33922         * doc/glibc-functions/wmempcpy.texi: Likewise.
33923
33924 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33925             Eric Blake  <ebb9@byu.net>
33926             Paolo Bonzini  <bonzini@gnu.org>
33927             Bruno Haible  <bruno@clisp.org>
33928
33929         Make c-stack work on Haiku.
33930         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33931         (c_stack_action): Use SA_ONSTACK flag.
33932
33933 2008-12-22  Bruno Haible  <bruno@clisp.org>
33934
33935         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33936
33937 2008-12-22  Bruno Haible  <bruno@clisp.org>
33938
33939         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33940         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33941         being overridden.
33942         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33943         New macros.
33944         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33946         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33947         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33948
33949 2008-12-22  Bruno Haible  <bruno@clisp.org>
33950
33951         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33952         from test code.
33953
33954 2008-12-22  Eric Blake  <ebb9@byu.net>
33955
33956         Avoid gcc warnings on cygwin.
33957         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33958         Avoid unused variable.
33959         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33960         Likewise.
33961
33962 2008-12-22  Bruno Haible  <bruno@clisp.org>
33963
33964         Remove HAVE_MBRTOWC conditionals.
33965         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33966         (mbscasecmp): Assume mbrtowc function.
33967         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33968         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33969         * lib/mbschr.c: Include mbuiter.h unconditionally.
33970         (mbschr): Assume mbrtowc function.
33971         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33972         (mbscspn): Assume mbrtowc function.
33973         * lib/mbslen.c: Include mbuiter.h unconditionally.
33974         (mbslen): Assume mbrtowc function.
33975         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33976         (mbsncasecmp): Assume mbrtowc function.
33977         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33978         (mbsnlen): Assume mbrtowc function.
33979         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33980         (mbspbrk): Assume mbrtowc function.
33981         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33982         (mbspcasecmp): Assume mbrtowc function.
33983         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33984         (mbsrchr): Assume mbrtowc function.
33985         * lib/mbssep.c: Include mbuiter.h unconditionally.
33986         (mbssep): Assume mbrtowc function.
33987         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33988         (mbsspn): Assume mbrtowc function.
33989         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33990         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33991         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33992         (mbstok_r): Assume mbrtowc function.
33993         * lib/propername.c: Include mbuiter.h unconditionally.
33994         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33995         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33996         (trim2): Assume mbrtowc function.
33997         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33998         (mbsnwidth): Assume mbrtowc function.
33999         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34000         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34001         fallback definitions.
34002         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34003
34004 2008-12-22  Bruno Haible  <bruno@clisp.org>
34005
34006         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34007
34008 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34009
34010         * modules/regex: Request emulations for the mb*/wc* functions we need.
34011         * m4/regex.m4: Don't look for those functions here.
34012         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34013
34014 2008-12-22  Bruno Haible  <bruno@clisp.org>
34015
34016         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34017
34018 2008-12-21  Bruno Haible  <bruno@clisp.org>
34019
34020         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34021         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34022         (Include): Remove conditionalization.
34023         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34024         (Include): Remove conditionalization.
34025         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34026         (Include): Remove conditionalization.
34027         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34028         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34029         * NEWS: Mention the change.
34030         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34031         via Sergey Poznyakoff <gray@gnu.org.ua>.
34032
34033 2008-12-21  Bruno Haible  <bruno@clisp.org>
34034
34035         * MODULES.html.sh (Extended multibyte and wide character utilities
34036         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34037         wcrtomb, wcsrtombs.
34038         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34039         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34040         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34041         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34042
34043 2008-12-21  Bruno Haible  <bruno@clisp.org>
34044
34045         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34046
34047 2008-12-21  Bruno Haible  <bruno@clisp.org>
34048
34049         * modules/wcsnrtombs-tests: New file.
34050         * tests/test-wcsnrtombs1.sh: New file.
34051         * tests/test-wcsnrtombs2.sh: New file.
34052         * tests/test-wcsnrtombs3.sh: New file.
34053         * tests/test-wcsnrtombs4.sh: New file.
34054         * tests/test-wcsnrtombs.c: New file.
34055
34056         New module 'wcsnrtombs'.
34057         * lib/wchar.in.h (wcsnrtombs): New declaration.
34058         * lib/wcsnrtombs.c: New file.
34059         * lib/wcsrtombs-state.c: New file.
34060         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34061         (internal_state): Remove variable.
34062         * m4/wcsnrtombs.m4: New file.
34063         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34064         compilation units.
34065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34066         HAVE_WCSNRTOMBS.
34067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34068         HAVE_WCSNRTOMBS.
34069         * modules/wcsnrtombs: New file.
34070         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34071         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34072
34073 2008-12-21  Bruno Haible  <bruno@clisp.org>
34074
34075         * modules/wcsrtombs-tests: New file.
34076         * tests/test-wcsrtombs1.sh: New file.
34077         * tests/test-wcsrtombs2.sh: New file.
34078         * tests/test-wcsrtombs3.sh: New file.
34079         * tests/test-wcsrtombs4.sh: New file.
34080         * tests/test-wcsrtombs.c: New file.
34081
34082         New module 'wcsrtombs'.
34083         * lib/wchar.in.h (wcsrtombs): New declaration.
34084         * lib/wcsrtombs.c: New file.
34085         * m4/wcsrtombs.m4: New file.
34086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34087         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34089         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34090         * modules/wcsrtombs: New file.
34091         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34092         bugs.
34093
34094 2008-12-21  Bruno Haible  <bruno@clisp.org>
34095
34096         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34097         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34099         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34100         if not correct.
34101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34102         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34103         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34104         m4/locale-zh.m4, m4/codeset.m4.
34105         * doc/posix-functions/wcrtomb.texi: Document the bug.
34106
34107 2008-12-21  Bruno Haible  <bruno@clisp.org>
34108
34109         Work around a btowc() bug on IRIX 6.5.
34110         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34111         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34112         REPLACE_WTOBC if not.
34113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34114         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34115         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34116
34117 2008-12-21  Bruno Haible  <bruno@clisp.org>
34118
34119         * modules/wcrtomb-tests: New file.
34120         * tests/test-wcrtomb.sh: New file.
34121         * tests/test-wcrtomb.c: New file.
34122
34123         New module 'wcrtomb'.
34124         * lib/wchar.in.h (wcrtomb): New declaration.
34125         * lib/wcrtomb.c: New file.
34126         * m4/wcrtomb.m4: New file.
34127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34128         HAVE_WCRTOMB.
34129         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34130         HAVE_WCRTOMB.
34131         * modules/wcrtomb: New file.
34132         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34133
34134 2008-12-21  Bruno Haible  <bruno@clisp.org>
34135
34136         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34137         * modules/mbsrtowcs (Files): Likewise.
34138         * modules/wctob (Files): Likewise.
34139         * modules/c-strcase-tests (Files): Likewise.
34140         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34141         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34142         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34143         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34144         * modules/vasnprintf-posix-tests (Files): Likewise.
34145
34146 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34147
34148         gitlog-to-changelog: pass all command-line arguments to git-log
34149         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34150         it is sometimes convenient to filter the commits in various ways.
34151         gitlog-to-changelog only allows --since to specify a start date,
34152         but git-log itself supports many other filtering mechanisms.
34153         At the moment, I want to filter by branch name.  Rather than
34154         adding a --branch option to gitlog-to-changelog, it seems more
34155         flexible to simply pass all options directly to git-log and let
34156         git do the work.  Notice that this effectively makes --since a
34157         redundant option for gitlog-to-changelog, but removing it would
34158         require current usage to change since calls would then require
34159         an additional '--'.
34160
34161 2008-12-21  Bruno Haible  <bruno@clisp.org>
34162
34163         * modules/mbsnrtowcs-tests: New file.
34164         * tests/test-mbsnrtowcs1.sh: New file.
34165         * tests/test-mbsnrtowcs2.sh: New file.
34166         * tests/test-mbsnrtowcs3.sh: New file.
34167         * tests/test-mbsnrtowcs4.sh: New file.
34168         * tests/test-mbsnrtowcs.c: New file.
34169
34170         New module 'mbsnrtowcs'.
34171         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34172         * lib/mbsnrtowcs.c: New file.
34173         * lib/mbsrtowcs-state.c: New file.
34174         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34175         (internal_state): Remove variable.
34176         * m4/mbsnrtowcs.m4: New file.
34177         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34178         compilation units.
34179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34180         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34181         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34182         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34183         * modules/mbsnrtowcs: New file.
34184         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34185         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34186         portability problem.
34187
34188 2008-12-21  Bruno Haible  <bruno@clisp.org>
34189
34190         Work around mbsrtowcs bug.
34191         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34192         (gl_FUNC_MBSRTOWCS): Invoke it.
34193         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34194         m4/locale-zh.m4.
34195         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34196
34197 2008-12-21  Bruno Haible  <bruno@clisp.org>
34198
34199         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34200
34201 2008-12-21  Bruno Haible  <bruno@clisp.org>
34202
34203         Update doc for AIX.
34204         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34205         16-bit wchar_t type.
34206         * doc/posix-functions/btowc.texi: Likewise.
34207         * doc/posix-functions/fgetwc.texi: Likewise.
34208         * doc/posix-functions/fgetws.texi: Likewise.
34209         * doc/posix-functions/fputwc.texi: Likewise.
34210         * doc/posix-functions/fputws.texi: Likewise.
34211         * doc/posix-functions/fwide.texi: Likewise.
34212         * doc/posix-functions/fwprintf.texi: Likewise.
34213         * doc/posix-functions/fwscanf.texi: Likewise.
34214         * doc/posix-functions/getwchar.texi: Likewise.
34215         * doc/posix-functions/getwc.texi: Likewise.
34216         * doc/posix-functions/iswalnum.texi: Likewise.
34217         * doc/posix-functions/iswalpha.texi: Likewise.
34218         * doc/posix-functions/iswblank.texi: Likewise.
34219         * doc/posix-functions/iswcntrl.texi: Likewise.
34220         * doc/posix-functions/iswctype.texi: Likewise.
34221         * doc/posix-functions/iswdigit.texi: Likewise.
34222         * doc/posix-functions/iswgraph.texi: Likewise.
34223         * doc/posix-functions/iswlower.texi: Likewise.
34224         * doc/posix-functions/iswprint.texi: Likewise.
34225         * doc/posix-functions/iswpunct.texi: Likewise.
34226         * doc/posix-functions/iswspace.texi: Likewise.
34227         * doc/posix-functions/iswupper.texi: Likewise.
34228         * doc/posix-functions/iswxdigit.texi: Likewise.
34229         * doc/posix-functions/mbrtowc.texi: Likewise.
34230         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34231         * doc/posix-functions/mbstowcs.texi: Likewise.
34232         * doc/posix-functions/mbtowc.texi: Likewise.
34233         * doc/posix-functions/putwchar.texi: Likewise.
34234         * doc/posix-functions/putwc.texi: Likewise.
34235         * doc/posix-functions/swprintf.texi: Likewise.
34236         * doc/posix-functions/tolower.texi: Likewise.
34237         * doc/posix-functions/toupper.texi: Likewise.
34238         * doc/posix-functions/towctrans.texi: Likewise.
34239         * doc/posix-functions/ungetwc.texi: Likewise.
34240         * doc/posix-functions/vswprintf.texi: Likewise.
34241         * doc/posix-functions/wcrtomb.texi: Likewise.
34242         * doc/posix-functions/wcscat.texi: Likewise.
34243         * doc/posix-functions/wcschr.texi: Likewise.
34244         * doc/posix-functions/wcscmp.texi: Likewise.
34245         * doc/posix-functions/wcscoll.texi: Likewise.
34246         * doc/posix-functions/wcscpy.texi: Likewise.
34247         * doc/posix-functions/wcscspn.texi: Likewise.
34248         * doc/posix-functions/wcsftime.texi: Likewise.
34249         * doc/posix-functions/wcslen.texi: Likewise.
34250         * doc/posix-functions/wcsncat.texi: Likewise.
34251         * doc/posix-functions/wcsncmp.texi: Likewise.
34252         * doc/posix-functions/wcsncpy.texi: Likewise.
34253         * doc/posix-functions/wcspbrk.texi: Likewise.
34254         * doc/posix-functions/wcsrchr.texi: Likewise.
34255         * doc/posix-functions/wcsrtombs.texi: Likewise.
34256         * doc/posix-functions/wcsspn.texi: Likewise.
34257         * doc/posix-functions/wcsstr.texi: Likewise.
34258         * doc/posix-functions/wcstod.texi: Likewise.
34259         * doc/posix-functions/wcstof.texi: Likewise.
34260         * doc/posix-functions/wcstoimax.texi: Likewise.
34261         * doc/posix-functions/wcstok.texi: Likewise.
34262         * doc/posix-functions/wcstold.texi: Likewise.
34263         * doc/posix-functions/wcstoll.texi: Likewise.
34264         * doc/posix-functions/wcstol.texi: Likewise.
34265         * doc/posix-functions/wcstombs.texi: Likewise.
34266         * doc/posix-functions/wcstoull.texi: Likewise.
34267         * doc/posix-functions/wcstoul.texi: Likewise.
34268         * doc/posix-functions/wcstoumax.texi: Likewise.
34269         * doc/posix-functions/wcswidth.texi: Likewise.
34270         * doc/posix-functions/wcsxfrm.texi: Likewise.
34271         * doc/posix-functions/wctob.texi: Likewise.
34272         * doc/posix-functions/wctomb.texi: Likewise.
34273         * doc/posix-functions/wctrans.texi: Likewise.
34274         * doc/posix-functions/wctype.texi: Likewise.
34275         * doc/posix-functions/wcwidth.texi: Likewise.
34276         * doc/posix-functions/wmemchr.texi: Likewise.
34277         * doc/posix-functions/wmemcmp.texi: Likewise.
34278         * doc/posix-functions/wmemcpy.texi: Likewise.
34279         * doc/posix-functions/wmemmove.texi: Likewise.
34280         * doc/posix-functions/wmemset.texi: Likewise.
34281         * doc/posix-functions/wprintf.texi: Likewise.
34282         * doc/posix-functions/wscanf.texi: Likewise.
34283
34284 2008-12-21  Bruno Haible  <bruno@clisp.org>
34285
34286         Update doc for HP-UX 11.11.
34287         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34288         in HP-UX version 11.00, not in all versions of HP-UX 11.
34289         * doc/posix-functions/fwide.texi: Likewise.
34290         * doc/posix-functions/fwprintf.texi: Likewise.
34291         * doc/posix-functions/fwscanf.texi: Likewise.
34292         * doc/posix-functions/inet_ntop.texi: Likewise.
34293         * doc/posix-functions/inet_pton.texi: Likewise.
34294         * doc/posix-functions/mbrlen.texi: Likewise.
34295         * doc/posix-functions/mbrtowc.texi: Likewise.
34296         * doc/posix-functions/mbsinit.texi: Likewise.
34297         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34298         * doc/posix-functions/swprintf.texi: Likewise.
34299         * doc/posix-functions/swscanf.texi: Likewise.
34300         * doc/posix-functions/towctrans.texi: Likewise.
34301         * doc/posix-functions/vfwprintf.texi: Likewise.
34302         * doc/posix-functions/vswprintf.texi: Likewise.
34303         * doc/posix-functions/vwprintf.texi: Likewise.
34304         * doc/posix-functions/wcrtomb.texi: Likewise.
34305         * doc/posix-functions/wcsrtombs.texi: Likewise.
34306         * doc/posix-functions/wcsstr.texi: Likewise.
34307         * doc/posix-functions/wctob.texi: Likewise.
34308         * doc/posix-functions/wctrans.texi: Likewise.
34309         * doc/posix-functions/wmemchr.texi: Likewise.
34310         * doc/posix-functions/wmemcmp.texi: Likewise.
34311         * doc/posix-functions/wmemcpy.texi: Likewise.
34312         * doc/posix-functions/wmemmove.texi: Likewise.
34313         * doc/posix-functions/wmemset.texi: Likewise.
34314         * doc/posix-functions/wprintf.texi: Likewise.
34315         * doc/posix-functions/wscanf.texi: Likewise.
34316
34317 2008-12-21  Bruno Haible  <bruno@clisp.org>
34318
34319         Work around a portability problem.
34320         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34321         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34322
34323 2008-12-20  Bruno Haible  <bruno@clisp.org>
34324
34325         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34326         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34327         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34329         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34330
34331         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34332         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34333         set.
34334         (GNULIB_defined_mbstate_t): New macro.
34335         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34336         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34337         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34338         reuses the system's mbrtowc function but works around the bugs.
34339         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34340         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34341         macros.
34342         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34343         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34344         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34346         REPLACE_MBSINIT if mbsinit needs to be overridden.
34347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34348         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34349         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34350         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34351         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34352         m4/locale-zh.m4.
34353         (Depends): Add mbsinit.
34354         * modules/mbsinit (Depends): Add mbrtowc.
34355         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34356
34357 2008-12-20  Bruno Haible  <bruno@clisp.org>
34358
34359         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34360         so that there are no conversion errors on AIX.
34361         * tests/test-mbsrtowcs.c (main): LIkewise.
34362
34363 2008-12-20  Bruno Haible  <bruno@clisp.org>
34364
34365         Work around wctob bug on Solaris <= 9.
34366         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34367         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34369         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34370         * modules/wctob (Files): Add m4/locale-fr.m4.
34371         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34372
34373 2008-12-20  Bruno Haible  <bruno@clisp.org>
34374
34375         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34376         /dev/null.
34377         * tests/test-select-in.sh: Likewise.
34378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34379
34380 2008-12-20  Bruno Haible  <bruno@clisp.org>
34381
34382         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34383         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34384         Cygwin 1.5.x.
34385
34386 2008-12-20  Bruno Haible  <bruno@clisp.org>
34387
34388         Ensure mbstate_t is defined on HP-UX 11.11.
34389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34390         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34391         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34392         AC_USE_SYSTEM_EXTENSIONS.
34393         * modules/fnmatch (Depends-on): Add extensions.
34394         * modules/mbrlen (Depends-on): Likewise.
34395         * modules/mbrtowc (Depends-on): Likewise.
34396         * modules/mbsinit (Depends-on): Likewise.
34397         * modules/mbsrtowcs (Depends-on): Likewise.
34398         * modules/mbswidth (Depends-on): Likewise.
34399         * modules/quotearg (Depends-on): Likewise.
34400         * modules/strftime (Depends-on): Likewise.
34401
34402 2008-12-20  Bruno Haible  <bruno@clisp.org>
34403
34404         Ensure wctob is declared on IRIX 6.5.
34405         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34406         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34407         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34409         of HAVE_WCTOB.
34410         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34411         HAVE_WCTOB.
34412         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34413
34414 2008-12-19  Bruno Haible  <bruno@clisp.org>
34415
34416         * modules/mbsrtowcs-tests: New file.
34417         * tests/test-mbsrtowcs1.sh: New file.
34418         * tests/test-mbsrtowcs2.sh: New file.
34419         * tests/test-mbsrtowcs3.sh: New file.
34420         * tests/test-mbsrtowcs4.sh: New file.
34421         * tests/test-mbsrtowcs.c: New file.
34422
34423         New module 'mbsrtowcs'.
34424         * lib/wchar.in.h (mbsrtowcs): New declaration.
34425         * lib/mbsrtowcs.c: New file.
34426         * m4/mbsrtowcs.m4: New file.
34427         * modules/mbsrtowcs: New file.
34428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34429         HAVE_MBSRTOWCS.
34430         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34431         HAVE_MBSRTOWCS.
34432         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34433
34434 2008-12-19  Bruno Haible  <bruno@clisp.org>
34435
34436         New module 'mbrlen'.
34437         * lib/wchar.in.h (mbrlen): New declaration.
34438         * lib/mbrlen.c: New file.
34439         * m4/mbrlen.m4: New file.
34440         * modules/mbrlen: New file.
34441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34442         HAVE_MBRLEN.
34443         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34444         HAVE_MBRLEN.
34445         * doc/posix-functions/mbrlen.texi: Document the new module.
34446
34447 2008-12-19  Bruno Haible  <bruno@clisp.org>
34448
34449         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34450         * modules/mbrtowc (Depends-on): Add verify.
34451         Suggested by Paul Eggert.
34452
34453 2008-12-18  Bruno Haible  <bruno@clisp.org>
34454
34455         * modules/mbsinit-tests: New file.
34456         * tests/test-mbsinit.sh: New file.
34457         * tests/test-mbsinit.c: New file.
34458
34459 2008-12-18  Bruno Haible  <bruno@clisp.org>
34460
34461         * modules/mbrtowc-tests: New file.
34462         * tests/test-mbrtowc1.sh: New file.
34463         * tests/test-mbrtowc2.sh: New file.
34464         * tests/test-mbrtowc3.sh: New file.
34465         * tests/test-mbrtowc4.sh: New file.
34466         * tests/test-mbrtowc.c: New file.
34467
34468         New module 'mbrtowc'.
34469         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34470         mbsinit and mbrtowc.
34471         (mbrtowc): New declaration.
34472         * lib/mbrtowc.c: New file.
34473         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34474         * modules/mbrtowc: New file.
34475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34476         HAVE_MBRTOWC.
34477         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34478         HAVE_MBRTOWC.
34479         * doc/posix-functions/mbrtowc.texi: Document the new module.
34480
34481 2008-12-18  Bruno Haible  <bruno@clisp.org>
34482
34483         New module 'wctob'.
34484         * lib/wchar.in.h (wctob): New declaration.
34485         * lib/wctob.c: New file.
34486         * m4/wctob.m4: New file.
34487         * modules/wctob: New file.
34488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34489         HAVE_WCTOB.
34490         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34491         * doc/posix-functions/wctob.texi: Document the new module.
34492
34493 2008-12-18  Bruno Haible  <bruno@clisp.org>
34494
34495         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34496         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34497
34498 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34499
34500         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34501         G. Christensen" <tgc@jupiterrise.com>.
34502
34503         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34504         G. Christensen" <tgc@jupiterrise.com>.
34505
34506         * lib/flock.c: Need to include string.h.  Reported by "Tom
34507         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34508         <ebb9@byu.net>.
34509
34510 2008-12-18  Bruno Haible  <bruno@clisp.org>
34511
34512         * m4/locale-ja.m4: New file, from GNU gettext.
34513
34514 2008-12-17  Bruno Haible  <bruno@clisp.org>
34515
34516         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34517         Suggested by Eric Blake.
34518
34519 2008-12-17  Bruno Haible  <bruno@clisp.org>
34520
34521         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34522
34523 2008-12-17  Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34526         * modules/mbsinit (Depends-on): Add verify.
34527         Suggested by Paul Eggert.
34528
34529 2008-12-17  Bruno Haible  <bruno@clisp.org>
34530
34531         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34532         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34533         gl_FUNC_MBRTOWC.
34534         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34535         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34536         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34537         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34538         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34539         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34540         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34541         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34542         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34543         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34544         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34545         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34546         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34547         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34548         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34549         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34550         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34551         * modules/trim (configure.ac): Likewise.
34552
34553 2008-12-17  Bruno Haible  <bruno@clisp.org>
34554
34555         * modules/btowc-tests: New file.
34556         * tests/test-btowc1.sh: New file.
34557         * tests/test-btowc2.sh: New file.
34558         * tests/test-btowc.c: New file.
34559
34560         New module 'btowc'.
34561         * lib/wchar.in.h (btowc): New declaration.
34562         * lib/btowc.c: New file.
34563         * m4/btowc.m4: New file.
34564         * modules/btowc: New file.
34565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34566         HAVE_BTOWC.
34567         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34568         * doc/posix-functions/btowc.texi: Document the new module.
34569
34570 2008-12-17  Bruno Haible  <bruno@clisp.org>
34571
34572         New module 'mbsinit'.
34573         * lib/wchar.in.h (mbsinit): New declaration.
34574         * lib/mbsinit.c: New file.
34575         * m4/mbsinit.m4: New file.
34576         * modules/mbsinit: New file.
34577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34578         HAVE_MBSINIT.
34579         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34580         HAVE_MBSINIT.
34581         * doc/posix-functions/mbsinit.texi: Document the new module.
34582
34583 2008-12-16  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/unistd.in.h: Add comment.
34586         * tests/test-environ.c: Don't include <stdlib.h>.
34587
34588 2008-12-16  Bruno Haible  <bruno@clisp.org>
34589
34590         * lib/parse-duration.h (parse_duration): Document return value
34591         convention.
34592         * lib/parse-duration.c: Include specification header first. Add
34593         comments.
34594         (_): Remove macro.
34595         (parse_year_month_day, parse_hour_minute_second): Move side effects
34596         outside of strchr call.
34597         (parse_non_iso8601): Move side effects outside of isspace call.
34598         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34599         call.
34600
34601 2008-12-16  Bruno Haible  <bruno@clisp.org>
34602
34603         * tests/test-parse-duration.sh: Produce no output when the test
34604         succeeds.
34605
34606 2008-12-16  Bruno Haible  <bruno@clisp.org>
34607
34608         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34609         expressions.
34610
34611 2008-12-15  Bruno Haible  <bruno@clisp.org>
34612
34613         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34614         * doc/glibc-functions/flistxattr.texi: Likewise.
34615         * doc/glibc-functions/fopencookie.texi: Likewise.
34616         * doc/glibc-functions/fremovexattr.texi: Likewise.
34617         * doc/glibc-functions/fsetxattr.texi: Likewise.
34618         * doc/glibc-functions/getxattr.texi: Likewise.
34619         * doc/glibc-functions/lgetxattr.texi: Likewise.
34620         * doc/glibc-functions/listxattr.texi: Likewise.
34621         * doc/glibc-functions/llistxattr.texi: Likewise.
34622         * doc/glibc-functions/lremovexattr.texi: Likewise.
34623         * doc/glibc-functions/lsetxattr.texi: Likewise.
34624         * doc/glibc-functions/removexattr.texi: Likewise.
34625         * doc/glibc-functions/setxattr.texi: Likewise.
34626         * doc/posix-functions/open_memstream.texi: Likewise.
34627
34628 2008-12-15  Eric Blake  <ebb9@byu.net>
34629
34630         Update doc for cygwin 1.7.
34631         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34632         functions.
34633         * doc/posix-functions/fchmodat.texi: Likewise.
34634         * doc/posix-functions/fchownat.texi: Likewise.
34635         * doc/posix-functions/fdopendir.texi: Likewise.
34636         * doc/posix-functions/fmemopen.texi: Likewise.
34637         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34638         * doc/posix-functions/fstatat.texi: Likewise.
34639         * doc/posix-functions/futimens.texi: Likewise.
34640         * doc/posix-functions/gai_strerror.texi: Likewise.
34641         * doc/posix-functions/getaddrinfo.texi: Likewise.
34642         * doc/posix-functions/getnameinfo.texi: Likewise.
34643         * doc/posix-functions/if_freenameindex.texi: Likewise.
34644         * doc/posix-functions/if_indextoname.texi: Likewise.
34645         * doc/posix-functions/if_nameindex.texi: Likewise.
34646         * doc/posix-functions/if_nametoindex.texi: Likewise.
34647         * doc/posix-functions/insque.texi: Likewise.
34648         * doc/posix-functions/linkat.texi: Likewise.
34649         * doc/posix-functions/llrint.texi: Likewise.
34650         * doc/posix-functions/llrintf.texi: Likewise.
34651         * doc/posix-functions/llrintl.texi: Likewise.
34652         * doc/posix-functions/lockf.texi: Likewise.
34653         * doc/posix-functions/lrintl.texi: Likewise.
34654         * doc/posix-functions/mkdirat.texi: Likewise.
34655         * doc/posix-functions/mkfifoat.texi: Likewise.
34656         * doc/posix-functions/mknodat.texi: Likewise.
34657         * doc/posix-functions/mq_close.texi: Likewise.
34658         * doc/posix-functions/mq_getattr.texi: Likewise.
34659         * doc/posix-functions/mq_notify.texi: Likewise.
34660         * doc/posix-functions/mq_open.texi: Likewise.
34661         * doc/posix-functions/mq_receive.texi: Likewise.
34662         * doc/posix-functions/mq_send.texi: Likewise.
34663         * doc/posix-functions/mq_setattr.texi: Likewise.
34664         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34665         * doc/posix-functions/mq_timedsend.texi: Likewise.
34666         * doc/posix-functions/mq_unlink.texi: Likewise.
34667         * doc/posix-functions/open_memstream.texi: Likewise.
34668         * doc/posix-functions/openat.texi: Likewise.
34669         * doc/posix-functions/posix_fadvise.texi: Likewise.
34670         * doc/posix-functions/posix_fallocate.texi: Likewise.
34671         * doc/posix-functions/posix_madvise.texi: Likewise.
34672         * doc/posix-functions/posix_memalign.texi: Likewise.
34673         * doc/posix-functions/posix_openpt.texi: Likewise.
34674         * doc/posix-functions/readlinkat.texi: Likewise.
34675         * doc/posix-functions/remque.texi: Likewise.
34676         * doc/posix-functions/renameat.texi: Likewise.
34677         * doc/posix-functions/rintl.texi: Likewise.
34678         * doc/posix-functions/sem_unlink.texi: Likewise.
34679         * doc/posix-functions/shm_open.texi: Likewise.
34680         * doc/posix-functions/shm_unlink.texi: Likewise.
34681         * doc/posix-functions/signgam.texi: Likewise.
34682         * doc/posix-functions/sigset.texi: Likewise.
34683         * doc/posix-functions/stpcpy.texi: Likewise.
34684         * doc/posix-functions/stpncpy.texi: Likewise.
34685         * doc/posix-functions/strerror.texi: Likewise.
34686         * doc/posix-functions/strtod.texi: Likewise.
34687         * doc/posix-functions/symlinkat.texi: Likewise.
34688         * doc/posix-functions/unlinkat.texi: Likewise.
34689         * doc/posix-functions/utimensat.texi: Likewise.
34690         * doc/glibc-functions/bindresvport.texi: Likewise.
34691         * doc/glibc-functions/dn_expand.texi: Likewise.
34692         * doc/glibc-functions/exp10.texi: Likewise.
34693         * doc/glibc-functions/exp10f.texi: Likewise.
34694         * doc/glibc-functions/fgetxattr.texi: Likewise.
34695         * doc/glibc-functions/flistxattr.texi: Likewise.
34696         * doc/glibc-functions/fopencookie.texi: Likewise.
34697         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34698         * doc/glibc-functions/fremovexattr.texi: Likewise.
34699         * doc/glibc-functions/fsetxattr.texi: Likewise.
34700         * doc/glibc-functions/getifaddrs.texi: Likewise.
34701         * doc/glibc-functions/getxattr.texi: Likewise.
34702         * doc/glibc-functions/lgetxattr.texi: Likewise.
34703         * doc/glibc-functions/listxattr.texi: Likewise.
34704         * doc/glibc-functions/llistxattr.texi: Likewise.
34705         * doc/glibc-functions/lremovexattr.texi: Likewise.
34706         * doc/glibc-functions/lsetxattr.texi: Likewise.
34707         * doc/glibc-functions/pow10.texi: Likewise.
34708         * doc/glibc-functions/pow10f.texi: Likewise.
34709         * doc/glibc-functions/rcmd_af.texi: Likewise.
34710         * doc/glibc-functions/removexattr.texi: Likewise.
34711         * doc/glibc-functions/res_init.texi: Likewise.
34712         * doc/glibc-functions/res_mkquery.texi: Likewise.
34713         * doc/glibc-functions/res_query.texi: Likewise.
34714         * doc/glibc-functions/res_querydomain.texi: Likewise.
34715         * doc/glibc-functions/res_send.texi: Likewise.
34716         * doc/glibc-functions/rresvport_af.texi: Likewise.
34717         * doc/glibc-functions/setxattr.texi: Likewise.
34718         * doc/glibc-functions/strcasestr.texi: Likewise.
34719
34720 2008-12-15  Bruno Haible  <bruno@clisp.org>
34721
34722         Fix compilation error on OSF/1 4.0.
34723         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34724         <sys/time.h>, simply delegate to the system header.
34725         Reported by Daniel Richard G. <oss@teragram.com>.
34726
34727 2008-12-15  Bruno Haible  <bruno@clisp.org>
34728
34729         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34730         * doc/posix-functions/fchmodat.texi: Likewise.
34731         * doc/posix-functions/fchownat.texi: Likewise.
34732         * doc/posix-functions/fdopendir.texi: Likewise.
34733         * doc/posix-functions/fstatat.texi: Likewise.
34734         * doc/posix-functions/mkdirat.texi: Likewise.
34735         * doc/posix-functions/unlinkat.texi: Likewise.
34736
34737 2008-12-14  Bruno Haible  <bruno@clisp.org>
34738
34739         Update doc for POSIX:2008.
34740         * doc/posix-functions/faccessat.texi: New file.
34741         * doc/posix-functions/fchmodat.texi: New file.
34742         * doc/posix-functions/fchownat.texi: New file.
34743         * doc/posix-functions/fdopendir.texi: New file.
34744         * doc/posix-functions/fstatat.texi: New file.
34745         * doc/posix-functions/futimens.texi: New file.
34746         * doc/posix-functions/linkat.texi: New file.
34747         * doc/posix-functions/mkdirat.texi: New file.
34748         * doc/posix-functions/mkfifoat.texi: New file.
34749         * doc/posix-functions/mknodat.texi: New file.
34750         * doc/posix-functions/open_wmemstream.texi: New file.
34751         * doc/posix-functions/openat.texi: New file.
34752         * doc/posix-functions/psiginfo.texi: New file.
34753         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34754         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34755         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34756         * doc/posix-functions/readlinkat.texi: New file.
34757         * doc/posix-functions/renameat.texi: New file.
34758         * doc/posix-functions/strerror_l.texi: New file.
34759         * doc/posix-functions/symlinkat.texi: New file.
34760         * doc/posix-functions/unlinkat.texi: New file.
34761         * doc/posix-functions/utimensat.texi: New file.
34762         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34763
34764 2008-12-14  Bruno Haible  <bruno@clisp.org>
34765
34766         Update doc for POSIX:2008.
34767         * doc/posix-functions/alphasort.texi: Renamed from
34768         doc/glibc-functions/alphasort.texi.
34769         * doc/posix-functions/dirfd.texi: Renamed from
34770         doc/glibc-functions/dirfd.texi.
34771         * doc/posix-functions/dprintf.texi: Renamed from
34772         doc/glibc-functions/dprintf.texi.
34773         * doc/posix-functions/duplocale.texi: Renamed from
34774         doc/glibc-functions/duplocale.texi.
34775         * doc/posix-functions/fexecve.texi: Renamed from
34776         doc/glibc-functions/fexecve.texi.
34777         * doc/posix-functions/fmemopen.texi: Renamed from
34778         doc/glibc-functions/fmemopen.texi.
34779         * doc/posix-functions/freelocale.texi: Renamed from
34780         doc/glibc-functions/freelocale.texi.
34781         * doc/posix-functions/getdate_err.texi: Renamed from
34782         doc/glibc-functions/getdate_err.texi.
34783         * doc/posix-functions/isalnum_l.texi: Renamed from
34784         doc/glibc-functions/isalnum_l.texi.
34785         * doc/posix-functions/isalpha_l.texi: Renamed from
34786         doc/glibc-functions/isalpha_l.texi.
34787         * doc/posix-functions/isblank_l.texi: Renamed from
34788         doc/glibc-functions/isblank_l.texi.
34789         * doc/posix-functions/iscntrl_l.texi: Renamed from
34790         doc/glibc-functions/iscntrl_l.texi.
34791         * doc/posix-functions/isdigit_l.texi: Renamed from
34792         doc/glibc-functions/isdigit_l.texi.
34793         * doc/posix-functions/isgraph_l.texi: Renamed from
34794         doc/glibc-functions/isgraph_l.texi.
34795         * doc/posix-functions/islower_l.texi: Renamed from
34796         doc/glibc-functions/islower_l.texi.
34797         * doc/posix-functions/isprint_l.texi: Renamed from
34798         doc/glibc-functions/isprint_l.texi.
34799         * doc/posix-functions/ispunct_l.texi: Renamed from
34800         doc/glibc-functions/ispunct_l.texi.
34801         * doc/posix-functions/isspace_l.texi: Renamed from
34802         doc/glibc-functions/isspace_l.texi.
34803         * doc/posix-functions/isupper_l.texi: Renamed from
34804         doc/glibc-functions/isupper_l.texi.
34805         * doc/posix-functions/iswalnum_l.texi: Renamed from
34806         doc/glibc-functions/iswalnum_l.texi.
34807         * doc/posix-functions/iswalpha_l.texi: Renamed from
34808         doc/glibc-functions/iswalpha_l.texi.
34809         * doc/posix-functions/iswblank_l.texi: Renamed from
34810         doc/glibc-functions/iswblank_l.texi.
34811         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34812         doc/glibc-functions/iswcntrl_l.texi.
34813         * doc/posix-functions/iswctype_l.texi: Renamed from
34814         doc/glibc-functions/iswctype_l.texi.
34815         * doc/posix-functions/iswdigit_l.texi: Renamed from
34816         doc/glibc-functions/iswdigit_l.texi.
34817         * doc/posix-functions/iswgraph_l.texi: Renamed from
34818         doc/glibc-functions/iswgraph_l.texi.
34819         * doc/posix-functions/iswlower_l.texi: Renamed from
34820         doc/glibc-functions/iswlower_l.texi.
34821         * doc/posix-functions/iswprint_l.texi: Renamed from
34822         doc/glibc-functions/iswprint_l.texi.
34823         * doc/posix-functions/iswpunct_l.texi: Renamed from
34824         doc/glibc-functions/iswpunct_l.texi.
34825         * doc/posix-functions/iswspace_l.texi: Renamed from
34826         doc/glibc-functions/iswspace_l.texi.
34827         * doc/posix-functions/iswupper_l.texi: Renamed from
34828         doc/glibc-functions/iswupper_l.texi.
34829         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34830         doc/glibc-functions/iswxdigit_l.texi.
34831         * doc/posix-functions/isxdigit_l.texi: Renamed from
34832         doc/glibc-functions/isxdigit_l.texi.
34833         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34834         doc/glibc-functions/mbsnrtowcs.texi.
34835         * doc/posix-functions/mkdtemp.texi: Renamed from
34836         doc/glibc-functions/mkdtemp.texi.
34837         * doc/posix-functions/newlocale.texi: Renamed from
34838         doc/glibc-functions/newlocale.texi.
34839         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34840         doc/glibc-functions/nl_langinfo_l.texi.
34841         * doc/posix-functions/open_memstream.texi: Renamed from
34842         doc/glibc-functions/open_memstream.texi.
34843         * doc/posix-functions/opterr.texi: Renamed from
34844         doc/glibc-functions/opterr.texi.
34845         * doc/posix-functions/optind.texi: Renamed from
34846         doc/glibc-functions/optind.texi.
34847         * doc/posix-functions/optopt.texi: Renamed from
34848         doc/glibc-functions/optopt.texi.
34849         * doc/posix-functions/psignal.texi: Renamed from
34850         doc/glibc-functions/psignal.texi.
34851         * doc/posix-functions/scandir.texi: Renamed from
34852         doc/glibc-functions/scandir.texi.
34853         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34854         doc/glibc-functions/sched_get_priority_min.texi.
34855         * doc/posix-functions/signgam.texi: Renamed from
34856         doc/glibc-functions/signgam.texi.
34857         * doc/posix-functions/stpcpy.texi: Renamed from
34858         doc/glibc-functions/stpcpy.texi.
34859         * doc/posix-functions/stpncpy.texi: Renamed from
34860         doc/glibc-functions/stpncpy.texi.
34861         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34862         doc/glibc-functions/strcasecmp_l.texi.
34863         * doc/posix-functions/strcoll_l.texi: Renamed from
34864         doc/glibc-functions/strcoll_l.texi.
34865         * doc/posix-functions/strfmon_l.texi: Renamed from
34866         doc/glibc-functions/strfmon_l.texi.
34867         * doc/posix-functions/strftime_l.texi: Renamed from
34868         doc/glibc-functions/strftime_l.texi.
34869         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34870         doc/glibc-functions/strncasecmp_l.texi.
34871         * doc/posix-functions/strndup.texi: Renamed from
34872         doc/glibc-functions/strndup.texi.
34873         * doc/posix-functions/strnlen.texi: Renamed from
34874         doc/glibc-functions/strnlen.texi.
34875         * doc/posix-functions/strsignal.texi: Renamed from
34876         doc/glibc-functions/strsignal.texi.
34877         * doc/posix-functions/strxfrm_l.texi: Renamed from
34878         doc/glibc-functions/strxfrm_l.texi.
34879         * doc/posix-functions/timer_gettime.texi: Renamed from
34880         doc/glibc-functions/timer_gettime.texi.
34881         * doc/posix-functions/tolower_l.texi: Renamed from
34882         doc/glibc-functions/tolower_l.texi.
34883         * doc/posix-functions/toupper_l.texi: Renamed from
34884         doc/glibc-functions/toupper_l.texi.
34885         * doc/posix-functions/towctrans_l.texi: Renamed from
34886         doc/glibc-functions/towctrans_l.texi.
34887         * doc/posix-functions/towlower_l.texi: Renamed from
34888         doc/glibc-functions/towlower_l.texi.
34889         * doc/posix-functions/towupper_l.texi: Renamed from
34890         doc/glibc-functions/towupper_l.texi.
34891         * doc/posix-functions/uselocale.texi: Renamed from
34892         doc/glibc-functions/uselocale.texi.
34893         * doc/posix-functions/vdprintf.texi: Renamed from
34894         doc/glibc-functions/vdprintf.texi.
34895         * doc/posix-functions/wcpcpy.texi:
34896         Renamed from doc/glibc-functions/wcpcpy.texi.
34897         * doc/posix-functions/wcpncpy.texi: Renamed from
34898         doc/glibc-functions/wcpncpy.texi.
34899         * doc/posix-functions/wcscasecmp.texi: Renamed from
34900         doc/glibc-functions/wcscasecmp.texi.
34901         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34902         doc/glibc-functions/wcscasecmp_l.texi.
34903         * doc/posix-functions/wcscoll_l.texi: Renamed from
34904         doc/glibc-functions/wcscoll_l.texi.
34905         * doc/posix-functions/wcsdup.texi: Renamed from
34906         doc/glibc-functions/wcsdup.texi.
34907         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34908         doc/glibc-functions/wcsncasecmp.texi.
34909         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34910         doc/glibc-functions/wcsncasecmp_l.texi.
34911         * doc/posix-functions/wcsnlen.texi: Renamed from
34912         doc/glibc-functions/wcsnlen.texi.
34913         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34914         doc/glibc-functions/wcsnrtombs.texi.
34915         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34916         doc/glibc-functions/wcsxfrm_l.texi.
34917         * doc/posix-functions/wctrans_l.texi: Renamed from
34918         doc/glibc-functions/wctrans_l.texi.
34919         * doc/posix-functions/wctype_l.texi: Renamed from
34920         doc/glibc-functions/wctype_l.texi.
34921         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34922         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34923         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34924         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34925         these subsections.
34926         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34927         Remove sections.
34928
34929 2008-12-14  Bruno Haible  <bruno@clisp.org>
34930
34931         Update doc for POSIX:2008.
34932         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34933
34934 2008-12-14  Bruno Haible  <bruno@clisp.org>
34935
34936         Update doc for POSIX:2008.
34937         * doc/pastposix-functions/bcmp.texi: Renamed from
34938         doc/posix-functions/bcmp.texi.
34939         * doc/pastposix-functions/bcopy.texi: Renamed from
34940         doc/posix-functions/bcopy.texi.
34941         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34942         doc/posix-functions/bsd_signal.texi.
34943         * doc/pastposix-functions/bzero.texi: Renamed from
34944         doc/posix-functions/bzero.texi.
34945         * doc/pastposix-functions/ecvt.texi: Renamed from
34946         doc/posix-functions/ecvt.texi.
34947         * doc/pastposix-functions/fcvt.texi: Renamed from
34948         doc/posix-functions/fcvt.texi.
34949         * doc/pastposix-functions/ftime.texi: Renamed from
34950         doc/posix-functions/ftime.texi.
34951         * doc/pastposix-functions/gcvt.texi: Renamed from
34952         doc/posix-functions/gcvt.texi.
34953         * doc/pastposix-functions/getcontext.texi: Renamed from
34954         doc/posix-functions/getcontext.texi.
34955         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34956         doc/posix-functions/gethostbyaddr.texi.
34957         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34958         doc/posix-functions/gethostbyname.texi.
34959         * doc/pastposix-functions/getwd.texi: Renamed from
34960         doc/posix-functions/getwd.texi.
34961         * doc/pastposix-functions/h_errno.texi: Renamed from
34962         doc/posix-functions/h_errno.texi.
34963         * doc/pastposix-functions/index.texi: Renamed from
34964         doc/posix-functions/index.texi.
34965         * doc/pastposix-functions/makecontext.texi: Renamed from
34966         doc/posix-functions/makecontext.texi.
34967         * doc/pastposix-functions/mktemp.texi: Renamed from
34968         doc/posix-functions/mktemp.texi.
34969         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34970         doc/posix-functions/pthread_attr_getstackaddr.texi.
34971         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34972         doc/posix-functions/pthread_attr_setstackaddr.texi.
34973         * doc/pastposix-functions/rindex.texi: Renamed from
34974         doc/posix-functions/rindex.texi.
34975         * doc/pastposix-functions/scalb.texi: Renamed from
34976         doc/posix-functions/scalb.texi.
34977         * doc/pastposix-functions/setcontext.texi: Renamed from
34978         doc/posix-functions/setcontext.texi.
34979         * doc/pastposix-functions/swapcontext.texi: Renamed from
34980         doc/posix-functions/swapcontext.texi.
34981         * doc/pastposix-functions/ualarm.texi: Renamed from
34982         doc/posix-functions/ualarm.texi.
34983         * doc/pastposix-functions/usleep.texi: Renamed from
34984         doc/posix-functions/usleep.texi.
34985         * doc/pastposix-functions/vfork.texi: Renamed from
34986         doc/posix-functions/vfork.texi.
34987         * doc/pastposix-functions/wcswcs.texi: Renamed from
34988         doc/posix-functions/wcswcs.texi.
34989         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34990         (Function Substitutes): Update.
34991
34992 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34993
34994         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34995         m4/strerror.m4.
34996
34997 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34998             Bruno Haible  <bruno@clisp.org>
34999
35000         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35001
35002 2008-12-13  Bruno Haible  <bruno@clisp.org>
35003
35004         * modules/strtoull (Depends-on): Remove unistd.
35005
35006 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35007
35008         * modules/strtoull (Depends-on): Add stdlib.
35009
35010 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35011
35012         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35013
35014 2008-12-10  Jim Meyering  <meyering@redhat.com>
35015
35016         gl_ASSERT: don't say assertions are disabled when they're not
35017         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35018         "checking whether to enable assertions... no", when they are in
35019         fact enabled.  This is solely a bug in the output of configure.
35020         In spite of saying "no", NDEBUG was not defined in that case.
35021         Also, as noted by Eric Blake, leave assertions enabled upon
35022         --enable-assert=INVALID.
35023
35024 2008-12-10  Bruno Haible  <bruno@clisp.org>
35025
35026         Change MODULES.html to refer to POSIX:2008 where possible.
35027         * MODULES.html.sh (POSIX2008_URL): New variable.
35028         (posix_headers): Remove sys/timeb, ucontext.
35029         (posix2001_headers): New variable.
35030         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35031         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35032         index, makecontext, mktemp, pthread_attr_getstackaddr,
35033         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35034         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35035         (posix2001_functions): New variable.
35036         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35037         otherwise.
35038
35039 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35040
35041         add missing include to parse-duration.c
35042         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35043         * modules/parse-duration (Depends-on): Add xalloc.
35044
35045         fix sed script reading maint.mk
35046         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35047         (syntax-check-rules): Use it.
35048
35049 2008-12-09  Bruno Haible  <bruno@clisp.org>
35050
35051         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35052         MacOS X 10.4/PowerPC.
35053         Reported by Simon Josefsson.
35054
35055 2008-12-08  Jim Meyering  <meyering@redhat.com>
35056
35057         work around mingw's lack of some S_IF definitions
35058         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35059         Reported by Simon Josefsson.
35060
35061 2008-12-08  Bruno Haible  <bruno@clisp.org>
35062
35063         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35064         applied to variables. Needed on MacOS X 10.4/PowerPC.
35065         Reported by Simon Josefsson.
35066
35067 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35068         and Eric Blake  <ebb9@byu.net>
35069
35070         assert: honor --enable-assert
35071         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35072         order to honor --enable-assert, rather than treating it as a
35073         synonym for --disable-assert.
35074
35075 2008-12-08  Jim Meyering  <meyering@redhat.com>
35076
35077         * lib/posixtm.c: Remove now-useless declaration of mktime.
35078
35079         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35080
35081 2008-12-07  Bruno Haible  <bruno@clisp.org>
35082
35083         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35084         test_once): Mark functions as static.
35085         * tests/test-tls.c (test_tls): Likewise.
35086
35087 2008-12-07  Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35090         iconv_register_autodetect.
35091
35092 2008-12-07  Jim Meyering  <meyering@redhat.com>
35093
35094         posixtm.c: avoid a warning
35095         * lib/posixtm.c (posixtime): Don't initialize tm0.
35096         It's no longer needed to placate gcc4's -Wuninitialized,
35097         and the attempt to placate would elicit a new warning.
35098
35099         unicodeio.c: mark unused parameters
35100         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35101         (fallback_failure_callback): Likewise.
35102
35103 2008-12-07  Bruno Haible  <bruno@clisp.org>
35104
35105         * gnulib-tool (func_create_testdir): When building the tests
35106         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35107         Reported by Simon Josefsson.
35108
35109 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35110
35111         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35112
35113 2008-12-06  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35116         Suggested by Eric Blake.
35117
35118 2008-12-06  Bruno Haible  <bruno@clisp.org>
35119
35120         Fix a c-stack test failure on MacOS X.
35121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35122         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35123         handler for SIGBUS as well.
35124         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35125         install a signal handler for SIGBUS as well.
35126         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35127
35128 2008-12-06  Bruno Haible  <bruno@clisp.org>
35129
35130         Advocacy documentation.
35131         * doc/gnulib-intro.texi (Benefits): New section.
35132         * doc/gnulib.texi: Update.
35133
35134 2008-12-06  Bruno Haible  <bruno@clisp.org>
35135
35136         Document the 'manywarnings' module.
35137         * doc/manywarnings.texi: New file.
35138         * doc/gnulib.texi: Include it.
35139
35140 2008-12-05  Eric Blake  <ebb9@byu.net>
35141
35142         tests: silence some gcc warnings
35143         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35144         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35145         type mismatches.
35146
35147 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35148             Bruno Haible  <bruno@clisp.org>
35149
35150         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35151
35152 2008-11-29  Jim Meyering  <meyering@redhat.com>
35153
35154         unicodeio.c: mark unused parameters
35155         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35156         (fallback_failure_callback): Likewise.
35157
35158         fts: fix a thinko
35159         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35160         (set_stat_type): Return S_IF*-valued "type" directly.
35161         Prompted by James Youngman's spotting a related bug.
35162         Confirmed by further testing through find.
35163
35164         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35165         * lib/fts.c (D_TYPE): Define.
35166         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35167         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35168         (s_ifmt_shift_bits): New function.
35169         (set_stat_type): New function.
35170         (fts_build): When not calling fts_stat, call set_stat_type
35171         to propagate dirent.d_type info to fts_read caller.
35172         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35173         fts_statp->st_mode type information may be valid.
35174
35175 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35176
35177         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35178         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35179         <sds@gnu.org>.
35180
35181 2008-11-20  Bruno Haible  <bruno@clisp.org>
35182
35183         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35184         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35185         INCLUDE_NEXT.
35186         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35187         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35188         * modules/math (Makefile.am): Substitute
35189         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35190         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35191
35192 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35193             Bruno Haible  <bruno@clisp.org>
35194
35195         * lib/stdint.in.h: Define all type macros so that their expansion is
35196         a single typedef'ed token. Fixes a compilation failure in Boost which
35197         does "using ::int8_t;".
35198
35199 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35200
35201         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35202         gl_MANYWARN_ALL_GCC.
35203         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35204         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35205         * modules/manywarnings: New file.
35206         * MODULES.html.sh: Mention manywarnings module.
35207
35208 2008-11-18  Bruno Haible  <bruno@clisp.org>
35209
35210         * doc/gnulib-tool.texi (Unit tests): New section.
35211
35212 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35213
35214         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35215         paths like 'lib/po/foo.po'.
35216
35217 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35218
35219         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35220         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35221
35222 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35223
35224         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35225         parameter works.
35226
35227 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35228
35229         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35230
35231 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35232
35233         * modules/parse-duration-tests: New file.
35234         * tests/test-parse-duration.sh: New file.
35235         * tests/test-parse-duration.c: New file.
35236
35237         New module 'parse-duration'.
35238         * lib/parse-duration.h: New file.
35239         * lib/parse-duration.c: New file.
35240         * modules/parse-duration: New file.
35241
35242 2008-11-17  Bruno Haible  <bruno@clisp.org>
35243
35244         * tests/test-select-out.sh: Comment out the first pipe test.
35245         Reported by Simon Josefsson.
35246
35247 2008-11-17  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35251         gl_HOSTENT.
35252
35253 2008-11-17  Bruno Haible  <bruno@clisp.org>
35254
35255         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35256         -lnetwork and -lnet. Needed for Haiku and BeOS.
35257
35258 2008-11-16  Bruno Haible  <bruno@clisp.org>
35259
35260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35261
35262 2008-11-16  Bruno Haible  <bruno@clisp.org>
35263
35264         Avoid test failure on Haiku.
35265         * tests/test-fsync.c: Include <errno.h>.
35266         (main): Don't require that fsync (0) fails.
35267
35268 2008-11-15  Bruno Haible  <bruno@clisp.org>
35269
35270         New module 'hostent'.
35271         * modules/hostent: New file.
35272         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35273
35274 2008-11-15  Bruno Haible  <bruno@clisp.org>
35275
35276         New module 'servent'.
35277         * modules/servent: New file.
35278         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35279
35280 2008-11-15  Bruno Haible  <bruno@clisp.org>
35281
35282         Avoid generating same test program with two different rules.
35283         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35284         test-frexp to test-frexp-nolibm.
35285         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35286         test-frexpl to test-frexpl-nolibm.
35287
35288 2008-11-15  Bruno Haible  <bruno@clisp.org>
35289
35290         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35291         $(FREXPL_LIBM).
35292
35293 2008-11-15  Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/netdb.in.h: Activate the definitions also when the system's
35296         <netdb.h> has 'struct addrinfo'.
35297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35298         EAI_OVERFLOW or AI_NUMERICSERV.
35299         * doc/posix-headers/netdb.texi: Document the problem.
35300
35301 2008-11-15  Bruno Haible  <bruno@clisp.org>
35302
35303         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35304
35305         Make the 'sched' module work on platforms where <sched.h> exists but
35306         is incomplete (such as Haiku).
35307         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35308         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35309         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35310         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35311         HAVE_STRUCT_SCHED_PARAM.
35312         * modules/sched (Depends-on): Add include_next.
35313         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35314         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35315         * doc/posix-headers/sched.texi: Document the issue.
35316
35317 2008-11-13  Jim Meyering  <meyering@redhat.com>
35318
35319         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35320         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35321         test would fail due to the difference in the Report bugs to ...
35322         line.  The expected address is empty, "<>", while the actual
35323         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35324
35325 2008-11-12  Bruno Haible  <bruno@clisp.org>
35326
35327         lstat: don't compile lstat.c on systems lacking lstat
35328         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35329         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35330         Reported by Daniel P. Berrange via Jim Meyering.
35331
35332 2008-11-12  Jim Meyering  <meyering@redhat.com>
35333
35334         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35335
35336 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35337
35338         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35339         instead.
35340
35341 2008-11-12  Bruno Haible  <bruno@clisp.org>
35342
35343         * lib/unicodeio.c: Include unistr.h.
35344         (utf8_wctomb): Remove function.
35345         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35346
35347 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35348
35349         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35350         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35351         <bruno@clisp.org>.
35352         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35353
35354 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35355
35356         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35357         * doc/gnulib.texi: Add section for warnings.
35358
35359 2008-11-11  Bruno Haible  <bruno@clisp.org>
35360
35361         * lib/sockets.h: Add a comment.
35362
35363 2008-11-11  Karl Berry  <karl@gnu.org>
35364
35365         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35366
35367 2008-11-11  Eric Blake  <ebb9@byu.net>
35368
35369         fdl.texi: avoid git symlinks
35370         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35371
35372 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35373
35374         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35375
35376 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35377
35378         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35379         (gl_WARN_ADD): Substitute $2 if literal.
35380
35381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35382
35383         * m4/warning.m4: Remove.
35384
35385 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35386
35387         * m4/warnings.m4: Almost complete rewrite. :-)
35388
35389 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35390
35391         * modules/warnings: New module.
35392         * m4/warnings.m4: New file.
35393         * MODULES.html.sh: Mention warnings module.
35394         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35395         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35396
35397 2008-11-10  Eric Blake  <ebb9@byu.net>
35398
35399         fdl.texi: make a symlink to the latest version
35400         * doc/standards.texi: Revert today's earlier change.
35401         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35402         * doc/fdl.texi: ...and replace this with a symlink to the newer
35403         fdl-1.3.texi.
35404
35405 2008-11-10  Bruno Haible  <bruno@clisp.org>
35406
35407         * tests/test-select-fd.c (main): Accept the result file name as fourth
35408         argument.
35409         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35410         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35411
35412 2008-11-10  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35415         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35416         as autoconf-substituted macros.
35417         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35419         gl_NETDB_H_DEFAULTS. Set these variables.
35420         * modules/netdb (Makefile.am): Substitute these variables.
35421
35422 2008-11-10  Eric Blake  <ebb9@byu.net>
35423
35424         standards.texi: include correct file for FDL 1.3
35425         * doc/standards.texi (GNU Free Documentation License): Change
35426         include file to pull in FDL 1.3, not 1.2.
35427
35428         fdl.texi: revert accidental change to license
35429         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35430
35431 2008-11-10  Bruno Haible  <bruno@clisp.org>
35432
35433         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35434         cross-compiling guesses also when the native compile gives no result.
35435
35436 2008-11-10  Bruno Haible  <bruno@clisp.org>
35437
35438         * lib/spawni.c (__spawni): Force variable into the stack.
35439
35440 2008-11-10  Bruno Haible  <bruno@clisp.org>
35441
35442         Add support for Haiku.
35443         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35444         glibc and BeOS, but also on Haiku.
35445         * lib/fpurge.c (fpurge): Likewise.
35446         * lib/freadable.c (freadable): Likewise.
35447         * lib/freadahead.c (freadahead): Likewise.
35448         * lib/freading.c (freading): Likewise.
35449         * lib/freadptr.c (freadptr): Likewise.
35450         * lib/freadseek.c (freadptrinc): Likewise.
35451         * lib/fseeko.c (rpl_fseeko): Likewise.
35452         * lib/fseterr.c (fseterr): Likewise.
35453         * lib/fwritable.c (fwritable): Likewise.
35454         * lib/fwriting.c (fwriting): Likewise.
35455         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35456
35457 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35458
35459         * lib/config.charset: Treat Haiku like BeOS.
35460
35461 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35462
35463         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35464         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35465
35466 2008-11-08  Bruno Haible  <bruno@clisp.org>
35467
35468         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35469         AC_CACHE_CHECK.
35470
35471 2008-11-08  Bruno Haible  <bruno@clisp.org>
35472
35473         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35474
35475 2008-11-08  Bruno Haible  <bruno@clisp.org>
35476
35477         * tests/test-select-fd.c: New file.
35478         * tests/test-select-in.sh: New file.
35479         * tests/test-select-out.sh: New file.
35480         * tests/test-select-stdin.c: New file.
35481         * modules/select-tests (Files): Add the new files.
35482         (Depends-on): Add gettimeofday.
35483         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35484         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35485         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35486
35487 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35488             Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35491
35492 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35493
35494         * build-aux/pmccabe2html: Added support for C++ source files.
35495
35496 2008-11-05  Ben Pfaff  <blp@gnu.org>
35497
35498         Fix lib/close.c build on Windows.
35499         * modules/close (Files): Add lib/w32sock.h.
35500
35501 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35502
35503         Accept Bison's NEWS format.
35504         * build-aux/announce-gen (print_news_deltas): Tweak
35505         $re_prefix.
35506
35507 2008-11-04  Bruno Haible  <bruno@clisp.org>
35508
35509         * modules/random_r (Maintainer): Add glibc.
35510
35511 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35512
35513         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35514         by karl@freefriends.org (Karl Berry).
35515         * doc/alloca.texi: Likewise.
35516         * doc/c-ctype.texi: Likewise.
35517         * doc/c-strcase.texi: Likewise.
35518         * doc/c-strcaseeq.texi: Likewise.
35519         * doc/c-strcasestr.texi: Likewise.
35520         * doc/c-strstr.texi: Likewise.
35521         * doc/c-strtod.texi: Likewise.
35522         * doc/c-strtold.texi: Likewise.
35523         * doc/ctime.texi: Likewise.
35524         * doc/error.texi: Likewise.
35525         * doc/fdl.texi: Likewise.
35526         * doc/gcd.texi: Likewise.
35527         * doc/getdate.texi: Likewise.
35528         * doc/gnulib-intro.texi: Likewise.
35529         * doc/gnulib-tool.texi: Likewise.
35530         * doc/gnulib.texi: Likewise.
35531         * doc/inet_ntoa.texi: Likewise.
35532         * doc/maintain.texi: Likewise.
35533         * doc/make-stds.texi: Likewise.
35534         * doc/quote.texi: Likewise.
35535         * doc/regexprops-generic.texi: Likewise.
35536         * doc/standards.texi: Likewise.
35537         * doc/verify.texi: Likewise.
35538         * doc/visibility.texi: Likewise.
35539         * doc/gnulib.texi (GNU Free Documentation License): Include
35540         fdl-1.3.texi instead of fdl.texi.
35541
35542 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35543
35544         * doc/fdl-1.3.texi: New file, from
35545         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35546         * modules/fdl-1.3: Add.
35547         * MODULES.html.sh: Add fdl-1.3.
35548
35549 2008-11-03  Bruno Haible  <bruno@clisp.org>
35550
35551         Make determination of absolute name of header file work with AIX xlc.
35552         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35553         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35554         preprocessing.
35555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35556         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35557
35558 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35559
35560         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35561         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35562         <ludo@gnu.org>.
35563
35564 2008-11-02  Bruno Haible  <bruno@clisp.org>
35565
35566         Mark 'strpbrk' obsolete.
35567         * modules/strpbrk (Status, Notice): New sections.
35568         * modules/strtok_r (Depends-on): Add strpbrk.
35569
35570 2008-11-02  Bruno Haible  <bruno@clisp.org>
35571
35572         Mark 'strdup' obsolete.
35573         * modules/strdup (Status, Notice): New sections.
35574         * modules/findprog (Depends-on): Add strdup.
35575         * modules/getaddrinfo (Depends-on): Likewise.
35576         * modules/localename (Depends-on): Likewise.
35577         * modules/relocatable-lib (Depends-on): Likewise.
35578         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35579         * modules/relocatable-prog (Depends-on): Likewise.
35580         * modules/trim (Depends-on): Likewise.
35581         * modules/unictype/gen-ctype (Depends-on): Likewise.
35582         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35583
35584 2008-11-02  Bruno Haible  <bruno@clisp.org>
35585
35586         Mark 'strcspn' obsolete.
35587         * modules/strcspn (Status, Notice): New sections.
35588
35589 2008-11-02  Bruno Haible  <bruno@clisp.org>
35590
35591         Mark 'rmdir' obsolete.
35592         * modules/rmdir (Status, Notice): New sections.
35593         * modules/clean-temp (Depends-on): Add rmdir.
35594         * modules/openat (Depends-on): Likewise.
35595
35596 2008-11-02  Bruno Haible  <bruno@clisp.org>
35597
35598         Mark 'raise' obsolete.
35599         * modules/raise (Status, Notice): New sections.
35600         (Include): Specify <signal.h>.
35601         * modules/stdio (Depends-on): Add raise.
35602         * modules/write (Depends-on): Likewise.
35603
35604 2008-11-02  Bruno Haible  <bruno@clisp.org>
35605
35606         Mark 'memset' obsolete.
35607         * modules/memset (Status, Notice): New sections.
35608
35609 2008-11-02  Bruno Haible  <bruno@clisp.org>
35610
35611         Mark 'memmove' obsolete.
35612         * modules/memmove (Status, Notice): New sections.
35613         * modules/argp (Depends-on): Add memmove.
35614         * modules/argz (Depends-on): Likewise.
35615         * modules/canonicalize (Depends-on): Likewise.
35616         * modules/canonicalize-lgpl (Depends-on): Likewise.
35617         * modules/fts (Depends-on): Likewise.
35618         * modules/getcwd (Depends-on): Likewise.
35619         * modules/human (Depends-on): Likewise.
35620         * modules/regex (Depends-on): Likewise.
35621         * modules/striconveh (Depends-on): Likewise.
35622         * modules/trim (Depends-on): Likewise.
35623         * modules/unistr/u8-move (Depends-on): Likewise.
35624         * modules/unistr/u16-move (Depends-on): Likewise.
35625         * modules/unistr/u32-move (Depends-on): Likewise.
35626
35627 2008-11-02  Bruno Haible  <bruno@clisp.org>
35628
35629         Mark 'memcpy' obsolete.
35630         * modules/memcpy (Status, Notice): New sections.
35631
35632 2008-11-02  Bruno Haible  <bruno@clisp.org>
35633
35634         Mark 'memcmp' obsolete.
35635         * modules/memcmp (Status, Notice): New sections.
35636         * modules/argmatch (Depends-on): Add memchr.
35637         * modules/backupfile (Depends-on): Likewise.
35638         * modules/c-strcasestr (Depends-on): Likewise.
35639         * modules/crypto/des (Depends-on): Likewise.
35640         * modules/csharpcomp (Depends-on): Likewise.
35641         * modules/fnmatch (Depends-on): Likewise.
35642         * modules/git-merge-changelog (Depends-on): Likewise.
35643         * modules/isnand (Depends-on): Likewise.
35644         * modules/isnand-nolibm (Depends-on): Likewise.
35645         * modules/isnanf (Depends-on): Likewise.
35646         * modules/isnanf-nolibm (Depends-on): Likewise.
35647         * modules/isnanl (Depends-on): Likewise.
35648         * modules/isnanl-nolibm (Depends-on): Likewise.
35649         * modules/mbchar (Depends-on): Likewise.
35650         * modules/memcoll (Depends-on): Likewise.
35651         * modules/quotearg (Depends-on): Likewise.
35652         * modules/regex (Depends-on): Likewise.
35653         * modules/relocatable-prog (Depends-on): Likewise.
35654         * modules/same (Depends-on): Likewise.
35655         * modules/signbit (Depends-on): Likewise.
35656         * modules/strcasestr-simple (Depends-on): Likewise.
35657         * modules/unictype/gen-ctype (Depends-on): Likewise.
35658         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35659         * modules/uniname/uniname (Depends-on): Likewise.
35660         * modules/unistr/u8-cmp (Depends-on): Likewise.
35661
35662 2008-11-02  Bruno Haible  <bruno@clisp.org>
35663
35664         Mark 'memchr' obsolete.
35665         * modules/memchr (Status, Notice): New sections.
35666         * modules/argp (Depends-on): Add memchr.
35667         * modules/base64 (Depends-on): Likewise.
35668         * modules/c-strcasestr (Depends-on): Likewise.
35669         * modules/chdir-long (Depends-on): Likewise.
35670         * modules/fnmatch (Depends-on): Likewise.
35671         * modules/getsubopt (Depends-on): Likewise.
35672         * modules/git-merge-changelog (Depends-on): Likewise.
35673         * modules/glob (Depends-on): Likewise.
35674         * modules/strcasestr-simple (Depends-on): Likewise.
35675         * modules/strnlen (Depends-on): Likewise.
35676
35677 2008-11-02  Bruno Haible  <bruno@clisp.org>
35678
35679         Mark 'atexit' obsolete.
35680         * modules/atexit (Status, Notice): New sections.
35681         * modules/chdir-long (Depends-on): Add atexit.
35682         * modules/wait-process (Depends-on): Likewise.
35683
35684 2008-11-02  Bruno Haible  <bruno@clisp.org>
35685
35686         * gnulib-tool: New option --with-obsolete.
35687         (func_usage): Document it.
35688         (func_modules_transitive_closure): Drop obsolete dependencies if
35689         incobsolete is not true.
35690         (func_import): Read and save the incobsolete variable to the cache.
35691
35692 2008-11-02  Bruno Haible  <bruno@clisp.org>
35693
35694         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35695         * gnulib-tool: New option --extract-status.
35696         (func_usage): Document it.
35697         (sed_extract_prog): Recognize it.
35698         (func_get_status): New function.
35699
35700 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35701
35702         * modules/sockets (License): Change from LGPL to LGPLv2+.
35703
35704 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35705
35706         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35707
35708 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35709
35710         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35711         Mention times and sys_times.
35712         * modules/sys_times, modules/sys_times-tests: New modules.
35713         * modules/times, modules/times-tests: Likewise
35714         * m4/sys_times_h.m4: New file.
35715         * lib/sys_times.in.h: Likewise
35716         * lib/times.c: Likewise.
35717         * tests/test-sys_times.c: Likewise.
35718         * tests/test-times.c: Likewise.
35719         * doc/posix-headers/sys_times.texi: Update.
35720         * doc/posix-functions/times.texi: Update.
35721
35722 2008-10-28  Jim Meyering  <meyering@redhat.com>
35723
35724         * modules/tempname (Depends-on): Add lstat.
35725
35726         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35727
35728 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35729
35730         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35731         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35732         using idiom used elsewhere in gnulib.
35733
35734 2008-10-27  Jim Meyering  <meyering@redhat.com>
35735
35736         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35737
35738 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35739
35740         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35741         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35742         programs.
35743         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35744
35745 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35746
35747         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35748
35749 2008-10-27  Bruno Haible  <bruno@clisp.org>
35750
35751         * tests/test-lstat.c: Include <stdio.h>.
35752
35753 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35754
35755         * modules/lstat-tests: New module.
35756         * tests/test-lstat.c: New file.
35757
35758 2008-10-26  Jim Meyering  <meyering@redhat.com>
35759
35760         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35761
35762 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35763             Bruno Haible  <bruno@clisp.org>
35764
35765         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35766         * modules/configmake (Include): Add a note that the include must come
35767         after all system headers.
35768         * lib/javaversion.c: Include configmake.h after all other includes.
35769
35770 2008-10-26  Bruno Haible  <bruno@clisp.org>
35771
35772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35773         HAVE_STRUCT_RANDOM_DATA to 1.
35774         (gl_STDLIB_H): Simplify.
35775
35776 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35777
35778         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35779         substitute HAVE_STRUCT_RANDOM_DATA.
35780         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35781         random_data.
35782         * modules/stdlib (Makefile.am): Substitute
35783         HAVE_STRUCT_RANDOM_DATA.
35784
35785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35786
35787         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35788         * doc/gnulib-intro.texi (Copyright): Likewise.
35789
35790 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35791
35792         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35793         findings.
35794
35795 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35796             Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/unistd.in.h: Include <winsock2.h>.
35799         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35800         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35801         Provide dummy declarations.
35802         (gethostname): Override.
35803         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35805         gl_PREREQ_SYS_H_WINSOCK2.
35806         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35807         * doc/posix-functions/gethostname.texi: More details.
35808
35809 2008-10-25  Bruno Haible  <bruno@clisp.org>
35810
35811         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35812         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35813         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35814
35815         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35816         here ...
35817         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35818         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35819         gl_UNISTD_H_DEFAULTS.
35820
35821 2008-10-25  Eric Blake  <ebb9@byu.net>
35822
35823         signbit: avoid spurious compiler failure
35824         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35825         declarations inside function.
35826
35827 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35828             Bruno Haible  <bruno@clisp.org>
35829
35830         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35831         * modules/random_r (Depends-on): Add stdint.
35832
35833 2008-10-24  Bruno Haible  <bruno@clisp.org>
35834
35835         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35836         Eggert.
35837         * modules/strerror (License): Likewise.
35838
35839 2008-10-24  Jim Meyering  <meyering@redhat.com>
35840
35841         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35842         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35843
35844 2008-10-24  Eric Blake  <ebb9@byu.net>
35845
35846         getgroups: fix compilation when getgroups is available
35847         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35848         but with <config.h> override of getgroups disabled.
35849
35850 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35851
35852         * doc/gnulib.texi (Header files): Add note about C++ problems.
35853         Explained by Bruno Haible <bruno@clisp.org>.
35854
35855 2008-10-23  Bruno Haible  <bruno@clisp.org>
35856
35857         Define a dummy SA_NODEFER macro on Interix.
35858         * lib/signal.in.h (SA_NODEFER): Define fallback.
35859         Reported by Aleksey Cheusov <cheusov@tut.by> via
35860         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35861
35862 2008-10-23  Bruno Haible  <bruno@clisp.org>
35863
35864         * modules/freadahead (License): Change to LGPLv2+.
35865         Suggested by Simon Josefsson.
35866
35867 2008-10-23  Jim Meyering  <meyering@redhat.com>
35868
35869         random_r: new module
35870         * modules/random_r: New file.
35871         * m4/random_r.m4: New file.
35872         * lib/random_r.c: New file, from glibc.
35873         * modules/random_r-tests: New file.
35874         * tests/test-random_r.c: New file.
35875         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35876          Declare.
35877         (RAND_MAX): Define.
35878         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35879         * modules/stdlib: Substitute them, too.
35880         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35881         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35882         * doc/glibc-functions/random_r.texi: Likewise.
35883         * doc/glibc-functions/setstate_r.texi: Likewise.
35884         * doc/glibc-functions/srandom_r.texi: Likewise.
35885         * config/srclist.txt: Mention it.
35886
35887 2008-10-23  David Lutterkort  <lutter@redhat.com>
35888
35889         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35890         link requirement
35891
35892 2008-10-23  Jim Meyering  <meyering@redhat.com>
35893
35894         selinux-h: mark parameters of stub functions as intentionally unused
35895         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35896         * lib/se-context.in.h: Likewise.
35897
35898 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35899
35900         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35901
35902 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35903
35904         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35905
35906 2008-10-22  Eric Blake  <ebb9@byu.net>
35907
35908         glthread/thread: avoid compiler warning
35909         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35910         Add unreachable abort to silence compiler.
35911
35912 2008-10-22  Eric Blake  <ebb9@byu.net>
35913
35914         netdb: also supply struct addrinfo for cygwin 1.5.x
35915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35916         older cygwin.
35917         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35918         cygwin.
35919         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35920
35921 2008-10-22  Bruno Haible  <bruno@clisp.org>
35922
35923         * users.txt: Update entry about pspp.
35924
35925 2008-10-21  Bruno Haible  <bruno@clisp.org>
35926
35927         Simplification.
35928         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35929         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35930
35931         Simplification.
35932         * lib/ioctl.c (ioctl): Don't undefine.
35933         * lib/socket.c (socket): Don't undefine.
35934
35935         Remove unused module indicator macros.
35936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35937         GNULIB_$1 as a C macro.
35938
35939         * doc/posix-functions/close.texi: Undo last change.
35940         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35941         Windows platforms.
35942
35943 2008-10-21  Bruno Haible  <bruno@clisp.org>
35944
35945         Add gethostname() declaration to <unistd.h>.
35946         * lib/unistd.in.h (gethostname): New declaration.
35947         * lib/gethostname.c: Include <unistd.h>.
35948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35949         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35951         and HAVE_GETHOSTNAME.
35952         * modules/gethostname (Depends-on): Add unistd.
35953         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35954         (Include): Specify <unistd.h>.
35955         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35956         HAVE_GETHOSTNAME.
35957         * tests/test-gethostname.c: Include <unistd.h> first.
35958
35959 2008-10-21  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35962         * modules/select-tests (Depends-on): Likewise.
35963         Reported by Simon Josefsson.
35964
35965 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35966
35967         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35968         * lib/accept.c: New file, based on winsock.c.
35969         * lib/bind.c: New file, based on winsock.c.
35970         * lib/connect.c: New file, based on winsock.c.
35971         * lib/getpeername.c: New file, based on winsock.c.
35972         * lib/getsockname.c: New file, based on winsock.c.
35973         * lib/getsockopt.c: New file, based on winsock.c.
35974         * lib/ioctl.c: New file, based on winsock.c.
35975         * lib/listen.c: New file, based on winsock.c.
35976         * lib/recv.c: New file, based on winsock.c.
35977         * lib/recvfrom.c: New file, based on winsock.c.
35978         * lib/send.c: New file, based on winsock.c.
35979         * lib/sendto.c: New file, based on winsock.c.
35980         * lib/setsockopt.c: New file, based on winsock.c.
35981         * lib/shutdown.c: New file, based on winsock.c.
35982         * lib/socket.c: New file, based on winsock.c.
35983         * lib/w32sock.h: New file, based on winsock.c.
35984         * lib/winsock.c: Remove file.
35985         * modules/accept: Likewise.
35986         * modules/bind: Likewise.
35987         * modules/connect: Likewise.
35988         * modules/getpeername: Likewise.
35989         * modules/getsockname: Likewise.
35990         * modules/getsockopt: Likewise.
35991         * modules/ioctl: Likewise.
35992         * modules/listen: Likewise.
35993         * modules/recv: Likewise.
35994         * modules/recvfrom: Likewise.
35995         * modules/send: Likewise.
35996         * modules/sendto: Likewise.
35997         * modules/setsockopt: Likewise.
35998         * modules/shutdown: Likewise.
35999         * modules/socket: Use socket.c instead of winsock.c.
36000         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36001         * doc/posix-functions/accept.texi: Doc fix.
36002         * doc/posix-functions/bind.texi: Doc fix.
36003         * doc/posix-functions/close.texi: Doc fix.
36004         * doc/posix-functions/connect.texi: Doc fix.
36005         * doc/posix-functions/getpeername.texi: Doc fix.
36006         * doc/posix-functions/getsockname.texi: Doc fix.
36007         * doc/posix-functions/getsockopt.texi: Doc fix.
36008         * doc/posix-functions/ioctl.texi: Doc fix.
36009         * doc/posix-functions/listen.texi: Doc fix.
36010         * doc/posix-functions/recv.texi: Doc fix.
36011         * doc/posix-functions/recvfrom.texi: Doc fix.
36012         * doc/posix-functions/send.texi: Doc fix.
36013         * doc/posix-functions/sendto.texi: Doc fix.
36014         * doc/posix-functions/setsockopt.texi: Doc fix.
36015         * doc/posix-functions/shutdown.texi: Doc fix.
36016         * doc/posix-functions/socket.texi: Doc fix.
36017
36018 2008-10-20  Bruno Haible  <bruno@clisp.org>
36019
36020         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36021         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36022         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36023         as an alias for SIGABRT.
36024         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36025         (sigaction): Map it to SIGABRT.
36026         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36027
36028 2008-10-20  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/fts.c: Don't include lstat.h.
36031         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36032
36033         Move the lstat() declaration to <sys/stat.h>.
36034         * lib/lstat.h: Remove file.
36035         * lib/sys_stat.in.h: Add special invocation convention.
36036         (lstat): New declaration.
36037         * lib/lstat.c (orig_lstat): New function.
36038         (rpl_lstat): Use orig_lstat instead of lstat.
36039         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36040         AC_C_INLINE. Set REPLACE_LSTAT.
36041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36042         and REPLACE_LSTAT.
36043         * modules/lstat (Files): Remove lib/lstat.h.
36044         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36045         (Include): Specify <sys/stat.h> instead of lstat.h.
36046         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36047         REPLACE_LSTAT.
36048         * NEWS: Mention the change.
36049
36050 2008-10-20  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/posix_spawn-tests: New file.
36053         * tests/test-posix_spawn3.c: New file.
36054
36055 2008-10-20  Bruno Haible  <bruno@clisp.org>
36056
36057         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36058         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36059         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36060         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36061         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36062
36063 2008-10-20  Bruno Haible  <bruno@clisp.org>
36064
36065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36066         of posix_spawn on AIX 5.3.
36067
36068 2008-10-20  Bruno Haible  <bruno@clisp.org>
36069
36070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36071
36072 2008-10-20  Bruno Haible  <bruno@clisp.org>
36073
36074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36075         of AC_LANG_PROGRAM.
36076
36077 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36078
36079         * lib/netdb.in.h: Don't define GNU specific constants until they
36080         are supported or needed.  Reported by Bruno Haible
36081         <bruno@clisp.org>.
36082
36083 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36084
36085         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36086
36087 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36088
36089         * lib/getaddrinfo.h: Remove file.
36090         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36091         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36092         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36093         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36094         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36095         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36096         * tests/test-getaddrinfo.c: Likewise.
36097         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36098         * NEWS: Mention change.
36099
36100 2008-10-19  Bruno Haible  <bruno@clisp.org>
36101
36102         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36103
36104 2008-10-19  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/wait-process.c: Include simply <sys/wait.h>.
36107         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36108         WIFSTOPPED): Remove fallback definitions.
36109         * modules/wait-process (Depends-on): Add sys_wait.
36110
36111         New module 'sys_wait'.
36112         * modules/sys_wait: New file.
36113         * lib/sys_wait.in.h: New file, partially copied from
36114         lib/wait-process.c.
36115         * m4/sys_wait_h.m4: New file.
36116         * doc/posix-headers/sys_wait.texi: Mention the new module.
36117
36118 2008-10-19  Bruno Haible  <bruno@clisp.org>
36119
36120         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36121
36122 2008-10-19  Bruno Haible  <bruno@clisp.org>
36123
36124         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36125         * lib/wait-process.c (WAIT_T): Remove type.
36126         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36127         (wait_subprocess): Update.
36128
36129 2008-10-19  Bruno Haible  <bruno@clisp.org>
36130
36131         New module 'atoll'.
36132         * modules/atoll: New file.
36133         * lib/stdlib.in.h (atoll): New declaration.
36134         * lib/atoll.c: New file, from glibc with modifications.
36135         * m4/atoll.m4: New file.
36136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36137         HAVE_ATOLL.
36138         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36139         * doc/posix-functions/atoll.texi: Mention the new module.
36140
36141 2008-10-19  Bruno Haible  <bruno@clisp.org>
36142
36143         Add strtoull() declaration to <stdlib.h>.
36144         * lib/stdlib.in.h (strtoull): New declaration.
36145         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36146         Set HAVE_STRTOULL.
36147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36148         HAVE_STRTOULL.
36149         * modules/strtoull (Depends-on): Add stdlib.
36150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36151         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36152         HAVE_STRTOULL.
36153
36154 2008-10-19  Bruno Haible  <bruno@clisp.org>
36155
36156         Add strtoll() declaration to <stdlib.h>.
36157         * lib/stdlib.in.h (strtoll): New declaration.
36158         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36159         Set HAVE_STRTOLL.
36160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36161         HAVE_STRTOLL.
36162         * modules/strtoll (Depends-on): Add stdlib.
36163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36164         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36165
36166 2008-10-19  Bruno Haible  <bruno@clisp.org>
36167
36168         * modules/bcopy (Depends-on): Add strings.
36169         (Include): Specify <strings.h>.
36170
36171 2008-10-19  Bruno Haible  <bruno@clisp.org>
36172
36173         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36174
36175 2008-10-19  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36178         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36179         mingw.
36180
36181 2008-10-19  Bruno Haible  <bruno@clisp.org>
36182
36183         * lib/atanl.c: Don't include isnanl.h.
36184         * lib/cosl.c: Likewise.
36185         * lib/ldexpl.c: Likewise.
36186         * lib/logl.c: Likewise.
36187         * lib/sinl.c: Likewise.
36188         * lib/sqrtl.c: Likewise.
36189         * lib/tanl.c: Likewise.
36190
36191         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36192         * lib/isnanf.h: Remove file.
36193         * lib/isnand.h: Remove file.
36194         * lib/isnanl.h: Remove file.
36195         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36196         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36197         macros.
36198         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36199         HAVE_ISNANF, don't define it as a C macro.
36200         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36201         HAVE_ISNAND, don't define it as a C macro.
36202         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36203         HAVE_ISNANL, don't define it as a C macro.
36204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36205         HAVE_ISNAN[FDL].
36206         * modules/isnanf (Files): Remove lib/isnanf.h.
36207         (Depends-on): Add math.
36208         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36209         (Include): Specify <math.h> instead of isnanf.h.
36210         * modules/isnand (Files): Remove lib/isnand.h.
36211         (Depends-on): Add math.
36212         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36213         (Include): Specify <math.h> instead of isnand.h.
36214         * modules/isnanl (Files): Remove lib/isnanl.h.
36215         (Depends-on): Add math.
36216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36217         (Include): Specify <math.h> instead of isnanl.h.
36218         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36219         HAVE_ISNAN[FDL].
36220         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36221         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36222         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36223         * NEWS: Mention the change.
36224
36225 2008-10-18  Bruno Haible  <bruno@clisp.org>
36226
36227         Add getusershell(), setusershell(), endusershell() declarations to
36228         <unistd.h>.
36229         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36230         declarations.
36231         * lib/getusershell.c: Include unistd.h.
36232         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36233         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36234         HAVE_GETUSERSHELL.
36235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36236         and HAVE_GETUSERSHELL.
36237         * modules/getusershell (Depends-on): Add unistd, extensions.
36238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36239         (Include): Specify <unistd.h>.
36240         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36241         HAVE_GETUSERSHELL.
36242
36243 2008-10-18  Bruno Haible  <bruno@clisp.org>
36244
36245         Add a getloadavg() declaration to <stdlib.h>.
36246         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36247         getloadavg declaration.
36248         (getloadavg): New declaration.
36249         * lib/getloadavg.c: Include <stdlib.h> first.
36250         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36251         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36252         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36254         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36255         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36257         (Include): Specify <stdlib.h>.
36258         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36259         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36260
36261 2008-10-18  Bruno Haible  <bruno@clisp.org>
36262
36263         * lib/dirchownmod.c: Don't include lchmod.h.
36264
36265         Move the lchmod() declaration to <sys/stat.h>.
36266         * lib/lchmod.h: Remove file.
36267         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36268         (lchmod): New declaration, moved here from lib/lchown.h.
36269         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36270         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36271         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36272         and HAVE_LCHMOD.
36273         * modules/lchmod (Files): Remove lib/lchmod.h.
36274         (Depends-on): Add sys_stat, extensions.
36275         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36276         (Include): Specify <sys/stat.h> instead of lchmod.h.
36277         * modules/sys_stat (Depends-on): Add link-warning.
36278         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36279         definition of GL_LINK_WARNING.
36280         * NEWS: Mention the change.
36281
36282 2008-10-18  Bruno Haible  <bruno@clisp.org>
36283
36284         * lib/fchdir.c: Don't include dirfd.h.
36285         * lib/fts.c: Likewise.
36286         * lib/getcwd.c: Likewise.
36287         * lib/glob.c: Likewise.
36288
36289         Move the dirfd() declaration to <dirent.h>.
36290         * lib/dirfd.h: Remove file.
36291         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36292         (dirfd): New declaration.
36293         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36294         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36295         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36296         HAVE_DECL_DIRFD.
36297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36298         HAVE_DECL_DIRFD.
36299         * modules/dirfd (Files): Remove lib/dirfd.h.
36300         (Depends-on): Add dirent, extensions.
36301         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36302         (Include): Specify <dirent.h> instead of dirfd.h.
36303         * modules/dirent (Depends-on): Add link-warning.
36304         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36305         definition of GL_LINK_WARNING.
36306         * NEWS: Mention the change.
36307
36308 2008-10-18  Bruno Haible  <bruno@clisp.org>
36309
36310         Move the euidaccess() declaration to <unistd.h>.
36311         * lib/euidaccess.h: Remove file.
36312         * lib/unistd.in.h (euidaccess): New declaration.
36313         * lib/euidaccess.c: Don't include euidaccess.h.
36314         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36315         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36317         and HAVE_EUIDACCESS.
36318         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36319         (Depends-on): Add unistd.
36320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36321         (Include): Specify <unistd.h> instead of euidaccess.h.
36322         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36323         HAVE_EUIDACCESS.
36324         * NEWS: Mention the change.
36325
36326 2008-10-18  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36329
36330         Move the getdomainname() declaration to <unistd.h>.
36331         * lib/getdomainname.h: Remove file.
36332         * lib/unistd.in.h (getdomainname): New declaration.
36333         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36334         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36335         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36336         HAVE_GETDOMAINNAME.
36337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36338         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36339         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36340         (Depends-on): Add unistd, extensions.
36341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36342         (Includes): Specify <unistd.h> instead of getdomainname.h.
36343         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36344         HAVE_GETDOMAINNAME.
36345         * NEWS: Mention the change.
36346
36347 2008-10-18  Bruno Haible  <bruno@clisp.org>
36348
36349         * modules/dirent: New file.
36350         * m4/dirent_h.m4: New file.
36351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36352         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36353         * modules/fchdir (Files): Remove lib/dirent.in.h.
36354         (Depends-on): Add dirent.
36355         (Makefile.am): Move rules to modules/dirent.
36356         * doc/posix-headers/dirent.texi: Mention the new module.
36357
36358 2008-10-18  Bruno Haible  <bruno@clisp.org>
36359
36360         Avoid -Wunused-parameter warnings in public gnulib header files.
36361         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36362         macro.
36363         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36364
36365 2008-10-18  Bruno Haible  <bruno@clisp.org>
36366
36367         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36368         * doc/glibc-functions/error.texi: Mention the module 'error'.
36369         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36370         * doc/glibc-functions/getdomainname.texi: Mention the module
36371         'getdomainname'.
36372         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36373         * doc/glibc-functions/getpagesize.texi: Mention the module
36374         'getpagesize'.
36375         * doc/glibc-functions/getusershell.texi: Mention the module
36376         'getusershell'.
36377         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36378         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36379         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36380         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36381         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36382         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36383         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36384         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36385         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36386         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36387         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36388         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36389         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36390         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36391
36392 2008-10-17  Bruno Haible  <bruno@clisp.org>
36393
36394         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36395         HP-UX and IRIX, use -0.0L.
36396         * tests/test-ceill.c (minus_zero): Likewise.
36397         * tests/test-floorl.c (minus_zero): Likewise.
36398         * tests/test-frexpl.c (minus_zero): Likewise.
36399         * tests/test-isnan.c (minus_zerol): Likewise.
36400         * tests/test-isnanl.h (minus_zero): Likewise.
36401         * tests/test-ldexpl.c (minus_zero): Likewise.
36402         * tests/test-roundl.c (minus_zero): Likewise.
36403         * tests/test-signbit.c (minus_zerol): Likewise.
36404         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36405         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36406         * tests/test-truncl.c (minus_zero): Likewise.
36407         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36408         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36409         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36410         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36411
36412 2008-10-17  Bruno Haible  <bruno@clisp.org>
36413
36414         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36415         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36416         that it gets activated only for gcc >= 3.0.
36417         * lib/dirent.in.h: Likewise.
36418         * lib/errno.in.h: Likewise.
36419         * lib/fcntl.in.h: Likewise.
36420         * lib/float.in.h: Likewise.
36421         * lib/iconv.in.h: Likewise.
36422         * lib/inttypes.in.h: Likewise.
36423         * lib/locale.in.h: Likewise.
36424         * lib/math.in.h: Likewise.
36425         * lib/netdb.in.h: Likewise.
36426         * lib/netinet_in.in.h: Likewise.
36427         * lib/search.in.h: Likewise.
36428         * lib/signal.in.h: Likewise.
36429         * lib/spawn.in.h: Likewise.
36430         * lib/stdarg.in.h: Likewise.
36431         * lib/stdint.in.h: Likewise.
36432         * lib/stdio.in.h: Likewise.
36433         * lib/stdlib.in.h: Likewise.
36434         * lib/string.in.h: Likewise.
36435         * lib/strings.in.h: Likewise.
36436         * lib/sys_file.in.h: Likewise.
36437         * lib/sys_ioctl.in.h: Likewise.
36438         * lib/sys_select.in.h: Likewise.
36439         * lib/sys_socket.in.h: Likewise.
36440         * lib/sys_stat.in.h: Likewise.
36441         * lib/sys_time.in.h: Likewise.
36442         * lib/sysexits.in.h: Likewise.
36443         * lib/time.in.h: Likewise.
36444         * lib/unistd.in.h: Likewise.
36445         * lib/wchar.in.h: Likewise.
36446         * lib/wctype.in.h: Likewise.
36447         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36448
36449 2008-10-17  Jim Meyering  <meyering@redhat.com>
36450
36451         ignore-value: don't depend on inline module
36452         * modules/ignore-value (Depends-on): Remove 'inline'.
36453         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36454         Suggestion from Bruno Haible.
36455
36456 2008-10-17  Bruno Haible  <bruno@clisp.org>
36457
36458         New implementation of condition variables for Win32.
36459         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36460         (gl_linked_waitqueue_t): New type.
36461         (gl_cond_t): Use it.
36462         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36463         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36464         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36465         (glthread_cond_init_func, glthread_cond_wait_func,
36466         glthread_cond_timedwait_func, glthread_cond_signal_func,
36467         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36468         Reimplemented on the basis of gl_linked_waitqueue_t.
36469         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36470         gl_waitqueue_t.
36471         (gl_rwlock_t): Update.
36472         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36473
36474 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36475
36476         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36477         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36478
36479 2008-10-17  Jim Meyering  <meyering@redhat.com>
36480
36481         ignore-value: new module
36482         * modules/ignore-value: New file.
36483         * lib/ignore-value.h: New file.
36484         * MODULES.html.sh (Compiler warning management): New section,
36485         just for this module.  More to come.
36486
36487 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36488
36489         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36490         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36491         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36492
36493 2008-10-16  Jim Meyering  <meyering@redhat.com>
36494
36495         openat-die.c: avoid 'no previous prototype' warning
36496         * lib/openat-die.c: Include "openat.h".
36497         Reported by Reuben Thomas <rrt@sc3d.org>.
36498
36499 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36500
36501         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36502         * lib/netdb.in.h: Fix typo.
36503         Reported by Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/netdb.in.h: Include sys/socket.h for platforms without
36506         netdb.h, to get structures like hostent on MinGW.
36507         * modules/netdb (Depends-on): Add sys_socket.
36508
36509 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36510
36511         * modules/netdb, modules/netdb-tests: New file.
36512         * m4/netdb_h.m4: New file.
36513         * lib/netdb.in.h: Add, currently just an empty file pending
36514         definitions.
36515         * tests/test-netdb.c: New file.
36516         * doc/posix-headers/netdb.texi: Mention that we replace it if
36517         needed.
36518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36519         netdb.
36520
36521 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36522
36523         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36524         with code.
36525
36526 2008-10-13  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/glthread/cond.c (glthread_cond_wait_func,
36529         glthread_cond_timedwait_func): Add a comment.
36530
36531 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36532
36533         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36534         * tests/test-select.c: Likewise,
36535
36536 2008-10-13  Bruno Haible  <bruno@clisp.org>
36537
36538         * lib/glthread/cond.c (glthread_cond_wait_func,
36539         glthread_cond_timedwait_func): Fix variable name.
36540         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36541
36542 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36543
36544         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36545         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36546         struct sockaddr.sa_len.
36547         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36548
36549 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36550
36551         * build-aux/pmccabe2html: Add css and css_url parameters.
36552
36553 2008-10-12  Bruno Haible  <bruno@clisp.org>
36554
36555         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36556         calling aclx_get.
36557         Reported by Rainer Tammer <tammer@tammer.net>.
36558
36559 2008-10-12  Bruno Haible  <bruno@clisp.org>
36560
36561         Use msvcrt aware primitives for creation/termination of Win32 threads.
36562         * lib/glthread/thread.c: Include <process.h>.
36563         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36564         (wrapper_func): Update signature.
36565         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36566
36567 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36568             Bruno Haible  <bruno@clisp.org>
36569
36570         Provide a Win32 implementation of the 'cond' module.
36571         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36572         * lib/glthread/cond.c (glthread_cond_init_func,
36573         glthread_cond_wait_func, glthread_cond_timedwait_func,
36574         glthread_cond_signal_func, glthread_cond_broadcast_func,
36575         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36576         * modules/cond (Dependencies): Add gettimeofday.
36577
36578 2008-10-11  Bruno Haible  <bruno@clisp.org>
36579
36580         Make sleep work on older versions of mingw.
36581         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36582         only whether it exists.
36583         * doc/posix-functions/sleep.texi: Mention the problem with older
36584         versions of mingw.
36585
36586 2008-10-11  Bruno Haible  <bruno@clisp.org>
36587
36588         New module 'shutdown'.
36589         * modules/shutdown: New file.
36590         * lib/sys_socket.in.h (shutdown): New declaration.
36591         * lib/winsock.c (shutdown): New function.
36592         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36593         GNULIB_SHUTDOWN.
36594         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36595         * doc/posix-functions/shutdown.texi: Document the new module.
36596
36597 2008-10-11  Jim Meyering  <meyering@redhat.com>
36598
36599         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36600
36601 2008-10-11  Bruno Haible  <bruno@clisp.org>
36602
36603         New module 'fclose'.
36604         * modules/fclose: New file.
36605         * lib/stdio.in.h (fclose): New declaration.
36606         * lib/fclose.c: New file.
36607         * m4/fclose.m4: New file.
36608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36609         REPLACE_FCLOSE.
36610         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36611         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36612         REPLACE_FCLOSE.
36613         * modules/close (Depends-on): fclose.
36614         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36615
36616 2008-10-11  Bruno Haible  <bruno@clisp.org>
36617
36618         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36619         set errno and don't call _close.
36620
36621 2008-10-10  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36624         ACL, not afterwards. Fixes test failure on Cygwin.
36625
36626 2008-10-09  Ben Pfaff  <blp@gnu.org>
36627
36628         * build-aux/announce-gen: Fix gnulib version related part of usage
36629         message.  Die with a useful error message if no tarballs are
36630         found.
36631
36632 2008-10-10  Jim Meyering  <meyering@redhat.com>
36633
36634         bootstrap: use git's --depth=N option only if it's supported
36635         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36636         recognize the --depth option.  Reported by Pádraig Brady.
36637
36638 2008-10-09  Bruno Haible  <bruno@clisp.org>
36639
36640         New module 'ioctl'.
36641         * modules/ioctl: New file.
36642         * lib/sys_socket.in.h (ioctl): Remove declaration.
36643         * lib/winsock.c: Include <sys/ioctl.h>.
36644         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36645         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36646         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36647         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36648         * doc/posix-functions/ioctl.texi: Mention the new module.
36649
36650 2008-10-09  Bruno Haible  <bruno@clisp.org>
36651
36652         New module 'sys_ioctl'.
36653         * lib/sys_ioctl.in.h: New file.
36654         * m4/sys_ioctl_h.m4: New file.
36655         * modules/sys_ioctl: New file.
36656         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36657
36658 2008-10-09  Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36661         * lib/winsock.c: Include <stdarg.h>.
36662         (rpl_ioctl): Change to second argument 'int' and then varargs.
36663
36664 2008-10-09  Bruno Haible  <bruno@clisp.org>
36665
36666         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36667         when the sys_socket module is present and the system has <winsock2.h>.
36668
36669 2008-10-09  Bruno Haible  <bruno@clisp.org>
36670
36671         * doc/posix-functions/close.texi: Mention module 'close' instead of
36672         module 'sys_socket'.
36673
36674 2008-10-09  Bruno Haible  <bruno@clisp.org>
36675
36676         * doc/glibc-headers/sys_ioctl.texi: New file.
36677         * doc/gnulib.texi: Include it.
36678
36679 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36680             Bruno Haible  <bruno@clisp.org>
36681
36682         Combine the two replacements of 'close'.
36683         * lib/sys_socket.in.h (close): Define to a reminder to include
36684         <unistd.h>.
36685         (_gl_close_fd_maybe_socket): New declaration.
36686         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36687         * lib/winsock.c (close): Remove undefinition.
36688         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36689         needed for the gnulib module 'close'.
36690         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36691         define to an error symbol or to a warning, if suitable.
36692         * lib/close.c: Include <sys/socket.h>.
36693         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36694         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36695         UNISTD_H_HAVE_WINSOCK2_H.
36696         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36698         UNISTD_H_HAVE_WINSOCK2_H.
36699         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36700         (configure.ac): Set a module indicator.
36701         (Makefile.am): Substitute GNULIB_CLOSE.
36702         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36703         * modules/poll-tests (Depends-on): Add close.
36704         * modules/select-tests (Depends-on): Likewise.
36705
36706 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36707             Bruno Haible  <bruno@clisp.org>
36708
36709         New module 'close'.
36710         * modules/close: New file.
36711         * lib/unistd.in.h (close): Move declaration out of the
36712         FCHDIR_REPLACEMENT scope.
36713         (_gl_unregister_fd): New declaration.
36714         * lib/close.c: New file.
36715         * lib/fchdir.c (rpl_close): Remove function.
36716         * m4/close.m4: New file.
36717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36718         close.
36719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36720         REPLACE_CLOSE.
36721         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36722         REPLACE_CLOSE.
36723         * modules/fchdir (Depends-on): Add close.
36724
36725 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36726             Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/fcntl.in.h (open): Simplify conditionals.
36729         (_gl_register_fd): New declaration.
36730         * lib/fchdir.c (rpl_open): Remove function.
36731         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36732         also.
36733         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36735         open.
36736
36737 2008-10-09  Jim Meyering  <meyering@redhat.com>
36738
36739         GNUmakefile: use the more name-space-friendly "_version"
36740         * top/GNUmakefile (_dummy): Update.
36741         (_version): Rename from "version".
36742
36743 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36744             Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36747         rpl_close.
36748         (_gl_register_fd): New function, extracted from rpl_open.
36749         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36750         (rpl_open, rpl_opendir): Use _gl_register_fd.
36751
36752 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36753
36754         Fix organization of 'open' replacement.
36755         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36756         (gl_FUNC_OPEN): Use it.
36757         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36758
36759 2008-10-08  Bruno Haible  <bruno@clisp.org>
36760
36761         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36762
36763 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36764
36765         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36766         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36767         listen).
36768
36769 2008-10-08  Eric Blake  <ebb9@byu.net>
36770
36771         GNUmakefile: add 'make version' target
36772         * top/GNUmakefile (_curr-ver): Split version update rules...
36773         (version): ...into a target.
36774
36775 2008-10-07  Bruno Haible  <bruno@clisp.org>
36776
36777         Use a more portable replacement expression for -0.0L.
36778         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36779         instead of -0.0L. Fix m4 quotation.
36780
36781         * tests/test-signbit.c: Include <float.h>.
36782         (minus_zero): New variable.
36783         (test_signbitl): Use minus_zero instead of -zero.
36784         * modules/signbit-tests (Depends-on): Add float.
36785
36786         * tests/test-ceill.c: Include <float.h>.
36787         (zero): Remove variable.
36788         (minus_zero): New variable.
36789         (main): Use minus_zero instead of -zero.
36790         * modules/ceill-tests (Depends-on): Add float.
36791
36792         * tests/test-floorl.c: Include <float.h>.
36793         (zero): Remove variable.
36794         (minus_zero): New variable.
36795         (main): Use minus_zero instead of -zero.
36796         * modules/floorl-tests (Depends-on): Add float.
36797
36798         * tests/test-roundl.c: Include <float.h>.
36799         (zero): Remove variable.
36800         (minus_zero): New variable.
36801         (main): Use minus_zero instead of -zero.
36802         * modules/roundl-tests (Depends-on): Add float.
36803
36804         * tests/test-truncl.c: Include <float.h>.
36805         (zero): Remove variable.
36806         (minus_zero): New variable.
36807         (main): Use minus_zero instead of -zero.
36808         * modules/truncl-tests (Depends-on): Add float.
36809
36810         * tests/test-frexpl.c (zero): Remove variable.
36811         (minus_zero): New variable.
36812         (main): Use minus_zero instead of -zero.
36813         * modules/frexpl-tests (Depends-on): Add float.
36814
36815         * tests/test-isnan.c (zerol): Remove variable.
36816         (minus_zerol): New variable.
36817         (test_long_double): Use minus_zerol instead of -zerol.
36818         * modules/isnan-tests (Depends-on): Add float.
36819
36820         * tests/test-isnanl.h (zero): Remove variable.
36821         (minus_zero): New variable.
36822         (main): Use minus_zero instead of -zero.
36823         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36824         * modules/isnanl-tests (Depends-on): Add float.
36825
36826         * tests/test-ldexpl.c (zero): Remove variable.
36827         (minus_zero): New variable.
36828         (main): Use minus_zero instead of -zero.
36829         * modules/ldexpl-tests (Depends-on): Add float.
36830
36831         * tests/test-snprintf-posix.h (zerol): Remove variable.
36832         (minus_zerol): New variable.
36833         (test_function): Use minus_zerol instead of -zerol.
36834         * modules/snprintf-posix-tests (Depends-on): Add float.
36835         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36836
36837         * tests/test-sprintf-posix.h (zerol): Remove variable.
36838         (minus_zerol): New variable.
36839         (test_function): Use minus_zerol instead of -zerol.
36840         * modules/sprintf-posix-tests (Depends-on): Add float.
36841         * modules/vsprintf-posix-tests (Depends-on): Add float.
36842
36843         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36844         (minus_zerol): New variable.
36845         (test_function): Use minus_zerol instead of -zerol.
36846         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36847
36848         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36849         (minus_zerol): New variable.
36850         (test_function): Use minus_zerol instead of -zerol.
36851         * modules/vasprintf-posix-tests (Depends-on): Add float.
36852
36853 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36854
36855         * MODULES.html.sh (Support for building documentation): Mention
36856         pmccabe2html.  Sort entries.
36857
36858         Add pmccabe2html module, from gnupdf.
36859         * build-aux/pmccabe.css: New file.
36860         * build-aux/pmccabe2html: New file.
36861         * m4/pmccabe2html.m4: New file.
36862         * modules/pmccabe2html: New file.
36863
36864 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36865
36866         flock: new module
36867         * MODULES.html.sh: Add to list of modules.
36868         * lib/flock.c: flock implementation for Windows and Unix systems
36869         which have fcntl.
36870         * doc/glibc-functions/flock.texi: Update documentation.
36871         * lib/sys_file.in.h: <sys/file.h> header file.
36872         * m4/flock.m4: M4 macros.
36873         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36874         * modules/flock: flock module.
36875         * modules/flock-tests: flock tests module.
36876         * modules/sys_file: sys/file.h module.
36877         * tests/test-flock.c: test suite for flock.
36878
36879 2008-10-06  Jim Meyering  <meyering@redhat.com>
36880
36881         bootstrap: check for LT_INIT more portably still ;-)
36882         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36883         Spotted by Bruno Haible.
36884
36885 2008-10-06  Eric Blake  <ebb9@byu.net>
36886
36887         test-signbit: avoid tripping Irix cc bug on -0.0L
36888         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36889         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36890         entire testsuite consistent and avoids an Irix 6.2 bug.
36891
36892 2008-10-05  Bruno Haible  <bruno@clisp.org>
36893             Jim Meyering  <jim@meyering.net>
36894
36895         Add an option for ignoring EPIPE during close_stdout.
36896         * lib/closeout.h: Include <stdbool.h>.
36897         (close_stdout_set_ignore_EPIPE): New declaration.
36898         * lib/closeout.c: Include <stdbool.h>.
36899         (ignore_EPIPE): New variable.
36900         (close_stdout_set_ignore_EPIPE): New function.
36901         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36902         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36903         failure.
36904         * modules/closeout (Depends-on): Add stdbool.
36905
36906 2008-10-05  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/accept: New file.
36909         * modules/bind: New file.
36910         * modules/connect: New file.
36911         * modules/getpeername: New file.
36912         * modules/getsockname: New file.
36913         * modules/getsockopt: New file.
36914         * modules/listen: New file.
36915         * modules/recv: New file.
36916         * modules/recvfrom: New file.
36917         * modules/send: New file.
36918         * modules/sendto: New file.
36919         * modules/setsockopt: New file.
36920         * modules/socket: New file.
36921         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36922         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36923         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36924         the particular module is requested. Add a link warning when the
36925         particular module is not requested.
36926         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36927         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36928         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36929         the particular module is requested.
36930         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36931         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36932         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36933         * modules/sys_socket (Depends-on): Add link-warning.
36934         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36935         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36936         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36937         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36938         GL_LINK_WARNING.
36939         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36940         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36941         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36942         * doc/posix-functions/getpeername.texi: Mention the new module
36943         'getpeername'.
36944         * doc/posix-functions/getsockname.texi: Mention the new module
36945         'getsockname'.
36946         * doc/posix-functions/getsockopt.texi: Mention the new module
36947         'getsockopt'.
36948         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36949         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36950         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36951         * doc/posix-functions/send.texi: Mention the new module 'send'.
36952         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36953         * doc/posix-functions/setsockopt.texi: Mention the new module
36954         'setsockopt'.
36955         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36956         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36957         listen, connect, accept.
36958         * modules/select-tests (Depends-on): Likewise.
36959
36960 2008-10-05  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/winsock.c (strerror): Remove unused #undef.
36963         (rpl_close): Remove unused local variable.
36964
36965         * modules/sys_socket (Depends-on); Add errno.
36966
36967 2008-10-05  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36970         (select): Add a link warning when the 'select' module is not used.
36971         * modules/sys_select (Depends-on): Add link-warning.
36972         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36973         Suggested by Paolo Bonzini.
36974
36975 2008-10-05  Jim Meyering  <meyering@redhat.com>
36976
36977         bootstrap: check for LT_INIT more portably
36978         * build-aux/bootstrap: Avoid using grep -E, since it's not
36979         portable enough.  Suggestion from Bruno Haible.
36980
36981 2008-10-05  Bruno Haible  <bruno@clisp.org>
36982
36983         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36984         as being fixed by gnulib.
36985
36986 2008-10-05  Bruno Haible  <bruno@clisp.org>
36987
36988         * modules/select-tests: New file, mostly copied from
36989         modules/sys_select-tests.
36990         * tests/test-select.c: New file, mostly copied from
36991         tests/test-sys_select.c.
36992         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36993         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36994         (Makefile.am): Remove test_sys_select_LDADD.
36995
36996         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36997         to an undefined symbol, for an error message.
36998         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36999         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37000         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37001         winsock-select.c here.
37002         * modules/sys_select (Files): Remove lib/winsock-select.c.
37003         (Depends-on): Remove alloca.
37004         (Makefile.am): Substitute GNULIB_SELECT.
37005         * modules/select: New file.
37006         * doc/posix-functions/select.texi: Update.
37007
37008 2008-10-05  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37011         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37012         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37013         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37014         getdtablesize.
37015         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37016         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37017
37018 2008-10-05  Bruno Haible  <bruno@clisp.org>
37019
37020         * modules/getdtablesize-tests: New file.
37021         * tests/test-getdtablesize.c: New file.
37022
37023         New module 'getdtablesize'.
37024         * lib/unistd.in.h (getdtablesize): New declaration.
37025         * lib/getdtablesize.c: New file.
37026         * m4/getdtablesize.m4: New file.
37027         * modules/getdtablesize: New file.
37028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37029         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37030         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37031         HAVE_GETDTABLESIZE.
37032         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37033
37034 2008-10-05  Bruno Haible  <bruno@clisp.org>
37035
37036         * modules/sched (Makefile.am): Fix typo.
37037         Reported by Simon Josefsson.
37038
37039 2008-10-05  Jim Meyering  <meyering@redhat.com>
37040
37041         bootstrap: check for LT_INIT, too
37042         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37043         are deprecated.  Suggestion from Ralf Wildenhues.
37044
37045 2008-10-05  Bruno Haible  <bruno@clisp.org>
37046
37047         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37048         overriding them by ours.
37049         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37050
37051 2008-10-05  Jim Meyering  <meyering@redhat.com>
37052
37053         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37054         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37055         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37056
37057 2008-10-04  Bruno Haible  <bruno@clisp.org>
37058
37059         * modules/dup2 (License): Change to LGPLv2+.
37060         * modules/sleep (License): Likewise.
37061         * modules/perror (License): Likewise.
37062         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37063         Blake.
37064         * modules/signal (License): Likewise.
37065         * modules/sigprocmask (License): Likewise.
37066         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37067         Meyering.
37068
37069 2008-10-04  Bruno Haible  <bruno@clisp.org>
37070
37071         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37072         Reported by Rainer Tammer <tammer@tammer.net>.
37073
37074 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37075             Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37078         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37079         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37080
37081 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37082
37083         filevercmp: new module
37084         * lib/filevercmp.h: New function filevercmp comparing version strings.
37085         * lib/filevercmp.c: Implementation of filevercmp function.
37086         * modules/filevercmp: Module metadata.
37087         * tests/test-filevercmp.c: Unit test for new module.
37088         * modules/filevercmp-tests: Unit test metadata.
37089         * MODULES.html.sh: Add filevercmp module.
37090
37091 2008-10-03  Bruno Haible  <bruno@clisp.org>
37092
37093         * lib/c-ctype.h: Add comment.
37094         Reported by Jim Meyering.
37095
37096 2008-10-02  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37099
37100 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37101
37102         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37103         name of bootstrap.conf accordingly.
37104
37105 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37106
37107         * build-aux/bootstrap: Install git-merge-changelog configuration
37108         items into .gitconfig if needed.
37109
37110 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37111
37112         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37113         git repository, and initialize/update it accordingly.
37114
37115 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37116
37117         * modules/fsync-tests: New file.
37118         * tests/test-fsync.c: New file.
37119
37120         New module 'fsync'.
37121         * lib/fsync.c: New file.
37122         * m4/fsync.m4: New file.
37123         * modules/fsync: New file.
37124         * lib/unistd.in.h (fsync): New declaration.
37125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37126         GNULIB_FSYNC and HAVE_FSYNC.
37127         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37128         * MODULES.html.sh (posix_functions): Add fsync.
37129         * doc/posix-functions/fsync.texi: Mention the new module.
37130
37131 2008-10-02  Jim Meyering  <meyering@redhat.com>
37132
37133         fts.c: sync with similar code from coreutils' remove.c
37134         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37135         Guard also with "#if defined __linux__", since for now at least,
37136         this code is Linux-kernel-specific.
37137
37138 2008-10-02  Jim Meyering  <meyering@redhat.com>
37139
37140         fts: bug fixes
37141         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37142         Include <sys/vfs.h>, not <sys/statfs.h>.
37143
37144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37145         Include <sys/vfs.h>, not <sys/statfs.h>.
37146
37147 2008-10-01  Bruno Haible  <bruno@clisp.org>
37148
37149         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37151         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37152         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37153         * doc/posix-functions/posix_spawnp.texi: Likewise.
37154         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37155         whether posix_spawn actually works.
37156         * m4/pipe.m4 (gl_PIPE): Likewise.
37157         * modules/execute (Files): Add m4/posix_spawn.m4.
37158         * modules/pipe (Files): Add m4/posix_spawn.m4.
37159         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37160
37161 2008-10-01  Jim Meyering  <meyering@redhat.com>
37162
37163         remove trailing spaces
37164         * NEWS: Likewise.
37165         * lib/poll.c (poll): Likewise.
37166         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37167         * lib/winsock.c (rpl_close): Likewise.
37168         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37169         * modules/yield: Likewise.
37170         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37171         * tests/test-sys_select.c (connect_to_socket): Likewise.
37172
37173         fts.c: adjust a new interface to be more generally useful
37174         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37175         (fts_build): Adjust caller.
37176
37177 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37178
37179         * modules/cond-tests: New file.
37180         * tests/test-cond.c: New file.
37181
37182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37183             Bruno Haible  <bruno@clisp.org>
37184
37185         * modules/cond (Dependencies): Add errno, time.
37186         * lib/glthread/cond.h: Include <time.h>.
37187         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37188         across platforms.
37189
37190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37191             Bruno Haible  <bruno@clisp.org>
37192
37193         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37194
37195 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37196             Bruno Haible  <bruno@clisp.org>
37197
37198         * modules/tls-tests (Depends-on): Add thread, yield.
37199         (configure.ac): Remove all checks.
37200         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37201         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37202         gl_thread_self): Remove definitions. Include glthread/thread.h and
37203         glthread/yield.h instead.
37204         (test_tls): Pass an additional NULL argument to gl_thread_join.
37205
37206 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37207             Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/lock-tests (Depends-on): Add thread, yield.
37210         (configure.ac): Remove all checks.
37211         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37212         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37213         gl_thread_self): Remove definitions. Include glthread/thread.h and
37214         glthread/yield.h instead.
37215         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37216         additional NULL argument to gl_thread_join.
37217
37218 2008-09-30  Bruno Haible  <bruno@clisp.org>
37219
37220         Fix the Win32 implementation of the 'thread' module.
37221         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37222         pointer type.
37223         (gl_thread_self): Invoke gl_thread_self_func.
37224         (gl_thread_self_func): New declaration.
37225         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37226         (do_init_self_key, init_self_key): New functions.
37227         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37228         Remove some fields.
37229         (running_threads, running_lock): Remove variables.
37230         (get_current_thread_handle): New function.
37231         (gl_thread_self_func, wrapper_func, glthread_create_func,
37232         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37233         simplified.
37234
37235 2008-09-30  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37238         files.
37239
37240 2008-09-30  Jim Meyering  <meyering@redhat.com>
37241
37242         fts.m4: correct the test for statfs.f_type
37243         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37244         when checking for statfs.f_type.
37245
37246 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37247
37248         tests: avoid some compiler warnings
37249         * tests/test-memchr.c (main): Pass NULL indirectly.
37250         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37251
37252 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37253
37254         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37255         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37256         exactly specified dayshifts.
37257         (dayshift): New rule.
37258         (rel): Add dayshift.
37259         (relative_time_table) [tomorrow, yesterday, today, now]:
37260         Use tDAY_SHIFT in place of tDAY_UNIT.
37261         * tests/test-getdate.c: Add tests for now-disallowed countable
37262         dayshifts, e.g., "4 yesterday ago".
37263
37264 2008-09-29  Bruno Haible  <bruno@clisp.org>
37265
37266         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37267         * tests/test-posix_spawn1.in.sh: Renamed from
37268         tests/test-posix_spawn.in.sh.
37269         * tests/test-posix_spawn2.c: New file.
37270         * tests/test-posix_spawn2.in.sh: New file.
37271         * modules/posix_spawnp-tests (Files): Update.
37272         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37273
37274 2008-09-29  Bruno Haible  <bruno@clisp.org>
37275
37276         Propagate effects of putenv/setenv/unsetenv to child processes.
37277         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37278         * lib/pipe.c (create_pipe): Likewise.
37279
37280 2008-09-29  Bruno Haible  <bruno@clisp.org>
37281
37282         Enable use of shell scripts as executables in mingw.
37283         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37284         run the program as a shell script.
37285         * lib/pipe.c (create_pipe): Likewise.
37286         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37287         resulting array.
37288
37289 2008-09-29  Eric Blake  <ebb9@byu.net>
37290
37291         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37292
37293 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37294
37295         * doc/posix-functions/accept.texi: Update mingw problems.
37296         * doc/posix-functions/bind.texi: Update mingw problems.
37297         * doc/posix-functions/close.texi: Update mingw problems.
37298         * doc/posix-functions/connect.texi: Update mingw problems.
37299         * doc/posix-functions/getpeername.texi: Update mingw problems.
37300         * doc/posix-functions/getsockname.texi: Update mingw problems.
37301         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37302         * doc/posix-functions/ioctl.texi: Update mingw problems.
37303         * doc/posix-functions/listen.texi: Update mingw problems.
37304         * doc/posix-functions/recv.texi: Update mingw problems.
37305         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37306         * doc/posix-functions/select.texi: Update mingw problems.
37307         * doc/posix-functions/send.texi: Update mingw problems.
37308         * doc/posix-functions/sendto.texi: Update mingw problems.
37309         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37310         * doc/posix-functions/socket.texi: Update mingw problems.
37311
37312 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37313             Bruno Haible  <bruno@clisp.org>
37314
37315         * lib/sys_select.in.h: Include sys/time.h.
37316         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37317         * modules/sys_select: Depend on sys_time.
37318         * tests/test-sys_select.c: Test that sys/select.h defines struct
37319         timeval fully.
37320
37321 2008-09-29  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37324         * lib/sys_select.in.h: Likewise.
37325
37326 2008-09-29  Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37329
37330 2008-09-29  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37333         Set LIBSOCKET instead of augmenting LIBS.
37334         * modules/sockets (Link): New section.
37335         * modules/sockets-tests (test_sockets_LDADD): New variable.
37336         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37337         * modules/poll-tests (test_poll_LDADD): New variable.
37338         * NEWS: Document the change.
37339
37340 2008-09-29  Bruno Haible  <bruno@clisp.org>
37341
37342         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37343         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37344         ARPA_INET_H directly.
37345         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37346
37347 2008-09-28  Bruno Haible  <bruno@clisp.org>
37348
37349         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37350         from gl_HEADER_SYS_SOCKET.
37351         (gl_HEADER_SYS_SOCKET): Invoke it.
37352         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37353
37354 2008-09-28  Bruno Haible  <bruno@clisp.org>
37355
37356         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37357         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37358         Needed on OSF/1 4.0.
37359
37360 2008-09-28  Bruno Haible  <bruno@clisp.org>
37361
37362         Override open more carefully.
37363         * lib/open.c (orig_open): New function.
37364         (rpl_open): Use orig_open instead of open.
37365         * lib/fcntl.in.h: Add special invocation convention.
37366         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37367         (gl_FUNC_OPEN): Invoke it.
37368
37369         Override freopen more carefully.
37370         * lib/freopen.c (orig_freopen): New function.
37371         (rpl_freopen): Use orig_freopen instead of freopen.
37372         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37373         (gl_FUNC_FREOPEN): Invoke it.
37374
37375         Override fopen more carefully.
37376         * lib/fopen.c (orig_fopen): New function.
37377         (rpl_fopen): Use orig_fopen instead of fopen.
37378         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37379         (gl_FUNC_FOPEN): Invoke it.
37380         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37381
37382 2008-09-28  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37385         SIGPIPE.
37386
37387 2008-09-28  Bruno Haible  <bruno@clisp.org>
37388
37389         * tests/test-sigaction.c (handler, main): Disable the check whether
37390         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37391         glibc systems with LinuxThreads.
37392
37393 2008-09-28  Bruno Haible  <bruno@clisp.org>
37394
37395         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37396
37397         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37398         with AIX xlc.
37399         * lib/fcntl.in.h (open): Likewise.
37400         Reported by Rainer Tammer <tammer@tammer.net>.
37401
37402 2008-09-28  Bruno Haible  <bruno@clisp.org>
37403
37404         * modules/posix_spawnp-tests: New file.
37405         * tests/test-posix_spawn.c: New file.
37406         * tests/test-posix_spawn.in.sh: New file.
37407
37408         New module 'posix_spawnp'.
37409         * modules/posix_spawnp: New file.
37410         * lib/spawnp.c: New file, from GNU libc with modifications.
37411         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37412
37413         New module 'posix_spawn'.
37414         * modules/posix_spawn: New file.
37415         * lib/spawn.c: New file, from GNU libc with modifications.
37416         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37417
37418         New module 'posix_spawnattr_destroy'.
37419         * modules/posix_spawnattr_destroy: New file.
37420         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37421         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37422         module.
37423
37424         New module 'posix_spawnattr_setsigmask'.
37425         * modules/posix_spawnattr_setsigmask: New file.
37426         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37427         modifications.
37428         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37429         new module.
37430
37431         New module 'posix_spawnattr_getsigmask'.
37432         * modules/posix_spawnattr_getsigmask: New file.
37433         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37434         modifications.
37435         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37436         new module.
37437
37438         New module 'posix_spawnattr_setsigdefault'.
37439         * modules/posix_spawnattr_setsigdefault: New file.
37440         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37441         modifications.
37442         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37443         new module.
37444
37445         New module 'posix_spawnattr_getsigdefault'.
37446         * modules/posix_spawnattr_getsigdefault: New file.
37447         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37448         modifications.
37449         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37450         new module.
37451
37452         New module 'posix_spawnattr_setschedpolicy'.
37453         * modules/posix_spawnattr_setschedpolicy: New file.
37454         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37455         modifications.
37456         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37457         new module.
37458
37459         New module 'posix_spawnattr_getschedpolicy'.
37460         * modules/posix_spawnattr_getschedpolicy: New file.
37461         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37462         modifications.
37463         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37464         new module.
37465
37466         New module 'posix_spawnattr_setschedparam'.
37467         * modules/posix_spawnattr_setschedparam: New file.
37468         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37469         modifications.
37470         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37471         new module.
37472
37473         New module 'posix_spawnattr_getschedparam'.
37474         * modules/posix_spawnattr_getschedparam: New file.
37475         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37476         modifications.
37477         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37478         new module.
37479
37480         New module 'posix_spawnattr_setpgroup'.
37481         * modules/posix_spawnattr_setpgroup: New file.
37482         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37483         modifications.
37484         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37485         module.
37486
37487         New module 'posix_spawnattr_getpgroup'.
37488         * modules/posix_spawnattr_getpgroup: New file.
37489         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37490         modifications.
37491         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37492         module.
37493
37494         New module 'posix_spawnattr_setflags'.
37495         * modules/posix_spawnattr_setflags: New file.
37496         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37497         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37498         module.
37499
37500         New module 'posix_spawnattr_getflags'.
37501         * modules/posix_spawnattr_getflags: New file.
37502         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37503         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37504         module.
37505
37506         New module 'posix_spawnattr_init'.
37507         * modules/posix_spawnattr_init: New file.
37508         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37509         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37510         module.
37511
37512         New module 'posix_spawn_file_actions_destroy'.
37513         * modules/posix_spawn_file_actions_destroy: New file.
37514         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37515         modifications.
37516         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37517         the new module.
37518
37519         New module 'posix_spawn_file_actions_addopen'.
37520         * modules/posix_spawn_file_actions_addopen: New file.
37521         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37522         modifications.
37523         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37524         the new module.
37525
37526         New module 'posix_spawn_file_actions_adddup2'.
37527         * modules/posix_spawn_file_actions_adddup2: New file.
37528         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37529         modifications.
37530         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37531         the new module.
37532
37533         New module 'posix_spawn_file_actions_addclose'.
37534         * modules/posix_spawn_file_actions_addclose: New file.
37535         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37536         modifications.
37537         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37538         the new module.
37539
37540         New module 'posix_spawn_file_actions_init'.
37541         * modules/posix_spawn_file_actions_init: New file.
37542         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37543         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37544         new module.
37545
37546         New module 'posix_spawn-internal'.
37547         * modules/posix_spawn-internal: New file.
37548         * lib/spawn_int.h: New file, from GNU libc with modifications.
37549         * lib/spawni.c: New file, from GNU libc with modifications.
37550         * m4/posix_spawn.m4: New file.
37551
37552         New module 'spawn'.
37553         * modules/spawn: New file.
37554         * lib/spawn.in.h: New file, from GNU libc with modifications.
37555         * m4/spawn_h.m4: New file.
37556         * doc/posix-headers/spawn.texi: Mention the new module.
37557
37558 2008-09-28  Bruno Haible  <bruno@clisp.org>
37559
37560         * modules/sched-tests: New file.
37561         * tests/test-sched.c: New file.
37562
37563         New module 'sched'.
37564         * modules/sched: New file.
37565         * lib/sched.in.h: New file.
37566         * m4/sched_h.m4: New file.
37567         * doc/posix-headers/sched.texi: Mention the new module.
37568
37569 2008-09-27  Eric Blake  <ebb9@byu.net>
37570
37571         Fix previous patch, and tweak references to $0.
37572         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37573         (func_version, func_gnulib_dir): Don't call this program
37574         gnulib-tool.
37575         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37576         with using $0 in function.
37577         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37578         (func_fatal_error): Reuse the name the user invoked us with.
37579
37580 2008-09-27  Bruno Haible  <bruno@clisp.org>
37581
37582         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37583         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37584         (gl_ICONV_H): Not here.
37585         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37586         instead of assigning ICONV_H directly.
37587
37588         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37590         WCHAR_H directly.
37591
37592 2008-09-27  Bruno Haible  <bruno@clisp.org>
37593
37594         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37595         * modules/arpa_inet (Depends-on): Add link-warning.
37596         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37597         * modules/unistd (Makefile.am): Likewise.
37598
37599 2008-09-26  Bruno Haible  <bruno@clisp.org>
37600
37601         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37602         variables.
37603         (func_version): Essentially copied from gnulib-tool.
37604         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37605         func_readlink): Copied from gnulib-tool.
37606
37607 2008-09-26  Bruno Haible  <bruno@clisp.org>
37608
37609         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37610         invoking git-version-gen.
37611
37612 2008-09-26  Bruno Haible  <bruno@clisp.org>
37613
37614         * posix-modules: Update to directory names changed on 2008-01-19.
37615         Remove commas in output before splitting into words. No more need to
37616         avoid 'ftruncate' since 2007-02-19.
37617
37618 2008-09-26  Bruno Haible  <bruno@clisp.org>
37619
37620         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37621
37622 2008-09-26  Bruno Haible  <bruno@clisp.org>
37623
37624         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37625         * modules/fwriteerror (Depends-on): Add errno.
37626
37627 2008-09-26  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37630         * tests/test-vc-list-files-cvs.sh: Likewise.
37631
37632 2008-09-26  Bruno Haible  <bruno@clisp.org>
37633
37634         * doc/posix-headers/sys_resource.texi: Reorder items.
37635
37636 2008-09-26  Jim Meyering  <meyering@redhat.com>
37637
37638         fts: tweak inode comparison function
37639         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37640         inode numbers, as documented.
37641
37642         fts: sort dirent entries on inode number before traversing
37643         This avoids a quadratic, seek-related performance penalty when
37644         operating on a directory containing many entries (measurable at 10k;
37645         3.5 hours at 2 million entries with a cold cache) on certain types
37646         of file systems, including ext3 and ext4, but not tmpfs.
37647         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37648         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37649         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37650         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37651         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37652         (fts_build): Set the stat.st_ino member from D_INO.
37653         If it is likely to be useful, sort dirent entries on inode number.
37654
37655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37656         and the struct statfs.f_type member.
37657         * modules/fts (Depends-on): Add d-ino.
37658
37659 2008-09-26  Bruno Haible  <bruno@clisp.org>
37660
37661         * modules/sigpipe-die (Depends-on): Add sigpipe.
37662
37663         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37664         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37665         and GNULIB_STDIO_H_SIGPIPE are set.
37666         * lib/stdio-write.c: New file.
37667         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37668         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37669         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37670         REPLACE_STDIO_WRITE_FUNCS.
37671         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37672         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37673         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37674         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37675         * modules/stdio (Files): Add lib/stdio-write.c.
37676         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37677         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37678         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37679         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37680         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37681         REPLACE_FPRINTF_POSIX.
37682         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37683         REPLACE_PRINTF_POSIX.
37684         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37685         REPLACE_VFPRINTF_POSIX.
37686         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37687         REPLACE_VPRINTF_POSIX.
37688         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37689         SIGPIPE issue.
37690         * doc/posix-functions/fputc.texi: Likewise.
37691         * doc/posix-functions/fputs.texi: Likewise.
37692         * doc/posix-functions/fwrite.texi: Likewise.
37693         * doc/posix-functions/printf.texi: Likewise.
37694         * doc/posix-functions/putc.texi: Likewise.
37695         * doc/posix-functions/putchar.texi: Likewise.
37696         * doc/posix-functions/puts.texi: Likewise.
37697         * doc/posix-functions/vfprintf.texi: Likewise.
37698         * doc/posix-functions/vprintf.texi: Likewise.
37699
37700         * modules/safe-write (Depends-on): Add write.
37701
37702         * modules/sigpipe-tests: New file.
37703         * tests/test-sigpipe.c: New file.
37704         * tests/test-sigpipe.sh: New file.
37705
37706         * modules/write: New file.
37707         * lib/unistd.in.h: Include <sys/types.h>.
37708         (write): New declaration.
37709         * lib/write.c: New file.
37710         * m4/write.m4: New file.
37711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37712         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37713         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37714         GNULIB_WRITE, REPLACE_WRITE.
37715         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37716         and the SIGPIPE issue.
37717
37718         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37719         (raise): New declaration.
37720         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37721         (ext_signal): New function.
37722         (rpl_raise): New function.
37723         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37724         GNULIB_SIGNAL_H_SIGPIPE.
37725         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37726         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37727
37728         * modules/sigpipe: New file.
37729         * m4/sigpipe.m4: New file.
37730
37731 2008-09-25  Derek Price  <derek@ximbiot.com>
37732             Bruno Haible  <bruno@clisp.org>
37733
37734         * gnulib-tool (func_import): Report all license incompatibilities, not
37735         just the first one.
37736
37737 2008-09-25  Bruno Haible  <bruno@clisp.org>
37738
37739         * gnulib-tool (func_import): When computing the edits, consider not
37740         only the Makefile.ams that exist but also those that will be generated.
37741
37742 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37743
37744         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37745         fixes gnulib-tool --test warning about duplicate dependency.
37746
37747 2008-09-25  Bruno Haible  <bruno@clisp.org>
37748
37749         * gnulib-tool: Don't ask the user to perform edits in the generated
37750         Makefile.ams.
37751         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37752         apply to the Makefile.am being generated.
37753         (func_emit_tests_Makefile_am): Execute edits that apply to the
37754         Makefile.am being generated.
37755         (func_import): Setup list of Makefile.am edits before emitting the
37756         Makefile.ams, not at the end.
37757         (func_create_testdir): Update.
37758         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37759
37760 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37761
37762         * gnulib-tool (func_import): Store the --tests-base option in the
37763         comment in gnulib-cache.m4.
37764
37765 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37766
37767         * NEWS: Document increased portability that sys_select now provides.
37768
37769         * lib/sys_select.in.h: Install select wrapper.
37770         * lib/sys_socket.in.h: Use more descriptive name when there is no
37771         select wrapper.
37772         * lib/winsock-select.c: New.
37773         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37774         Require gl_HEADER_SYS_SOCKET.
37775         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37776         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37777         * tests/test-sys_select.c: Add functional tests.
37778
37779 2008-09-24  Eric Blake  <ebb9@byu.net>
37780
37781         open, fopen: close fd leak in last patch
37782         * lib/open.c (rpl_open): Close fd before returning error.
37783         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37784         * doc/posix-functions/open.texi (open): Document that Irix also
37785         has the bug.
37786         * doc/posix-functions/fopen.texi (fopen): Likewise.
37787         Reported by Paolo Bonzini.
37788
37789 2008-09-24  Bruno Haible  <bruno@clisp.org>
37790
37791         Ensure that a filename ending in a slash cannot be used to access a
37792         non-directory.
37793         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37794         to check whether it's really a directory.
37795         * lib/fopen.c: Include fcntl.h, unistd.h.
37796         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37797         and fdopen().
37798         * modules/fopen (Depends-on): Add unistd.
37799         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37800         * tests/test-fopen.c (main): Likewise.
37801         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37802         * doc/posix-functions/fopen.texi: Likewise.
37803         Reported by Eric Blake.
37804
37805 2008-09-23  Eric Blake  <ebb9@byu.net>
37806
37807         c-stack: avoid compiler optimizations when provoking overflow
37808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37809         recursion harder to optimize, to ensure a stack overflow occurs.
37810         * tests/test-c-stack.c (recurse): Likewise.
37811         Borrowed from libsigsegv.
37812
37813         c-stack: work around Irix sigaltstack bug
37814         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37815         whether sigaltstack uses wrong end of stack_t (copied in part from
37816         libsigsegv).
37817         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37818         Irix bug, without requiring an over-allocation.
37819         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37820         bug.
37821
37822         fopen: document mingw bug on directories
37823         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37824         not allowing a stream visiting a directory, even though reading
37825         from such a stream is not portable.
37826
37827 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37828
37829         * lib/poll.c: Rewrite.
37830         * modules/poll: Depend on alloca.
37831
37832 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37833
37834         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37835         instead define prototypes for a full set of wrappers.  Ensure
37836         that Cygwin does not use the compatibility code, which is only
37837         for MinGW.
37838         * lib/winsock.c: New.
37839         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37840         * modules/sys_socket: Add lib/winsock.c.
37841
37842         * modules/poll-tests: Add errno and perror.
37843         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37844
37845 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37846
37847         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37848
37849 2008-09-23  Bruno Haible  <bruno@clisp.org>
37850
37851         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37852         * doc/glibc-functions/*: Likewise.
37853
37854 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37855
37856         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37857         success.
37858
37859 2008-09-22  Eric Blake  <ebb9@byu.net>
37860             Bruno Haible  <bruno@clisp.org>
37861
37862         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37863         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37864         supply %A but mishandle pseudo-NaN.
37865         Reported by Simon Josefsson.
37866
37867 2008-09-21  Bruno Haible  <bruno@clisp.org>
37868
37869         * tests/test-lock.c (main): Tweak skip message.
37870         * tests/test-tls.c (main): Likewise.
37871
37872 2008-09-21  Bruno Haible  <bruno@clisp.org>
37873
37874         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37875         whether 'struct sigaction' has sa_sigaction here...
37876         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37877         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37878
37879 2008-09-21  Bruno Haible  <bruno@clisp.org>
37880
37881         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37882         section.
37883         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37884         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37885         the new section.
37886         (Support for obsolete systems lacking POSIX:2001): New section.
37887         (String handling <string.h>): Move strdup to the new section.
37888         Suggested by Simon Josefsson and Paolo Bonzini.
37889
37890 2008-09-21  Bruno Haible  <bruno@clisp.org>
37891
37892         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37893         exponents in %e and %g results on 'long double'. Needed for mingw's
37894         improved *printf functions.
37895         * tests/test-vasprintf-posix.c (test_function): Likewise.
37896         * tests/test-snprintf-posix.h (test_function): Likewise.
37897         * tests/test-sprintf-posix.h (test_function): Likewise.
37898         Reported by Eric Blake.
37899
37900 2008-09-21  Bruno Haible  <bruno@clisp.org>
37901
37902         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37903         * tests/test-sprintf-posix.h (test_function): Likewise.
37904
37905 2008-09-21  Bruno Haible  <bruno@clisp.org>
37906
37907         * modules/getpass (Depends-on): Add strdup-posix.
37908
37909         New module 'strdup-posix'.
37910         * modules/strdup-posix: New file.
37911         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37912         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37914         REPLACE_STRDUP.
37915         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37916         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37918         strdup-posix.
37919
37920         * modules/strdup (Depends-on): Remove malloc-posix.
37921
37922 2008-09-20  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37925         Wildenhues.
37926
37927 2008-09-20  Bruno Haible  <bruno@clisp.org>
37928
37929         Ensure that wint_t gets defined on IRIX 5.3.
37930         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37931         * lib/wctype.in.h (wint_t): Likewise.
37932         (__wctype_wint_t): Remove type.
37933         (isw*): Use wint_t instead of __wctype_wint_t.
37934         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37935         * modules/wchar (Files): Add m4/wint_t.m4.
37936         (Makefile.am): Substitute HAVE_WINT_T.
37937         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37938         * tests/test-wctype.c: Check that wint_t is defined.
37939         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37940         * doc/posix-headers/wctype.texi: Likewise.
37941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37942
37943 2008-09-18  Bruno Haible  <bruno@clisp.org>
37944
37945         * gnulib-tool (func_exit): Update comment.
37946
37947 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37948
37949         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37950         assumes strdup exists and does not depend on strdup to return
37951         ENOMEM on out of memory conditions.
37952
37953 2008-09-18  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37956         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37957         digits for the exponent.
37958
37959 2008-09-18  Jim Meyering  <meyering@redhat.com>
37960             Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/vasnprintf.c (decimal_point_char): Define also if
37963         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37964
37965 2008-09-16  Bruno Haible  <bruno@clisp.org>
37966         and Eric Blake  <ebb9@byu.net>
37967
37968         vasnprintf: support Irix 5.3
37969         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37970         that mishandle long double infinity.
37971         Reported by Tom G. Christensen.
37972
37973 2008-09-16  Bruno Haible  <bruno@clisp.org>
37974
37975         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37976         Solaris 9.
37977         * doc/glibc-functions/alphasort.texi: Likewise.
37978         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37979
37980 2008-09-16  Jim Meyering  <meyering@redhat.com>
37981
37982         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37983         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37984         a umask modification leak out of a subshell.  Otherwise, the
37985         opensolaris /bin/sh would be accepted and thus cause unwarranted
37986         failures in the coreutils test suite.
37987
37988 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37989
37990         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37991         to succeed.
37992
37993 2008-09-16  Jim Meyering  <meyering@redhat.com>
37994
37995         avoid spurious test failure when library is built without ACL support
37996         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37997         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37998         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37999         * tests/test-copy-acl.sh: Likewise.
38000
38001 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38002
38003         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38004         based on character occurrence counts.
38005
38006 2008-09-15  Eric Blake  <ebb9@byu.net>
38007
38008         tests: avoid some compiler warnings
38009         * tests/test-memchr.c (main): Pass NULL indirectly.
38010         * tests/test-closein.c (main): Avoid unused variable.
38011
38012 2008-09-15  Bruno Haible  <bruno@clisp.org>
38013
38014         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38015         are missing on OpenBSD 4.0 individually.
38016         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38017
38018 2008-09-15  Bruno Haible  <bruno@clisp.org>
38019
38020         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38021         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38022         * doc/posix-functions/perror.texi: Likewise.
38023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38024         is missing.
38025         Reported by Eric Blake.
38026
38027         * lib/errno.in.h: Use replacement values >= 2000.
38028         Reported by Eric Blake.
38029
38030 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38031
38032         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38033         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38034         limit.
38035         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38036         compareseq was aborted.
38037
38038 2008-09-14  Bruno Haible  <bruno@clisp.org>
38039
38040         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38041         yvec_edit_count.
38042         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38043         (fstrcmp_bounded): Simplify result computation accordingly.
38044
38045 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38046
38047         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38048         (fstrcmp): Define in terms of fstrcmp_bounded.
38049         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38050         lower_bound argument.
38051         Return quickly if the result is certainly < lower_bound.
38052         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38053
38054 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38055
38056         * lib/diffseq.h (EARLY_ABORT): New macro.
38057         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38058         evaluates to true.
38059
38060 2008-09-14  Bruno Haible  <bruno@clisp.org>
38061
38062         * modules/perror-tests: New file.
38063         * tests/test-perror.sh: New file.
38064         * tests/test-perror.c: New file.
38065
38066         New module 'perror'.
38067         * lib/stdio.in.h (perror): New declaration.
38068         * lib/perror.c: New file.
38069         * m4/perror.m4: New file.
38070         * modules/perror: New file.
38071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38072         * doc/posix-functions/perror.texi: Mention the perror module.
38073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38074         REPLACE_PERROR.
38075         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38076         REPLACE_PERROR.
38077
38078 2008-09-14  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/stdio (Makefile.am): Reorder to match the order in
38081         lib/stdio.in.h.
38082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38083
38084 2008-09-13  Bruno Haible  <bruno@clisp.org>
38085
38086         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38087
38088 2008-09-13  Bruno Haible  <bruno@clisp.org>
38089
38090         Extend strerror to cover the added errno values.
38091         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38092         (rpl_strerror): Provide error messages for the added errno values and
38093         for the WSA* values.
38094         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38095         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38096         strerror.
38097         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38098         * modules/strerror (Depends-on): Add errno.
38099         * doc/posix-functions/strerror.texi: Document the change.
38100         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38101         and EOVERFLOW.
38102
38103 2008-09-13  Bruno Haible  <bruno@clisp.org>
38104
38105         * modules/EOVERFLOW: Remove file.
38106         * m4/eoverflow.m4: Remove file.
38107         * modules/EOVERFLOW-tests: Remove file.
38108         * tests/test-EOVERFLOW.c: Remove file.
38109         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38110         * modules/ftell (Depends-on): Likewise.
38111         * modules/getdelim (Depends-on): Likewise.
38112         * modules/getugroups (Depends-on): Likewise.
38113         * modules/poll (Depends-on): Likewise.
38114         * modules/snprintf (Depends-on): Likewise.
38115         * modules/sprintf-posix (Depends-on): Likewise.
38116         * modules/vasnprintf (Depends-on): Likewise.
38117         * modules/vasprintf (Depends-on): Likewise.
38118         * modules/vfprintf-posix (Depends-on): Likewise.
38119         * modules/vsnprintf (Depends-on): Likewise.
38120         * modules/vsprintf-posix (Depends-on): Likewise.
38121         * modules/xvasprintf (Depends-on): Likewise.
38122         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38123         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38124         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38125         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38126         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38127         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38128         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38129         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38130         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38131         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38132         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38133         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38134         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38135         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38136         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38137         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38138         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38139         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38140         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38141         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38142         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38143         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38144         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38145         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38146         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38147         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38148         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38149         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38150         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38151         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38152         * MODULES.html.sh: Remove EOVERFLOW.
38153         * NEWS: Mention the change.
38154
38155 2008-09-13  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/errno-tests: New file.
38158         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38159
38160         * lib/errno.in.h: New file.
38161         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38162         * modules/errno: New file.
38163         * doc/posix-headers/errno.texi: Update documentation.
38164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38165
38166 2008-09-13  Bruno Haible  <bruno@clisp.org>
38167
38168         * tests/test-poll.c: Use #if for native Windows, rather than testing
38169         __MSVCRT__.
38170
38171 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38172             Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/glob.c: Don't include <pwd.h> on native Windows.
38175         (WINDOWS32): New macro.
38176         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38177
38178 2008-09-13  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38181         (ETIMEDOUT): Remove macro.
38182         (glthread_cond_timedwait_multithreaded): New declaration.
38183         (glthread_cond_timedwait): Use it.
38184         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38185         (glthread_cond_timedwait_multithreaded): New function.
38186
38187 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38188
38189         * modules/poll-tests: Do not check for io.h.
38190         * tests/test-poll.c: Check for __MSVCRT__ instead.
38191
38192 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38193
38194         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38195         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38196         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38197
38198 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38199
38200         * modules/poll-tests: New.
38201         * tests/test-poll.c: New.
38202
38203 2008-09-12  Eric Blake  <ebb9@byu.net>
38204
38205         frexp: test for NetBSD failure on -0.0
38206         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38207         not all, bugs from NetBSD 3.0 have been fixed.
38208         * doc/posix-functions/frexp.texi (frexp): Document bug.
38209         Reported by Thomas Klausner.
38210
38211         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38212         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38213         literal -0.0.
38214         Reported by Jonathan C. Patschke <jp@centtech.com>.
38215
38216 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38217
38218         * lib/glthread/cond.h: Use dummy implementation also if
38219         USE_WIN32_THREADS.
38220
38221 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38222
38223         * modules/fnmatch-posix (License): Change to LGPLv2+.
38224         * modules/fnmatch-gnu (License): Likewise.
38225
38226 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38227
38228         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38229
38230 2008-09-11  Jim Meyering  <meyering@redhat.com>
38231
38232         * users.txt: Add gtk-vnc.
38233
38234 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38235
38236         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38237         rotate amounts.
38238
38239         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38240         required for 16-bit and 8-bit rotates.
38241         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38242         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38243         UINT8_MAX instead of hard-coded constants.
38244         Suggested by Paul Eggert.
38245
38246 2008-09-07  Bruno Haible  <bruno@clisp.org>
38247
38248         * tests/test-striconveh.c (main): Check behaviour when converting from
38249         UTF-7.
38250
38251         Make striconveh work better with stateful encodings.
38252         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38253         that iconv does not increment the inptr when returning -1/EINVAL.
38254
38255 2008-09-07  Bruno Haible  <bruno@clisp.org>
38256
38257         * build-aux/config.rpath: Update according to libtool-2.2.6.
38258         * build-aux/config.libpath: Likewise.
38259
38260 2008-09-06  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38263         * lib/freadptr.c (freadptr): Likewise.
38264         * lib/freadseek.c (freadptrinc): Likewise.
38265         Reported by Simon Josefsson.
38266
38267 2008-09-06  Bruno Haible  <bruno@clisp.org>
38268
38269         * modules/freadptr (License): Change to LGPLv2+.
38270         * modules/freadseek (License): Likewise.
38271         Suggested by Eric Blake.
38272
38273         * modules/memchr2 (License): Change to LGPLv2+.
38274         Approved by Eric Blake.
38275
38276 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38277             Bruno Haible  <bruno@clisp.org>
38278
38279         Make gnulib-tool work with native 'sed' on AIX.
38280         * gnulib-tool (sed_noop): New variable.
38281         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38282         func_add_or_update, func_create_testdir): Use it to initialize sed
38283         script variables.
38284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38285
38286 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38287             Bruno Haible  <bruno@clisp.org>
38288
38289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38290         also works after #include directives.
38291
38292 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38293
38294         getdate.y: reject an out-of-range timezone value
38295         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38296         the range [-24...+24].  When specified with only one or two digits,
38297         * tests/test-getdate.c: Tests for the fix.
38298         * doc/getdate.texi: Document this change.
38299
38300 2008-09-03  Bruno Haible  <bruno@clisp.org>
38301
38302         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38303
38304 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38305
38306         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38307         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38308         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38309         Blake <ebb9@byu.net>.
38310
38311         * tests/test-bitrotate.c: Add more test vectors.
38312
38313 2008-09-02  Eric Blake  <ebb9@byu.net>
38314
38315         vasnprintf-posix: handle large precision via %.*d
38316         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38317         when handling it ourselves.
38318         * tests/test-vasnprintf-posix.c (test_function): Add test.
38319         * tests/test-snprintf-posix.h (test_function): Likewise.
38320         * tests/test-sprintf-posix.h (test_function): Likewise.
38321         * tests/test-vasprintf-posix.c (test_function): Likewise.
38322         Reported by Alain Guibert.
38323
38324 2008-09-01  Eric Blake  <ebb9@byu.net>
38325
38326         c-stack: make configure-time check more robust
38327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38328         successful sigaction call.
38329         Reported by Tom G. Christensen.
38330
38331 2008-09-01  Bruno Haible  <bruno@clisp.org>
38332
38333         New module 'findprog-lgpl'.
38334         * modules/findprog-lgpl: New file.
38335         * lib/findprog-lgpl.c: New file.
38336         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38337         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38338         to decide whether to use strdup or xstrdup, concatenated_filename or
38339         xconcatenated_filename.
38340
38341 2008-09-01  Bruno Haible  <bruno@clisp.org>
38342
38343         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38344         'xconcat-filename' (GPL).
38345         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38346         (License): Change to LGPLv2+.
38347         * modules/xconcat-filename: New file.
38348         * lib/concat-filename.h (concatenated_filename): Change specification.
38349         (xconcatenated_filename): New declaration.
38350         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38351         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38352         memory situations.
38353         * lib/xconcat-filename.c: New file.
38354         * NEWS: Mention the change.
38355         * lib/findprog.c: Include concat-filename.h, not filename.h.
38356         (find_in_path): Use xconcatenated_filename instead of
38357         concatenated_filename.
38358         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38359         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38360         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38361         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38362         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38363         instead of concatenated_filename.
38364         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38365         (execute_java_class): Use xconcatenated_filename instead of
38366         concatenated_filename.
38367         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38368         * modules/javacomp (Depends-on): Likewise.
38369         * modules/javaexec (Depends-on): Likewise.
38370
38371 2008-09-01  Bruno Haible  <bruno@clisp.org>
38372
38373         Split module 'filename' into 'filename' and 'concat-filename'.
38374         * modules/filename: Keep only lib/filename.h.
38375         (License): Change to LGPLv2+.
38376         * modules/concat-filename: New file, extracted from modules/filename.
38377         * lib/filename.h (concatenated_filename): Remove declaration.
38378         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38379         * lib/concat-filename.c: Include concat-filename.h.
38380         * NEWS: Mention the change.
38381
38382 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38383
38384         * lib/bitrotate.h (rotl8, rotr8): Add.
38385
38386         * modules/bitrotate (configure.ac): Need
38387         AC_REQUIRE([AC_C_INLINE]).
38388         (Description): Mention stdint.h.  Reported by Bruno Haible
38389         <bruno@clisp.org>.
38390
38391         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38392         Paolo Bonzini <bonzini@gnu.org>.
38393
38394 2008-08-31  Bruno Haible  <bruno@clisp.org>
38395
38396         Assume Solaris specific bi-arch conventions on Solaris systems.
38397         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38398         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38400         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38401         like acl_libdirstem.
38402         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38403         acl_libdirstem.
38404         * NEWS: Mention the change.
38405         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38406
38407 2008-08-31  Jim Meyering  <meyering@redhat.com>
38408
38409         * lib/strftime.h: Add comments describing the two added arguments.
38410
38411         remove duplicate #include directives
38412         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38413         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38414
38415 2008-08-31  Bruno Haible  <bruno@clisp.org>
38416
38417         New module 'sigpipe-die'.
38418         * modules/sigpipe-die: New file.
38419         * lib/sigpipe-die.h: New file.
38420         * lib/sigpipe-die.c: New file.
38421         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38422
38423 2008-08-31  Bruno Haible  <bruno@clisp.org>
38424
38425         Don't override previously installed signal handlers.
38426         * lib/fatal-signal.c (saved_sigactions): New variable.
38427         (uninstall_handlers): Reset the signal to the saved handler, not
38428         to SIG_DFL (except when ignored).
38429         (install_handlers): Save the previous handlers.
38430
38431 2008-08-30  Bruno Haible  <bruno@clisp.org>
38432
38433         * gnulib-tool (func_reset_sigpipe): New function.
38434         (func_get_automake_snippet, func_modules_transitive_closure,
38435         func_import): Invoke it before a join command that reads from stdin,
38436         to avoid "echo: write error: Broken pipe" error messages on stderr.
38437         Reported by Sam Steingold <sds@gnu.org>.
38438
38439 2008-08-30  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38442         Code copied from m4/open.m4.
38443         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38444         access and the filename ends in a slash. Code copied from lib/open.c.
38445         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38446         * tests/test-fopen.c (main): Check against bug with trailing slash.
38447
38448 2008-08-29  Bruno Haible  <bruno@clisp.org>
38449
38450         Avoid some "gcc -pedantic" warnings.
38451         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38452         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38453         * lib/dirent.in.h: Likewise.
38454         * lib/fcntl.in.h: Likewise.
38455         * lib/float.in.h: Likewise.
38456         * lib/iconv.in.h: Likewise.
38457         * lib/inttypes.in.h: Likewise.
38458         * lib/locale.in.h: Likewise.
38459         * lib/math.in.h: Likewise.
38460         * lib/netinet_in.in.h: Likewise.
38461         * lib/search.in.h: Likewise.
38462         * lib/signal.in.h: Likewise.
38463         * lib/stdarg.in.h: Likewise.
38464         * lib/stdint.in.h: Likewise.
38465         * lib/stdio.in.h: Likewise.
38466         * lib/stdlib.in.h: Likewise.
38467         * lib/string.in.h: Likewise.
38468         * lib/strings.in.h: Likewise.
38469         * lib/sys_select.in.h: Likewise.
38470         * lib/sys_socket.in.h: Likewise.
38471         * lib/sys_stat.in.h: Likewise.
38472         * lib/sys_time.in.h: Likewise.
38473         * lib/sysexits.in.h: Likewise.
38474         * lib/time.in.h: Likewise.
38475         * lib/unistd.in.h: Likewise.
38476         * lib/wchar.in.h: Likewise.
38477         * lib/wctype.in.h: Likewise.
38478         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38479         * modules/fchdir (Makefile.am): Likewise.
38480         * modules/fcntl (Makefile.am): Likewise.
38481         * modules/float (Makefile.am): Likewise.
38482         * modules/iconv_open (Makefile.am): Likewise.
38483         * modules/inttypes (Makefile.am): Likewise.
38484         * modules/locale (Makefile.am): Likewise.
38485         * modules/math (Makefile.am): Likewise.
38486         * modules/netinet_in (Makefile.am): Likewise.
38487         * modules/search (Makefile.am): Likewise.
38488         * modules/signal (Makefile.am): Likewise.
38489         * modules/stdarg (Makefile.am): Likewise.
38490         * modules/stdint (Makefile.am): Likewise.
38491         * modules/stdio (Makefile.am): Likewise.
38492         * modules/stdlib (Makefile.am): Likewise.
38493         * modules/string (Makefile.am): Likewise.
38494         * modules/strings (Makefile.am): Likewise.
38495         * modules/sys_select (Makefile.am): Likewise.
38496         * modules/sys_socket (Makefile.am): Likewise.
38497         * modules/sys_stat (Makefile.am): Likewise.
38498         * modules/sys_time (Makefile.am): Likewise.
38499         * modules/sysexits (Makefile.am): Likewise.
38500         * modules/time (Makefile.am): Likewise.
38501         * modules/unistd (Makefile.am): Likewise.
38502         * modules/wchar (Makefile.am): Likewise.
38503         * modules/wctype (Makefile.am): Likewise.
38504         Reported by Reuben Thomas <rrt@sc3d.org>.
38505
38506 2008-08-29  Bruno Haible  <bruno@clisp.org>
38507
38508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38509         any more.
38510
38511 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38512
38513         * MODULES.html.sh (Misc): Add bitrotate.
38514
38515         * modules/bitrotate: New file.
38516
38517         * lib/bitrotate.h: New file.
38518
38519         * modules/bitrotate-tests: New file.
38520
38521         * tests/test-bitrotate.c: New file.
38522
38523         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38524         on the bitrotate module.
38525
38526         * lib/arctwo.c: Use new bitrotate module.
38527
38528 2008-08-29  Jim Meyering  <meyering@redhat.com>
38529
38530         bootstrap: merge changes from coreutils
38531         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38532         of copied files.  Remove a kludge, now that this is fixed.
38533         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38534         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38535         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38536
38537 2008-08-29  Bruno Haible  <bruno@clisp.org>
38538
38539         * MODULES.html.sh: Remove --cvs-urls option.
38540
38541 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38542
38543         maint.mk: adjust to file name change
38544         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38545
38546 2008-08-28  Jim Meyering  <meyering@redhat.com>
38547
38548         * modules/getndelim2 (License): Relicense to LGPLv2+.
38549         Approved by Richard Stallman for the version of 1995, and by
38550         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38551
38552 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38553
38554         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38555         dummy if one is not available.  Do not touch them if
38556         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38557         (getc_maybe_unlocked): New.
38558         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38559
38560 2008-08-26  Eric Blake  <ebb9@byu.net>
38561
38562         doc/INSTALL: resync from autoconf
38563         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38564         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38565         moving...
38566         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38567         * INSTALL: Regenerate.
38568         * INSTALL.ISO: New file.
38569         * INSTALL.UTF-8: Likewise.
38570
38571 2008-08-26  Jim Meyering  <meyering@redhat.com>
38572
38573         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38574         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38575         these definitions conditional, so that they may be overridden, too.
38576
38577 2008-08-26  Bruno Haible  <bruno@clisp.org>
38578
38579         Generate INSTALL file variants with prettier quotes.
38580         * doc/Makefile (INSTALL_PRELUDE): New macro.
38581         (INSTALL): Use it.
38582         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38583
38584 2008-08-26  Bruno Haible  <bruno@clisp.org>
38585
38586         Run makeinfo in an English locale.
38587         * doc/Makefile (MAKEINFO): New variable.
38588
38589 2008-08-26  Bruno Haible  <bruno@clisp.org>
38590
38591         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38592         Suggested by Eric Blake.
38593
38594 2008-08-25  Bruno Haible  <bruno@clisp.org>
38595
38596         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38597
38598 2008-08-25  Eric Blake  <ebb9@byu.net>
38599
38600         c-stack: test that stack overflow can be caught
38601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38602         that platform allows handling stack overflow; at least OS/2 EMX
38603         has sigaltstack, but crashes before transferring control to
38604         handler on stack overflow.
38605         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38606         check for HAVE_STACK_OVERFLOW_HANDLING.
38607         Reported by Elbert Pol.
38608
38609 2008-08-25  Bruno Haible  <bruno@clisp.org>
38610
38611         * doc/posix-functions/strftime.texi: Fix description of strftime
38612         module.
38613
38614 2008-08-24  Bruno Haible  <bruno@clisp.org>
38615
38616         * tests/uniwidth/test-uc_width2.c: New file.
38617         * tests/uniwidth/test-uc_width2.sh: New file.
38618         * modules/uniwidth/width-tests (Files): Add the new files.
38619         (TESTS): Add uniwidth/test-uc_width2.sh.
38620         (TESTS_ENVIRONMENT): New variable.
38621         (check_PROGRAMS): Add test-uc_width2.
38622         (test_uc_width2_SOURCES): New variable.
38623
38624         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38625         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38626         not 0x00AB.
38627         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38628
38629 2008-08-22  Eric Blake  <ebb9@byu.net>
38630
38631         test-lock, test-tls: mention why a test is skipped
38632         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38633         skipped.
38634         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38635
38636         count-one-bits: relax license
38637         * modules/count-one-bits (License): Relicense to LGPLv2+.
38638         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38639
38640 2008-08-22  Andreas Schwab  <schwab@suse.de>
38641
38642         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38643         Remove spurious space in assignment.
38644
38645 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38646
38647         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38648         Paul Eggert <eggert@CS.UCLA.EDU>.
38649
38650 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38651
38652         * modules/gettext: Add m4/threadlib.m4.
38653
38654 2008-08-19  Eric Blake  <ebb9@byu.net>
38655
38656         test-c-stack: fix compilation failure on FreeBSD 5.0
38657         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38658         headers before <sys/resource.h>.
38659         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38660         the bug.
38661         Reported by Nelson H. F. Beebe.
38662
38663         strverscmp: migrate from "strverscmp.h" to <string.h>
38664         * modules/string (Makefile.am): Add new hooks.
38665         * modules/strverscmp (Files): Remove strverscmp.h.
38666         (Depends-on): Add string.
38667         (configure.ac): Add indicator.
38668         (Include): Mention new header.
38669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38670         defaults.
38671         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38672         results.
38673         * lib/strverscmp.h: Delete.
38674         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38675         * tests/test-strverscmp.c (includes): Adjust client.
38676         * lib/check-version.c (includes): Likewise.
38677         * NEWS: Document the change.
38678
38679         strverscmp: add unit test
38680         * modules/strverscmp-tests: New file.
38681         * tests/test-strverscmp.c: Likewise.
38682
38683 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38684
38685         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38686         regarding Windows crypto stuff, from Mono.
38687
38688 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38689
38690         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38691         if present, for intel RND.  Return error on failures.
38692
38693 2008-08-18  Ben Pfaff  <blp@gnu.org>
38694
38695         gitlog-to-changelog: give better diagnostic for failed pipe-open
38696         * build-aux/gitlog-to-changelog: Improve error message: suggest
38697         that the version of Git may be too old.
38698
38699 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38700
38701         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38702         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38703
38704 2008-08-18  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38707         pthread_in_use().
38708
38709 2008-08-18  Bruno Haible  <bruno@clisp.org>
38710
38711         * lib/glthread/threadlib.c: Include <pthread.h>.
38712
38713 2008-08-18  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38716         glthread_recursive_lock_* macros.
38717         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38718         Fix syntax error.
38719
38720 2008-08-18  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/glthread/thread.c: Avoid forcing a context switch right after
38723         thread creation.
38724
38725 2008-08-17  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38728         * lib/glthread/thread.h: Provide Win32 specific implementation.
38729         * modules/thread (Files): Add lib/glthread/thread.c.
38730         (Depends-on): Add lock.
38731         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38732
38733 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38734
38735         New module 'yield'.
38736         * modules/yield: New file.
38737         * lib/glthread/yield.h: New file.
38738         * m4/yield.m4: New file.
38739         * MODULES.html.sh (Multithreading): Add yield.
38740
38741 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38742
38743         New module 'thread'.
38744         * modules/thread: New file.
38745         * lib/glthread/thread.h: New file.
38746         * m4/thread.m4: New file.
38747         * MODULES.html.sh (Multithreading): Add thread.
38748
38749 2008-08-17  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/glthread/lock.h: Include <stdlib.h> always.
38752         * lib/glthread/tls.h: Likewise.
38753         * lib/glthread/cond.h: Likewise.
38754
38755 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38756
38757         New module 'cond'.
38758         * modules/cond: New file.
38759         * lib/glthread/cond.h: New file.
38760         * lib/glthread/cond.c: New file.
38761         * m4/cond.m4: New file.
38762         * MODULES.html.sh (Multithreading): Add cond.
38763
38764 2008-08-16  Eric Blake  <ebb9@byu.net>
38765
38766         c-stack: fix regression on Irix 5.3 from 2008-06-21
38767         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38768         sa_sigaction...
38769         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38770         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38771         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38772         * modules/signal (Makefile.am): Use the value.
38773         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38774         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38775         * doc/posix-headers/signal.texi (signal.h): Document this
38776         portability issue.
38777         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38778         Reported by Tom G. Christensen.
38779
38780 2008-08-17  Bruno Haible  <bruno@clisp.org>
38781
38782         New module 'threadlib'.
38783         * modules/threadlib: New file.
38784         * lib/glthread/threadlib.c: New file, extracted from
38785         lib/glthread/lock.c.
38786         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38787         functions.
38788         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38789         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38790         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38791         macros.
38792         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38793         (gl_DISABLE_THREADS): Remove macro.
38794         * modules/lock (Files): Remove build-aux/config.rpath.
38795         (Depends-on): Remove havelib. Add threadlib.
38796         (configure.ac-early): Remove section.
38797         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38798         * modules/tls (Depends-on): Remove lock. Add threadlib.
38799         (Link): New section, copied from threadlib.
38800         * MODULES.html.sh (Multithreading): Add threadlib.
38801
38802 2008-08-14  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38805         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38806         glthread_rwlock_unlock, glthread_rwlock_destroy,
38807         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38808         glthread_recursive_lock_destroy): Define as macros always.
38809         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38810         glthread_lock_lock.
38811         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38812         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38813         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38814         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38815         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38816         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38817         (glthread_recursive_lock_lock_func): Renamed from
38818         glthread_recursive_lock_lock.
38819         (glthread_recursive_lock_unlock_func): Renamed from
38820         glthread_recursive_lock_unlock.
38821         (glthread_recursive_lock_destroy_func): Renamed from
38822         glthread_recursive_lock_destroy.
38823
38824 2008-08-14  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/glthread/lock.h: Renamed from lib/lock.h.
38827         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38828         * lib/glthread/tls.h: Renamed from lib/tls.h.
38829         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38830         * lib/fstrcmp.c: Update includes.
38831         * lib/strsignal.c: Update includes.
38832         * modules/lock (Files, Makefile.am): Update.
38833         (Include): Change to "glthread/lock.h".
38834         * modules/tls (Files, Makefile.am): Update.
38835         (Include): Change to "glthread/tls.h".
38836         * tests/test-lock.c: Update includes.
38837         * tests/test-tls.c: Update includes.
38838         * NEWS: Mention the renamed header files.
38839
38840 2008-08-11  Jim Meyering  <meyering@redhat.com>
38841
38842         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38843
38844 2008-08-11  Eric Blake  <ebb9@byu.net>
38845
38846         test-c-stack: avoid C99-ism
38847         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38848         before statement.
38849         Reported by Alain Guibert.
38850
38851 2008-08-10  Jim Meyering  <meyering@redhat.com>
38852
38853         ensure that return value of uinttostr et al are not ignored
38854         * lib/inttostr.h (__GNUC_PREREQ): Define.
38855         (__attribute_warn_unused_result__): Define.
38856         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38857
38858 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38859
38860         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38861         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38862
38863 2008-08-07  Jim Meyering  <meyering@redhat.com>
38864
38865         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38866
38867         * modules/mkstemp (License): Relicense under LGPLv2+.
38868         * modules/tempname (License): Likewise.
38869
38870 2008-08-06  Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/poll.c (poll): Further micro-optimization.
38873
38874 2008-08-06  Jim Meyering  <meyering@redhat.com>
38875
38876         inet_pton.c: use locale-independent tolower
38877         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38878         (inet_pton6): Use c_tolower rather than tolower.
38879         * modules/inet_pton (Depends-on): Add c-ctype.
38880
38881 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38882
38883         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38884         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38885
38886 2008-08-06  Jim Meyering  <meyering@redhat.com>
38887
38888         * modules/inet_pton (License): Relicense under LGPLv2+.
38889
38890 2008-08-03  Bruno Haible  <bruno@clisp.org>
38891
38892         Additional non-aborting API for lock and tls.
38893         * lib/lock.h: Include <errno.h>.
38894         (glthread_lock_init): New macro/function.
38895         (gl_lock_init): Define as wrapper around glthread_lock_init.
38896         (glthread_lock_lock): New macro/function.
38897         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38898         (glthread_lock_unlock): New macro/function.
38899         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38900         (glthread_lock_destroy): New macro/function.
38901         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38902         (glthread_rwlock_init): New macro/function.
38903         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38904         (glthread_rwlock_rdlock): New macro/function.
38905         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38906         (glthread_rwlock_wrlock): New macro/function.
38907         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38908         (glthread_rwlock_unlock): New macro/function.
38909         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38910         (glthread_rwlock_destroy): New macro/function.
38911         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38912         (glthread_recursive_lock_init): New macro/function.
38913         (gl_recursive_lock_init): Define as wrapper around
38914         glthread_recursive_lock_init.
38915         (glthread_recursive_lock_lock): New macro/function.
38916         (gl_recursive_lock_lock): Define as wrapper around
38917         glthread_recursive_lock_lock.
38918         (glthread_recursive_lock_unlock): New macro/function.
38919         (gl_recursive_lock_unlock): Define as wrapper around
38920         glthread_recursive_lock_unlock.
38921         (glthread_recursive_lock_destroy): New macro/function.
38922         (gl_recursive_lock_destroy): Define as wrapper around
38923         glthread_recursive_lock_destroy.
38924         (glthread_once): New macro/function.
38925         (gl_once): Define as wrapper around glthread_once.
38926         Update function declarations.
38927         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38928         glthread_rwlock_init. Return error code.
38929         (glthread_rwlock_rdlock_multithreaded): Renamed from
38930         glthread_rwlock_rdlock. Return error code.
38931         (glthread_rwlock_wrlock_multithreaded): Renamed from
38932         glthread_rwlock_wrlock. Return error code.
38933         (glthread_rwlock_unlock_multithreaded): Renamed from
38934         glthread_rwlock_unlock. Return error code.
38935         (glthread_rwlock_destroy_multithreaded): Renamed from
38936         glthread_rwlock_destroy. Return error code.
38937         (glthread_recursive_lock_init_multithreaded): Renamed from
38938         glthread_recursive_lock_init. Return error code.
38939         (glthread_recursive_lock_lock_multithreaded): Renamed from
38940         glthread_recursive_lock_lock. Return error code.
38941         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38942         glthread_recursive_lock_unlock. Return error code.
38943         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38944         glthread_recursive_lock_destroy. Return error code.
38945         (glthread_once_call): Make static.
38946         (glthread_once_multithreaded): Renamed from glthread_once.
38947         * lib/tls.h: Include <errno.h>.
38948         (glthread_tls_key_init): New macro/function.
38949         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38950         (glthread_tls_set): New macro/function.
38951         (gl_tls_set): Define as wrapper around glthread_tls_set.
38952         (glthread_tls_key_destroy): New macro/function.
38953         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38954         Update function declarations.
38955         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38956         glthread_tls_get.
38957         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38958
38959 2008-08-04  Eric Blake  <ebb9@byu.net>
38960
38961         gnumakefile: use space, not TAB, outside of targets
38962         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38963
38964 2008-08-02  Jim Meyering  <meyering@redhat.com>
38965
38966         getdate.y: avoid locale-dependent date parsing failure
38967         In Turkish locales, getdate would fail to recognize keywords
38968         containing a lowercase "i".  The solution is not to rely on
38969         locale-sensitive case-conversion.
38970         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38971         (lookup_word): Use c_toupper in place of toupper.
38972         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38973         Reported by Vefa Bicakci <bicave@superonline.com> in
38974         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38975         * modules/getdate (Depends-on): Add c-ctype.
38976
38977 2008-08-02  Bruno Haible  <bruno@clisp.org>
38978
38979         * gnulib-tool (func_import): When updating or creating a .gitignore
38980         file, prepend each added line with a slash, and ignore leading slashes
38981         from the existing lines.
38982         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38983
38984 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38985
38986         Portability fix for GNU make 3.79.1.
38987         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38988         versions do not understand.
38989
38990 2008-08-01  Bruno Haible  <bruno@clisp.org>
38991
38992         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38993         * tests/test-isnanf.h (zero): New variable.
38994         (main): Avoid literal -0.0f.
38995         * tests/test-isnand.h (zero): New variable.
38996         (main): Avoid literal -0.0.
38997         * tests/test-isnanl.h (zero): New variable.
38998         (main): Avoid literal -0.0L.
38999         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39000         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39001         -0.0, -0.0L.
39002         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39003         (test_signbitd): Avoid literal -0.0.
39004         (test_signbitl): Avoid literal -0.0L.
39005         * tests/test-ceilf1.c (zero): New variable.
39006         (main): Avoid literal -0.0f.
39007         * tests/test-ceill.c (zero): New variable.
39008         (main): Avoid literal -0.0L.
39009         * tests/test-floorf1.c (zero): New variable.
39010         (main): Avoid literal -0.0f.
39011         * tests/test-floorl.c (zero): New variable.
39012         (main): Avoid literal -0.0L.
39013         * tests/test-roundf1.c (zero): New variable.
39014         (main): Avoid literal -0.0f.
39015         * tests/test-round1.c (zero): New variable.
39016         (main): Avoid literal -0.0.
39017         * tests/test-roundl.c (zero): New variable.
39018         (main): Avoid literal -0.0L.
39019         * tests/test-truncf1.c (zero): New variable.
39020         (main): Avoid literal -0.0f.
39021         * tests/test-trunc1.c (zero): New variable.
39022         (main): Avoid literal -0.0.
39023         * tests/test-truncl.c (zero): New variable.
39024         (main): Avoid literal -0.0L.
39025         * tests/test-frexp.c (zero): New variable.
39026         (main): Avoid literal -0.0.
39027         * tests/test-frexpl.c (zero): New variable.
39028         (main): Avoid literal -0.0L.
39029         * tests/test-ldexpl.c (zero): New variable.
39030         (main): Avoid literal -0.0L.
39031         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39032         (zerod, zerol): New variables.
39033         (test_function): Avoid literals -0.0, -0.0L.
39034         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39035         (zerod, zerol): New variables.
39036         (test_function): Avoid literals -0.0, -0.0L.
39037         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39038         (zerod, zerol): New variables.
39039         (test_function): Avoid literals -0.0, -0.0L.
39040         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39041         (zerod, zerol): New variables.
39042         (test_function): Avoid literals -0.0, -0.0L.
39043         * tests/test-strtod.c (zero): New variable.
39044         (main): Avoid literal -0.0.
39045         Reported by Jonathan C. Patschke <jp@centtech.com>.
39046
39047 2008-07-31  Jim Meyering  <meyering@redhat.com>
39048
39049         sha256.h: correct definition of SHA224_DIGEST_SIZE
39050         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39051         Reported by Paulie Pena IV <paulie4@gmail.com>.
39052         Define as 224 / 8, rather than as a literal.
39053         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39054         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39055         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39056
39057 2008-07-31  Bruno Haible  <bruno@clisp.org>
39058
39059         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39060         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39061         Reported by Jonathan Patschke <jp@centtech.com>.
39062
39063 2008-07-31  Bruno Haible  <bruno@clisp.org>
39064
39065         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39066         Reported by Paolo Bonzini <bonzini@gnu.org>.
39067
39068 2008-07-30  Eric Blake  <ebb9@byu.net>
39069
39070         test-strtod: allow compilation without -lm
39071         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39072         Reported by Dennis Clarke <blastwave@gmail.com>.
39073
39074 2008-07-28  Jim Meyering  <meyering@redhat.com>
39075
39076         bootstrap: work also when there are no .po files in po/
39077         * build-aux/bootstrap (update_po_files): Complete the change
39078         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39079
39080 2008-07-27  Jim Meyering  <meyering@redhat.com>
39081
39082         * users.txt: Add zile.
39083
39084 2008-07-26  Ben Pfaff  <blp@gnu.org>
39085
39086         Add missing dependencies on new m4/exponent[fdl].m4 files.
39087         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39088         * modules/isnand-nolibm: Add m4/exponentd.m4.
39089         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39090         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39091         m4/isnan[fdl].m4, because the macros actually used moved.
39092         Reported by Jim Meyering.
39093
39094 2008-07-14  Ben Pfaff  <blp@gnu.org>
39095
39096         Add isinf module.
39097         * lib/isinf.c: New file.
39098         * lib/math.in.h: Define isinf macro if we have decided to replace
39099         it.
39100         * m4/isinf.m4: New file.
39101         * m4/math_h.m4: Initialize and substitute variables for isinf
39102         module.
39103         * modules/isinf: New file.
39104         * modules/isinf-tests: New file.
39105         * modules/math: Add substitutions for new module.
39106         * tests/test-isinf.c: New file.
39107         * doc/posix-functions/isinf.texi: Mention new module.
39108         * MODULES.html.sh: Mention new module.
39109
39110 2008-07-14  Ben Pfaff  <blp@gnu.org>
39111
39112         Factor out some macros for use by additional modules.
39113         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39114         exponentf.m4.
39115         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39116         exponentd.m4.
39117         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39118         file exponentl.m4.
39119         * m4/exponentf.m4: New file.
39120         * m4/exponentd.m4: New file.
39121         * m4/exponentl.m4: New file.
39122         * modules/isnanf: Use new file m4/exponentf.m4.
39123         * modules/isnand: Use new file m4/exponentd.m4.
39124         * modules/isnanl: Use new file m4/exponentl.m4.
39125
39126 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39127
39128         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39129         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39130         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39131         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39132
39133         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39134         readlink on platforms without PATH_MAX.
39135
39136 2008-07-21  Eric Blake  <ebb9@byu.net>
39137
39138         Warn, not fail, on stale version.
39139         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39140
39141         Don't allow installation with stale devel version number.
39142         * top/GNUmakefile (_is-install-target): New macro.
39143         (_curr-ver): Forbid installation with stale version number.
39144
39145 2008-07-20  Bruno Haible  <bruno@clisp.org>
39146
39147         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39148         TESTS_ENVIRONMENT.
39149         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39150
39151 2008-07-20  Bruno Haible  <bruno@clisp.org>
39152
39153         * lib/c-stack.h (c_stack_action): Add documentation.
39154         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39155
39156 2008-07-20  Bruno Haible  <bruno@clisp.org>
39157
39158         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39159         * modules/readlink (License): Likewise.
39160
39161 2008-07-17  Eric Blake  <ebb9@byu.net>
39162
39163         * modules/c-stack (Link): Fix typo.
39164
39165         Make c-stack use libsigsegv, when available.
39166         * modules/c-stack (Depends-on): Add libsigsegv.
39167         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39168         needed.
39169         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39170         (segv_handler, overflow_handler, c_stack_action)
39171         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39172         implementation when libsigsegv is available, but only when using
39173         the library is necessary.
39174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39175         comment, explaining why XSI check fails on Linux.
39176         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39177         * tests/test-c-stack2.sh: Tweak skip message.
39178         * NEWS: Document new link-time requirements.
39179
39180 2008-07-16  Eric Blake  <ebb9@byu.net>
39181
39182         c-stack: Expose false positives when not using libsigsegv.
39183         * modules/c-stack-tests (Files): Expand test.
39184         * tests/test-c-stack.c (main): Add means to conditionally trigger
39185         non-overflow SIGSEGV.
39186         * tests/test-c-stack2.sh: New file.
39187
39188 2008-07-14  Bruno Haible  <bruno@clisp.org>
39189
39190         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39191         Reported by Eric Blake.
39192
39193 2008-07-14  Sam Steingold  <sds@gnu.org>
39194             Bruno Haible  <bruno@clisp.org>
39195
39196         New module libsigsegv.
39197         * modules/libsigsegv: New file.
39198         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39199         modifications.
39200         * MODULES.html.sh (Signal handling): New section.
39201
39202 2008-07-14  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/unictype/ctype-* (Description): Add the word "function".
39205         Improves the resulting doc in MODULES.html.
39206
39207 2008-07-12  Ben Pfaff  <blp@gnu.org>
39208
39209         Add longlong module.
39210         * modules/longlong: New file.
39211
39212 2008-07-12  Bruno Haible  <bruno@clisp.org>
39213
39214         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39215         to empty.
39216
39217 2008-07-10  Ben Pfaff  <blp@gnu.org>
39218
39219         Add isnan module.
39220         * doc/posix-functions/isnan.texi: Mention new module.
39221         * lib/math.in.h: Define isnan macro if we have decided to replace
39222         it.
39223         * m4/isnan.m4: New file.
39224         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39225         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39226         also.
39227         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39228         redundancy.
39229         * m4/math_h.m4: Initialize and substitute variables for isnan
39230         module.
39231         * modules/isnan: New file.
39232         * modules/isnan-tests: New file.
39233         * modules/math: Add substitutions for new module.
39234         * tests/test-isnan.c: New file.
39235         * MODULES.html.sh: Mention new module.
39236
39237 2008-07-10  Ben Pfaff  <blp@gnu.org>
39238
39239         Add isnanf module.
39240         * lib/isnanf.m4: New file.
39241         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39242         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39243         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39244         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39245         * modules/isnanf: New file.
39246         * modules/isnanf-tests: New file.
39247         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39248         files.
39249         * tests/test-isnanf-nolibm.c: factored most of its contents into
39250         new file tests/test-isnanf.h.
39251         * tests/test-isnanf.h: New file.
39252         * tests/test-isnanf.c: New file.
39253         * MODULES.html.sh: Mention new module.
39254         * doc/glibc-functions/isnanf.texi: Mention new module.
39255
39256 2008-07-10  Ben Pfaff  <blp@gnu.org>
39257
39258         Add isnand module.
39259         * lib/isnand.h: New file.
39260         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39261         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39262         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39263         functionality also.
39264         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39265         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39266         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39267         * modules/isnand: New file.
39268         * modules/isnand-tests: New file.
39269         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39270         files.
39271         * tests/test-isnand-nolibm.c: factored most of its contents into
39272         new file tests/test-isnand.h.
39273         * tests/test-isnand.h: New file.
39274         * tests/test-isnand.c: New file.
39275         * MODULES.html.sh: Mention new module.
39276
39277 2008-07-10  Ben Pfaff  <blp@gnu.org>
39278
39279         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39280         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39281         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39282         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39283         * modules/isnanf-nolibm: Update references to renamed files.
39284         * modules/isnand-nolibm: Likewise.
39285         * modules/isnanf-nolibm-tests: Likewise.
39286         * modules/isnand-nolibm-tests: Likewise.
39287         * lib/frexp.c: Likewise.
39288         * lib/isfinite.c: Likewise.
39289         * lib/signbitd.c: Likewise.
39290         * lib/signbitf.c: Likewise.
39291         * lib/vasnprintf.c: Likewise.
39292         * tests/test-ceilf1.c: Likewise.
39293         * tests/test-ceilf2.c: Likewise.
39294         * tests/test-floorf1.c: Likewise.
39295         * tests/test-floorf2.c: Likewise.
39296         * tests/test-frexp.c: Likewise.
39297         * tests/test-round1.c: Likewise.
39298         * tests/test-round2.c: Likewise.
39299         * tests/test-roundf1.c: Likewise.
39300         * tests/test-strtod.c: Likewise.
39301         * tests/test-trunc1.c: Likewise.
39302         * tests/test-trunc2.c: Likewise.
39303         * tests/test-truncf1.c: Likewise.
39304         * tests/test-truncf2.c: Likewise.
39305         * NEWS: Mention the renamed header files.
39306
39307 2008-07-11  Jim Meyering  <meyering@redhat.com>
39308
39309         vc-list-files: make the last-resort awk code more portable
39310         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39311         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39312         does not support it.
39313
39314 2008-07-10  Eric Blake  <ebb9@byu.net>
39315
39316         Work with tar's bootstrap.
39317         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39318         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39319         an m4 comment.
39320
39321 2008-07-09  Jim Meyering  <meyering@redhat.com>
39322
39323         posix-shell.m4: fix typo that made this test malfunction
39324         * m4/posix-shell.m4: Remove capitalization in variable name.
39325
39326 2008-07-08  Bruno Haible  <bruno@clisp.org>
39327
39328         * m4/onceonly.m4: Update comments.
39329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39330
39331 2008-07-04  Jim Meyering  <meyering@redhat.com>
39332
39333         * users.txt: Add vc-dwim.
39334         (bison, coreutils): Use the gitweb URL.
39335
39336 2008-07-03  Jim Meyering  <meyering@redhat.com>
39337
39338         * users.txt: Add libffcall.  From Sam Steingold.
39339
39340 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39341
39342         getdate.y: do not ignore TZ with relative day, month or year offset
39343         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39344         relative-date-handling, since otherwise, the latter would clobber the
39345         sole output (an updated Start value) of the tz-handling block.
39346         * tests/test-getdate.c: Tests for the fix
39347
39348 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39349
39350         Recognize 'foo_LIBRARIES += libgnu.a'.
39351         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39352         makefile snippet has already specified an installation location,
39353         also using '+='.
39354
39355 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39356
39357         getdate.y: factor out common actions
39358         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39359         Use them in place of open-coded actions.
39360
39361 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39362
39363         Add self-test for getdate module.
39364         * modules/getdate-tests: New file.
39365         * tests/test-getdate.c: New file.
39366
39367 2008-06-29  Bruno Haible  <bruno@clisp.org>
39368
39369         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39370         .gitignore.
39371         Reported by Sylvain Beucler <beuc@beuc.net>.
39372
39373 2008-06-29  Bruno Haible  <bruno@clisp.org>
39374
39375         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39376         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39377
39378 2008-06-29  Bruno Haible  <bruno@clisp.org>
39379
39380         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39381         EXTRA_DIST.
39382         Reported by Sylvain Beucler <beuc@beuc.net>.
39383
39384 2008-06-26  Jim Meyering  <meyering@redhat.com>
39385
39386         make several modules depend on the "open" module
39387         This provides slightly increased consistency when opening-for-write
39388         the name of a non-directory spelled with a trailing slash.
39389         * modules/chdir-safer: Likewise.
39390         * modules/chown: Likewise.
39391         * modules/clean-temp: Likewise.
39392         * modules/copy-file: Likewise.
39393         * modules/fchdir: Likewise.
39394         * modules/fcntl-safer: Likewise.
39395         * modules/pipe: Likewise.
39396         * modules/utime: Likewise.
39397         Prompted by Eric Blake and Bruno Haible.
39398
39399 2008-06-24  Andreas Schwab  <schwab@suse.de>
39400
39401         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39402         literals can be used as initializers for global variables.
39403
39404 2008-06-23  Eric Blake  <ebb9@byu.net>
39405
39406         Make gnulib-cache.m4 easier to diff.
39407         * gnulib-tool (func_import): Allow newlines when reading cached
39408         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39409
39410 2008-06-23  Bruno Haible  <bruno@clisp.org>
39411
39412         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39413         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39414         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39415         m4/signalblocking.m4.
39416         (gl_PREREQ_SIGACTION): Don't invoke it.
39417         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39418         gl_PREREQ_SIG_HANDLER_H.
39419         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39420         Don't check for sigaction here.
39421
39422 2008-06-23  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39425         (install_handlers): Don't set the SA_RESETHAND flag.
39426
39427 2008-06-23  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/sigaction.m4: Comment fixes.
39430         * lib/signal.in.h: Likewise.
39431
39432 2008-06-23  Eric Blake  <ebb9@byu.net>
39433
39434         Fix typo.
39435         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39436
39437         Avoid SA_ namespace.
39438         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39439         Reported by Ralf Wildenhues.
39440
39441         Avoid test failure due to SA_RESTORER.
39442         * tests/test-sigaction.c (SA_MASK): New macro.
39443         (main): Avoid failing due to extension flags being set.
39444         Reported by Jim Meyering.
39445
39446         Revert use of sig-handler.h in sigprocmask.c.
39447         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39448         it requires the existence of struct sigaction.
39449         * lib/sigprocmask.c (handler_t): Restore typedef.
39450         (rpl_signal, old_handlers): Use local type.
39451
39452 2008-06-22  Bruno Haible  <bruno@clisp.org>
39453
39454         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39455         conditionally.
39456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39457
39458 2008-06-22  Bruno Haible  <bruno@clisp.org>
39459
39460         * doc/posix-functions/siginterrupt.texi: Move note.
39461
39462         * lib/signal.in.h (SA_RESTART): New macro.
39463         * lib/sigaction.c: Update comment.
39464
39465         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39466
39467         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39468         (gl_PREREQ_SIGPROCMASK): Invoke it.
39469         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39470
39471         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39472
39473         * lib/sigprocmask.c: Update a comment.
39474
39475 2008-06-21  Eric Blake  <ebb9@byu.net>
39476
39477         Use sigaction module rather than signal().
39478         * modules/c-stack (Depends-on): Add sigaction.
39479         * modules/fatal-signal (Depends-on): Likewise.
39480         * modules/nanosleep (Depends-on): Likewise.
39481         * modules/sigprocmask (Files): Add sig-handler.h.
39482         * modules/sigaction (Files): Likewise.
39483         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39484         Eggert.
39485         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39486         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39487         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39488         (init_fatal_signals): Likewise.
39489         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39490         (siginterrupt): Delete fallback.
39491         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39492         instead.
39493         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39494         siginterrupt.
39495
39496         New module sigaction, for mingw.
39497         * modules/sigaction: New module...
39498         * modules/sigaction-tests: ...and its test.
39499         * m4/sigaction.m4: New file.
39500         * lib/sigaction.c: Likewise.
39501         * tests/test-sigaction.c: Likewise.
39502         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39503         * modules/signal (Makefile.am): Likewise.
39504         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39505         needed.
39506         * doc/posix-headers/signal.texi (signal.h): Mention provided
39507         types.
39508         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39509         that sigaction is preferable.
39510         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39511         module.
39512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39513         sigaction.
39514
39515         Improve robustness of sigprocmask by overriding signal.
39516         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39517         is in use.
39518         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39519         (SIGKILL, SIGSTOP): Provide fallbacks.
39520         (rpl_signal): Implement.
39521         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39522         signal can be called inside handlers.
39523
39524         Fix nanosleep module on mingw.
39525         * modules/nanosleep (Depends-on): Add sys_select.
39526         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39527
39528         Fix licensing of sigprocmask.
39529         * modules/raise (License): Relicense as LGPL.
39530
39531 2008-06-21  Bruno Haible  <bruno@clisp.org>
39532
39533         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39534         result if it contains question marks.
39535         Reported by Michael Geng <linux@michaelgeng.de>.
39536
39537 2008-06-19  Bruno Haible  <bruno@clisp.org>
39538
39539         Fix CVS-ism.
39540         * doc/gnulib.texi: Include updated-stamp.texi.
39541         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39542         (updated-stamp.texi): New rule.
39543         (gnulib.info): Depend on it.
39544         * doc/.gitignore: Add updated-stamp.texi.
39545         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39546
39547 2008-06-19  Bruno Haible  <bruno@clisp.org>
39548
39549         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39550         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39551
39552 2008-06-19  Eric Blake  <ebb9@byu.net>
39553
39554         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39555         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39556         Reported by Stepan Kasal.
39557
39558 2008-06-18  Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39561         Reported by Eric Blake.
39562
39563 2008-06-18  Eric Blake  <ebb9@byu.net>
39564
39565         Work around cygwin 1.5.25 strsignal bug.
39566         * tests/test-strsignal.c: Allow for const char *.
39567         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39568
39569 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39570
39571         * users.txt: Update URL to article and add author/date
39572         information.
39573
39574 2008-06-17  Bruno Haible  <bruno@clisp.org>
39575
39576         New macro gl_DISABLE_THREADS.
39577         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39578         if the user did not pass --enable-threads or --disable-threads option.
39579         (gl_DISABLE_THREADS): New macro.
39580         Reported by Eric Blake <ebb9@byu.net>.
39581
39582 2008-06-17  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39585         when the macro ignores it.
39586         Based on a patch by Eric Blake <ebb9@byu.net>.
39587
39588 2008-06-17  Bruno Haible  <bruno@clisp.org>
39589
39590         * modules/tls (License): Change to LGPLv2+.
39591         Reported by Eric Blake.
39592
39593 2008-06-17  Eric Blake  <ebb9@byu.net>
39594
39595         Simplify c-stack prerequisites.
39596         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39598         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39599         check.
39600         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39601         <sys/resource.h>.
39602
39603         Move c-stack test into testsuite.
39604         * modules/c-stack-tests: New file.
39605         * lib/c-stack.c [DEBUG]: Move test program...
39606         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39607         fail test if sigaltstack is lacking.
39608         * tests/test-c-stack.sh: New driver file.
39609
39610 2008-06-16  Eric Blake  <ebb9@byu.net>
39611
39612         Use raise module consistently.
39613         * modules/fatal-signal (Depends-on): Add raise.
39614         * modules/sigprocmask (Depends-on): Likewise.
39615         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39616         * lib/sigprocmask.c (sigprocmask): Likewise.
39617         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39618         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39619
39620         Fix compliance bug in sigpending.
39621         * lib/sigprocmask.c (sigpending): Return pending array via
39622         parameter, not return value.
39623
39624 2008-06-14  Eric Blake  <ebb9@byu.net>
39625
39626         Improve obstack-printf test code.
39627         * tests/test-obstack-printf.c (test_function): Fix comment, and
39628         simplify usage of obstack_* in macros.  Add a test for coverage.
39629         Reported by Bruno Haible.
39630
39631 2008-06-14  Bruno Haible  <bruno@clisp.org>
39632
39633         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39634         array size as a constant, not as a const variable.
39635         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39636         AC_USE_SYSTEM_EXTENSIONS.
39637         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39638         Test whether the obstack_printf function actually exists.
39639         * modules/obstack-printf (Depends-on): Add extensions.
39640         (Include): Remove obstack.h.
39641         * modules/obstack-printf-posix (Depends-on): Add extensions.
39642         (Include): Remove obstack.h.
39643
39644 2008-06-13  Eric Blake  <ebb9@byu.net>
39645
39646         Add obstack-printf and obstack-printf-posix modules.
39647         * modules/obstack-printf: New file.
39648         * modules/obstack-printf-posix: Likewise.
39649         * MODULES.html.sh (Misc): Mention them.
39650         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39651         Likewise.
39652         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39653         Likewise.
39654         * modules/stdio (Makefile.am): Accomodate new modules.
39655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39656         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39657         Declare.
39658         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39659         functions.
39660         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39661         (gl_REPLACE_OBSTACK_PRINTF): New macros
39662         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39663         * tests/test-obstack-printf.c: New file.
39664         * modules/obstack-printf-tests: Likewise.
39665         * modules/obstack-printf-posix-tests: Likewise.
39666
39667 2008-06-11  Bruno Haible  <bruno@clisp.org>
39668
39669         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39670         * lib/open.c: Include errno.h.
39671         (open): Fail when attempting to write to a file that has a trailing
39672         slash.
39673         * tests/test-open.c (main): Test against trailing slash bug.
39674         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39675
39676 2008-06-10  Bruno Haible  <bruno@clisp.org>
39677
39678         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39679         for $? to work inside the trap command, with various /bin/sh-s.
39680         * tests/test-vc-list-files-cvs.sh: Likewise.
39681
39682 2008-06-10  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/acl-internal.h: Don't include gettext.h here.
39685         * lib/set-mode-acl.c: Include gettext.h here.
39686         * lib/copy-acl.c: Likewise.
39687
39688 2008-06-10  Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39691         * lib/wait-process.c (wait_subprocess): Likewise.
39692         * lib/execute.h (execute): Add termsigp argument.
39693         * lib/execute.c (execute): Likewise.
39694         * lib/csharpcomp.c (compile_csharp_using_pnet,
39695         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39696         * lib/csharpexec.c (execute_csharp_using_pnet,
39697         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39698         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39699         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39700         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39701         is_jikes_present): Update.
39702         * lib/javaexec.c (execute_java_class): Update.
39703         * lib/javaversion.c (execute_and_read_line): Update.
39704         * NEWS: Document the changes.
39705         Reported by Eric Blake.
39706
39707 2008-06-10  Eric Blake  <ebb9@byu.net>
39708
39709         Add missing include.
39710         * tests/test-strstr.c (includes): Add <signal.h>.
39711         * tests/test-strcasestr.c (includes): Likewise.
39712         * tests/test-memmem.c (includes): Likewise.
39713
39714 2008-06-10  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/wait-process.c (wait_subprocess): Add an assertion.
39717
39718 2008-06-10  Bruno Haible  <bruno@clisp.org>
39719
39720         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39721
39722 2008-06-10  Bruno Haible  <bruno@clisp.org>
39723
39724         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39725         using alarm().
39726         * tests/test-strcasestr.c (main): Likewise.
39727         * tests/test-strstr.c (main): Likewise.
39728
39729 2008-06-09  Bruno Haible  <bruno@clisp.org>
39730
39731         Work around the Solaris 10 ACE ACLs ABI change.
39732         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39733         declare if ACL_NO_TRIVIAL is present.
39734         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39735         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39736         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39737         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39738         define if ACL_NO_TRIVIAL is present.
39739         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39740         and use the current ABI.
39741         (file_has_acl): Use same #if condition as elsewhere.
39742         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39743         in use, and use the current ABI.
39744         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39745         Reported by Jim Meyering.
39746
39747 2008-06-09  Eric Blake  <ebb9@byu.net>
39748
39749         Work around environments that (stupidly) ignore SIGALRM.
39750         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39751         before using alarm().
39752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39754         Reported by Ian Beckwith <ianb@erislabs.net>.
39755
39756         Produce autobuild blurb earlier in log.
39757         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39758
39759 2008-06-09  Jim Meyering  <meyering@redhat.com>
39760         and OndÅ™ej Vašík  <ovasik@redhat.com>
39761
39762         utimens.c: correct kernel bug work-around
39763         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39764         failure, not success, and the kernel bug we're trying to work
39765         around affects not just the utimensat call, but also the fallback
39766         futimens call.
39767         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39768         not success.
39769         [HAVE_FUTIMENS]: Use the same work-around, here.
39770
39771 2008-06-09  Jim Meyering  <meyering@redhat.com>
39772
39773         add more guards around definition of ACE_-related code
39774         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39775         ALLOW and ACE_OWNER are also defined.
39776
39777 2008-06-08  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/acl-internal.h: Add me as co-author.
39780         * lib/file-has-acl.c: Likewise.
39781         * lib/set-mode-acl.c: Likewise.
39782         * lib/copy-acl.c: Likewise.
39783
39784 2008-06-08  Bruno Haible  <bruno@clisp.org>
39785
39786         Add support for AIX ACLs.
39787         * lib/acl-internal.h (acl_nontrivial): New declaration.
39788         * lib/file-has-acl.c (acl_nontrivial): New function.
39789         (file_has_acl): Add implementation using AIX 4 ACL API.
39790         * lib/set-mode-acl.c (qset_acl): Likewise.
39791         * lib/copy-acl.c (qcopy_acl): Likewise.
39792
39793 2008-06-08  Bruno Haible  <bruno@clisp.org>
39794
39795         Add support for HP-UX ACLs.
39796         * lib/acl-internal.h (acl_nontrivial): New declaration.
39797         * lib/file-has-acl.c (acl_nontrivial): New function.
39798         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39799         * lib/set-mode-acl.c (qset_acl): Likewise.
39800         * lib/copy-acl.c (qcopy_acl): Likewise.
39801
39802 2008-06-08  Bruno Haible  <bruno@clisp.org>
39803
39804         Add support for Cygwin ACLs.
39805         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39806         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39807         the chmod_or_fchmod call.
39808         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39809
39810 2008-06-08  Bruno Haible  <bruno@clisp.org>
39811
39812         Fix bug with setuid modes in Solaris 10+ code.
39813         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39814         succeeded, when the mode contains some special bits.
39815
39816 2008-06-08  Bruno Haible  <bruno@clisp.org>
39817
39818         Add support for Solaris 7..10 ACLs.
39819         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39820         declarations.
39821         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39822         functions.
39823         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39824         * lib/set-mode-acl.c (qset_acl): Likewise.
39825         * lib/copy-acl.c (qcopy_acl): Likewise.
39826
39827 2008-06-08  Bruno Haible  <bruno@clisp.org>
39828
39829         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39830         declaration.
39831         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39832         (acl_access_nontrivial): Remove MacOS X case.
39833         (file_has_acl): Use acl_extended_nontrivial.
39834         * lib/copy-acl.c (qcopy_acl): Likewise.
39835
39836 2008-06-08  Bruno Haible  <bruno@clisp.org>
39837
39838         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39839
39840 2008-06-08  Jim Meyering  <meyering@redhat.com>
39841
39842         * modules/acl (Maintainer): Add Bruno Haible.
39843
39844 2008-06-07  Bruno Haible  <bruno@clisp.org>
39845
39846         Improve support for Tru64 ACLs.
39847         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39848         ACL on OSF/1.
39849
39850 2008-06-07  Bruno Haible  <bruno@clisp.org>
39851
39852         Add support for MacOS X ACLs.
39853         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39854         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39855         * lib/set-mode-acl.c (qset_acl): Likewise.
39856         * lib/copy-acl.c (qcopy_acl): Likewise.
39857
39858 2008-06-07  Bruno Haible  <bruno@clisp.org>
39859
39860         Fix memory leak introduced on 2008-05-22.
39861         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39862         use.
39863
39864 2008-06-07  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39867         to construct an empty ACL.
39868
39869 2008-06-07  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39872         precisely.
39873         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39874
39875 2008-06-07  Bruno Haible  <bruno@clisp.org>
39876
39877         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39878         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39879
39880 2008-06-07  Bruno Haible  <bruno@clisp.org>
39881
39882         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39883         regardless of POSIX.
39884         * doc/posix-functions/_longjmp.texi: Likewise.
39885         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39886         SystemV platform in this case.
39887
39888 2008-06-06  Eric Blake  <ebb9@byu.net>
39889
39890         Document abort() bugs.
39891         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39892
39893         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39894         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39895         sigsetjmp.
39896         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39897         siglongjmp, but only as a macro.
39898         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39899         is obsolete.
39900         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39901
39902         Tweak documentation to cover cygwin argz bugs.
39903         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39904         argz bug fix; no code change needed since no cygwin releases
39905         occurred between the last fix and the bug being tested.
39906         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39907         module and recently fixed cygwin bugs.
39908         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39909         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39910         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39911         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39912         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39913         Likewise.
39914         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39915         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39916         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39917         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39918         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39919         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39920         Likewise.
39921
39922         Avoid gcc warning on cygwin.
39923         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39924         !ACL_NO_TRIVIAL]: Avoid unused variable.
39925
39926 2008-06-05  Eric Blake  <ebb9@byu.net>
39927
39928         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39929         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39930         git-version-gen fails to come up with a version.
39931         Reported by Simon Josefsson.
39932
39933 2008-06-05  Jim Meyering  <meyering@redhat.com>
39934             Paul Eggert  <eggert@cs.ucla.edu>
39935
39936         utimens.c: work around a probable Linux kernel bug
39937         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39938         appears to be a kernel bug that causes utimensat to return 280
39939         instead of 0, indicating success.
39940
39941 2008-06-04  Bruno Haible  <bruno@clisp.org>
39942
39943         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39944         2008-06-01 commit.
39945
39946 2008-06-04  Bruno Haible  <bruno@clisp.org>
39947
39948         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39949         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39950         (file_has_acl): Use it. Save errno afterwards.
39951         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39952
39953 2008-06-03  Bruno Haible  <bruno@clisp.org>
39954
39955         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39956         draft code. Simplify #ifs.
39957         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39958         Put Solaris code after POSIX-draft code. Fix comments regarding
39959         Solaris 10, HP-UX. Mention Cygwin.
39960         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39961
39962 2008-06-03  Eric Blake  <ebb9@byu.net>
39963
39964         Provide fallback for older kernels.
39965         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39966         Provide runtime fallback if kernel lacks support.
39967         Reported by Mike Frysinger.
39968
39969 2008-06-02  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39972         it exists.
39973
39974 2008-06-02  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39977         * lib/copy-acl.c (qcopy_acl): Update comment.
39978
39979 2008-06-02  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39982         like ACL APIs.
39983
39984 2008-06-02  Bruno Haible  <bruno@clisp.org>
39985
39986         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39987         * tests/test-set-mode-acl.sh: Likewise.
39988         * tests/test-copy-acl.sh: Likewise.
39989         * tests/test-copy-file.sh: Likewise.
39990
39991 2008-06-02  Bruno Haible  <bruno@clisp.org>
39992
39993         * tests/test-file-has-acl.sh: Remove unused code.
39994
39995 2008-06-01  Bruno Haible  <bruno@clisp.org>
39996
39997         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39998         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39999         messages.
40000         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40001
40002 2008-06-01  Bruno Haible  <bruno@clisp.org>
40003
40004         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40005         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40006         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40007         APIs.
40008         * modules/acl-tests (configure.ac): Remove tests now contained in
40009         m4/acl.m4.
40010
40011 2008-06-02  Jim Meyering  <meyering@redhat.com>
40012
40013         announce-gen: use a better key-server host name
40014         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40015         it may be more consistently reliable.  Suggested by Werner Koch
40016         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40017
40018 2008-06-01  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40021         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40022
40023 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40024
40025         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40026
40027 2008-06-01  Bruno Haible  <bruno@clisp.org>
40028
40029         New ACL tests.
40030         * tests/test-file-has-acl.sh: New file.
40031         * tests/test-file-has-acl.c: New file.
40032         * tests/test-set-mode-acl.sh: New file.
40033         * tests/test-set-mode-acl.c: New file.
40034         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40035         * tests/test-copy-acl.c: New file.
40036         * modules/acl-tests: New file, based on modules/copy-file-tests.
40037         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40038         (Depends-on): Add acl-tests.
40039         (configure.ac): Remove checks.
40040         (Makefile.am): Don't create test-sameacls program here any more.
40041
40042 2008-06-01  Bruno Haible  <bruno@clisp.org>
40043
40044         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40045         * tests/test-sameacls.c: Include progname.h.
40046         (main): Invoke set_program_name. Portability fixes for MacOS X,
40047         Solaris, HP-UX.
40048
40049 2008-06-01  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40052         function.
40053         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40054
40055 2008-06-01  Bruno Haible  <bruno@clisp.org>
40056
40057         * modules/rpmatch (Depends-on): Add strdup.
40058
40059 2008-06-01  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/pipe.c: Include unistd-safer.h.
40062         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40063         * modules/pipe (Depends-on): Add unistd-safer.
40064
40065 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40066
40067         * modules/autobuild (configure.ac): Call AB_INIT.
40068
40069 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40070
40071         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40072         Suggested by Bruno Haible <bruno@clisp.org>.
40073
40074 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40075
40076         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40077         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40078         <bruno@clisp.org>.
40079
40080 2008-05-29  Eric Blake  <ebb9@byu.net>
40081
40082         Prefer new POSIX 200x interfaces over futimesat.
40083         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40084         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40085         when available.
40086         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40087
40088 2008-05-28  Bruno Haible  <bruno@clisp.org>
40089
40090         * modules/stpcpy (License): Change to LGPLv2+.
40091         Requested by David Lutterkort <dlutter@redhat.com>.
40092
40093 2008-05-27  Bruno Haible  <bruno@clisp.org>
40094
40095         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40096         current mingw.
40097         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40098
40099 2008-05-27  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/iconv_open (Link): New section, from module 'iconv'.
40102         * modules/striconv (Link): Likewise.
40103         * modules/striconveh (Link): Likewise.
40104         * modules/xstriconv (Link): Likewise.
40105         * modules/unicodeio (Link): Likewise.
40106         * modules/propername (Link): Likewise.
40107         Reported by Jim Meyering.
40108
40109 2008-05-26  Jim Meyering  <meyering@redhat.com>
40110
40111         sha256: do not artificially restrict buffer length to be < 2^32
40112         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40113         uint32_t to size_t.
40114         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40115         to match.
40116
40117         avoid unaligned access errors, e.g., on sparc
40118         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40119         direct access through a possibly-unaligned uint64* pointer.
40120         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40121         direct access through a possibly-unaligned uint32* pointer.
40122         Prompted by this patch from Tom "spot" Callaway:
40123         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40124
40125         sha512.c: fix typo in comment
40126         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40127
40128 2008-05-25  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40131         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40132         (Makefile.am): Update lib_SOURCES.
40133
40134 2008-05-25  Bruno Haible  <bruno@clisp.org>
40135
40136         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40137
40138 2008-05-25  Jim Meyering  <meyering@redhat.com>
40139
40140         useless-if-before-free: freed expr may have white-space differences
40141         * build-aux/useless-if-before-free: Recognize cases in which the
40142         freed expression differs from the tested one in embedded white
40143         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40144         $1 was used, so we can't make any regexp shy.  Improved tests now
40145         detect this.
40146
40147         useless-if-before-free: accept white space in the expression.
40148         * build-aux/useless-if-before-free: For now, any white space
40149         in the expression must be identical in the free argument.
40150
40151         useless-if-before-free: efficiency tweak
40152         * build-aux/useless-if-before-free: Make the expression-matching
40153         regexp "shy".
40154         Make the *outer* regexp shy, not the expr-matching one.
40155
40156         update code-in-comment to accept cast of free arg
40157         * build-aux/useless-if-before-free: Update regexp.
40158
40159 2008-05-25  Bruno Haible  <bruno@clisp.org>
40160
40161         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40162         * modules/copy-file-tests (Files, Makefile.am): Update.
40163         * tests/test-copy-file.c (func_test_copy): Update.
40164
40165 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40166
40167         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40168
40169 2008-05-23  Bruno Haible  <bruno@clisp.org>
40170
40171         Improve support for ACLs on OSF/1.
40172         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40173         Remove fallback for unknown flavors of ACLs.
40174
40175 2008-05-22  Bruno Haible  <bruno@clisp.org>
40176
40177         Add support for ACLs on OSF/1.
40178         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40179         replacements.
40180         (acl_free_text): New macro fallback.
40181         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40182         acl_free.
40183         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40184         acl_free_text function. Require AC_C_INLINE.
40185
40186 2008-05-22  Bruno Haible  <bruno@clisp.org>
40187
40188         Make copy_acl work on MacOS X 10.5.
40189         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40190         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40191         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40192         If MODE_INSIDE_ACL, don't assume that every system has the same text
40193         representation for ACLs as FreeBSD.
40194         * lib/copy-acl.c (copy_acl): Add support for platforms with
40195         !MODE_INSIDE_ACL.
40196         * lib/file-has-acl.c (file_has_acl): Likewise.
40197         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40198         FreeBSD, MacOS X, or IRIX, respectively.
40199
40200 2008-05-22  Bruno Haible  <bruno@clisp.org>
40201
40202         * lib/acl.h: Don't include <sys/acl.h>.
40203         (GETACLCNT): Move fallback to lib/acl-internal.h.
40204         * lib/acl-internal.h: Include <sys/acl.h> here.
40205         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40206
40207 2008-05-22  Bruno Haible  <bruno@clisp.org>
40208
40209         Split off copy_acl function to separate file.
40210         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40211         * lib/acl.c (copy_acl): Moved function to separate file.
40212         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40213         * modules/acl (Files): Add lib/copy-acl.c.
40214         (Makefiles.am): Augment lib_SOURCES.
40215
40216 2008-05-22  Bruno Haible  <bruno@clisp.org>
40217
40218         * modules/copy-file-tests: New file.
40219         * tests/test-copy-file.sh: New file.
40220         * tests/test-copy-file.c: New file.
40221         * tests/test-copy-file-sameacls.c: New file.
40222
40223 2008-05-22  Eric Blake  <ebb9@byu.net>
40224
40225         Avoid gcc warning.
40226         * tests/test-memcmp.c (main): Pass NULL indirectly.
40227
40228 2008-05-21  Bruno Haible  <bruno@clisp.org>
40229
40230         Add reference doc about ACLs.
40231         * doc/acl-resources.txt: New file.
40232         * doc/acl-cygwin.txt: New file.
40233
40234 2008-05-21  Bruno Haible  <bruno@clisp.org>
40235
40236         Avoid one more warning from gcc.
40237         * lib/vasnprintf.c (IF_LINT): Update comments.
40238         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40239
40240 2008-05-21  Jim Meyering  <meyering@redhat.com>
40241
40242         avoid a warning from gcc
40243         * lib/vasnprintf.c (IF_LINT): Define.
40244         (scale10_round_decimal_long_double):
40245         Use it to avoid a "may be used uninitialized" warning.
40246         (scale10_round_decimal_double): Likewise.
40247
40248 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40249
40250         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40251         declared.
40252
40253 2008-05-20  Bruno Haible  <bruno@clisp.org>
40254
40255         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40256         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40257
40258 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40259
40260         * modules/memcmp-tests: New file.
40261         * tests/test-memcmp.c: New file.
40262
40263 2008-05-19  Bruno Haible  <bruno@clisp.org>
40264
40265         * modules/propername (Notice, configure.ac): Put quoted "..." into
40266         --keyword option.
40267         * lib/propername.h: Update comments accordingly.
40268         Reported by Eric Blake.
40269
40270 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40271
40272         * modules/getpass-gnu (Depends-on): Add fseeko.
40273
40274 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40275
40276         * modules/base64-tests: New file.
40277
40278 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40279
40280         * lib/base64.c (base64_decode_ctx): If a decode context structure
40281         was passed in use it to ignore newlines.  If a context structure
40282         was _not_ passed in, continue to treat newlines as garbage (this
40283         is the historical behavior).  Formerly base64_decode.
40284         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40285         takes a decode context structure.
40286         * lib/base64.h (base64_decode): Macro for four-argument calls.
40287         (base64_decode_alloc): Likewise.
40288         * lib/base64.c (base64_decode_ctx): If a decode context structure
40289         was passed in use it to ignore newlines.  If a context structure
40290         was _not_ passed in, continue to treat newlines as garbage (this
40291         is the historical behavior).  Formerly base64_decode.
40292         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40293         takes a decode context structure.
40294         * lib/base64.h (base64_decode): Macro for four-argument calls.
40295         (base64_decode_alloc): Likewise.
40296
40297 2008-05-19  Jim Meyering  <meyering@redhat.com>
40298
40299         avoid a warning from gcc
40300         * lib/trim.c (IF_LINT): Define.
40301         (trim2): Use it to avoid a "may be used uninitialized" warning.
40302
40303         Fix doc typo.
40304         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40305
40306 2008-05-19  Bruno Haible  <bruno@clisp.org>
40307
40308         * doc/glibc-functions/getpass.texi: Document limits of other
40309         implementations.
40310
40311 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40312             Bruno Haible <bruno@clisp.org>
40313
40314         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40315
40316 2008-05-18  Bruno Haible  <bruno@clisp.org>
40317
40318         * modules/propername: New file, from GNU gettext.
40319         * lib/propername.h: New file, from GNU gettext.
40320         * lib/propername.c: New file, from GNU gettext.
40321         * MODULES.html.sh (Internationalization functions): Add propername.
40322
40323 2008-05-16  Jim Meyering  <meyering@redhat.com>
40324             Bruno Haible  <bruno@clisp.org>
40325
40326         Avoid some warnings from "gcc -Wshadow".
40327         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40328
40329 2008-05-15  Eric Blake  <ebb9@byu.net>
40330
40331         Extend previous patch to cygwin 1.7.0.
40332         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40333         fast implementation in cygwin >= 1.7.0.
40334         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40336
40337 2008-05-15  Bruno Haible  <bruno@clisp.org>
40338
40339         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40340         implementation in glibc >= 2.9.
40341         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40343
40344 2008-05-15  Bruno Haible  <bruno@clisp.org>
40345
40346         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40347         (Unicode string functions): Add unilbrk/*.
40348         Reported by Karl Berry.
40349
40350 2008-05-15  Eric Blake  <ebb9@byu.net>
40351
40352         Fix violation of <stdbool.h> replacement in regex.
40353         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40354         * lib/regexec.c (re_search_internal): Likewise.
40355         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40356
40357 2008-05-15  Jim Meyering  <meyering@redhat.com>
40358
40359         avoid distracting test output when git or cvs is not found
40360         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40361         * tests/test-vc-list-files-git.sh: Likewise.
40362
40363 2008-05-15  Eric Blake  <ebb9@byu.net>
40364
40365         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40366         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40367         glibc version.
40368         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40369         * doc/posix-functions/strstr.texi (strstr): Likewise.
40370         * lib/str-two-way.h (MAX): Sychronize with glibc.
40371
40372 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40373
40374         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40375         opr.ctx_type.
40376         (calc_first): Initialize constraint field.
40377         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40378         Fix grammar.
40379         (duplicate_node): Merge constraint field for all node types.
40380         (calc_eclosure_iter): Look at constraint field for all node types.
40381         * lib/regex_internal.c (create_cd_newstate): Don't look at
40382         opr.ctx_type.
40383
40384 2008-05-14  Bruno Haible  <bruno@clisp.org>
40385
40386         Help GCC to do better code generation.
40387         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40388         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40389         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40390         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40391         Declare with attribute 'malloc' if supported.
40392
40393 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40394
40395         use "echo STR|wc -c" rather than unportable "expr length STR"
40396         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40397         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40398
40399 2008-05-14  Jim Meyering  <meyering@redhat.com>
40400
40401         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40402         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40403         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40404         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40405         via Collin Lasse.
40406
40407 2008-05-14  Eric Blake  <ebb9@byu.net>
40408
40409         Avoid quadratic growth in gl_LIBSOURCES.
40410         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40411         Suggested by Bruno Haible.
40412
40413         Test xmemdup0.
40414         * modules/xmemdup0-tests: New file.
40415         * tests/test-xmemdup0.c: Likewise.
40416
40417 2008-05-13  Eric Blake  <ebb9@byu.net>
40418
40419         Split xmemdup0 into its own module.
40420         * modules/xmemdup0: New file.
40421         * lib/xmemdup0.h: Likewise.
40422         * lib/xmemdup0.c: Likewise.
40423         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40424         * lib/xalloc.h (xmemdup0): Remove.
40425         * lib/xmalloc.c (xmemdup0): Likewise.
40426
40427 2008-05-13  Eric Blake  <ebb9@byu.net>
40428             Bruno Haible  <bruno@clisp.org>
40429
40430         Reduce number of forks required during autoconf.
40431         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40432         and gl_LIBSOURCES_DIR.
40433         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40434         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40435         m4_syscmd per file.
40436         <m4_foreach_w>: Move...
40437         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40438
40439 2008-05-13  Eric Blake  <ebb9@byu.net>
40440
40441         * gnulib-tool: Fix various comment typos.
40442
40443 2008-05-12  Bruno Haible  <bruno@clisp.org>
40444
40445         Tailor the linebreaking algorithm.
40446         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40447
40448 2008-05-12  Bruno Haible  <bruno@clisp.org>
40449
40450         Update to Unicode 5.0.0.
40451         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40452         LBP_JV, LBP_JT. Redistribute values.
40453         (unilbrk_table): Change size.
40454         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40455         Unicode TR#14 rev. 22.
40456         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40457         LBP_JV, LBP_JT. Redistribute values.
40458         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40459         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40460         Update.
40461         * lib/unilbrk/lbrkprop1.h: Regenerated.
40462         * lib/unilbrk/lbrkprop2.h: Regenerated.
40463         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40464         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40465         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40466         Likewise.
40467         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40468         Likewise.
40469         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40470         result.
40471         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40472         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40473         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40474         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40475         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40476         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40477
40478 2008-05-11  Bruno Haible  <bruno@clisp.org>
40479
40480         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40481
40482 2008-05-11  Bruno Haible  <bruno@clisp.org>
40483
40484         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40485         * modules/unilbrk/gen-lbrk: New file.
40486
40487 2008-05-11  Bruno Haible  <bruno@clisp.org>
40488
40489         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40490         * m4/sha512.m4 (gl_SHA512): Likewise.
40491
40492 2008-05-11  Jim Meyering  <meyering@redhat.com>
40493
40494         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40495         * modules/crypto/sha256: New file.
40496         * modules/crypto/sha512: Likewise.
40497         * lib/sha256.c: Likewise.
40498         * lib/sha256.h: Likewise.
40499         * lib/sha512.c: Likewise.
40500         * lib/sha512.h: Likewise.
40501         * lib/u64.h: Likewise.
40502         * m4/sha256.m4: Likewise.
40503         * m4/sha512.m4: Likewise.
40504         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40505
40506 2008-05-10  Bruno Haible  <bruno@clisp.org>
40507
40508         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40509         (Input/Output <stdio.h>): Add xprintf.
40510         (Signal handling <signal.h>): Add strsignal.
40511         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40512         (Core language properties): Add func.
40513         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40514         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40515         strings.
40516         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40517         (Input/output): New section.
40518         (File system functions): Add openat-die, stat-macros.
40519         (Networking functions): Add sockets.
40520         (Unicode string functions): Add unictype/*.
40521         (Support for building libraries and executables): Add gperf.
40522         (Support for building documentation): Add agpl-3.0.
40523         (Misc): Add nocrash.
40524
40525 2008-05-10  Bruno Haible  <bruno@clisp.org>
40526
40527         * modules/unictype/gen-ctype: New file.
40528
40529 2008-05-10  Jim Meyering  <meyering@redhat.com>
40530
40531         Make chdir-safer.c more efficient on a system with no symlinks.
40532         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40533         also if ELOOP is zero.  Suggested by Bruno Haible.
40534
40535         Make chdir-safer.c slightly safer.
40536         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40537         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40538
40539         Avoid compile failure on systems without ELOOP (like mingw).
40540         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40541         Reported by Bruno Haible.
40542
40543 2008-05-10  Bruno Haible  <bruno@clisp.org>
40544
40545         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40546         (is_utf8_encoding): Use a case-insensitive comparison.
40547         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40548         streq.
40549
40550 2008-05-10  Bruno Haible  <bruno@clisp.org>
40551
40552         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40553         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40554         * lib/unilbrk/ulc-common.h (iconv_string_length,
40555         iconv_string_keeping_offsets): Remove declarations.
40556         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40557         Don't include <iconv.h>, streq.h, xsize.h.
40558         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40559         conversion.
40560         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40561         <iconv.h>, streq.h, xsize.h.
40562         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40563         conversion.
40564         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40565         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40566         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40567         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40568
40569 2008-05-10  Bruno Haible  <bruno@clisp.org>
40570
40571         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40572         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40573
40574         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40575         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40576
40577         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40578         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40579
40580         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40581         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40582
40583         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40584         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40585
40586         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40587         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40588
40589         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40590         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40591
40592         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40593         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40594
40595 2008-05-10  Bruno Haible  <bruno@clisp.org>
40596
40597         Split up 'linebreak' module.
40598         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40599         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40600         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40601         modifications.
40602         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40603         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40604         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40605         lib/linebreak.c.
40606         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40607         lib/linebreak.c.
40608         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40609         lib/linebreak.c.
40610         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40611         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40612         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40613         lib/linebreak.c.
40614         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40615         lib/linebreak.c.
40616         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40617         lib/linebreak.c.
40618         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40619         lib/linebreak.c.
40620         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40621         lib/linebreak.c.
40622         * modules/unilbrk/base: New file.
40623         * modules/unilbrk/tables: New file.
40624         * modules/unilbrk/u8-possible-linebreaks: New file.
40625         * modules/unilbrk/u16-possible-linebreaks: New file.
40626         * modules/unilbrk/u32-possible-linebreaks: New file.
40627         * modules/unilbrk/ulc-common: New file.
40628         * modules/unilbrk/ulc-possible-linebreaks: New file.
40629         * modules/unilbrk/u8-width-linebreaks: New file.
40630         * modules/unilbrk/u16-width-linebreaks: New file.
40631         * modules/unilbrk/u32-width-linebreaks: New file.
40632         * modules/unilbrk/ulc-width-linebreaks: New file.
40633         * lib/linebreak.h: Remove file.
40634         * lib/linebreak.c: Remove file.
40635         * m4/linebreak.m4: Remove file.
40636         * modules/linebreak: Remove file.
40637         * NEWS: Mention the changes.
40638
40639 2008-05-09  Eric Blake  <ebb9@byu.net>
40640
40641         Add xmemdup0.
40642         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40643         implementation.
40644         * lib/xmalloc.c (xmemdup0): New C implementation.
40645
40646 2008-05-08  Bruno Haible  <bruno@clisp.org>
40647
40648         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40649
40650 2008-05-07  Eric Blake  <ebb9@byu.net>
40651
40652         Support cross-compilation of <wctype.h>.
40653         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40654         AC_CACHE_CHECK.
40655
40656 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40657
40658         * build-aux/vc-list-files: Add support for bzr.
40659
40660 2008-05-03  Jim Meyering  <meyering@redhat.com>
40661
40662         avoid failed assertion with tight malloc
40663         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40664
40665 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40666
40667         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40668         are needed from arpa/inet.h.
40669         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40670         Reported by Bruno Haible.
40671
40672 2008-05-02  Jim Meyering  <meyering@redhat.com>
40673
40674         avoid compilation error on FreeBSD 6
40675         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40676
40677 2008-05-01  Jim Meyering  <meyering@redhat.com>
40678
40679         useless-if-before-free: correct --help's exit status description
40680         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40681         for one or more matches, etc.  Reported by Bruno Haible.
40682
40683         vc-list-files: make the stand-alone gnulib test work
40684         * modules/vc-list-files-tests (configure.ac):
40685         Define and AC_SUBST abs_aux_dir.
40686         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40687         $(abs_top_srcdir) to each script and having each of them
40688         duplicate the work of setting PATH, set PATH here, using
40689         the new variable, abs_aux_dir instead.
40690         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40691         * tests/test-vc-list-files-git.sh: Likewise.
40692         Reported by Bruno Haible.
40693
40694 2008-05-01  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40697         reallocation. Rename 'done' to 'found_delimiter'.
40698
40699 2008-05-01  Jim Meyering  <meyering@redhat.com>
40700
40701         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40702         * build-aux/vc-list-files: Use `...`, not $(...).
40703
40704 2008-04-30  Jim Meyering  <meyering@redhat.com>
40705
40706         add tests for vc-list-files
40707         * modules/vc-list-files-tests: New module.
40708         * tests/test-vc-list-files-cvs.sh: New file.
40709         * tests/test-vc-list-files-git.sh: New file.
40710
40711         avoid a warning from gcc
40712         * lib/getndelim2.c (IF_LINT): Define.
40713         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40714
40715         vc-list-files: work properly with build-aux/cvsu, too
40716         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40717         to all cvs-based clauses.
40718
40719         vc-list-files: work properly in the CVS+awk case, too
40720         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40721
40722         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40723         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40724         take more than one file argument, so .  Add quotes, just in case $dir
40725         ever contains a shell meta-character.  Prompted by Soren Hansen in
40726         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40727
40728 2008-04-29  Eric Blake  <ebb9@byu.net>
40729
40730         Optimize getndelim2 to use block operations when possible.
40731         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40732         freadseek, and memchr2.
40733         * lib/getndelim2.c (getndelim2): Use them for block reads.
40734
40735 2008-04-29  Bruno Haible  <bruno@clisp.org>
40736
40737         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40738         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40739         * modules/inet_ntop (Depends-on): Add extensions.
40740         * modules/inet_pton (Depends-on): Likewise.
40741         Reported by Simon Josefsson.
40742
40743 2008-04-29  Jim Meyering  <meyering@redhat.com>
40744
40745         When the is more than one match in a block, match all of them.
40746         * build-aux/useless-if-before-free: Iterate through each block
40747         until there are no more matches.
40748
40749         Fix broken useless-if-before-free script.
40750         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40751         the expression to match cast of argument to free-like function.
40752
40753 2008-04-29  Eric Blake  <ebb9@byu.net>
40754
40755         Use new header.
40756         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40757
40758 2008-04-29  Jim Meyering  <meyering@redhat.com>
40759
40760         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40761         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40762         by gnulib to exist and to declare e.g., inet_ntop.
40763         Don't include "inet_ntop.h", now removed.
40764
40765         * m4/arpa_inet_h.m4: Remove trailing blanks.
40766
40767 2008-04-29  Eric Blake  <ebb9@byu.net>
40768
40769         Silence valgrind on safe reads beyond potential array bounds.
40770         * lib/rawmemchr.valgrind: New file.
40771         * lib/strchrnul.valgrind: Likewise.
40772         * modules/rawmemchr (Files): Distribute new file.
40773         * modules/strchrnul (Files): Likewise.
40774         Suggested by Bruno Haible.
40775
40776 2008-04-29  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40779         (inet_ntop, inet_pton): Change portability warning's wording.
40780         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40781         Invoke gl_CHECK_NEXT_HEADERS.
40782         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40783         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40784         set ARPA_INET_H.
40785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40786         * modules/arpa_inet (Description): No longer only for systems that
40787         lack it.
40788         (Depends-on): Add include_next.
40789         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40790         HAVE_ARPA_INET_H.
40791
40792 2008-04-29  Jim Meyering  <meyering@redhat.com>
40793
40794         * modules/mkdir (License): Re-license as LGPLv2+.
40795
40796 2008-04-29  Bruno Haible  <bruno@clisp.org>
40797
40798         * modules/rawmemchr (Maintainer): Set to Eric.
40799         * modules/strchrnul (Maintainer): Likewise.
40800
40801 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40802
40803         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40804         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40805
40806         * modules/arpa_inet (arpa/inet.h): Use them.
40807
40808 2008-04-28  Eric Blake  <ebb9@byu.net>
40809
40810         Test getndelim2.
40811         * modules/getndelim2-tests: New file.
40812         * tests/test-getndelim2.c: Likewise.
40813         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40814         stream.
40815         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40816
40817         * MODULES.html.sh: Document new module.
40818
40819 2008-04-20  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/c-stack.c (die): Use raise.
40822         * modules/c-stack (Depends-on): Add raise.
40823
40824 2008-04-28  Bruno Haible  <bruno@clisp.org>
40825
40826         Expect rpmatch to be declared.
40827         * lib/yesno.c (rpmatch): Remove declaration.
40828
40829         Declare rpmatch.
40830         * lib/stdlib.in.h (rpmatch): New declaration.
40831         * lib/rpmatch.c: Include <stdlib.h> first.
40832         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40833         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40835         HAVE_RPMATCH.
40836         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40837         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40838         (Include): Set to <stdlib.h>.
40839         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40840         HAVE_RPMATCH.
40841         * NEWS: Document the change.
40842
40843 2008-04-28  Bruno Haible  <bruno@clisp.org>
40844
40845         Change rpmatch to use nl_langinfo when appropriate.
40846         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40847         (N_): New macro.
40848         (localized_pattern): New function/macro.
40849         (try): Remove match, nomatch arguments. Copy the pattern into safe
40850         memory before caching it.
40851         (rpmatch): Use localized_pattern. Add translator comments.
40852         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40853         Suggested by Eric Blake.
40854         * modules/rpmatch (Depends-on): Add stdbool.
40855
40856 2008-04-28  Eric Blake  <ebb9@byu.net>
40857
40858         Add rawmemchr module, matching glibc.
40859         * modules/string (Makefile.am): New indicator.
40860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40861         * lib/string.in.h (rawmemchr): Declare when appropriate.
40862         * modules/rawmemchr: New file.
40863         * m4/rawmemchr.m4: Likewise.
40864         * lib/rawmemchr.c: Likewise.
40865         * modules/rawmemchr-tests: Likewise.
40866         * tests/test-rawmemchr.c: Likewise.
40867         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40868         module.
40869         * modules/strchrnul (Depends-on): Add rawmemchr.
40870         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40871
40872         Whitespace cleanup.
40873         * tests/test-strchrnul.c: Reindent.
40874         * lib/strchrnul.c: Likewise.
40875
40876         Optimize and test strchrnul.
40877         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40878         * modules/strchrnul-tests: New file.
40879         * tests/test-strchrnul.c: Likewise.
40880
40881         Remove intprops dependency.
40882         * modules/memchr (Depends-on): Remove intprops.
40883         * modules/memrchr (Depends-on): Likewise.
40884         * modules/memchr2 (Depends-on): Likewise.
40885         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40886         * lib/memrchr.c (__memrchr): Likewise.
40887         * lib/memrchr2.c (memchr2): Likewise.
40888         Reported by Simon Josefsson.
40889
40890 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40891
40892         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40893         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40894
40895 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40896
40897         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40898
40899         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40900
40901         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40902
40903         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40904         declarations.
40905         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40906
40907         * m4/inet_pton.m4: Don't check for header files.
40908
40909         * m4/inet_ntop.m4: Don't check for header files.
40910
40911 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40912
40913         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40914         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40915         trigger for cygwin).
40916         Reported by Bruno Haible  <bruno@clisp.org>.
40917
40918 2008-04-28  Bruno Haible  <bruno@clisp.org>
40919
40920         * doc/posix-functions/strdup.texi: Mention mingw problem.
40921
40922 2008-04-27  Bruno Haible  <bruno@clisp.org>
40923
40924         * modules/stat-time-tests (Depends-on): Add sleep.
40925         * tests/test-stat-time.c (force_unlink): New function.
40926         (cleanup): Use it.
40927         (test_mtime): Remove the ctime related tests.
40928         (test_ctime): New function, containing the ctime related tests.
40929         (main): Call test_ctime, except on native Windows platforms.
40930
40931 2008-04-27  Bruno Haible  <bruno@clisp.org>
40932
40933         * lib/rpmatch.c (rpmatch): Add some comments.
40934         Reported by James Youngman <jay@gnu.org>.
40935
40936 2008-04-27  Bruno Haible  <bruno@clisp.org>
40937
40938         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40939         quiet NaNs.
40940
40941 2008-04-27  Bruno Haible  <bruno@clisp.org>
40942
40943         Make test-yesno.sh work on mingw.
40944         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40945         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40946         (main): Set stdin to binary mode.
40947         * modules/yesno-tests (Depends-on): Add binary-io.
40948
40949 2008-04-27  Bruno Haible  <bruno@clisp.org>
40950
40951         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40952         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40953         argument that lie outside the IEEE 854 domain.
40954         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40955         (gl_ISFINITE): Use it.
40956         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40957
40958 2008-04-27  Bruno Haible  <bruno@clisp.org>
40959
40960         Allow local renaming in config.h.
40961         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40962
40963 2008-04-27  Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/memchr.c (__memchr): Change type of 'i'.
40966         * lib/memchr2.c (memchr2): Likewise.
40967
40968 2008-04-26  Eric Blake  <ebb9@byu.net>
40969         and Bruno Haible  <bruno@clisp.org>
40970
40971         Optimize and test memrchr.
40972         * modules/memrchr (Depends-on): Add intprops.
40973         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40974         * modules/memrchr-tests: New file.
40975         * tests/test-memrchr.c: New file.
40976
40977 2008-04-26  Bruno Haible  <bruno@clisp.org>
40978
40979         Add tentative support for DragonFly BSD.
40980         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40981         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40982         fp.
40983         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40984         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40985         * lib/fpurge.c (fpurge): Likewise.
40986         * lib/freadable.c (freaadable): Likewise.
40987         * lib/freadahead.c (freadahead): Likewise.
40988         * lib/freading.c (freading): Likewise.
40989         * lib/freadptr.c (freadptr): Likewise.
40990         * lib/freadseek.c (freadptrinc): Likewise.
40991         * lib/fseeko.c (fseeko): Likewise.
40992         * lib/fseterr.c (fseterr): Likewise.
40993         * lib/fwritable.c (fwritable): Likewise.
40994         * lib/fwriting.c (fwriting): Likewise.
40995
40996 2008-04-26  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/stdio-impl.h: New file.
40999         * lib/fbufmode.c: Include stdio-impl.h.
41000         (fbufmode): Use fp_, remove redundant #defines.
41001         * lib/fflush.c: Include stdio-impl.h.
41002         (clear_ungetc_buffer): Remove redundant #defines.
41003         * lib/fpurge.c: Include stdio-impl.h.
41004         (fpurge): Remove redundant #defines.
41005         * lib/freadable.c: Include stdio-impl.h.
41006         (freadable): Remove redundant #defines.
41007         * lib/freadahead.c: Include stdio-impl.h.
41008         (freadahead): Remove redundant #defines.
41009         * lib/freading.c: Include stdio-impl.h.
41010         (freading): Remove redundant #defines.
41011         * lib/freadptr.c: Include stdio-impl.h.
41012         (freadptr): Remove redundant #defines.
41013         * lib/freadseek.c: Include stdio-impl.h.
41014         (freadptrinc): Remove redundant #defines.
41015         * lib/fseeko.c: Include stdio-impl.h.
41016         (rpl_fseeko): Remove redundant #defines.
41017         * lib/fseterr.c: Include stdio-impl.h.
41018         (fseterr): Remove redundant #defines.
41019         * lib/fwritable.c: Include stdio-impl.h.
41020         (fwritable: Remove redundant #defines.
41021         * lib/fwriting.c: Include stdio-impl.h.
41022         (fwriting): Remove redundant #defines.
41023         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41024         * modules/fflush (Files): Likewise.
41025         * modules/fpurge (Files): Likewise.
41026         * modules/freadable (Files): Likewise.
41027         * modules/freadahead (Files): Likewise.
41028         * modules/freading (Files): Likewise.
41029         * modules/freadptr (Files): Likewise.
41030         * modules/freadseek (Files): Likewise.
41031         * modules/fseeko (Files): Likewise.
41032         * modules/fseterr (Files): Likewise.
41033         * modules/fwritable (Files): Likewise.
41034         * modules/fwriting (Files): Likewise.
41035
41036 2008-04-26  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41039         restore_seek_optimization, update_fpos_cache): New functions, extracted
41040         from rpl_fflush.
41041         (rpl_fflush): Use them.
41042         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41043         (gl_REPLACE_FFLUSH): Use it.
41044
41045 2008-04-26  Bruno Haible  <bruno@clisp.org>
41046
41047         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41048         on Solaris.
41049         * tests/test-xstrtoimax.sh: Likewise.
41050         * tests/test-xstrtoumax.sh: Likewise.
41051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41052
41053 2008-04-26  Bruno Haible  <bruno@clisp.org>
41054
41055         * modules/memchr-tests: New file.
41056         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41057
41058 2008-04-26  Eric Blake  <ebb9@byu.net>
41059             Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/memchr.c: Include intprops.h.
41062         (__memchr): Optimize parallel detection of matching bytes. Rename local
41063         variables. Add explanatory comments.
41064
41065 2008-04-26  Bruno Haible  <bruno@clisp.org>
41066
41067         Fix module 'memchr', broken since 2000-10-28.
41068         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41069
41070 2008-04-26  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41073         comments.
41074
41075 2008-04-25  Eric Blake  <ebb9@byu.net>
41076
41077         Use native fstatat on cygwin 1.7.0.
41078         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41079         first.
41080
41081 2008-04-23  Eric Blake  <ebb9@byu.net>
41082
41083         Improve memchr2 performance.
41084         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41085         NUL bytes.
41086         * modules/memchr2 (Depends-on): Use intprops.h.
41087
41088 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41089
41090         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41091         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41092         <blp@cs.stanford.edu>.
41093
41094 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41095
41096         * lib/arpa_inet.in.h: New file.
41097
41098         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41099         (Makefile.am): Sed in substitute header file.
41100
41101         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41102         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41103
41104         * modules/inet_ntop (configure.ac): Use
41105         gl_ARPA_INET_MODULE_INDICATOR.
41106
41107         * modules/inet_pton (configure.ac): Use
41108         gl_ARPA_INET_MODULE_INDICATOR.
41109
41110 2008-04-22  Jim Meyering  <meyering@redhat.com>
41111
41112         * modules/verify (License): Re-license as LGPLv2+.
41113
41114 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41115
41116         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41117         parameter to void* as per POSIX standard (MinGW uses char*).
41118
41119 2008-04-21  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41122         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41123         Define to replacements if REPLACE_ISWCNTRL is 1.
41124         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41125         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41126         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41127         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41128         what it fixes.
41129         * doc/posix-functions/iswalpha.texi: Likewise.
41130         * doc/posix-functions/iswblank.texi: Likewise.
41131         * doc/posix-functions/iswcntrl.texi: Likewise.
41132         * doc/posix-functions/iswdigit.texi: Likewise.
41133         * doc/posix-functions/iswgraph.texi: Likewise.
41134         * doc/posix-functions/iswlower.texi: Likewise.
41135         * doc/posix-functions/iswprint.texi: Likewise.
41136         * doc/posix-functions/iswpunct.texi: Likewise.
41137         * doc/posix-functions/iswspace.texi: Likewise.
41138         * doc/posix-functions/iswupper.texi: Likewise.
41139         * doc/posix-functions/iswxdigit.texi: Likewise.
41140         Reported by Alain Guibert.
41141
41142 2008-04-21  Bruno Haible  <bruno@clisp.org>
41143
41144         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41145         Patch by Alain Guibert.
41146
41147 2008-04-21  Bruno Haible  <bruno@clisp.org>
41148
41149         Fix test failures on mingw.
41150         * tests/test-xstrtol.c (print_no_progname): New function.
41151         (main): Install it in error_print_progname hook.
41152         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41153         * tests/test-xstrtoimax.sh: Likewise.
41154         * tests/test-xstrtoumax.sh: Likewise.
41155
41156 2008-04-21  Bruno Haible  <bruno@clisp.org>
41157
41158         Fix test failure on mingw.
41159         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41160
41161 2008-04-21  Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41164         Actually assign a value.
41165
41166 2008-04-20  Bruno Haible  <bruno@clisp.org>
41167
41168         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41169         take 2.
41170         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41171         'canonicalize-lgpl' module is also used.
41172         * lib/canonicalize-lgpl.c: Undo last change.
41173         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41174
41175 2008-04-20  Bruno Haible  <bruno@clisp.org>
41176
41177         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41178         config.h. Provide _mkdir based fallback for mingw.
41179         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41180         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41181         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41182         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41183         rather than defining mkdir in config.h.
41184         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41185         (gl_SYS_STAT_H_DEFAULTS): New macro.
41186         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41187         HAVE_IO_H any more.
41188         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41189         HAVE_DECL_MKDIR and HAVE_IO_H.
41190
41191 2008-04-20  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/isapipe.c: Port to native Windows platforms.
41194
41195 2008-04-20  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41198
41199 2008-04-21  Eric Blake  <ebb9@byu.net>
41200
41201         Work around preprocessors that don't handle UINTMAX_MAX.
41202         * lib/memchr2.c (memchr2): Avoid embedded #if.
41203         Reported by Alain Guibert, fix suggested by Bruno Haible.
41204
41205 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41206
41207         * doc/posix-functions/strftime.texi (strftime): Explain better
41208         Windows incompatibility.  Suggested by Micah Cowan
41209         <micah@cowan.name>.
41210
41211 2008-04-20  Bruno Haible  <bruno@clisp.org>
41212
41213         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41214         unistr/u8-mblen.
41215
41216 2008-04-20  Bruno Haible  <bruno@clisp.org>
41217
41218         Fix test failure on platforms with non-GNU iconv.
41219         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41220         (U_TO_U8): Use it, rather than u16_to_u8.
41221         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41222         units at the end of the input string.
41223         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41224
41225 2008-04-20  Bruno Haible  <bruno@clisp.org>
41226
41227         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41228         when the resulting length is 0.
41229         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41230
41231 2008-04-20  Bruno Haible  <bruno@clisp.org>
41232
41233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41234         works.
41235         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41236
41237 2008-04-20  Bruno Haible  <bruno@clisp.org>
41238
41239         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41240         * modules/tsearch-tests (configure.ac): Test for initstate function.
41241
41242 2008-04-20  Bruno Haible  <bruno@clisp.org>
41243
41244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41245         for nlink_t if missing.
41246         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41247
41248 2008-04-19  Bruno Haible  <bruno@clisp.org>
41249
41250         Work around snprintf bug on Linux libc5.
41251         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41253         gl_SNPRINTF_SIZE1.
41254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41255         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41256         that test failed.
41257         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41258         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41259         * modules/snprintf (Files): Add m4/printf.m4.
41260         * modules/vsnprintf (Files): Likewise.
41261         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41262         * doc/posix-functions/vsnprintf.texi: Likewise.
41263
41264 2008-04-19  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41267         from 0.0058 to less than 10^-7.
41268
41269 2008-04-19  Bruno Haible  <bruno@clisp.org>
41270
41271         Fix rounding when a precision is given.
41272         * lib/vasnprintf.c (is_borderline): New function.
41273         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41274         9...9x.
41275         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41276         %e, %g.
41277         * tests/test-vasprintf-posix.c (test_function): Likewise.
41278         * tests/test-snprintf-posix.h (test_function): Likewise.
41279         * tests/test-sprintf-posix.h (test_function): Likewise.
41280         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41281         * tests/test-printf-posix.h (test_function): Likewise.
41282         * tests/test-printf-posix.output: Update.
41283         Reported by John Darrington <john@darrington.wattle.id.au> via
41284         Ben Pfaff <blp@cs.stanford.edu>.
41285
41286 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41287
41288         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41289         Suggested by Bruno Haible <bruno@clisp.org>.
41290
41291 2008-04-17  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41294         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41295         implementation.
41296         Patch by Bruce Merry <bmerry@gmail.com>.
41297
41298 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41299
41300         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41301         doesn't work under Windows.
41302
41303 2008-04-16  Bruno Haible  <bruno@clisp.org>
41304
41305         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41306         New macros.
41307         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41308         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41309         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41310         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41311         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41312         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41313         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41314         macros.
41315         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41316         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41317         Northern Sotho, Uighur.
41318
41319 2008-04-16  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41322         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41323         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41324         Reported by Daniel Bergström <daniel@octocode.com>.
41325
41326 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41327             Bruno Haible  <bruno@clisp.org>
41328
41329         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41330         function.
41331         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41332         New functions, mostly extracted from gl_locale_name_default.
41333         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41334
41335 2008-04-16  Eric Blake  <ebb9@byu.net>
41336
41337         Adjust strtod detection to catch glibc 2.7 bug.
41338         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41339         Reported by John Gatewood Ham.
41340
41341 2008-04-16  Bruno Haible  <bruno@clisp.org>
41342
41343         Add tentative support for Linux libc5.
41344         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41345         * lib/fpurge.c (fpurge): Likewise.
41346         * lib/freadable.c (freadable): Likewise.
41347         * lib/freadahead.c (freadahead): Likewise.
41348         * lib/freading.c (freading): Likewise.
41349         * lib/freadptr.c (freadptr): Likewise.
41350         * lib/freadseek.c (freadptrinc): Likewise.
41351         * lib/fseeko.c (rpl_fseeko): Likewise.
41352         * lib/fseterr.c (fseterr): Likewise.
41353         * lib/fwritable.c (fwritable): Likewise.
41354         * lib/fwriting.c (fwriting): Likewise.
41355         Reported by Alain Guibert <alguibert+bts@free.fr>.
41356
41357 2008-04-15  Bruno Haible  <bruno@clisp.org>
41358
41359         * modules/mathl (configure.ac): Define module indicator.
41360
41361 2008-04-15  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/logl.c (logl): Remove unused variables.
41364
41365 2008-04-15  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41368         fails.
41369
41370 2008-04-15  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/trim.c (trim2): Fix argument of isspace() macro.
41373
41374 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41375
41376         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41377         to 0.
41378         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41379
41380 2008-04-14  Bruno Haible  <bruno@clisp.org>
41381
41382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41383         AC_LANG_PROGRAM argument.
41384         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41385         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41387         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41388         * m4/math_h.m4 (gl_MATH_H): Likewise.
41389         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41391         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41392         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41393         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41394         * m4/regex.m4 (gl_REGEX): Likewise.
41395         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41396         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41398         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41400         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41402         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41403
41404 2008-04-14  Jim Meyering  <meyering@redhat.com>
41405
41406         test-strtod: fix typos: s/abs/fabs/
41407         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41408
41409 2008-04-13  Bruno Haible  <bruno@clisp.org>
41410
41411         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41412         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41413         module is also used and while not building the reloc-wrapper.
41414
41415 2008-04-13  Bruno Haible  <bruno@clisp.org>
41416
41417         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41418
41419 2008-04-13  Bruno Haible  <bruno@clisp.org>
41420
41421         Fix AIX compilation failure introduced on 2008-04-02.
41422         * tests/test-frexp.c (exp): Undefine before redefining.
41423         * tests/test-frexpl.c (exp): Likewise.
41424
41425 2008-04-13  Bruno Haible  <bruno@clisp.org>
41426
41427         Work around a HP-UX stdio bug.
41428         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41429         * tests/test-ftello.c (main): Likewise.
41430         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41431         * doc/posix-functions/ftello.texi: Likewise.
41432
41433 2008-04-13  Bruno Haible  <bruno@clisp.org>
41434
41435         Make test-signbit pass on HP-UX/hppa.
41436         * tests/test-signbit.c (minus_zerol): New variable.
41437         (test_signbitl): Use it.
41438
41439 2008-04-13  Bruno Haible  <bruno@clisp.org>
41440
41441         Make truncl work on OSF/1 4.0.
41442         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41443         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41444         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41446         HAVE_DECL_TRUNCL.
41447         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41448         HAVE_DECL_TRUNCL.
41449         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41450
41451 2008-04-13  Bruno Haible  <bruno@clisp.org>
41452
41453         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41454
41455 2008-04-13  Bruno Haible  <bruno@clisp.org>
41456
41457         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41458         expression, so as to avoid HP-UX 11 cc compiler bug.
41459
41460 2008-04-13  Bruno Haible  <bruno@clisp.org>
41461
41462         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41463
41464 2008-04-13  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/git-merge-changelog.c: Remove empty declaration outside of
41467         functions.
41468
41469 2008-04-13  Bruno Haible  <bruno@clisp.org>
41470
41471         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41472
41473 2008-04-13  Bruno Haible  <bruno@clisp.org>
41474
41475         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41476         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41478         also if it exists but lacks definitions of the SHUT_* macros.
41479         * modules/sys_socket (Description): Update.
41480         Reported by Elbert Pol <e.pol@chello.nl>.
41481
41482 2008-04-13  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/localcharset.c (OS2): Don't redefine if already defined.
41485         Reported by Elbert Pol <e.pol@chello.nl>.
41486
41487 2008-04-13  Bruno Haible  <bruno@clisp.org>
41488
41489         * lib/binary-io.h [__EMX__]: Include <io.h>.
41490         Reported by Elbert Pol <e.pol@chello.nl>.
41491
41492 2008-04-12  Bruno Haible  <bruno@clisp.org>
41493
41494         * lib/fpucw.h: Enable the definitions also for x86_64.
41495         Needed for NetBSD/x86_64.
41496         Reported by Thomas Klausner <tk@giga.or.at>.
41497
41498 2008-04-12  Bruno Haible  <bruno@clisp.org>
41499
41500         * tests/test-strtod.c: Include isnand.h.
41501         (main): Use isnand instead of isnan.
41502         Reported by Jim Meyering.
41503
41504 2008-04-12  Bruno Haible  <bruno@clisp.org>
41505
41506         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41507         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41508
41509 2008-04-12  Jim Meyering  <meyering@redhat.com>
41510
41511         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41512
41513 2008-04-12  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41516         Reported by Elbert Pol <e.pol@chello.nl>.
41517
41518 2008-04-12  Eric Blake  <ebb9@byu.net>
41519
41520         Work around Solaris 10 math.h bug.
41521         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41522         (gl_MATH_H_DEFAULTS): Set up default.
41523         * modules/math (Makefile.am): Replace new indicators.
41524         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41525         * tests/test-math.c (main): Test this.
41526         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41527         * doc/posix-headers/math.texi (math.h): Mention bug.
41528         Reported by Nelson H. F. Beebe and Jim Meyering.
41529
41530 2008-04-11  Bruno Haible  <bruno@clisp.org>
41531
41532         Adapt to future versions of Apple GCC.
41533         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41534         Reported by Peter O'Gorman <peter@pogma.com>.
41535
41536 2008-04-11  Bruno Haible  <bruno@clisp.org>
41537
41538         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41539
41540 2008-04-11  Bruno Haible  <bruno@clisp.org>
41541
41542         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41543
41544         * modules/getaddrinfo-tests (Makefile.am): Define
41545         test_getaddrinfo_LDADD.
41546
41547 2008-04-11  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41550         (init): Fix syntax error.
41551         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41552         is declared.
41553
41554 2008-04-11  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41557         * modules/glob (Depends-on): Add stdbool.
41558
41559 2008-04-11  Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/trim.c: Include <string.h>.
41562
41563 2008-04-11  Eric Blake  <ebb9@byu.net>
41564
41565         Avoid compile failure on OS/2.
41566         * lib/regex_internal.h (internal_function): Disable optimization
41567         on OS/2 (__EMX__), where it caused compiler error.
41568         Reported by Elbert Pol.
41569
41570 2008-04-11  Bruno Haible  <bruno@clisp.org>
41571
41572         Flush the standard error stream before aborting. Needed on mingw.
41573         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41574         * tests/test-array_list.c (ASSERT): Likewise.
41575         * tests/test-array_oset.c (ASSERT): Likewise.
41576         * tests/test-avltree_list.c (ASSERT): Likewise.
41577         * tests/test-avltree_oset.c (ASSERT): Likewise.
41578         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41579         * tests/test-binary-io.c (ASSERT): Likewise.
41580         * tests/test-byteswap.c (ASSERT): Likewise.
41581         * tests/test-c-ctype.c (ASSERT): Likewise.
41582         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41583         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41584         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41585         * tests/test-c-strstr.c (ASSERT): Likewise.
41586         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41587         * tests/test-canonicalize.c (ASSERT): Likewise.
41588         * tests/test-carray_list.c (ASSERT): Likewise.
41589         * tests/test-ceilf1.c (ASSERT): Likewise.
41590         * tests/test-ceilf2.c (ASSERT): Likewise.
41591         * tests/test-ceill.c (ASSERT): Likewise.
41592         * tests/test-count-one-bits.c (ASSERT): Likewise.
41593         * tests/test-fbufmode.c (ASSERT): Likewise.
41594         * tests/test-fflush2.c (ASSERT): Likewise.
41595         * tests/test-floorf1.c (ASSERT): Likewise.
41596         * tests/test-floorf2.c (ASSERT): Likewise.
41597         * tests/test-floorl.c (ASSERT): Likewise.
41598         * tests/test-fopen.c (ASSERT): Likewise.
41599         * tests/test-fpending.c (ASSERT): Likewise.
41600         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41601         * tests/test-fpurge.c (ASSERT): Likewise.
41602         * tests/test-freadable.c (ASSERT): Likewise.
41603         * tests/test-freadahead.c (ASSERT): Likewise.
41604         * tests/test-freading.c (ASSERT): Likewise.
41605         * tests/test-freadptr.c (ASSERT): Likewise.
41606         * tests/test-freadptr2.c (ASSERT): Likewise.
41607         * tests/test-freadseek.c (ASSERT): Likewise.
41608         * tests/test-freopen.c (ASSERT): Likewise.
41609         * tests/test-frexp.c (ASSERT): Likewise.
41610         * tests/test-frexpl.c (ASSERT): Likewise.
41611         * tests/test-fseek.c (ASSERT): Likewise.
41612         * tests/test-fseeko.c (ASSERT): Likewise.
41613         * tests/test-fstrcmp.c (ASSERT): Likewise.
41614         * tests/test-ftell.c (ASSERT): Likewise.
41615         * tests/test-ftello.c (ASSERT): Likewise.
41616         * tests/test-func.c (ASSERT): Likewise.
41617         * tests/test-fwritable.c (ASSERT): Likewise.
41618         * tests/test-fwriting.c (ASSERT): Likewise.
41619         * tests/test-getdelim.c (ASSERT): Likewise.
41620         * tests/test-getline.c (ASSERT): Likewise.
41621         * tests/test-i-ring.c (ASSERT): Likewise.
41622         * tests/test-iconv-utf.c (ASSERT): Likewise.
41623         * tests/test-iconv.c (ASSERT): Likewise.
41624         * tests/test-isfinite.c (ASSERT): Likewise.
41625         * tests/test-isnand.c (ASSERT): Likewise.
41626         * tests/test-isnanf.c (ASSERT): Likewise.
41627         * tests/test-isnanl.h (ASSERT): Likewise.
41628         * tests/test-ldexpl.c (ASSERT): Likewise.
41629         * tests/test-linked_list.c (ASSERT): Likewise.
41630         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41631         * tests/test-localename.c (ASSERT): Likewise.
41632         * tests/test-lseek.c (ASSERT): Likewise.
41633         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41634         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41635         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41636         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41637         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41638         * tests/test-mbschr.c (ASSERT): Likewise.
41639         * tests/test-mbscspn.c (ASSERT): Likewise.
41640         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41641         * tests/test-mbspbrk.c (ASSERT): Likewise.
41642         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41643         * tests/test-mbsrchr.c (ASSERT): Likewise.
41644         * tests/test-mbsspn.c (ASSERT): Likewise.
41645         * tests/test-mbsstr1.c (ASSERT): Likewise.
41646         * tests/test-mbsstr2.c (ASSERT): Likewise.
41647         * tests/test-mbsstr3.c (ASSERT): Likewise.
41648         * tests/test-memchr2.c (ASSERT): Likewise.
41649         * tests/test-memmem.c (ASSERT): Likewise.
41650         * tests/test-open.c (ASSERT): Likewise.
41651         * tests/test-printf-frexp.c (ASSERT): Likewise.
41652         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41653         * tests/test-printf-posix.c (ASSERT): Likewise.
41654         * tests/test-quotearg.c (ASSERT): Likewise.
41655         * tests/test-rbtree_list.c (ASSERT): Likewise.
41656         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41657         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41658         * tests/test-round1.c (ASSERT): Likewise.
41659         * tests/test-roundf1.c (ASSERT): Likewise.
41660         * tests/test-roundl.c (ASSERT): Likewise.
41661         * tests/test-signbit.c (ASSERT): Likewise.
41662         * tests/test-sleep.c (ASSERT): Likewise.
41663         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41664         * tests/test-snprintf.c (ASSERT): Likewise.
41665         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41666         * tests/test-stat-time.c (ASSERT): Likewise.
41667         * tests/test-strcasestr.c (ASSERT): Likewise.
41668         * tests/test-strerror.c (ASSERT): Likewise.
41669         * tests/test-striconv.c (ASSERT): Likewise.
41670         * tests/test-striconveh.c (ASSERT): Likewise.
41671         * tests/test-striconveha.c (ASSERT): Likewise.
41672         * tests/test-strsignal.c (ASSERT): Likewise.
41673         * tests/test-strstr.c (ASSERT): Likewise.
41674         * tests/test-strtod.c (ASSERT): Likewise.
41675         * tests/test-trunc1.c (ASSERT): Likewise.
41676         * tests/test-trunc2.c (ASSERT): Likewise.
41677         * tests/test-truncf1.c (ASSERT): Likewise.
41678         * tests/test-truncf2.c (ASSERT): Likewise.
41679         * tests/test-truncl.c (ASSERT): Likewise.
41680         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41681         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41682         * tests/test-vasnprintf.c (ASSERT): Likewise.
41683         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41684         * tests/test-vasprintf.c (ASSERT): Likewise.
41685         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41686         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41687         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41688         * tests/test-vsnprintf.c (ASSERT): Likewise.
41689         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41690         * tests/test-wcwidth.c (ASSERT): Likewise.
41691         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41692         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41693         * tests/test-xvasprintf.c (ASSERT): Likewise.
41694         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41695         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41696         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41697         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41698         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41699         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41700         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41701         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41702         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41703         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41704         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41705         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41706         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41707         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41708         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41709         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41710         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41711         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41712         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41713         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41714         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41715         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41716         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41717         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41718         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41719         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41720         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41721         * tests/unictype/test-combining.c (ASSERT): Likewise.
41722         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41723         * tests/unictype/test-digit.c (ASSERT): Likewise.
41724         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41725         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41726         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41727         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41728         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41729         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41730         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41731         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41732         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41733         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41734         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41735         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41736         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41737         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41738         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41739         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41740         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41741         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41742         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41743         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41744         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41745         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41746         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41747         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41748         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41749         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41750         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41751         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41752         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41753         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41754         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41755         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41756         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41757         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41758         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41759         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41760         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41761         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41762         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41763         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41764         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41765         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41766         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41767         Reported by Eric Blake.
41768
41769 2008-04-11  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/wchar.in.h: Tweak comment.
41772
41773 2008-04-11  Bruno Haible  <bruno@clisp.org>
41774
41775         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41776         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41777         gl_COMMON.
41778         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41779
41780 2008-04-11  Bruno Haible  <bruno@clisp.org>
41781
41782         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41783
41784 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41785
41786         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41787         of attempting to use non-existing /dev/*random.  Based on patch
41788         from Adam Strzelecki <ono@java.pl> in
41789         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41790
41791 2008-04-08  Bruno Haible  <bruno@clisp.org>
41792
41793         Add tentative support for emx+gcc.
41794         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41795         * lib/fpurge.c (fpurge): Likewise.
41796         * lib/freadable.c (freadable): Likewise.
41797         * lib/freadahead.c (freadahead): Likewise.
41798         * lib/freading.c (freading): Likewise.
41799         * lib/freadptr.c (freadptr): Likewise.
41800         * lib/freadseek.c (freadptrinc): Likewise.
41801         * lib/fseeko.c (rpl_fseeko): Likewise.
41802         * lib/fseterr.c (fseterr): Likewise.
41803         * lib/fwritable.c (fwritable): Likewise.
41804         * lib/fwriting.c (fwriting): Likewise.
41805         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41806
41807 2008-04-09  Eric Blake  <ebb9@byu.net>
41808
41809         Avoid some autoconf warnings.
41810         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41811         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41812         * m4/afs.m4 (gl_AFS): Likewise.
41813         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41814         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41816         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41817         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41818         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41819         (AC_CHECK_DECLS_ONCE): Likewise.
41820         Rename file...
41821         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41822         gnulib-tool requires autoconf 2.59 or better.
41823         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41824
41825 2008-04-08  Eric Blake  <ebb9@byu.net>
41826
41827         Use 'git describe --match' if present (added in git 1.5.5).
41828         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41829         if possible.
41830
41831 2008-04-08  Bruno Haible  <bruno@clisp.org>
41832
41833         Add tentative support for OpenServer.
41834         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41835         _ptr, _cnt.
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         Reported by Roger Cornelius <rac@tenzing.org> and
41847         Brian K. White <brian@aljex.com>.
41848
41849 2008-04-06  Jim Meyering  <meyering@redhat.com>
41850
41851         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41852
41853 2008-04-06  Bruno Haible  <bruno@clisp.org>
41854
41855         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41856         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41857         * tests/test-printf-posix.sh: Likewise.
41858         * tests/test-vfprintf-posix.sh: Likewise.
41859         * tests/test-vprintf-posix.sh: Likewise.
41860         * tests/test-xprintf-posix.sh: Likewise.
41861
41862 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41863
41864         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41865         hide error from 'ls', needed on OS/2.
41866         Report by Elbert Pol <elbert.pol@gmail.com>.
41867
41868 2008-04-04  Eric Blake  <ebb9@byu.net>
41869
41870         Make test-fseeko.c failures meaningful.
41871         * tests/test-fseeko.c: Print line number on failure.
41872         * tests/test-fseek.c: Likewise.
41873         Reported by Nelson H. F. Beebe.
41874
41875         Improve strtod bug detection check.
41876         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41877         required for Solaris 10.
41878         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41879
41880 2008-04-04  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41883         by m4/setenv.m4.
41884
41885 2008-04-03  Eric Blake  <ebb9@byu.net>
41886
41887         Ensure sane .version contents.
41888         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41889         version string.
41890         * build-aux/git-version-gen: Improve documentation.
41891
41892         Make GNU make output nicer.
41893         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41894         MAKECMDGOALS to enforce message for all command line targets.  Set
41895         srcdir for use in maint.mk.
41896
41897         Another maintainer tweak.
41898         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41899         a target that regenerates version.
41900
41901 2008-04-03  Jim Meyering  <meyering@redhat.com>
41902
41903         vc-list-files: don't cause coreutils "make po-check" failure
41904         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41905
41906 2008-04-03  Eric Blake  <ebb9@byu.net>
41907
41908         Allow VPATH usage of vc-list-files.
41909         * build-aux/vc-list-files (scriptversion): Add timestamp.
41910         (options): Add --help, --version, -C.
41911         (CVS): Support installed cvsu.
41912
41913 2008-04-02  Bruno Haible  <bruno@clisp.org>
41914
41915         Avoid some "statement with no effect" warnings from gcc.
41916         * tests/test-wctype.c (main): Explicitly ignore unused values.
41917         Reported by Jim Meyering.
41918
41919 2008-04-02  Jim Meyering  <meyering@redhat.com>
41920
41921         Avoid some warnings from "gcc -Wshadow".
41922         * tests/test-frexp.c (exp): Define to a different identifier.
41923         * tests/test-frexpl.c (exp): Likewise.
41924
41925 2008-04-03  Jim Meyering  <meyering@redhat.com>
41926
41927         bootstrap: remove dangling *.[ch] symlinks from lib
41928         * build-aux/bootstrap [dangling symlink removal]: Move find's
41929         -depth option to precede all others, to avoid a warning.
41930         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41931
41932 2008-04-02  Bruno Haible  <bruno@clisp.org>
41933
41934         Avoid some warnings from "gcc -Wshadow".
41935         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41936         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41937         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41938         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41939         Reported by Jim Meyering.
41940
41941 2008-04-01  Bruno Haible  <bruno@clisp.org>
41942
41943         Fix test to work on IRIX 6.5 with cc.
41944         * tests/test-math.c (numeric_equal): New function.
41945         (main): Use it.
41946
41947 2008-04-01  Bruno Haible  <bruno@clisp.org>
41948
41949         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41950
41951 2008-04-01  Bruno Haible  <bruno@clisp.org>
41952
41953         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41954         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41955         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41956         (Depends-on): Remove math.
41957
41958         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41959         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41960         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41961         (Depends-on): Remove math.
41962
41963         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41964         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41965         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41966         (Depends-on): Remove math.
41967         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41968         (Depends-on): Remove math.
41969
41970         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41971         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41972         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41973         (Depends-on): Remove math.
41974         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41975         (Depends-on): Remove math.
41976
41977         * tests/test-round1.c: Include nan.h.
41978         (main): Use NaNd instead of NAN.
41979         * modules/round-tests (Files): Add tests/nan.h.
41980
41981         * tests/test-trunc1.c: Include nan.h.
41982         (main): Use NaNd instead of NAN.
41983         * modules/trunc-tests (Files): Add tests/nan.h.
41984
41985         * tests/test-roundf1.c: Include nan.h.
41986         (main): Use NaNf instead of NAN.
41987         * modules/roundf-tests (Files): Add tests/nan.h.
41988
41989         * tests/test-truncf1.c: Include nan.h.
41990         (main): Use NaNf instead of NAN.
41991         * modules/truncf-tests (Files): Add tests/nan.h.
41992
41993         * tests/test-ceilf1.c: Include nan.h.
41994         (main): Use NaNf instead of NAN.
41995         * modules/ceilf-tests (Files): Add tests/nan.h.
41996
41997         * tests/test-floorf1.c: Include nan.h.
41998         (main): Use NaNf instead of NAN.
41999         * modules/floorf-tests (Files): Add tests/nan.h.
42000
42001         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42002         (main): Use NaNf instead of NAN.
42003         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42004
42005         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42006         (main): Use NaNd instead of NAN.
42007         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42008
42009         * tests/test-frexp.c: Include nan.h.
42010         (main): Use NaNd instead of NAN.
42011         * modules/frexp-tests (Files): Add tests/nan.h.
42012
42013         * lib/isnan.c: Don't include <math.h>.
42014         (FUNC): Don't use NAN macro.
42015         * modules/isnand-nolibm (Depends-on): Remove math.
42016         * modules/isnanf-nolibm (Depends-on): Remove math.
42017         * modules/isnanl (Depends-on): Remove math.
42018         * modules/isnanl-nolibm (Depends-on): Remove math.
42019
42020         * tests/nan.h: New file.
42021
42022 2008-04-01  Eric Blake  <ebb9@byu.net>
42023
42024         Fix typos.
42025         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42026         values to be the right type.
42027
42028         For now, cater to gnulib strtod inaccuracies.
42029         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42030         fractional results.  While not as nice from a QoI perspective, it
42031         is a quicker patch than correctly implementing decimal to binary
42032         rounding.
42033
42034 2008-03-31  Eric Blake  <ebb9@byu.net>
42035
42036         Guarantee a definition of NAN.
42037         * lib/math.in.h (NAN): Define if missing.
42038         * tests/test-math.c (main): Test it.
42039         * doc/posix-headers/math.texi (math.h): Document this.
42040         * lib/isnan.c (rpl_isnand): Use it.
42041         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42042         * tests/test-floorf1.c (NaN): Likewise.
42043         * tests/test-frexp.c (NaN): Likewise.
42044         * tests/test-isnand.c (NaN): Likewise.
42045         * tests/test-isnanf.c (NaN): Likewise.
42046         * tests/test-round1.c (NaN): Likewise.
42047         * tests/test-roundf1.c (NaN): Likewise.
42048         * tests/test-snprintf-posix.h (NaN): Likewise.
42049         * tests/test-sprintf-posix.h (NaN): Likewise.
42050         * tests/test-trunc1.c (NaN): Likewise.
42051         * tests/test-truncf1.c (NaN): Likewise.
42052         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42053         * tests/test-vasprintf-posix.c (NaN): Likewise.
42054         * modules/isnand-nolibm (Depends-on): Add math.
42055         * modules/isnanf-nolibm (Depends-on): Likewise.
42056         * modules/isnanl (Depends-on): Likewise.
42057         * modules/isnanl-nolibm (Depends-on): Likewise.
42058         * modules/snprintf-posix-tests (Depends-on): Likewise.
42059         * modules/sprintf-posix-tests (Depends-on): Likewise.
42060         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42061         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42062         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42063         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42064
42065 2008-03-31  Bruno Haible  <bruno@clisp.org>
42066
42067         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42068         * doc/posix-functions/strtod.texi: Likewise.
42069
42070 2008-03-31  Bruno Haible  <bruno@clisp.org>
42071
42072         * tests/test-strtod.c (main): Don't use C99 syntax.
42073
42074 2008-03-31  Bruno Haible  <bruno@clisp.org>
42075
42076         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42077         Reported by Eric Blake.
42078
42079 2008-03-31  Jim Meyering  <meyering@redhat.com>
42080
42081         Don't compare actual signbit return values.
42082         * tests/test-strtod.c (main): Rather, compare only their
42083         zero/non-zero nature.
42084
42085 2008-03-31  Eric Blake  <ebb9@byu.net>
42086
42087         More strtod documentation.
42088         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42089         failures as distinct bugs.
42090
42091 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42092
42093         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42094         Problem reported by Erik Benada in
42095         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42096
42097 2008-03-30  Bruno Haible  <bruno@clisp.org>
42098
42099         * tests/test-strtod.c: Add comments about which assertion fails on which
42100         platform.
42101         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42102
42103 2008-03-30  Eric Blake  <ebb9@byu.net>
42104
42105         Test signbit behavior on zeros.
42106         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42107         (test_signbitd, test_signbitl): Likewise.
42108
42109         More strtod touchups.
42110         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42111         sign of negative underflow, for now.  Use .5, not .1.
42112         * doc/posix-functions/strtod.texi (strtod): Mention these
42113         limitations.
42114         Reported by Jim Meyering.
42115
42116 2008-03-30  Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42119         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42120
42121 2008-03-30  Bruno Haible  <bruno@clisp.org>
42122
42123         Avoid failure when attempting to return empty iconv results on some
42124         platforms.
42125         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42126         allocation, don't report ENOMEM when the resulting string is empty.
42127
42128 2008-03-30  Bruno Haible  <bruno@clisp.org>
42129
42130         Fix buffer overrun.
42131         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42132         Don't consider the width for tmp_length. Check count against tmp_length
42133         before doing the padding. Ensure enough allocation during padding.
42134
42135 2008-03-30  Eric Blake  <ebb9@byu.net>
42136
42137         strtod touchups.
42138         * lib/strtod.c (strtod): Avoid compiler warnings.
42139         Reported by Jim Meyering.
42140
42141 2008-03-30  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42144         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42145         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42146         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42147         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42148         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42149         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42150         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42151
42152         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42153         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42154         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42155         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42156         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42157         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42158         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42159         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42160
42161         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42162         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42163         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42164         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42165         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42166         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42167         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42168         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42169
42170         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42171         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42172
42173         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42174         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42175
42176         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42177         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42178
42179         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42180         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42181         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42182
42183         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42185         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42186
42187         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42189         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42190
42191         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42193         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42194
42195         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42196         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42198         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42199         (Depends-on): Add EOVERFLOW.
42200         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42201         (Depends-on): Add EOVERFLOW.
42202         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42203         (Depends-on): Add EOVERFLOW.
42204         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42205         (Depends-on): Add EOVERFLOW.
42206         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42207         (Depends-on): Add EOVERFLOW.
42208         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42209         (Depends-on): Add EOVERFLOW.
42210         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42211         (Depends-on): Add EOVERFLOW.
42212         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42213         (Depends-on): Add EOVERFLOW.
42214
42215         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42217         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42218
42219         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42221         * modules/snprintf (Depends-on): Add EOVERFLOW.
42222
42223         * lib/poll.c (EOVERFLOW): Remove fallback.
42224         * modules/poll (Depends-on): Add EOVERFLOW.
42225
42226         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42227         * modules/getugroups (Depends-on): Add EOVERFLOW.
42228
42229         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42230         * modules/getdelim (Depends-on): Add EOVERFLOW.
42231
42232         * lib/ftell.c (EOVERFLOW): Remove fallback.
42233         * modules/ftell (Depends-on): Add EOVERFLOW.
42234
42235         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42237         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42238
42239         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42240
42241         * modules/EOVERFLOW-tests: New file.
42242         * tests/test-EOVERFLOW.c: New file.
42243
42244         * modules/EOVERFLOW: New file.
42245         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42246
42247 2008-03-30  Bruno Haible  <bruno@clisp.org>
42248
42249         Fix bug introduced on 2007-06-10.
42250         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42251         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42252
42253 2008-03-30  Bruno Haible  <bruno@clisp.org>
42254
42255         Improve freadseek's efficiency after ungetc.
42256         * lib/freadseek.c: Include freadahead.h.
42257         (freadptrinc): New function, extracted from freadseek.
42258         (freadseek): Use it in a loop. Use freadahead to determine the number
42259         of loop iterations.
42260         * modules/freadseek (Depends-on): Add freadahead.
42261         (configure.ac): Require AC_C_INLINE.
42262
42263 2008-03-30  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/freadseek.c (freadseek): Don't ignore the return value of
42266         freadptr.
42267
42268 2008-03-29  Eric Blake  <ebb9@byu.net>
42269
42270         Add hex float support.
42271         * modules/strtod (Depends-on): Add c-ctype.
42272         (Link): Mention POW_LIB.
42273         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42274         whitespace between 'e' and exponent.
42275         * tests/test-strtod.c (main): Enable hex float tests.
42276         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42277         now provides.
42278
42279         Document various strtod bugs, with some fixes.
42280         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42281         "-0x", "inf", "nan", and hex constants.
42282         * doc/posix-functions/atof.texi (atof): Likewise.
42283         * modules/stdlib (Makefile.am): Support strtod.
42284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42285         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42286         detect additional strtod bugs.
42287         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42288         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42289         bool where appropriate.  Parse 'inf' and 'nan'.
42290         * tests/test-strtod.c: New file.
42291         * modules/strtod (Depends-on): Add stdbool, stdlib.
42292         (configure.ac): Turn on module indicator.
42293         * modules/strtod-tests: New module.
42294
42295 2008-03-29  Eric Blake  <ebb9@byu.net>
42296
42297         Fix ftell on mingw.
42298         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42299         * modules/ftell-tests (Depends-on): Add binary-io.
42300         * modules/ftello-tests (Depends-on): Likewise.
42301         * tests/test-ftell.c (main): Enhance test to cover behavior after
42302         ungetc.  Enforce binary mode.
42303         * tests/test-ftello.c (main): Likewise.
42304
42305         Pass test-freadseek on cygwin.
42306         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42307         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42308         ungetc buffer.
42309
42310         * tests/test-fflush2.c (main): Fix typo.
42311
42312 2008-03-29  Bruno Haible  <bruno@clisp.org>
42313
42314         * tests/test-fflush2.c (main): Temporarily disable the contents of
42315         this test.
42316         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42317         Reported by Eric Blake.
42318
42319 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42320
42321         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42322         (GC_SHA224_DIGEST_SIZE): Add.
42323
42324         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42325         (gc_hash_digest_length): Likewise.
42326         (gc_hash_buffer): Likewise.
42327
42328 2008-03-25  Bruno Haible  <bruno@clisp.org>
42329
42330         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42331         detail which gettext release to use.
42332         Reported by Simon Josefsson.
42333
42334 2008-03-26  Jim Meyering  <meyering@redhat.com>
42335
42336         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42337         * modules/gnumakefile (clean-GNUmakefile): Also, use
42338         test ... && ... || : syntax rather than if-then ... fi.
42339
42340         gnumakefile: Don't double-quote-expand $(VPATH) value.
42341         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42342
42343 2008-03-24  Eric Blake  <ebb9@byu.net>
42344
42345         Alter GNUmakefile to install into top directory.
42346         * modules/maintainer-makefile: Split, and add dependency...
42347         * modules/gnumakefile: to this new module.
42348         * build-aux/GNUmakefile: Move...
42349         * top/GNUmakefile: ...here.
42350         * build-aux/maint.mk: Move...
42351         * top/maint.mk: ...here.
42352         * MODULES.html.sh (Support for maintaining...): Document new
42353         module.
42354
42355 2008-03-23  Bruno Haible  <bruno@clisp.org>
42356
42357         * gnulib-tool: New options --vc-files, --no-vc-files.
42358         (func_usage): Document them.
42359         (vc_files): New variable.
42360         (func_import): Consider vc_files.
42361         (func_create_testdir): Set vc_files to empty.
42362         Suggested by Jim Meyering and Karl Berry.
42363
42364 2008-03-23  Bruno Haible  <bruno@clisp.org>
42365
42366         Fix regex compilation error on HP-UX 11.
42367         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42368         * modules/regex (Files): Add m4/mbstate_t.m4.
42369         Reported by Ton Voon <ton.voon@altinity.com>.
42370
42371 2008-03-23  Bruno Haible  <bruno@clisp.org>
42372
42373         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42374
42375 2008-03-23  Eric Blake  <ebb9@byu.net>
42376             Bruno Haible  <bruno@clisp.org>
42377
42378         Install files from top/ in the destination directory.
42379         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42380         augmentation also for the files from top/.
42381         (func_import, func_create_testdir): Rewrite file names:
42382         top/filename -> filename.
42383
42384 2008-03-23  Bruno Haible  <bruno@clisp.org>
42385
42386         Tweak "gnulib --version" output.
42387         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42388
42389 2008-03-23  Bruno Haible  <bruno@clisp.org>
42390
42391         Tweak "gnulib --version" output.
42392         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42393         rather than contents of ChangeLog, when possible.
42394
42395 2008-03-21  Eric Blake  <ebb9@byu.net>
42396
42397         More --version tweaks.
42398         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42399         date of last ChangeLog entry.
42400
42401 2008-03-21  Jim Meyering  <meyering@redhat.com>
42402
42403         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42404
42405 2008-03-20  Eric Blake  <ebb9@byu.net>
42406
42407         VPATH fix.
42408         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42409
42410 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42411
42412         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42413         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42414
42415 2008-03-20  Eric Blake  <ebb9@byu.net>
42416
42417         Sync GNUmakefile with coreutils.
42418         * build-aux/GNUmakefile (have-Makefile): Rename...
42419         (_have-Makefile): ...to this, for namespace consideration.
42420         (GNUmakefile.cfg): Include, if present.
42421         (_autoreconf): Define a default.
42422         (_is-dist-target): New rule for rebuilds to pick up intra-release
42423         version.
42424         (maint-cfg.mk): Rename...
42425         (cfg.mk): ...to this.
42426
42427 2008-03-18  Jim Meyering  <meyering@redhat.com>
42428
42429         New script and module: mktempd
42430         * MODULES.html.sh (maint+release support): Add mktempd.
42431         * build-aux/mktempd: New file.
42432         * modules/mktempd: New file.
42433
42434 2008-03-15  Jim Meyering  <meyering@redhat.com>
42435
42436         Undo last change.
42437         * lib/sha1.c, lib/md5.c: 63 != ~63.
42438         Reported by Andreas Schwab.
42439
42440         sha1.c, md5.c: Hoist a redundant expression.
42441         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42442         "ctx->buflen" only once, before calling *_process_block.
42443         * lib/md5.c (md5_process_bytes): Likewise.
42444
42445 2008-03-14  Eric Blake  <ebb9@byu.net>
42446
42447         Bump copyright year in files generated by gnulib-tool.
42448         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42449         gnulib-tool, rather than hard-coding it.
42450
42451         Fix 'gnulib-tool --version' output to work with git.
42452         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42453         (startup): ...here.
42454         (func_version): Use it to invoke git-version-gen, rather than
42455         relying on CVS keyword expansion.  Modernize wording.
42456         (cvsdatestamp, last_checkin_date, version): Kill unused
42457         variables.
42458
42459 2008-03-12  Jim Meyering  <meyering@redhat.com>
42460
42461         Recognize optional cast of the argument to free.
42462         * build-aux/useless-if-before-free: Update regexps.
42463
42464         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42465
42466 2008-03-11  Bruno Haible  <bruno@clisp.org>
42467
42468         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42469         by a single package.
42470         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42471         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42472         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42473         Reported by Sam Steingold <sds@gnu.org>.
42474
42475 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42476
42477         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42478         repositories.
42479
42480 2008-03-11  Bruno Haible  <bruno@clisp.org>
42481
42482         Avoid conflicts between local macro definitions.
42483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42484         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42485
42486 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42487             Bruno Haible  <bruno@clisp.org>
42488
42489         Make va_copy work with some version of xlc on AIX 5.1.
42490         * lib/stdarg.in.h: New file.
42491         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42492         On AIX, use a <stdarg.h> file substitute.
42493         * modules/stdarg (Files): Add lib/stdarg.in.h.
42494         (Depends-on): Add include_next.
42495         (Makefile.am): Build a stdarg.h substitute if requested.
42496         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42497
42498 2008-03-10  Bruno Haible  <bruno@clisp.org>
42499
42500         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42501         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42502         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42503
42504 2008-03-10  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/stdlib (Depends-on): Add include_next, remove
42507         absolute-header.
42508
42509 2008-03-09  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/freadahead.h (freadahead): Document more precisely.
42512         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42513         the sum of both buffer sizes.
42514         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42515         * NEWS: Document the change.
42516
42517 2008-03-09  Bruno Haible  <bruno@clisp.org>
42518
42519         Extend freadptr to return also the buffer size.
42520         * lib/freadptr.h (freadptr): Add sizep argument.
42521         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42522         (freadptr): Add sizep argument. Determine buffer size like freadahead
42523         does.
42524         * tests/test-freadptr.c: Don't include freadahead.h.
42525         (main): Adapt for new calling convention of freadptr.
42526         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42527         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42528         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42529         tests/test-freadptr2.sh.
42530         (Depends): Remove freadahead.
42531         (TESTS): Add test-freadptr2.sh.
42532         (check_PROGRAMS): Add test-freadptr2.
42533
42534 2008-03-09  Bruno Haible  <bruno@clisp.org>
42535
42536         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42537         Report and solution by Simon Josefsson.
42538
42539 2008-03-06  Bruno Haible  <bruno@clisp.org>
42540
42541         Make fflush after ungetc work on BSD platforms.
42542         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42543         * tests/test-fflush2.c: New file.
42544         * tests/test-fflush2.sh: New file.
42545         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42546         tests/test-fflush2.c.
42547         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42548         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42549
42550 2008-03-06  Eric Blake  <ebb9@byu.net>
42551
42552         Likewise for ftello.
42553         * modules/ftello (Dependencies): Add extensions.
42554         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42555
42556 2008-03-06  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/fseeko (Dependencies): Add extensions.
42559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42560         Needed on glibc systems.
42561
42562 2008-03-06  Bruno Haible  <bruno@clisp.org>
42563
42564         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42565         email address.
42566         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42567
42568 2008-03-06  Bruno Haible  <bruno@clisp.org>
42569
42570         * users.txt: Add libgnupdf.
42571
42572 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42573
42574         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42575         (Header File Substitutes, Function Substitutes,
42576         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42577         (Build robot for gnulib): Fix typo.
42578
42579 2008-03-06  Bruno Haible  <bruno@clisp.org>
42580
42581         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42582         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42583
42584 2008-03-06  Bruno Haible  <bruno@clisp.org>
42585
42586         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42587         * doc/gnulib.texi: Include it.
42588
42589 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42590
42591         * modules/func (License): Change license to unlimited; there was
42592         no LGPL parts in the module anyway.
42593
42594 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42595
42596         * modules/__func__: Renamed to modules/func.
42597         * modules/__func__-tests: Renamed to modules/func-tests.
42598         * tests/test-__func__.c: Renamed to tests/test-func.c.
42599         * m4/__func__.m4: Renamed to m4/func.m4.
42600         * doc/gnulib.texi (__func__): Section renamed to func.
42601         Suggested by Eric Blake <ebb9@byu.net>.
42602
42603 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42604
42605         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42606         about __func__.  Make example self-contained.  Suggested by Eric
42607         Blake <ebb9@byu.net>.
42608
42609         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42610         Suggested by Eric Blake <ebb9@byu.net>.
42611
42612 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42613
42614         * modules/__func__: New file.
42615         * modules/__func__-tests: New file.
42616         * tests/test-__func__.c: New file.
42617         * m4/__func__.m4: New file.
42618         * doc/gnulib.texi (__func__): Document __func__ module.
42619
42620 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42621
42622         * modules/byteswap (License): Re-license as LGPLv2+.
42623
42624 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42625
42626         * doc/Makefile: Add pdf target.
42627
42628 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42629
42630         * modules/inline (License): Use 'unlimited', since there are only
42631         *.m4 files in this module.
42632
42633 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42634             Bruno Haible  <bruno@clisp.org>
42635
42636         Add support for HP C 7.1 on OpenVMS 8.3.
42637         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42638
42639 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42640
42641         Update VMS specifics.
42642         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42643
42644 2008-03-02  Jim Meyering  <meyering@redhat.com>
42645
42646         Remove the last dependency on the "free" module.
42647         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42648         Reported by Bob Proulx.
42649
42650         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42651
42652         Remove useless "if" tests before free.  Deprecate "free" module.
42653         * doc/posix-functions/free.texi: Mention that this
42654         module is no longer useful.
42655         * modules/free (Notice): Say this module is obsolete.
42656         * modules/readutmp (Depends-on): Remove free.
42657         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42658         * lib/putenv.c (putenv): Likewise.
42659         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42660         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42661         * tests/test-c-strcasestr.c (main): Likewise.
42662         * tests/test-c-strstr.c (main): Likewise.
42663         * tests/test-mbscasestr1.c (main): Likewise.
42664         * tests/test-mbscasestr2.c (main): Likewise.
42665         * tests/test-mbsstr1.c (main): Likewise.
42666         * tests/test-mbsstr2.c (main): Likewise.
42667         * tests/test-memmem.c (main): Likewise.
42668         * tests/test-strcasestr.c (main): Likewise.
42669         * tests/test-striconv.c (main): Likewise.
42670         * tests/test-striconveh.c (main): Likewise.
42671         * tests/test-striconveha.c (main): Likewise.
42672         * tests/test-strstr.c (main): Likewise.
42673
42674         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42675
42676         bootstrap: sync from coreutils again
42677         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42678
42679 2008-03-01  Jim Meyering  <meyering@redhat.com>
42680
42681         bootstrap: sync from coreutils
42682         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42683         also when the target doesn't exist.
42684
42685 2008-03-01  Eric Blake  <ebb9@byu.net>
42686
42687         Fix bugs in last patch.
42688         * lib/memchr2.c (memchr2): Fix typo.
42689         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42690         extension.
42691         Reported by Bruce Korb.
42692
42693         New module 'memchr2'.
42694         * modules/memchr2: New file.
42695         * modules/memchr2-tests: Likewise.
42696         * lib/memchr2.h: Likewise.
42697         * lib/memchr2.c: Likewise, based on memchr.c.
42698         * tests/test-memchr2.c: New test.
42699         * MODULES.html.sh (String handling): Add memchr2.
42700
42701 2008-02-29  Bruno Haible  <bruno@clisp.org>
42702
42703         * modules/freadseek-tests: New file.
42704         * tests/test-freadseek.sh: New file.
42705         * tests/test-freadseek.c: New file.
42706
42707         New module 'freadseek'.
42708         * modules/freadseek: New file.
42709         * lib/freadseek.h: New file.
42710         * lib/freadseek.c: New file.
42711         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42712
42713 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42714
42715         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42716         wydawca.
42717
42718         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42719         program_invocation_name and program_invocation_short_name are
42720         present.
42721
42722 2008-02-28  Bruno Haible  <bruno@clisp.org>
42723
42724         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42725         * tests/test-freadptr.sh: Also test non-seekable stdin.
42726
42727 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42728
42729         * build-aux/bootstrap (source_base, m4_base)
42730         (doc_base, tests_base): New variables.
42731         (gnulib_tool_options): Do not hardcode base directories, use
42732         the above variables instead.
42733
42734 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42735
42736         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42737
42738 2008-02-28  Bruno Haible  <bruno@clisp.org>
42739
42740         * modules/freadptr-tests: New file.
42741         * tests/test-freadptr.sh: New file.
42742         * tests/test-freadptr.c: New file.
42743
42744         New module 'freadptr'.
42745         * modules/freadptr: New file.
42746         * lib/freadptr.h: New file.
42747         * lib/freadptr.c: New file.
42748         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42749
42750 2008-02-26  Karl Berry  <karl@freefriends.org>
42751
42752         Sync from Libtool:
42753         * libltdl/argz.c (argz_add, argz_count): New functions.
42754         * libltdl/argz.in.h: Declare them.
42755         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42756
42757 2008-02-22  Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42760         is a pointer type.  Needed for HP-UX 10.
42761         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42762         * doc/posix-functions/gmtime_r.texi: Likewise.
42763         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42764
42765 2008-02-24  Bruno Haible  <bruno@clisp.org>
42766
42767         * modules/environ-tests: New file.
42768         * tests/test-environ.c: New file.
42769
42770         New module 'environ'.
42771         * modules/environ: New file.
42772         * lib/unistd.in.h (environ): New declaration.
42773         * m4/environ.m4: New file.
42774         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42775         after use.
42776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42777         HAVE_DECL_ENVIRON.
42778         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42779         HAVE_DECL_ENVIRON.
42780         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42781         wrong claim that 'environ' is missing on some systems.
42782         * modules/execute (Depends-on): Add environ.
42783         * lib/execute.c (environ): Remove fallback declaration.
42784         * modules/pipe (Depends-on): Add environ.
42785         * lib/pipe.c (environ): Remove fallback declaration.
42786         * modules/setenv (Depends-on): Add environ.
42787         * lib/setenv.c (environ): Remove fallback declaration.
42788         * modules/unsetenv (Depends-on): Add environ.
42789         * lib/unsetenv.c (environ): Remove fallback declaration.
42790         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42791         m4/environ.m4.
42792         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42793         (gl_PREREQ_UNSETENV): Likewise.
42794
42795 2008-02-24  Bruno Haible  <bruno@clisp.org>
42796
42797         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42798
42799 2008-02-20  Bob Proulx  <bob@proulx.com>
42800
42801         Enable use of older two part flavor 'git describe'.
42802         * build-aux/git-version-gen: If using the older two part flavor of
42803         git version then recreate the third part now present in the
42804         newer three part flavor of git describe.
42805
42806 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42807
42808         * lib/fts.c (fts_build): Typo correction to comment.
42809
42810 2008-02-17  Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42813         generating no-op conflicts.
42814
42815 2008-02-17  Bruno Haible  <bruno@clisp.org>
42816
42817         Speed up by 10%.
42818         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42819         result_entries, rather than an index-based loop.
42820
42821 2008-02-17  Bruno Haible  <bruno@clisp.org>
42822
42823         Speed up by 25%.
42824         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42825         'hashcode_cached'.
42826         (entry_create): New function.
42827         (entry_hashcode): Use the cached hashcode if possible.
42828         (read_changelog_file, try_split_merged_entry): Use entry_create.
42829
42830 2008-02-17  Bruno Haible  <bruno@clisp.org>
42831
42832         Speed up from O(n^2) to O(n) for long ChangeLog files.
42833         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42834         (read_changelog_file): Change implementation of entries_reversed list
42835         to rbtreehash.
42836         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42837
42838 2008-02-17  Bruno Haible  <bruno@clisp.org>
42839
42840         New option --split-merged-entry.
42841         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42842         (find_paragraph_end, try_split_merged_entry): New functions.
42843         (long_options): Add option --split-merged-entry.
42844         (usage): Document option --split-merged-entry.
42845         (main): Implement option --split-merged-entry.
42846         Reported by Eric Blake.
42847
42848 2008-02-17  Bruno Haible  <bruno@clisp.org>
42849
42850         * lib/git-merge-changelog.c: Include c-strstr.h.
42851         (main): Support the "git pull --rebase" situation.
42852         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42853         Reported by Eric Blake.
42854
42855 2008-02-16  Eric Blake  <ebb9@byu.net>
42856
42857         Avoid doubling \ in common case of "c-maybe" quoting style.
42858         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42859         eliding outer quotes.
42860         * lib/quotearg.h: Document this.
42861         * tests/test-quotearg.c (result_strings, inputs, results_g)
42862         (flag_results, locale_results): Test it by adding a new string to
42863         each test group.
42864         (compare_strings): Test new string.
42865
42866 2008-02-13  Eric Blake  <ebb9@byu.net>
42867
42868         Avoid trigraph quoting in default output.
42869         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42870         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42871         unless explicitly requested.
42872         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42873
42874 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42875
42876         Don't rely on signed integer overflowing to negative value.
42877         * lib/getugroups.c (getugroups): Include <limits.h>.
42878         Instead, compare against INT_MAX, and increment only if the test passes.
42879
42880 2008-02-13  Jim Meyering  <meyering@redhat.com>
42881         and Eric Blake  <ebb9@byu.net>
42882
42883         Avoid shadowing warning and compile errors on Linux.
42884         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42885         forwarding macros on Linux.
42886         (dcgettext): Define a stub, for Linux.
42887         (results_g, main): Avoid warnings.
42888
42889 2008-02-12  Eric Blake  <ebb9@byu.net>
42890
42891         Silence warning in last patch.
42892         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42893
42894         Quotearg part 4: add tests, fix c-maybe colon quoting.
42895         * lib/quotearg.h: Improve documentation.
42896         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42897         escapes when adding outer quotes.  When quoting trigraphs, use
42898         valid C notation.  When quoting NUL, omit extra characters if next
42899         character is not digit.  Alter prototype.
42900         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42901         callers.
42902         * modules/quotearg-tests: New module.
42903         * tests/test-quotearg.c: New test.
42904
42905 2008-02-07  Eric Blake  <ebb9@byu.net>
42906
42907         Quotearg part 3: add flag to control outer quote elision.
42908         * lib/quotearg.h (c_maybe_quoting_style): New style.
42909         (enum quoting_flags): Better documentation of flags.
42910         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42911         c-maybe style.
42912         (quotearg_buffer_restyled): Handle new flag to elide outer
42913         quotes.
42914
42915         Quotearg part 2: add flag that can control NUL elision.
42916         * lib/quotearg.h (set_quoting_flags): New prototype.
42917         * lib/quotearg.c (struct quoting_options): Add flag field.
42918         (set_quoting_flags): New function.
42919         (quotearg_buffer_restyled): Add flags parameter.
42920         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42921         (quotearg_n_options): Set the flag, since length cannot be
42922         returned.
42923         (quoting_options_from_style): Default flags correctly.
42924
42925         Quotearg part 1: more wrappers, restore quotearg_char state.
42926         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42927         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42928         (quotearg_colon_mem): New wrappers.
42929         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42930         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42931         functions.
42932         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42933         (quotearg_colon_mem): New functions.
42934
42935 2008-02-11  Bruno Haible  <bruno@clisp.org>
42936
42937         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42938         library in the current directory: it does not work with parallel make.
42939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42940
42941 2008-02-11  Bruno Haible  <bruno@clisp.org>
42942
42943         * .gitattributes: New file.
42944
42945 2008-02-11  Jim Meyering  <meyering@redhat.com>
42946
42947         useless-if-before-free: Fix reversed exit values.
42948         * build-aux/useless-if-before-free: Use correct values
42949         for EXIT_MATCH and EXIT_NO_MATCH.
42950
42951         * build-aux/useless-if-before-free: Close stdout carefully.
42952
42953 2008-02-10  Bruno Haible  <bruno@clisp.org>
42954
42955         New module 'git-merge-changelog'.
42956         * modules/git-merge-changelog: New file.
42957         * lib/git-merge-changelog.c: New file.
42958
42959 2008-02-10  Jim Meyering  <meyering@redhat.com>
42960
42961         useless-if-before-free: New option: --list (-l).
42962
42963         useless-if-before-free: Don't exit immediately upon open failure.
42964         * build-aux/useless-if-before-free: Exit 2 for errors.
42965         Upon failure to open a file, don't exit immediately.
42966         Rather, just warn and continue with any remaining files.
42967
42968 2008-02-10  Bruno Haible  <bruno@clisp.org>
42969
42970         New abstract list operation 'node_set_value'.
42971         * lib/gl_list.h (gl_list_node_set_value): New function.
42972         (struct gl_list_implementation): New field node_set_value.
42973         * lib/gl_list.c (gl_list_node_set_value): New function.
42974         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42975         (gl_array_list_implementation): Update.
42976         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42977         (gl_carray_list_implementation): Update.
42978         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42979         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42980         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42981         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42982         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42983         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42984         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42985         Update.
42986         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42987         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42988         (gl_sublist_list_implementation): Update.
42989
42990 2008-02-10  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42993         Needed when ELEMENT is #defined to 'some_type *'.
42994
42995 2008-02-10  Jim Meyering  <meyering@redhat.com>
42996
42997         New script and module: useless-if-before-free
42998         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42999         * build-aux/useless-if-before-free: New file.
43000         * modules/useless-if-before-free: New file.
43001
43002         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43003
43004         xstrtol_error: Fix typo.
43005         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43006         s/exit_failure/exit_status/.
43007
43008 2008-02-09  Jim Meyering  <meyering@redhat.com>
43009
43010         New script and module: gitlog-to-changelog
43011         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43012         * modules/gitlog-to-changelog: New file.
43013         * build-aux/gitlog-to-changelog: New file.
43014
43015 2008-02-08  Jim Meyering  <meyering@redhat.com>
43016
43017         Avoid two "parameter unused" warnings.
43018         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43019         Mark "st" as used.
43020
43021         Use "git COMMAND", not "git-COMMAND".
43022         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43023         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43024         * build-aux/git-version-gen: Use "git status", not "git-status".
43025
43026 2008-02-07  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43029         Avoids a crash on Windows Vista.
43030         Reported by Adam Strzelecki <ono@java.pl> via
43031         Simon Josefsson <simon@josefsson.org>.
43032
43033 2008-02-06  Bruno Haible  <bruno@clisp.org>
43034
43035         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43036         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43037         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43039         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43041         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43042         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43047         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43050         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43051         left-adjust flag.
43052         * tests/test-snprintf-posix.h (test_function): Likewise.
43053         * tests/test-sprintf-posix.h (test_function): Likewise.
43054         * tests/test-vasprintf-posix.c (test_function): Likewise.
43055         * doc/posix-functions/fprintf.texi: Update.
43056         * doc/posix-functions/printf.texi: Update.
43057         * doc/posix-functions/snprintf.texi: Update.
43058         * doc/posix-functions/sprintf.texi: Update.
43059         * doc/posix-functions/vfprintf.texi: Update.
43060         * doc/posix-functions/vprintf.texi: Update.
43061         * doc/posix-functions/vsnprintf.texi: Update.
43062         * doc/posix-functions/vsprintf.texi: Update.
43063         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43064
43065 2008-02-06  Bruno Haible  <bruno@clisp.org>
43066
43067         Fix bug introduced on 2008-01-26.
43068         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43069
43070 2008-02-06  Bruno Haible  <bruno@clisp.org>
43071
43072         Fix bug introduced on 2007-06-10.
43073         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43074         !NEED_PRINTF_FLAG_ZERO.
43075
43076 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43077
43078         getloadavg: use libperfstat on AIX5
43079         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43080
43081 2008-02-03  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/diffseq.h: Add comments about required #includes.
43084         Reported by Michael Biggs <gnulib@doubleplum.net>.
43085
43086 2008-02-01  Bruno Haible  <bruno@clisp.org>
43087
43088         * users.txt: Add gnuit.
43089
43090 2008-01-31  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/md4.c (set_uint32): Mark as inline.
43093         * lib/md5.c (set_uint32): Likewise.
43094         * lib/sha1.c (set_uint32): Likewise.
43095         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43096         * m4/md5.m4 (gl_MD5): Likewise.
43097         * m4/sha1.m4 (gl_SHA1): Likewise.
43098
43099 2008-01-31  Jim Meyering  <meyering@redhat.com>
43100
43101         Use "sizeof VAR", rather than a literal "4".
43102         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43103         * lib/md4.c (md4_read_ctx): Likewise.
43104         * lib/sha1.c (sha1_read_ctx): Likewise.
43105
43106 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43107
43108         * tests/test-sha1.c: New file, based on test-md5.c.
43109
43110         * modules/crypto/sha1-tests: New file.
43111
43112 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43113
43114         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43115
43116 2008-01-31  Jim Meyering  <meyering@redhat.com>
43117
43118         Prefer "sizeof v" over the equivalent "4".
43119         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43120         * lib/md5.c (set_uint32): Likewise.
43121         * lib/sha1.c (set_uint32): Likewise.
43122
43123 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43124
43125         * lib/sha1.c (set_uint32): Mark function as static.
43126
43127 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43128
43129         md2: clarify comments to say that alignment is not required.
43130         * lib/md2.h: Remove warning about alignment in comment.
43131         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43132         never been required.
43133
43134 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43135
43136         md4: adapt alignment constraint fix from sha1.
43137         * lib/md4.c (set_uint32): New function, from sha1.c
43138         (md4_read_ctx): Use it.
43139         (md4_finish_ctx): Doc fix.
43140         * lib/md4.h: Doc fix.
43141
43142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43143
43144         md5: adapt alignment constraint fix from sha1.
43145         * lib/md5.c (set_uint32): New function, from sha1.c
43146         (md5_read_ctx): Use it.
43147         (md5_finish_ctx): Doc fix.
43148         * lib/md5.h: Doc fix.
43149
43150 2008-01-30  Peter Palfrader  <weasel@debian.org>
43151
43152         sha1: remove the result buffer alignment constraint
43153         * lib/sha1.c (set_uint32): New function.
43154         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43155         constraint.
43156         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43157         * lib/sha1.h: Likewise.
43158
43159 2008-01-30  Andreas Schwab  <schwab@suse.de>
43160             Bruno Haible  <bruno@clisp.org>
43161
43162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43163         correct definition of LDBL_MIN_EXP.
43164
43165 2008-01-30  Karl Berry  <karl@gnu.org>
43166
43167         * config/srclist-update: try to preserve x bit on updates.
43168         * config/srclistvars.sh: update for karl.
43169
43170 2008-01-29  Jim Meyering  <meyering@redhat.com>
43171
43172         vasnprintf.c: Avoid warning about unused label
43173         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43174         "overflow" label definition and associated code with the
43175         same cpp condition that guards the sole use of that label.
43176
43177 2008-01-26  Bruno Haible  <bruno@clisp.org>
43178
43179         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43180         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43181         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43182         * lib/isnanl-nolibm.h (isnanl): Likewise.
43183         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43184
43185 2008-01-26  Bruno Haible  <bruno@clisp.org>
43186
43187         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43188         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43189
43190 2008-01-26  Bruno Haible  <bruno@clisp.org>
43191
43192         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43193         GCC >= 4.0 built-in.
43194         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43195
43196 2008-01-26  Bruno Haible  <bruno@clisp.org>
43197
43198         Rename isnan, applicable to 'double' only, to isnand.
43199         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43200         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43201         (configure.ac): Update.
43202         (Include): Replace "isnan.h" with "isnand.h".
43203         * m4/isnand.m4: Renamed from m4/isnan.m4.
43204         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43205         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43206         instead of isnan.c.
43207         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43208         instead of HAVE_ISNAN_IN_LIBC.
43209         (isnand): Renamed from isnan.
43210         * lib/isnand.c: New file.
43211         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43212         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43213         (Makefile.am): Update.
43214         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43215         Include isnand.h instead of isnan.h.
43216         (main): Test isnand instead of isnan.
43217         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43218         isnan-nolibm.
43219         * modules/frexp (Depends-on): Likewise.
43220         * modules/frexp-tests (Depends-on): Likewise.
43221         * modules/frexp-nolibm (Depends-on): Likewise.
43222         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43223         * modules/isfinite (Depends-on): Likewise.
43224         * modules/round-tests (Depends-on): Likewise.
43225         * modules/signbit (Depends-on): Likewise.
43226         * modules/signbit-tests (Depends-on): Likewise.
43227         * modules/snprintf-posix (Depends-on): Likewise.
43228         * modules/sprintf-posix (Depends-on): Likewise.
43229         * modules/trunc-tests (Depends-on): Likewise.
43230         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43232         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43233         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43234         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43235         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43236         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43237         * modules/vasnprintf-posix (Depends-on): Likewise.
43238         * modules/vasprintf-posix (Depends-on): Likewise.
43239         * modules/vfprintf-posix (Depends-on): Likewise.
43240         * modules/vsnprintf-posix (Depends-on): Likewise.
43241         * modules/vsprintf-posix (Depends-on): Likewise.
43242         * lib/frexp.c: Include isnand.h instead of isnan.h.
43243         (ISNAN): Set to isnand instead of isnan.
43244         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43245         (gl_isfinited): Use isnand instead of isnan.
43246         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43247         (gl_signbitd): Use isnand instead of isnan.
43248         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43249         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43250         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43251         (main): Use isnand instead of isnan.
43252         * tests/test-round1.c: Include isnand.h.
43253         (main): Use isnand instead of isnan.
43254         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43255         (ISNAN): Set to isnand instead of isnan.
43256         * tests/test-trunc1.c: Include isnand.h.
43257         (main): Use isnand instead of isnan.
43258         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43259         (equal): Use isnand instead of isnan.
43260         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43261         isnand-nolibm.
43262         * NEWS: Mention the change.
43263
43264 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43265             Bruno Haible  <bruno@clisp.org>
43266
43267         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43268         the GCC builtins for signbits are present and set
43269         REPLACE_SIGNBIT_USING_GCC if so.
43270         * lib/math.in.h (signbit): Define using GCC builtins if
43271         REPLACE_SIGNBIT_USING_GCC is set.
43272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43273         REPLACE_SIGNBIT_USING_GCC.
43274         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43275
43276 2008-01-25  Jim Meyering  <meyering@redhat.com>
43277
43278         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43279         * lib/poll.c: Include <config.h>, not "config.h".
43280         * tests/test-getaddrinfo.c: Likewise.
43281
43282 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43283
43284         * modules/sockets-tests: New file.
43285
43286 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43287
43288         * modules/sockets: New module, can be used to call WSA_Startup and
43289         WSA_Cleanup when needed.
43290
43291         * lib/sockets.h, lib/sockets.c: New files.
43292
43293         * m4/sockets.m4: New file.
43294
43295         * tests/test-sockets.c: New file.
43296
43297 2008-01-19  Bruno Haible  <bruno@clisp.org>
43298
43299         * doc/posix-headers: Renamed from doc/headers.
43300         * doc/posix-functions: Renamed from doc/functions.
43301         * doc/gnulib.texi: Update.
43302
43303 2008-01-19  Bruno Haible  <bruno@clisp.org>
43304
43305         * doc/glibc-functions/strcasestr.texi: Include contents of
43306         doc/functions/strcasestr.texi, fixing the list of platforms.
43307         * doc/functions/strcasestr.texi: Remove file.
43308
43309 2008-01-19  Bruno Haible  <bruno@clisp.org>
43310
43311         * doc/glibc-functions/memmem.texi: Include contents of
43312         doc/functions/memmem.texi.
43313         * doc/functions/memmem.texi: Remove file.
43314
43315 2008-01-18  Bruno Haible  <bruno@clisp.org>
43316
43317         * doc/glibc-functions/*.texi: New files.
43318         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43319         to use the new files.
43320
43321 2008-01-17  Bruno Haible  <bruno@clisp.org>
43322
43323         * tests/test-gethostname.c (main): Fix printf statement.
43324
43325 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43326
43327         * modules/gethostname-tests: New file.
43328
43329         * tests/test-gethostname.c: New file.
43330
43331 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43332
43333         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43334         used by the UNAME case.  Reported by Bruno Haible
43335         <bruno@clisp.org>.
43336
43337 2008-01-17  Eric Blake  <ebb9@byu.net>
43338
43339         Convert c-strcasestr to be more efficient.
43340         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43341         (Depends-on): Add c-strcase, remove malloca, strnlen.
43342         * tests/test-c-strcasestr.c (main): Enhance test.
43343         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43344
43345 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43346
43347         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43348         Use it in creating po/Makevars.
43349
43350 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43351
43352         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43353         Applications that requires it should initialize libgcrypt
43354         manually.
43355
43356 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43357
43358         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43359
43360 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43361
43362         Fix problem with getdate on mingw32 reported by Simon Josefsson
43363         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43364         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43365         tzname", when deciding whether to declare tzname.
43366         * lib/strftime.c (tzname): Likewise.
43367
43368 2008-01-15  Bruno Haible  <bruno@clisp.org>
43369
43370         Work around a MacOS X 10.5 bug in frexpl().
43371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43372         * doc/functions/frexpl.texi: Document the bug.
43373         Reported by Elias Pipping <pipping@gentoo.org>.
43374
43375 2008-01-14  Eric Blake  <ebb9@byu.net>
43376
43377         Touch up previous patch.
43378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43379         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43380
43381         Convert strcasestr module to use Two-Way algorithm.
43382         * modules/strcasestr-simple: New module, based on the old
43383         strcasestr, but with Two-Way rather than KMP.
43384         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43385         * lib/string.in.h (rpl_strcasestr): Declare.
43386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43387         performance.
43388         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43389         * modules/string (Makefile.am): Support strcasestr.
43390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43391         * modules/strcasestr-tests (Depends-on): Check for alarm.
43392         * tests/test-strcasestr.c: Augment test.
43393         * lib/str-two-way.h: Clean up stray macro.
43394         * NEWS: Document new module.
43395         * MODULES.html.sh (string handling): Likewise.
43396         * doc/functions/strcasestr.texi: New file.
43397         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43398         here, since it is not a POSIX function.
43399
43400 2008-01-14  Colin Watson  <cjwatson@debian.org>
43401             Bruno Haible  <bruno@clisp.org>
43402
43403         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43404         works fine; if not, set REPLACE_STRSIGNAL.
43405         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43407         REPLACE_STRSIGNAL.
43408         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43409         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43410         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43411
43412 2008-01-14  Bruno Haible  <bruno@clisp.org>
43413
43414         * modules/strsignal (Include): Change to <string.h>.
43415
43416 2008-01-14  Colin Watson  <cjwatson@debian.org>
43417
43418         * modules/argp (Notice): Add a notice recommending to change
43419         XGETTEXT_OPTIONS.
43420         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43421
43422 2008-01-13  Colin Watson  <cjwatson@debian.org>
43423
43424         * modules/strsignal-tests: New file.
43425         * tests/test-strsignal.c: New file.
43426
43427         * lib/strsignal.c: New file, from glibc with modifications.
43428         * lib/siglist.h: New file, from glibc with modifications.
43429         * lib/string.in.h (strsignal): New declaration.
43430         * m4/strsignal.m4: New file.
43431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43432         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43433         * modules/strsignal: New file.
43434         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43435         HAVE_DECL_STRSIGNAL.
43436
43437 2008-01-13  Bruno Haible  <bruno@clisp.org>
43438
43439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43440         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43441         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43443
43444 2008-01-13  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43447         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43448         * lib/argp.h (__attribute__): Likewise.
43449         * lib/c-stack.c (__attribute__): Likewise.
43450         * lib/error.h (__attribute__): Likewise.
43451         * lib/fts.c (__attribute__): Likewise.
43452         * lib/openat.h (__attribute__): Likewise.
43453         * lib/stdio.in.h (__attribute__): Likewise.
43454         * lib/string.in.h (__attribute__): Likewise.
43455         * lib/utimens.c (__attribute__): Likewise.
43456         * lib/vasnprintf.h (__attribute__): Likewise.
43457         * lib/xalloc.h (__attribute__): Likewise.
43458         * lib/xprintf.h (__attribute__): Likewise.
43459         * lib/xstrtol.h (__attribute__): Likewise.
43460         * lib/xvasprintf.h (__attribute__): Likewise.
43461
43462 2008-01-12  Bruno Haible  <bruno@clisp.org>
43463
43464         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43465         * doc/glibc-headers/a.out.texi: New file.
43466         * doc/glibc-headers/aliases.texi: New file.
43467         * doc/glibc-headers/alloca.texi: New file.
43468         * doc/glibc-headers/ar.texi: New file.
43469         * doc/glibc-headers/argp.texi: New file.
43470         * doc/glibc-headers/argz.texi: New file.
43471         * doc/glibc-headers/byteswap.texi: New file.
43472         * doc/glibc-headers/crypt.texi: New file.
43473         * doc/glibc-headers/endian.texi: New file.
43474         * doc/glibc-headers/envz.texi: New file.
43475         * doc/glibc-headers/err.texi: New file.
43476         * doc/glibc-headers/error.texi: New file.
43477         * doc/glibc-headers/execinfo.texi: New file.
43478         * doc/glibc-headers/fpu_control.texi: New file.
43479         * doc/glibc-headers/fstab.texi: New file.
43480         * doc/glibc-headers/fts.texi: New file.
43481         * doc/glibc-headers/getopt.texi: New file.
43482         * doc/glibc-headers/ieee754.texi: New file.
43483         * doc/glibc-headers/ifaddrs.texi: New file.
43484         * doc/glibc-headers/libintl.texi: New file.
43485         * doc/glibc-headers/mcheck.texi: New file.
43486         * doc/glibc-headers/mntent.texi: New file.
43487         * doc/glibc-headers/obstack.texi: New file.
43488         * doc/glibc-headers/paths.texi: New file.
43489         * doc/glibc-headers/printf.texi: New file.
43490         * doc/glibc-headers/pty.texi: New file.
43491         * doc/glibc-headers/resolv.texi: New file.
43492         * doc/glibc-headers/shadow.texi: New file.
43493         * doc/glibc-headers/sysexits.texi: New file.
43494         * doc/glibc-headers/ttyent.texi: New file.
43495
43496 2008-01-12  Jim Meyering  <meyering@redhat.com>
43497
43498         announce-gen: emit Gnulib's git-based version string.
43499         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43500         New option --gnulib-version=V, where V is expected to be
43501         the output of running git describe in the gnulib directory.
43502         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43503         not useful, and plan to stop publishing an xdelta file with each
43504         coreutils release.
43505
43506         * build-aux/announce-gen: Also check for lzma-compressed files.
43507
43508 2008-01-11  Bruno Haible  <bruno@clisp.org>
43509
43510         * tests/test-memmem.c (main): Increase maximum allowed time.
43511         * tests/test-strstr.c (main): Likewise.
43512
43513 2008-01-11  Bruno Haible  <bruno@clisp.org>
43514
43515         * doc/functions/memmem.texi: Add more precisions about platforms.
43516         * doc/functions/strstr.texi: Likewise.
43517
43518 2008-01-10  Eric Blake  <ebb9@byu.net>
43519
43520         * m4/strstr.m4: Delete cruft from copy-n-paste.
43521         Reported by Bruno Haible.
43522
43523 2008-01-10  Bruno Haible  <bruno@clisp.org>
43524
43525         Make c-strstr rely on strstr.
43526         * lib/c-strstr.c: Don't include str-kmp.h.
43527         (c_strstr): Define in terms of strstr.
43528         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43529         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43530
43531 2008-01-10  Bruno Haible  <bruno@clisp.org>
43532
43533         * doc/gnulib.texi (String Functions in C Locale): New section.
43534         * doc/c-ctype.texi: New file.
43535         * doc/c-strcase.texi: New file.
43536         * doc/c-strcaseeq.texi: New file.
43537         * doc/c-strcasestr.texi: New file.
43538         * doc/c-strstr.texi: New file.
43539         * doc/c-strtod.texi: New file.
43540         * doc/c-strtold.texi: New file.
43541
43542 2008-01-10  Eric Blake  <ebb9@byu.net>
43543
43544         * lib/relocatable.h: Fix a comment.
43545
43546 2008-01-10  Eric Blake  <ebb9@byu.net>
43547
43548         Share two-way algorithm.
43549         * lib/str-two-way.h: New file, merged from...
43550         * lib/memmem.c: ...here...
43551         * lib/strstr.c: ...and here.
43552         * modules/memmem (Files): Use it.
43553         * modules/strstr (Files): Likewise.
43554
43555         Avoid quadratic strstr implementations.
43556         * lib/strstr.c: New file.
43557         * m4/strstr.m4: Likewise.
43558         * modules/strstr: Likewise.
43559         * modules/strstr-tests: Likewise.
43560         * tests/test-strstr.c: Likewise.
43561         * lib/string.in.h (rpl_strstr): Declare.
43562         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43564         * modules/string (Makefile.am): Likewise.
43565         * MODULES.html.sh (string handling): Mention new module.
43566         * doc/functions/strstr.texi (strstr): Document the bug.
43567
43568 2008-01-10  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/relocatable.h (relocate): State whether result is freshly
43571         allocated or not.
43572         * lib/relocatable.c (relocate): Return a freshly allocated string
43573         instead of a pointer to a privately held string.
43574         Reported by Sylvain Beucler <beuc@gnu.org>.
43575
43576 2008-01-10  Colin Watson  <cjwatson@debian.org>
43577
43578         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43579         s/S_ISNLK/S_ISLNK/.
43580
43581 2008-01-09  Bruno Haible  <bruno@clisp.org>
43582
43583         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43584         and other files.
43585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43586         if it's only a guess.
43587         * modules/memmem: Simplify by depending on memmem-simple.
43588
43589 2008-01-09  Bruno Haible  <bruno@clisp.org>
43590
43591         Work around OpenBSD 4.0 tdelete() bug.
43592         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43593         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43594         macros and don't redefine the enum values.
43595         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43596         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43597         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43598
43599 2008-01-09  Bruno Haible  <bruno@clisp.org>
43600
43601         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43602         (main): Don't perform the tests if setlocale did not install a UTF-8
43603         locale. Needed on OpenBSD 4.0.
43604         * modules/wcwidth-tests (Depends-on): Add localcharset.
43605
43606 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43607
43608         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43609         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43610         * NEWS: announce this.
43611         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43612
43613 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43614         and Eric Blake  <ebb9@byu.net>
43615
43616         Add memmem-simple module.
43617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43618         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43619         * modules/memmem-simple: New file.
43620         * modules/memmem (Description): Tweak.
43621         * MODULES.html.sh (string handling): Mention new module.
43622         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43623         addressed by memmem-simple.
43624         * NEWS: Document the difference.
43625
43626 2008-01-09  Eric Blake  <ebb9@byu.net>
43627
43628         Give gcc some memmem optimization hints.
43629         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43630         (strcasestr): Declare as pure.
43631         * modules/memmem (Maintainer): Claim my implementation.
43632
43633 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43634
43635         Support AIX 6.1 and higher.
43636         * build-aux/config.libpath: Likewise.
43637         * build-aux/config.rpath: Likewise.
43638
43639 2008-01-08  Jim Meyering  <meyering@redhat.com>
43640             Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43643         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43644         Reported by Peter Fales in
43645         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43646
43647 2008-01-08  Bruno Haible  <bruno@clisp.org>
43648
43649         * modules/unictype/category-of (Depends-on): Add
43650         unictype/category-none.
43651         * modules/unictype/category-and-tests (Depends-on): Add
43652         unictype/category-{L,N,Lu,Nd}.
43653         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43654         * modules/unictype/category-or-tests (Depends-on): Add
43655         unictype/category-{L,N}.
43656         * modules/unictype/category-name-tests (Depends-on): Add
43657         unictype/category-{Z,Nl}.
43658         Reported by Simon Josefsson.
43659
43660 2008-01-08  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43663         convention better.
43664         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43665         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43666         Reported by Peter Miller <millerp@canb.auug.org.au>.
43667
43668 2008-01-08  Eric Blake  <ebb9@byu.net>
43669
43670         Rewrite memmem to guarantee linear complexity without malloc.
43671         * lib/memmem.c (memmem): Use Two-Way rather than
43672         Knuth-Morris-Pratt, to allow O(1) space usage.
43673         (critical_factorization, two_way_short_needle)
43674         (two_way_long_needle): New functions.
43675         (knuth_morris_pratt): Delete.
43676         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43677         Add stdint.
43678         * tests/test-memmem.c (main): Add tests for periodic needle and
43679         sublinear performance.
43680         * doc/functions/memmem.texi (memmem): Document other deficiencies
43681         in cygwin and older glibc.
43682
43683 2008-01-08  Bruno Haible  <bruno@clisp.org>
43684
43685         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43686         augmentation.
43687
43688 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43689
43690         Add a configure time option: --disable-acl.
43691         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43692         AC_ARG_ENABLE(acl).
43693
43694 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43695
43696         * tests/test-localename.c: Don't include obsolete "setenv.h".
43697
43698         * modules/localename-tests (Depends-on): Need unsetenv.
43699
43700 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43701
43702         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43703
43704 2008-01-06  Colin Watson  <cjwatson@debian.org>
43705
43706         * users.txt: Add man-db.
43707
43708 2008-01-07  Bruno Haible  <bruno@clisp.org>
43709
43710         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43711         previous section name.
43712
43713 2008-01-07  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/progname.c (set_program_name): Don't strip off a leading
43716         "lt-" prefix outside a .libs directory.
43717         Suggested by Paul Eggert.
43718
43719 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43720             Bruno Haible  <bruno@clisp.org>
43721
43722         Improve memory cleanup in 'relocatable' module.
43723         * lib/relocatable.h (compute_curr_prefix): Change return type to
43724         'char *'.
43725         * lib/relocatable.c (compute_curr_prefix): Change return type to
43726         'char *'. Free curr_installdir after use.
43727         (relocate): Free curr_prefix_better after use.
43728         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43729
43730 2008-01-01  Bruno Haible  <bruno@clisp.org>
43731
43732         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43733         failure on older glibc systems.
43734         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43735
43736 2008-01-05  Eric Blake  <ebb9@byu.net>
43737
43738         Avoid quadratic system memmem.
43739         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43740         Reported by Ralf Wildenhues.
43741
43742         Fix memmem test for mingw.
43743         * modules/memmem-tests (configure.ac): Check for alarm.
43744         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43745         it.
43746         * doc/functions/memmem.texi: New file.
43747         * doc/gnulib.texi (Function Substitutes): Add memmem.
43748         Reported by Bruno Haible.
43749
43750 2008-01-04  Bruno Haible  <bruno@clisp.org>
43751
43752         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43753         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43754         gl_HEADER_STRING_H_DEFAULTS.
43755
43756 2008-01-04  Eric Blake  <ebb9@byu.net>
43757
43758         Shorten duration of memmem test.
43759         * tests/test-memmem.c (main): Use alarm to declare failure if test
43760         is taking too long.
43761         Reported by Ralf Wildenhues.
43762
43763 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43764
43765         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43766         string, needed by strerror.
43767
43768 2008-01-03  Colin Watson  <cjwatson@debian.org>
43769             Bruno Haible  <bruno@clisp.org>
43770
43771         * doc/gnulib-tool.texi (Localization): New section.
43772
43773 2008-01-02  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43776         variables to 'unsigned char *' type.
43777         Reported by Paul Eggert.
43778
43779 2008-01-02  Jim Meyering  <jim@meyering.net>
43780
43781         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43782
43783 2007-12-31  Jim Meyering  <jim@meyering.net>
43784
43785         Avoid use of private FTS type name.
43786         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43787
43788 2007-12-30  Karl Berry  <karl@gnu.org>
43789
43790         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43791         work around defect in Texinfo and/or the standalone Info browser.
43792
43793 2007-12-30  Bruno Haible  <bruno@clisp.org>
43794
43795         Unify 5 copies of the KMP code.
43796         * lib/str-kmp.h: New file.
43797         * lib/c-strcasestr.c: Include str-kmp.h.
43798         (knuth_morris_pratt): Remove function.
43799         (c_strcasestr): Update.
43800         * lib/c-strstr.c: Include str-kmp.h.
43801         (knuth_morris_pratt): Remove function.
43802         (c_strcasestr): Update.
43803         * lib/mbscasestr.c: Include str-kmp.h.
43804         (knuth_morris_pratt_unibyte): Remove function.
43805         * lib/mbsstr.c: Include str-kmp.h.
43806         (knuth_morris_pratt_unibyte): Remove function.
43807         * lib/strcasestr.c: Include str-kmp.h.
43808         (knuth_morris_pratt): Remove function.
43809         (strcasestr): Update.
43810         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43811         * modules/c-strstr (Files): Likewise.
43812         * modules/mbscasestr (Files): Likewise.
43813         * modules/mbsstr (Files): Likewise.
43814         * modules/strcasestr (Files): Likewise.
43815         Suggested by Paul Eggert.
43816
43817 2007-12-30  Bruno Haible  <bruno@clisp.org>
43818
43819         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43820         defined.
43821
43822 2007-12-30  Bruno Haible  <bruno@clisp.org>
43823
43824         * lib/xmalloca.h: Include xalloc.h.
43825         (xnmalloca): New macro.
43826
43827 2007-12-30  Bruno Haible  <bruno@clisp.org>
43828
43829         * lib/malloca.h (nmalloca): New macro.
43830         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43831         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43832         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43833         knuth_morris_pratt_multibyte): Likewise.
43834         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43835         knuth_morris_pratt_multibyte): Likewise.
43836         * lib/memmem.c (knuth_morris_pratt): Likewise.
43837         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43838
43839 2007-12-25  Bruno Haible  <bruno@clisp.org>
43840
43841         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43842         * lib/glob.c: Don't include openat.h.
43843         (link_exists2_p): Add back the code that deals with the
43844         !GLOB_ALTDIRFUNC case.
43845         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43846         let it do the filename concatenation.
43847         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43848         * modules/glob (Depends-on): Remove openat.
43849
43850 2007-12-31  Bruno Haible  <bruno@clisp.org>
43851
43852         * modules/dirfd (License): Change to LGPLv2+.
43853         Approved by Jim Meyering.
43854
43855 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43858         when multiplying M by sizeof (size_t).
43859
43860 2007-12-10  Martin Lambers  <marlam@marlam.de>
43861
43862         Override getpagesize on mingw.
43863         * lib/getpagesize.c: New file.
43864         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43865         * modules/getpagesize (Files): Add lib/getpagesize.c.
43866         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43868         REPLACE_GETPAGESIZE.
43869         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43870
43871 2007-12-25  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/localcharset (Notice): New field.
43874         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43875         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43876
43877 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43878             Bruno Haible  <bruno@clisp.org>
43879
43880         Avoid using the syntax symbol() in formatted documentation.
43881         * MODULES.html.sh (func_module): When replacing symbol() with a
43882         hyperlink, remove the parentheses. Show an error if some remain.
43883         Recognize and render the '...' syntax.
43884         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43885         Rework. Add paragraph about GCC's inlining.
43886         * doc/alloca.texi: Likewise.
43887         * doc/error.texi: Remove parentheses from symbol reference.
43888         * doc/gnulib-intro.texi: Likewise.
43889         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43890         * modules/fnmatch (Description): Reword to say "the ... function".
43891         * modules/full-read (Description): Likewise.
43892         * modules/full-write (Description): Likewise.
43893         * modules/safe-read (Description): Likewise.
43894         * modules/safe-write (Description): Likewise.
43895         * modules/strchrnul (Description): Likewise.
43896         * modules/trim (Description): Likewise.
43897         * modules/error (Description): Remove parentheses from symbol
43898         references.
43899         * modules/verror (Description): Likewise.
43900         Reported by Karl Berry.
43901
43902 2007-12-25  Bruno Haible  <bruno@clisp.org>
43903
43904         Fixup after 2007-10-16 commit.
43905         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43906
43907 2007-12-24  Bruno Haible  <bruno@clisp.org>
43908
43909         Make --enable-relocatable work with DESTDIR.
43910         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43911         to compute installdir from destprog.
43912         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43913         also set the RELOC_DESTDIR variable.
43914         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43915
43916 2007-12-24  Bruno Haible  <bruno@clisp.org>
43917
43918         Fix link error due to xalloc_die().
43919         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43920         of xreadlink.
43921         * lib/relocwrapper.c: Update comments.
43922         * build-aux/install-reloc: Remove xreadlink.c from file list.
43923         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43924         xreadlink.c.
43925         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43926
43927 2007-12-24  Bruno Haible  <bruno@clisp.org>
43928
43929         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43930         * lib/setenv.h: Remove file.
43931         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43932         lib/setenv.h.
43933         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43934         (Depends-on): Add stdlib.
43935         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43936         gl_FUNC_UNSETENV.
43937         (Include): Replace setenv.h with <stdlib.h>.
43938         * modules/unsetenv: New file.
43939         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43940         * lib/unsetenv.c: Include <stdlib.h> first.
43941         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43942         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43943         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43944         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43945         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43946         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43948         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43949         * doc/functions/unsetenv.texi: Update.
43950         * modules/xsetenv (Depends-on): Add unsetenv.
43951         * modules/getdate (Depends-on): Likewise.
43952         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43953         * lib/xsetenv.c: Don't include setenv.h.
43954         * lib/getdate.y: Likewise.
43955         * lib/relocwrapper.c: Likewise.
43956         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43957         (Depends-on): Add stdlib.
43958         * NEWS: Mention the changes.
43959         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43960
43961 2007-12-23  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43964         indentation.
43965
43966 2007-12-23  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/c-strcasestr.c: Add more comments.
43969         * lib/c-strstr.c: Likewise.
43970         * lib/mbscasestr.c: Likewise.
43971         * lib/mbsstr.c: Likewise.
43972         * lib/strcasestr.c: Likewise.
43973         * lib/memmem.c: Likewise.
43974
43975 2007-12-23  Bruno Haible  <bruno@clisp.org>
43976
43977         * tests/test-memmem.c: Include <string.h> first.
43978
43979 2007-12-22  Bruno Haible  <bruno@clisp.org>
43980
43981         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43982         the contents of $testsbase.
43983         Reported by Ralf Wildenhues.
43984
43985 2007-12-22  Bruno Haible  <bruno@clisp.org>
43986
43987         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43988         two variables local_ldadd_before, local_ldadd_last.
43989
43990 2007-12-20  Eric Blake  <ebb9@byu.net>
43991
43992         Work around circular library issue when cross-compiling.
43993         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43994         that progname.o does not need to pull in rpl_memcmp.
43995
43996 2007-12-19  Eric Blake  <ebb9@byu.net>
43997
43998         Fix memmem to avoid O(n^2) worst-case complexity.
43999         * lib/memmem.c (knuth_morris_pratt): New function.
44000         (memmem): Use it if first few naive iterations fail.
44001         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44002         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44003         * modules/memchr (License): Likewise.
44004         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44005         malloca.
44006         * tests/test-memmem.c: Rewrite, borrowing ideas from
44007         test-mbsstr1.c; the old version wouldn't even compile!
44008         * modules/memmem-tests: New file.
44009         * lib/string.in.h (rpl_memmem): Add declaration.
44010         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44012         REPLACE_MEMMEM.
44013
44014 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44015
44016         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44017         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44018         before any system include files, and undef after them all.  This
44019         should fix a problem on VMS reported by John E. Malmberg in
44020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44021
44022 2007-12-17  Eric Blake  <ebb9@byu.net>
44023
44024         Revert addition of verify, for BSD/OS.
44025         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44026         can't handle large files, for the sake of obsolete platforms.
44027         * modules/fseeko (Depends-on): Remove verify.
44028         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44029         * doc/functions/ftello.texi (ftello): Likewise.
44030         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44031         Reported by Larry Jones.
44032
44033 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44034
44035         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44036         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44037
44038 2007-12-17  Jim Meyering  <meyering@redhat.com>
44039
44040         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44041         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44042         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44043         * modules/getcwd (Depends-on): Add openat.
44044         Reported by Petr Salinger.
44045
44046 2007-12-17  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44049         avoid a segmentation fault of the configure test on x86_64 systems.
44050
44051 2007-12-15  Jim Meyering  <meyering@redhat.com>
44052
44053         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44054
44055 2007-12-13  Eric Blake  <ebb9@byu.net>
44056
44057         Another fseek test.
44058         * tests/test-fseek.c (main): Also test ungetc handling.
44059         * tests/test-fseeko.c (main): Likewise.
44060         * modules/fseeko (Depends-on): Add verify.
44061         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44062         large.
44063         Reported by Larry Jones.
44064
44065         Fix fseeko on mingw.
44066         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44067         seek.
44068
44069         Beef up fseek tests.
44070         * tests/test-fseek.c (main): Also test eof handling.
44071         * tests/test-fseeko.c (main): Likewise.
44072         Reported by Larry Jones.
44073
44074 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44075
44076         Fix fseeko on BSD-based platforms.
44077         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44078         successful seek.
44079
44080 2007-12-12  Eric Blake  <ebb9@byu.net>
44081
44082         Allow circular dependency of separate libtests.a
44083         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44084         when use_libtests.
44085
44086 2007-12-11  Eric Blake  <ebb9@byu.net>
44087
44088         Fix bug with -0.0L in previous patch.
44089         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44090         * tests/test-isnan.c (main): Also test on zeroes.
44091         * tests/test-isnanf.c (main): Likewise.
44092         * tests/test-isnanl.h (main): Likewise.
44093
44094         Detect pseudo-denormals on x86 even when cross-compiling.
44095         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44096         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44097         invalid bit patterns that happen to satisfy ==.
44098
44099         Avoid link failures with separate libtests.a.
44100         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44101         last, to satisfy circular dependencies.
44102
44103 2007-12-11  Eric Blake  <ebb9@byu.net>
44104         and Bruno Haible  <bruno@clisp.org>
44105
44106         Fix OpenBSD 4.0 <float.h> handling of long double.
44107         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44108         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44109         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44110
44111 2007-12-11  Jim Meyering  <meyering@redhat.com>
44112
44113         * users.txt: Add libvirt.
44114
44115         Support versions of autoconf prior to 2.59c.
44116         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44117         if it is not already defined.
44118
44119 2007-12-09  Bruno Haible  <bruno@clisp.org>
44120
44121         Let 'gnulib-tool --import' collect sources needed for the tests in
44122         tests/ rather than in lib/.
44123         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44124         argument. If true, add rules to generate libtests.a, and put libtests.a
44125         into $(LDADD). Consider source files in subdirectories and set
44126         uses_subdirs.
44127         (func_emit_initmacro_start, func_emit_initmacro_end,
44128         func_emit_initmacro_done): Pass all arguments explicitly.
44129         (func_import): Determine two module lists main_modules,
44130         testsrelated_modules. Determine use_libtests. Determine two variables
44131         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44132         instead of just sed_transform_lib_file. Determine two variables
44133         main_files and testsrelated_files. Compute 'files' as the union of
44134         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44135         func_add_or_update. In the generated gnulib-comp.m4, collect the
44136         object files for tests/ in different variables than those for lib/.
44137         Substitute LIBTESTS_LIBDEPS.
44138         (func_create_testdir): Combine the uses_subdirs results from
44139         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44140
44141 2007-12-09  Bruno Haible  <bruno@clisp.org>
44142
44143         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44144         the build-aux directory.
44145
44146 2007-12-09  Bruno Haible  <bruno@clisp.org>
44147
44148         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44149         introduced on 2006-09-09.
44150
44151 2007-12-07  Jim Meyering  <meyering@redhat.com>
44152
44153         Let these macros work also with autoconf-2.59.
44154         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44155         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44156         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44157
44158 2007-12-06  Jim Meyering  <meyering@redhat.com>
44159
44160         Avoid a configure-time syntax error in gl_FUNC_ACL.
44161         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44162         function in each branch, before testing the cache variable.
44163
44164 2007-12-04  Eric Blake  <ebb9@byu.net>
44165
44166         Make scripts executable.
44167         * build-aux/config.guess: Add execute permissions.
44168         * build-aux/config.sub: Likewise.
44169         * build-aux/gendocs.sh: Likewise.
44170
44171         Fix frexp on mingw.
44172         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44173         cross-compiling.
44174         * doc/functions/frexp.texi (frexp): Document the bug.
44175
44176         Make cygwin fseeko check more reliable.
44177         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44178         version numbers, rather than unrelated feature check.
44179         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44180         * doc/functions/ftello.texi (ftello): Likewise.
44181         Reported by Bruno Haible.
44182
44183         * m4/strerror.m4: Bump version number.
44184
44185 2007-12-03  Bruno Haible  <bruno@clisp.org>
44186
44187         * doc/functions/mprotect.texi: Mention the mingw problem.
44188
44189 2007-12-03  Eric Blake  <ebb9@byu.net>
44190
44191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44192         REPLACE_STRERROR is initialized before this macro.
44193
44194 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44195
44196         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44197         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44198         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44199         put -lsec in even for programs other than 'ls'.  This fixes a problem
44200         for gettext reported by Bruno Haible in
44201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44202         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44203         Add support for Solaris 10.  This isn't efficient, but should get the
44204         job done for now.
44205
44206 2007-12-03  James Youngman  <jay@gnu.org>
44207
44208         * doc/regexprops-generic.texi: change "an close-group" to "a
44209         close-group" and "illegal" to "not allowed".
44210
44211 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44212
44213         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44214         pr_byname.h. Needed for the rare case when the maintainer has done
44215         "make maintainer-clean" in the source directory and then attempts a
44216         build outside the source directory.
44217         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44218         scripts_byname.h.
44219
44220 2007-12-02  Martin Lambers <marlam@marlam.de>
44221             Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/getpagesize.h: Remove file.
44224         * lib/unistd.in.h: Include declaration of getpagesize here.
44225         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44226         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44227         HAVE_SYS_PARAM_H.
44228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44229         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44230         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44231         (Depends-on): Add unistd.
44232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44233         (Include): Use <unistd.h> instead of getpagesize.h.
44234         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44235         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44236         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44237         gl_GETPAGESIZE invocation, already handled by module dependency.
44238         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44239
44240 2007-12-02  Bruno Haible  <bruno@clisp.org>
44241
44242         * modules/strings-tests: New file.
44243         * tests/test-strings.c: New file.
44244
44245         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44246         * lib/strings.in.h: New file.
44247         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44248         * m4/strings_h.m4: New file.
44249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44250         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44251         * modules/strings: New file.
44252         * modules/string (Makefile.am): Update.
44253         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44254         Reported by Karl Berry.
44255
44256 2007-12-01  Eric Blake  <ebb9@byu.net>
44257
44258         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44259         accomodate fix in cygwin 1.5.25.
44260
44261 2007-12-01  Jim Meyering  <meyering@redhat.com>
44262
44263         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44264         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44265         that would inhibit utf8-optimization of a regexp containing line-
44266         or buffer-anchors, e.g., `^', `$'.
44267
44268 2007-11-30  Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44271         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44272         glthread_recursive_lock_init.
44273         * lib/lock.c (glthread_recursive_lock_init)
44274         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44275         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44276
44277 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         New function qset_acl, like set_acl but with syscall semantics.
44280         * lib/acl.h (qset_acl): New decl.
44281         * lib/acl.c (qset_acl): New function.
44282         (set_acl): Use new function.  Use more-consistent diagnostics.
44283
44284 2007-11-28  Jim Meyering  <meyering@redhat.com>
44285
44286         * modules/physmem (License): Change from GPL to LGPLv2+.
44287
44288 2007-11-26  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44291         'long double' type has excess precision.
44292         Reported by Jim Meyering in
44293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44294
44295 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44296
44297         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44298         Sync from <http://gnu.org/licenses>.
44299         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44300         with license text from same location.
44301         * doc/maintain.texi, doc/standards.texi:  Sync from
44302         <http://savannah.gnu.org/projects/gnustandards>.
44303
44304 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44305         and Jim Meyering  <meyering@redhat.com>
44306
44307         Adjust getdate' grammar to accept a slightly more regular language.
44308         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44309         Before, the former was rejected.
44310         * lib/getdate.y (digits_to_date_time): New function, factored
44311         out of ...
44312         (number): ...here.  Just call digits_to_date_time.
44313         (hybrid): New non-terminal to handle an <unsigned number,
44314         signed relative offset> sequence consistently.
44315
44316 2007-11-18  Jim Meyering  <meyering@redhat.com>
44317
44318         Pull my changes from coreutils:
44319         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44320         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44321         use of $gnulib_tool_option_extras, so that it's separated from the
44322         preceding argument.
44323
44324         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44325         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44326         parent destination directories before copying a file into place.
44327
44328 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44329
44330         bootstrap: work also with 4-argument variant of AC_INIT
44331         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44332
44333 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         Port test-getaddrinfo to Solaris.
44336         Problem reported by Bruno Haible in
44337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44338         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44339         explanation of setting 'hints'.
44340         Don't reject an implementation merely because it returns EAI_SERVICE.
44341         (EAI_SERVICE): Define to 0 if not defined.
44342
44343 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44344
44345         The license of gnu-make and posix-shell is now "GPLed build tool".
44346         * modules/gnu-make (License): Likewise.
44347         * modules/posix-shell (License): Likewise.
44348
44349         New module posix-shell, for determining a POSIX shell
44350         or perhaps something that is close enough to a POSIX shell.
44351         * m4/posix-shell.m4: New file.
44352         * modules/posix-shell: New file.
44353
44354         * MODULES.html.sh: Mention new module.
44355
44356         New module gnu-make, for determining whether we're using GNU Make.
44357         * m4/gnu-make.m4: New file.
44358         * modules/gnu-make: New file.
44359         * MODULES.html.sh: Mention new module.
44360
44361 2007-11-14  Jim Meyering  <meyering@redhat.com>
44362
44363         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44364         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44365         use this macro to create a function _definition_.
44366         Remove useless "#undef ARGMATCH_DIE".
44367
44368 2007-11-14  Bruno Haible  <bruno@clisp.org>
44369
44370         * lib/config.charset: Update for OpenBSD 4.1.
44371         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44372
44373 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44374
44375         Document 64-bit #if problems in stdint.texi.
44376         * doc/headers/stdint.texi (stdint.h): Mention problems with
44377         64-bit-#if, and how to work around them.
44378
44379         Don't insist on 'long long int' support in the preprocessor.  It
44380         breaks too many things.  For example, PRIdMAX still uses a 'long
44381         long int' format with the latest Sun compiler, even though
44382         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44383         preprocessor problem.  This causes the latest coreutils to dump
44384         core on Solaris 10 sparc with the Sun C compiler.
44385         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44386         the troublesome expressions at configure-time, not at #if-time.
44387         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44388         preprocessor.
44389         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44390         compile-time C checks, done at 'configure'-time.
44391         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44392         * modules/inttypes (Makefile): Substitute the new symbols that
44393         gl_INTTYPES_H now generates.
44394         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44395
44396 2007-11-12  Bruno Haible  <bruno@clisp.org>
44397
44398         Tests for Unicode character classification functions.
44399
44400         * modules/unictype/bidicategory-byname-tests: New file.
44401         * modules/unictype/bidicategory-name-tests: New file.
44402         * modules/unictype/bidicategory-of-tests: New file.
44403         * modules/unictype/bidicategory-test-tests: New file.
44404         * modules/unictype/block-list-tests: New file.
44405         * modules/unictype/block-of-tests: New file.
44406         * modules/unictype/block-test-tests: New file.
44407         * modules/unictype/category-C-tests: New file.
44408         * modules/unictype/category-Cc-tests: New file.
44409         * modules/unictype/category-Cf-tests: New file.
44410         * modules/unictype/category-Cn-tests: New file.
44411         * modules/unictype/category-Co-tests: New file.
44412         * modules/unictype/category-Cs-tests: New file.
44413         * modules/unictype/category-L-tests: New file.
44414         * modules/unictype/category-Ll-tests: New file.
44415         * modules/unictype/category-Lm-tests: New file.
44416         * modules/unictype/category-Lo-tests: New file.
44417         * modules/unictype/category-Lt-tests: New file.
44418         * modules/unictype/category-Lu-tests: New file.
44419         * modules/unictype/category-M-tests: New file.
44420         * modules/unictype/category-Mc-tests: New file.
44421         * modules/unictype/category-Me-tests: New file.
44422         * modules/unictype/category-Mn-tests: New file.
44423         * modules/unictype/category-N-tests: New file.
44424         * modules/unictype/category-Nd-tests: New file.
44425         * modules/unictype/category-Nl-tests: New file.
44426         * modules/unictype/category-No-tests: New file.
44427         * modules/unictype/category-P-tests: New file.
44428         * modules/unictype/category-Pc-tests: New file.
44429         * modules/unictype/category-Pd-tests: New file.
44430         * modules/unictype/category-Pe-tests: New file.
44431         * modules/unictype/category-Pf-tests: New file.
44432         * modules/unictype/category-Pi-tests: New file.
44433         * modules/unictype/category-Po-tests: New file.
44434         * modules/unictype/category-Ps-tests: New file.
44435         * modules/unictype/category-S-tests: New file.
44436         * modules/unictype/category-Sc-tests: New file.
44437         * modules/unictype/category-Sk-tests: New file.
44438         * modules/unictype/category-Sm-tests: New file.
44439         * modules/unictype/category-So-tests: New file.
44440         * modules/unictype/category-Z-tests: New file.
44441         * modules/unictype/category-Zl-tests: New file.
44442         * modules/unictype/category-Zp-tests: New file.
44443         * modules/unictype/category-Zs-tests: New file.
44444         * modules/unictype/category-and-not-tests: New file.
44445         * modules/unictype/category-and-tests: New file.
44446         * modules/unictype/category-byname-tests: New file.
44447         * modules/unictype/category-name-tests: New file.
44448         * modules/unictype/category-none-tests: New file.
44449         * modules/unictype/category-of-tests: New file.
44450         * modules/unictype/category-or-tests: New file.
44451         * modules/unictype/category-test-withtable-tests: New file.
44452         * modules/unictype/combining-class-tests: New file.
44453         * modules/unictype/ctype-alnum-tests: New file.
44454         * modules/unictype/ctype-alpha-tests: New file.
44455         * modules/unictype/ctype-blank-tests: New file.
44456         * modules/unictype/ctype-cntrl-tests: New file.
44457         * modules/unictype/ctype-digit-tests: New file.
44458         * modules/unictype/ctype-graph-tests: New file.
44459         * modules/unictype/ctype-lower-tests: New file.
44460         * modules/unictype/ctype-print-tests: New file.
44461         * modules/unictype/ctype-punct-tests: New file.
44462         * modules/unictype/ctype-space-tests: New file.
44463         * modules/unictype/ctype-upper-tests: New file.
44464         * modules/unictype/ctype-xdigit-tests: New file.
44465         * modules/unictype/decimal-digit-tests: New file.
44466         * modules/unictype/digit-tests: New file.
44467         * modules/unictype/mirror-tests: New file.
44468         * modules/unictype/numeric-tests: New file.
44469         * modules/unictype/property-alphabetic-tests: New file.
44470         * modules/unictype/property-ascii-hex-digit-tests: New file.
44471         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44472         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44473         * modules/unictype/property-bidi-block-separator-tests: New file.
44474         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44475         * modules/unictype/property-bidi-common-separator-tests: New file.
44476         * modules/unictype/property-bidi-control-tests: New file.
44477         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44478         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44479         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44480         * modules/unictype/property-bidi-european-digit-tests: New file.
44481         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44482         * modules/unictype/property-bidi-left-to-right-tests: New file.
44483         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44484         * modules/unictype/property-bidi-other-neutral-tests: New file.
44485         * modules/unictype/property-bidi-pdf-tests: New file.
44486         * modules/unictype/property-bidi-segment-separator-tests: New file.
44487         * modules/unictype/property-bidi-whitespace-tests: New file.
44488         * modules/unictype/property-byname-tests: New file.
44489         * modules/unictype/property-combining-tests: New file.
44490         * modules/unictype/property-composite-tests: New file.
44491         * modules/unictype/property-currency-symbol-tests: New file.
44492         * modules/unictype/property-dash-tests: New file.
44493         * modules/unictype/property-decimal-digit-tests: New file.
44494         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44495         * modules/unictype/property-deprecated-tests: New file.
44496         * modules/unictype/property-diacritic-tests: New file.
44497         * modules/unictype/property-extender-tests: New file.
44498         * modules/unictype/property-format-control-tests: New file.
44499         * modules/unictype/property-grapheme-base-tests: New file.
44500         * modules/unictype/property-grapheme-extend-tests: New file.
44501         * modules/unictype/property-grapheme-link-tests: New file.
44502         * modules/unictype/property-hex-digit-tests: New file.
44503         * modules/unictype/property-hyphen-tests: New file.
44504         * modules/unictype/property-id-continue-tests: New file.
44505         * modules/unictype/property-id-start-tests: New file.
44506         * modules/unictype/property-ideographic-tests: New file.
44507         * modules/unictype/property-ids-binary-operator-tests: New file.
44508         * modules/unictype/property-ids-trinary-operator-tests: New file.
44509         * modules/unictype/property-ignorable-control-tests: New file.
44510         * modules/unictype/property-iso-control-tests: New file.
44511         * modules/unictype/property-join-control-tests: New file.
44512         * modules/unictype/property-left-of-pair-tests: New file.
44513         * modules/unictype/property-line-separator-tests: New file.
44514         * modules/unictype/property-logical-order-exception-tests: New file.
44515         * modules/unictype/property-lowercase-tests: New file.
44516         * modules/unictype/property-math-tests: New file.
44517         * modules/unictype/property-non-break-tests: New file.
44518         * modules/unictype/property-not-a-character-tests: New file.
44519         * modules/unictype/property-numeric-tests: New file.
44520         * modules/unictype/property-other-alphabetic-tests: New file.
44521         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44522         * modules/unictype/property-other-grapheme-extend-tests: New file.
44523         * modules/unictype/property-other-id-continue-tests: New file.
44524         * modules/unictype/property-other-id-start-tests: New file.
44525         * modules/unictype/property-other-lowercase-tests: New file.
44526         * modules/unictype/property-other-math-tests: New file.
44527         * modules/unictype/property-other-uppercase-tests: New file.
44528         * modules/unictype/property-paired-punctuation-tests: New file.
44529         * modules/unictype/property-paragraph-separator-tests: New file.
44530         * modules/unictype/property-pattern-syntax-tests: New file.
44531         * modules/unictype/property-pattern-white-space-tests: New file.
44532         * modules/unictype/property-private-use-tests: New file.
44533         * modules/unictype/property-punctuation-tests: New file.
44534         * modules/unictype/property-quotation-mark-tests: New file.
44535         * modules/unictype/property-radical-tests: New file.
44536         * modules/unictype/property-sentence-terminal-tests: New file.
44537         * modules/unictype/property-soft-dotted-tests: New file.
44538         * modules/unictype/property-space-tests: New file.
44539         * modules/unictype/property-terminal-punctuation-tests: New file.
44540         * modules/unictype/property-test-tests: New file.
44541         * modules/unictype/property-titlecase-tests: New file.
44542         * modules/unictype/property-unassigned-code-value-tests: New file.
44543         * modules/unictype/property-unified-ideograph-tests: New file.
44544         * modules/unictype/property-uppercase-tests: New file.
44545         * modules/unictype/property-variation-selector-tests: New file.
44546         * modules/unictype/property-white-space-tests: New file.
44547         * modules/unictype/property-xid-continue-tests: New file.
44548         * modules/unictype/property-xid-start-tests: New file.
44549         * modules/unictype/property-zero-width-tests: New file.
44550         * modules/unictype/scripts-tests: New file.
44551         * modules/unictype/syntax-c-ident-tests: New file.
44552         * modules/unictype/syntax-c-whitespace-tests: New file.
44553         * modules/unictype/syntax-java-ident-tests: New file.
44554         * modules/unictype/syntax-java-whitespace-tests: New file.
44555         * tests/unictype/test-bidi_byname.c: New file.
44556         * tests/unictype/test-bidi_name.c: New file.
44557         * tests/unictype/test-bidi_of.c: New file.
44558         * tests/unictype/test-bidi_test.c: New file.
44559         * tests/unictype/test-block_list.c: New file.
44560         * tests/unictype/test-block_of.c: New file.
44561         * tests/unictype/test-block_test.c: New file.
44562         * tests/unictype/test-categ_and.c: New file.
44563         * tests/unictype/test-categ_and_not.c: New file.
44564         * tests/unictype/test-categ_byname.c: New file.
44565         * tests/unictype/test-categ_name.c: New file.
44566         * tests/unictype/test-categ_none.c: New file.
44567         * tests/unictype/test-categ_of.c: New file.
44568         * tests/unictype/test-categ_or.c: New file.
44569         * tests/unictype/test-categ_test_withtable.c: New file.
44570         * tests/unictype/test-combining.c: New file.
44571         * tests/unictype/test-decdigit.c: New file.
44572         * tests/unictype/test-digit.c: New file.
44573         * tests/unictype/test-mirror.c: New file.
44574         * tests/unictype/test-numeric.c: New file.
44575         * tests/unictype/test-pr_byname.c: New file.
44576         * tests/unictype/test-pr_test.c: New file.
44577         * tests/unictype/test-predicate-part1.h: New file.
44578         * tests/unictype/test-predicate-part2.h: New file.
44579         * tests/unictype/test-scripts.c: New file.
44580         * tests/unictype/test-sy_c_ident.c: New file.
44581         * tests/unictype/test-sy_java_ident.c: New file.
44582
44583         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44584         for Unicode 5.0.0.
44585         * tests/unictype/test-categ_Cc.c: Likewise.
44586         * tests/unictype/test-categ_Cf.c: Likewise.
44587         * tests/unictype/test-categ_Cn.c: Likewise.
44588         * tests/unictype/test-categ_Co.c: Likewise.
44589         * tests/unictype/test-categ_Cs.c: Likewise.
44590         * tests/unictype/test-categ_L.c: Likewise.
44591         * tests/unictype/test-categ_Ll.c: Likewise.
44592         * tests/unictype/test-categ_Lm.c: Likewise.
44593         * tests/unictype/test-categ_Lo.c: Likewise.
44594         * tests/unictype/test-categ_Lt.c: Likewise.
44595         * tests/unictype/test-categ_Lu.c: Likewise.
44596         * tests/unictype/test-categ_M.c: Likewise.
44597         * tests/unictype/test-categ_Mc.c: Likewise.
44598         * tests/unictype/test-categ_Me.c: Likewise.
44599         * tests/unictype/test-categ_Mn.c: Likewise.
44600         * tests/unictype/test-categ_N.c: Likewise.
44601         * tests/unictype/test-categ_Nd.c: Likewise.
44602         * tests/unictype/test-categ_Nl.c: Likewise.
44603         * tests/unictype/test-categ_No.c: Likewise.
44604         * tests/unictype/test-categ_P.c: Likewise.
44605         * tests/unictype/test-categ_Pc.c: Likewise.
44606         * tests/unictype/test-categ_Pd.c: Likewise.
44607         * tests/unictype/test-categ_Pe.c: Likewise.
44608         * tests/unictype/test-categ_Pf.c: Likewise.
44609         * tests/unictype/test-categ_Pi.c: Likewise.
44610         * tests/unictype/test-categ_Po.c: Likewise.
44611         * tests/unictype/test-categ_Ps.c: Likewise.
44612         * tests/unictype/test-categ_S.c: Likewise.
44613         * tests/unictype/test-categ_Sc.c: Likewise.
44614         * tests/unictype/test-categ_Sk.c: Likewise.
44615         * tests/unictype/test-categ_Sm.c: Likewise.
44616         * tests/unictype/test-categ_So.c: Likewise.
44617         * tests/unictype/test-categ_Z.c: Likewise.
44618         * tests/unictype/test-categ_Zl.c: Likewise.
44619         * tests/unictype/test-categ_Zp.c: Likewise.
44620         * tests/unictype/test-categ_Zs.c: Likewise.
44621         * tests/unictype/test-ctype_alnum.c: Likewise.
44622         * tests/unictype/test-ctype_alpha.c: Likewise.
44623         * tests/unictype/test-ctype_blank.c: Likewise.
44624         * tests/unictype/test-ctype_cntrl.c: Likewise.
44625         * tests/unictype/test-ctype_digit.c: Likewise.
44626         * tests/unictype/test-ctype_graph.c: Likewise.
44627         * tests/unictype/test-ctype_lower.c: Likewise.
44628         * tests/unictype/test-ctype_print.c: Likewise.
44629         * tests/unictype/test-ctype_punct.c: Likewise.
44630         * tests/unictype/test-ctype_space.c: Likewise.
44631         * tests/unictype/test-ctype_upper.c: Likewise.
44632         * tests/unictype/test-ctype_xdigit.c: Likewise.
44633         * tests/unictype/test-decdigit.h: Likewise.
44634         * tests/unictype/test-digit.h: Likewise.
44635         * tests/unictype/test-numeric.h: Likewise.
44636         * tests/unictype/test-pr_alphabetic.c: Likewise.
44637         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44638         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44639         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44640         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44641         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44642         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44643         * tests/unictype/test-pr_bidi_control.c: Likewise.
44644         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44645         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44646         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44647         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44648         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44649         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44650         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44651         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44652         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44653         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44654         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44655         * tests/unictype/test-pr_combining.c: Likewise.
44656         * tests/unictype/test-pr_composite.c: Likewise.
44657         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44658         * tests/unictype/test-pr_dash.c: Likewise.
44659         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44660         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44661         * tests/unictype/test-pr_deprecated.c: Likewise.
44662         * tests/unictype/test-pr_diacritic.c: Likewise.
44663         * tests/unictype/test-pr_extender.c: Likewise.
44664         * tests/unictype/test-pr_format_control.c: Likewise.
44665         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44666         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44667         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44668         * tests/unictype/test-pr_hex_digit.c: Likewise.
44669         * tests/unictype/test-pr_hyphen.c: Likewise.
44670         * tests/unictype/test-pr_id_continue.c: Likewise.
44671         * tests/unictype/test-pr_id_start.c: Likewise.
44672         * tests/unictype/test-pr_ideographic.c: Likewise.
44673         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44674         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44675         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44676         * tests/unictype/test-pr_iso_control.c: Likewise.
44677         * tests/unictype/test-pr_join_control.c: Likewise.
44678         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44679         * tests/unictype/test-pr_line_separator.c: Likewise.
44680         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44681         * tests/unictype/test-pr_lowercase.c: Likewise.
44682         * tests/unictype/test-pr_math.c: Likewise.
44683         * tests/unictype/test-pr_non_break.c: Likewise.
44684         * tests/unictype/test-pr_not_a_character.c: Likewise.
44685         * tests/unictype/test-pr_numeric.c: Likewise.
44686         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44687         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44688         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44689         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44690         * tests/unictype/test-pr_other_id_start.c: Likewise.
44691         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44692         * tests/unictype/test-pr_other_math.c: Likewise.
44693         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44694         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44695         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44696         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44697         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44698         * tests/unictype/test-pr_private_use.c: Likewise.
44699         * tests/unictype/test-pr_punctuation.c: Likewise.
44700         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44701         * tests/unictype/test-pr_radical.c: Likewise.
44702         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44703         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44704         * tests/unictype/test-pr_space.c: Likewise.
44705         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44706         * tests/unictype/test-pr_titlecase.c: Likewise.
44707         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44708         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44709         * tests/unictype/test-pr_uppercase.c: Likewise.
44710         * tests/unictype/test-pr_variation_selector.c: Likewise.
44711         * tests/unictype/test-pr_white_space.c: Likewise.
44712         * tests/unictype/test-pr_xid_continue.c: Likewise.
44713         * tests/unictype/test-pr_xid_start.c: Likewise.
44714         * tests/unictype/test-pr_zero_width.c: Likewise.
44715         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44716         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44717
44718 2007-11-12  Bruno Haible  <bruno@clisp.org>
44719
44720         Unicode character classification functions.
44721         * lib/unictype.h: New file.
44722         * modules/unictype/base: New file.
44723         * modules/unictype/category-L: New file.
44724         * modules/unictype/category-Lu: New file.
44725         * modules/unictype/category-Ll: New file.
44726         * modules/unictype/category-Lt: New file.
44727         * modules/unictype/category-Lm: New file.
44728         * modules/unictype/category-Lo: New file.
44729         * modules/unictype/category-M: New file.
44730         * modules/unictype/category-Mn: New file.
44731         * modules/unictype/category-Mc: New file.
44732         * modules/unictype/category-Me: New file.
44733         * modules/unictype/category-N: New file.
44734         * modules/unictype/category-Nd: New file.
44735         * modules/unictype/category-Nl: New file.
44736         * modules/unictype/category-No: New file.
44737         * modules/unictype/category-P: New file.
44738         * modules/unictype/category-Pc: New file.
44739         * modules/unictype/category-Pd: New file.
44740         * modules/unictype/category-Ps: New file.
44741         * modules/unictype/category-Pe: New file.
44742         * modules/unictype/category-Pi: New file.
44743         * modules/unictype/category-Pf: New file.
44744         * modules/unictype/category-Po: New file.
44745         * modules/unictype/category-S: New file.
44746         * modules/unictype/category-Sm: New file.
44747         * modules/unictype/category-Sc: New file.
44748         * modules/unictype/category-Sk: New file.
44749         * modules/unictype/category-So: New file.
44750         * modules/unictype/category-Z: New file.
44751         * modules/unictype/category-Zs: New file.
44752         * modules/unictype/category-Zl: New file.
44753         * modules/unictype/category-Zp: New file.
44754         * modules/unictype/category-C: New file.
44755         * modules/unictype/category-Cc: New file.
44756         * modules/unictype/category-Cf: New file.
44757         * modules/unictype/category-Cs: New file.
44758         * modules/unictype/category-Co: New file.
44759         * modules/unictype/category-Cn: New file.
44760         * modules/unictype/category-or: New file.
44761         * modules/unictype/category-of: New file.
44762         * modules/unictype/category-test: New file.
44763         * modules/unictype/category-test-withtable: New file.
44764         * modules/unictype/category-byname: New file.
44765         * modules/unictype/category-none: New file.
44766         * modules/unictype/category-and: New file.
44767         * modules/unictype/category-and-not: New file.
44768         * modules/unictype/category-name: New file.
44769         * modules/unictype/combining-class: New file.
44770         * modules/unictype/category-all: New file.
44771         * modules/unictype/bidicategory-all: New file.
44772         * modules/unictype/bidicategory-byname: New file.
44773         * modules/unictype/bidicategory-name: New file.
44774         * modules/unictype/bidicategory-of: New file.
44775         * modules/unictype/bidicategory-test: New file.
44776         * modules/unictype/decimal-digit: New file.
44777         * modules/unictype/digit: New file.
44778         * modules/unictype/numeric: New file.
44779         * modules/unictype/mirror: New file.
44780         * modules/unictype/property-white-space: New file.
44781         * modules/unictype/property-alphabetic: New file.
44782         * modules/unictype/property-other-alphabetic: New file.
44783         * modules/unictype/property-not-a-character: New file.
44784         * modules/unictype/property-default-ignorable-code-point: New file.
44785         * modules/unictype/property-other-default-ignorable-code-point: New
44786         file.
44787         * modules/unictype/property-deprecated: New file.
44788         * modules/unictype/property-logical-order-exception: New file.
44789         * modules/unictype/property-variation-selector: New file.
44790         * modules/unictype/property-private-use: New file.
44791         * modules/unictype/property-unassigned-code-value: New file.
44792         * modules/unictype/property-uppercase: New file.
44793         * modules/unictype/property-other-uppercase: New file.
44794         * modules/unictype/property-lowercase: New file.
44795         * modules/unictype/property-other-lowercase: New file.
44796         * modules/unictype/property-titlecase: New file.
44797         * modules/unictype/property-soft-dotted: New file.
44798         * modules/unictype/property-id-start: New file.
44799         * modules/unictype/property-other-id-start: New file.
44800         * modules/unictype/property-id-continue: New file.
44801         * modules/unictype/property-other-id-continue: New file.
44802         * modules/unictype/property-xid-start: New file.
44803         * modules/unictype/property-xid-continue: New file.
44804         * modules/unictype/property-pattern-white-space: New file.
44805         * modules/unictype/property-pattern-syntax: New file.
44806         * modules/unictype/property-join-control: New file.
44807         * modules/unictype/property-grapheme-base: New file.
44808         * modules/unictype/property-grapheme-extend: New file.
44809         * modules/unictype/property-other-grapheme-extend: New file.
44810         * modules/unictype/property-grapheme-link: New file.
44811         * modules/unictype/property-bidi-control: New file.
44812         * modules/unictype/property-bidi-left-to-right: New file.
44813         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44814         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44815         * modules/unictype/property-bidi-european-digit: New file.
44816         * modules/unictype/property-bidi-eur-num-separator: New file.
44817         * modules/unictype/property-bidi-eur-num-terminator: New file.
44818         * modules/unictype/property-bidi-arabic-digit: New file.
44819         * modules/unictype/property-bidi-common-separator: New file.
44820         * modules/unictype/property-bidi-block-separator: New file.
44821         * modules/unictype/property-bidi-segment-separator: New file.
44822         * modules/unictype/property-bidi-whitespace: New file.
44823         * modules/unictype/property-bidi-non-spacing-mark: New file.
44824         * modules/unictype/property-bidi-boundary-neutral: New file.
44825         * modules/unictype/property-bidi-pdf: New file.
44826         * modules/unictype/property-bidi-embedding-or-override: New file.
44827         * modules/unictype/property-bidi-other-neutral: New file.
44828         * modules/unictype/property-hex-digit: New file.
44829         * modules/unictype/property-ascii-hex-digit: New file.
44830         * modules/unictype/property-ideographic: New file.
44831         * modules/unictype/property-unified-ideograph: New file.
44832         * modules/unictype/property-radical: New file.
44833         * modules/unictype/property-ids-binary-operator: New file.
44834         * modules/unictype/property-ids-trinary-operator: New file.
44835         * modules/unictype/property-zero-width: New file.
44836         * modules/unictype/property-space: New file.
44837         * modules/unictype/property-non-break: New file.
44838         * modules/unictype/property-iso-control: New file.
44839         * modules/unictype/property-format-control: New file.
44840         * modules/unictype/property-dash: New file.
44841         * modules/unictype/property-hyphen: New file.
44842         * modules/unictype/property-punctuation: New file.
44843         * modules/unictype/property-line-separator: New file.
44844         * modules/unictype/property-paragraph-separator: New file.
44845         * modules/unictype/property-quotation-mark: New file.
44846         * modules/unictype/property-sentence-terminal: New file.
44847         * modules/unictype/property-terminal-punctuation: New file.
44848         * modules/unictype/property-currency-symbol: New file.
44849         * modules/unictype/property-math: New file.
44850         * modules/unictype/property-other-math: New file.
44851         * modules/unictype/property-paired-punctuation: New file.
44852         * modules/unictype/property-left-of-pair: New file.
44853         * modules/unictype/property-combining: New file.
44854         * modules/unictype/property-composite: New file.
44855         * modules/unictype/property-decimal-digit: New file.
44856         * modules/unictype/property-numeric: New file.
44857         * modules/unictype/property-diacritic: New file.
44858         * modules/unictype/property-extender: New file.
44859         * modules/unictype/property-ignorable-control: New file.
44860         * modules/unictype/property-test: New file.
44861         * modules/unictype/property-byname: New file.
44862         * modules/unictype/property-all: New file.
44863         * modules/unictype/scripts: New file.
44864         * modules/unictype/scripts-all: New file.
44865         * modules/unictype/block-of: New file.
44866         * modules/unictype/block-test: New file.
44867         * modules/unictype/block-list: New file.
44868         * modules/unictype/block-all: New file.
44869         * modules/unictype/syntax-c-whitespace: New file.
44870         * modules/unictype/syntax-java-whitespace: New file.
44871         * modules/unictype/syntax-c-ident: New file.
44872         * modules/unictype/syntax-java-ident: New file.
44873         * modules/unictype/ctype-alnum: New file.
44874         * modules/unictype/ctype-alpha: New file.
44875         * modules/unictype/ctype-cntrl: New file.
44876         * modules/unictype/ctype-digit: New file.
44877         * modules/unictype/ctype-graph: New file.
44878         * modules/unictype/ctype-lower: New file.
44879         * modules/unictype/ctype-print: New file.
44880         * modules/unictype/ctype-punct: New file.
44881         * modules/unictype/ctype-space: New file.
44882         * modules/unictype/ctype-upper: New file.
44883         * modules/unictype/ctype-xdigit: New file.
44884         * modules/unictype/ctype-blank: New file.
44885         * lib/unictype/bidi_byname.c: New file.
44886         * lib/unictype/bidi_name.c: New file.
44887         * lib/unictype/bidi_of.c: New file.
44888         * lib/unictype/bidi_test.c: New file.
44889         * lib/unictype/bitmap.h: New file.
44890         * lib/unictype/block_test.c: New file.
44891         * lib/unictype/blocks.c: New file.
44892         * lib/unictype/categ_C.c: New file.
44893         * lib/unictype/categ_Cc.c: New file.
44894         * lib/unictype/categ_Cf.c: New file.
44895         * lib/unictype/categ_Cn.c: New file.
44896         * lib/unictype/categ_Co.c: New file.
44897         * lib/unictype/categ_Cs.c: New file.
44898         * lib/unictype/categ_L.c: New file.
44899         * lib/unictype/categ_Ll.c: New file.
44900         * lib/unictype/categ_Lm.c: New file.
44901         * lib/unictype/categ_Lo.c: New file.
44902         * lib/unictype/categ_Lt.c: New file.
44903         * lib/unictype/categ_Lu.c: New file.
44904         * lib/unictype/categ_M.c: New file.
44905         * lib/unictype/categ_Mc.c: New file.
44906         * lib/unictype/categ_Me.c: New file.
44907         * lib/unictype/categ_Mn.c: New file.
44908         * lib/unictype/categ_N.c: New file.
44909         * lib/unictype/categ_Nd.c: New file.
44910         * lib/unictype/categ_Nl.c: New file.
44911         * lib/unictype/categ_No.c: New file.
44912         * lib/unictype/categ_P.c: New file.
44913         * lib/unictype/categ_Pc.c: New file.
44914         * lib/unictype/categ_Pd.c: New file.
44915         * lib/unictype/categ_Pe.c: New file.
44916         * lib/unictype/categ_Pf.c: New file.
44917         * lib/unictype/categ_Pi.c: New file.
44918         * lib/unictype/categ_Po.c: New file.
44919         * lib/unictype/categ_Ps.c: New file.
44920         * lib/unictype/categ_S.c: New file.
44921         * lib/unictype/categ_Sc.c: New file.
44922         * lib/unictype/categ_Sk.c: New file.
44923         * lib/unictype/categ_Sm.c: New file.
44924         * lib/unictype/categ_So.c: New file.
44925         * lib/unictype/categ_Z.c: New file.
44926         * lib/unictype/categ_Zl.c: New file.
44927         * lib/unictype/categ_Zp.c: New file.
44928         * lib/unictype/categ_Zs.c: New file.
44929         * lib/unictype/categ_and.c: New file.
44930         * lib/unictype/categ_and_not.c: New file.
44931         * lib/unictype/categ_byname.c: New file.
44932         * lib/unictype/categ_name.c: New file.
44933         * lib/unictype/categ_none.c: New file.
44934         * lib/unictype/categ_of.c: New file.
44935         * lib/unictype/categ_or.c: New file.
44936         * lib/unictype/categ_test.c: New file.
44937         * lib/unictype/combining.c: New file.
44938         * lib/unictype/ctype_alnum.c: New file.
44939         * lib/unictype/ctype_alpha.c: New file.
44940         * lib/unictype/ctype_blank.c: New file.
44941         * lib/unictype/ctype_cntrl.c: New file.
44942         * lib/unictype/ctype_digit.c: New file.
44943         * lib/unictype/ctype_graph.c: New file.
44944         * lib/unictype/ctype_lower.c: New file.
44945         * lib/unictype/ctype_print.c: New file.
44946         * lib/unictype/ctype_punct.c: New file.
44947         * lib/unictype/ctype_space.c: New file.
44948         * lib/unictype/ctype_upper.c: New file.
44949         * lib/unictype/ctype_xdigit.c: New file.
44950         * lib/unictype/decdigit.c: New file.
44951         * lib/unictype/digit.c: New file.
44952         * lib/unictype/identsyntaxmap.h: New file.
44953         * lib/unictype/mirror.c: New file.
44954         * lib/unictype/numeric.c: New file.
44955         * lib/unictype/pr_alphabetic.c: New file.
44956         * lib/unictype/pr_ascii_hex_digit.c: New file.
44957         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44958         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44959         * lib/unictype/pr_bidi_block_separator.c: New file.
44960         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44961         * lib/unictype/pr_bidi_common_separator.c: New file.
44962         * lib/unictype/pr_bidi_control.c: New file.
44963         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44964         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44965         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44966         * lib/unictype/pr_bidi_european_digit.c: New file.
44967         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44968         * lib/unictype/pr_bidi_left_to_right.c: New file.
44969         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44970         * lib/unictype/pr_bidi_other_neutral.c: New file.
44971         * lib/unictype/pr_bidi_pdf.c: New file.
44972         * lib/unictype/pr_bidi_segment_separator.c: New file.
44973         * lib/unictype/pr_bidi_whitespace.c: New file.
44974         * lib/unictype/pr_byname.c: New file.
44975         * lib/unictype/pr_byname.gperf: New file.
44976         * lib/unictype/pr_combining.c: New file.
44977         * lib/unictype/pr_composite.c: New file.
44978         * lib/unictype/pr_currency_symbol.c: New file.
44979         * lib/unictype/pr_dash.c: New file.
44980         * lib/unictype/pr_decimal_digit.c: New file.
44981         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44982         * lib/unictype/pr_deprecated.c: New file.
44983         * lib/unictype/pr_diacritic.c: New file.
44984         * lib/unictype/pr_extender.c: New file.
44985         * lib/unictype/pr_format_control.c: New file.
44986         * lib/unictype/pr_grapheme_base.c: New file.
44987         * lib/unictype/pr_grapheme_extend.c: New file.
44988         * lib/unictype/pr_grapheme_link.c: New file.
44989         * lib/unictype/pr_hex_digit.c: New file.
44990         * lib/unictype/pr_hyphen.c: New file.
44991         * lib/unictype/pr_id_continue.c: New file.
44992         * lib/unictype/pr_id_start.c: New file.
44993         * lib/unictype/pr_ideographic.c: New file.
44994         * lib/unictype/pr_ids_binary_operator.c: New file.
44995         * lib/unictype/pr_ids_trinary_operator.c: New file.
44996         * lib/unictype/pr_ignorable_control.c: New file.
44997         * lib/unictype/pr_iso_control.c: New file.
44998         * lib/unictype/pr_join_control.c: New file.
44999         * lib/unictype/pr_left_of_pair.c: New file.
45000         * lib/unictype/pr_line_separator.c: New file.
45001         * lib/unictype/pr_logical_order_exception.c: New file.
45002         * lib/unictype/pr_lowercase.c: New file.
45003         * lib/unictype/pr_math.c: New file.
45004         * lib/unictype/pr_non_break.c: New file.
45005         * lib/unictype/pr_not_a_character.c: New file.
45006         * lib/unictype/pr_numeric.c: New file.
45007         * lib/unictype/pr_other_alphabetic.c: New file.
45008         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45009         * lib/unictype/pr_other_grapheme_extend.c: New file.
45010         * lib/unictype/pr_other_id_continue.c: New file.
45011         * lib/unictype/pr_other_id_start.c: New file.
45012         * lib/unictype/pr_other_lowercase.c: New file.
45013         * lib/unictype/pr_other_math.c: New file.
45014         * lib/unictype/pr_other_uppercase.c: New file.
45015         * lib/unictype/pr_paired_punctuation.c: New file.
45016         * lib/unictype/pr_paragraph_separator.c: New file.
45017         * lib/unictype/pr_pattern_syntax.c: New file.
45018         * lib/unictype/pr_pattern_white_space.c: New file.
45019         * lib/unictype/pr_private_use.c: New file.
45020         * lib/unictype/pr_punctuation.c: New file.
45021         * lib/unictype/pr_quotation_mark.c: New file.
45022         * lib/unictype/pr_radical.c: New file.
45023         * lib/unictype/pr_sentence_terminal.c: New file.
45024         * lib/unictype/pr_soft_dotted.c: New file.
45025         * lib/unictype/pr_space.c: New file.
45026         * lib/unictype/pr_terminal_punctuation.c: New file.
45027         * lib/unictype/pr_test.c: New file.
45028         * lib/unictype/pr_titlecase.c: New file.
45029         * lib/unictype/pr_unassigned_code_value.c: New file.
45030         * lib/unictype/pr_unified_ideograph.c: New file.
45031         * lib/unictype/pr_uppercase.c: New file.
45032         * lib/unictype/pr_variation_selector.c: New file.
45033         * lib/unictype/pr_white_space.c: New file.
45034         * lib/unictype/pr_xid_continue.c: New file.
45035         * lib/unictype/pr_xid_start.c: New file.
45036         * lib/unictype/pr_zero_width.c: New file.
45037         * lib/unictype/scripts.c: New file.
45038         * lib/unictype/sy_c_ident.c: New file.
45039         * lib/unictype/sy_c_whitespace.c: New file.
45040         * lib/unictype/sy_java_ident.c: New file.
45041         * lib/unictype/sy_java_whitespace.c: New file.
45042
45043         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45044         Unicode 5.0.0.
45045         * lib/unictype/blocks.h: Likewise.
45046         * lib/unictype/categ_C.h: Likewise.
45047         * lib/unictype/categ_Cc.h: Likewise.
45048         * lib/unictype/categ_Cf.h: Likewise.
45049         * lib/unictype/categ_Cn.h: Likewise.
45050         * lib/unictype/categ_Co.h: Likewise.
45051         * lib/unictype/categ_Cs.h: Likewise.
45052         * lib/unictype/categ_L.h: Likewise.
45053         * lib/unictype/categ_Ll.h: Likewise.
45054         * lib/unictype/categ_Lm.h: Likewise.
45055         * lib/unictype/categ_Lo.h: Likewise.
45056         * lib/unictype/categ_Lt.h: Likewise.
45057         * lib/unictype/categ_Lu.h: Likewise.
45058         * lib/unictype/categ_M.h: Likewise.
45059         * lib/unictype/categ_Mc.h: Likewise.
45060         * lib/unictype/categ_Me.h: Likewise.
45061         * lib/unictype/categ_Mn.h: Likewise.
45062         * lib/unictype/categ_N.h: Likewise.
45063         * lib/unictype/categ_Nd.h: Likewise.
45064         * lib/unictype/categ_Nl.h: Likewise.
45065         * lib/unictype/categ_No.h: Likewise.
45066         * lib/unictype/categ_P.h: Likewise.
45067         * lib/unictype/categ_Pc.h: Likewise.
45068         * lib/unictype/categ_Pd.h: Likewise.
45069         * lib/unictype/categ_Pe.h: Likewise.
45070         * lib/unictype/categ_Pf.h: Likewise.
45071         * lib/unictype/categ_Pi.h: Likewise.
45072         * lib/unictype/categ_Po.h: Likewise.
45073         * lib/unictype/categ_Ps.h: Likewise.
45074         * lib/unictype/categ_S.h: Likewise.
45075         * lib/unictype/categ_Sc.h: Likewise.
45076         * lib/unictype/categ_Sk.h: Likewise.
45077         * lib/unictype/categ_Sm.h: Likewise.
45078         * lib/unictype/categ_So.h: Likewise.
45079         * lib/unictype/categ_Z.h: Likewise.
45080         * lib/unictype/categ_Zl.h: Likewise.
45081         * lib/unictype/categ_Zp.h: Likewise.
45082         * lib/unictype/categ_Zs.h: Likewise.
45083         * lib/unictype/categ_of.h: Likewise.
45084         * lib/unictype/combining.h: Likewise.
45085         * lib/unictype/ctype_alnum.h: Likewise.
45086         * lib/unictype/ctype_alpha.h: Likewise.
45087         * lib/unictype/ctype_blank.h: Likewise.
45088         * lib/unictype/ctype_cntrl.h: Likewise.
45089         * lib/unictype/ctype_digit.h: Likewise.
45090         * lib/unictype/ctype_graph.h: Likewise.
45091         * lib/unictype/ctype_lower.h: Likewise.
45092         * lib/unictype/ctype_print.h: Likewise.
45093         * lib/unictype/ctype_punct.h: Likewise.
45094         * lib/unictype/ctype_space.h: Likewise.
45095         * lib/unictype/ctype_upper.h: Likewise.
45096         * lib/unictype/ctype_xdigit.h: Likewise.
45097         * lib/unictype/decdigit.h: Likewise.
45098         * lib/unictype/digit.h: Likewise.
45099         * lib/unictype/mirror.h: Likewise.
45100         * lib/unictype/numeric.h: Likewise.
45101         * lib/unictype/pr_alphabetic.h: Likewise.
45102         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45103         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45104         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45105         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45106         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45107         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45108         * lib/unictype/pr_bidi_control.h: Likewise.
45109         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45110         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45111         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45112         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45113         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45114         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45115         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45116         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45117         * lib/unictype/pr_bidi_pdf.h: Likewise.
45118         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45119         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45120         * lib/unictype/pr_combining.h: Likewise.
45121         * lib/unictype/pr_composite.h: Likewise.
45122         * lib/unictype/pr_currency_symbol.h: Likewise.
45123         * lib/unictype/pr_dash.h: Likewise.
45124         * lib/unictype/pr_decimal_digit.h: Likewise.
45125         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45126         * lib/unictype/pr_deprecated.h: Likewise.
45127         * lib/unictype/pr_diacritic.h: Likewise.
45128         * lib/unictype/pr_extender.h: Likewise.
45129         * lib/unictype/pr_format_control.h: Likewise.
45130         * lib/unictype/pr_grapheme_base.h: Likewise.
45131         * lib/unictype/pr_grapheme_extend.h: Likewise.
45132         * lib/unictype/pr_grapheme_link.h: Likewise.
45133         * lib/unictype/pr_hex_digit.h: Likewise.
45134         * lib/unictype/pr_hyphen.h: Likewise.
45135         * lib/unictype/pr_id_continue.h: Likewise.
45136         * lib/unictype/pr_id_start.h: Likewise.
45137         * lib/unictype/pr_ideographic.h: Likewise.
45138         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45139         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45140         * lib/unictype/pr_ignorable_control.h: Likewise.
45141         * lib/unictype/pr_iso_control.h: Likewise.
45142         * lib/unictype/pr_join_control.h: Likewise.
45143         * lib/unictype/pr_left_of_pair.h: Likewise.
45144         * lib/unictype/pr_line_separator.h: Likewise.
45145         * lib/unictype/pr_logical_order_exception.h: Likewise.
45146         * lib/unictype/pr_lowercase.h: Likewise.
45147         * lib/unictype/pr_math.h: Likewise.
45148         * lib/unictype/pr_non_break.h: Likewise.
45149         * lib/unictype/pr_not_a_character.h: Likewise.
45150         * lib/unictype/pr_numeric.h: Likewise.
45151         * lib/unictype/pr_other_alphabetic.h: Likewise.
45152         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45153         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45154         * lib/unictype/pr_other_id_continue.h: Likewise.
45155         * lib/unictype/pr_other_id_start.h: Likewise.
45156         * lib/unictype/pr_other_lowercase.h: Likewise.
45157         * lib/unictype/pr_other_math.h: Likewise.
45158         * lib/unictype/pr_other_uppercase.h: Likewise.
45159         * lib/unictype/pr_paired_punctuation.h: Likewise.
45160         * lib/unictype/pr_paragraph_separator.h: Likewise.
45161         * lib/unictype/pr_pattern_syntax.h: Likewise.
45162         * lib/unictype/pr_pattern_white_space.h: Likewise.
45163         * lib/unictype/pr_private_use.h: Likewise.
45164         * lib/unictype/pr_punctuation.h: Likewise.
45165         * lib/unictype/pr_quotation_mark.h: Likewise.
45166         * lib/unictype/pr_radical.h: Likewise.
45167         * lib/unictype/pr_sentence_terminal.h: Likewise.
45168         * lib/unictype/pr_soft_dotted.h: Likewise.
45169         * lib/unictype/pr_space.h: Likewise.
45170         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45171         * lib/unictype/pr_titlecase.h: Likewise.
45172         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45173         * lib/unictype/pr_unified_ideograph.h: Likewise.
45174         * lib/unictype/pr_uppercase.h: Likewise.
45175         * lib/unictype/pr_variation_selector.h: Likewise.
45176         * lib/unictype/pr_white_space.h: Likewise.
45177         * lib/unictype/pr_xid_continue.h: Likewise.
45178         * lib/unictype/pr_xid_start.h: Likewise.
45179         * lib/unictype/pr_zero_width.h: Likewise.
45180         * lib/unictype/scripts.h: Likewise.
45181         * lib/unictype/scripts_byname.gperf: Likewise.
45182         * lib/unictype/sy_c_ident.h: Likewise.
45183         * lib/unictype/sy_c_whitespace.h: Likewise.
45184         * lib/unictype/sy_java_ident.h: Likewise.
45185         * lib/unictype/sy_java_whitespace.h: Likewise.
45186
45187         * lib/unictype/Makefile: New file.
45188         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45189         glibc.
45190         * lib/unictype/3level.h: New file, copied from glibc.
45191         * lib/unictype/3levelbit.h: New file.
45192
45193 2007-11-11  Bruno Haible  <bruno@clisp.org>
45194
45195         * modules/gperf: New file.
45196         * modules/iconv_open (Depends-on): Add it.
45197         (Makefile.am): Remove the GPERF definition.
45198
45199 2007-11-11  Bruno Haible  <bruno@clisp.org>
45200
45201         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45202         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45203
45204 2007-11-11  Bruno Haible  <bruno@clisp.org>
45205
45206         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45207         (usage): Remove function.
45208
45209 2007-11-11  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45212         gl_FUNC_CEILF_LIBS.
45213         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45214         gl_FUNC_CEIL_LIBS.
45215         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45216         gl_FUNC_CEILL_LIBS.
45217         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45218         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45219         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45220
45221 2007-11-11  Bruno Haible  <bruno@clisp.org>
45222
45223         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45224         roundf were declared but do not exist on functions.
45225         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45226         roundl were declared but do not exist on functions.
45227         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45228         HAVE_FLOORL_AND_CEILL, respectively.
45229         Needed for Sun C on Solaris 10.
45230
45231 2007-11-11  Bruno Haible  <bruno@clisp.org>
45232
45233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45234         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45235         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45236         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45238         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45239         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45240         HAVE_DECL_ROUNDF.
45241         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45242         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45244         of HAVE_DECL_ROUND*.
45245         * modules/math (Makefile.am): Update.
45246
45247 2007-11-10  Bruno Haible  <bruno@clisp.org>
45248
45249         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45250         ptrdiff_t as m4/intl.m4.
45251
45252 2007-11-10  Jim Meyering  <meyering@redhat.com>
45253
45254         Avoid link failure for the argmatch test.
45255         * tests/test-argmatch.c (usage): Define function to avoid a link
45256         failure: argmatch_die requires a usage function.
45257
45258 2007-11-09  Bruno Haible  <bruno@clisp.org>
45259
45260         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45261         * doc/functions/vsnprintf.texi: Likewise.
45262         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45263         with a size argument < 2.
45264
45265 2007-11-09  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45268         buffer. Fixes an inefficiency introduced on 2007-11-03.
45269
45270 2007-11-09  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45273         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45274
45275 2007-11-08  Jim Meyering  <meyering@redhat.com>
45276
45277         Change cache variable name prefix "jm_" to "gl_" everywhere.
45278         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45279         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45280         * m4/uptime.m4: s/gl_/jm_/
45281
45282 2007-11-07  Bruno Haible  <bruno@clisp.org>
45283
45284         Update to GNU gettext 0.17.
45285         * m4/intl.m4: Update to GNU gettext 0.17.
45286         * m4/po.m4: Likewise.
45287         * modules/gettext (Files): Remove m4/ulonglong.m4.
45288         (configure.ac): Require gettext infrastructure from version 0.17.
45289
45290 2007-11-06  Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45293         symbolic values are not defined in a public header.
45294         * lib/freadable.c (freadable) [QNX]: Likewise.
45295         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45296         * lib/freading.c (freading) [QNX]: Likewise.
45297         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45298         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45299         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45300         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45301         Reported by Alain Magloire.
45302
45303         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45304
45305 2007-11-05  Bruno Haible  <bruno@clisp.org>
45306
45307         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45308         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45309         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45310         Reported by Eric Blake.
45311
45312 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45313             Bruno Haible  <bruno@clisp.org>
45314
45315         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45316         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45317         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45318         (malloc): Undefine also before including <stdlib.h>.
45319         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45320         Needed on OSF/1 4.0.
45321
45322 2007-11-05  Jim Meyering  <meyering@redhat.com>
45323
45324         git-version-gen: sync from coreutils.
45325         * build-aux/git-version-gen: Add comments.
45326         Change the first '-' to '.' in the snapshot version string,
45327         e.g., 6.9-377-08144 -> 6.9.377-08144
45328         Remove first parameter.
45329         Don't declare a version "-dirty" merely because a time
45330         stamp has changed.
45331
45332 2007-11-04  Bruno Haible  <bruno@clisp.org>
45333
45334         * lib/lock.h: Protect all macro definitions containing an 'if'
45335         statement through a "do { ... } while (0)".
45336         * lib/tls.h: Likewise.
45337
45338 2007-11-04  Bruno Haible  <bruno@clisp.org>
45339
45340         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45341
45342 2007-11-04  Bruno Haible  <bruno@clisp.org>
45343
45344         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45345         * modules/fprintf-posix (Depends-on): Add nocrash.
45346         * modules/snprintf-posix (Depends-on): Likewise.
45347         * modules/sprintf-posix (Depends-on): Likewise.
45348         * modules/vasnprintf-posix (Depends-on): Likewise.
45349         * modules/vasprintf-posix (Depends-on): Likewise.
45350         * modules/vfprintf-posix (Depends-on): Likewise.
45351         * modules/vsnprintf-posix (Depends-on): Likewise.
45352         * modules/vsprintf-posix (Depends-on): Likewise.
45353         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45354         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45355         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45356         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45357         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45358         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45359         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45360
45361 2007-11-04  Bruno Haible  <bruno@clisp.org>
45362
45363         * modules/nocrash: New file.
45364         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45365         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45366
45367 2007-11-04  Bruno Haible  <bruno@clisp.org>
45368
45369         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45370         precision handling.
45371         * tests/test-vasprintf-posix.c (test_function): Likewise.
45372         * tests/test-snprintf-posix.h (test_function): Likewise.
45373         * tests/test-sprintf-posix.h (test_function): Likewise.
45374
45375         Fix *printf behaviour for large precisions on mingw and BeOS.
45376         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45377         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45379         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45381         gl_PRINTF_PRECISION and test its result. Invoke
45382         gl_PREREQ_VASNPRINTF_PRECISION.
45383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45390         * doc/functions/fprintf.texi: Update.
45391         * doc/functions/printf.texi: Update.
45392         * doc/functions/snprintf.texi: Update.
45393         * doc/functions/sprintf.texi: Update.
45394         * doc/functions/vfprintf.texi: Update.
45395         * doc/functions/vprintf.texi: Update.
45396         * doc/functions/vsnprintf.texi: Update.
45397         * doc/functions/vsprintf.texi: Update.
45398
45399 2007-11-04  Bruno Haible  <bruno@clisp.org>
45400
45401         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45402
45403 2007-11-04  Bruno Haible  <bruno@clisp.org>
45404
45405         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45406         Reported by Sylvain Beucler <beuc@gnu.org>.
45407
45408 2007-11-03  Bruno Haible  <bruno@clisp.org>
45409
45410         * tests/test-fprintf-posix2.sh: New file.
45411         * tests/test-fprintf-posix2.c: New file.
45412         * modules/fprintf-posix-tests (Files): Add them.
45413         (TESTS): Add test-fprintf-posix2.sh.
45414         (configure.ac): Check for getrlimit and setrlimit.
45415         (check_PROGRAMS): Add test-fprintf-posix2.
45416
45417         * tests/test-printf-posix2.sh: New file.
45418         * tests/test-printf-posix2.c: New file.
45419         * modules/printf-posix-tests (Files): Add them.
45420         (TESTS): Add test-printf-posix2.sh.
45421         (configure.ac): Check for getrlimit and setrlimit.
45422         (check_PROGRAMS): Add test-printf-posix2.
45423
45424         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45425         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45426         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45427         (decode_double): New function, copied from decode_long_double.
45428         (scale10_round_decimal_decoded): New function, extracted from
45429         scale10_round_decimal_long_double.
45430         (scale10_round_decimal_long_double): Use it.
45431         (scale10_round_decimal_double): New function.
45432         (floorlog10): New function.
45433         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45435         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45436         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45437         gl_PRINTF_ENOMEM and test its result. Invoke
45438         gl_PREREQ_VASNPRINTF_ENOMEM.
45439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45441         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45446         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45447         * modules/snprintf-posix (Depends-on): Likewise.
45448         * modules/sprintf-posix (Depends-on): Likewise.
45449         * modules/vasnprintf-posix (Depends-on): Likewise.
45450         * modules/vasprintf-posix (Depends-on): Likewise.
45451         * modules/vfprintf-posix (Depends-on): Likewise.
45452         * modules/vsnprintf-posix (Depends-on): Likewise.
45453         * modules/vsprintf-posix (Depends-on): Likewise.
45454         * doc/functions/fprintf.texi: Update.
45455         * doc/functions/printf.texi: Update.
45456         * doc/functions/snprintf.texi: Update.
45457         * doc/functions/sprintf.texi: Update.
45458         * doc/functions/vfprintf.texi: Update.
45459         * doc/functions/vprintf.texi: Update.
45460         * doc/functions/vsnprintf.texi: Update.
45461         * doc/functions/vsprintf.texi: Update.
45462
45463 2007-11-03  Bruno Haible  <bruno@clisp.org>
45464
45465         * modules/frexp-nolibm-tests: New file.
45466
45467         * modules/frexp-nolibm: New file.
45468         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45469
45470 2007-11-03  Bruno Haible  <bruno@clisp.org>
45471
45472         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45473         value is C99 compliant.
45474         Needed for OSF/1 5.1.
45475
45476 2007-11-03  Bruno Haible  <bruno@clisp.org>
45477
45478         Fix out-of-memory handling of vasnprintf.
45479         * lib/printf-parse.c: Include <errno.h>.
45480         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45481         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45482         is already set.
45483
45484 2007-11-02  Eric Blake  <ebb9@byu.net>
45485
45486         Fix tests on cygwin.
45487         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45488
45489 2007-11-01  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45492         warning.
45493         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45494         needed for POSIX compatibility.
45495
45496 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45497
45498         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45499         for compatibility with GNU.
45500
45501 2007-11-01  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45504         (putenv): Renamed from rpl_putenv. Change argument type from
45505         'const char *' to 'char *'.
45506         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45507         of defining putenv in config.h, just set REPLACE_PUTENV.
45508         * modules/putenv (Depends-on): Add stdlib.
45509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45510         (Include): Use <stdlib.h>.
45511         * lib/stdlib.in.h (putenv): New declaration.
45512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45513         REPLACE_PUTENV.
45514         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45515         REPLACE_PUTENV.
45516         Needed for MacOS X 10.5.0.
45517         Reported by Peter O'Gorman <peter@pogma.com>.
45518
45519 2007-11-01  Jim Meyering  <meyering@redhat.com>
45520
45521         Treat an empty date string exactly like "0".
45522         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45523         if the remaining date string (to be parsed) is empty, use "0".
45524         Reported by Mischa Molhoek and discussed in this thread:
45525         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45526
45527 2007-10-31  Bruno Haible  <bruno@clisp.org>
45528
45529         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45530         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45531         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45532         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45533         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45534         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45535
45536 2007-10-31  Bruno Haible  <bruno@clisp.org>
45537
45538         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45539         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45540         (AC_TYPE_LONG_LONG_INT): Use it.
45541         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45542         it as well.
45543         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45544         to m4/longlong.m4.
45545         * modules/stdint (Files): Remove m4/ulonglong.m4.
45546         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45547         m4/ulonglong.m4.
45548         * modules/strtoumax (Files): Likewise.
45549
45550 2007-10-30  Bruno Haible  <bruno@clisp.org>
45551
45552         * modules/xvasprintf-posix: New file.
45553         Suggested by Eric Blake.
45554
45555 2007-10-30  Bruno Haible  <bruno@clisp.org>
45556
45557         * modules/xprintf-posix-tests: New file.
45558         * tests/test-xprintf-posix.sh: New file.
45559         * tests/test-xprintf-posix.c: New file.
45560         * tests/test-xfprintf-posix.c: New file.
45561
45562         * modules/xprintf-posix: New file.
45563
45564 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45565
45566         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45567         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45568         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45569
45570 2007-10-29  Bruno Haible  <bruno@clisp.org>
45571
45572         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45573         contain the special marker '_cv_'.
45574         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45576         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45577         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45578         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45579         Reported by Ralf Wildenhues.
45580
45581 2007-10-29  Bruno Haible  <bruno@clisp.org>
45582
45583         * gnulib-tool (func_import): When --lgpl is not specified, set
45584         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45585         GPLv3.
45586         Reported by Simon Josefsson.
45587
45588 2007-10-28  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45591         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45592         HAVE_DECL_ISFINITE.
45593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45594         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45595         HAVE_DECL_ISFINITE.
45596
45597 2007-10-28  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45600         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45601
45602 2007-10-28  Bruno Haible  <bruno@clisp.org>
45603
45604         Fix link errors with Sun C 5.0 on Solaris 10.
45605         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45606         function is declared but not present in the compiler's libm.
45607         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45608         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45609         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45610         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45611         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45612         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45613         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45615         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45616         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45617         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45618         HAVE_DECL_FLOORL.
45619
45620 2007-10-28  Bruno Haible  <bruno@clisp.org>
45621
45622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45623         gl_FUNC_FLOORL. Cache the result.
45624         (gl_FUNC_FLOORL): Use it.
45625         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45626         gl_FUNC_CEILL. Cache the result.
45627         (gl_FUNC_CEILL): Use it.
45628
45629         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45630         gl_FUNC_FLOOR. Cache the result.
45631         (gl_FUNC_FLOOR): Use it.
45632         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45633         gl_FUNC_CEIL. Cache the result.
45634         (gl_FUNC_CEIL): Use it.
45635
45636         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45637         gl_FUNC_FLOORF. Cache the result.
45638         (gl_FUNC_FLOORF): Use it.
45639         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45640         gl_FUNC_CEILF. Cache the result.
45641         (gl_FUNC_CEILF): Use it.
45642
45643 2007-10-28  Bruno Haible  <bruno@clisp.org>
45644
45645         * gnulib-tool: Allow specifying the LGPL version number through
45646         --lgpl=2 or --lgpl=3.
45647         (func_usage): Document --lgpl with argument.
45648         Handle --lgpl=... arguments.
45649         (func_import): Recognize also gl_LGPL calls with an argument. When
45650         --lgpl=2 is used and the module's license is just LGPL, report an
45651         error. Set sed_transform_lib_file according to the lgpl variable. In
45652         the generated files, use --lgpl or gl_LGPL invocations with argument,
45653         if necessary.
45654         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45655         an LGPv2+ license.
45656         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45657         gl_LGPL macro.
45658
45659 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45660             Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45663         (u16_uctomb_aux): Likewise.
45664         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45665         !HAVE_INLINE.
45666         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45667
45668 2007-10-28  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45671         Invoke AM_GETTEXT_OPTION if it exists.
45672         * modules/vasprintf: Likewise.
45673         * modules/verror: Likewise.
45674         * modules/xprintf: Likewise.
45675         * modules/xvasprintf: Likewise.
45676
45677 2007-10-27  Ben Pfaff  <blp@gnu.org>
45678
45679         * lib/math.in.h: Define isfinite macro and prototypes for
45680         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45681         implementations.
45682         * m4/math_h.m4: New substitutions for isfinite module.
45683         * lib/isfinite.c: New file.
45684         * m4/isfinite.m4: New file.
45685         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45686         * modules/isfinite: New file.
45687         * modules/isfinite-tests: New file.
45688         * tests/tests-isfinite.c: New file.
45689         * doc/functions/isfinite.texi: Mention isfinite module.
45690         * MODULES.html.sh: Mention new module.
45691
45692 2007-10-27  Ben Pfaff  <blp@gnu.org>
45693
45694         Ralf Wildenhues reported that Tru64 4.0D declares the round
45695         functions but does not have definitions.
45696         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45697         cannot be found in any library, set the output variable to
45698         "missing" instead of "".
45699         * m4/round.m4: Also use our substitute if we cannot find round in
45700         any library, even if it is declared.
45701         * m4/roundf.m4: Likewise for roundf.
45702         * m4/roundl.m4: Likewise for roundl.
45703         * lib/math.in.h: Undefine roundf, round, roundl before defining
45704         their replacements, to allow for hypothetical systems where these
45705         may be defined as macros but not available in libraries.
45706
45707 2007-10-27  Bruno Haible  <bruno@clisp.org>
45708
45709         * doc/gnulib.texi: Invoke @firstparagraphindent.
45710         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45711         changes in gnulib.
45712         (Source changes): New section.
45713
45714 2007-10-26  Bruno Haible  <bruno@clisp.org>
45715
45716         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45717         borrowed from autoconf.
45718
45719 2007-10-26  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45722         strerror returned the empty string. Needed on HP-UX 11.00.
45723
45724 2007-10-24  Micah Cowan  <micah@cowan.name>
45725
45726         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45727         * build-aux/bootstrap: Remove support for now-unnecessary option,
45728         --cvs-user, and envvars CVS_USER, CVS_RSH.
45729
45730 2007-10-24  Jim Meyering  <meyering@redhat.com>
45731
45732         Avoid diagnostics from sha1sum when there is no cached checksum.
45733         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45734         if the po.s1 file hasn't been created yet.
45735
45736         * build-aux/bootstrap: Sync from coreutils:
45737         2007-10-24  Jim Meyering  <meyering@redhat.com>
45738         Get gnulib from the git repository, not from an obsolete cvs one.
45739         * build-aux/bootstrap: Suggestion from Micah Cowan.
45740         2007-10-04  Jim Meyering  <jim@meyering.net>
45741         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45742         (update_po_files): Work also when there are no .po files in po/.
45743
45744 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45745
45746         * README: Append ".git" to git and cg examples.
45747         Problem reported by Benoit Sigoure.
45748
45749 2007-10-23  Micah Cowan  <micah@cowan.name>
45750
45751         * users.txt: Add wget.
45752
45753 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45754
45755         Fix linking of some unistdio tests on FreeBSD.
45756         * modules/unistdio/u16-vsnprintf-tests
45757         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45758         * modules/unistdio/u16-vsprintf-tests
45759         (test_u16_vsnprintf1_LDADD): Likewise.
45760         * modules/unistdio/u32-vsnprintf-tests
45761         (test_u32_vsnprintf1_LDADD): Likewise.
45762         * modules/unistdio/u32-vsprintf-tests
45763         (test_u32_vsprintf1_LDADD): Likewise.
45764         * modules/unistdio/u8-vsnprintf-tests
45765         (test_u8_vsnprintf1_LDADD): Likewise.
45766         * modules/unistdio/u8-vsprintf-tests
45767         (test_u8_vsprintf1_LDADD): Likewise.
45768         * modules/unistdio/ulc-vsnprintf-tests
45769         (test_ulc_vsnprintf1_LDADD): Likewise.
45770         * modules/unistdio/ulc-vsprintf-tests
45771         (test_ulc_vsprintf1_LDADD): Likewise.
45772
45773         Fix linking of some uniconv tests on FreeBSD.
45774         * modules/uniconv/u16-conv-from-enc-tests
45775         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45776         * modules/uniconv/u16-conv-to-enc-tests
45777         (test_u16_conv_to_enc_LDADD): Likewise.
45778         * modules/uniconv/u16-strconv-from-enc-tests
45779         (test_u16_strconv_from_enc_LDADD): Likewise.
45780         * modules/uniconv/u16-strconv-to-enc-tests
45781         (test_u16_strconv_to_enc_LDADD): Likewise.
45782         * modules/uniconv/u32-conv-from-enc-tests
45783         (test_u32_conv_from_enc_LDADD): Likewise.
45784         * modules/uniconv/u32-conv-to-enc-tests
45785         (test_u32_conv_to_enc_LDADD): Likewise.
45786         * modules/uniconv/u32-strconv-from-enc-tests
45787         (test_u32_strconv_from_enc_LDADD): Likewise.
45788         * modules/uniconv/u32-strconv-to-enc-tests
45789         (test_u32_strconv_to_enc_LDADD): Likewise.
45790         * modules/uniconv/u8-conv-from-enc-tests
45791         (test_u8_conv_from_enc_LDADD): Likewise.
45792         * modules/uniconv/u8-conv-to-enc-tests
45793         (test_u8_conv_to_enc_LDADD): Likewise.
45794         * modules/uniconv/u8-strconv-from-enc-tests
45795         (test_u8_strconv_from_enc_LDADD): Likewise.
45796         * modules/uniconv/u8-strconv-to-enc-tests
45797         (test_u8_strconv_to_enc_LDADD): Likewise.
45798
45799 2007-10-22  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45802         size.
45803
45804 2007-10-22  Eric Blake  <ebb9@byu.net>
45805
45806         Tweak x*printf documentation.
45807         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45808         variable name and comments.
45809         Suggested by Bruno Haible.
45810
45811 2007-10-22  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/acl.c (copy_acl): Fix file name in comment.
45814
45815 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45816
45817         Fix Tru64 problem with stdbool.h.
45818         * lib/stdbool.in.h (false, true):
45819         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45820         Don't declare as an enum in this situation; it runs afoul of Tru64.
45821         Problem reported by Steven M. Schweda in
45822         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45823
45824 2007-10-22  Eric Blake  <ebb9@byu.net>
45825
45826         Also wrap vf?printf.
45827         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45828         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45829         (xvprintf, xvfprintf): New functions.
45830
45831 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45832
45833         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45834         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45835
45836         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45837         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45838
45839 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45840
45841         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45842         by Bruno Haible.
45843
45844 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45845
45846         * lib/getloadavg.c
45847         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45848         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45849
45850         * tests/test-i-ring.c: Work for C89.
45851
45852 2007-10-22  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45855         -1u, in preprocessor expression, so that we don't test for the bug
45856         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45858
45859 2007-10-22  Eric Blake  <ebb9@byu.net>
45860
45861         * tests/test-yesno.sh: Silence stderr during test.
45862
45863 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45864
45865         * modules/crypto/gc-camellia: New file.
45866
45867         * m4/gc-camellia.m4: New file.
45868
45869         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45870
45871         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45872
45873 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45874
45875         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45876         --help to stdout.  Reported by sms@antinode.org (Steven
45877         M. Schweda).
45878
45879 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45880
45881         * users.txt: Fix link to libksba.
45882
45883 2007-10-21  Ben Pfaff  <blp@gnu.org>
45884
45885         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45886         round.c roundf implementation that depends on floorf and ceilf to
45887         be tested unconditionally.
45888
45889 2007-10-21  Ben Pfaff  <blp@gnu.org>
45890
45891         * m4/check-libm-func.m4: Removed.
45892         * m4/check-math-lib.m4: New file.
45893         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45894         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45895         definition and lack of AC_LIBOBJ([roundf]).
45896         * m4/roundl.m4: Ditto, and similarly for roundl.
45897         * modules/round: Reference new m4 file.
45898         * modules/roundf: Ditto.
45899         * modules/roundl: Ditto.
45900         * tests/test-round2.c (main): Use ROUND instead of round.
45901         Bug report from Bruno Haible.
45902
45903 2007-10-21  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45906         context.
45907
45908 2007-10-21  Bruno Haible  <bruno@clisp.org>
45909
45910         * tests/test-wcwidth.c (main): Allow negative result for some control
45911         characters.
45912
45913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45914         Needed on OSF/1 5.1.
45915
45916 2007-10-21  Bruno Haible  <bruno@clisp.org>
45917
45918         * tests/test-floorf1.c: Include isnanf.h.
45919         (main): Use isnanf() instead of isnan().
45920         * tests/test-ceilf1.c: Include isnanf.h.
45921         (main): Use isnanf() instead of isnan().
45922         * tests/test-truncf1.c: Include isnanf.h.
45923         (main): Use isnanf() instead of isnan().
45924         * tests/test-roundf1.c: Include isnanf.h.
45925         (main): Use isnanf() instead of isnan().
45926
45927 2007-10-21  Eric Blake  <ebb9@byu.net>
45928
45929         * users.txt: Update URL for m4.
45930
45931 2007-10-21  Bruno Haible  <bruno@clisp.org>
45932
45933         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45934
45935 2007-10-21  Bruno Haible  <bruno@clisp.org>
45936
45937         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45938         Git's management files if the CVS files are not present.
45939
45940 2007-10-20  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45943         gcc-3.4.x.
45944
45945 2007-10-20  Ben Pfaff  <blp@gnu.org>
45946
45947         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45948         implementations.
45949         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45950         * lib/round.c: New file.
45951         * lib/roundf.c: New file.
45952         * lib/roundl.c: New file.
45953         * m4/round.m4: New file.
45954         * m4/roundf.m4: New file.
45955         * m4/roundl.m4: New file.
45956         * m4/check-libm-func-m4: New file.
45957         * modules/math: Replace round, roundf, roundl related @VARS@ in
45958         math.in.h.
45959         * modules/round: New file.
45960         * modules/round-tests: New file.
45961         * modules/roundf: New file.
45962         * modules/roundf-tests: New file.
45963         * modules/roundl: New file.
45964         * modules/roundl-tests: New file.
45965         * tests/test-round1.c: New file.
45966         * tests/test-round2.c: New file.
45967         * tests/test-roundf1.c: New file.
45968         * tests/test-roundf2.c: New file.
45969         * tests/test-roundl.c: New file.
45970         * doc/functions/round.texi: Mention round module.
45971         * doc/functions/roundf.texi: Mention roundf module.
45972         * doc/functions/roundl.texi: Mention roundl module.
45973         * MODULES.html.sh: Mention new modules.
45974         Thanks to Bruno Haible for suggestions.
45975
45976 2007-10-20  Jim Meyering  <meyering@redhat.com>
45977
45978         * lib/xprintf.c: Include <config.h> unconditionally.
45979
45980         Change xprintf's license to GPL.
45981         * modules/xprintf (License): s/LGPL/GPL/, since this module
45982         depends on modules (exit and exitfail) which are GPL.
45983         Suggestion from Bruno Haible.
45984
45985         xprintf fixes.
45986         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45987         Use a clearer diagnostic.
45988         Patch from Bruno Haible.
45989
45990 2007-10-20  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45993         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45995
45996 2007-10-20  Bruno Haible  <bruno@clisp.org>
45997
45998         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45999         precision in the comparison result > x - 1 or similar.
46000         * tests/test-ceilf2.c (correct_result_p): Likewise.
46001         * tests/test-truncf2.c (correct_result_p): Likewise.
46002         * tests/test-trunc2.c (correct_result_p): Likewise.
46003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46004
46005 2007-10-20  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/ceil: New file.
46008         * m4/ceil.m4: New file.
46009         * doc/functions/ceil.texi: Mention the 'ceil' module.
46010
46011 2007-10-20  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/floor: New file.
46014         * m4/floor.m4: New file.
46015         * doc/functions/floor.texi: Mention the 'floor' module.
46016
46017 2007-10-20  Bruno Haible  <bruno@clisp.org>
46018
46019         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46020         of %a.
46021         * modules/floorf-tests (Depends-on): Likewise.
46022         * modules/truncf-tests (Depends-on): Likewise.
46023         * modules/trunc-tests (Depends-on): Likewise.
46024         Reported by Ben Pfaff.
46025
46026 2007-10-19  Jim Meyering  <meyering@redhat.com>
46027
46028         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46029         Don't bother testing specific errno values.  Just test ferror.
46030
46031         New module: xprintf
46032         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46033
46034 2007-10-19  Bruno Haible  <bruno@clisp.org>
46035
46036         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46037         syntax.
46038         * modules/javaexec (Makefile.am): Likewise.
46039         * modules/relocatable-prog (Makefile.am): Likewise.
46040         Suggested by Jim Meyering.
46041
46042 2007-10-18  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46045         Reported by Jim Meyering.
46046
46047 2007-10-18  Eric Blake  <ebb9@byu.net>
46048
46049         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46050
46051 2007-10-18  Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46054         the format string into writable memory. Needed in Fortify conditions.
46055
46056 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46057             Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46060         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46061         * modules/trim (Depends-on): Add mbchar.
46062         (configure.ac): Add gl_FUNC_MBRTOWC.
46063         (Makefile.am): Augment lib_SOURCES.
46064
46065 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         Modify glob.c to use fstatat and dirfd, to simplify it.
46068         Suggested by Eric Blake.
46069         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46070         Don't include <stdbool.h>; not used.
46071         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46072         (link_exists_p): Simplify implementation, since we can now assume
46073         dirfd and fstatat.
46074         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46075
46076 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46077
46078         * gnulib-tool (func_get_dependencies): Fix sed script to
46079         match only tests.
46080
46081 2007-10-17  Bruno Haible  <bruno@clisp.org>
46082
46083         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46084         allow locale names without encoding suffix.
46085         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46086         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46087
46088 2007-10-16  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46091         * lib/getgroups.c (getgroups): Likewise.
46092         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46093
46094 2007-10-16  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46097         * modules/malloc-posix (License): Likewise.
46098         * modules/realloc-posix (License): Likewise.
46099         * modules/calloc-posix (License): Likewise.
46100         * modules/intprops (License): Change from GPL to LGPL, with
46101         Paul Eggert's approval.
46102
46103 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46104
46105         Merge glibc changes into lib/glob.c.
46106
46107         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46108         2007-10-15 04:59:03 UTC.  Here are the changes:
46109
46110         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46111
46112         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46113
46114         * lib/glob.c: Add some branch prediction throughout.
46115
46116         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46117
46118         [BZ #5103]
46119         * lib/glob.c (glob): Recognize patterns starting \/.
46120
46121         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46122
46123         [BZ #3996]
46124         * lib/glob.c (attribute_hidden): Define if not defined.
46125         (glob): Unescape dirname, filename or username when needed and not
46126         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46127         is NULL.  Handle unescaped [ in pattern without closing ].
46128         Don't pass GLOB_CHECK down to recursive glob for directories.
46129         (__glob_pattern_type): New function.
46130         (__glob_pattern_p): Implement using __glob_pattern_type.
46131         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46132         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46133         Remove unreachable code.
46134
46135         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46136
46137         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46138         explain why there are no leaks.
46139
46140         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46141
46142         [BZ #3253]
46143         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46144         time, rather allocate increasingly bigger arrays of pointers, if
46145         possible with alloca, if too large with malloc.
46146
46147 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46148
46149         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46150         Problem reported by H.Merijn Brand in
46151         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46153         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46154
46155 2007-10-15  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46158         with explicit rpl_ prefix.
46159         * lib/fopen.c (fopen): Likewise.
46160         * lib/freopen.c (freopen): Likewise.
46161         * lib/iconv.c (iconv): Likewise.
46162         * lib/iconv_close.c (iconv_close): Likewise.
46163
46164 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46165
46166         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46167
46168 2007-10-15  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46171         <stddef.h> instead of <stdlib.h> since we only need NULL.
46172         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46173
46174 2007-10-15  Bruno Haible  <bruno@clisp.org>
46175
46176         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46177         Replace paragraph talking about LIBOBJS.
46178         Reported by Colin Watson <cjwatson@debian.org>.
46179
46180 2007-10-15  Bruno Haible  <bruno@clisp.org>
46181
46182         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46183         <stdlib.h> before using NULL.
46184
46185 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46186
46187         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46188         Reported by Albert Chin <china@thewrittenword.com>.
46189
46190 2007-10-14  Bruno Haible  <bruno@clisp.org>
46191
46192         * modules/iconv_open-utf-tests: New file.
46193         * tests/test-iconv-utf.c: New file.
46194
46195         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46196         * modules/iconv_open-utf: New file.
46197         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46198         (iconv, iconv_close): New declarations.
46199         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46200         be defined.
46201         (iconv_open): Add special handling of conversion between UTF-8 and
46202         UTF-{16,32}{BE,LE}.
46203         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46204         * lib/iconv_close.c: New file.
46205         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46206         gl_FUNC_ICONV_OPEN.
46207         (gl_FUNC_ICONV_OPEN): Use it.
46208         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46209         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46210         and REPLACE_ICONV_UTF.
46211         * modules/iconv_open (Depends-on): Add c-strcase.
46212         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46213         ICONV_CONST.
46214         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46215
46216 2007-10-13  Albert Chin  <china@thewrittenword.com>
46217             Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46220         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46221
46222 2007-10-13  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46225         defined, use the ISO C99 inline semantics.
46226         * lib/argp.h (ARGP_EI): Likewise.
46227
46228 2007-10-13  Bruno Haible  <bruno@clisp.org>
46229
46230         Handle 'inline' change in gcc 4.3.0.
46231         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46232         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46233         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46234         argp_fmtstream_point): Disable 'extern' declaration if the function
46235         definition is going to be provided inline.
46236         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46237         semantics, not the ISO C99 inline semantics.
46238         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46239         'extern' declaration if the function definition is going to be provided
46240         inline.
46241         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46242         the GNU C inline semantics, not the ISO C99 inline semantics. With
46243         GCC 4.2, avoid a warning.
46244
46245 2007-10-13  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/freading.h (freading): Enable the use of __freading for
46248         glibc >= 2.7.
46249         * lib/freading.c (freading): Likewise.
46250
46251 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46254         "warning: C99 inline functions are not supported; using GNU89".
46255
46256 2007-10-12  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46259         of 2.
46260         * tests/test-ceilf2.c: New file.
46261         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46262
46263         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46264         * modules/ceilf-tests: Update.
46265
46266 2007-10-12  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46269         of 2.
46270         * tests/test-floorf2.c: New file.
46271         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46272
46273         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46274         * modules/floorf-tests: Update.
46275
46276 2007-10-12  Bruno Haible  <bruno@clisp.org>
46277
46278         * tests/test-trunc2.c: New file.
46279         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46280
46281         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46282         * modules/trunc-tests: Update.
46283
46284 2007-10-12  Bruno Haible  <bruno@clisp.org>
46285
46286         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46287         of 2.
46288         * tests/test-truncf2.c: New file.
46289         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46290
46291         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46292         * modules/truncf-tests: Update.
46293
46294 2007-10-11  Eric Blake  <ebb9@byu.net>
46295
46296         Don't claim strerror is broken on Interix.
46297         * doc/functions/strerror.texi (strerror): Known broken systems are
46298         now Solaris 8, and not Interix.
46299         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46300         Interix on cross-compile.
46301         Reported by Martin Koeppe in
46302         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46303
46304 2007-10-11  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/i-ring-tests: New file.
46307         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46308         instead of assert.
46309
46310 2007-10-11  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/filenamecat-tests: New file.
46313         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46314         * lib/filenamecat.c: Remove test code.
46315
46316 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46319
46320         * lib/strerror.c: Include <string.h> always, to test interface,
46321         and to remove the need for the dummy.
46322         Include intprops.h to compute width instead of doing it ourselves
46323         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46324         (strerror): Define it to return NULL if there's no system strerror.
46325         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46326         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46327         ancient pre-strerror Unix systems well any more.  Saying "unknown
46328         system error" is enough.
46329         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46330         simpler strerror.c implementation.
46331         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46332         Simplify the tests to reflect the simpler strerror implementation.
46333         * modules/strerror (Depends-on): Add intprops.
46334
46335 2007-10-09  Eric Blake  <ebb9@byu.net>
46336
46337         Silence test-fpending.
46338         * modules/fpending-tests (Files): Add wrapper script.
46339         * tests/test-fpending.sh: New file.
46340
46341 2007-10-09  Bruno Haible  <bruno@clisp.org>
46342
46343         * MODULES.html.sh (func_module): Don't create a hyperlink for
46344         function names like 'printf_frexp'.
46345         (Misc): Add crc, memxor.
46346         (Characteristics of floating types): New section.
46347         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46348         isnanf-nolibm, signbit, trunc, truncf, truncl.
46349         (Enhancements for ISO C 99 functions): New subsection Input/output.
46350         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46351         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46352         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46353         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46354         (Enhancements for POSIX:2001 functions): Add chdir-long.
46355         (File system functions): Add areadlink, chdir-safer, read-file.
46356         Remove cycle-check.
46357         (File system as inode set): New section.
46358         (Date and time): Add gethrxtime.
46359         (Multithreading): Add openmp.
46360         (Internationalization functions): Add localename.
46361         (Unicode string functions): Add unistr/u*-mbsnlen.
46362         (Support for maintaining and releasing projects): Add git-version-gen.
46363         (Lone files): Remove directories.
46364
46365 2007-10-08  Ben Pfaff  <blp@gnu.org>
46366
46367         * lib/xmalloca.h: Fix typo in comment.
46368
46369 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46370
46371         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46372         when avoiding problems with integer overflow.  Use a portable test
46373         instead.
46374
46375 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46376
46377         * modules/dummy (License): Change to LGPLv2+.
46378         * modules/float (License): Likewise
46379         * modules/realloc (License): Likewise
46380         * modules/stdlib (License): Likewise
46381
46382 2007-10-07  Bruno Haible  <bruno@clisp.org>
46383
46384         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46385         * floor.c (TWO_MANT_DIG): Likewise.
46386         * ceil.c (TWO_MANT_DIG): Likewise.
46387         Reported by Ben Pfaff.
46388
46389 2007-10-07  Bruno Haible  <bruno@clisp.org>
46390
46391         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46392         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46393         * lib/frexp.c (FUNC): Likewise.
46394         * lib/printf-frexp.h (printf_frexp): Likewise.
46395         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46396         * lib/printf-frexp.c (FUNC): Likewise.
46397         Suggested by Jim Meyering.
46398
46399 2007-10-07  Jim Meyering  <meyering@redhat.com>
46400
46401         Make xnanosleep's integer overflow test more robust.
46402         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46403         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46404
46405 2007-10-07  Bruno Haible  <bruno@clisp.org>
46406
46407         * NEWS: Mention the license change.
46408
46409         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46410         abbreviations in the modules files.
46411
46412         Change copyright notice from GPLv2+ to GPLv3+.
46413         * README: Change copyright notice.
46414         * MODULES.html.sh: Likewise.
46415         * build-aux/bootstrap.conf: Likewise.
46416         * build-aux/config.libpath: Likewise.
46417         * build-aux/csharpcomp.sh.in: Likewise.
46418         * build-aux/csharpexec.sh.in: Likewise.
46419         * build-aux/install-reloc: Likewise.
46420         * build-aux/javacomp.sh.in: Likewise.
46421         * build-aux/javaexec.sh.in: Likewise.
46422         * build-aux/ldd.sh.in: Likewise.
46423         * build-aux/reloc-ldflags: Likewise.
46424         * build-aux/relocatable.sh.in: Likewise.
46425         * build-aux/x-to-1.in: Likewise.
46426         * check-module: Likewise.
46427         * config/srclistvars.sh: Likewise.
46428         * gnulib-tool: Likewise.
46429         * lib/acl-internal.h: Likewise.
46430         * lib/acl.c: Likewise.
46431         * lib/acl.h: Likewise.
46432         * lib/acl_entries.c: Likewise.
46433         * lib/areadlink-with-size.c: Likewise.
46434         * lib/areadlink.c: Likewise.
46435         * lib/areadlink.h: Likewise.
46436         * lib/argmatch.c: Likewise.
46437         * lib/argmatch.h: Likewise.
46438         * lib/argp-ba.c: Likewise.
46439         * lib/argp-eexst.c: Likewise.
46440         * lib/argp-fmtstream.c: Likewise.
46441         * lib/argp-fmtstream.h: Likewise.
46442         * lib/argp-fs-xinl.c: Likewise.
46443         * lib/argp-help.c: Likewise.
46444         * lib/argp-namefrob.h: Likewise.
46445         * lib/argp-parse.c: Likewise.
46446         * lib/argp-pin.c: Likewise.
46447         * lib/argp-pv.c: Likewise.
46448         * lib/argp-pvh.c: Likewise.
46449         * lib/argp-xinl.c: Likewise.
46450         * lib/argp.h: Likewise.
46451         * lib/at-func.c: Likewise.
46452         * lib/atanl.c: Likewise.
46453         * lib/backupfile.c: Likewise.
46454         * lib/backupfile.h: Likewise.
46455         * lib/basename.c: Likewise.
46456         * lib/binary-io.h: Likewise.
46457         * lib/byteswap.in.h: Likewise.
46458         * lib/c-stack.c: Likewise.
46459         * lib/c-stack.h: Likewise.
46460         * lib/c-strcasestr.c: Likewise.
46461         * lib/c-strcasestr.h: Likewise.
46462         * lib/c-strstr.c: Likewise.
46463         * lib/c-strstr.h: Likewise.
46464         * lib/c-strtod.c: Likewise.
46465         * lib/calloc.c: Likewise.
46466         * lib/canon-host.c: Likewise.
46467         * lib/canon-host.h: Likewise.
46468         * lib/canonicalize-lgpl.c: Likewise.
46469         * lib/canonicalize.c: Likewise.
46470         * lib/canonicalize.h: Likewise.
46471         * lib/ceil.c: Likewise.
46472         * lib/ceilf.c: Likewise.
46473         * lib/ceill.c: Likewise.
46474         * lib/chdir-long.c: Likewise.
46475         * lib/chdir-long.h: Likewise.
46476         * lib/chdir-safer.c: Likewise.
46477         * lib/chdir-safer.h: Likewise.
46478         * lib/chown.c: Likewise.
46479         * lib/classpath.c: Likewise.
46480         * lib/classpath.h: Likewise.
46481         * lib/clean-temp.c: Likewise.
46482         * lib/clean-temp.h: Likewise.
46483         * lib/cloexec.c: Likewise.
46484         * lib/close-stream.c: Likewise.
46485         * lib/closein.c: Likewise.
46486         * lib/closein.h: Likewise.
46487         * lib/closeout.c: Likewise.
46488         * lib/closeout.h: Likewise.
46489         * lib/concat-filename.c: Likewise.
46490         * lib/copy-file.c: Likewise.
46491         * lib/copy-file.h: Likewise.
46492         * lib/count-one-bits.h: Likewise.
46493         * lib/crc.c: Likewise.
46494         * lib/crc.h: Likewise.
46495         * lib/creat-safer.c: Likewise.
46496         * lib/csharpcomp.c: Likewise.
46497         * lib/csharpcomp.h: Likewise.
46498         * lib/csharpexec.c: Likewise.
46499         * lib/csharpexec.h: Likewise.
46500         * lib/cycle-check.c: Likewise.
46501         * lib/cycle-check.h: Likewise.
46502         * lib/diacrit.c: Likewise.
46503         * lib/diacrit.h: Likewise.
46504         * lib/diffseq.h: Likewise.
46505         * lib/dirchownmod.c: Likewise.
46506         * lib/dirent.in.h: Likewise.
46507         * lib/dirfd.c: Likewise.
46508         * lib/dirfd.h: Likewise.
46509         * lib/dirname.c: Likewise.
46510         * lib/dirname.h: Likewise.
46511         * lib/dummy.c: Likewise.
46512         * lib/dup-safer.c: Likewise.
46513         * lib/dup2.c: Likewise.
46514         * lib/eealloc.h: Likewise.
46515         * lib/error.c: Likewise.
46516         * lib/error.h: Likewise.
46517         * lib/euidaccess.c: Likewise.
46518         * lib/exclude.c: Likewise.
46519         * lib/exclude.h: Likewise.
46520         * lib/execute.c: Likewise.
46521         * lib/execute.h: Likewise.
46522         * lib/exitfail.c: Likewise.
46523         * lib/exitfail.h: Likewise.
46524         * lib/expl.c: Likewise.
46525         * lib/fatal-signal.c: Likewise.
46526         * lib/fatal-signal.h: Likewise.
46527         * lib/fbufmode.c: Likewise.
46528         * lib/fbufmode.h: Likewise.
46529         * lib/fchdir.c: Likewise.
46530         * lib/fchmodat.c: Likewise.
46531         * lib/fchownat.c: Likewise.
46532         * lib/fcntl--.h: Likewise.
46533         * lib/fcntl-safer.h: Likewise.
46534         * lib/fcntl.in.h: Likewise.
46535         * lib/fd-safer.c: Likewise.
46536         * lib/fflush.c: Likewise.
46537         * lib/file-has-acl.c: Likewise.
46538         * lib/file-set.c: Likewise.
46539         * lib/file-type.c: Likewise.
46540         * lib/file-type.h: Likewise.
46541         * lib/fileblocks.c: Likewise.
46542         * lib/filemode.c: Likewise.
46543         * lib/filemode.h: Likewise.
46544         * lib/filename.h: Likewise.
46545         * lib/filenamecat.c: Likewise.
46546         * lib/filenamecat.h: Likewise.
46547         * lib/findprog.c: Likewise.
46548         * lib/findprog.h: Likewise.
46549         * lib/float.in.h: Likewise.
46550         * lib/floor.c: Likewise.
46551         * lib/floorf.c: Likewise.
46552         * lib/floorl.c: Likewise.
46553         * lib/fopen-safer.c: Likewise.
46554         * lib/fopen.c: Likewise.
46555         * lib/fpending.c: Likewise.
46556         * lib/fpending.h: Likewise.
46557         * lib/fprintf.c: Likewise.
46558         * lib/fprintftime.h: Likewise.
46559         * lib/fpucw.h: Likewise.
46560         * lib/fpurge.c: Likewise.
46561         * lib/fpurge.h: Likewise.
46562         * lib/freadable.c: Likewise.
46563         * lib/freadable.h: Likewise.
46564         * lib/freadahead.c: Likewise.
46565         * lib/freadahead.h: Likewise.
46566         * lib/freading.c: Likewise.
46567         * lib/freading.h: Likewise.
46568         * lib/free.c: Likewise.
46569         * lib/freopen.c: Likewise.
46570         * lib/frexp.c: Likewise.
46571         * lib/frexpl.c: Likewise.
46572         * lib/fseek.c: Likewise.
46573         * lib/fseterr.c: Likewise.
46574         * lib/fseterr.h: Likewise.
46575         * lib/fstatat.c: Likewise.
46576         * lib/fstrcmp.c: Likewise.
46577         * lib/fstrcmp.h: Likewise.
46578         * lib/fsusage.c: Likewise.
46579         * lib/fsusage.h: Likewise.
46580         * lib/ftell.c: Likewise.
46581         * lib/ftello.c: Likewise.
46582         * lib/fts-cycle.c: Likewise.
46583         * lib/fts.c: Likewise.
46584         * lib/fts_.h: Likewise.
46585         * lib/full-read.c: Likewise.
46586         * lib/full-read.h: Likewise.
46587         * lib/full-write.c: Likewise.
46588         * lib/full-write.h: Likewise.
46589         * lib/fwritable.c: Likewise.
46590         * lib/fwritable.h: Likewise.
46591         * lib/fwriteerror.c: Likewise.
46592         * lib/fwriteerror.h: Likewise.
46593         * lib/fwriting.c: Likewise.
46594         * lib/fwriting.h: Likewise.
46595         * lib/gcd.c: Likewise.
46596         * lib/gcd.h: Likewise.
46597         * lib/getcwd.c: Likewise.
46598         * lib/getdate.h: Likewise.
46599         * lib/getdate.y: Likewise.
46600         * lib/getdomainname.c: Likewise.
46601         * lib/getdomainname.h: Likewise.
46602         * lib/getgroups.c: Likewise.
46603         * lib/gethostname.c: Likewise.
46604         * lib/gethrxtime.c: Likewise.
46605         * lib/gethrxtime.h: Likewise.
46606         * lib/getloadavg.c: Likewise.
46607         * lib/getndelim2.c: Likewise.
46608         * lib/getndelim2.h: Likewise.
46609         * lib/getnline.c: Likewise.
46610         * lib/getnline.h: Likewise.
46611         * lib/getopt.c: Likewise.
46612         * lib/getopt.in.h: Likewise.
46613         * lib/getopt1.c: Likewise.
46614         * lib/getopt_int.h: Likewise.
46615         * lib/getpagesize.h: Likewise.
46616         * lib/getsubopt.c: Likewise.
46617         * lib/gettime.c: Likewise.
46618         * lib/getugroups.c: Likewise.
46619         * lib/getugroups.h: Likewise.
46620         * lib/getusershell.c: Likewise.
46621         * lib/gl_anyavltree_list1.h: Likewise.
46622         * lib/gl_anyavltree_list2.h: Likewise.
46623         * lib/gl_anyhash_list1.h: Likewise.
46624         * lib/gl_anyhash_list2.h: Likewise.
46625         * lib/gl_anylinked_list1.h: Likewise.
46626         * lib/gl_anylinked_list2.h: Likewise.
46627         * lib/gl_anyrbtree_list1.h: Likewise.
46628         * lib/gl_anyrbtree_list2.h: Likewise.
46629         * lib/gl_anytree_list1.h: Likewise.
46630         * lib/gl_anytree_list2.h: Likewise.
46631         * lib/gl_anytree_oset.h: Likewise.
46632         * lib/gl_anytreehash_list1.h: Likewise.
46633         * lib/gl_anytreehash_list2.h: Likewise.
46634         * lib/gl_array_list.c: Likewise.
46635         * lib/gl_array_list.h: Likewise.
46636         * lib/gl_array_oset.c: Likewise.
46637         * lib/gl_array_oset.h: Likewise.
46638         * lib/gl_avltree_list.c: Likewise.
46639         * lib/gl_avltree_list.h: Likewise.
46640         * lib/gl_avltree_oset.c: Likewise.
46641         * lib/gl_avltree_oset.h: Likewise.
46642         * lib/gl_avltreehash_list.c: Likewise.
46643         * lib/gl_avltreehash_list.h: Likewise.
46644         * lib/gl_carray_list.c: Likewise.
46645         * lib/gl_carray_list.h: Likewise.
46646         * lib/gl_linked_list.c: Likewise.
46647         * lib/gl_linked_list.h: Likewise.
46648         * lib/gl_linkedhash_list.c: Likewise.
46649         * lib/gl_linkedhash_list.h: Likewise.
46650         * lib/gl_list.c: Likewise.
46651         * lib/gl_list.h: Likewise.
46652         * lib/gl_oset.c: Likewise.
46653         * lib/gl_oset.h: Likewise.
46654         * lib/gl_rbtree_list.c: Likewise.
46655         * lib/gl_rbtree_list.h: Likewise.
46656         * lib/gl_rbtree_oset.c: Likewise.
46657         * lib/gl_rbtree_oset.h: Likewise.
46658         * lib/gl_rbtreehash_list.c: Likewise.
46659         * lib/gl_rbtreehash_list.h: Likewise.
46660         * lib/gl_sublist.c: Likewise.
46661         * lib/gl_sublist.h: Likewise.
46662         * lib/group-member.c: Likewise.
46663         * lib/group-member.h: Likewise.
46664         * lib/hard-locale.c: Likewise.
46665         * lib/hard-locale.h: Likewise.
46666         * lib/hash-pjw.c: Likewise.
46667         * lib/hash-pjw.h: Likewise.
46668         * lib/hash-triple.c: Likewise.
46669         * lib/hash.c: Likewise.
46670         * lib/hash.h: Likewise.
46671         * lib/human.c: Likewise.
46672         * lib/human.h: Likewise.
46673         * lib/i-ring.c: Likewise.
46674         * lib/i-ring.h: Likewise.
46675         * lib/idcache.c: Likewise.
46676         * lib/imaxabs.c: Likewise.
46677         * lib/imaxdiv.c: Likewise.
46678         * lib/inet_pton.c: Likewise.
46679         * lib/inet_pton.h: Likewise.
46680         * lib/intprops.h: Likewise.
46681         * lib/inttostr.c: Likewise.
46682         * lib/inttostr.h: Likewise.
46683         * lib/inttypes.in.h: Likewise.
46684         * lib/isapipe.c: Likewise.
46685         * lib/isdir.c: Likewise.
46686         * lib/isnan.c: Likewise.
46687         * lib/isnan.h: Likewise.
46688         * lib/isnanf.c: Likewise.
46689         * lib/isnanf.h: Likewise.
46690         * lib/isnanl-nolibm.h: Likewise.
46691         * lib/isnanl.c: Likewise.
46692         * lib/isnanl.h: Likewise.
46693         * lib/javacomp.c: Likewise.
46694         * lib/javacomp.h: Likewise.
46695         * lib/javaexec.c: Likewise.
46696         * lib/javaexec.h: Likewise.
46697         * lib/javaversion.c: Likewise.
46698         * lib/javaversion.h: Likewise.
46699         * lib/javaversion.java: Likewise.
46700         * lib/lbrkprop.h: Likewise.
46701         * lib/lchmod.h: Likewise.
46702         * lib/lchown.c: Likewise.
46703         * lib/ldexpl.c: Likewise.
46704         * lib/linebreak.c: Likewise.
46705         * lib/linebreak.h: Likewise.
46706         * lib/linebuffer.c: Likewise.
46707         * lib/linebuffer.h: Likewise.
46708         * lib/locale.in.h: Likewise.
46709         * lib/logl.c: Likewise.
46710         * lib/long-options.c: Likewise.
46711         * lib/long-options.h: Likewise.
46712         * lib/lstat.c: Likewise.
46713         * lib/lstat.h: Likewise.
46714         * lib/math.in.h: Likewise.
46715         * lib/mbchar.c: Likewise.
46716         * lib/mbchar.h: Likewise.
46717         * lib/mbfile.h: Likewise.
46718         * lib/mbiter.h: Likewise.
46719         * lib/mbscasecmp.c: Likewise.
46720         * lib/mbscasestr.c: Likewise.
46721         * lib/mbschr.c: Likewise.
46722         * lib/mbscspn.c: Likewise.
46723         * lib/mbslen.c: Likewise.
46724         * lib/mbsncasecmp.c: Likewise.
46725         * lib/mbsnlen.c: Likewise.
46726         * lib/mbspbrk.c: Likewise.
46727         * lib/mbspcasecmp.c: Likewise.
46728         * lib/mbsrchr.c: Likewise.
46729         * lib/mbssep.c: Likewise.
46730         * lib/mbsspn.c: Likewise.
46731         * lib/mbsstr.c: Likewise.
46732         * lib/mbstok_r.c: Likewise.
46733         * lib/mbswidth.c: Likewise.
46734         * lib/mbswidth.h: Likewise.
46735         * lib/mbuiter.h: Likewise.
46736         * lib/memcasecmp.c: Likewise.
46737         * lib/memcasecmp.h: Likewise.
46738         * lib/memchr.c: Likewise.
46739         * lib/memcmp.c: Likewise.
46740         * lib/memcoll.c: Likewise.
46741         * lib/memcoll.h: Likewise.
46742         * lib/memcpy.c: Likewise.
46743         * lib/memrchr.c: Likewise.
46744         * lib/mkancesdirs.c: Likewise.
46745         * lib/mkdir-p.c: Likewise.
46746         * lib/mkdir-p.h: Likewise.
46747         * lib/mkdir.c: Likewise.
46748         * lib/mkdirat.c: Likewise.
46749         * lib/mkdtemp.c: Likewise.
46750         * lib/mkstemp-safer.c: Likewise.
46751         * lib/mkstemp.c: Likewise.
46752         * lib/modechange.c: Likewise.
46753         * lib/modechange.h: Likewise.
46754         * lib/mountlist.c: Likewise.
46755         * lib/mountlist.h: Likewise.
46756         * lib/mpsort.c: Likewise.
46757         * lib/nanosleep.c: Likewise.
46758         * lib/obstack.c: Likewise.
46759         * lib/obstack.h: Likewise.
46760         * lib/open-safer.c: Likewise.
46761         * lib/open.c: Likewise.
46762         * lib/openat-die.c: Likewise.
46763         * lib/openat-priv.h: Likewise.
46764         * lib/openat-proc.c: Likewise.
46765         * lib/openat.c: Likewise.
46766         * lib/openat.h: Likewise.
46767         * lib/pagealign_alloc.c: Likewise.
46768         * lib/pagealign_alloc.h: Likewise.
46769         * lib/physmem.c: Likewise.
46770         * lib/physmem.h: Likewise.
46771         * lib/pipe-safer.c: Likewise.
46772         * lib/pipe.c: Likewise.
46773         * lib/pipe.h: Likewise.
46774         * lib/posixtm.c: Likewise.
46775         * lib/posixtm.h: Likewise.
46776         * lib/posixver.c: Likewise.
46777         * lib/printf-frexp.c: Likewise.
46778         * lib/printf-frexp.h: Likewise.
46779         * lib/printf-frexpl.c: Likewise.
46780         * lib/printf-frexpl.h: Likewise.
46781         * lib/printf.c: Likewise.
46782         * lib/progname.c: Likewise.
46783         * lib/progname.h: Likewise.
46784         * lib/progreloc.c: Likewise.
46785         * lib/putenv.c: Likewise.
46786         * lib/quote.c: Likewise.
46787         * lib/quote.h: Likewise.
46788         * lib/quotearg.c: Likewise.
46789         * lib/quotearg.h: Likewise.
46790         * lib/raise.c: Likewise.
46791         * lib/readline.c: Likewise.
46792         * lib/readline.h: Likewise.
46793         * lib/readlink.c: Likewise.
46794         * lib/readtokens.c: Likewise.
46795         * lib/readtokens.h: Likewise.
46796         * lib/readtokens0.c: Likewise.
46797         * lib/readtokens0.h: Likewise.
46798         * lib/readutmp.c: Likewise.
46799         * lib/readutmp.h: Likewise.
46800         * lib/realloc.c: Likewise.
46801         * lib/relocwrapper.c: Likewise.
46802         * lib/rename-dest-slash.c: Likewise.
46803         * lib/rename.c: Likewise.
46804         * lib/rmdir.c: Likewise.
46805         * lib/rpmatch.c: Likewise.
46806         * lib/safe-read.c: Likewise.
46807         * lib/safe-read.h: Likewise.
46808         * lib/safe-write.c: Likewise.
46809         * lib/safe-write.h: Likewise.
46810         * lib/same-inode.h: Likewise.
46811         * lib/same.c: Likewise.
46812         * lib/same.h: Likewise.
46813         * lib/save-cwd.c: Likewise.
46814         * lib/save-cwd.h: Likewise.
46815         * lib/savedir.c: Likewise.
46816         * lib/savedir.h: Likewise.
46817         * lib/savewd.c: Likewise.
46818         * lib/savewd.h: Likewise.
46819         * lib/search.in.h: Likewise.
46820         * lib/setenv.c: Likewise.
46821         * lib/setenv.h: Likewise.
46822         * lib/settime.c: Likewise.
46823         * lib/sh-quote.c: Likewise.
46824         * lib/sh-quote.h: Likewise.
46825         * lib/sig2str.c: Likewise.
46826         * lib/sig2str.h: Likewise.
46827         * lib/signal.in.h: Likewise.
46828         * lib/signbitd.c: Likewise.
46829         * lib/signbitf.c: Likewise.
46830         * lib/signbitl.c: Likewise.
46831         * lib/sigprocmask.c: Likewise.
46832         * lib/sincosl.c: Likewise.
46833         * lib/sleep.c: Likewise.
46834         * lib/sprintf.c: Likewise.
46835         * lib/sqrtl.c: Likewise.
46836         * lib/stat-time.h: Likewise.
46837         * lib/stdio--.h: Likewise.
46838         * lib/stdio-safer.h: Likewise.
46839         * lib/stdlib--.h: Likewise.
46840         * lib/stdlib-safer.h: Likewise.
46841         * lib/stdlib.in.h: Likewise.
46842         * lib/stpcpy.c: Likewise.
46843         * lib/stpncpy.c: Likewise.
46844         * lib/strchrnul.c: Likewise.
46845         * lib/strcspn.c: Likewise.
46846         * lib/strerror.c: Likewise.
46847         * lib/strftime.c: Likewise.
46848         * lib/strftime.h: Likewise.
46849         * lib/striconveh.c: Likewise.
46850         * lib/striconveh.h: Likewise.
46851         * lib/striconveha.c: Likewise.
46852         * lib/striconveha.h: Likewise.
46853         * lib/stripslash.c: Likewise.
46854         * lib/strnlen1.c: Likewise.
46855         * lib/strnlen1.h: Likewise.
46856         * lib/strtod.c: Likewise.
46857         * lib/strtoimax.c: Likewise.
46858         * lib/strtok_r.c: Likewise.
46859         * lib/strtol.c: Likewise.
46860         * lib/strtoll.c: Likewise.
46861         * lib/strtoul.c: Likewise.
46862         * lib/strtoull.c: Likewise.
46863         * lib/sysexits.in.h: Likewise.
46864         * lib/tempname.c: Likewise.
46865         * lib/tempname.h: Likewise.
46866         * lib/timespec.h: Likewise.
46867         * lib/tls.c: Likewise.
46868         * lib/tls.h: Likewise.
46869         * lib/tmpdir.c: Likewise.
46870         * lib/tmpdir.h: Likewise.
46871         * lib/tmpfile-safer.c: Likewise.
46872         * lib/tmpfile.c: Likewise.
46873         * lib/trigl.c: Likewise.
46874         * lib/trigl.h: Likewise.
46875         * lib/trim.c: Likewise.
46876         * lib/trim.h: Likewise.
46877         * lib/trunc.c: Likewise.
46878         * lib/truncf.c: Likewise.
46879         * lib/truncl.c: Likewise.
46880         * lib/tsearch.c: Likewise.
46881         * lib/unicodeio.c: Likewise.
46882         * lib/unicodeio.h: Likewise.
46883         * lib/unistd--.h: Likewise.
46884         * lib/unistd-safer.h: Likewise.
46885         * lib/unistdio/ulc-fprintf.c: Likewise.
46886         * lib/unistdio/ulc-vfprintf.c: Likewise.
46887         * lib/unlinkdir.c: Likewise.
46888         * lib/unlinkdir.h: Likewise.
46889         * lib/unlocked-io.h: Likewise.
46890         * lib/unsetenv.c: Likewise.
46891         * lib/userspec.c: Likewise.
46892         * lib/utime.c: Likewise.
46893         * lib/utimecmp.c: Likewise.
46894         * lib/utimecmp.h: Likewise.
46895         * lib/utimens.c: Likewise.
46896         * lib/verify.h: Likewise.
46897         * lib/verror.c: Likewise.
46898         * lib/verror.h: Likewise.
46899         * lib/version-etc-fsf.c: Likewise.
46900         * lib/version-etc.c: Likewise.
46901         * lib/version-etc.h: Likewise.
46902         * lib/vfprintf.c: Likewise.
46903         * lib/vprintf.c: Likewise.
46904         * lib/vsprintf.c: Likewise.
46905         * lib/w32spawn.h: Likewise.
46906         * lib/wait-process.c: Likewise.
46907         * lib/wait-process.h: Likewise.
46908         * lib/wcwidth.c: Likewise.
46909         * lib/write-any-file.c: Likewise.
46910         * lib/xalloc-die.c: Likewise.
46911         * lib/xalloc.h: Likewise.
46912         * lib/xasprintf.c: Likewise.
46913         * lib/xgetcwd.c: Likewise.
46914         * lib/xgetcwd.h: Likewise.
46915         * lib/xgetdomainname.c: Likewise.
46916         * lib/xgetdomainname.h: Likewise.
46917         * lib/xgethostname.c: Likewise.
46918         * lib/xmalloc.c: Likewise.
46919         * lib/xmalloca.c: Likewise.
46920         * lib/xmalloca.h: Likewise.
46921         * lib/xmemcoll.c: Likewise.
46922         * lib/xnanosleep.c: Likewise.
46923         * lib/xreadlink.c: Likewise.
46924         * lib/xreadlink.h: Likewise.
46925         * lib/xsetenv.c: Likewise.
46926         * lib/xsetenv.h: Likewise.
46927         * lib/xstriconv.c: Likewise.
46928         * lib/xstriconv.h: Likewise.
46929         * lib/xstrndup.c: Likewise.
46930         * lib/xstrndup.h: Likewise.
46931         * lib/xstrtod.c: Likewise.
46932         * lib/xstrtod.h: Likewise.
46933         * lib/xstrtol-error.c: Likewise.
46934         * lib/xstrtol.c: Likewise.
46935         * lib/xstrtol.h: Likewise.
46936         * lib/xtime.h: Likewise.
46937         * lib/xvasprintf.c: Likewise.
46938         * lib/xvasprintf.h: Likewise.
46939         * lib/yesno.c: Likewise.
46940         * lib/yesno.h: Likewise.
46941         * posix-modules: Likewise.
46942         * tests/test-alloca-opt.c: Likewise.
46943         * tests/test-arcfour.c: Likewise.
46944         * tests/test-arctwo.c: Likewise.
46945         * tests/test-argmatch.c: Likewise.
46946         * tests/test-argp-2.sh: Likewise.
46947         * tests/test-argp.c: Likewise.
46948         * tests/test-arpa_inet.c: Likewise.
46949         * tests/test-array_list.c: Likewise.
46950         * tests/test-array_oset.c: Likewise.
46951         * tests/test-atexit.c: Likewise.
46952         * tests/test-avltree_list.c: Likewise.
46953         * tests/test-avltree_oset.c: Likewise.
46954         * tests/test-avltreehash_list.c: Likewise.
46955         * tests/test-base64.c: Likewise.
46956         * tests/test-binary-io.c: Likewise.
46957         * tests/test-byteswap.c: Likewise.
46958         * tests/test-c-ctype.c: Likewise.
46959         * tests/test-c-strcasecmp.c: Likewise.
46960         * tests/test-c-strcasestr.c: Likewise.
46961         * tests/test-c-strncasecmp.c: Likewise.
46962         * tests/test-c-strstr.c: Likewise.
46963         * tests/test-canonicalize-lgpl.c: Likewise.
46964         * tests/test-canonicalize.c: Likewise.
46965         * tests/test-carray_list.c: Likewise.
46966         * tests/test-ceilf.c: Likewise.
46967         * tests/test-ceill.c: Likewise.
46968         * tests/test-count-one-bits.c: Likewise.
46969         * tests/test-crc.c: Likewise.
46970         * tests/test-dirname.c: Likewise.
46971         * tests/test-fbufmode.c: Likewise.
46972         * tests/test-fcntl.c: Likewise.
46973         * tests/test-fflush.c: Likewise.
46974         * tests/test-floorf.c: Likewise.
46975         * tests/test-floorl.c: Likewise.
46976         * tests/test-fopen.c: Likewise.
46977         * tests/test-fprintf-posix.c: Likewise.
46978         * tests/test-fprintf-posix.h: Likewise.
46979         * tests/test-fpurge.c: Likewise.
46980         * tests/test-freadable.c: Likewise.
46981         * tests/test-freadahead.c: Likewise.
46982         * tests/test-freading.c: Likewise.
46983         * tests/test-freopen.c: Likewise.
46984         * tests/test-frexp.c: Likewise.
46985         * tests/test-frexpl.c: Likewise.
46986         * tests/test-fseek.c: Likewise.
46987         * tests/test-fseeko.c: Likewise.
46988         * tests/test-fseterr.c: Likewise.
46989         * tests/test-fstrcmp.c: Likewise.
46990         * tests/test-ftell.c: Likewise.
46991         * tests/test-ftello.c: Likewise.
46992         * tests/test-fwritable.c: Likewise.
46993         * tests/test-fwriting.c: Likewise.
46994         * tests/test-getaddrinfo.c: Likewise.
46995         * tests/test-getpass.c: Likewise.
46996         * tests/test-gettimeofday.c: Likewise.
46997         * tests/test-hmac-md5.c: Likewise.
46998         * tests/test-hmac-sha1.c: Likewise.
46999         * tests/test-iconv.c: Likewise.
47000         * tests/test-iconvme.c: Likewise.
47001         * tests/test-inttypes.c: Likewise.
47002         * tests/test-isnan.c: Likewise.
47003         * tests/test-isnanf.c: Likewise.
47004         * tests/test-isnanl-nolibm.c: Likewise.
47005         * tests/test-isnanl.c: Likewise.
47006         * tests/test-isnanl.h: Likewise.
47007         * tests/test-ldexpl.c: Likewise.
47008         * tests/test-linked_list.c: Likewise.
47009         * tests/test-linkedhash_list.c: Likewise.
47010         * tests/test-locale.c: Likewise.
47011         * tests/test-localename.c: Likewise.
47012         * tests/test-lock.c: Likewise.
47013         * tests/test-lseek.c: Likewise.
47014         * tests/test-malloca.c: Likewise.
47015         * tests/test-math.c: Likewise.
47016         * tests/test-mbscasecmp.c: Likewise.
47017         * tests/test-mbscasestr1.c: Likewise.
47018         * tests/test-mbscasestr2.c: Likewise.
47019         * tests/test-mbscasestr3.c: Likewise.
47020         * tests/test-mbscasestr4.c: Likewise.
47021         * tests/test-mbschr.c: Likewise.
47022         * tests/test-mbscspn.c: Likewise.
47023         * tests/test-mbsncasecmp.c: Likewise.
47024         * tests/test-mbspbrk.c: Likewise.
47025         * tests/test-mbspcasecmp.c: Likewise.
47026         * tests/test-mbsrchr.c: Likewise.
47027         * tests/test-mbsspn.c: Likewise.
47028         * tests/test-mbsstr1.c: Likewise.
47029         * tests/test-mbsstr2.c: Likewise.
47030         * tests/test-mbsstr3.c: Likewise.
47031         * tests/test-md5.c: Likewise.
47032         * tests/test-memmem.c: Likewise.
47033         * tests/test-netinet_in.c: Likewise.
47034         * tests/test-open.c: Likewise.
47035         * tests/test-printf-frexp.c: Likewise.
47036         * tests/test-printf-frexpl.c: Likewise.
47037         * tests/test-printf-posix.c: Likewise.
47038         * tests/test-printf-posix.h: Likewise.
47039         * tests/test-rbtree_list.c: Likewise.
47040         * tests/test-rbtree_oset.c: Likewise.
47041         * tests/test-rbtreehash_list.c: Likewise.
47042         * tests/test-read-file.c: Likewise.
47043         * tests/test-rijndael.c: Likewise.
47044         * tests/test-search.c: Likewise.
47045         * tests/test-signbit.c: Likewise.
47046         * tests/test-sleep.c: Likewise.
47047         * tests/test-snprintf-posix.c: Likewise.
47048         * tests/test-snprintf-posix.h: Likewise.
47049         * tests/test-snprintf.c: Likewise.
47050         * tests/test-sprintf-posix.c: Likewise.
47051         * tests/test-sprintf-posix.h: Likewise.
47052         * tests/test-stat-time.c: Likewise.
47053         * tests/test-stdbool.c: Likewise.
47054         * tests/test-stdint.c: Likewise.
47055         * tests/test-stdio.c: Likewise.
47056         * tests/test-stdlib.c: Likewise.
47057         * tests/test-stpncpy.c: Likewise.
47058         * tests/test-strcasestr.c: Likewise.
47059         * tests/test-striconv.c: Likewise.
47060         * tests/test-striconveh.c: Likewise.
47061         * tests/test-striconveha.c: Likewise.
47062         * tests/test-string.c: Likewise.
47063         * tests/test-sys_select.c: Likewise.
47064         * tests/test-sys_socket.c: Likewise.
47065         * tests/test-sys_stat.c: Likewise.
47066         * tests/test-sys_time.c: Likewise.
47067         * tests/test-sysexits.c: Likewise.
47068         * tests/test-time.c: Likewise.
47069         * tests/test-tls.c: Likewise.
47070         * tests/test-trunc.c: Likewise.
47071         * tests/test-truncf.c: Likewise.
47072         * tests/test-truncl.c: Likewise.
47073         * tests/test-unistd.c: Likewise.
47074         * tests/test-vasnprintf-posix.c: Likewise.
47075         * tests/test-vasnprintf-posix2.c: Likewise.
47076         * tests/test-vasnprintf.c: Likewise.
47077         * tests/test-vasprintf-posix.c: Likewise.
47078         * tests/test-vasprintf.c: Likewise.
47079         * tests/test-verify.c: Likewise.
47080         * tests/test-vfprintf-posix.c: Likewise.
47081         * tests/test-vprintf-posix.c: Likewise.
47082         * tests/test-vsnprintf-posix.c: Likewise.
47083         * tests/test-vsnprintf.c: Likewise.
47084         * tests/test-vsprintf-posix.c: Likewise.
47085         * tests/test-wchar.c: Likewise.
47086         * tests/test-wctype.c: Likewise.
47087         * tests/test-wcwidth.c: Likewise.
47088         * tests/test-xstrtol.c: Likewise.
47089         * tests/test-xvasprintf.c: Likewise.
47090         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47091         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47092         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47093         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47094         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47095         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47096         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47097         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47098         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47099         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47100         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47101         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47102         * tests/uniname/test-uninames.c: Likewise.
47103         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47104         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47105         * tests/unistdio/test-u16-printf1.h: Likewise.
47106         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47107         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47108         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47109         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47110         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47111         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47112         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47113         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47114         * tests/unistdio/test-u32-printf1.h: Likewise.
47115         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47116         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47117         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47118         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47119         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47120         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47121         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47122         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47123         * tests/unistdio/test-u8-printf1.h: Likewise.
47124         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47125         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47126         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47127         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47128         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47129         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47130         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47131         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47132         * tests/unistdio/test-ulc-printf1.h: Likewise.
47133         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47134         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47135         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47136         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47137         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47138         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47139         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47140         * tests/uniwidth/test-u16-width.c: Likewise.
47141         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47142         * tests/uniwidth/test-u32-width.c: Likewise.
47143         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47144         * tests/uniwidth/test-u8-width.c: Likewise.
47145         * tests/uniwidth/test-uc_width.c: Likewise.
47146         * config/srclist-update: Likewise.
47147         (fixlicense): Update to GPLv3+.
47148
47149         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47150         * tests/test-tsearch.c: Change copyright notice.
47151
47152         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47153         * lib/c-strcaseeq.h: Change copyright notice.
47154         * lib/streq.h: Likewise.
47155         * lib/uniconv.h: Likewise.
47156         * lib/uniconv/u-conv-from-enc.h: Likewise.
47157         * lib/uniconv/u-conv-to-enc.h: Likewise.
47158         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47159         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47160         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47161         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47162         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47163         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47164         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47165         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47166         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47167         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47168         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47169         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47170         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47171         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47172         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47173         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47174         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47175         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47176         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47177         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47178         * lib/uniname.h: Likewise.
47179         * lib/uniname/uniname.c: Likewise.
47180         * lib/unistdio.h: Likewise.
47181         * lib/unistdio/u-asnprintf.h: Likewise.
47182         * lib/unistdio/u-asprintf.h: Likewise.
47183         * lib/unistdio/u-printf-args.c: Likewise.
47184         * lib/unistdio/u-printf-args.h: Likewise.
47185         * lib/unistdio/u-printf-parse.h: Likewise.
47186         * lib/unistdio/u-snprintf.h: Likewise.
47187         * lib/unistdio/u-sprintf.h: Likewise.
47188         * lib/unistdio/u-vasprintf.h: Likewise.
47189         * lib/unistdio/u-vsnprintf.h: Likewise.
47190         * lib/unistdio/u-vsprintf.h: Likewise.
47191         * lib/unistdio/u16-asnprintf.c: Likewise.
47192         * lib/unistdio/u16-asprintf.c: Likewise.
47193         * lib/unistdio/u16-printf-parse.c: Likewise.
47194         * lib/unistdio/u16-snprintf.c: Likewise.
47195         * lib/unistdio/u16-sprintf.c: Likewise.
47196         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47197         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47198         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47199         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47200         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47201         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47202         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47203         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47204         * lib/unistdio/u16-vasnprintf.c: Likewise.
47205         * lib/unistdio/u16-vasprintf.c: Likewise.
47206         * lib/unistdio/u16-vsnprintf.c: Likewise.
47207         * lib/unistdio/u16-vsprintf.c: Likewise.
47208         * lib/unistdio/u32-asnprintf.c: Likewise.
47209         * lib/unistdio/u32-asprintf.c: Likewise.
47210         * lib/unistdio/u32-printf-parse.c: Likewise.
47211         * lib/unistdio/u32-snprintf.c: Likewise.
47212         * lib/unistdio/u32-sprintf.c: Likewise.
47213         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47214         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47215         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47216         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47217         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47218         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47219         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47220         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47221         * lib/unistdio/u32-vasnprintf.c: Likewise.
47222         * lib/unistdio/u32-vasprintf.c: Likewise.
47223         * lib/unistdio/u32-vsnprintf.c: Likewise.
47224         * lib/unistdio/u32-vsprintf.c: Likewise.
47225         * lib/unistdio/u8-asnprintf.c: Likewise.
47226         * lib/unistdio/u8-asprintf.c: Likewise.
47227         * lib/unistdio/u8-printf-parse.c: Likewise.
47228         * lib/unistdio/u8-snprintf.c: Likewise.
47229         * lib/unistdio/u8-sprintf.c: Likewise.
47230         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47231         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47232         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47233         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47234         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47235         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47236         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47237         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47238         * lib/unistdio/u8-vasnprintf.c: Likewise.
47239         * lib/unistdio/u8-vasprintf.c: Likewise.
47240         * lib/unistdio/u8-vsnprintf.c: Likewise.
47241         * lib/unistdio/u8-vsprintf.c: Likewise.
47242         * lib/unistdio/ulc-asnprintf.c: Likewise.
47243         * lib/unistdio/ulc-asprintf.c: Likewise.
47244         * lib/unistdio/ulc-printf-parse.c: Likewise.
47245         * lib/unistdio/ulc-snprintf.c: Likewise.
47246         * lib/unistdio/ulc-sprintf.c: Likewise.
47247         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47248         * lib/unistdio/ulc-vasprintf.c: Likewise.
47249         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47250         * lib/unistdio/ulc-vsprintf.c: Likewise.
47251         * lib/unistr.h: Likewise.
47252         * lib/unistr/u-cpy-alloc.h: Likewise.
47253         * lib/unistr/u-cpy.h: Likewise.
47254         * lib/unistr/u-endswith.h: Likewise.
47255         * lib/unistr/u-move.h: Likewise.
47256         * lib/unistr/u-set.h: Likewise.
47257         * lib/unistr/u-startswith.h: Likewise.
47258         * lib/unistr/u-stpcpy.h: Likewise.
47259         * lib/unistr/u-stpncpy.h: Likewise.
47260         * lib/unistr/u-strcat.h: Likewise.
47261         * lib/unistr/u-strcpy.h: Likewise.
47262         * lib/unistr/u-strcspn.h: Likewise.
47263         * lib/unistr/u-strdup.h: Likewise.
47264         * lib/unistr/u-strlen.h: Likewise.
47265         * lib/unistr/u-strncat.h: Likewise.
47266         * lib/unistr/u-strncpy.h: Likewise.
47267         * lib/unistr/u-strnlen.h: Likewise.
47268         * lib/unistr/u-strpbrk.h: Likewise.
47269         * lib/unistr/u-strspn.h: Likewise.
47270         * lib/unistr/u-strstr.h: Likewise.
47271         * lib/unistr/u-strtok.h: Likewise.
47272         * lib/unistr/u16-check.c: Likewise.
47273         * lib/unistr/u16-chr.c: Likewise.
47274         * lib/unistr/u16-cmp.c: Likewise.
47275         * lib/unistr/u16-cpy-alloc.c: Likewise.
47276         * lib/unistr/u16-cpy.c: Likewise.
47277         * lib/unistr/u16-endswith.c: Likewise.
47278         * lib/unistr/u16-mblen.c: Likewise.
47279         * lib/unistr/u16-mbsnlen.c: Likewise.
47280         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47281         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47282         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47283         * lib/unistr/u16-mbtouc.c: Likewise.
47284         * lib/unistr/u16-mbtoucr.c: Likewise.
47285         * lib/unistr/u16-move.c: Likewise.
47286         * lib/unistr/u16-next.c: Likewise.
47287         * lib/unistr/u16-prev.c: Likewise.
47288         * lib/unistr/u16-set.c: Likewise.
47289         * lib/unistr/u16-startswith.c: Likewise.
47290         * lib/unistr/u16-stpcpy.c: Likewise.
47291         * lib/unistr/u16-stpncpy.c: Likewise.
47292         * lib/unistr/u16-strcat.c: Likewise.
47293         * lib/unistr/u16-strchr.c: Likewise.
47294         * lib/unistr/u16-strcmp.c: Likewise.
47295         * lib/unistr/u16-strcpy.c: Likewise.
47296         * lib/unistr/u16-strcspn.c: Likewise.
47297         * lib/unistr/u16-strdup.c: Likewise.
47298         * lib/unistr/u16-strlen.c: Likewise.
47299         * lib/unistr/u16-strmblen.c: Likewise.
47300         * lib/unistr/u16-strmbtouc.c: Likewise.
47301         * lib/unistr/u16-strncat.c: Likewise.
47302         * lib/unistr/u16-strncmp.c: Likewise.
47303         * lib/unistr/u16-strncpy.c: Likewise.
47304         * lib/unistr/u16-strnlen.c: Likewise.
47305         * lib/unistr/u16-strpbrk.c: Likewise.
47306         * lib/unistr/u16-strrchr.c: Likewise.
47307         * lib/unistr/u16-strspn.c: Likewise.
47308         * lib/unistr/u16-strstr.c: Likewise.
47309         * lib/unistr/u16-strtok.c: Likewise.
47310         * lib/unistr/u16-to-u32.c: Likewise.
47311         * lib/unistr/u16-to-u8.c: Likewise.
47312         * lib/unistr/u16-uctomb-aux.c: Likewise.
47313         * lib/unistr/u16-uctomb.c: Likewise.
47314         * lib/unistr/u32-check.c: Likewise.
47315         * lib/unistr/u32-chr.c: Likewise.
47316         * lib/unistr/u32-cmp.c: Likewise.
47317         * lib/unistr/u32-cpy-alloc.c: Likewise.
47318         * lib/unistr/u32-cpy.c: Likewise.
47319         * lib/unistr/u32-endswith.c: Likewise.
47320         * lib/unistr/u32-mblen.c: Likewise.
47321         * lib/unistr/u32-mbsnlen.c: Likewise.
47322         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47323         * lib/unistr/u32-mbtouc.c: Likewise.
47324         * lib/unistr/u32-mbtoucr.c: Likewise.
47325         * lib/unistr/u32-move.c: Likewise.
47326         * lib/unistr/u32-next.c: Likewise.
47327         * lib/unistr/u32-prev.c: Likewise.
47328         * lib/unistr/u32-set.c: Likewise.
47329         * lib/unistr/u32-startswith.c: Likewise.
47330         * lib/unistr/u32-stpcpy.c: Likewise.
47331         * lib/unistr/u32-stpncpy.c: Likewise.
47332         * lib/unistr/u32-strcat.c: Likewise.
47333         * lib/unistr/u32-strchr.c: Likewise.
47334         * lib/unistr/u32-strcmp.c: Likewise.
47335         * lib/unistr/u32-strcpy.c: Likewise.
47336         * lib/unistr/u32-strcspn.c: Likewise.
47337         * lib/unistr/u32-strdup.c: Likewise.
47338         * lib/unistr/u32-strlen.c: Likewise.
47339         * lib/unistr/u32-strmblen.c: Likewise.
47340         * lib/unistr/u32-strmbtouc.c: Likewise.
47341         * lib/unistr/u32-strncat.c: Likewise.
47342         * lib/unistr/u32-strncmp.c: Likewise.
47343         * lib/unistr/u32-strncpy.c: Likewise.
47344         * lib/unistr/u32-strnlen.c: Likewise.
47345         * lib/unistr/u32-strpbrk.c: Likewise.
47346         * lib/unistr/u32-strrchr.c: Likewise.
47347         * lib/unistr/u32-strspn.c: Likewise.
47348         * lib/unistr/u32-strstr.c: Likewise.
47349         * lib/unistr/u32-strtok.c: Likewise.
47350         * lib/unistr/u32-to-u16.c: Likewise.
47351         * lib/unistr/u32-to-u8.c: Likewise.
47352         * lib/unistr/u32-uctomb.c: Likewise.
47353         * lib/unistr/u8-check.c: Likewise.
47354         * lib/unistr/u8-chr.c: Likewise.
47355         * lib/unistr/u8-cmp.c: Likewise.
47356         * lib/unistr/u8-cpy-alloc.c: Likewise.
47357         * lib/unistr/u8-cpy.c: Likewise.
47358         * lib/unistr/u8-endswith.c: Likewise.
47359         * lib/unistr/u8-mblen.c: Likewise.
47360         * lib/unistr/u8-mbsnlen.c: Likewise.
47361         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47362         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47363         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47364         * lib/unistr/u8-mbtouc.c: Likewise.
47365         * lib/unistr/u8-mbtoucr.c: Likewise.
47366         * lib/unistr/u8-move.c: Likewise.
47367         * lib/unistr/u8-next.c: Likewise.
47368         * lib/unistr/u8-prev.c: Likewise.
47369         * lib/unistr/u8-set.c: Likewise.
47370         * lib/unistr/u8-startswith.c: Likewise.
47371         * lib/unistr/u8-stpcpy.c: Likewise.
47372         * lib/unistr/u8-stpncpy.c: Likewise.
47373         * lib/unistr/u8-strcat.c: Likewise.
47374         * lib/unistr/u8-strchr.c: Likewise.
47375         * lib/unistr/u8-strcmp.c: Likewise.
47376         * lib/unistr/u8-strcpy.c: Likewise.
47377         * lib/unistr/u8-strcspn.c: Likewise.
47378         * lib/unistr/u8-strdup.c: Likewise.
47379         * lib/unistr/u8-strlen.c: Likewise.
47380         * lib/unistr/u8-strmblen.c: Likewise.
47381         * lib/unistr/u8-strmbtouc.c: Likewise.
47382         * lib/unistr/u8-strncat.c: Likewise.
47383         * lib/unistr/u8-strncmp.c: Likewise.
47384         * lib/unistr/u8-strncpy.c: Likewise.
47385         * lib/unistr/u8-strnlen.c: Likewise.
47386         * lib/unistr/u8-strpbrk.c: Likewise.
47387         * lib/unistr/u8-strrchr.c: Likewise.
47388         * lib/unistr/u8-strspn.c: Likewise.
47389         * lib/unistr/u8-strstr.c: Likewise.
47390         * lib/unistr/u8-strtok.c: Likewise.
47391         * lib/unistr/u8-to-u16.c: Likewise.
47392         * lib/unistr/u8-to-u32.c: Likewise.
47393         * lib/unistr/u8-uctomb-aux.c: Likewise.
47394         * lib/unistr/u8-uctomb.c: Likewise.
47395         * lib/unitypes.h: Likewise.
47396         * lib/uniwidth.h: Likewise.
47397         * lib/uniwidth/cjk.h: Likewise.
47398         * lib/uniwidth/u16-strwidth.c: Likewise.
47399         * lib/uniwidth/u16-width.c: Likewise.
47400         * lib/uniwidth/u32-strwidth.c: Likewise.
47401         * lib/uniwidth/u32-width.c: Likewise.
47402         * lib/uniwidth/u8-strwidth.c: Likewise.
47403         * lib/uniwidth/u8-width.c: Likewise.
47404         * lib/uniwidth/width.c: Likewise.
47405
47406 2007-10-07  Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47409         The file is still under LGPL (see modules/inttypes).
47410
47411 2007-10-06  Bruno Haible  <bruno@clisp.org>
47412
47413         * modules/trunc (Dependencies): Add 'extensions'.
47414         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47415         Reported by Ben Pfaff <blp@gnu.org>.
47416
47417 2007-10-06  Bruno Haible  <bruno@clisp.org>
47418
47419         * modules/freopen-tests: New file.
47420         * tests/test-freopen.c: New file.
47421
47422         * modules/fopen-tests: New file.
47423         * tests/test-fopen.c: New file.
47424
47425         * modules/fopen: New file.
47426         * lib/fopen.c: New file.
47427         * m4/fopen.m4: New file.
47428         * modules/freopen: New file.
47429         * lib/freopen.c: New file.
47430         * m4/freopen.m4: New file.
47431         * lib/stdio.in.h (fopen, freopen): New declarations.
47432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47433         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47434         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47435         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47436         * doc/functions/fopen.texi: Mention the 'fopen' module.
47437         * doc/functions/freopen.texi: Mention the 'freopen' module.
47438
47439 2007-10-06  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/open-tests: New file.
47442         * tests/test-open.c: New file.
47443
47444         * modules/open: New file.
47445         * lib/open.c: New file.
47446         * m4/open.m4: New file.
47447         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47448         lib/open.c does.
47449         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47450         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47451         macros.
47452         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47453         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47454         REPLACE_OPEN.
47455         * doc/functions/open.texi: Mention the 'open' module.
47456
47457 2007-10-04  Bruno Haible  <bruno@clisp.org>
47458
47459         * modules/ceill-tests: New file.
47460         * tests/test-ceill.c: New file.
47461
47462         * modules/ceill: New file.
47463         * lib/ceill.c: Replace entire file.
47464         * m4/ceill.m4: New file.
47465         * lib/math.in.h (ceill): Replace declaration.
47466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47467         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47468         * doc/functions/ceill.texi: Mention the 'ceill' module.
47469         * modules/mathl (Files): Remove lib/ceill.c.
47470         (Depends-on): Add ceill.
47471
47472 2007-10-04  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/ceilf-tests: New file.
47475         * tests/test-ceilf.c: New file.
47476
47477         * modules/ceilf: New file.
47478         * lib/ceil.c: New file.
47479         * lib/ceilf.c: New file.
47480         * m4/ceilf.m4: New file.
47481         * lib/math.in.h (ceilf): New declaration.
47482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47483         HAVE_DECL_CEILF.
47484         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47485         HAVE_DECL_CEILF.
47486         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47487
47488 2007-10-04  Bruno Haible  <bruno@clisp.org>
47489
47490         * modules/floorl-tests: New file.
47491         * tests/test-floorl.c: New file.
47492
47493         * modules/floorl: New file.
47494         * lib/floorl.c: Replace entire file.
47495         * m4/floorl.m4: New file.
47496         * lib/math.in.h (floorl): Replace declaration.
47497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47498         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47499         * doc/functions/floorl.texi: Mention the 'floorl' module.
47500         * modules/mathl (Files): Remove lib/floorl.c.
47501         (Depends-on): Add floorl.
47502
47503 2007-10-04  Bruno Haible  <bruno@clisp.org>
47504
47505         * modules/floorf-tests: New file.
47506         * tests/test-floorf.c: New file.
47507
47508         * modules/floorf: New file.
47509         * lib/floor.c: New file.
47510         * lib/floorf.c: New file.
47511         * m4/floorf.m4: New file.
47512         * lib/math.in.h (floorf): New declaration.
47513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47514         HAVE_DECL_FLOORF.
47515         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47516         HAVE_DECL_FLOORF.
47517         * doc/functions/floorf.texi: Mention the 'floorf' module.
47518
47519 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47520             Bruno Haible  <bruno@clisp.org>
47521
47522         Advertise for the Git server instead of the CVS server.
47523         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47524         repository instead of the CVS one.
47525         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47526         about all VCS systems generically.
47527         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47528
47529 2007-10-04  Bruno Haible  <bruno@clisp.org>
47530
47531         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47532         means.
47533         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47534
47535 2007-10-04  Bruno Haible  <bruno@clisp.org>
47536
47537         * modules/truncl-tests: New file.
47538         * tests/test-truncl.c: New file.
47539
47540         * modules/truncl: New file.
47541         * lib/truncl.c: New file.
47542         * m4/truncl.m4: New file.
47543         * lib/math.in.h (truncl): New declaration.
47544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47545         HAVE_DECL_TRUNCL.
47546         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47547         HAVE_DECL_TRUNCL.
47548         * doc/functions/truncl.texi: Mention the 'truncl' module.
47549
47550 2007-10-04  Bruno Haible  <bruno@clisp.org>
47551
47552         * modules/truncf-tests: New file.
47553         * tests/test-truncf.c: New file.
47554
47555         * modules/truncf: New file.
47556         * lib/trunc.c: Make paramerizable through USE_* macros.
47557         * lib/truncf.c: New file.
47558         * m4/truncf.m4: New file.
47559         * lib/math.in.h (truncf): New declaration.
47560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47561         HAVE_DECL_TRUNCF.
47562         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47563         HAVE_DECL_TRUNCF.
47564         * doc/functions/truncf.texi: Mention the 'truncf' module.
47565
47566 2007-10-03  Bruno Haible  <bruno@clisp.org>
47567
47568         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47569         augmentation also for tests modules.
47570         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47571         * modules/atexit-tests (Makefile.am): Likewise.
47572         * modules/binary-io-tests (Makefile.am): Likewise.
47573         * modules/c-strcase-tests (Makefile.am): Likewise.
47574         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47575         * modules/canonicalize-tests (Makefile.am): Likewise.
47576         * modules/closein-tests (Makefile.am): Likewise.
47577         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47578         * modules/freadahead-tests (Makefile.am): Likewise.
47579         * modules/fseek-tests (Makefile.am): Likewise.
47580         * modules/fseeko-tests (Makefile.am): Likewise.
47581         * modules/ftell-tests (Makefile.am): Likewise.
47582         * modules/ftello-tests (Makefile.am): Likewise.
47583         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47584         * modules/isnanl-tests (Makefile.am): Likewise.
47585         * modules/lseek-tests (Makefile.am): Likewise.
47586         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47587         * modules/mbscasestr-tests (Makefile.am): Likewise.
47588         * modules/mbschr-tests (Makefile.am): Likewise.
47589         * modules/mbscspn-tests (Makefile.am): Likewise.
47590         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47591         * modules/mbspbrk-tests (Makefile.am): Likewise.
47592         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47593         * modules/mbsrchr-tests (Makefile.am): Likewise.
47594         * modules/mbsspn-tests (Makefile.am): Likewise.
47595         * modules/mbsstr-tests (Makefile.am): Likewise.
47596         * modules/printf-posix-tests (Makefile.am): Likewise.
47597         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47598         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47599         * modules/tsearch-tests (Makefile.am): Likewise.
47600         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47601         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47602         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47603         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47604         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47605         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47606         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47607         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47608         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47609         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47610         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47611         * modules/xstrtol-tests (Makefile.am): Likewise.
47612         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47613         * modules/yesno-tests (Makefile.am): Likewise.
47614
47615 2007-10-03  Bruno Haible  <bruno@clisp.org>
47616
47617         * modules/trunc-tests: New file.
47618         * tests/test-trunc.c: New file.
47619
47620         * modules/trunc: New file.
47621         * lib/trunc.c: New file.
47622         * m4/trunc.m4: New file.
47623         * lib/math.in.h (trunc): New declaration.
47624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47625         HAVE_DECL_TRUNC.
47626         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47627         HAVE_DECL_TRUNC.
47628         * doc/functions/trunc.texi: Mention the 'trunc' module.
47629
47630 2007-10-03  Bruno Haible  <bruno@clisp.org>
47631
47632         * tests/test-fpending.c: New file, mostly copied
47633         from coreutils/lib/t-fpending.c.
47634         * modules/fpending-tests: New file.
47635
47636 2007-10-03  Bruno Haible  <bruno@clisp.org>
47637
47638         Port the stdio extensions to QNX (untested).
47639         * lib/fseterr.c (fseterr): Add support for QNX.
47640         * lib/fbufmode.c (fbufmode): Likewise.
47641         * lib/freadable.c (freadable): Likewise.
47642         * lib/fwritable.c (fwritable): Likewise.
47643         * lib/freading.c (freading): Likewise.
47644         * lib/fwriting.c (fwriting): Likewise.
47645         * lib/freadahead.c (freadahed): Likewise.
47646         * lib/fpurge.c (fpurge): Likewise.
47647         * lib/fseeko.c (rpl_fseeko): Likewise.
47648
47649 2007-10-03  Bruno Haible  <bruno@clisp.org>
47650             Jim Meyering  <jim@meyering.net>
47651             Eric Blake  <ebb9@byu.net>
47652
47653         * doc/relocatable.texi: Use @command instead of @program.
47654
47655 2007-10-02  Jim Meyering  <jim@meyering.net>
47656
47657         Perform one more "_.h" -> ".in.h" substitution.
47658         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47659         instead of unistd_.h here, too.
47660
47661 2007-10-01  Bruno Haible  <bruno@clisp.org>
47662
47663         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47664         Needed for the alloca-opt module.
47665
47666 2007-09-30  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47669         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47670         alloca_.h.
47671         * lib/argz.in.h: Renamed from lib/argz_.h.
47672         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47673         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47674         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47675         byteswap_.h.
47676         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47677         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47678         dirent_.h.
47679         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47680         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47681         fcntl_.h.
47682         * lib/float.in.h: Renamed from lib/float_.h.
47683         * modules/float (Files, Makefile.am): Use float.in.h instead of
47684         float_.h.
47685         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47686         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47687         fnmatch_.h.
47688         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47689         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47690         getopt_.h.
47691         * lib/glob.in.h: Renamed from lib/glob_.h.
47692         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47693         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47694         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47695         iconv_.h.
47696         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47697         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47698         inttypes_.h.
47699         * lib/locale.in.h: Renamed from lib/locale_.h.
47700         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47701         locale_.h.
47702         * lib/math.in.h: Renamed from lib/math_.h.
47703         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47704         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47705         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47706         of netinet_in_.h. Add dependency.
47707         * lib/poll.in.h: Renamed from lib/poll_.h.
47708         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47709         * lib/search.in.h: Renamed from lib/search_.h.
47710         * modules/search (Files, Makefile.am): Use search.in.h instead of
47711         search_.h.
47712         * lib/signal.in.h: Renamed from lib/signal_.h.
47713         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47714         _signal.h.
47715         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47716         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47717         stdbool_.h.
47718         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47719         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47720         stdint_.h.
47721         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47722         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47723         stdio_.h.
47724         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47725         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47726         stdlib_.h.
47727         * lib/string.in.h: Renamed from lib/string_.h.
47728         * modules/string (Files, Makefile.am): Use string.in.h instead of
47729         string_.h.
47730         * doc/gnulib-tool.texi (Initial import): Update.
47731         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47732         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47733         of sys_select_.h. Add dependency.
47734         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47735         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47736         of sys_socket_.h.
47737         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47738         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47739         sys_stat_.h.
47740         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47741         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47742         sys_time_.h.
47743         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47744         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47745         sysexits_.h.
47746         * lib/time.in.h: Renamed from lib/time_.h.
47747         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47748         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47749         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47750         unistd_.h.
47751         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47752         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47753         wchar_.h.
47754         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47755         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47756         wctype_.h.
47757         * build-aux/bootstrap (slurp): Update.
47758         * lib/.cppi-disable: Update.
47759
47760 2007-09-30  Bruno Haible  <bruno@clisp.org>
47761
47762         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47763         Needed on BeOS.
47764
47765 2007-09-30  Bruno Haible  <bruno@clisp.org>
47766
47767         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47768
47769 2007-09-29  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47772
47773 2007-09-29  Bruno Haible  <bruno@clisp.org>
47774
47775         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47776         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47777         * build-aux/install-reloc: Compile also areadlink.c.
47778         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47779
47780 2007-09-29  Bruno Haible  <bruno@clisp.org>
47781
47782         * gnulib-tool (func_emit_initmacro_done): Indentation.
47783
47784 2007-09-29  Bruno Haible  <bruno@clisp.org>
47785
47786         * README: Add CVS checkout update instructions.
47787         Info from Bob Proulx <bob@proulx.com>.
47788
47789 2007-09-28  Eric Blake  <ebb9@byu.net>
47790
47791         Provide move-if-change.
47792         * build-aux/move-if-change: New file, based on best practice
47793         rather than any canonical upstream location.
47794
47795 2007-09-28  Jim Meyering  <jim@meyering.net>
47796
47797         Fix canonicalize loop-detection corner case.
47798         Do not attempt to stat the symlink values stored via seen_triple.
47799         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47800         on linux-2.6.18, (but not 2.6.22).
47801         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47802         triple_compare.  The former compares dev,ino,filename, while the latter
47803         would actually stat dirname(filename) when dev and ino were equal.
47804         * lib/hash-triple.c: Install <string.h>.
47805         (STREQ): Define.
47806         (triple_compare_ino_str): New function.
47807         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47808
47809 2007-09-28  Eric Blake  <ebb9@byu.net>
47810
47811         Enforce that AC_REPLACE_FUNCS files exist.
47812         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47813         override check for typos.
47814
47815         Fix test-closein on Solaris 10.
47816         * tests/test-closein.c (main): Don't assume stdin can be inherited
47817         closed on all systems.
47818         * tests/test-closein.sh: Likewise.
47819         Reported by Piotr Tarnowski.
47820
47821 2007-09-28  Jim Meyering  <jim@meyering.net>
47822
47823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47824
47825 2007-09-27  Jim Meyering  <jim@meyering.net>
47826
47827         canonicalize: Avoid a false-positive cycle failure.
47828         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47829         Sort.  Remove cycle-check.
47830         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47831         not cycle-check.h.
47832         (seen_triple): New function.
47833         (canonicalize_filename_mode): Use it instead of cycle-check.
47834         * tests/test-canonicalize.c: Add a test for this bug.
47835         * tests/test-canonicalize.sh: Set up and run the test.
47836
47837         New module, file-set, from coreutils.
47838         * modules/file-set: Define it.
47839         * lib/file-set.c, lib/file-set.h: Implement.
47840
47841         New module, hash-triple, from coreutils.
47842         * modules/hash-triple: Define it.
47843         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47844
47845 2007-09-25  Eric Blake  <ebb9@byu.net>
47846
47847         Fix strerror on Interix.
47848         * lib/string_.h (strerror): Declare replacement.
47849         * doc/functions/strerror.texi (strerror): Document the Interix
47850         shortcoming.
47851         * modules/string (Makefile.am): Support new hooks.
47852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47853         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47854         gl_FUNC_STRERROR_SEPARATE.
47855         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47856         * lib/strerror.c (rpl_strerror): Provide replacement.
47857         * modules/strerror (Depends-on): Add string.
47858         (configure.ac): Detect use of module.
47859         * tests/test-strerror.c: New file.
47860         * modules/strerror-tests: New test module.
47861         * modules/argp (Depends-on): Add strerror.
47862         * modules/error (Depends-on): Likewise.
47863         Reported by Martin Koeppe.
47864
47865 2007-09-24  Bruno Haible  <bruno@clisp.org>
47866
47867         * README: Update git instructions.
47868
47869 2007-09-24  Eric Blake  <ebb9@byu.net>
47870
47871         Revert fpending breakage from 2007-09-08.
47872         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47873         __fpending.c.
47874
47875 2007-09-24  Jim Meyering  <jim@meyering.net>
47876
47877         filenamecat.c: Add a test.
47878         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47879         showing how the function works when DIR is the empty string.
47880
47881 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47882
47883         * tests/test-canonicalize.sh: Turn on executable bit.
47884
47885 2007-09-19  Eric Blake  <ebb9@byu.net>
47886
47887         * README: Update CVS instructions.
47888
47889 2007-09-18  Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/areadlink: New file.
47892         * lib/areadlink.h (areadlink): New declaration.
47893         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47894
47895 2007-09-17  Jim Meyering  <jim@meyering.net>
47896
47897         * lib/savewd.c (ESTALE) [!defined]: Define.
47898         Reported to be required on Interix by Martin Koeppe.
47899
47900 2007-09-17  Bruno Haible  <bruno@clisp.org>
47901
47902         * gnulib-tool (func_version): Use $version.
47903
47904 2007-09-16  Bruno Haible  <bruno@clisp.org>
47905
47906         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47907         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47908         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47909         Reported by Greg Schafer <gschafer@zip.com.au>.
47910
47911 2007-09-15  Bruno Haible  <bruno@clisp.org>
47912
47913         * gnulib-tool (sed): Try a little harder to make bash understand the
47914         alias.
47915         Reported by Bruce Korb <bruce.korb@gmail.com>.
47916
47917 2007-09-13  Eric Blake  <ebb9@byu.net>
47918
47919         * ChangeLog: Remove conflict markers.
47920
47921 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47922
47923         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47924         Reported by Bruno Haible <bruno@clisp.org>.
47925
47926 2007-09-12  Bruno Haible  <bruno@clisp.org>
47927
47928         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47929         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47930         is not defined.
47931
47932 2007-09-12  Eric Blake  <ebb9@byu.net>
47933
47934         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47936         Autoconf definition.
47937         * modules/euidaccess (Depends-on): Add extensions, for
47938         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47939         * modules/fnmatch (Depends-on): Likewise.
47940         * modules/getaddrinfo (Depends-on): Likewise.
47941         * modules/getdelim (Depends-on): Likewise.
47942         * modules/getline (Depends-on): Likewise.
47943         * modules/getsubopt (Depends-on): Likewise.
47944         * modules/gettext (Depends-on): Likewise.
47945         * modules/group-member (Depends-on): Likewise.
47946         * modules/mbchar (Depends-on): Likewise.
47947         * modules/memmem (Depends-on): Likewise.
47948         * modules/mempcpy (Depends-on): Likewise.
47949         * modules/memrchr (Depends-on): Likewise.
47950         * modules/pagealign_alloc (Depends-on): Likewise.
47951         * modules/readutmp (Depends-on): Likewise.
47952         * modules/stpcpy (Depends-on): Likewise.
47953         * modules/stpncpy (Depends-on): Likewise.
47954         * modules/strchrnul (Depends-on): Likewise.
47955         * modules/strndup (Depends-on): Likewise.
47956         * modules/strsep (Depends-on): Likewise.
47957         * modules/strverscmp (Depends-on): Likewise.
47958         * modules/vasprintf (Depends-on): Likewise.
47959         * modules/wcwidth (Depends-on): Likewise.
47960         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47961         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47962         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47964         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47965         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47966         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47967         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47968         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47969         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47971         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47972         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47973         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47974         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47975         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47976         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47977         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47978         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47979         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47980         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47981         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47982         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47983         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47984         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47986         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47987         so that lock.m4 can be used in gettext without extensions module.
47988
47989 2007-09-11  Bruno Haible  <bruno@clisp.org>
47990
47991         * m4/isc-posix.m4: Remove file.
47992         Suggested by Eric Blake.
47993
47994 2007-09-11  Eric Blake  <ebb9@byu.net>
47995
47996         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47997
47998 2007-09-10  Bruno Haible  <bruno@clisp.org>
47999
48000         * posix-modules: Fix typo in error message.
48001         Reported by Matt <mkraai@beckman.com>.
48002
48003 2007-09-09  Bruno Haible  <bruno@clisp.org>
48004
48005         * doc/functions/getdelim.texi: Update list of platforms lacking the
48006         function.
48007         * doc/functions/getline.texi: Likewise.
48008
48009 2007-09-09  Jim Meyering  <jim@meyering.net>
48010
48011         * lib/hash.c (hash_initialize): Detect calloc failure.
48012         Reported by Bruno Haible.
48013
48014 2007-09-09  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48017         malloc or realloc fails.
48018
48019 2007-09-09  Bruno Haible  <bruno@clisp.org>
48020
48021         * modules/getcwd (Depends-on): Add malloc-posix.
48022         * modules/glob (Depends-on): Likewise.
48023         * modules/putenv (Depends-on): Likewise.
48024         * modules/strdup (Depends-on): Likewise.
48025         * modules/getdelim (Depends-on): Add realloc-posix.
48026         * modules/read-file (Depends-on): Likewise.
48027
48028 2007-09-09  Bruno Haible  <bruno@clisp.org>
48029
48030         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48031         (gl_FUNC_MALLOC_POSIX): Require it.
48032         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48033         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48034         * modules/realloc (Files): Add m4/malloc.m4.
48035         * modules/calloc (Files): Likewise.
48036
48037 2007-09-09  Bruno Haible  <bruno@clisp.org>
48038
48039         * modules/malloc-posix: New file.
48040         * modules/malloc (Depends-on): Add malloc-posix.
48041         * lib/malloc.c: Include errno.h.
48042         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48043         and a POSIX-compatible malloc into a single function. Set ENOMEM
48044         when returning NULL.
48045         * m4/malloc.m4: New file.
48046         * doc/functions/malloc.texi: Mention the malloc-posix module.
48047         * lib/stdlib_.h (malloc): New declaration.
48048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48049         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48050         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48051         and HAVE_MALLOC_POSIX.
48052
48053 2007-09-09  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/realloc-posix: New file.
48056         * modules/realloc (Depends-on): Add realloc-posix.
48057         * lib/realloc.c: Include errno.h.
48058         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48059         and a POSIX-compatible realloc into a single function. Set ENOMEM
48060         when returning NULL.
48061         * m4/realloc.m4: New file.
48062         * doc/functions/realloc.texi: Mention the realloc-posix module.
48063         * lib/stdlib_.h (realloc): New declaration.
48064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48065         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48066         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48067         and HAVE_REALLOC_POSIX.
48068
48069 2007-09-09  Bruno Haible  <bruno@clisp.org>
48070
48071         * modules/calloc-posix: New file.
48072         * modules/calloc (Depends-on): Add calloc-posix.
48073         * lib/calloc.c: Include errno.h.
48074         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48075         and a POSIX-compatible calloc into a single function. Set ENOMEM
48076         when returning NULL.
48077         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48078         * doc/functions/calloc.texi: Mention the calloc-posix module.
48079         * lib/stdlib_.h (calloc): New declaration.
48080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48081         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48082         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48083         and HAVE_CALLOC_POSIX.
48084
48085 2007-09-09  Bruno Haible  <bruno@clisp.org>
48086
48087         Allow for modules to show an arbitrary notice.
48088         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48089         * gnulib-tool: New option --extract-notice.
48090         (func_usage): Document it.
48091         (sed_extract_prog): Update.
48092         (func_get_notice): New function.
48093         (func_modules_notice): New function.
48094         (func_import, func_create_testdir): Invoke it.
48095         Suggested by Jim Meyering.
48096
48097 2007-09-09  Bruno Haible  <bruno@clisp.org>
48098
48099         * gnulib-tool: New options --verbose, --quiet.
48100         (func_usage): Document them.
48101         (verbose): New variable.
48102         (func_execute_command): New function.
48103         (func_import): Don't show the module list and the file list if
48104         $verbose < 0.
48105         (func_create_testdir): Likewise. Use func_execute_command.
48106         (func_create_megatestdir): Use func_execute_command.
48107
48108 2007-09-08  Bruno Haible  <bruno@clisp.org>
48109
48110         * gnulib-tool (func_import): Prefer rsync over wget when available,
48111         for fetching the PO files.
48112
48113 2007-09-08  Bruno Haible  <bruno@clisp.org>
48114
48115         * posix-modules: New file. Portions copied from gnulib-tool.
48116         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48117
48118 2007-09-08  Jim Meyering  <jim@meyering.net>
48119
48120         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48121         * lib/fpending.h: Rename from __fpending.h.
48122         * lib/fpending.c: Rename from __fpending.c.
48123         Include "fpending.h", not "__fpending.h".
48124         * lib/__fpending.h, lib/__fpending.c: Remove files.
48125         * modules/fpending (Files): Reflect new file names.
48126         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48127
48128 2007-09-08  Bruno Haible  <bruno@clisp.org>
48129
48130         * m4/inttypes-h.m4: Remove stub file.
48131
48132 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48133
48134         * doc/headers/stdint.texi: Discuss #include_next issue.
48135
48136 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48137
48138         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48139
48140 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48141
48142         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48143         in variable name.
48144
48145 2007-09-03  Jim Meyering  <jim@meyering.net>
48146
48147         New module: git-version-gen.
48148         * modules/git-version-gen: New file.
48149
48150         Import changes from coreutils for bootstrap script.
48151
48152         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48153
48154         bootstrap: uses rsync to download the .po files
48155         * build-aux/bootstrap (po_download_command_format): New global.
48156         (download_po_files): Use rsync.
48157         (update_po_files): Don't remove .po files after download,
48158         so future rsync runs can take advantage of the copies.
48159
48160         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48161
48162         Solve the unnecessary-.po-file-regeneration problem once and for all.
48163         * build-aux/bootstrap (download_po_files): New function, renamed from
48164         get_translations.  Now, downloads, but doesn't update LINGUAS.
48165         (update_po_files): New function.
48166
48167         bootstrap: Ignore more.
48168         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48169         uniwidth to e.g., lib/.gitignore.
48170         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48171
48172         * build-aux/bootstrap: New setting: vc_ignore.
48173         (insert_sorted_if_absent): Create $file if absent.
48174         Adapt to new, possibly empty, list: $vc_ignore.
48175
48176         bootstrap: generate more ignorable names
48177         * build-aux/bootstrap (slurp): When generating ignorable names,
48178         also map .sin to .sed, .gperf to .c, and .y to .c.
48179
48180 2007-09-03  Jim Meyering  <jim@meyering.net>
48181
48182         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48183         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48184
48185 2007-09-02  Bruno Haible  <bruno@clisp.org>
48186
48187         Fix mis-recognition of 'mcs' on QNX 6.
48188         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48189         output contains the string "Mono".
48190         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48191         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48192
48193 2007-09-01  Bruno Haible  <bruno@clisp.org>
48194
48195         Fix collision between uniwidth/* and linebreak modules.
48196         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48197         u32_width): Remove declarations.
48198         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48199         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48200         streq3, streq2, streq1, streq0): Remove functions.
48201         (STREQ): Remove macro.
48202         (is_cjk_encoding): Remove function.
48203         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48204         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48205         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48206         * NEWS: Document the change.
48207
48208 2007-09-01  Bruno Haible  <bruno@clisp.org>
48209
48210         * lib/streq.h: Add double-inclusion guard.
48211
48212 2007-09-01  Karl Berry  <karl@gnu.org>
48213
48214         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48215
48216 2007-08-28  Jim Meyering  <jim@meyering.net>
48217
48218         Rename mreadlink_with_size to areadlink_with_size.
48219         * NEWS: Document the change.
48220         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48221         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48222         * lib/mreadlink.h: Rename this to...
48223         * lib/areadlink.h: ...this.
48224         * modules/mreadlink-with-size: Rename this to...
48225         * modules/areadlink-with-size: ...this.
48226         * lib/canonicalize.c: Reflect the renaming.
48227         * modules/canonicalize: Likewise.
48228
48229 2007-08-26  Bruno Haible  <bruno@clisp.org>
48230
48231         * gnulib-tool (func_import): When deciding which files to remove,
48232         consider also dangling symbolic links.
48233         Reported by Eric Blake.
48234
48235 2007-08-26  Bruno Haible  <bruno@clisp.org>
48236
48237         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48238
48239 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48240
48241         * lib/readline.c: Don't include getline.h, the prototype is now
48242         found in stdio.h.
48243
48244 2007-08-23  Jim Meyering  <jim@meyering.net>
48245
48246         Getdelim touchup.
48247         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48248         around the funlockfile call, since funlockfile never sets errno.
48249         Don't set errno upon failed realloc.
48250
48251 2007-08-22  Eric Blake  <ebb9@byu.net>
48252
48253         Getline touchups.
48254         * lib/getdelim.c (getdelim): Revert regression that required *n to
48255         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48256         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48257         getdelim, rather than whether implementation is missing.
48258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48259         * lib/stdio_.h (getline): Also declare if replacement is
48260         required.
48261         * doc/functions/getdelim.texi: New file.
48262         * doc/functions/getline.texi: Likewise.
48263         * doc/gnulib.texi (Function Substitutes): Add new files.
48264         Reported by Bruno Haible.
48265
48266 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48267
48268         * users.txt: Add Guile.
48269
48270 2007-08-22  Eric Blake  <ebb9@byu.net>
48271
48272         * tests/test-getdelim.c (main): Use remove, not unlink.
48273         * tests/test-getline.c (main): Likewise.
48274
48275         Move getline and getdelim into stdio.h, per POSIX 200x.
48276         * modules/getline (Files): Remove getline.h.
48277         (Depends-on): Add stdio.
48278         (configure.ac): Add module indicator.
48279         * modules/getdelim (Files): Remove getdelim.h.
48280         (Depends-on): Add stdio.
48281         (configure.ac): Add module indicator.
48282         * modules/stdio (Makefile.am): Work with new indicators.
48283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48286         * lib/getdelim.h: Delete.
48287         * lib/getline.h: Delete.
48288         * lib/stdio_.h (getdelim, getline): Declare.
48289         * modules/getdelim-tests: New module.
48290         * modules/getline-tests: Likewise.
48291         * tests/test-getdelim.c: New file.
48292         * tests/test-getline.c: Likewise.
48293         * NEWS: Document the change.
48294         * lib/getline.c: Update choice of header.
48295         * lib/csharpcomp.c: Likewise.
48296         * lib/getpass.c: Likewise.
48297         * lib/javacomp.c: Likewise.
48298         * lib/javaversion.c: Likewise.
48299         * lib/yesno.c: Likewise.
48300         * lib/getdelim.c: Likewise.
48301         (getdelim): Set errno on failure, and avoid memory leak.
48302
48303 2007-08-19  Bruno Haible  <bruno@clisp.org>
48304
48305         * modules/closein (Depends-on): Add freadahead.
48306         * lib/closein.c: Include freadahead.h.
48307         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48308         is zero.
48309
48310 2007-08-19  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/freadahead-tests: New file.
48313         * tests/test-freadahead.sh: New file.
48314         * tests/test-freadahead.c: New file.
48315
48316         * modules/freadahead: New file.
48317         * lib/freadahead.h: New file.
48318         * lib/freadahead.c: New file.
48319         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48320         fbufmode, fpurge, freadable, fwritable.
48321
48322 2007-08-19  Eric Blake  <ebb9@byu.net>
48323
48324         Test yesno in combination with closein.
48325         * lib/yesno.c (yesno): Document use of stdin.
48326         * modules/yesno-tests (Files): New module.
48327         * tests/test-yesno.c (main): New file.
48328         * tests/test-yesno.sh: Likewise.
48329
48330 2007-08-19  Bruno Haible  <bruno@clisp.org>
48331
48332         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48333         * lib/fseeko.c (rpl_fseeko): Likewise.
48334         * lib/fseterr.c (fseterr): Likewise.
48335
48336 2007-08-19  Bruno Haible  <bruno@clisp.org>
48337
48338         * tests/test-lseek.c (main): Disable a test for BeOS.
48339         * doc/functions/lseek.texi: Document the BeOS bug.
48340
48341 2007-08-19  Bruno Haible  <bruno@clisp.org>
48342             Eric Blake  <ebb9@byu.net>
48343
48344         * lib/lseek.c: Include <sys/stat.h>.
48345         (rpl_lseek): Add workaround code also for Unix platforms.
48346         Needed for BeOS.
48347         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48348         * doc/functions/lseek.texi: Document BeOS definiency.
48349
48350 2007-08-18  Bruno Haible  <bruno@clisp.org>
48351
48352         * modules/fstrcmp-tests: New file.
48353         * tests/test-fstrcmp.c: New file.
48354
48355 2007-08-18  Bruno Haible  <bruno@clisp.org>
48356
48357         * modules/fstrcmp: New file, from GNU gettext with modifications.
48358         * lib/fstrcmp.h: New file, from GNU gettext.
48359         * lib/fstrcmp.c: New file, from GNU gettext.
48360         * MODULES.html.sh (String handling): Add fstrcmp.
48361
48362 2007-08-18  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48365         'bool'.
48366         (diag, compareseq): Remove const from the ctxt argument.
48367         (USE_HEURISTIC): Undefine at the end.
48368
48369 2007-08-18  Jim Meyering  <jim@meyering.net>
48370
48371         New file: lib/idcache.h
48372         * NEWS: Mention the addition.
48373         * modules/idcache (Files): Add lib/idcache.h
48374         * lib/idcache.c: Include "idcache.h".
48375         Don't include <sys/types.h>.
48376         Add a FIXME comment.
48377         Move file-scoped "static" declarations to the top.
48378         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48379
48380 2007-08-17  Bruno Haible  <bruno@clisp.org>
48381         and Paul Eggert  <eggert@cs.ucla.edu>
48382
48383         * MODULES.html.sh: Add diffseq.
48384         * modules/diffseq: New file.
48385         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48386         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48387
48388 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48389
48390         Import changes from coreutils for bootstrap script.
48391
48392         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * build-aux/bootstrap (slurp): Work even in environments where
48395         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48396         current code does not slurp files whose names start with ".", and
48397         this looks like it might be a troublesome area.
48398
48399         2007-07-11  Jim Meyering  <jim@meyering.net>
48400
48401         If there's a GPL vN copyright comment, require that N == 3.
48402
48403         2007-07-08  Jim Meyering  <jim@meyering.net>
48404
48405         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48406         * build-aux/bootstrap (mam_template): Move definition out of loop.
48407
48408         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48409
48410         * build-aux/bootstrap (symlink_to_dir): Rename function from
48411         symlink_to_gnulib.  Add a directory parameter.  Update all
48412         callers.
48413         (cp_mark_as_generated): Also check for -- and link to -- files in
48414         gl/.
48415
48416         2007-07-08  Jim Meyering  <jim@meyering.net>
48417
48418         Adapt to deeper hierarchy in gnulib.
48419         * build-aux/bootstrap (symlink_to_dir): If the destination
48420         directory doesn't exist, create it. This is required at least for
48421         "lib/uniwidth/cjk.h".
48422
48423         2007-05-15  Jim Meyering  <jim@meyering.net>
48424
48425         * build-aux/bootstrap: Now that generated Makefile.am files
48426         are no longer under version control, they must be created at
48427         bootstrap time.
48428
48429 2007-08-14  Ben Pfaff  <blp@gnu.org>
48430
48431         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48432
48433 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48436         given the changes below.
48437         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48438         even on hosts that have padding bits beyond the supported 64.
48439
48440 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48443         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48444         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48445         depends on it.
48446         (xstrtol_error): Remove.
48447         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48448         but with a different signature.
48449         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48450         * lib/xstrtol-error.c: Include exitfail.h.
48451         (xstrtol_fatal): New function, with a different signature from the
48452         old xstrtol_error, so that the caller need not worry about passing
48453         in an exit status, or about storage management of the option argument.
48454         (xstrtol_error): Now a static function.  Redo signature to
48455         implement xstrtol_fatal.  Output the correct number of hyphens in
48456         front of the option so that the caller need not worry about
48457         storage management.
48458         (N_): New macro.
48459         (_): Remove; not used now.
48460         * modules/xstrtol: Depend on getopt.
48461         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48462         of old STRTOL_FATAL_ERROR macro.
48463         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48464         of test program.
48465         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48466         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48467
48468 2007-08-08  Eric Blake  <ebb9@byu.net>
48469
48470         * lib/xstrtol-error.c: Add missing include.
48471
48472         Move xstrtol messages into gnulib domain, when --pobase is used.
48473         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48474         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48475         * modules/xstrtol (Files): Distribute new file.
48476         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48477         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48478         * tests/test-xstrtol.c: ...into new file.
48479         * tests/test-xstrtoul.c: Also test xstrtoul.
48480         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48481         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48482         * tests/test-xstrtol.sh: Drive the tests.
48483         * tests/test-xstrtoimax.sh: Likewise.
48484         * tests/test-xstrtoumax.sh: Likewise.
48485         * modules/xstrtol-tests: New module.
48486         * modules/xstrtoimax-tests: Likewise.
48487         * modules/xstrtoumax-tests: Likewise.
48488
48489 2007-08-08  Jim Meyering  <jim@meyering.net>
48490
48491         New function: mfile_name_concat.
48492         * lib/filenamecat.c (mfile_name_concat): New function, just like
48493         file_name_concat, but return NULL upon failure rather than exiting
48494         with a diagnostic.
48495         * lib/filenamecat.h: Declare it.
48496
48497 2007-08-07  Bruno Haible  <bruno@clisp.org>
48498
48499         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48500         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48501         warning from gcc.
48502         Reported by Eric Blake.
48503
48504 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48505
48506         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48507         * modules/crypto/arcfour (License): Likewise.
48508         * modules/crypto/des-tests (License): Likewise.
48509         * modules/crypto/gc-arctwo-tests (License): Likewise.
48510         * modules/crypto/gc-des-tests (License): Likewise.
48511         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48512         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48513         * modules/crypto/gc-md2-tests (License): Likewise.
48514         * modules/crypto/gc-md4-tests (License): Likewise.
48515         * modules/crypto/gc-md5-tests (License): Likewise.
48516         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48517         * modules/crypto/gc-rijndael-tests (License): Likewise.
48518         * modules/crypto/gc-sha1-tests (License): Likewise.
48519         * modules/crypto/gc-tests (License): Likewise.
48520         * modules/crypto/hmac-md5 (License): Likewise.
48521         * modules/crypto/hmac-sha1 (License): Likewise.
48522         * modules/crypto/md2-tests (License): Likewise.
48523         * modules/crypto/md4-tests (License): Likewise.
48524         * modules/crypto/md5 (License): Likewise.
48525         * modules/crypto/rijndael (License): Likewise.
48526         * modules/crypto/sha1 (License): Likewise.
48527         * modules/memxor (License): Likewise.
48528
48529 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48530         and Bruno Haible  <bruno@clisp.org>
48531
48532         * NEWS: Describe interface changes to human, xstrtol.
48533         * lib/human.h: Include <xstrtol.h>.
48534         (human_options): Return enum strtol_error, not int.  Remove
48535         bool arg; take int * instead.
48536         * lib/human.c: Don't include "gettext.h".
48537         (_): Remove; no longer used.
48538         Don't include <xstrtol.h>, since human.h does it.
48539         (human_options): Adjust to abovementioned interface changes.
48540         Do not report error to stderr; that's now the caller's
48541         responsibility.
48542         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48543         interface change.
48544         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48545         Str, Argument_type_string.  All uses changed.  Put " argument"
48546         in diagnostics to make them clearer.  Change wording of suffix
48547         message for clarity.
48548         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48549         Argument_type_string.
48550         (STRTOL_FATAL_WARN): Remove; no longer used.
48551         * modules/human (Depends-on): Remove gettext-h.
48552
48553 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48554
48555         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48556
48557 2007-07-31  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48560         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48561         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48562
48563 2007-07-31  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48566         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48567
48568 2007-07-30  Bruno Haible  <bruno@clisp.org>
48569
48570         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48571         * modules/c-ctype (License): Likewise.
48572         * modules/c-strcase (License): Likewise.
48573         * modules/check-version (License): Likewise.
48574         * modules/iconv (License): Likewise.
48575         * modules/iconv_open (License): Likewise.
48576         * modules/read-file (License): Likewise.
48577         * modules/striconv (License): Likewise.
48578         * modules/strverscmp (License): Likewise.
48579         * modules/vasprintf (License): Likewise.
48580         * modules/crypto/des (License): Likewise.
48581         * modules/crypto/gc (License): Likewise.
48582         * modules/crypto/gc-arcfour (License): Likewise.
48583         * modules/crypto/gc-arctwo (License): Likewise.
48584         * modules/crypto/gc-des (License): Likewise.
48585         * modules/crypto/gc-hmac-md5 (License): Likewise.
48586         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48587         * modules/crypto/gc-md2 (License): Likewise.
48588         * modules/crypto/gc-md4 (License): Likewise.
48589         * modules/crypto/gc-md5 (License): Likewise.
48590         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48591         * modules/crypto/gc-random (License): Likewise.
48592         * modules/crypto/gc-rijndael (License): Likewise.
48593         * modules/crypto/gc-sha1 (License): Likewise.
48594         * modules/crypto/md2 (License): Likewise.
48595         * modules/crypto/md4 (License): Likewise.
48596
48597 2007-07-30  Jim Meyering  <jim@meyering.net>
48598
48599         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48600         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48601         it has valid stat data.  This bug would cause du not to count the
48602         sizes of inaccessible directories.
48603         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48604         in <http://bugzilla.redhat.com/250077>.
48605
48606 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48607             Bruno Haible  <bruno@clisp.org>
48608
48609         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48610         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48611         #include_next, gives a diagnostic about it, but reports no error in
48612         the exit code.
48613         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48614
48615 2007-07-24  Ben Pfaff  <blp@gnu.org>
48616
48617         Improve name: "count-one-bits" is better than "popcount".
48618         * MODULES.html.sh: Update name.
48619         * lib/popcount.h: Renamed lib/count-one-bits.h.
48620         (popcount): Renamed count_one_bits.
48621         (popcountl): Renamed count_one_bits_l.
48622         (popcountll): Renamed count_one_bits_ll.
48623         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48624         * modules/popcount: Renamed module/count-one-bits.
48625         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48626         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48627
48628 2007-07-23  Ben Pfaff  <blp@gnu.org>
48629
48630         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48631         better code generation, and add U to large constants to avoid
48632         warnings, in non-GCC case.
48633         Suggested by Bruno Haible.
48634
48635 2007-07-23  Ben Pfaff  <blp@gnu.org>
48636
48637         * lib/popcount.h: Use verify_true instead of if...abort.
48638         * modules/popcount: Depend on verify module.
48639         Suggested by Jim Meyering.
48640
48641 2007-07-23  Bruno Haible  <bruno@clisp.org>
48642
48643         * gnulib-tool (func_import): Create a .cvsignore file also when the
48644         directory is not yet in CVS but the toplevel directory is. When
48645         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48646         Reported by Karl Berry.
48647
48648 2007-07-22  Ben Pfaff  <blp@gnu.org>
48649
48650         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48651         case.
48652         Suggested by Eric Blake.
48653
48654 2007-07-22  Ben Pfaff  <blp@gnu.org>
48655
48656         New module: popcount.
48657         * MODULES.html.sh: Add popcount.
48658         * modules/popcount: New file.
48659         * modules/popcount-tests: New file.
48660         * tests/test-popcount.c: New file.
48661         * lib/popcount.h: New file.
48662         * m4/popcount.m4: New file.
48663
48664 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48665
48666         * build-aux/announce-gen: Update to GPLv3.
48667
48668         * build-aux/config.guess: Update from config.
48669
48670 2007-07-21  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48673         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48674
48675 2007-07-20  Jim Meyering  <jim@meyering.net>
48676
48677         * check-module: Diagnose a self-dependency.
48678
48679 2007-07-19  Bruno Haible  <bruno@clisp.org>
48680
48681         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48682         empty.
48683         Reported by Eric Blake.
48684
48685 2007-07-18  Bruno Haible  <bruno@clisp.org>
48686
48687         * gnulib-tool: New options --po-base, --po-domain.
48688         (func_usage): Document them.
48689         (pobase, po_domain): New variables.
48690         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48691         DEFAULT_TEXT_DOMAIN.
48692         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48693         (func_import): Consider pobase and po_domain. Create a po/ directory.
48694         (func_create_testdir): Set pobase and po_domain to empty.
48695         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48696         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48697
48698 2007-07-18  Bruno Haible  <bruno@clisp.org>
48699
48700         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48701         EXTRA_DIST augmentation for files in build-aux/.
48702
48703 2007-07-16  Bruno Haible  <bruno@clisp.org>
48704
48705         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48706         * modules/getdelim (License): Likewise.
48707
48708 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48709
48710         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48711         * modules/d-type (License): Likewise.
48712         * modules/extensions (License): Likewise.
48713         * modules/fnmatch (License): Likewise.
48714         * modules/fseeko (License): Likewise.
48715         * modules/getaddrinfo (License): Likewise.
48716         * modules/getline (License): Likewise.
48717         * modules/getlogin_r (License): Likewise.
48718         * modules/getpass (License): Likewise.
48719         * modules/gettimeofday (License): Likewise.
48720         * modules/glob (License): Likewise.
48721         * modules/inet_ntop (License): Likewise.
48722         * modules/malloc (License): Likewise.
48723         * modules/malloca (License): Likewise.
48724         * modules/memmem (License): Likewise.
48725         * modules/mempcpy (License): Likewise.
48726         * modules/memset (License): Likewise.
48727         * modules/minmax (License): Likewise.
48728         * modules/mktime (License): Likewise.
48729         * modules/netinet_in (License): Likewise.
48730         * modules/pathmax (License): Likewise.
48731         * modules/poll (License): Likewise.
48732         * modules/regex (License): Likewise.
48733         * modules/snprintf (License): Likewise.
48734         * modules/stdbool (License): Likewise.
48735         * modules/stdint (License): Likewise.
48736         * modules/stdio (License): Likewise.
48737         * modules/strcase (License): Likewise.
48738         * modules/strcasestr (License): Likewise.
48739         * modules/strdup (License): Likewise.
48740         * modules/string (License): Likewise.
48741         * modules/strndup (License): Likewise.
48742         * modules/strnlen (License): Likewise.
48743         * modules/strpbrk (License): Likewise.
48744         * modules/strptime (License): Likewise.
48745         * modules/strsep (License): Likewise.
48746         * modules/sys_select (License): Likewise.
48747         * modules/sys_socket (License): Likewise.
48748         * modules/sys_stat (License): Likewise.
48749         * modules/sys_time (License): Likewise.
48750         * modules/time (License): Likewise.
48751         * modules/time_r (License): Likewise.
48752         * modules/timegm (License): Likewise.
48753         * modules/unistd (License): Likewise.
48754         * modules/vsnprintf (License): Likewise.
48755         * modules/wctype (License): Likewise.
48756
48757 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48758
48759         * modules/argz (License): LGPLv2+.
48760
48761 2007-07-15  Karl Berry  <karl@gnu.org>
48762
48763         * doc/gnulib.texi: revise node structure per new fdl.texi.
48764
48765 2007-07-14  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48768         the output file.
48769         * lib/uniname/uninames.h: Regenerated.
48770
48771 2007-07-14  Karl Berry  <karl@gnu.org>
48772
48773         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48774         omitting sectioning and index commands.
48775
48776 2007-07-13  Bruno Haible  <bruno@clisp.org>
48777
48778         New gnulib-tool option --more-symlinks.
48779         * gnulib-tool (func_usage): Document --more-symlinks.
48780         (do_copyrights): New variable.
48781         Recognize option --more-symlinks.
48782         (func_import): Don't add a copyright notice transform to
48783         sed_transform_lib_file if do_copyrights is empty.
48784
48785 2007-07-13  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/vasnprintf.c (decimal_point_char): Define also if
48788         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48789         && !NEED_PRINTF_DIRECTIVE_A.
48790         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48791         Gary V. Vaughan <gary@gnu.org>.
48792
48793 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * lib/inttypes_.h: Undo previous change, since it was fixed
48796         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48797
48798 2007-07-13  Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48801         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48802
48803 2007-07-13  Jim Meyering  <jim@meyering.net>
48804
48805         df: Don't fail for Tru64's "file-on-file mount".
48806         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48807         so we fall through and use statfs instead.  Details here:
48808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48809         Reported by Albert Chin.
48810
48811 2007-07-13  Bruno Haible  <bruno@clisp.org>
48812
48813         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48814         * modules/configmake (License): Likewise.
48815         * modules/gettext (License): Likewise.
48816         * modules/gettext-h (License): Likewise.
48817         * modules/include_next (License): Likewise.
48818         * modules/link-warning (License): Likewise.
48819         * modules/localcharset (License): Likewise.
48820         * modules/localename (License): Likewise.
48821         * modules/lock (License): Likewise.
48822         * modules/relocatable-lib-lgpl (License): Likewise.
48823         * modules/size_max (License): Likewise.
48824         * modules/vasnprintf (License): Likewise.
48825         * modules/wchar (License): Likewise.
48826         * modules/xsize (License): Likewise.
48827
48828 2007-07-13  Bruno Haible  <bruno@clisp.org>
48829
48830         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48831         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48832
48833 2007-07-12  Bruno Haible  <bruno@clisp.org>
48834
48835         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48836         in the modules files.
48837
48838 2007-07-11  Karl Berry  <karl@gnu.org>
48839
48840         * MODULES.html.sh (func_module): use
48841          sed -e '\|^'"${includefile}"'$|d'
48842          instead of /.../d, to avoid errors on $includefile's containing /.
48843
48844 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48845
48846         * gnulib-tool (func_import): Avoid duplication of --avoid
48847         statements
48848         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48849         names to `_' in variable names.
48850
48851 2007-07-10  Eric Blake  <ebb9@byu.net>
48852
48853         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48854         * NEWS: Document this change.
48855
48856 2007-07-08  Bruno Haible  <bruno@clisp.org>
48857
48858         Update to Unicode 5.0.
48859         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48860         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48861         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48862         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48863         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48864         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48865         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48866         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48867         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48868         U+10A3F, U+1D242..U+1D244.
48869         (nonspacing_table_ind): Update.
48870         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48871         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48872
48873 2007-07-08  Bruno Haible  <bruno@clisp.org>
48874
48875         Update to Unicode 5.0.
48876         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48877         code transform. Extend the name index field of unicode_name_to_code and
48878         unicode_code_to_name from 16 to 24 bits.
48879         * lib/uniname/uniname.c (unicode_character_name,
48880         unicode_name_character): Add the range 0x12xxx to the code transform.
48881         * lib/uniname/uninames.h: Regenerated.
48882         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48883
48884 2007-07-07  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/wcwidth-tests: New file.
48887         * tests/test-wcwidth.c: New file.
48888
48889         Work around MacOS X wcwidth() bug.
48890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48891         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48892         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48893         original wcwidth in non-UTF-8 locales.
48894         * modules/wcwidth (Depends-on): Add localcharset, streq,
48895         uniwidth/width.
48896         * doc/functions/wcwidth.texi: Update.
48897
48898 2007-07-07  Bruno Haible  <bruno@clisp.org>
48899
48900         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48901         (wcwidth): New declaration.
48902         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48903         macros.
48904         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48905         here. Prepare for creating <wchar.h> unconditionally.
48906         * modules/wchar (Depends-on): Add link-warning.
48907         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48908         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48909         * lib/wcwidth.h: Remove file.
48910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48911         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48912         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48913         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48914         (Include): Replace wcwidth.h with <wchar.h>.
48915         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48916         * lib/mbchar.h: Don't include wcwidth.h.
48917         * lib/mbswidth.c: Likewise.
48918         * NEWS: Mention the change.
48919
48920 2007-07-07  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48923         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48924         definition with an external declaration.
48925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48926         defined as a function. Remove AC_C_INLINE requirement.
48927         * modules/wcwidth (Files): Add lib/wcwidth.c.
48928         (Makefile.am): Remove redundant statement.
48929
48930 2007-07-07  Bruno Haible  <bruno@clisp.org>
48931
48932         * MODULES.html.sh (Unicode string functions): Add the new modules.
48933
48934         * tests/uniwidth/test-u32-strwidth.c: New file.
48935         * modules/uniwidth/u32-strwidth-tests: New file.
48936
48937         * lib/uniwidth/u32-strwidth.c: New file.
48938         * modules/uniwidth/u32-strwidth: New file.
48939
48940         * tests/uniwidth/test-u16-strwidth.c: New file.
48941         * modules/uniwidth/u16-strwidth-tests: New file.
48942
48943         * lib/uniwidth/u16-strwidth.c: New file.
48944         * modules/uniwidth/u16-strwidth: New file.
48945
48946         * tests/uniwidth/test-u8-strwidth.c: New file.
48947         * modules/uniwidth/u8-strwidth-tests: New file.
48948
48949         * lib/uniwidth/u8-strwidth.c: New file.
48950         * modules/uniwidth/u8-strwidth: New file.
48951
48952         * tests/uniwidth/test-u32-width.c: New file.
48953         * modules/uniwidth/u32-width-tests: New file.
48954
48955         * lib/uniwidth/u32-width.c: New file.
48956         * modules/uniwidth/u32-width: New file.
48957
48958         * tests/uniwidth/test-u16-width.c: New file.
48959         * modules/uniwidth/u16-width-tests: New file.
48960
48961         * lib/uniwidth/u16-width.c: New file.
48962         * modules/uniwidth/u16-width: New file.
48963
48964         * tests/uniwidth/test-u8-width.c: New file.
48965         * modules/uniwidth/u8-width-tests: New file.
48966
48967         * lib/uniwidth/u8-width.c: New file.
48968         * modules/uniwidth/u8-width: New file.
48969
48970         * tests/uniwidth/test-uc_width.c: New file.
48971         * modules/uniwidth/width-tests: New file.
48972
48973         * lib/uniwidth/width.c: New file, from GNU libiconv.
48974         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48975         * modules/uniwidth/width: New file.
48976
48977         * lib/uniwidth.h: New file, from GNU libiconv.
48978         * modules/uniwidth/base: New file.
48979
48980 2007-07-07  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/uniname.h: New file, from GNU gettext.
48983         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48984         * lib/uniname/uninames.h: New file, from GNU gettext.
48985         * lib/uniname/uniname.c: New file, from GNU gettext.
48986         * tests/uniname/test-uninames.sh: New file.
48987         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48988         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48989         * modules/uniname/base: New file.
48990         * modules/uniname/uniname: New file.
48991         * modules/uniname/uniname-tests: New file.
48992         * MODULES.html.sh (Unicode string functions): Add the new modules.
48993
48994 2007-07-06  Bruno Haible  <bruno@clisp.org>
48995
48996         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48997
48998 2007-07-06  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49001         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49002         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49003         include <sys/time.h>.
49004         Reported by Eric Blake.
49005
49006 2007-07-06  Eric Blake  <ebb9@byu.net>
49007
49008         Fix testing canonicalize on cygwin.
49009         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49010         Revert patch from 2007-06-19.
49011         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49012         canonicalize module is also in use.
49013         * tests/test-canonicalize.c: New file.
49014         * tests/test-canonicalize.sh: Likewise.
49015         * modules/canonicalize-tests: Likewise.
49016
49017 2007-07-06  Jim Meyering  <jim@meyering.net>
49018
49019         * lib/getugroups.c (getugroups): Detect getgrent failure.
49020         Adjust comment to reflect reality: this function may return -1.
49021
49022 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49023
49024         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49025         the new TP address.
49026         (usage): Fix typo
49027         (gnulib_mk): New variable.
49028
49029 2007-07-05  Jim Meyering  <jim@meyering.net>
49030
49031         Don't let endgrent clobber errno, no matter how improbable.
49032         * lib/getugroups.c (getugroups): Save and restore errno around
49033         endgrent call.
49034
49035         Close the group DB even when failing with 2^31 or more members.
49036         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49037
49038 2007-07-04  Jim Meyering  <jim@meyering.net>
49039
49040         * lib/getugroups.h: New file.
49041         * lib/getugroups.c: Include "getugroups.h".
49042         Remove uses of "register" keyword.
49043         Move local variable, "cp", down into scope where used.
49044         Give "username" parameter the "const" attribute.
49045         * modules/getugroups (Files): Add lib/getugroups.h
49046
49047 2007-07-04  Karl Berry  <karl@gnu.org>
49048
49049         * MODULES.html.sh (func_all_modules): Complete rename of
49050         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49051
49052 2007-07-02  Bruno Haible  <bruno@clisp.org>
49053
49054         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49055         mode, when inttypes.h comes from gnulib.
49056         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49057
49058 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49059
49060         * NEWS: Mention lgpl module name change.
49061
49062         * modules/lgpl-2.1: Renamed from lgpl.
49063
49064         * NEWS: Mention gpl module name change.
49065
49066         * modules/gpl-3.0: New file, based on gpl-2.0.
49067
49068         * modules/gpl-2.0: Renamed from gpl.
49069
49070         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49071         doc/gpl-2.0.texi.
49072
49073 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49076         #define __STDC_LIMIT_MACROS temporarily while including
49077         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49078         Problem reported by Joel E. Denny in
49079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49080
49081 2007-07-01  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/unistdio.h: New file.
49084         * lib/unistdio/u-asnprintf.h: New file.
49085         * lib/unistdio/u-asprintf.h: New file.
49086         * lib/unistdio/u-printf-args.c: New file.
49087         * lib/unistdio/u-printf-args.h: New file.
49088         * lib/unistdio/u-printf-parse.h: New file.
49089         * lib/unistdio/u-snprintf.h: New file.
49090         * lib/unistdio/u-sprintf.h: New file.
49091         * lib/unistdio/u-vasprintf.h: New file.
49092         * lib/unistdio/u-vsnprintf.h: New file.
49093         * lib/unistdio/u-vsprintf.h: New file.
49094         * lib/unistdio/ulc-asnprintf.c: New file.
49095         * lib/unistdio/ulc-asprintf.c: New file.
49096         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49097         * lib/unistdio/ulc-printf-parse.c: New file.
49098         * lib/unistdio/ulc-snprintf.c: New file.
49099         * lib/unistdio/ulc-sprintf.c: New file.
49100         * lib/unistdio/ulc-vasnprintf.c: New file.
49101         * lib/unistdio/ulc-vasprintf.c: New file.
49102         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49103         * lib/unistdio/ulc-vsnprintf.c: New file.
49104         * lib/unistdio/ulc-vsprintf.c: New file.
49105         * lib/unistdio/u8-asnprintf.c: New file.
49106         * lib/unistdio/u8-asprintf.c: New file.
49107         * lib/unistdio/u8-printf-parse.c: New file.
49108         * lib/unistdio/u8-snprintf.c: New file.
49109         * lib/unistdio/u8-sprintf.c: New file.
49110         * lib/unistdio/u8-vasnprintf.c: New file.
49111         * lib/unistdio/u8-vasprintf.c: New file.
49112         * lib/unistdio/u8-vsnprintf.c: New file.
49113         * lib/unistdio/u8-vsprintf.c: New file.
49114         * lib/unistdio/u8-u8-asnprintf.c: New file.
49115         * lib/unistdio/u8-u8-asprintf.c: New file.
49116         * lib/unistdio/u8-u8-snprintf.c: New file.
49117         * lib/unistdio/u8-u8-sprintf.c: New file.
49118         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49119         * lib/unistdio/u8-u8-vasprintf.c: New file.
49120         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49121         * lib/unistdio/u8-u8-vsprintf.c: New file.
49122         * lib/unistdio/u16-asnprintf.c: New file.
49123         * lib/unistdio/u16-asprintf.c: New file.
49124         * lib/unistdio/u16-printf-parse.c: New file.
49125         * lib/unistdio/u16-snprintf.c: New file.
49126         * lib/unistdio/u16-sprintf.c: New file.
49127         * lib/unistdio/u16-vasnprintf.c: New file.
49128         * lib/unistdio/u16-vasprintf.c: New file.
49129         * lib/unistdio/u16-vsnprintf.c: New file.
49130         * lib/unistdio/u16-vsprintf.c: New file.
49131         * lib/unistdio/u16-u16-asnprintf.c: New file.
49132         * lib/unistdio/u16-u16-asprintf.c: New file.
49133         * lib/unistdio/u16-u16-snprintf.c: New file.
49134         * lib/unistdio/u16-u16-sprintf.c: New file.
49135         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49136         * lib/unistdio/u16-u16-vasprintf.c: New file.
49137         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49138         * lib/unistdio/u16-u16-vsprintf.c: New file.
49139         * lib/unistdio/u32-asnprintf.c: New file.
49140         * lib/unistdio/u32-asprintf.c: New file.
49141         * lib/unistdio/u32-printf-parse.c: New file.
49142         * lib/unistdio/u32-snprintf.c: New file.
49143         * lib/unistdio/u32-sprintf.c: New file.
49144         * lib/unistdio/u32-vasnprintf.c: New file.
49145         * lib/unistdio/u32-vasprintf.c: New file.
49146         * lib/unistdio/u32-vsnprintf.c: New file.
49147         * lib/unistdio/u32-vsprintf.c: New file.
49148         * lib/unistdio/u32-u32-asnprintf.c: New file.
49149         * lib/unistdio/u32-u32-asprintf.c: New file.
49150         * lib/unistdio/u32-u32-snprintf.c: New file.
49151         * lib/unistdio/u32-u32-sprintf.c: New file.
49152         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49153         * lib/unistdio/u32-u32-vasprintf.c: New file.
49154         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49155         * lib/unistdio/u32-u32-vsprintf.c: New file.
49156         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49157         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49158         * tests/unistdio/test-ulc-printf1.h: New file.
49159         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49160         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49161         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49162         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49163         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49164         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49165         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49166         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49167         * tests/unistdio/test-u8-asnprintf1.c: New file.
49168         * tests/unistdio/test-u8-asnprintf1.h: New file.
49169         * tests/unistdio/test-u8-printf1.h: New file.
49170         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49171         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49172         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49173         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49174         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49175         * tests/unistdio/test-u8-vasprintf1.c: New file.
49176         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49177         * tests/unistdio/test-u8-vsprintf1.c: New file.
49178         * tests/unistdio/test-u16-asnprintf1.c: New file.
49179         * tests/unistdio/test-u16-asnprintf1.h: New file.
49180         * tests/unistdio/test-u16-printf1.h: New file.
49181         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49182         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49183         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49184         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49185         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49186         * tests/unistdio/test-u16-vasprintf1.c: New file.
49187         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49188         * tests/unistdio/test-u16-vsprintf1.c: New file.
49189         * tests/unistdio/test-u32-asnprintf1.c: New file.
49190         * tests/unistdio/test-u32-asnprintf1.h: New file.
49191         * tests/unistdio/test-u32-printf1.h: New file.
49192         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49193         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49194         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49195         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49196         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49197         * tests/unistdio/test-u32-vasprintf1.c: New file.
49198         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49199         * tests/unistdio/test-u32-vsprintf1.c: New file.
49200         * modules/unistdio/base: New file.
49201         * modules/unistdio/u-printf-args: New file.
49202         * modules/unistdio/ulc-asnprintf: New file.
49203         * modules/unistdio/ulc-asprintf: New file.
49204         * modules/unistdio/ulc-fprintf: New file.
49205         * modules/unistdio/ulc-printf-parse: New file.
49206         * modules/unistdio/ulc-snprintf: New file.
49207         * modules/unistdio/ulc-sprintf: New file.
49208         * modules/unistdio/ulc-vasnprintf: New file.
49209         * modules/unistdio/ulc-vasprintf: New file.
49210         * modules/unistdio/ulc-vfprintf: New file.
49211         * modules/unistdio/ulc-vsnprintf: New file.
49212         * modules/unistdio/ulc-vsprintf: New file.
49213         * modules/unistdio/u8-asnprintf: New file.
49214         * modules/unistdio/u8-asprintf: New file.
49215         * modules/unistdio/u8-printf-parse: New file.
49216         * modules/unistdio/u8-snprintf: New file.
49217         * modules/unistdio/u8-sprintf: New file.
49218         * modules/unistdio/u8-vasnprintf: New file.
49219         * modules/unistdio/u8-vasprintf: New file.
49220         * modules/unistdio/u8-vsnprintf: New file.
49221         * modules/unistdio/u8-vsprintf: New file.
49222         * modules/unistdio/u8-u8-asnprintf: New file.
49223         * modules/unistdio/u8-u8-asprintf: New file.
49224         * modules/unistdio/u8-u8-snprintf: New file.
49225         * modules/unistdio/u8-u8-sprintf: New file.
49226         * modules/unistdio/u8-u8-vasnprintf: New file.
49227         * modules/unistdio/u8-u8-vasprintf: New file.
49228         * modules/unistdio/u8-u8-vsnprintf: New file.
49229         * modules/unistdio/u8-u8-vsprintf: New file.
49230         * modules/unistdio/u16-asnprintf: New file.
49231         * modules/unistdio/u16-asprintf: New file.
49232         * modules/unistdio/u16-printf-parse: New file.
49233         * modules/unistdio/u16-snprintf: New file.
49234         * modules/unistdio/u16-sprintf: New file.
49235         * modules/unistdio/u16-vasnprintf: New file.
49236         * modules/unistdio/u16-vasprintf: New file.
49237         * modules/unistdio/u16-vsnprintf: New file.
49238         * modules/unistdio/u16-vsprintf: New file.
49239         * modules/unistdio/u16-u16-asnprintf: New file.
49240         * modules/unistdio/u16-u16-asprintf: New file.
49241         * modules/unistdio/u16-u16-snprintf: New file.
49242         * modules/unistdio/u16-u16-sprintf: New file.
49243         * modules/unistdio/u16-u16-vasnprintf: New file.
49244         * modules/unistdio/u16-u16-vasprintf: New file.
49245         * modules/unistdio/u16-u16-vsnprintf: New file.
49246         * modules/unistdio/u16-u16-vsprintf: New file.
49247         * modules/unistdio/u32-asnprintf: New file.
49248         * modules/unistdio/u32-asprintf: New file.
49249         * modules/unistdio/u32-printf-parse: New file.
49250         * modules/unistdio/u32-snprintf: New file.
49251         * modules/unistdio/u32-sprintf: New file.
49252         * modules/unistdio/u32-vasnprintf: New file.
49253         * modules/unistdio/u32-vasprintf: New file.
49254         * modules/unistdio/u32-vsnprintf: New file.
49255         * modules/unistdio/u32-vsprintf: New file.
49256         * modules/unistdio/u32-u32-asnprintf: New file.
49257         * modules/unistdio/u32-u32-asprintf: New file.
49258         * modules/unistdio/u32-u32-snprintf: New file.
49259         * modules/unistdio/u32-u32-sprintf: New file.
49260         * modules/unistdio/u32-u32-vasnprintf: New file.
49261         * modules/unistdio/u32-u32-vasprintf: New file.
49262         * modules/unistdio/u32-u32-vsnprintf: New file.
49263         * modules/unistdio/u32-u32-vsprintf: New file.
49264         * modules/unistdio/ulc-asnprintf-tests: New file.
49265         * modules/unistdio/ulc-vasnprintf-tests: New file.
49266         * modules/unistdio/ulc-vasprintf-tests: New file.
49267         * modules/unistdio/ulc-vsnprintf-tests: New file.
49268         * modules/unistdio/ulc-vsprintf-tests: New file.
49269         * modules/unistdio/u8-asnprintf-tests: New file.
49270         * modules/unistdio/u8-vasnprintf-tests: New file.
49271         * modules/unistdio/u8-vasprintf-tests: New file.
49272         * modules/unistdio/u8-vsnprintf-tests: New file.
49273         * modules/unistdio/u8-vsprintf-tests: New file.
49274         * modules/unistdio/u16-asnprintf-tests: New file.
49275         * modules/unistdio/u16-vasnprintf-tests: New file.
49276         * modules/unistdio/u16-vasprintf-tests: New file.
49277         * modules/unistdio/u16-vsnprintf-tests: New file.
49278         * modules/unistdio/u16-vsprintf-tests: New file.
49279         * modules/unistdio/u32-asnprintf-tests: New file.
49280         * modules/unistdio/u32-vasnprintf-tests: New file.
49281         * modules/unistdio/u32-vasprintf-tests: New file.
49282         * modules/unistdio/u32-vsnprintf-tests: New file.
49283         * modules/unistdio/u32-vsprintf-tests: New file.
49284         * MODULES.html.sh (Unicode string functions): Add the new modules.
49285
49286 2007-07-01  Bruno Haible  <bruno@clisp.org>
49287
49288         * lib/sprintf.c (sprintf): Limit the available length estimation,
49289         to avoid address wraparound.
49290         * lib/vsprintf.c (vsprintf): Likewise.
49291         * modules/sprintf-posix (Dependencies): Add stdint.
49292         * modules/vsprintf-posix (Dependencies): Likewise.
49293
49294 2007-07-01  Bruno Haible  <bruno@clisp.org>
49295
49296         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49297         Windows PATH as well. Conservative double-quoting. Comments.
49298
49299 2007-07-01  Bruno Haible  <bruno@clisp.org>
49300             Eric Blake  <ebb9@byu.net>
49301             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49302
49303         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49304         empty components in $PATH, denoting '.'.
49305
49306 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49307
49308         * gnulib-tool: Fix indentation.
49309         (func_create_megatestdir): Likewise.
49310         Report by Bruno Haible.
49311
49312 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49313
49314         Sync from Automake.
49315         * build-aux/gnupload: Fix shell portability issues with for loops.
49316         Report by Karl Berry.
49317
49318 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49319
49320         * build-aux/maint.mk (POURL): Use translationproject.org.
49321
49322 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49323             Bruno Haible  <bruno@clisp.org>
49324
49325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49326         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49327         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49328         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49329         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49330
49331 2007-06-27  Bruno Haible  <bruno@clisp.org>
49332
49333         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49334         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49335
49336 2007-06-26  Karl Berry  <karl@gnu.org>
49337
49338         * MODULES.html.sh: remove xreadlink-with-size.
49339
49340 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49341
49342         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49343         method that I hope also handles the double-include problem noted
49344         by Bruno Haible in
49345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49346
49347 2007-06-23  Bruno Haible  <bruno@clisp.org>
49348
49349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49350         Don't let the 'mostlyclean' target fail if the last subdirectory could
49351         not be removed.
49352         Reported by Karl Berry.
49353
49354 2007-06-23  Bruno Haible  <bruno@clisp.org>
49355
49356         * gnulib-tool (echo): Add a speedier workaround for ksh.
49357         * tests/test-echo.sh: Likewise.
49358
49359 2007-06-23  Bruno Haible  <bruno@clisp.org>
49360
49361         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49362         * tests/test-echo.sh: Likewise.
49363
49364 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49365
49366         * gnulib-tool (IFS): Initialize early, so we don't set it to
49367         empty later.
49368         (self_abspathname): Rewrite algorithm to set it, reindent.
49369         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49370         (func_create_megatestdir): Merge some sed scripts.
49371
49372 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49373
49374         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49375         exposed by Sun Studio 11 cc on Solaris 8.
49376
49377 2007-06-22  Bruno Haible  <bruno@clisp.org>
49378
49379         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49380         backslashes.
49381         * tests/test-echo.sh: New file.
49382
49383 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49384
49385         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49386         simplify `sed_replace_build_aux' scripts, they are portable but
49387         echoing them with `echo' is not.
49388         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49389
49390 2007-06-21  Karl Berry  <karl@gnu.org>
49391
49392         * config/srclist.txt: guess we can't handle the licenses via
49393         srclist at the moment.
49394
49395 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49396
49397         * MODULES.html.sh: Add include_next.
49398         * modules/include_next: New file.
49399
49400 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49401
49402         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49403         INCLUDE_NEXT.
49404         (gl_CHECK_NEXT_HEADERS): New macro.
49405         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49406         the obsolescent gl_ABSOLUTE_HEADER.
49407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49408         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49409         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49410         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49411         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49412         * m4/math_h.m4 (gl_MATH_H): Likewise.
49413         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49414         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49415         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49416         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49417         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49418         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49419         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49424         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49425         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49427         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49428         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49429         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49430         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49431         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49432         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49433         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49434         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49435         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49436         * lib/float_.h: Likewise.
49437         * lib/inttypes_.h: Likewise.
49438         * lib/math_.h: Likewise.
49439         * lib/search_.h: Likewise.
49440         * lib/signal_.h: Likewise.
49441         * lib/stdint_.h: Likewise.
49442         * lib/stdio_.h: Likewise.
49443         * lib/stdlib_.h: Likewise.
49444         * lib/string_.h: Likewise.
49445         * lib/sys_stat_.h: Likewise.
49446         * lib/sys_time_.h: Likewise.
49447         * lib/time_.h: Likewise.
49448         * lib/unistd_.h: Likewise.
49449         * lib/wchar_.h: Likewise.
49450         * lib/wctype_.h: Likewise.
49451         * lib/dirent_.h: Likewise.
49452         * lib/iconv_.h: Likewise.
49453         * lib/locale_.h: Likewise.
49454         * lib/netinet_in_.h: Likewise.
49455         * lib/sys_select_.h: Likewise.
49456         * lib/sys_socket_.h: Likewise.
49457         * lib/sysexits_.h: Likewise.
49458         * modules/fcntl (Depends-on): Depend on include_next, not
49459         absolute_header.
49460         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49461         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49462         * modules/fchdir: Likewise.
49463         * modules/float: Likewise.
49464         * modules/iconv_open: Likewise.
49465         * modules/inttypes: Likewise.
49466         * modules/locale: Likewise.
49467         * modules/math: Likewise.
49468         * modules/netinet_in: Likewise.
49469         * modules/search: Likewise.
49470         * modules/signal: Likewise.
49471         * modules/stdint: Likewise.
49472         * modules/stdio: Likewise.
49473         * modules/stdlib: Likewise.
49474         * modules/string: Likewise.
49475         * modules/sys_select: Likewise.
49476         * modules/sys_socket: Likewise.
49477         * modules/sys_stat: Likewise.
49478         * modules/sys_time: Likewise.
49479         * modules/sysexits: Likewise.
49480         * modules/time: Likewise.
49481         * modules/unistd: Likewise.
49482         * modules/wchar: Likewise.
49483         * modules/wctype: Likewise.
49484         * modules/sys_stat: Change maintainer to "all".
49485         * modules/unistd: Likewise.
49486
49487 2007-06-20  Karl Berry  <karl@gnu.org>
49488
49489         * config/srclist.txt: track www changes in license files.
49490
49491 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49492
49493         * build-aux/bootstrap: Remove stray dot.
49494         Make sure build_aux settings are honored when linking
49495         gnulib_extra_files.
49496
49497 2007-06-19  Eric Blake  <ebb9@byu.net>
49498
49499         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49500         Allow compilation on cygwin.
49501
49502 2007-06-19  Jim Meyering  <jim@meyering.net>
49503
49504         xreadlink-with-size: Remove module.  No longer used.
49505         Ex-callers now use xreadlink or mreadlink-with-size.
49506         * modules/xreadlink-with-size: Remove module.
49507         * lib/xreadlink-with-size.c: Remove file.
49508         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49509         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49510         just before the function definition *is* accurate.
49511
49512         Eliminate one way canonicalize_filename_mode could exit.
49513         * lib/canonicalize.c (canonicalize_filename_mode):
49514         Use mreadlink_with_size, not xreadlink_with_size.
49515
49516 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49517
49518         Detect porting problems to FreeBSD/arm, which has time_t wider than
49519         long int.  Original problem reported for GNU diff by Xin Li in
49520         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49521         * modules/getdate (Depends-on): Add intprops, verify.
49522         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49523         is an integer type no wider than long int.
49524
49525 2007-06-18  Jim Meyering  <jim@meyering.net>
49526
49527         New module: mreadlink-with-size.
49528         * MODULES.html.sh: Add mreadlink-with-size.
49529         * modules/mreadlink-with-size: New module
49530         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49531         not xreadlink-with-size.
49532         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49533
49534 2007-06-16  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49537         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49538         Reported by Gary V. Vaughan <gary@gnu.org>.
49539
49540 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49541
49542         Revamp lchown so that it lives in unistd.h where it belongs.
49543         * lib/lchown.h: Remove.
49544         * lib/dirchownmod.c: Don't include lib/lchown.h.
49545         * lib/fchownat.c: Likewise.
49546         * lib/openat.c: Likewise.
49547         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49548         does not follow symlinks.
49549         (EOPNOTSUPP): Define if not defined.
49550         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49551         is defined to 0.
49552         (lchown): New decl.
49553         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49554         Do not check for lchown decl.
49555         Set REPLACE_LCHOWN.
49556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49557         REPLACE_LCHOWN.
49558         * modules/chown: Make it clear it follows symlinks.
49559         * modules/lchown: Make it clear it doesn't follow symlinks.
49560         (Files): Remove lib/lchown.h
49561         (Depends-on): Add unistd.
49562         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49563         (Include): Include <unistd.h>, not "lchown.h".
49564         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49565         REPLACE_LCHOWN.
49566
49567 2007-06-15  Jim Meyering  <jim@meyering.net>
49568
49569         Change license (GPL to LGPL) of fsusage and dependents.
49570         * modules/fsusage (License): Change to LGPL.
49571         * modules/full-read (License): Likewise.
49572         * modules/full-write (License): Likewise.
49573         * modules/safe-read (License): Likewise.
49574         * modules/safe-write (License): Likewise.
49575
49576 2007-06-14  Ben Pfaff  <blp@gnu.org>
49577
49578         Missing part of allocsa -> malloca transition.
49579         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49580         gl_MALLOCA.
49581
49582 2007-06-12  Bruno Haible  <bruno@clisp.org>
49583
49584         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49585         to ia64, x86_64, i386.
49586         Reported by Eric Blake.
49587
49588 2007-06-12  Bruno Haible  <bruno@clisp.org>
49589
49590         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49591         cross-compiling to x86_64.
49592
49593 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49596         glitch reported by Ralf Wildenhues in
49597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49598
49599         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49600         Vin Shelton.
49601
49602 2007-06-11  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49605         replacement string.
49606         Reported by Eric Blake.
49607
49608 2007-06-10  Bruno Haible  <bruno@clisp.org>
49609
49610         Prepare vasnprintf code for use with Unicode strings.
49611         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49612         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49613         TYPE_U32_STRING.
49614         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49615         a_u32_string variants.
49616         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49617         * lib/printf-args.c: Don't include config.h and the specification
49618         header if PRINTF_FETCHARGS is already defined.
49619         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49620         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49621         TYPE_U16_STRING, TYPE_U32_STRING.
49622         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49623         u16_directive, u16_directives, u32_directive, u32_directives): New
49624         types.
49625         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49626         New declarations.
49627         * lib/printf-parse.c: Don't include config.h and the specification
49628         header if PRINTF_PARSE is already defined. Eliminate the set of
49629         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49630         them now. Include c-ctype.h.
49631         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49632         directive and CHAR_T_ONLY_ASCII.
49633         * lib/vasnprintf.c: Don't include config.h and the specification header
49634         if VASNPRINTF is already defined.
49635         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49636         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49637         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49638         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49639         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49640         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49641         code accordingly.
49642         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49643         pad_ourselves also in this case, with the 'c' and 's' directives, and
49644         with a different notion of "width".
49645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49646
49647 2007-06-10  Bruno Haible  <bruno@clisp.org>
49648
49649         * modules/unistr/u32-mbsnlen: New file.
49650         * lib/unistr/u32-mbsnlen.c: New file.
49651
49652         * modules/unistr/u16-mbsnlen: New file.
49653         * lib/unistr/u16-mbsnlen.c: New file.
49654
49655         * modules/unistr/u8-mbsnlen: New file.
49656         * lib/unistr/u8-mbsnlen.c: New file.
49657
49658         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49659         declarations.
49660
49661 2007-06-10  Bruno Haible  <bruno@clisp.org>
49662
49663         * lib/string_.h (mbsnlen): New declaration.
49664         * lib/mbsnlen.c: New file.
49665         * m4/mbsnlen.m4: New file.
49666         * modules/mbsnlen: New file.
49667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49668         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49669         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49670
49671 2007-06-10  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49674
49675 2007-06-10  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49678         * lib/mbuiter.h: Likewise.
49679
49680 2007-06-10  Bruno Haible  <bruno@clisp.org>
49681
49682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49683         declaration.
49684
49685 2007-06-10  Karl Berry  <karl@gnu.org>
49686
49687         * config/srclist.txt: remove gettext entries, Bruno prefers
49688         to update individually.
49689
49690 2007-06-10  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49693         'maxlen'. Ensure only length + width bytes are allocated, not
49694         length + 1 + width.
49695
49696 2007-06-09  Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49699         (CHAR_T): Remove macro.
49700         (VASNPRINTF): Update.
49701
49702 2007-06-09  Bruno Haible  <bruno@clisp.org>
49703
49704         * MODULES.html.sh (Unicode string functions): Add the new modules.
49705
49706         * modules/uniconv/u32-conv-to-enc: New file.
49707         * lib/uniconv/u32-conv-to-enc.c: New file.
49708         * modules/uniconv/u32-conv-to-enc-tests: New file.
49709         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49710
49711         * modules/uniconv/u16-conv-to-enc: New file.
49712         * lib/uniconv/u16-conv-to-enc.c: New file.
49713         * lib/uniconv/u-conv-to-enc.h: New file.
49714         * modules/uniconv/u16-conv-to-enc-tests: New file.
49715         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49716
49717         * modules/uniconv/u8-conv-to-enc: New file.
49718         * lib/uniconv/u8-conv-to-enc.c: New file.
49719         * modules/uniconv/u8-conv-to-enc-tests: New file.
49720         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49721
49722         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49723         u32_conv_to_encoding): New declarations.
49724
49725 2007-06-09  Bruno Haible  <bruno@clisp.org>
49726
49727         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49728
49729 2007-06-09  Bruno Haible  <bruno@clisp.org>
49730
49731         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49732         * modules/malloca: Renamed from modules/allocsa, updated.
49733         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49734         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49735         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49736         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49737         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49738         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49739         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49740         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49741         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49742         * modules/c-strcasestr (Depends-on): Update.
49743         * lib/c-strcasestr.c: Update.
49744         * modules/c-strstr (Depends-on): Update.
49745         * lib/c-strstr.c: Update.
49746         * modules/canonicalize-lgpl (Depends-on): Update.
49747         * lib/canonicalize-lgpl.c: Update.
49748         * modules/clean-temp (Depends-on): Update.
49749         * lib/clean-temp.c: Update.
49750         * modules/csharpcomp (Depends-on): Update.
49751         * lib/csharpcomp.c: Update.
49752         * modules/csharpexec (Depends-on): Update.
49753         * lib/csharpexec.c: Update.
49754         * modules/javacomp (Depends-on): Update.
49755         * lib/javacomp.c: Update.
49756         * modules/javaexec (Depends-on): Update.
49757         * lib/javaexec.c: Update.
49758         * modules/mbscasestr (Depends-on): Update.
49759         * lib/mbscasestr.c: Update.
49760         * modules/mbsstr (Depends-on): Update.
49761         * lib/mbsstr.c: Update.
49762         * modules/setenv (Depends-on): Update.
49763         * lib/setenv.c: Update.
49764         * modules/strcasestr (Depends-on): Update.
49765         * lib/strcasestr.c: Update.
49766         * modules/striconveha (Depends-on): Update.
49767         * lib/striconveha.c: Update.
49768         * modules/relocatable-prog-wrapper (Files): Update.
49769         * lib/relocwrapper.c: Update.
49770         * build-aux/install-reloc: Update.
49771         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49772
49773 2007-06-08  Bruno Haible  <bruno@clisp.org>
49774
49775         Port to uClibc.
49776         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49777         * lib/fpurge.c (fpurge): Likewise.
49778         * lib/freading.c (freading): Likewise.
49779         * lib/fseeko.c (rpl_fseeko): Likewise.
49780         * lib/fseterr.c (fseterr): Likewise.
49781         * lib/fwriting.c (fwriting): Likewise.
49782         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49783
49784 2007-06-08  Bruno Haible  <bruno@clisp.org>
49785
49786         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49787         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49788         * modules/gettext (Files): Add m4/intlmacosx.m4.
49789
49790 2007-06-07  Bruno Haible  <bruno@clisp.org>
49791
49792         * modules/localename-tests: New file.
49793         * tests/test-localename.c: New file.
49794
49795         New module 'localename'.
49796         * lib/localename.h: New file.
49797         * lib/localename.c: New file, from GNU gettext.
49798         * m4/localename.m4: New file.
49799         * modules/localename: New file.
49800
49801 2007-06-07  Bruno Haible  <bruno@clisp.org>
49802
49803         Work around the lack of <wchar.h> on some builds of uClibc.
49804         * doc/headers/wchar.texi: Update.
49805         * lib/wchar_.h: Include <wchar.h> only if it exists.
49806         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49807         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49808         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49809         doesn't exist.
49810         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49811         * modules/mbfile (Depends-on): Add wchar.
49812         * modules/mbiter (Depends-on): Likewise.
49813         * modules/mbuiter (Depends-on): Likewise.
49814         Reported by Simon Josefsson.
49815
49816 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         Work around problem reported by Steven M. Schweda in
49819         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49820         Tru64 5.1B with the Compaq compiler environment installed declares
49821         an 'isblank' function but does not define it in the C library.
49822         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49823         * lib/regex_internal.h (isblank): Likewise.
49824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49825         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49826
49827 2007-06-05  Bruno Haible  <bruno@clisp.org>
49828
49829         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49830         ia64.
49831         * modules/printf-safe: New file.
49832         * modules/fprintf-posix (Depends-on): Add printf-safe.
49833         * modules/printf-posix (Depends-on): Likewise.
49834         * modules/snprintf-posix (Depends-on): Likewise.
49835         * modules/sprintf-posix (Depends-on): Likewise.
49836         * modules/vasnprintf-posix (Depends-on): Likewise.
49837         * modules/vasprintf-posix (Depends-on): Likewise.
49838         * modules/vfprintf-posix (Depends-on): Likewise.
49839         * modules/vprintf-posix (Depends-on): Likewise.
49840         * modules/vsnprintf-posix (Depends-on): Likewise.
49841         * modules/vsprintf-posix (Depends-on): Likewise.
49842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49843         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49844         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49845         "no" on i386, x86_64, ia64.
49846         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49848         on i386, x86_64, ia64.
49849         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49850         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49851         on i386, x86_64, ia64.
49852         * tests/test-vasnprintf-posix.c: Include float.h.
49853         (LDBL80_WORDS): New macro.
49854         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49855         on i386, x86_64, ia64.
49856         * tests/test-vasprintf-posix.c: Include float.h.
49857         (LDBL80_WORDS): New macro.
49858         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49859         on i386, x86_64, ia64.
49860         * tests/test-snprintf-posix.c: Include float.h.
49861         * tests/test-sprintf-posix.c: Likewise.
49862         * tests/test-vsnprintf-posix.c: Likewise.
49863         * tests/test-vsprintf-posix.c: Likewise.
49864
49865 2007-06-05  Bruno Haible  <bruno@clisp.org>
49866
49867         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49868         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49869         non-IEEE numbers on i386, x86_64, ia64.
49870         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49871         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49872         * tests/test-isnanl.h: Include float.h.
49873         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49874
49875 2007-06-05  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49878         also the %a / %A. Handle the %a / %A code before this extra handling.
49879
49880 2007-06-05  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49883         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49884
49885 2007-06-05  Bruno Haible  <bruno@clisp.org>
49886
49887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49888         typo in variable name.
49889
49890 2007-06-05  Eric Blake  <ebb9@byu.net>
49891
49892         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49893         Reported by Simon Josefsson.
49894
49895 2007-06-04  Bruno Haible  <bruno@clisp.org>
49896
49897         Avoid test failures on some PowerPC platforms.
49898         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49899         Define differently for PowerPC.
49900         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49901         Reported by Gary V. Vaughan <gary@gnu.org>.
49902
49903 2007-06-02  Bruno Haible  <bruno@clisp.org>
49904
49905         Fix test-stdint failure on FreeBSD/ia64.
49906         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49907         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49908         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49909         * doc/headers/stdint.texi: Update.
49910
49911 2007-06-01  Bruno Haible  <bruno@clisp.org>
49912
49913         * tests/test-binary-io.c (main): Pass a third argument to open().
49914         Reported by Gary V. Vaughan <gary@gnu.org>.
49915
49916 2007-06-01  Bruno Haible  <bruno@clisp.org>
49917
49918         * doc/functions/frexpl.texi: Update for mingw.
49919
49920 2007-06-01  Bruno Haible  <bruno@clisp.org>
49921
49922         * tests/test-lseek.c (main): Disable test of errno for invalid third
49923         argument.
49924         * doc/functions/lseek.texi: Update.
49925         Reported by Gary V. Vaughan <gary@gnu.org>.
49926
49927 2007-05-28  Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49930
49931 2007-05-31  Eric Blake  <ebb9@byu.net>
49932
49933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49934         cross compiling.
49935
49936 2007-05-30  Eric Blake  <ebb9@byu.net>
49937         and Bruno Haible  <bruno@clisp.org>
49938
49939         Work around mingw test failures exposed by m4-1.4.9b.
49940         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49941         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49942         moment.
49943
49944 2007-05-30  Bruno Haible  <bruno@clisp.org>
49945
49946         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49947         assuming that they are closed. Needed on HP-UX 11.
49948
49949 2007-05-29  Bruno Haible  <bruno@clisp.org>
49950
49951         Fix a problem with #include_next.
49952         * lib/dirent_.h: Split the double-inclusion guard.
49953         * lib/fcntl_.h: Likewise.
49954         * lib/float_.h: Likewise.
49955         * lib/iconv_.h: Likewise.
49956         * lib/inttypes_.h: Likewise.
49957         * lib/locale_.h: Likewise.
49958         * lib/math_.h: Likewise.
49959         * lib/netinet_in_.h: Likewise.
49960         * lib/search_.h: Likewise.
49961         * lib/signal_.h: Likewise.
49962         * lib/stdint_.h: Likewise.
49963         * lib/stdio_.h: Likewise.
49964         * lib/stdlib_.h: Likewise.
49965         * lib/string_.h: Likewise.
49966         * lib/sys_select_.h: Likewise.
49967         * lib/sys_socket_.h: Likewise.
49968         * lib/sys_stat_.h: Likewise.
49969         * lib/sys_time_.h: Likewise.
49970         * lib/sysexits_.h: Likewise.
49971         * lib/time_.h: Likewise.
49972         * lib/unistd_.h: Likewise.
49973         * lib/wchar_.h: Likewise.
49974         * lib/wctype_.h: Likewise.
49975
49976 2007-05-29  Bruno Haible  <bruno@clisp.org>
49977
49978         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49979         for the moment.
49980
49981 2007-05-29  Bruno Haible  <bruno@clisp.org>
49982
49983         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49984         invocation.
49985         Reported by Eric Blake.
49986
49987 2007-05-29  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49990         compiling case.
49991
49992 2007-05-29  Eric Blake  <ebb9@byu.net>
49993             Bruno Haible  <bruno@clisp.org>
49994
49995         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49996         cross compiles.
49997
49998 2007-05-28  Eric Blake  <ebb9@byu.net>
49999
50000         * modules/closein-tests (test_closein_LDADD): Support test on
50001         cygwin with libtool.
50002
50003 2007-05-28  Bruno Haible  <bruno@clisp.org>
50004
50005         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50006         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50007         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50008         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50009         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50010         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50011         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50012         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50013         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50014
50015 2007-05-28  Eric Blake  <ebb9@byu.net>
50016
50017         Unconditionally include <config.h> in unit tests.
50018         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50019         * tests/test-allocsa.c, tests/test-arcfour.c,
50020         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50021         tests/test-array_list.c, tests/test-array_oset.c,
50022         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50023         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50024         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50025         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50026         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50027         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50028         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50029         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50030         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50031         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50032         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50033         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50034         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50035         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50036         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50037         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50038         test-md5.c, test-memmem.c, test-printf-posix.c,
50039         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50040         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50041         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50042         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50043         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50044         test-vasnprintf-posix2.c, test-vasnprintf.c,
50045         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50046         test-vfprintf-posix.c, test-vprintf-posix.c,
50047         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50048         test-xvasprintf.c: Likewise.
50049
50050 2007-05-28  Bruno Haible  <bruno@clisp.org>
50051
50052         * gnulib-tool (func_import): Remember the --with-tests command-line
50053         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50054         Reported by Eric Blake.
50055
50056 2007-05-28  Bruno Haible  <bruno@clisp.org>
50057
50058         * modules/ftell-tests: New file.
50059         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50060         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50061
50062         * lib/ftell.c: New file.
50063         * modules/ftell: New file.
50064         * m4/ftell.m4: New file.
50065         * doc/functions/ftell.texi: Update.
50066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50067         REPLACE_FTELL.
50068         * lib/stdio_.h (rpl_ftell): New declaration.
50069         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50070         REPLACE_FTELL.
50071
50072 2007-05-28  Eric Blake  <ebb9@byu.net>
50073
50074         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50075
50076 2007-05-28  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/fseek-tests: New file.
50079         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50080         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50081
50082         * lib/fseek.c: New file.
50083         * modules/fseek: New file.
50084         * m4/fseek.m4: New file.
50085         * doc/functions/fseek.texi: Update.
50086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50087         REPLACE_FSEEK.
50088         * lib/stdio_.h (rpl_fseek): New declaration.
50089         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50090         REPLACE_FSEEK.
50091
50092 2007-05-28  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/stdio_.h (fflush): More comments.
50095
50096 2007-05-28  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50099         runtime test.
50100
50101 2007-05-28  Eric Blake  <ebb9@byu.net>
50102
50103         Improve lseek module.
50104         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50105         * lib/unistd_.h (lseek): Scale back link warning message.
50106         * tests/test-lseek.c: Beef up test.
50107         * tests/test-lseek.sh: Exercise more facets of lseek.
50108         Reported by Bruno Haible.
50109
50110 2007-05-28  Bruno Haible  <bruno@clisp.org>
50111
50112         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50113         to define.
50114
50115 2007-05-27  Bruno Haible  <bruno@clisp.org>
50116
50117         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50118
50119 2007-05-27  Bruno Haible  <bruno@clisp.org>
50120
50121         * modules/openmp: New file.
50122         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50123         Noah Misch.
50124
50125 2007-05-26  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/chdir-long (Depends-on): Add fchdir.
50128         * modules/chdir-safer (Depends-on): Likewise.
50129         * modules/fts (Depends-on): Likewise.
50130         * modules/fts-lgpl (Depends-on): Likewise.
50131         * modules/openat (Depends-on): Likewise.
50132         * modules/savewd (Depends-on): Likewise.
50133
50134 2007-05-24  Eric Blake  <ebb9@byu.net>
50135
50136         Fix lseek on mingw.
50137         * modules/lseek: New module.
50138         * m4/lseek.m4: New file.
50139         * lib/lseek.c: New file.
50140         * modules/lseek-tests: New file.
50141         * tests/test-lseek.c: New file.
50142         * tests/test-lseek.sh: New file.
50143         * MODULES.html.sh: Document lseek module.
50144         * modules/fflush (Depends-on): Add lseek, fseeko.
50145         * modules/fseeko (Depends-on): Likewise.
50146         * modules/ftello (Depends-on): Likewise.
50147         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50148         broken.
50149         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50150         broken.
50151         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50152         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50153         * lib/ftello.c (rpl_ftello): Likewise.
50154         * tests/test-fseeko.c (main): Test this.
50155         * tests/test-fseeko.sh: Likewise.
50156         * tests/test-ftello.c (main): Likewise.
50157         * tests/test-ftello.sh: Likewise.
50158         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50159         implies replacing fseek.
50160         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50161         HAVE_FTELLO.
50162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50163         * modules/unistd (Makefile.am): Likewise.
50164         * lib/unistd_.h (lseek): Declare a replacement.
50165         * doc/functions/lseek.texi (lseek): Document this fix.
50166         * doc/functions/fseek.texi (fseek): Likewise.
50167         * doc/functions/ftell.texi (ftell): Likewise.
50168
50169 2007-05-24  Bruno Haible  <bruno@clisp.org>
50170
50171         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50172         in the printed representation of a NaN.
50173         * tests/test-vasprintf-posix.c (test_function): Likewise.
50174         * tests/test-snprintf-posix.h (test_function): Likewise.
50175         * tests/test-sprintf-posix.h (test_function): Likewise.
50176         Reported by Eric Blake.
50177
50178 2007-05-23  Eric Blake  <ebb9@byu.net>
50179
50180         Fix fseeko/ftello on cygwin 1.5.24.
50181         * doc/functions/fseeko.texi (fseeko): Document the fix.
50182         * doc/functions/ftello.texi (ftello): Document the fix.
50183         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50184         * doc/functions/stdout.text (stdout): New file.
50185         * doc/functions/stderr.text (stderr): New file.
50186         * doc/gnulib.texi (Function Substitutes): Use new files.
50187         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50188         prior to 1.7.0.
50189         * tests/test-ftello.c (main): Likewise for ftello.
50190         * tests/test-fseeko.sh: New file.
50191         * tests/test-ftello.sh: New file.
50192         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50193         with seekable stdin.
50194         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50196         (gl_REPLACE_FSEEKO): New macro.
50197         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50198         * modules/fseeko (Files): Distribute fseeko.c.
50199         * modules/ftello (Files): Distribute ftello.c.
50200         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50201         mode.
50202         * lib/ftello.c (rpl_ftello): New file.
50203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50204         fseeko, ftello.
50205         (gl_STDIN_LARGE_OFFSET): New macro.
50206         * modules/stdio (Makefile.am): Perform the replacement.
50207         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50208
50209 2007-05-23  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50212         GNULIB_POSIXCHECK is defined.
50213
50214 2007-05-21  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50217         Check also the output for NaN arguments. When cross-compiling, guess
50218         no on IRIX.
50219         * lib/vasnprintf.c: Update comments.
50220         * tests/test-vasnprintf-posix.c (strisnan): New function.
50221         (test_function): Use it.
50222         * tests/test-vasprintf-posix.c (strisnan): New function.
50223         (test_function): Use it.
50224         * tests/test-snprintf-posix.h (strisnan): New function.
50225         (test_function): Use it.
50226         * tests/test-sprintf-posix.h (strisnan): New function.
50227         (test_function): Use it.
50228         Reported by Eric Blake.
50229
50230 2007-05-20  Bruno Haible  <bruno@clisp.org>
50231
50232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50233         numbers that fails on BeOS.
50234         * doc/functions/frexpl.texi: Update.
50235
50236 2007-05-20  Jim Meyering  <jim@meyering.net>
50237
50238         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50239         forced upon us by glibc-2.6.
50240
50241 2007-05-20  Bruno Haible  <bruno@clisp.org>
50242
50243         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50244         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50245         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50246         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50247         NEED_PRINTF_INFINITE.
50248         (is_infinitel): New function.
50249         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50251         gl_PREREQ_VASNPRINTF_INFINITE.
50252         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50253         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50254         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50255         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50256         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50257         gl_PREREQ_VASNPRINTF_INFINITE.
50258         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50259         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50265         * doc/functions/fprintf.texi: Update.
50266         * doc/functions/printf.texi: Update.
50267         * doc/functions/snprintf.texi: Update.
50268         * doc/functions/sprintf.texi: Update.
50269         * doc/functions/vfprintf.texi: Update.
50270         * doc/functions/vprintf.texi: Update.
50271         * doc/functions/vsnprintf.texi: Update.
50272         * doc/functions/vsprintf.texi: Update.
50273
50274 2007-05-20  Bruno Haible  <bruno@clisp.org>
50275
50276         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50277         was not found in libc.
50278         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50279
50280 2007-05-20  Bruno Haible  <bruno@clisp.org>
50281
50282         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50283         printed as "-nan" instead of "nan".
50284         * tests/test-vasprintf-posix.c (test_function): Likewise.
50285         * tests/test-snprintf-posix.h (test_function): Likewise.
50286         * tests/test-sprintf-posix.h (test_function): Likewise.
50287         Needed for HP-UX 11.
50288
50289 2007-05-20  Jim Meyering  <jim@meyering.net>
50290
50291         Fix buggy test for the fchownat-deref bug.
50292         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50293         symlink required for the run-test.  Without it, this test would
50294         always declare that fchownat doesn't work, and client code would
50295         unnecessarily use the replacement function with fixed libc.
50296         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50297         Reported by Greg Schafer.
50298
50299 2007-05-19  Bruno Haible  <bruno@clisp.org>
50300
50301         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50302         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50303         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50304         Needed for IRIX 6.5 and Solaris 2.5.1.
50305
50306 2007-05-19  Bruno Haible  <bruno@clisp.org>
50307
50308         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50309         (test_function): Skip tests involving -0.0 on platforms where
50310         -0.0 = 0.0.
50311         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50312         (test_function): Skip tests involving -0.0 on platforms where
50313         -0.0 = 0.0.
50314         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50315         (test_function): Skip tests involving -0.0 on platforms where
50316         -0.0 = 0.0.
50317         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50318         (test_function): Skip tests involving -0.0 on platforms where
50319         -0.0 = 0.0.
50320         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50321         tests.
50322         * tests/test-printf-posix.h (test_function): Likewise.
50323         * tests/test-printf-posix.output: Remove all -0.0 related results.
50324         Needed for IRIX 6.5.
50325
50326 2007-05-19  Bruno Haible  <bruno@clisp.org>
50327
50328         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50329         printed as "nan0x7fffffff" instead of "nan".
50330         * tests/test-vasprintf-posix.c (test_function): Likewise.
50331         * tests/test-snprintf-posix.h (test_function): Likewise.
50332         * tests/test-sprintf-posix.h (test_function): Likewise.
50333         * tests/test-fprintf-posix.h (NaN): Remove macro.
50334         (test_function): Remove all NaN related tests.
50335         * tests/test-printf-posix.h (NaN): Remove macro.
50336         (test_function): Remove all NaN related tests.
50337         * tests/test-printf-posix.output: Remove all NaN related results.
50338         Needed for IRIX 6.5.
50339
50340 2007-05-19  Bruno Haible  <bruno@clisp.org>
50341
50342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50344
50345 2007-05-19  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/float_.h: New file.
50348         * m4/float_h.m4: New file.
50349         * modules/float: New file.
50350         * modules/isnanl (Dependencies): Add float.
50351         * modules/isnanl-nolibm (Dependencies): Likewise.
50352         * modules/mathl (Dependencies): Likewise.
50353         * modules/printf-frexpl (Dependencies): Likewise.
50354         * modules/signbit (Dependencies): Likewise.
50355         * modules/vasnprintf (Dependencies): Likewise.
50356         * doc/headers/float.texi: Update.
50357
50358 2007-05-19  Jim Meyering  <jim@meyering.net>
50359
50360         * lib/utimens.c (gl_futimens): Rename from futimens,
50361         now that glibc-2.6 declares futimens.
50362         * lib/utimens.h: Likewise.
50363
50364 2007-05-19  Bruno Haible  <bruno@clisp.org>
50365
50366         Avoid test failures on mingw.
50367         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50368         * tests/test-printf-posix.sh: Likewise.
50369         * tests/test-vfprintf-posix.sh: Likewise.
50370         * tests/test-vprintf-posix.sh: Likewise.
50371
50372 2007-05-19  Bruno Haible  <bruno@clisp.org>
50373
50374         Fix *printf result for NaN, Inf, -0.0 on mingw.
50375         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50376         * lib/vasnprintf.c: Include math.h and isnan.h.
50377         (is_infinite_or_zero): New function.
50378         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50379         values in the %f, %F, %e, %E, %g, %G directives.
50380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50382         gl_PRINTF_INFINITE and test its result. Invoke
50383         gl_PREREQ_VASNPRINTF_INFINITE.
50384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50391         * doc/functions/fprintf.texi: Update.
50392         * doc/functions/printf.texi: Update.
50393         * doc/functions/snprintf.texi: Update.
50394         * doc/functions/sprintf.texi: Update.
50395         * doc/functions/vfprintf.texi: Update.
50396         * doc/functions/vprintf.texi: Update.
50397         * doc/functions/vsnprintf.texi: Update.
50398         * doc/functions/vsprintf.texi: Update.
50399
50400 2007-05-19  Bruno Haible  <bruno@clisp.org>
50401
50402         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50403         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50404         Instead of multiplying with 10^k, set extra_zeroes to k.
50405         (scale10_round_long_double): Remove function.
50406
50407 2007-05-18  Bruno Haible  <bruno@clisp.org>
50408
50409         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50410         introduced on 2007-05-06.
50411
50412 2007-05-18  Bruno Haible  <bruno@clisp.org>
50413
50414         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50415         %g directives.
50416         * tests/test-vasprintf-posix.c (test_function): Likewise.
50417         * tests/test-snprintf-posix.h (test_function): Likewise.
50418         * tests/test-sprintf-posix.h (test_function): Likewise.
50419
50420 2007-05-18  Bruno Haible  <bruno@clisp.org>
50421
50422         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50423         (strmatch): New function.
50424         (test_function): Test the %f directive on numbers of various exponents.
50425         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50426         (strmatch): New function.
50427         (test_function): Test the %f directive on numbers of various exponents.
50428         * tests/test-snprintf-posix.h (strmatch): New function.
50429         (test_function): Test the %f directive on numbers of various exponents.
50430         * tests/test-sprintf-posix.h (strmatch): New function.
50431         (test_function): Test the %f directive on numbers of various exponents.
50432         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50433         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50434         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50435         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50436
50437 2007-05-18  Bruno Haible  <bruno@clisp.org>
50438
50439         Add support for 'long double' number output.
50440         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50441         * lib/vasnprintf.c: Include math.h and float+.h.
50442         (mp_limb_t): New type.
50443         (GMP_LIMB_BITS): New macro.
50444         (mp_twolimb_t): New type.
50445         (GMP_TWOLIMB_BITS): New macro.
50446         (mpn_t): New type.
50447         (multiply, divide, convert_to_decimal, decode_long_double,
50448         scale10_round_long_double, scale10_round_decimal_long_double,
50449         floorlog10l): New functions.
50450         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50451         for the %f, %F, %e, %E, %g, %G directives.
50452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50454         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50455         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50456         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50460         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50462         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50463         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50464         * modules/snprintf-posix (Depends-on): Likewise.
50465         * modules/sprintf-posix (Depends-on): Likewise.
50466         * modules/vasnprintf-posix (Depends-on): Likewise.
50467         * modules/vasprintf-posix (Depends-on): Likewise.
50468         * modules/vfprintf-posix (Depends-on): Likewise.
50469         * modules/vsnprintf-posix (Depends-on): Likewise.
50470         * modules/vsprintf-posix (Depends-on): Likewise.
50471         * modules/vasnprintf (Files): Add lib/float+.h.
50472         * doc/functions/fprintf.texi: Update.
50473         * doc/functions/printf.texi: Update.
50474         * doc/functions/snprintf.texi: Update.
50475         * doc/functions/sprintf.texi: Update.
50476         * doc/functions/vfprintf.texi: Update.
50477         * doc/functions/vprintf.texi: Update.
50478         * doc/functions/vsnprintf.texi: Update.
50479         * doc/functions/vsprintf.texi: Update.
50480
50481 2007-05-18  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50484
50485 2007-05-18  Bruno Haible  <bruno@clisp.org>
50486
50487         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50488         for printing 64-bit integers. Needed for mingw.
50489
50490 2007-05-18  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50493         gl_FUNC_FREXPL_WORKS.
50494         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50495
50496 2007-05-18  Bruno Haible  <bruno@clisp.org>
50497
50498         * modules/frexpl-nolibm-tests: New file.
50499
50500         * modules/frexpl-nolibm: New file.
50501         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50502
50503 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50506         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50507         GCC 4.2, which otherwise issues a lot of warnings.
50508         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50509         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50510         Likewise.
50511         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50512         * modules/iconv_open (iconv.h): Likewise.
50513         * modules/locale (locale.h): Likewise.
50514         * modules/netinet_in (netinet/in.h): Likewise.
50515         * modules/sys_select (sys_select.h): Likewise.
50516         * modules/sys_socket (sys/socket.h): Likewise.
50517         * modules/sys_stat (sys/stat.h): Likewise.
50518         * modules/sysexits (sysexits.h): Likewise.
50519         * modules/unistd (unistd.h): Likewise.
50520
50521 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50522
50523         * modules/closein-tests (Makefile.am): Distribute
50524         `test-closein.sh'.
50525
50526 2007-05-17  Bruno Haible  <bruno@clisp.org>
50527
50528         * tests/test-printf-posix.output: Renamed from
50529         tests/test-fprintf-posix.out.
50530         * modules/fprintf-posix-tests: Update.
50531         * modules/printf-posix-tests: Update.
50532         * modules/vfprintf-posix-tests: Update.
50533         * modules/vprintf-posix-tests: Update.
50534         * tests/test-fprintf-posix.sh: Update.
50535         * tests/test-printf-posix.sh: Update.
50536         * tests/test-vfprintf-posix.sh: Update.
50537         * tests/test-vprintf-posix.sh: Update.
50538         Reported by Ralf Wildenhues.
50539
50540 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50543         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50544         GCC 4.2, which otherwise issues a lot of warnings.
50545         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50546         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50547         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50548         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50549         it should no longer be needed.
50550         * lib/string_.h: Likewise.
50551         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50552         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50553         * modules/inttypes (inttypes.h): Likewise.
50554         * modules/math (math.h): Likewise.
50555         * modules/search (search.h): Likewise.
50556         * modules/signal (signal.h): Likewise.
50557         * modules/stdint (stdint.h): Likewise.
50558         * modules/stdio (stdio.h): Likewise.
50559         * modules/stdlib (stdlib.h): Likewise.
50560         * modules/string (string.h): Likewise.
50561         * modules/sys_time (sys/time.h): Likewise.
50562         * modules/time (time.h): Likewise.
50563         * modules/wchar (wchar.h): Likewise.
50564         * modules/wctype (wtype.h): Likewise.
50565
50566 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50567
50568         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50569
50570 2007-05-13  Bruno Haible  <bruno@clisp.org>
50571
50572         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50573         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50574         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50575         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50576         (gl_PREREQ_STRTOK_R): Don't require it here.
50577
50578 2007-05-13  Bruno Haible  <bruno@clisp.org>
50579
50580         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50581         when used in C++ mode.
50582
50583 2007-05-12  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/linebuffer.h: Tweak doc.
50586         * lib/linebuffer.c: Likewise.
50587
50588 2007-05-12  James Youngman  <jay@gnu.org>
50589
50590         * lib/linebuffer.c (readlinebuffer_delim): New function,
50591         like readlinebuffer, but use a caller-specified delimiter.
50592         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50593         as the delimiter.
50594         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50595
50596 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50597
50598         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50599         * modules/openat (Files): Remove openat-die.c.
50600         (Depends-on): Add openat-die.
50601         * modules/openat-die: New module.
50602
50603 2007-05-06  Bruno Haible  <bruno@clisp.org>
50604
50605         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50606         Update with info about Cygwin.
50607         * doc/functions/fprintf.texi: Update.
50608         * doc/functions/printf.texi: Update.
50609         * doc/functions/snprintf.texi: Update.
50610         * doc/functions/sprintf.texi: Update.
50611         * doc/functions/vfprintf.texi: Update.
50612         * doc/functions/vprintf.texi: Update.
50613         * doc/functions/vsnprintf.texi: Update.
50614         * doc/functions/vsprintf.texi: Update.
50615         Reported by Eric Blake.
50616
50617 2007-05-06  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50620         padding ourselves for the floating-point directives.
50621         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50624         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50625         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50626         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50633         * tests/test-snprintf-posix.h (test_function): Also check the width
50634         and some flags in the %f directive.
50635         * tests/test-sprintf-posix.h (test_function): Likewise.
50636         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50637         * tests/test-vasprintf-posix.c (test_function): Likewise.
50638         * doc/functions/fprintf.texi: Update.
50639         * doc/functions/printf.texi: Update.
50640         * doc/functions/snprintf.texi: Update.
50641         * doc/functions/sprintf.texi: Update.
50642         * doc/functions/vfprintf.texi: Update.
50643         * doc/functions/vprintf.texi: Update.
50644         * doc/functions/vsnprintf.texi: Update.
50645         * doc/functions/vsprintf.texi: Update.
50646
50647 2007-05-06  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50650         pass the ' flag character to sprintf or snprintf.
50651         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50654         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50655         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50663         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50664         flag.
50665         * tests/test-sprintf-posix.h (test_function): Likewise.
50666         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50667         * tests/test-vasprintf-posix.c (test_function): Likewise.
50668         * doc/functions/fprintf.texi: Update.
50669         * doc/functions/printf.texi: Update.
50670         * doc/functions/snprintf.texi: Update.
50671         * doc/functions/sprintf.texi: Update.
50672         * doc/functions/vfprintf.texi: Update.
50673         * doc/functions/vprintf.texi: Update.
50674         * doc/functions/vsnprintf.texi: Update.
50675         * doc/functions/vsprintf.texi: Update.
50676
50677 2007-05-01  Bruno Haible  <bruno@clisp.org>
50678
50679         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50680
50681 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50684         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50685
50686 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50687
50688         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50689         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50691
50692 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50693
50694         * lib/argp-help.c (struct hol_entry): New member `ord'.
50695         (HOL_ENTRY_PTRCMP): Use ord for comparison
50696         (hol_sort): Initialize ord.
50697
50698 2007-05-01  Bruno Haible  <bruno@clisp.org>
50699
50700         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50701         Reported by Eric Blake.
50702         * doc/gnulib.texi (Function Substitutes): Update.
50703
50704 2007-05-01  Bruno Haible  <bruno@clisp.org>
50705
50706         * doc/functions.texi: Remove file, now redundant through
50707         doc/functions/*.texi.
50708
50709 2007-05-01  Bruno Haible  <bruno@clisp.org>
50710
50711         * modules/argp (Depends-on): Add sleep.
50712
50713 2007-05-01  Bruno Haible  <bruno@clisp.org>
50714
50715         * modules/sleep-tests: New file.
50716         * tests/test-sleep.c: New file.
50717
50718         * modules/sleep: New file.
50719         * lib/sleep.c: New file.
50720         * m4/sleep.m4: New file.
50721         * lib/unistd_.h (sleep): New declaration.
50722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50723         HAVE_SLEEP.
50724         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50725         * doc/functions/sleep.texi: Document the sleep module.
50726
50727 2007-05-01  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/sigprocmask.h: Remove file.
50730         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50731         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50732         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50733         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50734         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50735         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50736         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50737         HAVE_SIGSET_T as a shell variable.
50738         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50739         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50740         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50741         (Depends-on): Add signal. Remove verify.
50742         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50743         (Include): Mention <signal.h> instead of sigprocmask.h.
50744         * NEWS: Mention the change.
50745         * lib/fatal-signal.c: Don't include sigprocmask.h.
50746
50747 2007-05-01  Bruno Haible  <bruno@clisp.org>
50748
50749         * modules/signal: New file.
50750         * lib/signal_.h: New file.
50751         * m4/signal_h.m4: New file.
50752
50753 2007-05-01  Bruno Haible  <bruno@clisp.org>
50754
50755         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50756         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50757         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50758         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50759
50760 2007-05-01  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50763         configure time.
50764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50765         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50766         * modules/sys_stat (Makefile.am): Substitute their values into
50767         sys/stat.h.
50768
50769 2007-05-01  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50772         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50773         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50774
50775 2007-05-01  Bruno Haible  <bruno@clisp.org>
50776
50777         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50778         'assert' module here.
50779
50780 2007-05-01  Bruno Haible  <bruno@clisp.org>
50781
50782         * doc/functions/*.texi: New files.
50783         * doc/functions/google-ranking.txt: New file.
50784         * doc/gnulib.texi (Function Substitutes): New chapter.
50785         (ctime, inet_ntoa): Remove sections.
50786         * doc/ctime.texi: Remove file.
50787         * doc/inet_ntoa.texi: Remove file.
50788         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50789         dependencies.
50790         (%.info): New rule, specifying a --reference-limit.
50791
50792 2007-05-01  Bruno Haible  <bruno@clisp.org>
50793
50794         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50795
50796 2007-05-01  Bruno Haible  <bruno@clisp.org>
50797
50798         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50799         the portability of 'mkdir' to mingw systems.
50800
50801 2007-05-01  Bruno Haible  <bruno@clisp.org>
50802
50803         * doc/headers/google-ranking.txt: New file.
50804
50805 2007-04-30  Eric Blake  <ebb9@byu.net>
50806
50807         Prefer fseeko to fseek.
50808         * modules/getpass (Depends-on): Add fseeko.
50809         * lib/getpass.c (getpass): Use fseeko, not fseek.
50810
50811 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50812
50813         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50814         assumes the sorting is stable, while most qsort implementations
50815         are not.  Use argument addresses to ensure they never compare as
50816         equal.
50817
50818         * tests/test-argp-2.sh (usage-indent test): Fix output
50819         (func_compare): Restore diff options
50820         * tests/test-argp.c: Restore #include "progname.h"
50821
50822 2007-04-29  Bruno Haible  <bruno@clisp.org>
50823
50824         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50826         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50828         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50829         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50830         (TESTS, check_PROGRAMS): Add test-snprintf.
50831         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50832         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50833         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50834         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50835         assertions that fail on HP-UX, OSF/1, or IRIX.
50836         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50837
50838 2007-04-29  Bruno Haible  <bruno@clisp.org>
50839
50840         * MODULES.html.sh (posix_functions): Remove 'contents'.
50841
50842 2007-04-29  Karl Berry  <karl@gnu.org>
50843
50844         * config/srclist.txt (gendocs_template_min): new entry.
50845
50846 2007-04-29  Bruno Haible  <bruno@clisp.org>
50847
50848         Work around fpurge bug on BSD systems.
50849         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50850         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50851         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50852         fpurge to rpl_fpurge if the system already has this function.
50853         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50854         the case where the system already has this function. Correct invariants
50855         on BSD systems.
50856         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50857         BSD systems.
50858
50859 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50860
50861         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50862         proposed by Sven Verdoolaege.
50863
50864         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50865         options.
50866         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50867         (usage and help tests): Update
50868
50869 2007-04-29  Bruno Haible  <bruno@clisp.org>
50870
50871         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50872         Print more information in case of failure. Disable a test on BeOS.
50873
50874 2007-04-29  Bruno Haible  <bruno@clisp.org>
50875
50876         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50877         This helps debugging on systems on which no gdb is available.
50878
50879 2007-04-29  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/freading.h: Improve comments.
50882         * lib/fwriting.h: Likewise.
50883         * tests/test-freading.c (main): Don't check freading immediately after
50884         repositioning. Needed for glibc.
50885
50886 2007-04-29  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/freading.c (freading): Trivial simplification.
50889
50890 2007-04-28  Bruno Haible  <bruno@clisp.org>
50891
50892         * tests/test-fwriting.c (main): Also test the interaction between
50893         fflush and fwriting.
50894         * modules/fwriting-tests (Depends-on): Add fflush.
50895
50896         * tests/test-freading.c (main): Also test the interaction between
50897         fflush and freading.
50898         * modules/freading-tests (Depends-on): Add fflush.
50899
50900 2007-04-28  Bruno Haible  <bruno@clisp.org>
50901
50902         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50903         fseeko and ftello.
50904         Suggested by Eric Blake.
50905
50906 2007-04-28  Jim Meyering  <jim@meyering.net>
50907
50908         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50909         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50910         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50911
50912 2007-04-27  Eric Blake  <ebb9@byu.net>
50913
50914         * doc/headers/assert.texi (assert.h): Document assert module use.
50915
50916 2007-04-27  Bruno Haible  <bruno@clisp.org>
50917
50918         * doc/headers/*.texi: New files.
50919         * doc/gnulib.texi (Header File Substitutes): New chapter.
50920         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50921         dependencies.
50922         (standards.info ,standards.html, standards.dvi): Update dependencies.
50923         (mostlyclean, clean): New targets.
50924
50925 2007-04-27  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50928         * modules/sysexits (Files, Makefile.am): Update.
50929
50930         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50931         * modules/sys_socket (Files, Makefile.am): Update.
50932
50933         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50934         * modules/sys_stat (Files, Makefile.am): Update.
50935
50936 2007-04-27  Eric Blake  <ebb9@byu.net>
50937
50938         * lib/freading.h: Improve comments.
50939         * lib/fwriting.h: Likewise.
50940         * lib/fflush.c: Likewise.
50941
50942         Fix closein for mingw.
50943         * modules/closein-tests: Add tests for closein.
50944         * tests/test-closein.c: New file.
50945         * tests/test-closein.sh: Likewise.
50946         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50947         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50948
50949 2007-04-27  Bruno Haible  <bruno@clisp.org>
50950
50951         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50952         version is < 6.
50953         * lib/math_.h [__DECC]: Likewise.
50954         * lib/stdio_.h [__DECC]: Likewise.
50955         * lib/stdlib_.h [__DECC]: Likewise.
50956         * lib/string_.h [__DECC]: Likewise.
50957         * lib/time_.h [__DECC]: Likewise.
50958         * lib/wchar_.h [__DECC]: Likewise.
50959         * lib/wctype_.h [__DECC]: Likewise.
50960
50961 2007-04-27  Bruno Haible  <bruno@clisp.org>
50962
50963         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50964
50965 2007-04-27  Bruno Haible  <bruno@clisp.org>
50966
50967         * lib/fflush.c: Add comments.
50968         * modules/fpurge-tests (Depends-on): Add fflush.
50969         * modules/freadable-tests (Depends-on): Likewise.
50970         * modules/fwritable-tests (Depends-on): Likewise.
50971
50972 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50973
50974         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50975         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50976         Report by Bruno Haible <bruno@clisp.org>.
50977
50978 2007-04-26  Eric Blake  <ebb9@byu.net>
50979
50980         Fix fflush on mingw.
50981         * modules/fflush (Depends-on): Add freading.
50982         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50983         but unread data.
50984
50985 2007-04-26  Eric Blake  <ebb9@byu.net>
50986         and Bruno Haible  <bruno@clisp.org>
50987
50988         Implement freading and fwriting.
50989         * lib/freading.c: New file.
50990         * lib/freading.h: Likewise.
50991         * m4/freading.m4: Likewise.
50992         * modules/freading: Likewise.
50993         * modules/freading-tests: Likewise.
50994         * tests/test-freading.c: Likewise.
50995         * lib/fwriting.c: New file.
50996         * lib/fwriting.h: Likewise.
50997         * m4/fwriting.m4: Likewise.
50998         * modules/fwriting: Likewise.
50999         * modules/fwriting-tests: Likewise.
51000         * tests/test-fwriting.c: Likewise.
51001         * MODULES.html.sh (File stream based Input/Output): Mention them.
51002
51003 2007-04-26  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51006         'long' when we assume it.
51007         Suggested by Eric Blake.
51008
51009 2007-04-26  Bruno Haible  <bruno@clisp.org>
51010
51011         Ensure fseeko, ftello are declared on glibc systems.
51012         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51013         * modules/fseeko (configure.ac-early): Likewise.
51014         * modules/ftello (configure.ac-early): Likewise.
51015         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51016         AC_FUNC_FSEEKO for this.
51017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51018         (gl_CHECK_FSEEKO): Remove macro.
51019
51020 2007-04-26  Bruno Haible  <bruno@clisp.org>
51021
51022         * tests/test-fflush.c (main): Also check the ftell result after
51023         fflush and fseek/fseeko.
51024         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51025         file descriptor position cache in the stream.
51026         * lib/fseeko.c (rpl_fseeko): Likewise.
51027
51028 2007-04-26  Bruno Haible  <bruno@clisp.org>
51029
51030         * modules/fflush-tests (Depends-on): Add fseeko.
51031
51032 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51033             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51034
51035         * lib/argz_.h: ensure error_t definition is obtained in same
51036         mechanism system argz.h would have.
51037         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51038         argz facilities are known bad.  Err on the side of caution if
51039         cross-compiling.
51040
51041 2007-04-25  Eric Blake  <ebb9@byu.net>
51042
51043         * lib/fpurge.c (includes): Use stdlib.h for free.
51044         * tests/test-fflush.c (main): Also test fflush-fseeko.
51045
51046 2007-04-25  Bruno Haible  <bruno@clisp.org>
51047
51048         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51049         * lib/fseeko.c: New file.
51050         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51051         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51052         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51053         gl_FUNC_FSEEKO.
51054         (gl_FUNC_FSEEKO): Invoke it.
51055         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51056         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51057         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51058
51059 2007-04-25  Bruno Haible  <bruno@clisp.org>
51060
51061         * modules/fflush (Depends-on): Add ftello.
51062
51063 2007-04-25  Bruno Haible  <bruno@clisp.org>
51064
51065         * modules/ftello-tests: New file.
51066         * tests/test-ftello.c: New file.
51067
51068         * modules/ftello: New file.
51069         * m4/ftello.m4: New file.
51070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51071         HAVE_FTELLO.
51072         * lib/stdio_.h (ftello): New declaration.
51073         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51074         HAVE_FTELLO.
51075
51076 2007-04-25  Bruno Haible  <bruno@clisp.org>
51077
51078         * modules/fseeko-tests: New file.
51079         * tests/test-fseeko.c: New file.
51080
51081         * modules/fseeko: New file.
51082         * m4/fseeko.m4: New file.
51083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51084         HAVE_FSEEKO.
51085         * lib/stdio_.h (fseeko): New declaration.
51086         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51087         HAVE_FSEEKO.
51088
51089 2007-04-25  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51092
51093 2007-04-25  Bruno Haible  <bruno@clisp.org>
51094
51095         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51096         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51097         * tests/test-unistd.c: Likewise.
51098         * tests/test-fcntl.c: Likewise.
51099
51100 2007-04-23  Eric Blake  <ebb9@byu.net>
51101
51102         * lib/fflush.c: Fix missing include.
51103         Reported by Bruno Haible.
51104
51105 2007-04-23  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51108         Reported by Eric Blake.
51109
51110 2007-04-23  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51113
51114 2007-04-23  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51117
51118 2007-04-23  Bruno Haible  <bruno@clisp.org>
51119
51120         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51121         Needed on HP-UX 11.
51122
51123 2007-04-16  Eric Blake  <ebb9@byu.net>
51124
51125         Make fflush rely on fpurge.
51126         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51127         open coding all variants.
51128         * modules/fflush (Depends-on): Add fpurge and unistd.
51129         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51130         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51131
51132         Fix --with-tests compilation on cygwin.
51133         * modules/argmatch-tests (Makefile.am): List gnulib library first
51134         in LDADD.
51135         * modules/argp-tests (Makefile.am): Likewise.
51136         * modules/array-list-tests (Makefile.am): Likewise.
51137         * modules/array-oset-tests (Makefile.am): Likewise.
51138         * modules/avltree-list-tests (Makefile.am): Likewise.
51139         * modules/avltree-oset-tests (Makefile.am): Likewise.
51140         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51141         * modules/carray-list-tests (Makefile.am): Likewise.
51142         * modules/dirname-tests (Makefile.am): Likewise.
51143         * modules/frexp-tests (Makefile.am): Likewise.
51144         * modules/isnanl-tests (Makefile.am): Likewise.
51145         * modules/linked-list-tests (Makefile.am): Likewise.
51146         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51147         * modules/lock-tests (Makefile.am): Likewise.
51148         * modules/rbtree-list-tests (Makefile.am): Likewise.
51149         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51150         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51151         * modules/tls-tests (Makefile.am): Likewise.
51152         * modules/tsearch-tests (Makefile.am): Likewise.
51153         * modules/xvasprintf-tests (Makefile.am): Likewise.
51154
51155         Fix fpurge for cygwin.
51156         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51157         value.
51158         * modules/fpurge-tests (Depends-on): Clean up trash.
51159
51160 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51161
51162         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51163
51164         * m4/autobuild.m4: Re-indent.
51165
51166 2007-04-13  Bruno Haible  <bruno@clisp.org>
51167
51168         * modules/fpurge-tests: New file.
51169         * tests/test-fpurge.c: New file.
51170
51171         * modules/fpurge: New file.
51172         * lib/fpurge.h: New file.
51173         * lib/fpurge.c: New file.
51174         * m4/fpurge.m4: New file.
51175
51176 2007-04-13  Bruno Haible  <bruno@clisp.org>
51177
51178         * modules/fbufmode-tests: New file.
51179         * tests/test-fbufmode.c: New file.
51180
51181         * modules/fbufmode: New file.
51182         * lib/fbufmode.h: New file.
51183         * lib/fbufmode.c: New file.
51184         * m4/fbufmode.m4: New file.
51185
51186 2007-04-13  Bruno Haible  <bruno@clisp.org>
51187
51188         * modules/fwritable-tests: New file.
51189         * tests/test-fwritable.c: New file.
51190
51191         * modules/fwritable: New file.
51192         * lib/fwritable.h: New file.
51193         * lib/fwritable.c: New file.
51194         * m4/fwritable.m4: New file.
51195
51196 2007-04-13  Bruno Haible  <bruno@clisp.org>
51197
51198         * modules/freadable-tests: New file.
51199         * tests/test-freadable.c: New file.
51200
51201         * modules/freadable: New file.
51202         * lib/freadable.h: New file.
51203         * lib/freadable.c: New file.
51204         * m4/freadable.m4: New file.
51205
51206 2007-04-13  Bruno Haible  <bruno@clisp.org>
51207
51208         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51209         MOSTLYCLEANFILES.
51210
51211 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51214         gzip bootstrap.conf to avoid dragging in i18n machinery.
51215         (gnulib_tool_option): Use it.
51216
51217 2007-04-13  Bruno Haible  <bruno@clisp.org>
51218
51219         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51220         %F directives.
51221         * tests/test-vasprintf-posix.c (test_function): Likewise.
51222         * tests/test-snprintf-posix.h (test_function): Likewise.
51223         * tests/test-sprintf-posix.h (test_function): Likewise.
51224         * tests/test-fprintf-posix.h (test_function): Likewise.
51225         * tests/test-printf-posix.h (test_function): Likewise.
51226         * tests/test-fprintf-posix.out: Likewise.
51227
51228 2007-04-13  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51231         * modules/tls-tests (configure.ac): Likewise.
51232         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51233
51234 2007-04-13  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/tls.c (glthread_tls_get): Fix return type.
51237         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51238
51239 2007-04-12  Eric Blake  <ebb9@byu.net>
51240
51241         * modules/gettime (Depends-on): Remove gettime.
51242         Reported by Dmitry V. Levin.
51243
51244 2007-04-12  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/fflush (Include): Mention <stdio.h>.
51247         * modules/strtoimax (Include): Mention <inttypes.h>.
51248         * modules/strtoumax (Include): Likewise.
51249
51250 2007-04-12  Eric Blake  <ebb9@byu.net>
51251
51252         * .cvsignore: New file.
51253         * .gitignore: Likewise.
51254
51255 2007-04-12  Bruno Haible  <bruno@clisp.org>
51256
51257         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51258         not before, since $(LDADD) often contains libgnu.a.
51259         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51260         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51261         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51262         Needed on Cygwin.
51263
51264 2007-04-12  Eric Blake  <ebb9@byu.net>
51265
51266         Work around glibc's failure to flush stdin on fclose.
51267         * lib/closein.c (close_stdin): Flush stdin before closing.
51268
51269         Work around glibc's failure to reset seekable stdin on exit.
51270         * modules/closein: New module.
51271         * lib/closein.c: New file.
51272         * lib/closein.h: Likewise.
51273         * m4/closein.m4: Likewise.
51274         * MODULES.html.sh (File stream based Input/Output): Document it.
51275
51276 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51277
51278         * gnulib-tool: Rename generated 'autobuild' script to
51279         'do-autobuild' in --create-megatestdir output.
51280
51281         * doc/gnulib.texi (Build robot for gnulib): Fix.
51282
51283 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51284
51285         * modules/sysexits (Depends-on): Add absolute-header.
51286
51287 2007-04-12  Eric Blake  <ebb9@byu.net>
51288
51289         No need to preserve errno on success.
51290         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51291         Reported by Bruno Haible.
51292
51293 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51294
51295         * MODULES.html.sh (Support for maintaining and releasing
51296         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51297
51298 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51299
51300         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51301
51302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51303
51304         * modules/autobuild: New module.
51305
51306         * m4/autobuild.m4: New file.
51307
51308 2007-04-11  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51311         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51336         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51337         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51338         Reported by Eric Blake.
51339
51340 2007-04-11  Bruno Haible  <bruno@clisp.org>
51341
51342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51343
51344 2007-04-10  Bruno Haible  <bruno@clisp.org>
51345
51346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51347         for NaN and Infinity. Needed on FreeBSD 6.1.
51348         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51349         regarding results for "%010a" of Infinity and NaN.
51350         * tests/test-vasprintf-posix.c (test_function): Likewise.
51351         * tests/test-snprintf-posix.h (test_function): Likewise.
51352         * tests/test-sprintf-posix.h (test_function): Likewise.
51353         * tests/test-fprintf-posix.h (test_function): Likewise.
51354         * tests/test-printf-posix.h (test_function): Likewise.
51355         * tests/test-fprintf-posix.out: Likewise.
51356
51357 2007-04-10  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/locale-tests: New file.
51360         * tests/test-locale.c: New file.
51361
51362         * modules/locale: New file.
51363         * lib/locale_.h: New file.
51364         * m4/locale_h.m4: New file.
51365
51366 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51367             Bruno Haible  <bruno@clisp.org>
51368
51369         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51370         be determined, test for availability of the copysignf, copysign,
51371         copysignl functions.
51372         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51373         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51374         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51375
51376 2007-04-09  Eric Blake  <ebb9@byu.net>
51377
51378         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51379         * modules/stdio (Makefile.am): Support fflush.
51380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51381         * modules/fflush: New file.
51382         * lib/fflush.c: Likewise.
51383         * m4/fflush.m4: Likewise.
51384         * modules/fflush-tests: New test.
51385         * tests/test-fflush.c: Likewise.
51386         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51387
51388 2007-04-06  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51391         (VASNPRINTF): Use signbit for faster determination whether to print a
51392         minus sign.
51393         * modules/vasnprintf (Files): Remove lib/float+.h.
51394         * modules/fprintf-posix (Depends-on): Add signbit.
51395         * modules/snprintf-posix (Depends-on): Likewise.
51396         * modules/sprintf-posix (Depends-on): Likewise.
51397         * modules/vasnprintf-posix (Depends-on): Likewise.
51398         * modules/vasprintf-posix (Depends-on): Likewise.
51399         * modules/vfprintf-posix (Depends-on): Likewise.
51400         * modules/vsnprintf-posix (Depends-on): Likewise.
51401         * modules/vsprintf-posix (Depends-on): Likewise.
51402
51403 2007-04-06  Bruno Haible  <bruno@clisp.org>
51404
51405         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51406         * tests/test-frexpl.c (main): Likewise.
51407         * tests/test-ldexpl.c (main): Likewise.
51408         * modules/frexp-tests (Depends-on): Add signbit.
51409         * modules/frexpl-tests (Depdends-on): Likewise.
51410         * modules/ldexpl-tests (Depdends-on): Likewise.
51411
51412 2007-04-06  Bruno Haible  <bruno@clisp.org>
51413
51414         * modules/signbit-tests: New file.
51415         * tests/test-signbit.c: New file.
51416
51417         * modules/signbit: New file.
51418         * lib/signbitf.c: New file.
51419         * lib/signbitd.c: New file.
51420         * lib/signbitl.c: New file.
51421         * m4/signbit.m4: New file.
51422         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51423         (signbit): New macro.
51424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51425         REPLACE_SIGNBIT.
51426         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51427         REPLACE_FREXPL into math.h.
51428
51429 2007-04-06  Bruno Haible  <bruno@clisp.org>
51430
51431         * modules/isnanf-nolibm-tests: New file.
51432         * tests/test-isnanf.c: New file.
51433
51434         * modules/isnanf-nolibm: New file.
51435         * lib/isnanf.h: New file.
51436         * lib/isnanf.c: New file.
51437         * lib/isnan.c: Consider the USE_FLOAT macro.
51438         * m4/isnanf.m4: New file.
51439
51440 2007-04-06  Bruno Haible  <bruno@clisp.org>
51441
51442         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51443         (Link): New section.
51444
51445         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51446
51447 2007-04-06  Bruno Haible  <bruno@clisp.org>
51448
51449         Assume the 'long double' type.
51450         * m4/longdouble.m4: Remove file.
51451         * config/srclist.txt: Don't mention longdouble.m4.
51452         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51453         * lib/float+.h: Likewise.
51454         * lib/frexp.c: Likewise.
51455         * lib/printf-args.h: Likewise.
51456         * lib/printf-args.c: Likewise.
51457         * lib/printf-frexp.c: Likewise.
51458         * lib/printf-parse.c: Likewise.
51459         * lib/vasnprintf.c: Likewise.
51460         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51461         * m4/intl.m4: Likewise.
51462         * m4/isnanl.m4: Likewise.
51463         * m4/printf.m4: Likewise.
51464         * m4/printf-frexpl.m4: Likewise.
51465         * m4/vasnprintf.m4: Likewise.
51466         * modules/allocsa (Files): Remove m4/longdouble.m4.
51467         * modules/gettext (Files): Likewise.
51468         * modules/relocatable-prog-wrapper (Files): Likewise.
51469         * modules/vasnprintf (Files): Likewise.
51470         * modules/isnanl (Files): Likewise.
51471         (Include): Simplify.
51472         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51473         (Include): Simplify.
51474         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51475         (Include): Simplify.
51476         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51477         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51478         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51479         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51480         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51481         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51482         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51483         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51484         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51486         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51488         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51489         * tests/test-isnanl.c: Likewise.
51490         * tests/test-snprintf-posix.h: Likewise.
51491         * tests/test-sprintf-posix.h: Likewise.
51492         * tests/test-vasnprintf-posix.c: Likewise.
51493         * tests/test-vasnprintf-posix2.c: Likewise.
51494         * tests/test-vasprintf-posix.c: Likewise.
51495
51496 2007-04-06  Bruno Haible  <bruno@clisp.org>
51497
51498         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51499         * lib/math_.h [__DECC]: Include the overridden include file through
51500         #include_next, outside the double-inclusion guard.
51501         * lib/stdio_.h [__DECC]: Likewise.
51502         * lib/stdlib_.h [__DECC]: Likewise.
51503         * lib/string_.h [__DECC]: Likewise.
51504         * lib/time_.h [__DECC]: Likewise.
51505         * lib/wchar_.h [__DECC]: Likewise.
51506         * lib/wctype_.h [__DECC]: Likewise.
51507         * lib/inttypes_.h [__DECC]: Likewise.
51508         Reported by Albert Chin <china@thewrittenword.com> in
51509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51510
51511 2007-04-04  Eric Blake  <ebb9@byu.net>
51512
51513         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51514         1.5.x.
51515
51516 2007-04-04  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51519         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51520
51521 2007-04-04  Bruno Haible  <bruno@clisp.org>
51522
51523         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51524         results for "%010a" of Infinity and NaN.
51525         * tests/test-vasprintf-posix.c (test_function): Likewise.
51526         * tests/test-snprintf-posix.h (test_function): Likewise.
51527         * tests/test-sprintf-posix.h (test_function): Likewise.
51528         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51529         * tests/test-printf-posix.h (test_function): Likewise.
51530         * tests/test-fprintf-posix.out: Update.
51531         Needed for FreeBSD 6.1.
51532
51533 2007-04-04  Bruno Haible  <bruno@clisp.org>
51534
51535         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51536         directly used by the gnulib modules nor by gnulib-tool.
51537
51538 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51539
51540         * DEPENDENCIES: Give overall description of version dependency
51541         desirability.  Use more-typical names for apps.
51542         Add shell, coreutils, diffutils, grep, tar, gzip.
51543
51544 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51545
51546         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51547
51548 2007-04-04  Karl Berry  <karl@gnu.org>
51549
51550         * MODULES.html.sh (func_module): missing '.
51551
51552 2007-04-03  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/argmatch-tests (Makefile.am): New variable
51555         test_argmatch_LDADD.
51556         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51557         * modules/array-list-tests (Makefile.am): New variable
51558         test_array_list_LDADD.
51559         * modules/array-oset-tests (Makefile.am): New variable
51560         test_array_oset_LDADD.
51561         * modules/avltree-list-tests (Makefile.am): New variable
51562         test_avltree_list_LDADD.
51563         * modules/avltree-oset-tests (Makefile.am): New variable
51564         test_avltree_oset_LDADD.
51565         * modules/avltreehash-list-tests (Makefile.am): New variable
51566         test_avltreehash_list_LDADD.
51567         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51568         test_canonicalize_lgpl_LDADD.
51569         * modules/carray-list-tests (Makefile.am): New variable
51570         test_carray_list_LDADD.
51571         * modules/dirname-tests (Makefile.am): New variable
51572         test_dirname_LDADD.
51573         * modules/linked-list-tests (Makefile.am): New variable
51574         test_linked_list_LDADD.
51575         * modules/linkedhash-list-tests (Makefile.am): New variable
51576         test_linkedhash_list_LDADD.
51577         * modules/rbtree-list-tests (Makefile.am): New variable
51578         test_rbtree_list_LDADD.
51579         * modules/rbtree-oset-tests (Makefile.am): New variable
51580         test_rbtree_oset_LDADD.
51581         * modules/rbtreehash-list-tests (Makefile.am): New variable
51582         test_rbtreehash_list_LDADD.
51583         * modules/xvasprintf-tests (Makefile.am): New variable
51584         test_xvasprintf_LDADD.
51585         Reported by Eric Blake.
51586
51587 2007-04-03  Eric Blake  <ebb9@byu.net>
51588
51589         * DEPENDENCIES: Weaken m4 requirements.
51590
51591 2007-04-03  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51594         * modules/isnanl-tests (configure.ac): Likewise.
51595
51596 2007-04-03  Ben Pfaff  <blp@gnu.org>
51597
51598         * modules/iconv_open: Add $(srcdir)/ to source directory
51599         references in Makefile fragments that call gperf, to fix VPATH
51600         builds.
51601
51602 2007-04-03  Bruno Haible  <bruno@clisp.org>
51603
51604         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51605         * lib/ldexpl.c: Undo last change.
51606
51607 2007-04-03  Bruno Haible  <bruno@clisp.org>
51608
51609         * modules/printf-frexpl (Depends-on): Undo last change.
51610         (Files): Add m4/ldexpl.m4.
51611
51612 2007-04-03  Bruno Haible  <bruno@clisp.org>
51613
51614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51615         * modules/isnanl (Link): New section.
51616
51617         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51618         * modules/frexp (Link): New section.
51619
51620         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51621         * modules/frexpl (Link): New section.
51622
51623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51624         * modules/ldexpl (Link): New section.
51625
51626 2007-04-03  Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/TEMPLATE-EXTENDED: New file.
51629         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51630
51631 2007-04-03  Bruno Haible  <bruno@clisp.org>
51632
51633         * DEPENDENCIES: New file.
51634         Suggested by Simon Josefsson.
51635
51636 2007-04-03  Bruno Haible  <bruno@clisp.org>
51637
51638         * doc/gnulib.texi: Escape @.
51639
51640 2007-04-03  James Youngman  <jay@gnu.org>
51641         and Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51644         birthtime on all systems that have birthtime, not just those which
51645         use st_birthtimensec rather than st_birthtim.  Putting zero in
51646         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51647         that the birth time is not available for files on an NFS mount.
51648
51649 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51650
51651         * modules/memxor: Move back from crypto/, suggested by Bruno.
51652         * modules/crypto/hmac-sha1: Fix memxor dependency.
51653
51654         * modules/crypto/gc: Moved from ../.
51655
51656 2007-04-02  Eric Blake  <ebb9@byu.net>
51657
51658         * lib/ldexpl.c (includes): Avoid libm.
51659
51660         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51661
51662 2007-04-02  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51665         on IRIX.
51666
51667 2007-04-02  Bruno Haible  <bruno@clisp.org>
51668
51669         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51670         x86 or x86_64 platforms running MacOS X.
51671         Reported by Ryan Schmidt <@ryandesign.com>.
51672
51673 2007-04-02  Bruno Haible  <bruno@clisp.org>
51674
51675         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51676         i386.
51677
51678 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51679
51680         * modules/crypto/arcfour: Moved from ../.
51681         * modules/crypto/arcfour-tests: Moved from ../.
51682         * modules/crypto/arctwo: Moved from ../.
51683         * modules/crypto/arctwo-tests: Moved from ../.
51684         * modules/crypto/des: Moved from ../.
51685         * modules/crypto/des-tests: Moved from ../.
51686         * modules/crypto/gc-arcfour: Moved from ../.
51687         * modules/crypto/gc-arcfour-tests: Moved from ../.
51688         * modules/crypto/gc-arctwo: Moved from ../.
51689         * modules/crypto/gc-arctwo-tests: Moved from ../.
51690         * modules/crypto/gc-des: Moved from ../.
51691         * modules/crypto/gc-des-tests: Moved from ../.
51692         * modules/crypto/gc-hmac-md5: Moved from ../.
51693         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51694         * modules/crypto/gc-hmac-sha1: Moved from ../.
51695         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51696         * modules/crypto/gc-md2: Moved from ../.
51697         * modules/crypto/gc-md2-tests: Moved from ../.
51698         * modules/crypto/gc-md4: Moved from ../.
51699         * modules/crypto/gc-md4-tests: Moved from ../.
51700         * modules/crypto/gc-md5: Moved from ../.
51701         * modules/crypto/gc-md5-tests: Moved from ../.
51702         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51703         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51704         * modules/crypto/gc-random: Moved from ../.
51705         * modules/crypto/gc-rijndael: Moved from ../.
51706         * modules/crypto/gc-rijndael-tests: Moved from ../.
51707         * modules/crypto/gc-sha1: Moved from ../.
51708         * modules/crypto/gc-sha1-tests: Moved from ../.
51709         * modules/crypto/gc-tests: Moved from ../.
51710         * modules/crypto/hmac-md5: Moved from ../.
51711         * modules/crypto/hmac-md5-tests: Moved from ../.
51712         * modules/crypto/hmac-sha1: Moved from ../.
51713         * modules/crypto/hmac-sha1-tests: Moved from ../.
51714         * modules/crypto/md2: Moved from ../.
51715         * modules/crypto/md2-tests: Moved from ../.
51716         * modules/crypto/md4: Moved from ../.
51717         * modules/crypto/md4-tests: Moved from ../.
51718         * modules/crypto/md5: Moved from ../.
51719         * modules/crypto/md5-tests: Moved from ../.
51720         * modules/crypto/memxor: Moved from ../.
51721         * modules/crypto/rijndael: Moved from ../.
51722         * modules/crypto/rijndael-tests: Moved from ../.
51723         * modules/crypto/sha1: Moved from ../.
51724
51725 2007-03-30  James Youngman  <jay@gnu.org>
51726
51727         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51728         rename() to change the ctime of a file (because ctime is unaffected
51729         by rename on jfs2 on AIX 5.1).
51730         (main): Start by doing cleanup, in case a previous run failed leaving
51731         test files behind.
51732
51733 2007-03-31  Bruno Haible  <bruno@clisp.org>
51734
51735         Support old proprietary implementations of iconv.
51736         * modules/iconv_open: New file.
51737         * lib/iconv_.h: New file.
51738         * m4/iconv_h.m4: New file.
51739         * lib/iconv_open.c: New file.
51740         * lib/iconv_open-aix.gperf: New file.
51741         * lib/iconv_open-hpux.gperf: New file.
51742         * lib/iconv_open-irix.gperf: New file.
51743         * lib/iconv_open-osf.gperf: New file.
51744         * m4/iconv_open.m4: New file.
51745         * modules/linebreak (Depends-on): Add iconv_open.
51746         * modules/striconv (Depends-on): Likewise.
51747         * modules/striconveh (Depends-on): Likewise.
51748         * modules/unicodeio (Depends-on): Likewise.
51749         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51750         (iconv_t)(-1).
51751         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51752         conversion if cd is (iconv_t)(-1).
51753         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51754         is not possible.
51755
51756 2007-03-31  Bruno Haible  <bruno@clisp.org>
51757
51758         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51759         work on Solaris either. Protect also second use of "autodetect_jp".
51760
51761 2007-03-31  Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51764         the function is not present.
51765
51766 2007-03-31  Bruno Haible  <bruno@clisp.org>
51767
51768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51769         the function is not present.
51770
51771 2007-03-31  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51774         a bug in HP-UX iconv_open().
51775
51776 2007-03-31  Bruno Haible  <bruno@clisp.org>
51777
51778         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51779         (Mathematics <math.h>): New section, add fpieee.
51780         (Input/output <stdio.h>): Add fseterr.
51781         (Mathematics <math.h>): New section, add printf-frexp.
51782         (Container data structures): Add sublist.
51783         (Core language properties): Add fpucw, inline.
51784         (Functions for greatest-width integer types <inttypes.h>): Add
51785         imaxabs, imaxdiv, inttypes.
51786         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51787         isnanl-nolibm, ldexp.
51788         (Mathematics <math.h>): New section, add printf-frexpl.
51789         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51790         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51791         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51792         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51793         (Unicode string functions): Add unistr/u*-mbtoucr.
51794         (Java): Add javacomp-script, javaexec-script.
51795         (C#): Add csharpcomp-script, csharpexec-script.
51796         (Support for building libraries and executables): Add havelib,
51797         relocatable-*.
51798         (Support for maintaining and releasing projects): Renamed from
51799         'Support for maintaining and release projects'. Add announce-gen.
51800
51801 2007-03-31  Bruno Haible  <bruno@clisp.org>
51802
51803         * README: Talk primarily about git.
51804         (git and CVS): Renamed from CVS.
51805         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51806         gnulib is available through git.
51807         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51808
51809 2007-03-30  Bruno Haible  <bruno@clisp.org>
51810
51811         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51812         * lib/poll_.h: Likewise.
51813         * lib/stat_.h: Likewise.
51814         * lib/sys_time_.h: Likewise.
51815         * lib/sysexit_.h: Likewise.
51816         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51817         * lib/stdbool_.h: Likewise.
51818         * lib/byteswap_.h: Add double-inclusion guard.
51819
51820 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51821
51822         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51823
51824 2007-03-30  Karl Berry  <karl@gnu.org>
51825
51826         * config/srclist-update: double space after USA in the license
51827         substitution, since that's how it's usually (?) written.
51828
51829 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51832         reported by Bruno Haible.
51833
51834 2007-03-29  Bruno Haible  <bruno@clisp.org>
51835
51836         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51837         a bug in AIX iconv().
51838
51839 2007-03-29  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/ldexpl-tests: New file.
51842         * tests/test-ldexpl.c: New file.
51843
51844 2007-03-29  Bruno Haible  <bruno@clisp.org>
51845
51846         * lib/ldexpl.c: Include fpucw.h.
51847         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51848         multiplication.
51849         * modules/ldexpl (Depends-on): Add fpucw.
51850
51851 2007-03-29  Bruno Haible  <bruno@clisp.org>
51852
51853         * modules/ldexpl: New file.
51854         * m4/ldexpl.m4: New file.
51855         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51856         set.
51857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51858         REPLACE_LDEXPL.
51859         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51860         REPLACE_LDEXPL.
51861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51862         gl_FUNC_LDEXPL_WORKS.
51863         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51864         * modules/mathl (Files): Remove lib/ldexpl.c.
51865         (Depends-on): Add ldexpl.
51866
51867 2007-03-29  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51870
51871 2007-03-29  Bruno Haible  <bruno@clisp.org>
51872
51873         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51874         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51875         and possibly also HP-UX.
51876         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51877         work on AIX, IRIX, HP-UX, OSF/1.
51878         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51879         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51880         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51881         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51882         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51883         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51884
51885 2007-03-29  Bruno Haible  <bruno@clisp.org>
51886
51887         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51888
51889 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51892         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51893
51894 2007-03-29  Eric Blake  <ebb9@byu.net>
51895
51896         * lib/acl-internal.h: Remove redundant include.
51897         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51898         Cygwin when a file is locked.
51899
51900 2007-03-29  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51903         file.
51904         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51905
51906 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51909         try to remove a parent directory if the child couldn't be removed
51910         (except for the first rmdir, which could fail because the child
51911         doesn't exist).  Problem reported by Jeff Blaine in
51912         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51913
51914 2007-03-28  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/striconveh.c (utf8conv_carefully): New function.
51917         (mem_cd_iconveh_internal): Invoke it.
51918
51919 2007-03-28  Bruno Haible  <bruno@clisp.org>
51920
51921         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51922         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51923         input.
51924         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51925         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51926         unistr/u8-uctomb.
51927
51928 2007-03-28  Bruno Haible  <bruno@clisp.org>
51929
51930         * modules/unistr/u8-mbtoucr: New file.
51931         * lib/unistr/u8-mbtoucr.c: New file.
51932         * modules/unistr/u16-mbtoucr: New file.
51933         * lib/unistr/u16-mbtoucr.c: New file.
51934         * modules/unistr/u16-mbtoucr: New file.
51935         * lib/unistr/u16-mbtoucr.c: New file.
51936         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51937
51938 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51939             Bruno Haible  <bruno@clisp.org>
51940
51941         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51942         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51943         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51944
51945         * m4/stdio_h.m4: Add stubs for vasprintf too.
51946
51947         * modules/stdio: Support vasprintf in sed command.
51948
51949         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51950         vasprintf.h.  Add stdio module indicator.
51951
51952         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51953         vasprintf.h.
51954
51955         * lib/vasprintf.h: File removed.
51956
51957         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51958         * lib/vasprintf.c: Ditto.
51959         * lib/xvasprintf.c: Ditto.
51960         * tests/test-vasprintf-posix.c: Ditto.
51961         * tests/test-vasprintf.c: Ditto.
51962
51963 2007-03-27  Bruno Haible  <bruno@clisp.org>
51964
51965         Make vasnprintf multithread-safe.
51966         * lib/vasnprintf.c (decimal_point_char): New function.
51967         (VASNPRINTF): Use it.
51968         Suggested by Simon Josefsson.
51969
51970 2007-03-27  Eric Blake  <ebb9@byu.net>
51971
51972         Support sub-second birthtime on cygwin.
51973         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51974         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51975         (get_stat_birthtime): Also work with st_birthtim.
51976
51977 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51980         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51981         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51982         (get_stat_birthtime_ns): Simplify compile-time tests.
51983         (get_stat_birthtime): Change the API to look like
51984         get_stat_mtime etc., except return a negative tv_nsec on error.
51985         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51986         Don't check for "spare" fields.
51987         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51988         or for struct stat.st_birthtime, as these tests aren't used.
51989         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51990
51991 2007-03-27  Bruno Haible  <bruno@clisp.org>
51992
51993         * lib/stat-time.h: Include <sys/stat.h>.
51994
51995 2007-03-27  James Youngman  <jay@gnu.org>
51996
51997         * lib/stat-time.h (get_stat_birthtime): New function for
51998           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51999         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52000           and its variants.
52001         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52002         * modules/stat-time-test: New file.
52003         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52004
52005 2007-03-26  Bruno Haible  <bruno@clisp.org>
52006
52007         Better support of signalling NaNs.
52008         * lib/atanl.c: Include isnanl.h.
52009         (atanl): Perform test for NaN at the beginning of the function and
52010         through a call to isnanl.
52011         * lib/cosl.c: Include isnanl.h.
52012         (cosl): Perform test for NaN at the beginning of the function and
52013         through a call to isnanl.
52014         * lib/ldexpl.c: Include isnanl.h.
52015         (ldexpl): Perform test for NaN through a call to isnanl.
52016         * lib/logl.c: Include isnanl.h.
52017         (logl): Perform test for NaN at the beginning of the function and
52018         through a call to isnanl.
52019         * lib/sinl.c: Include isnanl.h.
52020         (sinl): Perform test for NaN at the beginning of the function and
52021         through a call to isnanl.
52022         * lib/sqrtl.c: Include isnanl.h.
52023         (sqrtl): Perform test for NaN at the beginning of the function and
52024         through a call to isnanl.
52025         * lib/tanl.c: Include isnanl.h.
52026         (tanl): Perform test for NaN at the beginning of the function and
52027         through a call to isnanl.
52028         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52029         * modules/mathl (Depends-on): Add isnanl.
52030
52031 2007-03-26  Eric Blake  <ebb9@byu.net>
52032
52033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52034         regression in logic sense of previous patch.
52035
52036 2007-03-26  Bruno Haible  <bruno@clisp.org>
52037
52038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52039         unportable shell command "if ! ...".
52040         Reported by Ralf Wildenhues.
52041
52042 2007-03-25  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52045         <sysexits.h> file, and only add EX_CONFIG.
52046         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52047         absolute file name and whether it is sufficient. Substitute also
52048         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52049         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52050         ABSOLUTE_SYSEXITS_H into sysexits.h.
52051
52052 2007-03-25  Bruno Haible  <bruno@clisp.org>
52053
52054         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52055         hints is NULL.
52056
52057 2007-03-25  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52060         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52061
52062 2007-03-25  Bruno Haible  <bruno@clisp.org>
52063
52064         * lib/vasnprintf.c: Include langinfo.h.
52065         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52066         multithread-safe.
52067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52069         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52070         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52071         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52073         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52074         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52075         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52076         Reported by Simon Josefsson.
52077
52078 2007-03-25  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52081         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52082         * modules/vasnprintf (Depends-on): Add stdint.
52083
52084 2007-03-25  Bruno Haible  <bruno@clisp.org>
52085
52086         * modules/fpieee: New file.
52087         * m4/fpieee.m4: New file.
52088         * modules/isnan-nolibm (Depends-on): Add fpieee.
52089         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52090         * modules/isnanl (Depends-on): Add fpieee.
52091
52092 2007-03-25  Bruno Haible  <bruno@clisp.org>
52093
52094         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52095
52096 2007-03-25  Bruno Haible  <bruno@clisp.org>
52097
52098         Avoid test failures on IRIX 6.5.
52099         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52100         (main): Use it.
52101         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52102         macros.
52103         (main): Use them.
52104
52105 2007-03-25  Bruno Haible  <bruno@clisp.org>
52106
52107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52108         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52109         exists but doesn't work.
52110         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52111         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52113         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52114         math.h.
52115
52116 2007-03-25  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52119         returns inf. Needed on IRIX 6.5.
52120
52121 2007-03-25  Bruno Haible  <bruno@clisp.org>
52122
52123         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52124         (main): Use isnanl instead of x != x idiom.
52125         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52126
52127         * tests/test-frexp.c: Include isnan.h.
52128         (main): Use isnan instead of x != x idiom.
52129         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52130
52131 2007-03-25  Bruno Haible  <bruno@clisp.org>
52132
52133         * tests/test-frexp.c (NaN): New function/macro.
52134         (main): Use it instead of 0.0 / 0.0.
52135         * tests/test-isnan.c (NaN): New function/macro.
52136         (main): Use it instead of 0.0 / 0.0.
52137         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52138         (test_function): Use it instead of 0.0 / 0.0.
52139         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52140         (test_function): Use it instead of 0.0 / 0.0.
52141         * tests/test-snprintf-posix.h (NaN): New function/macro.
52142         (test_function): Use it instead of 0.0 / 0.0.
52143         * tests/test-sprintf-posix.h (NaN): New function/macro.
52144         (test_function): Use it instead of 0.0 / 0.0.
52145         * tests/test-fprintf-posix.h (NaN): New function/macro.
52146         (test_function): Use it instead of 0.0 / 0.0.
52147         * tests/test-printf-posix.h (NaN): New function/macro.
52148         (test_function): Use it instead of 0.0 / 0.0.
52149
52150         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52151
52152 2007-03-25  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52155
52156 2007-03-25  Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/regexec.c (merge_state_with_log): Make static.
52159
52160 2007-03-25  Bruno Haible  <bruno@clisp.org>
52161
52162         * lib/trigl.c (kernel_rem_pio2): Make static.
52163
52164 2007-03-25  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/sincosl.c (sincosl_table): Make static.
52167
52168 2007-03-25  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52171         if the compiler does not support C99.
52172
52173 2007-03-25  Bruno Haible  <bruno@clisp.org>
52174
52175         * modules/time (Makefile.am): Ensure all rule action lines start with a
52176         tab.
52177
52178 2007-03-24  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/tsearch-tests: New file.
52181         * tests/test-tsearch.sh: New file.
52182         * tests/test-tsearch.c: New file, mostly copied from glibc.
52183
52184         * modules/search-tests: New file.
52185         * tests/test-search.c: New file.
52186
52187         * modules/search: New file.
52188         * lib/search_.h: New file, incorporating lib/tsearch.h.
52189         * m4/search_h.m4: New file.
52190         * lib/tsearch.h: Remove file.
52191         * lib/tsearch.c: Include search.h instead of tsearch.h.
52192         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52193         HAVE_TSEARCH.
52194         * modules/tsearch (Files): Remove lib/tsearch.h.
52195         (Depends-on): Add search.
52196         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52197         (Include): Change tsearch.h into search.h.
52198
52199 2007-03-24  Bruno Haible  <bruno@clisp.org>
52200
52201         * modules/fpucw: New file.
52202         * lib/fpucw.h: New file.
52203         * lib/frexp.c: Include fpucw.h.
52204         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52205         (FUNC): Use them.
52206         * lib/printf-frexp.c: Include fpucw.h.
52207         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52208         (FUNC): Use them.
52209         * lib/vasnprintf.c: Include fpucw.h.
52210         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52211         'long double' calculations.
52212         * tests/test-frexpl.c: Include fpucw.h.
52213         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52214         * tests/test-printf-frexpl.c: Include fpucw.h.
52215         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52216         * modules/frexpl (Depends-on): Add fpucw.
52217         * modules/printf-frexpl (Depends-on): Likewise.
52218         * modules/fprintf-posix (Depends-on): Likewise.
52219         * modules/snprintf-posix (Depends-on): Likewise.
52220         * modules/sprintf-posix (Depends-on): Likewise.
52221         * modules/vasnprintf-posix (Depends-on): Likewise.
52222         * modules/vasprintf-posix (Depends-on): Likewise.
52223         * modules/vfprintf-posix (Depends-on): Likewise.
52224         * modules/vsnprintf-posix (Depends-on): Likewise.
52225         * modules/vsprintf-posix (Depends-on): Likewise.
52226         * modules/frexpl-tests (Depends-on): Likewise.
52227         * modules/printf-frexpl-tests (Depends-on): Likewise.
52228
52229 2007-03-24  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/float+.h: New file.
52232         * lib/isnan.c: Include float+.h.
52233         (SIZE): New macro.
52234         (FUNC): Compare only SIZE bytes of the value.
52235         * lib/vasnprintf.c: Include float+.h.
52236         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52237         SIZEOF_LDBL or SIZEOF_DBL bytes.
52238         * modules/isnan-nolibm (Files): Add lib/float+.h.
52239         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52240         * modules/isnanl (Files): Add lib/float+.h.
52241         * modules/vasnprintf (Files): Add lib/float+.h.
52242
52243 2007-03-24  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52246         include isnanl-nolibm.h.
52247
52248 2007-03-24  Bruno Haible  <bruno@clisp.org>
52249
52250         * tests/test-read-file.c (main): Don't produce spurious output for
52251         expected situations. Make the test fail if it encountered unexpected
52252         results.
52253
52254 2007-03-24  Bruno Haible  <bruno@clisp.org>
52255
52256         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52257         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52258
52259 2007-03-24  Bruno Haible  <bruno@clisp.org>
52260
52261         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52262
52263 2007-03-24  Bruno Haible  <bruno@clisp.org>
52264
52265         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52266         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52267
52268         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52269         * modules/utf8-ucs4: Turn into a symbolic link to module
52270         unistr/u8-mbtouc.
52271
52272         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52273         utf8-ucs4-unsafe.
52274         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52275         unistr/u8-mbtouc-unsafe.
52276
52277         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52278         * modules/utf16-ucs4: Turn into a symbolic link to module
52279         unistr/u16-mbtouc.
52280
52281         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52282         utf16-ucs4-unsafe.
52283         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52284         unistr/u16-mbtouc-unsafe.
52285
52286         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52287         * modules/ucs4-utf8: Turn into a symbolic link to module
52288         unistr/u8-ubtomb.
52289
52290         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52291         * modules/ucs4-utf16: Turn into a symbolic link to module
52292         unistr/u16-ubtomb.
52293
52294 2007-03-24  Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52297         Enable the function only if HAVE_INLINE.
52298         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52299         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52300         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52301         Enable the function only if HAVE_INLINE.
52302         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52303         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52304         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52305         Enable the function only if HAVE_INLINE.
52306         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52307         Enable the function only if HAVE_INLINE.
52308         * modules/utf8-ucs4: Update.
52309         * modules/utf8-ucs4-unsafe: Update.
52310         * modules/utf16-ucs4: Update.
52311         * modules/utf16-ucs4-unsafe: Update.
52312         * modules/ucs4-utf8: Update.
52313         * modules/ucs4-utf16: Update.
52314
52315 2007-03-24  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/utf8-ucs4.h: Remove file.
52318         * lib/utf8-ucs4-unsafe.h: Remove file.
52319         * lib/utf16-ucs4.h: Remove file.
52320         * lib/utf16-ucs4-unsafe.h: Remove file.
52321         * lib/ucs4-utf8.h: Remove file.
52322         * lib/ucs4-utf16.h: Remove file.
52323         * lib/unistr.h: Include their previous contents.
52324         * m4/utf-ucs4.m4: Remove file.
52325         * m4/ucs4-utf.m4: Remove file.
52326         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52327         (Depends-on): Add unistr/base.
52328         (configure.ac): Remove gl_UTF_UCS4.
52329         (Makefile.am): Update.
52330         (Include): Change to unistr.h.
52331         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52332         (Depends-on): Add unistr/base.
52333         (configure.ac): Remove gl_UTF_UCS4.
52334         (Makefile.am): Update.
52335         (Include): Change to unistr.h.
52336         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52337         (Depends-on): Add unistr/base.
52338         (configure.ac): Remove gl_UTF_UCS4.
52339         (Makefile.am): Update.
52340         (Include): Change to unistr.h.
52341         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52342         (Depends-on): Add unistr/base.
52343         (configure.ac): Remove gl_UTF_UCS4.
52344         (Makefile.am): Update.
52345         (Include): Change to unistr.h.
52346         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52347         (Depends-on): Add unistr/base.
52348         (configure.ac): Remove gl_UCS4_UTF.
52349         (Makefile.am): Update.
52350         (Include): Change to unistr.h.
52351         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52352         (Depends-on): Add unistr/base.
52353         (configure.ac): Remove gl_UCS4_UTF.
52354         (Makefile.am): Update.
52355         (Include): Change to unistr.h.
52356         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52357         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52358         utf8-ucs4-unsafe.h.
52359         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52360         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52361         utf16-ucs4-unsafe.h.
52362         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52363         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52364         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52365         * lib/unistr/u8-strchr.c: Likewise.
52366         * lib/unistr/u8-strrchr.c: Likewise.
52367         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52368         * lib/unistr/u16-strchr.c: Likewise.
52369         * lib/unistr/u16-strrchr.c: Likewise.
52370         * lib/striconveh.c: Update.
52371         * lib/linebreak.c: Update.
52372
52373 2007-03-24  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52376         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52377
52378 2007-03-22  Bruno Haible  <bruno@clisp.org>
52379
52380         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52381
52382 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * MODULES.html.sh (File system functions): New module write-any-file.
52385         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52386         * m4/write-any-file.m4: New files.
52387
52388 2007-03-23  Eric Blake  <ebb9@byu.net>
52389
52390         * gnulib-tool: Rearrange space-tab sequences, since some editors
52391         like to eat them.
52392
52393 2007-03-23  Eric Blake  <ebb9@byu.net>
52394
52395         * lib/version-etc.c (version_etc_va): Update license wording to
52396         be more concise.  Recommended by Richard Stallman.
52397
52398 2007-03-22  Bruno Haible  <bruno@clisp.org>
52399
52400         * lib/poll.c (MSG_PEEK): New fallback definition.
52401
52402 2007-03-22  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52405         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52406         (main): Update.
52407         Fixes a compilation error on BeOS.
52408
52409 2007-03-22  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/frexpl-tests: New file.
52412         * tests/test-frexpl.c: New file.
52413
52414         * modules/frexpl: New file.
52415         * m4/frexpl.m4: New file.
52416         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52417         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52419         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52420         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52421         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52422
52423 2007-03-22  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/frexpl.c: Share code with lib/frexp.c.
52426         * modules/mathl (Files): Add lib/frexp.c.
52427         (Depends-on): Add isnanl-nolibm.
52428
52429 2007-03-22  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/printf-frexp (Files): Add m4/frexp.m4.
52432         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52433         only if the found frexp function actually works.
52434
52435 2007-03-22  Bruno Haible  <bruno@clisp.org>
52436
52437         * lib/frexp.c: Remove older implementation that uses divisions.
52438
52439 2007-03-21  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/frexp-tests: New file.
52442         * tests/test-frexp.c: New file.
52443
52444         * modules/frexp: New file.
52445         * lib/frexp.c: New file.
52446         * m4/frexp.m4: New file.
52447         * lib/math_.h (frexp): New declaration.
52448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52449         REPLACE_FREXP.
52450         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52451
52452 2007-03-21  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/isnanl-tests: New file.
52455         * tests/test-isnanl.c: New file.
52456
52457         * modules/isnanl: New file.
52458         * lib/isnanl.h: New file.
52459         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52460         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52461         gl_FUNC_ISNANL_WORKS.
52462         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52463         New macros.
52464
52465 2007-03-21  Bruno Haible  <bruno@clisp.org>
52466
52467         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52468         lib/isnanl.h.
52469         (Include): Update.
52470         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52471         * lib/vasnprintf.c: Update.
52472         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52473         tests/test-isnanl.h, remove tests/test-isnanl.c.
52474         (Makefile.am): Update.
52475         * tests/test-isnanl-nolibm.c: New file.
52476         * tests/test-isnanl.h: New file.
52477         * tests/test-isnanl.c: Remove file.
52478
52479 2007-03-21  Jim Meyering  <jim@meyering.net>
52480
52481         When trying to open ".", treat ESTALE like EACCES.
52482         * lib/savewd.c (savewd_save): Resort to forking not just upon
52483         failure with EACCES, but also when errno is ESTALE.
52484
52485 2007-03-20  Bruno Haible  <bruno@clisp.org>
52486
52487         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52488         Needed on AIX 5.1. Reported by Matthew Woehlke.
52489
52490 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         Suggestions by Bruno Haible:
52493         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52494         our own.
52495         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52496         * modules/acl (Depends-on): Add gettext.
52497
52498 2007-03-19  Bruno Haible  <bruno@clisp.org>
52499
52500         * modules/iconvme: Remove file.
52501         * lib/iconvme.h: Remove file.
52502         * lib/iconvme.c: Remove file.
52503         * m4/iconvme.m4: Remove file.
52504
52505 2007-03-19  Bruno Haible  <bruno@clisp.org>
52506
52507         * doc/relocatable-maint.texi: Break long shell script line.
52508         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52509
52510 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52511
52512         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52513         handle file_has_acl.
52514         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52515         * lib/acl.c: Move header inclusions and related macro defns into
52516         lib/acl-internal.h.
52517         (S_ISLNK): Remove defn, since that's now done for us.
52518         (file_has_acl): Move to lib/file-has-acl.c.
52519         Call acl_trivial if available.  This is the crucial part of the fix.
52520         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52521         shared within the library.  Rewrite a bit, partly to make it compatible
52522         with the GNU coding style.
52523         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52524         Remove unnecessary double-quotes.
52525         Don't test for acl_to_text; the build will catch that.
52526         Replace acl_entries if it doesn't exist and it is needed.
52527         Check for -lsec and acl_trivial (as used on Solaris 10).
52528         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52529         lib/file-has-acl.c.
52530         (Depends-on): Add sys_stat, for S_ISLNK.
52531
52532 2007-03-19  Ben Pfaff  <blp@gnu.org>
52533
52534         * doc/gnulib.texi: Fix typos.
52535         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52536
52537 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52540         If size is zero here, buf must be zero.
52541
52542 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52543
52544         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52545         <bruno@clisp.org>.
52546
52547 2007-03-18  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52550         Suggested by Eric Blake.
52551
52552 2007-03-18  Ben Pfaff  <blp@gnu.org>
52553
52554         * doc/relocatable.texi: Recommend using as prefix a directory
52555         that does not exist and will never be created.  Based on
52556         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52557         and others.
52558
52559 2007-03-17  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/fchownat.c: Include lchown.h.
52562
52563 2007-03-17  Bruno Haible  <bruno@clisp.org>
52564
52565         Fix endless loop when the given allocated size was > INT_MAX.
52566         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52567         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52568         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52569         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52570         * lib/sprintf.c (sprintf): Likewise.
52571
52572 2007-03-17  Bruno Haible  <bruno@clisp.org>
52573
52574         * tests/test-argp-2.sh (func_compare): Output a context diff.
52575
52576 2007-03-17  Bruno Haible  <bruno@clisp.org>
52577
52578         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52579         locale's decimal-point character.
52580
52581 2007-03-17  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52584         before comparing it. Needed because on some platforms (e.g. x86) a
52585         'long double' occupies less bytes than sizeof (long double).
52586
52587 2007-03-17  Bruno Haible  <bruno@clisp.org>
52588
52589         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52590         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52591         * tests/test-getaddrinfo.c (simple): Likewise.
52592         * tests/test-read-file.c (main): Likewise.
52593
52594 2007-03-17  Bruno Haible  <bruno@clisp.org>
52595
52596         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52597
52598 2007-03-17  Bruno Haible  <bruno@clisp.org>
52599
52600         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52601         unused variable.
52602
52603 2007-03-17  Bruno Haible  <bruno@clisp.org>
52604
52605         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52606         * tests/test-c-strncasecmp.c: Likewise.
52607
52608 2007-03-17  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/stdlib (Depends-on): Add unistd.
52611         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52612         Needed for MacOS X 10.3.
52613
52614 2007-03-17  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52617
52618 2007-03-17  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52621
52622 2007-03-17  Bruno Haible  <bruno@clisp.org>
52623
52624         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52625         to reflect files copied from gnulib (with or without modifications).
52626         Suggested by Jim Meyering.
52627
52628 2007-03-17  Eric Blake  <ebb9@byu.net>
52629
52630         * NEWS: Document stdlib change from 2007-02-18.
52631
52632 2007-03-17  Jim Meyering  <jim@meyering.net>
52633
52634         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52635         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52636         someone uses a name containing shell meta-characters.
52637         Reported by Alfred M. Szmidt.
52638
52639         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52640
52641 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52642
52643         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52644         and copy gettext configuration files only if configure.ac contains
52645         a use of AM_GNU_GETTEXT_VERSION.
52646
52647 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52648
52649         * build-aux/bootstrap (gnulib_name): New variable.
52650         (gnulib_tool_options): Use it.
52651
52652 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52653
52654         * tests/test-des.c: Use new namespace.
52655
52656 2007-03-15  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52659         Reported by James Youngman <jay@gnu.org>.
52660
52661 2007-03-15  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52664         declared prototype. Needed with cc on OSF/1 5.1.
52665
52666 2007-03-15  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52669         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52670         (struct gl_list_implementation): Add dispose_fn argument to the
52671         'create_empty', 'create' methods.
52672         (struct gl_list_impl_base): Add field 'dispose_fn'.
52673         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52674         argument.
52675         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52676         dispose_fn argument.
52677         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52678         dispose_fn on the dropped values.
52679         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52680         dispose_fn argument.
52681         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52682         dropped values.
52683         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52684         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52685         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52686         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52687         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52688         argument.
52689         (gl_tree_list_free): Call dispose_fn on the dropped values.
52690         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52691         the dropped values.
52692         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52693         Add dispose_fn argument.
52694         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52695         Call dispose_fn on the dropped values.
52696         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52697         Add dispose_fn argument.
52698         (gl_sublist_create): Initialize the 'dispose_fn' field.
52699         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52700         * tests/test-array_list.c (main): Update.
52701         * tests/test-carray_list.c (main): Update.
52702         * tests/test-avltree_list.c (main): Update.
52703         * tests/test-rbtree_list.c (main): Update.
52704         * tests/test-avltreehash_list.c (main): Update.
52705         * tests/test-rbtreehash_list.c (main): Update.
52706         * tests/test-linked_list.c (main): Update.
52707         * tests/test-linkedhash_list.c (main): Update.
52708         * tests/test-array_oset.c (main): Update.
52709
52710 2007-03-15  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52713         (gl_oset_create_empty): Add dispose_fn argument.
52714         (struct gl_oset_implementation): Add dispose_fn argument to
52715         'create_empty' method.
52716         (struct gl_oset_impl_base): Add dispose_fn field.
52717         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52718         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52719         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52720         values.
52721         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52722         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52723         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52724         dropped value.
52725         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52726         dropped value.
52727         * tests/test-array_oset.c (main): Update.
52728         * tests/test-avltree_oset.c (main): Update.
52729         * tests/test-rbtree_oset.c (main): Update.
52730         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52731
52732 2007-03-13  Bruno Haible  <bruno@clisp.org>
52733
52734         * tests/test-stdbool.c (i): Update after last patch.
52735
52736 2007-03-12  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52739         the iswprint macro. Needed on Solaris 2.5.1.
52740
52741 2007-03-12  Bruno Haible  <bruno@clisp.org>
52742
52743         * tests/test-printf-frexp.c (main): Declare x as volatile.
52744
52745 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52746
52747         * doc/gnulib.texi (Build robot for gnulib): New section.
52748
52749 2007-03-12  Jim Meyering  <jim@meyering.net>
52750
52751         * build-aux/bootstrap: New file.
52752         * build-aux/bootstrap.conf: New file, from coreutils.
52753
52754 2007-03-11  Bruno Haible  <bruno@clisp.org>
52755
52756         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52757
52758 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52759
52760         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52761         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52762         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52763
52764 2007-03-11  Bruno Haible  <bruno@clisp.org>
52765
52766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52767         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52768
52769 2007-03-11  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52772         formula. Needed for SunPRO C 5.0.
52773
52774 2007-03-11  Bruno Haible  <bruno@clisp.org>
52775
52776         * modules/long-options (Depends-on): Add getopt.
52777
52778 2007-03-11  Bruno Haible  <bruno@clisp.org>
52779
52780         * modules/modechange (Depends-on): Add stdbool.
52781
52782 2007-03-11  Bruno Haible  <bruno@clisp.org>
52783
52784         * modules/i-ring (Depends-on): Add stdbool.
52785
52786 2007-03-11  Bruno Haible  <bruno@clisp.org>
52787
52788         * modules/gc-des (Depends-on): Add stdbool.
52789
52790 2007-03-11  Bruno Haible  <bruno@clisp.org>
52791
52792         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52793
52794 2007-03-11  Bruno Haible  <bruno@clisp.org>
52795
52796         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52797
52798 2007-03-11  Bruno Haible  <bruno@clisp.org>
52799
52800         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52801
52802 2007-03-11  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/vasnprintf.c (sprintf): Undefine.
52805
52806 2007-03-11  Bruno Haible  <bruno@clisp.org>
52807
52808         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52809         initializers in SunPRO C and Compaq C compilers.
52810
52811 2007-03-11  Bruno Haible  <bruno@clisp.org>
52812
52813         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52814         decrementing code ANSI C compliant.
52815
52816 2007-03-11  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52819         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52820
52821 2007-03-11  Bruno Haible  <bruno@clisp.org>
52822
52823         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52824         <stdbool.h> substitute doesn't pass.
52825
52826 2007-03-11  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52829
52830 2007-03-11  Bruno Haible  <bruno@clisp.org>
52831
52832         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52833         script, for submission to autobuild.josefsson.org.
52834
52835 2007-03-10  Bruno Haible  <bruno@clisp.org>
52836
52837         * modules/canonicalize-lgpl-tests: New file.
52838         * tests/test-canonicalize-lgpl.sh: New file.
52839         * tests/test-canonicalize-lgpl.c: New file.
52840
52841         * modules/c-strcase-tests: New file.
52842         * tests/test-c-strcase.sh: New file.
52843         * tests/test-c-strcasecmp.c: New file.
52844         * tests/test-c-strncasecmp.c: New file.
52845
52846         * modules/atexit-tests: New file.
52847         * tests/test-atexit.sh: New file.
52848         * tests/test-atexit.c: New file.
52849
52850 2007-03-10  Bruno Haible  <bruno@clisp.org>
52851
52852         * tests/test-binary-io.sh: Use temporary filenames that are not so
52853         likely to clash with those of other tests (in a parallel make).
52854         * tests/test-binary-io.c: Likewise.
52855
52856 2007-03-10  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52859         fallback; use #error instead.
52860         Suggested by Simon Josefsson.
52861
52862 2007-03-10  Bruno Haible  <bruno@clisp.org>
52863
52864         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52865         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52866         first and the last.
52867
52868 2007-03-10  Bruno Haible  <bruno@clisp.org>
52869
52870         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52871
52872 2007-03-10  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52875         "make distcheck".
52876         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52877         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52878         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52879
52880 2007-03-10  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52883         variable.
52884         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52885         variable.
52886
52887 2007-03-09  Eric Blake  <ebb9@byu.net>
52888         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52889
52890         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52891         types are not being provided by gnulib.
52892         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52893         types are supported.
52894
52895 2007-03-10  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/stdio_.h (__attribute__): New macro.
52898         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52899         vsprintf): Specify __attribute__ __format__ for GCC.
52900         Suggested by Eric Blake.
52901
52902 2007-03-09  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/printf-posix-tests: New file.
52905         * tests/test-printf-posix.sh: New file.
52906         * tests/test-printf-posix.c: New file.
52907
52908         * modules/printf-posix: New file.
52909         * lib/printf.c: New file.
52910         * m4/printf-posix-rpl.m4: New file.
52911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52912         REPLACE_PRINTF.
52913         * lib/stdio_.h (printf): New declaration.
52914         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52915         ____strfmon____): New macros.
52916         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52917         REPLACE_PRINTF.
52918
52919 2007-03-09  Bruno Haible  <bruno@clisp.org>
52920
52921         * tests/test-vasnprintf-posix2.sh: New file.
52922         * tests/test-vasnprintf-posix2.c: New file.
52923         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52924         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52925         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52926
52927         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52928         a locale dependent decimal point, rather than always '.'.
52929
52930 2007-03-09  Eric Blake  <ebb9@byu.net>
52931
52932         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52933         spite of platforms like Tandem/NSK that define it to -1.
52934
52935 2007-03-08  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/vprintf-posix-tests: New file.
52938         * tests/test-vprintf-posix.sh: New file.
52939         * tests/test-vprintf-posix.c: New file.
52940         * tests/test-printf-posix.h: New file.
52941
52942         * modules/vprintf-posix: New file.
52943         * lib/vprintf.c: New file.
52944         * m4/vprintf-posix.m4: New file.
52945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52946         REPLACE_VPRINTF.
52947         * lib/stdio_.h (vprintf): New declaration.
52948         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52949         REPLACE_VPRINTF.
52950
52951 2007-03-08  Bruno Haible  <bruno@clisp.org>
52952
52953         * modules/fprintf-posix-tests: New file.
52954         * tests/test-fprintf-posix.sh: New file.
52955         * tests/test-fprintf-posix.c: New file.
52956
52957         * modules/fprintf-posix: New file.
52958         * lib/fprintf.c: New file.
52959         * m4/fprintf-posix.m4: New file.
52960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52961         REPLACE_FPRINTF.
52962         * lib/stdio_.h (fprintf): New declaration.
52963         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52964         REPLACE_FPRINTF.
52965
52966 2007-03-08  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/vfprintf-posix-tests: New file.
52969         * tests/test-vfprintf-posix.sh: New file.
52970         * tests/test-vfprintf-posix.c: New file.
52971         * tests/test-fprintf-posix.h: New file.
52972         * tests/test-fprintf-posix.out: New file.
52973
52974         * modules/vfprintf-posix: New file.
52975         * lib/vfprintf.c: New file.
52976         * m4/vfprintf-posix.m4: New file.
52977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52978         REPLACE_VFPRINTF.
52979         * lib/stdio_.h (vfprintf): New declaration.
52980         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52981         REPLACE_VFPRINTF.
52982
52983 2007-03-08  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52986
52987 2007-03-08  Bruno Haible  <bruno@clisp.org>
52988
52989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52990         instead of 'expr' invocations.
52991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52996         Suggested by Paul Eggert.
52997
52998 2007-03-08  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/fseterr-tests: New file.
53001         * tests/test-fseterr.c: New file.
53002
53003         * modules/fseterr: New file.
53004         * lib/fseterr.h: New file.
53005         * lib/fseterr.c: New file.
53006
53007 2007-03-08  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53010         * lib/getopt_.h: Likewise.
53011         * lib/mbswidth.h: Likewise.
53012         * lib/setenv.h: Likewise.
53013         * lib/vasnprintf.h: Likewise.
53014         * lib/vasprintf.h: Likewise.
53015         * lib/verror.h: Likewise.
53016         * lib/xsetenv.h: Likewise.
53017         * lib/xvasprintf.h: Likewise.
53018
53019 2007-03-08  Jim Meyering  <jim@meyering.net>
53020
53021         * users.txt: Add parted.
53022
53023         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53024
53025 2007-03-07  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/printf.m4: Make the shell script snippets copy&pastable.
53028
53029 2007-03-02  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/netinet_in_.h: New file.
53032         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53033         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53034         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53035         (Depends-on): Add absolute-header.
53036         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53037         into netinet/in.h.
53038
53039 2007-03-03  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/sys_select_.h: New file.
53042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53043         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53044         * modules/sys_select (Files): Add lib/sys_select_.h.
53045         (Depends-on): Add absolute-header.
53046         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53047         into sys/select.h.
53048
53049 2007-03-02  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53052         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53053         values.
53054         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53055         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53056         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53057         * modules/sys_socket (Depends-on): Add absolute-header.
53058         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53059         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53060         (Include): Remove requirement of inclusion of <sys/types.h>.
53061
53062 2007-03-02  Bruno Haible  <bruno@clisp.org>
53063
53064         * lib/byteswap_.h (bswap_32): Fix formula.
53065
53066 2007-03-06  Bruno Haible  <bruno@clisp.org>
53067
53068         * modules/sprintf-posix-tests: New file.
53069         * tests/test-sprintf-posix.c: New file.
53070
53071         * modules/sprintf-posix: New file.
53072         * lib/sprintf.c: New file.
53073         * m4/sprintf-posix.m4: New file.
53074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53075         REPLACE_SPRINTF.
53076         * lib/stdio_.h (sprintf): New declaration.
53077         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53078         REPLACE_SPRINTF.
53079
53080 2007-03-06  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/vsprintf-posix-tests: New file.
53083         * tests/test-vsprintf-posix.c: New file.
53084         * tests/test-sprintf-posix.h: New file.
53085
53086         * modules/vsprintf-posix: New file.
53087         * lib/vsprintf.c: New file.
53088         * m4/vsprintf-posix.m4: New file.
53089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53090         REPLACE_VSPRINTF.
53091         * lib/stdio_.h (vsprintf): New declaration.
53092         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53093         REPLACE_VSPRINTF.
53094
53095 2007-03-06  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/vsnprintf (Depend-on): Remove minmax.
53098
53099 2007-03-06  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/snprintf-posix-tests: New file.
53102         * tests/test-snprintf-posix.c: New file.
53103
53104         * modules/snprintf-posix: New file.
53105         * m4/snprintf-posix.m4: New file.
53106         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53107         gl_FUNC_SNPRINTF.
53108         (gl_FUNC_SNPRINTF): Invoke it.
53109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53110         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53111         is set.
53112         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53113
53114 2007-03-06  Bruno Haible  <bruno@clisp.org>
53115
53116         * modules/vsnprintf-posix-tests: New file.
53117         * tests/test-vsnprintf-posix.c: New file.
53118         * tests/test-snprintf-posix.h: New file.
53119
53120         * modules/vsnprintf-posix: New file.
53121         * m4/vsnprintf-posix.m4: New file.
53122         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53123         gl_FUNC_VSNPRINTF.
53124         (gl_FUNC_VSNPRINTF): Invoke it.
53125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53126         * lib/stdio_.h (vsnprintf): Define as a replacement if
53127         REPLACE_VSNPRINTF is set.
53128         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53129
53130 2007-03-06  Bruno Haible  <bruno@clisp.org>
53131
53132         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53134
53135 2007-03-06  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53138         (asinl): Declare also if HAVE_DECL_ASINL is set.
53139         (atanl): Declare also if HAVE_DECL_ATANL is set.
53140         (ceill): Declare also if HAVE_DECL_CEILL is set.
53141         (cosl): Declare also if HAVE_DECL_COSL is set.
53142         (expl): Declare also if HAVE_DECL_EXPL is set.
53143         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53144         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53145         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53146         (logl): Declare also if HAVE_DECL_LOGL is set.
53147         (sinl): Declare also if HAVE_DECL_SINL is set.
53148         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53149         (tanl): Declare also if HAVE_DECL_TANL is set.
53150         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53152         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53153         declaration of frexpl, ldexpl.
53154         * modules/printf-frexpl (Depends-on): Add math.
53155         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53156
53157 2007-03-05  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53160         frexpl and ldexpl are declared.
53161         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53162
53163 2007-03-05  Bruno Haible  <bruno@clisp.org>
53164
53165         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53166         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53167
53168 2007-03-05  Bruno Haible  <bruno@clisp.org>
53169
53170         * lib/stdio_.h: Include <stddef.h>.
53171
53172 2007-03-05  Bruno Haible  <bruno@clisp.org>
53173
53174         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53175
53176 2007-03-05  Bruno Haible  <bruno@clisp.org>
53177
53178         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53179         NetBSD 4, from Ralf Wildenhues.
53180
53181 2007-03-04  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/vasprintf.h: Update #if logic for the case when the functions
53184         exist but are overridden.
53185
53186 2007-03-04  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53189         implementations: glibc-2.4 and MacOS X 10.3.
53190         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53191         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53192         * tests/test-vasprintf-posix.c (test_function): Likewise.
53193
53194 2007-03-04  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/vasprintf-posix-tests: New file.
53197         * tests/test-vasprintf-posix.c: New file.
53198
53199         * modules/vasprintf-posix: New file.
53200         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53201         defined.
53202         * m4/vasprintf-posix.m4: New file.
53203         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53204         gl_FUNC_VASPRINTF.
53205         (gl_FUNC_VASPRINTF): Invoke it.
53206         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53207         here.
53208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53209
53210 2007-03-04  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53213         REPLACE_GETTIMEOFDAY.
53214         * modules/sys_time (Makefile.am): Likewise.
53215         * m4/sys_time_h.m4: Likewise.
53216         * m4/gettimeofday.m4: Likewise.
53217
53218 2007-03-04  Bruno Haible  <bruno@clisp.org>
53219
53220         * modules/vasnprintf-posix-tests: New file.
53221         * tests/test-vasnprintf-posix.c: New file.
53222
53223         * modules/vasnprintf-posix: New file.
53224         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53225         printf-frexpl.h.
53226         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53227         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53228         REPLACE_VASNPRINTF is defined.
53229         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53230         gl_FUNC_VASNPRINTF.
53231         (gl_FUNC_VASNPRINTF): Invoke it.
53232         * m4/vasnprintf-posix.m4: New file.
53233         * m4/printf.m4: New file.
53234
53235 2007-03-04  Bruno Haible  <bruno@clisp.org>
53236
53237         Compile progreloc.c only if --enable-relocatable is specified.
53238         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53239         if --enable-relocatable was specified.
53240         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53241         lib_SOURCES.
53242
53243 2007-03-04  Jim Meyering  <jim@meyering.net>
53244
53245         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53246         Use it consistently, rather than enumerating errno constants.
53247
53248 2007-03-04  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/xvasprintf-tests: New file.
53251         * tests/test-xvasprintf.c: New file.
53252
53253         * modules/vasprintf-tests: New file.
53254         * tests/test-vasprintf.c: New file.
53255
53256         * modules/vasnprintf-tests: New file.
53257         * tests/test-vasnprintf.c: New file.
53258
53259         * modules/vsnprintf-tests: New file.
53260         * tests/test-vsnprintf.c: New file.
53261
53262         * modules/snprintf-tests: New file.
53263         * tests/test-snprintf.c: New file.
53264
53265 2007-03-04  Bruno Haible  <bruno@clisp.org>
53266
53267         Compile relocatable.c only if --enable-relocatable is specified.
53268         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53269         gl_RELOCATABLE_LIBRARY.
53270         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53271         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53272         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53273         gl_RELOCATABLE_LIBRARY.
53274         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53275         (Makefile.am): Remove lib_SOURCES.
53276         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53277         gl_RELOCATABLE_LIBRARY.
53278         (Makefile.am): Remove lib_SOURCES.
53279         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53280         always.
53281         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53282         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53283
53284 2007-03-04  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/argmatch-tests: New file.
53287         * tests/test-argmatch.c: New file.
53288
53289         * tests/test-allocsa.c (main): Halve the number of loop runs.
53290
53291         * modules/alloca-opt-tests: New file.
53292         * tests/test-alloca-opt.c: New file.
53293
53294 2007-03-04  Jim Meyering  <jim@meyering.net>
53295
53296         Work around difference between Linux ACLs and Solaris 10 ZFS.
53297         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53298         for EINVAL.
53299
53300 2007-03-03  Bruno Haible  <bruno@clisp.org>
53301
53302         * modules/relocatable-prog (Depends-on): Add back progreloc's
53303         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53304
53305 2007-03-03  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53308         * modules/relocatable-lib: New file.
53309
53310 2007-03-03  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/relocatable-prog: Renamed from modules/relocatable.
53313         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53314
53315 2007-03-03  Bruno Haible  <bruno@clisp.org>
53316
53317         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53318         m4/relocatable-lib.m4.
53319         (Depends-on): Remove 'relocatable'.
53320         (configure.ac): Add gl_RELOCATABLE_NOP.
53321
53322 2007-03-03  Bruno Haible  <bruno@clisp.org>
53323
53324         * modules/relocatable-prog-wrapper: New file.
53325         * modules/relocatable (Depends-on): Add it. Remove all other
53326         dependencies except progname.
53327         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53328
53329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53330         (gl_FUNC_STRERROR): Nop.
53331         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53332
53333         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53334         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53335
53336         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53337         (gl_FUNC_READLINK): Update.
53338
53339         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53340
53341 2007-03-03  Bruno Haible  <bruno@clisp.org>
53342
53343         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53344         * modules/xreadlink (Depends-on): Add unistd.
53345         * modules/xreadlink-with-size (Depends-on): Likewise.
53346
53347 2007-03-03  Bruno Haible  <bruno@clisp.org>
53348
53349         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53350         extracted from gt_FUNC_SETENV.
53351         (gt_FUNC_SETENV): Remove macro.
53352         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53353         remove gt_FUNC_SETENV.
53354
53355 2007-03-03  Bruno Haible  <bruno@clisp.org>
53356
53357         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53358         ENABLE_RELOCATABLE here.
53359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53360
53361 2007-03-03  Bruno Haible  <bruno@clisp.org>
53362
53363         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53364         * tests/test-rbtreehash_list.c: Include progname.h.
53365         (main): Call set_program_name.
53366
53367         * modules/rbtree-oset-tests (Depends-on): Add progname.
53368         * tests/test-rbtree_oset.c: Include progname.h.
53369         (main): Call set_program_name.
53370
53371         * modules/rbtree-list-tests (Depends-on): Add progname.
53372         * tests/test-rbtree_list.c: Include progname.h.
53373         (main): Call set_program_name.
53374
53375         * modules/linked-list-tests (Depends-on): Add progname.
53376         * tests/test-linked_list.c: Include progname.h.
53377         (main): Call set_program_name.
53378
53379 2007-03-03  Bruno Haible  <bruno@clisp.org>
53380
53381         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53382         All uses of __restrict changed to _Restrict_.
53383         * lib/glob_.h (__restrict): Remove macro.
53384
53385 2007-03-02  Bruno Haible  <bruno@clisp.org>
53386
53387         * modules/gettext (configure.ac): Require gettext infrastructure
53388         from version 0.16.1.
53389
53390 2007-03-02  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/linkedhash-list-tests (Depends-on): Add progname.
53393         * tests/test-linkedhash_list.c: Include progname.h.
53394         (main): Call set_program_name.
53395
53396         * modules/carray-list-tests (Depends-on): Add progname.
53397         * tests/test-carray_list.c: Include progname.h.
53398         (main): Call set_program_name.
53399
53400         * modules/avltreehash-list-tests (Depends-on): Add progname.
53401         * tests/test-avltreehash_list.c: Include progname.h.
53402         (main): Call set_program_name.
53403
53404         * modules/avltree-oset-tests (Depends-on): Add progname.
53405         * tests/test-avltree_oset.c: Include progname.h.
53406         (main): Call set_program_name.
53407
53408         * modules/avltree-list-tests (Depends-on): Add progname.
53409         * tests/test-avltree_list.c: Include progname.h.
53410         (main): Call set_program_name.
53411
53412         * modules/array-oset-tests (Depends-on): Add progname.
53413         * tests/test-array_oset.c: Include progname.h.
53414         (main): Call set_program_name.
53415
53416         * modules/array-list-tests (Depends-on): Add progname.
53417         * tests/test-array_list.c: Include progname.h.
53418         (main): Call set_program_name.
53419
53420         * modules/argp-tests (Depends-on): Add progname.
53421         * tests/test-argp.c: Include argp.h first. Include progname.h.
53422         (main): Call set_program_name.
53423
53424 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53425
53426         * doc/gnulib-tool.texi (Initial import): Reword description of
53427         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53428         limited effect even if defined after the first system include.
53429
53430 2007-03-01  Bruno Haible  <bruno@clisp.org>
53431
53432         * build-aux/config.libpath: Update to libtool-1.5.22.
53433         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53434
53435 2007-03-01  Bruno Haible  <bruno@clisp.org>
53436
53437         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53438         foo_CFLAGS.
53439         Reported by Ralf Wildenhues.
53440
53441 2007-03-01  Bruno Haible  <bruno@clisp.org>
53442
53443         * build-aux/install-reloc: Remove object files left over by some
53444         compilers.
53445         Reported by Ralf Wildenhues.
53446
53447 2007-03-01  Bruno Haible  <bruno@clisp.org>
53448
53449         * build-aux/install-reloc: Break long lines.
53450
53451 2007-03-01  Bruno Haible  <bruno@clisp.org>
53452
53453         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53454         Reported by Ralf Wildenhues.
53455
53456 2007-03-01  Bruno Haible  <bruno@clisp.org>
53457
53458         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53459         include ordering constraints.
53460
53461 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53464         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53465         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53466         as another example.
53467         * lib/time_.h: Fix misspelling.
53468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53469         Require gl_HEADER_TIME_H_DEFAULTS.
53470         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53471         * m4/time_r.m4 (gl_TIME_R): Likewise.
53472         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53473
53474 2007-03-01  Bruno Haible  <bruno@clisp.org>
53475
53476         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53477         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53478
53479 2007-03-01  Jim Meyering  <jim@meyering.net>
53480
53481         * modules/xreadlink (Maintainer): Add my name.
53482         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53483
53484 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53485             Bruno Haible  <bruno@clisp.org>
53486
53487         * build-aux/install-reloc: Compile also c-ctype.c.
53488         * build-aux/relocatable.sh.in: New file.
53489         * doc/relocatable.texi: New file.
53490         * doc/relocatable-maint.texi: New file.
53491         * doc/gnulib.texi: Include relocatable-maint.texi.
53492         * lib/progreloc.c: Include unistd.h unconditionally.
53493         * lib/relocwrapper.c: Include unistd.h unconditionally.
53494         Include c-ctype.h.
53495         (add_dotbin): Use c_tolower.
53496         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53497         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53498         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53499         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53500         to m4/relocatable-lib.m4.
53501         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53502         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53503         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53504         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53505         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53506         * modules/relocatable: New file.
53507         * modules/relocatable-lib: New file.
53508         * modules/relocatable-script: New file.
53509
53510 2007-02-28  Bruno Haible  <bruno@clisp.org>
53511
53512         Import --enable-relocatable infrastructure.
53513         * build-aux/config.libpath: New file, from GNU gettext.
53514         * build-aux/install-reloc: New file, from GNU gettext.
53515         * build-aux/reloc-ldflags: New file, from GNU gettext.
53516         * lib/relocatable.h: New file, from GNU gettext.
53517         * lib/relocatable.c: New file, from GNU gettext.
53518         * lib/relocwrapper.c: New file, from GNU gettext.
53519         * m4/relocatable.m4: New file, from GNU gettext.
53520
53521 2007-02-28  Bruno Haible  <bruno@clisp.org>
53522
53523         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53524
53525         * modules/xreadlink: New file, from GNU gettext with modifications.
53526         * lib/xreadlink.c: New file, from GNU gettext.
53527         * lib/xreadlink.h: Add comments.
53528         (xreadlink): New declaration.
53529
53530         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53531         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53532         lib/xreadlink-with-size.c.
53533         (configure.ac): Remove gl_XREADLINK invocation.
53534         (Makefile.am): Augment lib_SOURCES.
53535         * m4/xreadlink.m4: Remove file.
53536         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53537         (xreadlink_with_size): Renamed from xreadink.
53538         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53539         * modules/canonicalize (Depends-on): Replace xreadlink with
53540         xreadlink-with-size.
53541         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53542
53543 2007-02-25  Jim Meyering  <jim@meyering.net>
53544
53545         * build-aux/announce-gen: When complaining about excess arguments,
53546         list them.
53547
53548 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * README: Document signed integer overflow situation more
53551         accurately.
53552
53553 2007-02-25  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53556         'a' or 'A' conversion.
53557
53558 2007-02-25  Bruno Haible  <bruno@clisp.org>
53559
53560         * modules/filename: Renamed from modules/pathname.
53561         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53562         lib/concatpath.c with lib/concat-filename.c.
53563         (Makefile.am): Update.
53564         (Include): Replace pathname.h with filename.h.
53565         * lib/filename.h: Renamed from lib/pathname.h.
53566         (concatenated_filename): Renamed from concatenated_pathname.
53567         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53568         (concatenated_filename): Renamed from concatenated_pathname.
53569         * lib/findprog.c: Include filename.h instead of pathname.h.
53570         (find_in_path): Update.
53571         * lib/javacomp.c: Include filename.h instead of pathname.h.
53572         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53573         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53574         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53575         is_oldgcj_14_13_usable, is_javac_usable): Update.
53576         * lib/javaexec.c: Include filename.h instead of pathname.h.
53577         (execute_java_class): Update.
53578         * modules/findprog: Update.
53579         * modules/javacomp: Update.
53580         * modules/javaexec: Update.
53581         * MODULES.html.sh (File system functions): Add 'filename', remove
53582         'pathname'.
53583
53584 2007-02-25  Bruno Haible  <bruno@clisp.org>
53585
53586         * modules/printf-frexpl-tests: New file.
53587         * tests/test-printf-frexpl.c: New file.
53588
53589         * modules/printf-frexpl: New file.
53590         * lib/printf-frexpl.h: New file.
53591         * lib/printf-frexpl.c: New file.
53592         * m4/printf-frexpl.m4: New file.
53593
53594 2007-02-25  Bruno Haible  <bruno@clisp.org>
53595
53596         * modules/printf-frexp-tests: New file.
53597         * tests/test-printf-frexp.c: New file.
53598
53599         * modules/printf-frexp: New file.
53600         * lib/printf-frexp.h: New file.
53601         * lib/printf-frexp.c: New file.
53602         * m4/printf-frexp.m4: New file.
53603
53604 2007-02-25  Bruno Haible  <bruno@clisp.org>
53605
53606         Assume automake >= 1.10 for the tests.
53607         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53608         * modules/arctwo-tests: Likewise.
53609         * modules/argp-tests: Likewise.
53610         * modules/avltree-list-tests: Likewise.
53611         * modules/avltree-oset-tests: Likewise.
53612         * modules/avltreehash-list-tests: Likewise.
53613         * modules/carray-list-tests: Likewise.
53614         * modules/crc-tests: Likewise.
53615         * modules/des-tests: Likewise.
53616         * modules/gc-arcfour-tests: Likewise.
53617         * modules/gc-arctwo-tests: Likewise.
53618         * modules/gc-des-tests: Likewise.
53619         * modules/gc-hmac-md5-tests: Likewise.
53620         * modules/gc-hmac-sha1-tests: Likewise.
53621         * modules/gc-md2-tests: Likewise.
53622         * modules/gc-md4-tests: Likewise.
53623         * modules/gc-md5-tests: Likewise.
53624         * modules/gc-pbkdf2-sha1-tests: Likewise.
53625         * modules/gc-rijndael-tests: Likewise.
53626         * modules/gc-sha1-tests: Likewise.
53627         * modules/gc-tests: Likewise.
53628         * modules/getaddrinfo-tests: Likewise.
53629         * modules/hmac-md5-tests: Likewise.
53630         * modules/hmac-sha1-tests: Likewise.
53631         * modules/linked-list-tests: Likewise.
53632         * modules/linkedhash-list-tests: Likewise.
53633         * modules/lock-tests: Likewise.
53634         * modules/md2-tests: Likewise.
53635         * modules/md4-tests: Likewise.
53636         * modules/md5-tests: Likewise.
53637         * modules/rbtree-list-tests: Likewise.
53638         * modules/rbtree-oset-tests: Likewise.
53639         * modules/rbtreehash-list-tests: Likewise.
53640         * modules/read-file-tests: Likewise.
53641         * modules/rijndael-tests: Likewise.
53642         * modules/stdint-tests: Likewise.
53643         * modules/tls-tests: Likewise.
53644
53645 2007-02-24  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53648         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53649         function; instead check whether isnan with a double argument links.
53650         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53651         function; instead check whether isnan with a 'long double' argument
53652         links.
53653         Reported by Eric Blake <ebb9@byu.net>.
53654
53655 2007-02-24  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53658         defined.
53659         * lib/isnanl.c: Remove all code. Just include isnan.c.
53660         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53661
53662 2007-02-25  Jim Meyering  <jim@meyering.net>
53663
53664         Avoid conflicting types for 'unsetenv' on FreeBSD.
53665         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53666         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53667         in stdlib.h.
53668
53669 2007-02-24  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/isnanl-nolibm-tests: New file.
53672         * tests/test-isnanl.c: New file.
53673
53674         * modules/isnanl-nolibm: New file.
53675         * lib/isnanl.h: New file.
53676         * lib/isnanl.c: New file.
53677         * m4/isnanl.m4: New file.
53678
53679 2007-02-24  Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/isnan-nolibm-tests: New file.
53682         * tests/test-isnan.c: New file.
53683
53684         * modules/isnan-nolibm: New file.
53685         * lib/isnan.h: New file.
53686         * lib/isnan.c: New file.
53687         * m4/isnan.m4: New file.
53688
53689 2007-02-24  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53692         assume that an exponent fits in 20 bits.
53693
53694 2007-02-24  Jim Meyering  <jim@meyering.net>
53695
53696         * m4/regex.m4: Update the description of the configure-time option,
53697         --without-included-regex, to state accurately what the defaults are,
53698         and perhaps to give people an idea why using this option is risky.
53699
53700 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53703         loops on small arguments.  This attempts to avoid the problem
53704         Bruno Haible reported for AIX 4.3.2 in
53705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53706
53707 2007-02-23  Bruno Haible  <bruno@clisp.org>
53708
53709         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53710         Needed for help2man.
53711
53712 2007-02-23  Karl Berry  <karl@gnu.org>
53713
53714         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53715         exists, foo.h should be cvs-ignored, not committed.
53716
53717 2007-02-23  Eric Blake  <ebb9@byu.net>
53718
53719         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53720         * lib/stat-time.h (includes): Likewise.
53721         * lib/utimecmp.c (includes): Likewise.
53722         * lib/utimens.h (includes): Likewise.
53723         * lib/getdate.y (includes): Also include "timespec.h" for use
53724         internal to the module.
53725         * modules/utimens (Depends-on): Revert yesterday's patch.
53726         * modules/nanosleep (Depends-on): Add missing dependency.
53727
53728 2007-02-22  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/glob.c: Don't include getlogin_r.h.
53731
53732 2007-02-22  Jim Meyering  <jim@meyering.net>
53733
53734         * modules/utimens (Depends-on): Add timespec, required for
53735         utimens.h's inclusion of timespec.h.
53736
53737 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53740         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53741         Schwab in
53742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53743         I'll try to think of a better way to fix the Solaris problem.
53744
53745         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53746         like glibc; on Solaris 10, it fails with errno == EINVAL.
53747         POSIX says the behavior is unspecified if the first argument is NULL,
53748         so play it safe and never pass NULL to the system getcwd.
53749
53750 2007-02-21  Jim Meyering  <jim@meyering.net>
53751
53752         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53753         of gettimeofday.  It would conflict with the one now always
53754         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53755         an IRIX 6.5 build failure.
53756
53757 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53758
53759         Minor fixups to port to Solaris 10 with Sun C 5.8.
53760         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53761         * modules/getcwd (Depends-on): Add dirfd.
53762         * lib/putenv.c (putenv): #undef it.
53763         (rpl_putenv): New decl.
53764         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53765
53766 2007-02-20  Bruno Haible  <bruno@clisp.org>
53767
53768         * modules/stdio-tests: New file.
53769         * tests/test-stdio.c: New file.
53770
53771         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53772         (Depends-on): Add stdio.
53773         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53774         (Include): Use <stdio.h> instead of vsnprintf.h.
53775         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53776         HAVE_DECL_VSNPRINTF.
53777         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53778
53779         * modules/snprintf (Files): Remove lib/snprintf.h.
53780         (Depends-on): Add stdio.
53781         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53782         (Include): Use <stdio.h> instead of snprintf.h.
53783         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53784         HAVE_DECL_SNPRINTF.
53785         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53786         * lib/getaddrinfo.c: Likewise.
53787
53788         * modules/stdio: New file.
53789         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53790         * lib/snprintf.h: Remove file.
53791         * lib/vsnprintf.h: Remove file.
53792         * lib/.cppi-disable: Remove snprintf.h.
53793         * m4/stdio_h.m4: New file.
53794         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53795
53796 2007-02-20  Jim Meyering  <jim@meyering.net>
53797
53798         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53799         used by e.g., mingw.  From Bruno Haible.
53800
53801 2007-02-19  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53804         warnings.
53805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53806
53807 2007-02-19  Bruno Haible  <bruno@clisp.org>
53808
53809         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53810         from mingw users.
53811
53812 2007-02-19  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53815         warnings.
53816         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53817
53818 2007-02-19  Jim Meyering  <jim@meyering.net>
53819
53820         Don't use FD after a successful "fdopendir (fd)".
53821         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53822         Reset it by calling dirfd on the just-obtained DIR*.
53823
53824         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53825         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53826
53827 2007-02-18  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/readlink.c: Include <unistd.h>.
53830         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53831         HAVE_READLINK.
53832         * modules/readlink (Depends-on): Add unistd.
53833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53834         (Include): Add <unistd.h>.
53835
53836         * lib/getlogin_r.h: Remove file.
53837         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53838         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53839         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53840         HAVE_DECL_GETLOGIN_R.
53841         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53843         (Include): Use <unistd.h> instead of getlogin_r.h.
53844
53845         * lib/getcwd.h: Remove file.
53846         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53847         * lib/xgetcwd.c: Likewise.
53848         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53849         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53850         * modules/getcwd (Files): Remove lib/getcwd.h.
53851         (Depends-on): Add unistd.
53852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53853         (Include): Use <unistd.h> instad of getcwd.h.
53854
53855         * lib/ftruncate.c: Include <unistd.h> first.
53856         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53857         Set HAVE_FTRUNCATE.
53858         * modules/ftruncate (Depends-on): Add unistd.
53859         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53860
53861         * lib/fchdir.c: Include <unistd.h> first.
53862         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53864         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53865         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53866         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53867
53868         * lib/dup2.c: Include <unistd.h> first.
53869         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53870         HAVE_DUP2.
53871         * modules/dup2 (Depends-on): Add unistd.
53872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53873
53874         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53875         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53876         REPLACE_CHOWN. Don't define chown as a macro here.
53877         * modules/chown (Depends-on): Add unistd.
53878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53879
53880         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53881         Add definition for GL_LINK_WARNING.
53882         (chown, dup2): New declarations.
53883         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53884         link warning.
53885         (ftruncate): New declaration.
53886         (getcwd): New declaration, taken from old getcwd.h.
53887         (getlogin_r): New declaration, taken from old getlogin_r.h.
53888         (readlink): New declaration.
53889         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53890         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53891         (gl_PREREQ_UNISTD): Remove macro.
53892         (gl_UNISTD_MODULE_INDICATOR): New macro.
53893         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53894         many new variables. Don't set UNISTD_H.
53895         * modules/unistd (Description): Change.
53896         (Depends-on): Add link-warning.
53897         (configure.ac): Update.
53898         (Makefile.am): Create unistd.h always. Substitute many new variables
53899         into it.
53900
53901 2007-02-18  Bruno Haible  <bruno@clisp.org>
53902
53903         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53904         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53905         HAVE_GETSUBOPT.
53906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53907         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53908         * lib/getsubopt.h: Remove file.
53909         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53910         (Depends-on): Add stdlib.
53911         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53912         (Includes): Use <stdlib.h> instead of getsubopt.h.
53913         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53914         Set HAVE_GETSUBOPT.
53915         * lib/getsubopt.c: Don't include getsubopt.h.
53916
53917 2007-02-18  Bruno Haible  <bruno@clisp.org>
53918
53919         * modules/fchdir (Depends-on): Add dup2.
53920
53921 2007-02-18  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/stdlib_.h: Handle glibc's special invocation convention
53924         specially.
53925
53926 2007-02-18  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/stdlib-tests: New file.
53929         * tests/test-stdlib.c: New file.
53930
53931         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53932         (Depends-on): Add stdlib.
53933         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53934         (Includes): Use <stdlib.h> instead of mkstemp.h.
53935         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53936         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53937         * lib/mkstemp.c: Don't include mkstemp.h.
53938         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53939         * lib/stdlib--.h: Don't include mkstemp.h.
53940
53941         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53942         (Depends-on): Add stdlib.
53943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53944         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53945         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53946         HAVE_MKDTEMP.
53947         * lib/mkdtemp.c: Don't include mkdtemp.h.
53948         * lib/clean-temp.c: Don't include mkdtemp.h.
53949
53950         * modules/exit (Files): Remove lib/exit.h.
53951         (Depends-on): Add stdlib.
53952         (Makefile.am): Remove lib_SOURCES.
53953         (Include): Use <stdlib.h> instead of exit.h.
53954         * lib/argmatch.c: Don't include exit.h.
53955         * lib/execute.c: Likewise.
53956         * lib/pagealign_alloc.c: Likewise.
53957         * lib/pipe.c: Likewise.
53958         * lib/wait-process.c: Likewise.
53959         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53960         * lib/exitfail.c: Likewise.
53961         * lib/savewd.c: Likewise.
53962         * lib/xsetenv.c: Likewise.
53963
53964         * modules/stdlib: New file.
53965         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53966         and extra comments about mkstemp().
53967         * lib/exit.h: Remove file.
53968         * lib/mkdtemp.h: Remove file.
53969         * lib/mkstemp.h: Remove file.
53970         * m4/stdlib_h.m4: New file.
53971         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53972
53973 2007-02-18  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/math-tests: New file.
53976         * tests/test-math.c: New file.
53977
53978         * modules/math: New file.
53979         * modules/mathl (Files): Remove lib/mathl.h.
53980         (Depends-on): Add math.
53981         (Makefile.am): Don't mention mathl.h.
53982         (Include): Use <math.h> instead of mathl.h.
53983         * lib/math_.h: New file.
53984         * lib/mathl.h: Remove file.
53985         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53986         mathl.h.
53987         * lib/asinl.c: Likewise.
53988         * lib/atanl.c: Likewise.
53989         * lib/ceill.c: Likewise.
53990         * lib/cosl.c: Likewise.
53991         * lib/expl.c: Likewise.
53992         * lib/floorl.c: Likewise.
53993         * lib/frexpl.c: Likewise.
53994         * lib/ldexpl.c: Likewise.
53995         * lib/logl.c: Likewise.
53996         * lib/sincosl.c: Likewise.
53997         * lib/sinl.c: Likewise.
53998         * lib/sqrtl.c: Likewise.
53999         * lib/tanl.c: Likewise.
54000         * lib/trigl.c: Likewise.
54001         * m4/math_h.m4: New file.
54002         * MODULES.html.sh (Mathematics): Add math.
54003
54004 2007-02-17  Bruno Haible  <bruno@clisp.org>
54005
54006         * modules/wctype-tests: New file.
54007         * tests/test-wctype.c: New file.
54008
54009         * modules/wchar-tests: New file.
54010         * tests/test-wchar.c: New file.
54011
54012         * modules/unistd-tests: New file.
54013         * tests/test-unistd.c: New file.
54014
54015         * modules/time-tests: New file.
54016         * tests/test-time.c: New file.
54017
54018         * modules/sysexits-tests: New file.
54019         * tests/test-sysexits.c: New file.
54020
54021         * modules/sys_time-tests: New file.
54022         * tests/test-sys_time.c: New file.
54023
54024         * modules/sys_stat-tests: New file.
54025         * tests/test-sys_stat.c: New file.
54026
54027         * modules/sys_socket-tests: New file.
54028         * tests/test-sys_socket.c: New file.
54029
54030         * modules/sys_select-tests: New file.
54031         * tests/test-sys_select.c: New file.
54032
54033         * modules/string-tests: New file.
54034         * tests/test-string.c: New file.
54035
54036         * modules/stdbool-tests: New file.
54037         * tests/test-stdbool.c: New file.
54038
54039         * modules/netinet_in-tests: New file.
54040         * tests/test-netinet_in.c: New file.
54041
54042         * modules/inttypes-tests: New file.
54043         * tests/test-inttypes.c: New file.
54044
54045         * modules/fcntl-tests: New file.
54046         * tests/test-fcntl.c: New file.
54047
54048         * modules/byteswap-tests: New file.
54049         * tests/test-byteswap.c: New file.
54050
54051         * modules/arpa_inet-tests: New file.
54052         * tests/test-arpa_inet.c: New file.
54053
54054 2007-02-17  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54057         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54058         if the corresponding module is not enabled. Emit link warnings if
54059         the function is used nevertheless.
54060         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54061         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54062         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54063         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54064         * modules/inttypes (Depends-on): Add link-warning.
54065         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54066         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54067         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54068         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54069         * modules/imaxdiv (configure.ac): Likewise.
54070         * modules/strtoimax (configure.ac): Likewise.
54071         * modules/strtoumax (configure.ac): Likewise.
54072
54073 2007-02-17  Bruno Haible  <bruno@clisp.org>
54074
54075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54076         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54077         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54078         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54079
54080 2007-02-17  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/link-warning: New file.
54083         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54084         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54085         * modules/string (Depends-on): Add link-warning.
54086         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54087         string.h.
54088         * MODULES.html.sh (Support for building libraries and executables): Add
54089         link-warning.
54090
54091 2007-02-17  Bruno Haible  <bruno@clisp.org>
54092
54093         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54094         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54095         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54096         long lines.
54097
54098 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54099             Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/tmpfile: New file.
54102         * lib/tmpfile.c: New file.
54103         * m4/tmpfile.m4: New file.
54104         * MODULES.html.sh (func_all_modules): New section "Input/output".
54105
54106 2007-02-15  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54109         (supports_delete_on_close): New function.
54110         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54111
54112 2007-02-14  Bruno Haible  <bruno@clisp.org>
54113
54114         * modules/mbspcasecmp-tests: New file.
54115         * tests/test-mbspcasecmp.sh: New file.
54116         * tests/test-mbspcasecmp.c: New file.
54117
54118         New module mbspcasecmp.
54119         * modules/mbspcasecmp: New file.
54120         * lib/mbspcasecmp.c: New file.
54121         * lib/string_.h (strncasecmp): Change warning message.
54122         (mbspcasecmp): New declaration.
54123         * m4/mbspcasecmp.m4: New file.
54124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54125         GNULIB_MBSPCASECMP.
54126         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54127         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54128
54129 2007-02-14  Bruno Haible  <bruno@clisp.org>
54130
54131         * modules/mbsncasecmp-tests: New file.
54132         * tests/test-mbsncasecmp.sh: New file.
54133         * tests/test-mbsncasecmp.c: New file.
54134
54135         New module mbsncasecmp.
54136         * modules/mbsncasecmp: New file.
54137         * lib/mbsncasecmp.c: New file.
54138         * lib/string_.h (mbsncasecmp): New declaration.
54139         * m4/mbsncasecmp.m4: New file.
54140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54141         GNULIB_MBSNCASECMP.
54142         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54143         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54144
54145 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54146
54147         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54148         Verify that it doesn't overlap with our flags.
54149         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54150         do not have the desired effect in multibyte locales; instead, use
54151         mbscasecmp.
54152         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54153         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54154         we don't require GNU fnmatch ourselves (if our users require it, they
54155         should do so explicitly).
54156
54157         Fix regex code so it doesn't rely on strcasecmp.
54158         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54159         Otherwise, include gnulib's langinfo.h.
54160         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54161         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54162         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54163         * modules/regex (FILES): Remove m4/codeset.m4.
54164         (Depends-on): Add localcharset.  Remove strcase.
54165
54166 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54167
54168         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54169         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54170
54171 2007-02-13  Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54175
54176 2007-02-12  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54179         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54180         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54181         time warning rather than a link error.
54182
54183 2007-02-12  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54186         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54188
54189 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54192         args, not 2.
54193
54194 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         New module 'time', so that apps can include <time.h> as per
54197         POSIX and GNU instead of separate include files like time_r.h
54198         and timegm.h.  This implementation tries out a simpler approach
54199         for replacing decls in standard include files (as compared to
54200         the string module), somewhat as an experiment.
54201
54202         * config/srclist.txt: Comment out mktime.c for now.
54203         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54204         since it doesn't apply any more.  Use generic wording instead.
54205         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54206         'time'.
54207         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54208         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54209         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54210         Don't include <sys/types.h>; no longer needed since we assume C89.
54211         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54212         * lib/strftime.c: Likewise.
54213         * lib/time_r.c: Likewise.
54214         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54215         * lib/nanosleep.c: Include <time.h> first, to check interface.
54216         * lib/strptime.c: Likewise.
54217         * lib/time_r.c: Likewise.
54218         * lib/timegm.c: Likewise.
54219         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54220         needed.
54221         * lib/timegm.c: Don't include timegm.h; no longer needed.
54222         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54223         time.h now handles any problems in that area.
54224         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54225         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54226         that time.h defines struct timespec.
54227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54228         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54229         handles that.
54230         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54231         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54232         needed.  Set REPLACE_LOCALTIME.
54233         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54234         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54235         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54236         nanosleep; time_h.m4 now does that.  Don't require
54237         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54238         module handles this now.
54239         * modules/getdate (Depends-on): Remove timespec.  Add time.
54240         * modules/nanosleep (Depends-on): Likewise.
54241         * modules/stat-time (Depends-on): Likewise.
54242         * modules/nanosleep (Include): Include time.h, not timespec.h.
54243         * modules/strptime (Files): Remove lib/strptime.h.
54244         (Depends-on): Add extensions, time.
54245         (Include): Include time.h, not strptime.h.
54246         * modules/time_r (Files): Remove lib/time_r.h.
54247         (Depends-on): Add time.
54248         (Include): Include time.h, not time_r.h.
54249         * modules/timegm: Likewise.
54250         * modules/timespec (Description): Now does timespec-related decls
54251         of our own, instead of struct timespec itself.
54252         (Depends-on): Add time; remove extensions.
54253         (Maintainer): Add self.
54254         * modules/utimecmp (Depends-on): Add time; remove timespec.
54255         * modules/utimens (Depends-on): Likewise.
54256         * modules/xnanosleep (Depends-on): Likewise.
54257
54258 2007-02-11  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/c-strstr.c: Include allocsa.h.
54261         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54262         * lib/c-strcasestr.c: Include allocsa.h.
54263         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54264         * lib/strcasestr.c: Include allocsa.h.
54265         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54266         * lib/mbsstr.c: Include allocsa.h.
54267         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54268         allocsa/freesa instead of malloc/free.
54269         * lib/mbscasestr.c: Include allocsa.h.
54270         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54271         allocsa/freesa instead of malloc/free.
54272         * modules/c-strstr (Depends-on): Add allocsa.
54273         * modules/c-strcasestr (Depends-on): Likewise.
54274         * modules/strcasestr (Depends-on): Likewise.
54275         * modules/mbsstr (Depends-on): Likewise.
54276         * modules/mbscasestr (Depends-on): Likewise.
54277
54278 2007-02-11  Bruno Haible  <bruno@clisp.org>
54279
54280         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54281
54282         * modules/mbsspn-tests: New file.
54283         * tests/test-mbsspn.sh: New file.
54284         * tests/test-mbsspn.c: New file.
54285
54286 2007-02-11  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54289
54290         * modules/mbspbrk-tests: New file.
54291         * tests/test-mbspbrk.sh: New file.
54292         * tests/test-mbspbrk.c: New file.
54293
54294 2007-02-11  Bruno Haible  <bruno@clisp.org>
54295
54296         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54297         unneeded cast.
54298
54299         * modules/mbscspn-tests: New file.
54300         * tests/test-mbscspn.sh: New file.
54301         * tests/test-mbscspn.c: New file.
54302
54303 2007-02-11  Bruno Haible  <bruno@clisp.org>
54304
54305         * modules/mbscasecmp-tests: New file.
54306         * tests/test-mbscasecmp.sh: New file.
54307         * tests/test-mbscasecmp.c: New file.
54308
54309 2007-02-11  Bruno Haible  <bruno@clisp.org>
54310
54311         Ensure O(n) worst-case complexity of mbscasestr.
54312         * lib/mbscasestr.c: Include stdbool.h.
54313         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54314         functions.
54315         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54316         the bookkeeping indicates that it's worth it.
54317         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54318
54319         * modules/mbscasestr-tests: New file.
54320         * tests/test-mbscasestr1.c: New file.
54321         * tests/test-mbscasestr2.sh: New file.
54322         * tests/test-mbscasestr2.c: New file.
54323         * tests/test-mbscasestr3.sh: New file.
54324         * tests/test-mbscasestr3.c: New file.
54325         * tests/test-mbscasestr4.sh: New file.
54326         * tests/test-mbscasestr4.c: New file.
54327         * m4/locale-tr.m4: New file.
54328
54329 2007-02-11  Bruno Haible  <bruno@clisp.org>
54330
54331         Ensure O(n) worst-case complexity of mbsstr.
54332         * lib/mbsstr.c: Include stdbool.h.
54333         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54334         functions.
54335         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54336         bookkeeping indicates that it's worth it.
54337         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54338
54339         * modules/mbsstr-tests: New file.
54340         * tests/test-mbsstr1.c: New file.
54341         * tests/test-mbsstr2.sh: New file.
54342         * tests/test-mbsstr2.c: New file.
54343         * tests/test-mbsstr3.sh: New file.
54344         * tests/test-mbsstr3.c: New file.
54345         * m4/locale-fr.m4: New file.
54346
54347 2007-02-11  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/mbsrchr.c (mbsrchr): Fix bug.
54350
54351         * modules/mbsrchr-tests: New file.
54352         * tests/test-mbsrchr.sh: New file.
54353         * tests/test-mbsrchr.c: New file.
54354
54355 2007-02-11  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/mbschr.c (mbschr): Fix bug.
54358
54359         * modules/mbschr-tests: New file.
54360         * tests/test-mbschr.sh: New file.
54361         * tests/test-mbschr.c: New file.
54362         * m4/locale-zh.m4: New file.
54363
54364 2007-02-11  Bruno Haible  <bruno@clisp.org>
54365
54366         Support for copying multibyte string iterators.
54367         * lib/mbiter.h: Include <string.h>.
54368         (mbiter_multi_copy): New function.
54369         (mbi_copy): New macro.
54370         * lib/mbuiter.h: Include <string.h>.
54371         (mbuiter_multi_copy): New function.
54372         (mbui_copy): New macro.
54373
54374 2007-02-11  Bruno Haible  <bruno@clisp.org>
54375
54376         New module mbslen.
54377         * modules/mbslen: New file.
54378         * lib/mbslen.c: New file.
54379         * lib/string_.h (mbslen): New declaration.
54380         * m4/mbslen.m4: New file.
54381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54382         GNULIB_MBSLEN.
54383         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54384         * MODULES.html.sh (Internationalization functions): Add mbslen.
54385
54386 2007-02-11  Bruno Haible  <bruno@clisp.org>
54387
54388         Ensure O(n) worst-case complexity of strcasestr substitute.
54389         * lib/strcasestr.c: Include stdbool.h.
54390         (knuth_morris_pratt): New function.
54391         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54392         bookkeeping indicates that it's worth it.
54393         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54394
54395         * modules/strcasestr-tests: New file.
54396         * tests/test-strcasestr.c: New file.
54397
54398 2007-02-11  Bruno Haible  <bruno@clisp.org>
54399
54400         Ensure O(n) worst-case complexity of c_strcasestr.
54401         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54402         (knuth_morris_pratt): New function.
54403         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54404         the bookkeeping indicates that it's worth it.
54405         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54406
54407         * modules/c-strcasestr-tests: New file.
54408         * tests/test-c-strcasestr.c: New file.
54409
54410 2007-02-11  Bruno Haible  <bruno@clisp.org>
54411
54412         Ensure O(n) worst-case complexity of c_strstr.
54413         * lib/c-strstr.c: Include stdbool.h, string.h.
54414         (knuth_morris_pratt): New function.
54415         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54416         bookkeeping indicates that it's worth it.
54417         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54418
54419         * lib/c-strstr.c: Complete rewrite for maintainability.
54420
54421         * modules/c-strstr-tests: New file.
54422         * tests/test-c-strstr.c: New file.
54423
54424 2007-02-11  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54427         5.2.1 and earlier, whereby \055 was treated just like the range
54428         delimiter '-'.
54429         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54430
54431 2007-02-08  Bruno Haible  <bruno@clisp.org>
54432
54433         * modules/regex (Depends-on): Add stdbool.
54434         Reported by Dalibor Topic <robilad@kaffe.org>.
54435
54436 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54437
54438         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54439         Prefer returning from main to exiting from it.
54440         Remove unnecessary parens after sizeof.
54441
54442 2007-02-05  Bruno Haible  <bruno@clisp.org>
54443
54444         New module mbssep.
54445         * modules/mbssep: New file.
54446         * lib/mbssep.c: New file.
54447         * lib/string_.h (strsep): Add a conditional link warning.
54448         (mbssep): New declaration.
54449         * m4/mbssep.m4: New file.
54450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54451         GNULIB_MBSSEP.
54452         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54453         * MODULES.html.sh (Internationalization functions): Add mbssep.
54454
54455 2007-02-05  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54458         Optimize search in case of 1 delimiter.
54459
54460 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54461
54462         * lib/acl.h: Include sys/types.h before sys/acl.h.
54463
54464 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54465
54466         Merge upstream fix for glibc bugzilla #3957:
54467
54468         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54469
54470         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54471         bit for RE_HAT_LISTS_NOT_NEWLINE.
54472         (build_charclass_op): Remove bogus comment.
54473
54474 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54475
54476         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54477
54478 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54481         * lib/memmem.c [!defined _LIBC]: Include config.h.
54482
54483 2007-02-04  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54486         warning message.
54487
54488 2007-02-04  Bruno Haible  <bruno@clisp.org>
54489
54490         New module mbstok_r.
54491         * modules/mbstok_r: New file.
54492         * lib/mbstok_r.c: New file.
54493         * lib/string_.h (strtok_r): Change argument names to match the
54494         comments. Add a conditional link warning.
54495         (mbstok_r): New declaration.
54496         * m4/mbstok_r.m4: New file.
54497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54498         GNULIB_MBSTOK_R.
54499         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54500         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54501
54502 2007-02-04  Bruno Haible  <bruno@clisp.org>
54503
54504         New module mbsspn.
54505         * modules/mbsspn: New file.
54506         * lib/mbsspn.c: New file.
54507         * lib/string_.h (strspn): Add a conditional link warning.
54508         (mbsspn): New declaration.
54509         * m4/mbsspn.m4: New file.
54510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54511         GNULIB_MBSSPN.
54512         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54513         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54514
54515 2007-02-04  Bruno Haible  <bruno@clisp.org>
54516
54517         New module mbspbrk.
54518         * modules/mbspbrk: New file.
54519         * lib/mbspbrk.c: New file.
54520         * lib/string_.h (strpbrk): Add a conditional link warning.
54521         (mbspbrk): New declaration.
54522         * m4/mbspbrk.m4: New file.
54523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54524         GNULIB_MBSPBRK.
54525         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54526         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54527
54528 2007-02-04  Bruno Haible  <bruno@clisp.org>
54529
54530         New module mbscspn.
54531         * modules/mbscspn: New file.
54532         * lib/mbscspn.c: New file.
54533         * lib/string_.h (strcspn): Add a conditional link warning.
54534         (mbscspn): New declaration.
54535         * m4/mbscspn.m4: New file.
54536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54537         GNULIB_MBSCSPN.
54538         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54539         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54540
54541 2007-02-04  Bruno Haible  <bruno@clisp.org>
54542
54543         New module mbscasestr, reduced goal of strcasestr.
54544         * modules/mbscasestr: New file.
54545         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54546         (mbscasestr): Renamed from strcasestr.
54547         * lib/strcasestr.c: Don't include mbuiter.h.
54548         (strcasestr): Remove support for multibyte locales.
54549         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54550         Change the conditional link warning.
54551         (mbscasestr): New declaration.
54552         * m4/mbscasestr.m4: New file.
54553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54554         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54555         REPLACE_STRCASESTR.
54556         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54558         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54559         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54560         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54561         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54562         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54563         (Depends-on): Remove mbuiter.
54564         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54565
54566 2007-02-04  Bruno Haible  <bruno@clisp.org>
54567
54568         Simplify handling of strncasecmp.
54569         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54570         the conditional link warning.
54571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54572         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54573         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54574         * modules/strcase (configure.ac): Don't invoke
54575         gl_STRING_MODULE_INDICATOR.
54576         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54577
54578 2007-02-04  Bruno Haible  <bruno@clisp.org>
54579
54580         New module mbscasecmp, reduced goal of strcasecmp.
54581         * modules/mbscasecmp: New file.
54582         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54583         (mbscasecmp): Renamed from strcasecmp.
54584         * lib/strcasecmp.c: Don't include mbuiter.h.
54585         (strcasecmp): Remove support for multibyte locales.
54586         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54587         Change the conditional link warning.
54588         (mbscasecmp): New declaration.
54589         * m4/mbscasecmp.m4: New file.
54590         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54591         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54592         REPLACE_STRCASECMP.
54593         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54595         GNULIB_MBSCASECMP.
54596         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54597         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54598         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54599         (Depends-on): Remove mbuiter.
54600         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54601
54602 2007-02-04  Bruno Haible  <bruno@clisp.org>
54603
54604         New module mbsstr. Remove module strstr.
54605         * modules/mbsstr: New file.
54606         * modules/strstr: Remove file.
54607         * lib/mbsstr.c: Renamed from lib/strstr.c.
54608         (mbsstr): Renamed from strstr.
54609         * lib/string_.h (strstr): Remove declaration. Change the conditional
54610         link warning.
54611         (mbsstr): New declaration.
54612         * m4/mbsstr.m4: New file.
54613         * m4/strstr.m4: Remove file.
54614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54615         REPLACE_STRSTR.
54616         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54617         Don't initialize GNULIB_STRSTR.
54618         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54619         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54620         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54621         (Support for systems lacking ANSI C 89): Remove strstr.
54622
54623 2007-02-04  Bruno Haible  <bruno@clisp.org>
54624
54625         New module mbsrchr.
54626         * modules/mbsrchr: New file.
54627         * lib/mbsrchr.c: New file.
54628         * lib/string_.h (strrchr): Add a conditional link warning.
54629         (mbsrchr): New declaration.
54630         * m4/mbsrchr.m4: New file.
54631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54632         GNULIB_MBSRCHR.
54633         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54634         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54635
54636 2007-02-04  Bruno Haible  <bruno@clisp.org>
54637
54638         New module mbschr.
54639         * modules/mbschr: New file.
54640         * lib/mbschr.c: New file.
54641         * lib/string_.h (strchr): Add a conditional link warning.
54642         (mbschr): New declaration.
54643         * m4/mbschr.m4: New file.
54644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54645         GNULIB_MBSCHR.
54646         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54647         * MODULES.html.sh (Internationalization functions): Add mbschr.
54648
54649 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54652
54653         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54654
54655 2007-02-04  Bruno Haible  <bruno@clisp.org>
54656
54657         New module description section 'configure.ac-early'.
54658         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54659         (func_get_autoconf_early_snippet): New function.
54660         (func_import, func_create_testdir): Use it. Remove special cases for
54661         modules 'extensions' and 'lock'.
54662         * modules/extensions (configure.ac-early): Require
54663         gl_USE_SYSTEM_EXTENSIONS.
54664         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54665
54666 2007-02-04  Bruno Haible  <bruno@clisp.org>
54667
54668         Make use of gcj-4.3's -fsource and -ftarget option.
54669         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54670         and if so try the options -fsource and -ftarget.
54671         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54672         source_version, ftarget_option, target_version arguments.
54673         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54674         (is_envjavac_oldgcj_14_14_usable): Renamed from
54675         is_envjavac_gcj_14_14_usable.
54676         (is_envjavac_oldgcj_14_13_usable): Renamed from
54677         is_envjavac_gcj_14_13_usable.
54678         (is_gcj_present): Update.
54679         (is_gcj_43, is_gcj43_usable): New functions.
54680         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54681         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54682         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54683         try the options -fsource and -ftarget.
54684
54685 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54686
54687         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54688         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54689         larger value.
54690
54691 2007-02-03  Jim Meyering  <jim@meyering.net>
54692
54693         Give tools a better chance to allocate space for very large buffers.
54694         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54695
54696         Make pwd and readlink work also when run with an unreadable parent dir
54697         on systems with openat support.
54698         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54699         provided getcwd function, even when we have openat support.
54700         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54701
54702 2007-02-02  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54705         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54706         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54707         portability problems if one of these functions is only used on specific
54708         platforms.
54709         Reported by Paul Eggert.
54710
54711 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54714         is causing more trouble than it's curing.
54715         * lib/regex_internal.h (__mempcpy): Remove.
54716         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54717         (and make the code a tad smaller to boot).
54718         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54719
54720 2007-02-02  Jim Meyering  <jim@meyering.net>
54721
54722         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54723         section, not in the Makefile.am: one.
54724
54725 2007-02-02  Eric Blake  <ebb9@byu.net>
54726
54727         * lib/strchrnul.c: Always include config.h first.
54728
54729         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54730         gnulib strstr is not necessary here.
54731
54732 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54733
54734         * m4/socklen.m4: Fix typo.
54735
54736 2007-02-02  Eric Blake  <ebb9@byu.net>
54737
54738         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54739         * modules/netinet_in (Makefile.am): Likewise.
54740
54741 2007-02-01  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/string_.h (GL_LINK_WARNING): New macro.
54744         (strcasecmp, strstr, strcasestr): If provided by the system,
54745         conditionally define as a macro that leads to a warning instead of to
54746         an error.
54747         (strncasecmp): Conditionally define as a macro that leads to a warning.
54748
54749 2007-02-01  Karl Berry  <karl@gnu.org>
54750
54751         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54752
54753 2007-02-01  Bruno Haible  <bruno@clisp.org>
54754
54755         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54756         renamings.
54757
54758 2007-02-01  Eric Blake  <ebb9@byu.net>
54759
54760         * modules/regex (Depends-on): Revert dependence on mempcpy.
54761         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54762         module's definition of mempcpy.
54763         Reported by Paul Eggert.
54764
54765 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54768         the symbol XYZ before redefining it.  This fixes a problem with
54769         programs that don't use XYZ, when compiled on systems that define
54770         XYZ to something else.
54771
54772 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54775         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54776         writeable to group or other and (2) is intended to have a special
54777         mode bit that is set or cleared.  In such a case, the directory
54778         should be neither group- nor other-writeable until the special
54779         mode bits are right.
54780
54781 2007-01-31  Eric Blake  <ebb9@byu.net>
54782
54783         * modules/mountlist (Depends-on): Add strstr.
54784
54785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54786         bug.
54787         * modules/string (Makefile.am): Remove redundant replacement.
54788         * modules/regex (Depends-on): Add mempcpy.
54789
54790 2007-01-31  Bruno Haible  <bruno@clisp.org>
54791
54792         New module description field 'Link'.
54793         * gnulib-tool (func_usage): Document --extract-link-directive.
54794         (sed_extract_prog): Recognize 'Link' directive.
54795         (func_get_link_directive): New function.
54796         (func_import): Show summary of link directives.
54797         Handle --extract-link-directive option.
54798         * modules/acl (Link): New section.
54799         * modules/clock-time (Link): New section.
54800         * modules/euidaccess (Link): New section.
54801         * modules/gettext (Link): New section.
54802         * modules/iconv (Link): New section.
54803         * modules/lock (Link): New section.
54804         * modules/nanosleep (Link): New section.
54805         * modules/readline (Link): New section.
54806
54807 2007-01-27  Bruno Haible  <bruno@clisp.org>
54808
54809         Enforce the use of gnulib modules for unportable <string.h> functions.
54810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54811         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54812         (gl_HEADER_STRING_H_BODY): Require it.
54813         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54814         the symbol XYZ to one that gives a link error.
54815         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54816         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54817         * modules/mempcpy (configure.ac): Likewise.
54818         * modules/memrchr (configure.ac): Likewise.
54819         * modules/stpcpy (configure.ac): Likewise.
54820         * modules/stpncpy (configure.ac): Likewise.
54821         * modules/strcase (configure.ac): Likewise.
54822         * modules/strcasestr (configure.ac): Likewise.
54823         * modules/strchrnul (configure.ac): Likewise.
54824         * modules/strdup (configure.ac): Likewise.
54825         * modules/strndup (configure.ac): Likewise.
54826         * modules/strnlen (configure.ac): Likewise.
54827         * modules/strpbrk (configure.ac): Likewise.
54828         * modules/strsep (configure.ac): Likewise.
54829         * modules/strstr (configure.ac): Likewise.
54830         * modules/strtok_r (configure.ac): Likewise.
54831
54832 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54833
54834         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54835
54836 2007-01-30  Jim Meyering  <jim@meyering.net>
54837
54838         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54839
54840 2007-01-29  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54843         * lib/execute.c: Likewise.
54844         * lib/pipe.c: Likewise.
54845         * lib/printf-args.h: Likewise.
54846         * lib/printf-args.c: Likewise.
54847         * lib/printf-parse.c: Likewise.
54848         * lib/vasnprintf.c: Likewise.
54849
54850 2007-01-29  Eric Blake  <ebb9@byu.net>
54851
54852         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54853         declaration.
54854
54855 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * lib/strptime.h (strptime): Use 'restrict' for args where
54858         POSIX requires this.
54859         * lib/strptime.c (strptime): Likewise.
54860         Change license notice from LGPL to GPL, since gnulib-tool will
54861         change this as needed.
54862         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54863         defined.
54864         Include "strptime.h" first, to check interface.
54865         Do not #undef _LIBC and _NL_CURRENT.
54866         Do not include <stdlib.h>; no longer needed.
54867         Include "time_r.h" and declare ptime_locale_status
54868         only if _LIBC is not defined.
54869         (__P): Remove unused macro.
54870         (match_string): Bring back glibc version, but use it only if _LIBC
54871         is defined.
54872         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54873         Remove unnecessary assertion and abort() call.
54874         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54875         * m4/strptime.m4: Fix serial number comment.
54876         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54877         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54878         (Depends-on): Add time_r.
54879
54880 2007-01-29  Bruno Haible  <bruno@clisp.org>
54881
54882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54883         strptime.
54884         * modules/strptime (Depends-on): Add stdbool.
54885         * lib/strptime.h: Include <time.h> always. Add comments.
54886
54887 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54888
54889         * modules/strptime: New file.
54890         * lib/strptime.h: New file.
54891         * lib/strptime.c: New file.
54892         * m4/strptime.m4: New file.
54893
54894 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * MODULES.html.sh: New module mpsort.
54897         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54898
54899         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54900         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54902         All uses changed.
54903         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54904         All uses changed.
54905         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54906         to _Restrict_.
54907         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54908         the parameter matches the prototype.
54909
54910 2007-01-28  Jim Meyering  <jim@meyering.net>
54911
54912         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54913         sys/time.h here, reverting that part of the previous patch:
54914         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54915
54916 2007-01-28  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54919         value of $(SYS_TIME_H).
54920         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54921         remove it conditionally, too. [added by Jim Meyering]
54922         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54924         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54925         GETTIMEOFDAY_REPLACEMENT to 1.
54926
54927 2007-01-28  Bruno Haible  <bruno@clisp.org>
54928
54929         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54930         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54932         Set UNISTD_H instead of UNISTD_H2.
54933         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54934
54935 2007-01-28  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54938         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54939
54940 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54941
54942         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54943         (func_create_testdir): Ensure C locale for `grep' and `tr'
54944         character ranges.
54945         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54946         ACLOCAL_AMFLAGS parsing state machine.
54947
54948 2007-01-27  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/unistr/base: Update.
54951
54952 2007-01-27  Bruno Haible  <bruno@clisp.org>
54953
54954         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54955         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54956         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54957         modules/unistr/u32-mbtouc.
54958         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54959         * lib/unistr.h: Update.
54960         * lib/linebreak.c: Update.
54961         * modules/unistr/u32-mbtouc: Renamed from
54962         modules/unistr/u32-mbtouc-safe.
54963         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54964         * lib/unistr.h: Update.
54965         * lib/unistr/u32-to-u8.c: Update.
54966         * lib/unistr/u32-to-u16.c: Update.
54967
54968 2007-01-27  Bruno Haible  <bruno@clisp.org>
54969
54970         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54971         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54972         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54973         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54974         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54975         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54976         modules/unistr/u16-mbtouc.
54977         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54978         * lib/unistr.h: Update.
54979         * lib/linebreak.c: Update.
54980         * modules/linebreak: Update.
54981         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54982         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54983         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54984         * modules/unistr/u16-mbtouc: Renamed from
54985         modules/unistr/u16-mbtouc-safe.
54986         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54987         * lib/unistr.h: Update.
54988         * lib/unistr/u16-to-u8.c: Update.
54989         * modules/unistr/u16-to-u8: Update.
54990         * lib/unistr/u16-to-u32.c: Update.
54991         * modules/unistr/u16-to-u32: Update.
54992
54993 2007-01-27  Bruno Haible  <bruno@clisp.org>
54994
54995         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54996         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54997         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54998         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54999         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55000         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55001         modules/unistr/u8-mbtouc.
55002         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55003         * lib/unistr.h: Update.
55004         * lib/striconveh.c: Update.
55005         * modules/striconveh: Update.
55006         * lib/linebreak.c: Update.
55007         * modules/linebreak: Update.
55008         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55009         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55010         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55011         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55012         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55013         * lib/unistr.h: Update.
55014         * lib/striconveh.c: Update.
55015         * modules/striconveh: Update.
55016         * lib/unistr/u8-to-u16.c: Update.
55017         * modules/unistr/u8-to-u16: Update.
55018         * lib/unistr/u8-to-u32.c: Update.
55019         * modules/unistr/u8-to-u32: Update.
55020
55021 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55022
55023         Sync from Libtool.
55024         * lib/argz.c: Do not include strings.h nor memory.h, include
55025         string.h unconditionally.  Patch by Simon Josefsson.
55026
55027 2007-01-27  Bruno Haible  <bruno@clisp.org>
55028
55029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55030         from gl_HEADER_STRING_H_BODY.
55031         (gl_HEADER_STRING_H_BODY): Require it.
55032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55033         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55034         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55035         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55037         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55039         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55040         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55043         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55044         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55045         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55047
55048 2007-01-27  Bruno Haible  <bruno@clisp.org>
55049
55050         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55051         check_PROGRAMS into noinst_PROGRAMS.
55052         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55053         check_PROGRAMS in this case.
55054         (func_import): Set for_test to false.
55055         (func_create_testdir): Set for_test to true.
55056
55057 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55058             Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55061         (Depends-on): Add string.
55062         (Includes): Use <string.h> instead of strcasestr.h.
55063         * modules/string (Makefile.am): Also substitute the value of
55064         REPLACE_STRCASESTR.
55065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55066         assume strcasestr is declared in <string.h> not <strings.h>. Also
55067         set REPLACE_STRCASESTR.
55068         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55069         REPLACE_STRCASESTR.
55070         * lib/strcasestr.h: Remove file.
55071         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55072         * lib/string_.h (strcasestr): New declaration.
55073
55074 2007-01-27  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/string_.h: Use 'extern'.
55077
55078 2007-01-27  Jim Meyering  <jim@meyering.net>
55079
55080         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55081         of set-but-not-used local, "q".
55082
55083         * lib/mempcpy.c: Include <config.h> before <string.h>.
55084         This fixes a compilation error on HP-UX, due to the system's
55085         "restrict"-using mempcpy prototype.
55086
55087 2007-01-26  Bruno Haible  <bruno@clisp.org>
55088
55089         Small optimization.
55090         * lib/javacomp.c: Include c-strstr.h.
55091          (is_envjavac_gcj): Use c_strstr instead of strstr.
55092         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55093
55094 2007-01-26  Bruno Haible  <bruno@clisp.org>
55095
55096         * MODULES.html.sh (Unicode string functions): Add the new modules.
55097
55098         * modules/uniconv/u32-strconv-to-locale: New file.
55099         * lib/uniconv/u32-strconv-to-locale.c: New file.
55100
55101         * modules/uniconv/u16-strconv-to-locale: New file.
55102         * lib/uniconv/u16-strconv-to-locale.c: New file.
55103
55104         * modules/uniconv/u8-strconv-to-locale: New file.
55105         * lib/uniconv/u8-strconv-to-locale.c: New file.
55106
55107         * modules/uniconv/u32-strconv-from-locale: New file.
55108         * lib/uniconv/u32-strconv-from-locale.c: New file.
55109
55110         * modules/uniconv/u16-strconv-from-locale: New file.
55111         * lib/uniconv/u16-strconv-from-locale.c: New file.
55112
55113         * modules/uniconv/u8-strconv-from-locale: New file.
55114         * lib/uniconv/u8-strconv-from-locale.c: New file.
55115
55116         * modules/uniconv/u32-strconv-to-enc: New file.
55117         * lib/uniconv/u32-strconv-to-enc.c: New file.
55118         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55119         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55120
55121         * modules/uniconv/u16-strconv-to-enc: New file.
55122         * lib/uniconv/u16-strconv-to-enc.c: New file.
55123         * lib/uniconv/u-strconv-to-enc.h: New file.
55124         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55125         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55126
55127         * modules/uniconv/u8-strconv-to-enc: New file.
55128         * lib/uniconv/u8-strconv-to-enc.c: New file.
55129         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55130         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55131
55132         * modules/uniconv/u32-strconv-from-enc: New file.
55133         * lib/uniconv/u32-strconv-from-enc.c: New file.
55134         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55135         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55136
55137         * modules/uniconv/u16-strconv-from-enc: New file.
55138         * lib/uniconv/u16-strconv-from-enc.c: New file.
55139         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55140         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55141
55142         * modules/uniconv/u8-strconv-from-enc: New file.
55143         * lib/uniconv/u8-strconv-from-enc.c: New file.
55144         * lib/uniconv/u-strconv-from-enc.h: New file.
55145         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55146         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55147
55148         * modules/uniconv/u32-conv-from-enc: New file.
55149         * lib/uniconv/u32-conv-from-enc.c: New file.
55150         * modules/uniconv/u32-conv-from-enc-tests: New file.
55151         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55152
55153         * modules/uniconv/u16-conv-from-enc: New file.
55154         * lib/uniconv/u16-conv-from-enc.c: New file.
55155         * lib/uniconv/u-conv-from-enc.h: New file.
55156         * modules/uniconv/u16-conv-from-enc-tests: New file.
55157         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55158
55159         * modules/uniconv/u8-conv-from-enc: New file.
55160         * lib/uniconv/u8-conv-from-enc.c: New file.
55161         * modules/uniconv/u8-conv-from-enc-tests: New file.
55162         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55163
55164         * modules/uniconv/base: New file.
55165         * lib/uniconv.h: New file.
55166
55167 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         * doc/gnulib-tool.texi (Initial import): Update to match current
55170         behavior with strdup module.
55171         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55172         * lib/memmem.h: Remove; all uses removed.  This is now done
55173         by <string.h>.
55174         * lib/mempcpy.h: Likewise.
55175         * lib/memrchr.h: Likewise.
55176         * lib/stpcpy.h: Likewise.
55177         * lib/stpncpy.h: Likewise.
55178         * lib/strcase.h: Likewise.
55179         * lib/strchrnul.h: Likewise.
55180         * lib/strdup.h: Likewise.
55181         * lib/strndup.h: Likewise.
55182         * lib/strnlen.h: Likewise.
55183         * lib/strpbrk.h: Likewise.
55184         * lib/strsep.h: Likewise.
55185         * lib/strstr.h: Likewise.
55186         * lib/strtok_r.h: Likewise.
55187         * lib/string_.h: New file.
55188         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55189         Rely on <string.h> instead.
55190         * lib/canon-host.c: Likewise.
55191         * lib/chdir-long.c: Likewise.
55192         * lib/concatpath.c: Likewise.
55193         * lib/exclude.c: Likewise.
55194         * lib/fchdir.c: Likewise.
55195         * lib/getaddrinfo.c: Likewise.
55196         * lib/getcwd.c: Likewise.
55197         * lib/getsubopt.c: Likewise.
55198         * lib/glob.c: Likewise.
55199         * lib/hard-locale.c: Likewise.
55200         * lib/iconvme.c: Likewise.
55201         * lib/javacomp.c: Likewise.
55202         * lib/mempcpy.c: Likewise.
55203         * lib/memrchr.c: Likewise.
55204         * lib/regex_internal.h: Likewise.
55205         * lib/stpncpy.c: Likewise.
55206         * lib/strcasecmp.c: Likewise.
55207         * lib/strchrnul.c: Likewise.
55208         * lib/strdup.c: Likewise.
55209         * lib/striconv.c: Likewise.
55210         * lib/striconveh.c: Likewise.
55211         * lib/striconveha.c: Likewise.
55212         * lib/strncasecmp.c: Likewise.
55213         * lib/strndup.c: Likewise.
55214         * lib/strnlen.c: Likewise.
55215         * lib/strsep.c: Likewise.
55216         * lib/strstr.c: Likewise.
55217         * lib/strtok_r.c: Likewise.
55218         * lib/userspec.c: Likewise.
55219         * lib/w32spawn.h: Likewise.
55220         * lib/xstrndup.c: Likewise.
55221         * lib/mountlist.c (strstr): Remove decl.
55222         * m4/string_h.m4: New file.
55223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55224         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55226         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55227         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55228         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55229         Set REPLACE_STRCASECMP if necessary.
55230         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55231         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55232         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55234         HAVE_DECL_STRDUP if necessary.
55235         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55236         since gl_FUNC_STRNDUP does that now.
55237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55238         Check for decl here...
55239         (gl_PREREQ_STRNLEN): ... not here.
55240         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55241         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55242         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55244         necessary.
55245         * modules/string: New file.
55246         * modules/memmem (Files): Remove special-purpose include file.
55247         (Depends-on): Add string.
55248         (Include): Include <string.h>, not the removed file.
55249         * modules/mempcpy: Likewise.
55250         * modules/memrchr: Likewise.
55251         * modules/stpcpy: Likewise.
55252         * modules/stpncpy: Likewise.
55253         * modules/strcase: Likewise.
55254         * modules/strchrnul: Likewise.
55255         * modules/strdup: Likewise.
55256         * modules/strndup: Likewise.
55257         * modules/strnlen: Likewise.
55258         * modules/strpbrk: Likewise.
55259         * modules/strsep: Likewise.
55260         * modules/strstr: Likewise.
55261         * modules/strtok_r: Likewise.
55262         * tests/test-dirname.c: Don't include "strdup.h", since
55263         <string.h> now suffices.
55264         * tests/test-memmem.c: Don't include "memmem.h", since
55265         <string.h> now suffices.
55266
55267 2007-01-25  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55270         *resultp is 0.
55271
55272         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55273         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55274         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55275         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55276
55277         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55278         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55279         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55280         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55281         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55282         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55283
55284 2007-01-24  Bruno Haible  <bruno@clisp.org>
55285
55286         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55288         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55289         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55290         gl_FUNC_FTS_CORE.
55291         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55292         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55293         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55294         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55295         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55296         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55297         gl_FUNC_FCHOWNAT.
55298         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55299         gl_FUNC_STRFTIME.
55300         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55301         Reported by Ralf Wildenhues.
55302
55303 2007-01-24  Bruno Haible  <bruno@clisp.org>
55304
55305         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55306         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55307         gl_GETADDRINFO.
55308         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55309         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55310         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55311
55312 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55315         Don't use 'exit'; just return from 'main'.
55316         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55317
55318         * lib/fnmatch_.h: Readjust white space and comments to match
55319         glibc, to avoid spurious diffs.
55320
55321 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55322
55323         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55324         2004-12-01 change by Jakub Jelinek, since this code won't compile
55325         if !LIBC.  Problem reported by Bob Proulx.
55326
55327 2007-01-23  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/striconveh.c: Include c-strcaseeq.h.
55330         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55331         * modules/striconveh (Depends-on): Add c-strcaseeq.
55332
55333 2007-01-23  Bruno Haible  <bruno@clisp.org>
55334
55335         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55336
55337         * modules/c-strcaseeq: New file.
55338         * lib/c-strcaseeq.h: New file.
55339
55340         * modules/streq: New file.
55341         * lib/streq.h: New file.
55342
55343 2007-01-23  Bruno Haible  <bruno@clisp.org>
55344
55345         * modules/striconveha-tests: New file.
55346         * tests/test-striconveha.c: New file.
55347
55348         * lib/striconveha.h: Include <stdbool.h>.
55349         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55350         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55351         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55352         (mem_iconveha): New function.
55353         (str_iconveha_notranslit): Renamed from str_iconveha.
55354         (str_iconveha): New function.
55355         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55356         c-strcase.
55357
55358 2007-01-23  Bruno Haible  <bruno@clisp.org>
55359
55360         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55361         encodings without forgiving before trying any encoding with handler.
55362         (str_iconveha): Try all encodings without forgiving before trying any
55363         encoding with handler.
55364
55365 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         Import the following changes from libc.
55368
55369         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55370
55371         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55372
55373         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55374
55375         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55376         normal_bracket label.
55377
55378         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55379
55380         [BZ #361]
55381         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55382         to normal_bracket after fetching the next character.
55383
55384 2007-01-22  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55387         argument.
55388         * lib/striconveh.c (iconv_carefully_1): New function.
55389         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55390         argument.
55391         (str_cd_iconveh): Update.
55392         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55393         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55394         * tests/test-striconveh.c (MAGIC): New macro.
55395         (new_offsets): New function.
55396         (main): Test call with and without offsets.
55397
55398 2007-01-22  Bruno Haible  <bruno@clisp.org>
55399
55400         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55401         * modules/sys_select (Makefile.am): Likewise.
55402         * modules/sys_socket (Makefile.am): Likewise.
55403         * modules/sys_time (Makefile.am): Likewise.
55404
55405 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * modules/gettimeofday (License): Change from GPL to LGPL, since
55408         gettimeofday is a library function.
55409
55410 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55411
55412         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55413
55414 2007-01-21  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55417
55418 2007-01-21  Bruno Haible  <bruno@clisp.org>
55419
55420         * modules/striconveha: New file.
55421         * lib/striconveha.h: New file.
55422         * lib/striconveha.c: New file.
55423         * MODULES.html.sh (Internationalization functions): Add striconveha.
55424         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55425         string.
55426         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55427
55428 2007-01-21  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55431         * lib/striconveh.c (str_iconveh): Likewise.
55432
55433 2007-01-21  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/striconveh.h (mem_iconveh): New declaration.
55436         * lib/striconveh.c (mem_iconveh): New function.
55437         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55438
55439 2007-01-21  Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55442
55443         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55444         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55445         original result buffer.
55446         (str_cd_iconveh): Update.
55447         * tests/test-striconveh.c (main): Update.
55448
55449         * lib/striconv.h (mem_cd_iconv): Change specification.
55450         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55451         result buffer.
55452         (str_cd_iconv): Update.
55453         * tests/test-striconv.c (main): Update.
55454
55455 2007-01-21  Bruno Haible  <bruno@clisp.org>
55456
55457         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55458
55459 2007-01-20  Jim Meyering  <jim@meyering.net>
55460
55461         * lib/userspec.c (parse_with_separator): If a user or group string
55462         starts with "+", skip the corresponding name-to-ID look-up, since
55463         such a look-up must fail: user and group names may not include "+".
55464
55465 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55468         since we now assume the sys_time module.
55469         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55470         check for sys/time.h; no longer needed.
55471         * modules/poll (Depends-on): Depend on sys_time.
55472
55473 2007-01-18  Bruno Haible  <bruno@clisp.org>
55474
55475         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55477
55478         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55479         gettimeofday.
55480
55481         * tests/test-gettimeofday.c: Include <time.h>.
55482         (dummy): Remove variable.
55483
55484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55485         gl_HEADER_SYS_TIME_H.
55486         (gl_HEADER_SYS_TIME_H): New macro.
55487
55488         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55489         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55490         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55491         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55492         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55493         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55494         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55495         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55496         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55497         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55498         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55499
55500         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55501         last change; it caused a compilation error when cross-compiling to
55502         Cygwin.
55503
55504 2007-01-18  Jim Meyering  <jim@meyering.net>
55505
55506         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55507         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55508         than the race-prone "test -d sys || mkdir sys".
55509         (configure.ac): Use AC_PROG_MKDIR_P.
55510         * modules/sys_select: Likewise.
55511         * modules/sys_socket: Likewise.
55512         * modules/sys_time: Likewise.
55513
55514 2007-01-18  Eric Blake  <ebb9@byu.net>
55515
55516         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55517         replace gettimeofday.
55518         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55519         name, to avoid infinite recursion.
55520
55521 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55522
55523         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55524         module sys_time.
55525         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55526         assume timespec.h defines struct timeval.
55527         * lib/settime.c: Likewise.
55528         * lib/utimens.c: Likewise.
55529         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55530         since we now assume the gettimeofday module.
55531         * lib/tempname.c (__gen_tempname): Likewise.
55532         * lib/gettimeofday.h: Remove.
55533         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55534         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55535         Include <time.h>, for 'time()'.
55536         (localtime_buffer_addr): Also use this workaround if
55537         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55538         to simplify the uses.  All uses changed.
55539         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55540         that #undef is inside {}, and 'const' follows type name consistently.
55541         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55542         (gettimeofday): Do not use the maximum possible value for
55543         tv->tv_usec, since that might break usages other than ls.c.
55544         Instead, we'll leave ls.c alone.  This undoes today's patch
55545         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55546         we've never observed the problem but might as well keep the
55547         canary.
55548         * lib/nanosleep.c: Include timespec.h first, for interface check.
55549         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55550         now assume the sys_time module.
55551         * lib/tempname.c: Likewise.
55552         * lib/timespec.h: Likewise.
55553         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55554         needed.
55555         * lib/strftime.c: Likewise.
55556         * lib/timespec.h: Likewise.
55557         * lib/posixtm.c: Include posixtm.h first, for interface check.
55558         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55559         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55560         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55561         * lib/sys_time_.h: New file.
55562         * lib/timespec.h (struct timespec): Use long int, not long.
55563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55564         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55565         Remove obsolescent call to AC_HEADER_TIME.
55566         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55569         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55570         Likewise.
55571         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55572         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55574         into the sys_time module.  Check for gettimeofday just once.
55575         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55576         for gettimeofday signature to just check the signature.  Merely
55577         compile it, since linking doesn't test signature.  Improve test for
55578         whether gettimeofday.o is actually needed.
55579         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55580         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55581         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55582         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55583         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55584         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55585         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55586         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55587         than worrying about sys/time.h.
55588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55589         Don't bother worrying about TIME_WITH_SYS_TIME.
55590         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55591         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55592         * m4/sys_time_h.m4: New file.
55593         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55594         Don't include sys/time.h.  Return from main rather than exiting.
55595         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55596         all uses changed.
55597         * modules/gethrxtime (Depends-on): Add sys_time.
55598         * modules/gettime (Depends-on): Likewise.
55599         * modules/gettimeofday (Depends-on): Likewise.
55600         * modules/nanosleep (Depends-on): Likewise.
55601         * modules/settime (Depends-on): Likewise.
55602         * modules/tempname (Depends-on): Likewise.
55603         * modules/utimens (Depends-on): Likewise.
55604         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55605         (Include): Change back to <sys/time.h>.
55606         (Maintainer): Add self.
55607         * modules/sys_time: New file.
55608         * modules/tempname (Depends-on): Add gettimeofday.
55609         * tests/test-gettimeofday.c: Include <sys/time.h>
55610         rather than gettimeofday.h.
55611
55612 2007-01-17  Bruno Haible  <bruno@clisp.org>
55613
55614         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55615         the license default to GPL.
55616         (func_create_testdir): Don't complain if a module is LGPL and its
55617         tests module depends on GPLed modules.
55618
55619 2007-01-17  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/gettimeofday.c (gettimeofday): Add code for the case
55622         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55623         maximum possible value for tv->tv_usec, rather than the minimum one.
55624
55625 2005-10-08  Martin Lambers  <marlam@marlam.de>
55626 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55627 2007-01-16  Bruno Haible  <bruno@clisp.org>
55628
55629         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55630         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55631         gl_FUNC_GETTIMEOFDAY.
55632         (Include): Add gettimeofday.h.
55633         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55634         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55635         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55636         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55637         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55638         * lib/gettimeofday.h: New file.
55639         * lib/gettimeofday.c: Include <sys/timeb.h>.
55640         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55641         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55642         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55643         fall back on time().
55644
55645         * tests/test-gettimeofday.c: New file.
55646         * modules/gettimeofday-tests: New file.
55647
55648 2007-01-16  Eric Blake  <ebb9@byu.net>
55649
55650         * modules/fnmatch (Depends-on): Depend on wchar.
55651         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55652         * m4/fnmatch.m4: Likewise.
55653         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55654         * m4/mbchar.m4: Likewise.
55655         * modules/mbswidth (Depends-on): Depend on wchar.
55656         * lib/mbswidth.c: Assume <wchar.h>.
55657         * m4/mbswidth.m4: Likewise.
55658         * modules/quotearg (Depends-on): Depend on wchar.
55659         * lib/quotearg.c: Assume <wchar.h>.
55660         * m4/quotearg.m4: Likewise.
55661         * modules/regex (Depends-on): Depend on wchar.
55662         * lib/regex_internal.h: Assume <wchar.h>.
55663         * m4/regex.m4: Likewise.
55664         * modules/stdint (Depends-on): Depend on wchar.
55665         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55666         * m4/stdint.m4: Likewise.
55667         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55668         * modules/strftime (Depends-on): Depend on wchar.
55669         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55670         * modules/strtol (Depends-on): Depend on wchar.
55671         * lib/strtol.c: Assume <wchar.h>.
55672         * modules/wcwidth (Depends-on): Depend on wchar.
55673         * lib/wcwidth.h: Assume <wchar.h>.
55674         * m4/wcwidth.m4: Likewise.
55675
55676 2007-01-16  Bruno Haible  <bruno@clisp.org>
55677
55678         * modules/csharpexec-script: New, created from...
55679         * modules/csharpexec: ... this.
55680
55681 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55682
55683         * modules/javaexec-script: New, created from...
55684         * modules/javaexec: ... this.
55685
55686 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55687
55688         * modules/poll (Dependencies): Add sys_select.
55689
55690 2007-01-15  Jim Meyering  <jim@meyering.net>
55691
55692         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55693         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55694         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55695         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55696
55697 2007-01-15  Bruno Haible  <bruno@clisp.org>
55698
55699         * modules/striconveh: New file.
55700         * lib/striconveh.h: New file.
55701         * lib/striconveh.c: New file.
55702         * MODULES.html.sh (Internationalization functions): Add striconveh.
55703
55704         * modules/striconveh-tests: New file.
55705         * tests/test-striconveh.c: New file.
55706
55707 2007-01-15  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55710         not from GNU libiconv or GNU libc.
55711
55712 2007-01-15  Bruno Haible  <bruno@clisp.org>
55713
55714         * doc/gnulib-intro.texi (Copyright): Explain the different license
55715         terms for module descriptions, autoconf macros, tests, documentation.
55716
55717 2007-01-14  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/striconv-tests: New file.
55720         * tests/test-striconv.c: New file.
55721
55722 2007-01-14  Bruno Haible  <bruno@clisp.org>
55723
55724         * modules/iconv-tests: New file.
55725         * tests/test-iconv.c: New file.
55726
55727 2007-01-14  Bruno Haible  <bruno@clisp.org>
55728
55729         * gnulib-tool (func_get_license): For test modules, use the license of
55730         the main module.
55731
55732 2007-01-14  Bruno Haible  <bruno@clisp.org>
55733
55734         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55735         if iconv is found to exist.
55736
55737 2007-01-14  Bruno Haible  <bruno@clisp.org>
55738
55739         * modules/c-ctype-tests: New file.
55740         * tests/test-c-ctype.c: New file.
55741
55742 2007-01-14  Bruno Haible  <bruno@clisp.org>
55743
55744         * modules/binary-io-tests: New file.
55745         * tests/test-binary-io.sh: New file.
55746         * tests/test-binary-io.c: New file.
55747
55748 2007-01-14  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/array-oset-tests: New file.
55751         * tests/test-array_oset.c: New file.
55752
55753 2007-01-14  Bruno Haible  <bruno@clisp.org>
55754
55755         * modules/array-list-tests: New file.
55756         * tests/test-array_list.c: New file.
55757
55758 2007-01-14  Bruno Haible  <bruno@clisp.org>
55759
55760         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55761         and make.
55762         Reported by Simon Josefsson in
55763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55764
55765 2007-01-14  Bruno Haible  <bruno@clisp.org>
55766
55767         * modules/allocsa-tests: New file.
55768         * tests/test-allocsa.c: New file.
55769
55770 2007-01-14  Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/fchdir (Depends-on): Add absolute-header.
55773         * modules/unistd (Depends-on): Likewise.
55774
55775 2006-12-30  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/fchdir: New file.
55778         * modules/unistd (Files): Add lib/unistd_.h.
55779         (Makefile.am): Generate unistd.h from unistd_.h.
55780         * lib/fchdir.c: New file.
55781         * lib/dirent_.h: New file.
55782         * lib/unistd_.h: New file.
55783         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55784         * m4/fchdir.m4: New file.
55785         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55786         (gl_HEADER_UNISTD): Invoke it.
55787         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55788         function.
55789         * lib/backupfile.c (opendir, closedir): Undefine.
55790         * lib/chown.c (open, close): Undefine.
55791         * lib/clean-temp.c (open, close): Undefine.
55792         * lib/copy-file.c (open, close): Undefine.
55793         * lib/execute.c (open, close): Undefine.
55794         * lib/fsusage.c (open, close): Undefine.
55795         * lib/gc-gnulib.c (open, close): Undefine.
55796         * lib/getcwd.c (opendir, closedir): Undefine.
55797         * lib/glob.c (opendir, closedir): Undefine.
55798         * lib/javacomp.c (open, close): Undefine.
55799         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55800         * lib/openat-proc.c (open, close): Undefine.
55801         * lib/pagealign_alloc.c (open, close): Undefine.
55802         * lib/pipe.c (open, close): Undefine.
55803         * lib/progreloc.c (open, close): Undefine.
55804         * lib/savedir.c (opendir, closedir): Undefine.
55805         * lib/utime.c (open, close): Undefine.
55806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55807
55808 2007-01-10  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55811
55812 2007-01-12  Eric Blake  <ebb9@byu.net>
55813
55814         Provide a robust <wchar.h>.  Further simplifications are now
55815         possible in other modules, but not included here.
55816         * modules/wchar: New module.
55817         * m4/wchar.m4: New file.
55818         * lib/wchar_.h: Likewise.
55819         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55820         of the new module.
55821         * MODULES.html.sh (Extended multibyte and wide character utilities):
55822         New section.
55823
55824 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55827         to a reasonable default for memory allocation.
55828         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55829         file system that reports garbage st_size values for symlinks.
55830         Problem reported by Liyang Hu.
55831
55832 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55833
55834         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55835         Emacs .#* auto-save files).
55836
55837 2007-01-11  Bruno Haible  <bruno@clisp.org>
55838
55839         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55840         directory.
55841
55842 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55843
55844         Use @...@ consistently in lib/wctype_.h.
55845         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55846         on it being set to 1 or 0.
55847         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55848         go back to AC_SUBSTing it.
55849         * modules/wctype (Makefile.am): Undo previous change.
55850
55851 2007-01-10  Eric Blake  <ebb9@byu.net>
55852
55853         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55854         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55855         * modules/wctype (Makefile.am): Likewise.
55856         Reported by Chris McGuire.
55857
55858 2007-01-10  Jim Meyering  <jim@meyering.net>
55859
55860         fts.c: a small readability/maintainability improvement
55861         * lib/fts.c (fts_read): Make this code slightly more readable and
55862         maintainable by hoisting the "sp->fts_cur = p" assignments to
55863         immediately follow the statements that set P.  Derived from
55864         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55865
55866 2007-01-10  Eric Blake  <ebb9@byu.net>
55867
55868         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55869         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55871         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55872         Reported by Chris McGuire.
55873
55874 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55875
55876         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55877         in sed script.
55878
55879 2007-01-09  Bruno Haible  <bruno@clisp.org>
55880
55881         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55882         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55883         variables.
55884         (func_module): Use them.
55885
55886 2007-01-09  Bruno Haible  <bruno@clisp.org>
55887
55888         * modules/unistr/base: New file.
55889         * lib/unistr.h: New file.
55890
55891         * modules/unistr/u8-to-u16: New file.
55892         * lib/unistr/u8-to-u16.c: New file.
55893
55894         * modules/unistr/u8-to-u32: New file.
55895         * lib/unistr/u8-to-u32.c: New file.
55896
55897         * modules/unistr/u16-to-u8: New file.
55898         * lib/unistr/u16-to-u8.c: New file.
55899
55900         * modules/unistr/u16-to-u32: New file.
55901         * lib/unistr/u16-to-u32.c: New file.
55902
55903         * modules/unistr/u32-to-u8: New file.
55904         * lib/unistr/u32-to-u8.c: New file.
55905
55906         * modules/unistr/u32-to-u16: New file.
55907         * lib/unistr/u32-to-u16.c: New file.
55908
55909         * modules/unistr/u8-check: New file.
55910         * modules/unistr/u16-check: New file.
55911         * modules/unistr/u32-check: New file.
55912         * lib/unistr/u8-check.c: New file.
55913         * lib/unistr/u16-check.c: New file.
55914         * lib/unistr/u32-check.c: New file.
55915
55916         * modules/unistr/u8-chr: New file.
55917         * modules/unistr/u16-chr: New file.
55918         * modules/unistr/u32-chr: New file.
55919         * lib/unistr/u8-chr.c: New file.
55920         * lib/unistr/u16-chr.c: New file.
55921         * lib/unistr/u32-chr.c: New file.
55922
55923         * modules/unistr/u8-cmp: New file.
55924         * modules/unistr/u16-cmp: New file.
55925         * modules/unistr/u32-cmp: New file.
55926         * lib/unistr/u8-cmp.c: New file.
55927         * lib/unistr/u16-cmp.c: New file.
55928         * lib/unistr/u32-cmp.c: New file.
55929
55930         * modules/unistr/u8-cpy: New file.
55931         * modules/unistr/u16-cpy: New file.
55932         * modules/unistr/u32-cpy: New file.
55933         * lib/unistr/u8-cpy.c: New file.
55934         * lib/unistr/u16-cpy.c: New file.
55935         * lib/unistr/u32-cpy.c: New file.
55936         * lib/unistr/u-cpy.h: New file.
55937
55938         * modules/unistr/u8-cpy-alloc: New file.
55939         * modules/unistr/u16-cpy-alloc: New file.
55940         * modules/unistr/u32-cpy-alloc: New file.
55941         * lib/unistr/u8-cpy-alloc.c: New file.
55942         * lib/unistr/u16-cpy-alloc.c: New file.
55943         * lib/unistr/u32-cpy-alloc.c: New file.
55944         * lib/unistr/u-cpy-alloc.h: New file.
55945
55946         * modules/unistr/u8-endswith: New file.
55947         * modules/unistr/u16-endswith: New file.
55948         * modules/unistr/u32-endswith: New file.
55949         * lib/unistr/u8-endswith.c: New file.
55950         * lib/unistr/u16-endswith.c: New file.
55951         * lib/unistr/u32-endswith.c: New file.
55952         * lib/unistr/u-endswith.h: New file.
55953
55954         * modules/unistr/u8-mblen: New file.
55955         * modules/unistr/u16-mblen: New file.
55956         * modules/unistr/u32-mblen: New file.
55957         * lib/unistr/u8-mblen.c: New file.
55958         * lib/unistr/u16-mblen.c: New file.
55959         * lib/unistr/u32-mblen.c: New file.
55960
55961         * modules/unistr/u8-mbtouc: New file.
55962         * modules/unistr/u16-mbtouc: New file.
55963         * modules/unistr/u32-mbtouc: New file.
55964         * lib/unistr/u8-mbtouc.c: New file.
55965         * lib/unistr/u16-mbtouc.c: New file.
55966         * lib/unistr/u32-mbtouc.c: New file.
55967
55968         * modules/unistr/u8-mbtouc-safe: New file.
55969         * modules/unistr/u16-mbtouc-safe: New file.
55970         * modules/unistr/u32-mbtouc-safe: New file.
55971         * lib/unistr/u8-mbtouc-safe.c: New file.
55972         * lib/unistr/u16-mbtouc-safe.c: New file.
55973         * lib/unistr/u32-mbtouc-safe.c: New file.
55974
55975         * modules/unistr/u8-move: New file.
55976         * modules/unistr/u16-move: New file.
55977         * modules/unistr/u32-move: New file.
55978         * lib/unistr/u8-move.c: New file.
55979         * lib/unistr/u16-move.c: New file.
55980         * lib/unistr/u32-move.c: New file.
55981         * lib/unistr/u-move.h: New file.
55982
55983         * modules/unistr/u8-next: New file.
55984         * modules/unistr/u16-next: New file.
55985         * modules/unistr/u32-next: New file.
55986         * lib/unistr/u8-next.c: New file.
55987         * lib/unistr/u16-next.c: New file.
55988         * lib/unistr/u32-next.c: New file.
55989
55990         * modules/unistr/u8-prev: New file.
55991         * modules/unistr/u16-prev: New file.
55992         * modules/unistr/u32-prev: New file.
55993         * lib/unistr/u8-prev.c: New file.
55994         * lib/unistr/u16-prev.c: New file.
55995         * lib/unistr/u32-prev.c: New file.
55996
55997         * modules/unistr/u8-set: New file.
55998         * modules/unistr/u16-set: New file.
55999         * modules/unistr/u32-set: New file.
56000         * lib/unistr/u8-set.c: New file.
56001         * lib/unistr/u16-set.c: New file.
56002         * lib/unistr/u32-set.c: New file.
56003         * lib/unistr/u-set.h: New file.
56004
56005         * modules/unistr/u8-startswith: New file.
56006         * modules/unistr/u16-startswith: New file.
56007         * modules/unistr/u32-startswith: New file.
56008         * lib/unistr/u8-startswith.c: New file.
56009         * lib/unistr/u16-startswith.c: New file.
56010         * lib/unistr/u32-startswith.c: New file.
56011         * lib/unistr/u-startswith.h: New file.
56012
56013         * modules/unistr/u8-stpcpy: New file.
56014         * modules/unistr/u16-stpcpy: New file.
56015         * modules/unistr/u32-stpcpy: New file.
56016         * lib/unistr/u8-stpcpy.c: New file.
56017         * lib/unistr/u16-stpcpy.c: New file.
56018         * lib/unistr/u32-stpcpy.c: New file.
56019         * lib/unistr/u-stpcpy.h: New file.
56020
56021         * modules/unistr/u8-stpncpy: New file.
56022         * modules/unistr/u16-stpncpy: New file.
56023         * modules/unistr/u32-stpncpy: New file.
56024         * lib/unistr/u8-stpncpy.c: New file.
56025         * lib/unistr/u16-stpncpy.c: New file.
56026         * lib/unistr/u32-stpncpy.c: New file.
56027         * lib/unistr/u-stpncpy.h: New file.
56028
56029         * modules/unistr/u8-strcat: New file.
56030         * modules/unistr/u16-strcat: New file.
56031         * modules/unistr/u32-strcat: New file.
56032         * lib/unistr/u8-strcat.c: New file.
56033         * lib/unistr/u16-strcat.c: New file.
56034         * lib/unistr/u32-strcat.c: New file.
56035         * lib/unistr/u-strcat.h: New file.
56036
56037         * modules/unistr/u8-strchr: New file.
56038         * modules/unistr/u16-strchr: New file.
56039         * modules/unistr/u32-strchr: New file.
56040         * lib/unistr/u8-strchr.c: New file.
56041         * lib/unistr/u16-strchr.c: New file.
56042         * lib/unistr/u32-strchr.c: New file.
56043
56044         * modules/unistr/u8-strcmp: New file.
56045         * modules/unistr/u16-strcmp: New file.
56046         * modules/unistr/u32-strcmp: New file.
56047         * lib/unistr/u8-strcmp.c: New file.
56048         * lib/unistr/u16-strcmp.c: New file.
56049         * lib/unistr/u32-strcmp.c: New file.
56050
56051         * modules/unistr/u8-strcpy: New file.
56052         * modules/unistr/u16-strcpy: New file.
56053         * modules/unistr/u32-strcpy: New file.
56054         * lib/unistr/u8-strcpy.c: New file.
56055         * lib/unistr/u16-strcpy.c: New file.
56056         * lib/unistr/u32-strcpy.c: New file.
56057         * lib/unistr/u-strcpy.h: New file.
56058
56059         * modules/unistr/u8-strcspn: New file.
56060         * modules/unistr/u16-strcspn: New file.
56061         * modules/unistr/u32-strcspn: New file.
56062         * lib/unistr/u8-strcspn.c: New file.
56063         * lib/unistr/u16-strcspn.c: New file.
56064         * lib/unistr/u32-strcspn.c: New file.
56065         * lib/unistr/u-strcspn.h: New file.
56066
56067         * modules/unistr/u8-strdup: New file.
56068         * modules/unistr/u16-strdup: New file.
56069         * modules/unistr/u32-strdup: New file.
56070         * lib/unistr/u8-strdup.c: New file.
56071         * lib/unistr/u16-strdup.c: New file.
56072         * lib/unistr/u32-strdup.c: New file.
56073         * lib/unistr/u-strdup.h: New file.
56074
56075         * modules/unistr/u8-strlen: New file.
56076         * modules/unistr/u16-strlen: New file.
56077         * modules/unistr/u32-strlen: New file.
56078         * lib/unistr/u8-strlen.c: New file.
56079         * lib/unistr/u16-strlen.c: New file.
56080         * lib/unistr/u32-strlen.c: New file.
56081         * lib/unistr/u-strlen.h: New file.
56082
56083         * modules/unistr/u8-strmblen: New file.
56084         * modules/unistr/u16-strmblen: New file.
56085         * modules/unistr/u32-strmblen: New file.
56086         * lib/unistr/u8-strmblen.c: New file.
56087         * lib/unistr/u16-strmblen.c: New file.
56088         * lib/unistr/u32-strmblen.c: New file.
56089
56090         * modules/unistr/u8-strmbtouc: New file.
56091         * modules/unistr/u16-strmbtouc: New file.
56092         * modules/unistr/u32-strmbtouc: New file.
56093         * lib/unistr/u8-strmbtouc.c: New file.
56094         * lib/unistr/u16-strmbtouc.c: New file.
56095         * lib/unistr/u32-strmbtouc.c: New file.
56096
56097         * modules/unistr/u8-strncat: New file.
56098         * modules/unistr/u16-strncat: New file.
56099         * modules/unistr/u32-strncat: New file.
56100         * lib/unistr/u8-strncat.c: New file.
56101         * lib/unistr/u16-strncat.c: New file.
56102         * lib/unistr/u32-strncat.c: New file.
56103         * lib/unistr/u-strncat.h: New file.
56104
56105         * modules/unistr/u8-strncmp: New file.
56106         * modules/unistr/u16-strncmp: New file.
56107         * modules/unistr/u32-strncmp: New file.
56108         * lib/unistr/u8-strncmp.c: New file.
56109         * lib/unistr/u16-strncmp.c: New file.
56110         * lib/unistr/u32-strncmp.c: New file.
56111
56112         * modules/unistr/u8-strncpy: New file.
56113         * modules/unistr/u16-strncpy: New file.
56114         * modules/unistr/u32-strncpy: New file.
56115         * lib/unistr/u8-strncpy.c: New file.
56116         * lib/unistr/u16-strncpy.c: New file.
56117         * lib/unistr/u32-strncpy.c: New file.
56118         * lib/unistr/u-strncpy.h: New file.
56119
56120         * modules/unistr/u8-strnlen: New file.
56121         * modules/unistr/u16-strnlen: New file.
56122         * modules/unistr/u32-strnlen: New file.
56123         * lib/unistr/u8-strnlen.c: New file.
56124         * lib/unistr/u16-strnlen.c: New file.
56125         * lib/unistr/u32-strnlen.c: New file.
56126         * lib/unistr/u-strnlen.h: New file.
56127
56128         * modules/unistr/u8-strpbrk: New file.
56129         * modules/unistr/u16-strpbrk: New file.
56130         * modules/unistr/u32-strpbrk: New file.
56131         * lib/unistr/u8-strpbrk.c: New file.
56132         * lib/unistr/u16-strpbrk.c: New file.
56133         * lib/unistr/u32-strpbrk.c: New file.
56134         * lib/unistr/u-strpbrk.h: New file.
56135
56136         * modules/unistr/u8-strrchr: New file.
56137         * modules/unistr/u16-strrchr: New file.
56138         * modules/unistr/u32-strrchr: New file.
56139         * lib/unistr/u8-strrchr.c: New file.
56140         * lib/unistr/u16-strrchr.c: New file.
56141         * lib/unistr/u32-strrchr.c: New file.
56142
56143         * modules/unistr/u8-strspn: New file.
56144         * modules/unistr/u16-strspn: New file.
56145         * modules/unistr/u32-strspn: New file.
56146         * lib/unistr/u8-strspn.c: New file.
56147         * lib/unistr/u16-strspn.c: New file.
56148         * lib/unistr/u32-strspn.c: New file.
56149         * lib/unistr/u-strspn.h: New file.
56150
56151         * modules/unistr/u8-strstr: New file.
56152         * modules/unistr/u16-strstr: New file.
56153         * modules/unistr/u32-strstr: New file.
56154         * lib/unistr/u8-strstr.c: New file.
56155         * lib/unistr/u16-strstr.c: New file.
56156         * lib/unistr/u32-strstr.c: New file.
56157         * lib/unistr/u-strstr.h: New file.
56158
56159         * modules/unistr/u8-strtok: New file.
56160         * modules/unistr/u16-strtok: New file.
56161         * modules/unistr/u32-strtok: New file.
56162         * lib/unistr/u8-strtok.c: New file.
56163         * lib/unistr/u16-strtok.c: New file.
56164         * lib/unistr/u32-strtok.c: New file.
56165         * lib/unistr/u-strtok.h: New file.
56166
56167         * modules/unistr/u8-uctomb: New file.
56168         * modules/unistr/u16-uctomb: New file.
56169         * modules/unistr/u32-uctomb: New file.
56170         * lib/unistr/u8-uctomb.c: New file.
56171         * lib/unistr/u16-uctomb.c: New file.
56172         * lib/unistr/u32-uctomb.c: New file.
56173
56174         * MODULES.html.sh (Unicode string functions): Add the new modules.
56175
56176 2007-01-08  Bruno Haible  <bruno@clisp.org>
56177
56178         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56179         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56180         subdirectories.
56181
56182 2007-01-08  Karl Berry  <karl@gnu.org>
56183
56184         * doc/error.texi: mention that main() fns must set program_name
56185         when progname is used.
56186
56187 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56190         WCTYPE_H is empty, for the benefit of builds from non-distclean
56191         directories.  Problem reported by Eric Blake in
56192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56193
56194 2007-01-08  Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56197         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56198         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56199         PROVIDE_CANONICALIZE_FILENAME_MODE.
56200         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56201
56202 2007-01-08  Bruno Haible  <bruno@clisp.org>
56203
56204         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56205         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56206         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56207         * lib/fts.c: Likewise.
56208         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56209
56210 2006-12-25  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/utf8-ucs4-safe: New file.
56213         * lib/utf8-ucs4-safe.h: New file.
56214         * lib/unistr/utf8-ucs4-safe.c: New file.
56215
56216         * modules/utf16-ucs4-safe: New file.
56217         * lib/utf16-ucs4-safe.h: New file.
56218         * lib/unistr/utf16-ucs4-safe.c: New file.
56219
56220         * MODULES.html.sh (Unicode string functions): Add the new modules.
56221
56222 2007-01-08  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56225         (Depends-on): Add unitypes.
56226         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56227         (u8_mbtouc_aux): Move out to separate file.
56228         (u8_mbtouc): Use ucs4_t, uint8_t types.
56229         * lib/unistr/utf8-ucs4.c: New file.
56230
56231         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56232         (Depends-on): Add unitypes.
56233         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56234         (u16_mbtouc_aux): Move out to separate file.
56235         (u16_mbtouc): Use ucs4_t, uint16_t types.
56236         * lib/unistr/utf16-ucs4.c: New file.
56237
56238         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56239         (Depends-on): Add unitypes.
56240         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56241         (u8_uctomb_aux): Move out to separate file.
56242         (u8_uctomb): Use ucs4_t, uint8_t types.
56243         * lib/unistr/ucs4-utf8.c: New file.
56244
56245         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56246         (Depends-on): Add unitypes.
56247         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56248         (u16_uctomb_aux): Move out to separate file.
56249         (u16_uctomb): Use ucs4_t, uint16_t types.
56250         * lib/unistr/ucs4-utf16.c: New file.
56251
56252 2006-12-25  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/unitypes: New file.
56255         * lib/unitypes.h: New file.
56256         * MODULES.html.sh (func_all_modules): New section "Unicode string
56257         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56258         this section. Add unitypes.
56259
56260 2007-01-08  Bruno Haible  <bruno@clisp.org>
56261
56262         Avoid variable names that conflict with those from libtool.
56263         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56264         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56265         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56266         library_names_spec to acl_library_names_spec, hardcode_* to
56267         acl_hardcode_*.
56268         Reported by Ralf Wildenhues.
56269
56270 2007-01-08  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56273         definition.
56274         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56275         definition.
56276         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56277         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56278         definition.
56279         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56280         definition.
56281         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56282         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56283         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56284         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56285         definition.
56286         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56287         definition.
56288         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56289         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56290         GC_USE_<algorithm>.
56291         * lib/gc-libgcrypt.c: Likewise.
56292         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56293         * modules/gc-arctwo (configure.ac): Likewise.
56294         * modules/gc-des (configure.ac): Likewise.
56295         * modules/gc-hmac-md5 (configure.ac): Likewise.
56296         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56297         * modules/gc-md2 (configure.ac): Likewise.
56298         * modules/gc-md4 (configure.ac): Likewise.
56299         * modules/gc-md5 (configure.ac): Likewise.
56300         * modules/gc-random (configure.ac): Likewise.
56301         * modules/gc-rijndael (configure.ac): Likewise.
56302         * modules/gc-sha1 (configure.ac): Likewise.
56303
56304 2007-01-08  Bruno Haible  <bruno@clisp.org>
56305
56306         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56307         macro definition.
56308         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56309         definition.
56310         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56311         definition.
56312         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56313         * modules/fcntl-safer (configure.ac): Likewise.
56314         * modules/fopen-safer (configure.ac): Likewise.
56315         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56316         GNULIB_FWRITEERROR macro definition.
56317
56318 2007-01-08  Bruno Haible  <bruno@clisp.org>
56319
56320         * m4/gnulib-common.m4: New file.
56321         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56322         (func_get_filelist): Add m4/gnulib-common.m4.
56323
56324 2007-01-08  Bruno Haible  <bruno@clisp.org>
56325
56326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56327         command.
56328
56329 2007-01-08  Jim Meyering  <jim@meyering.net>
56330
56331         Use a more robust test for a "can't happen" condition.
56332         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56333         narrowed the st_size value.  Presuming the "can't happen" condition
56334         is true, that narrowing could conceivably convert an invalid st_size
56335         value into a valid one.  Instead, use a change based on Matthew
56336         Woehlke's original patch.
56337
56338         Slight readability improvement: use an assert-like macro
56339         in place of literal "abort ()" uses.
56340         * lib/fts.c (fts_assert): Define.
56341         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56342         Use this macro instead of a bare 'abort'.
56343
56344 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56345
56346         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56347         simply work around them.
56348         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56349         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56350         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56351         declaring.
56352         Don't bother to define as macros, since the standard doesn't require it.
56353         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56354         longer worry about IRIX 5.3.
56355         (HAVE_WCTYPE_CTMP_BUG): Remove.
56356
56357 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56358
56359         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56360         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56361         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56362         Problems reported by Georg Schwarz for IRIX 5.3.
56363
56364         * gnulib-tool (autoconf_minversion): Take the maximum version number
56365         found, not the minimum.  Problem reported by James Youngman.
56366
56367 2007-01-03  Karl Berry  <karl@gnu.org>
56368
56369         * doc/error.texi: new file, explaining interaction with progname.
56370         * doc/gnulib.texi: include it.  Update copyright.
56371
56372 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56373
56374         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56375         AC_CANONICAL_HOST, to improve autobuild outputs.
56376
56377 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56378             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56379
56380         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56381         sockets, server sockets, and other file descriptors.  Count errors
56382         to compute the return value.  Reorder the code a bit to be easier
56383         to follow.  Don't set event bits that were not requested (except
56384         POLLERR and POLLHUP).
56385
56386 2007-01-01  Bruno Haible  <bruno@clisp.org>
56387
56388         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56389
56390 2007-01-03  Jim Meyering  <jim@meyering.net>
56391
56392         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56393
56394 2007-01-02  Bruno Haible  <bruno@clisp.org>
56395
56396         * modules/settime (Include): Require timespec.h.
56397         * modules/nanosleep (Include): Likewise.
56398
56399 2007-01-01  Bruno Haible  <bruno@clisp.org>
56400
56401         * gnulib-tool (func_emit_copyright_notice): Bump year.
56402         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56403
56404 2007-01-01  Bruno Haible  <bruno@clisp.org>
56405
56406         Improve support for OpenBSD.
56407         * build-aux/config.rpath (libname_spec): Export.
56408         (library_names_spec): New variable. Export.
56409         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56410         library_names_spec from the config.rpath output. Locate shared library
56411         through the name pattern in library_names_spec.
56412
56413 2007-01-01  Eric Blake  <ebb9@byu.net>
56414
56415         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56416
56417 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56420         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56421         assume the C locale, and avoid an "eval" that could cause trouble.
56422         Problem with SORT reported by Bob Proulx.
56423
56424         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56425         Define.  Trivial patch from Henning Nielsen Lund, originally
56426         sent to bug-grep@gnu.org today.
56427
56428 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56429
56430         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56431         struct stat.  Problem reported by Henning Nielsen Lund.
56432         * lib/acl.c: Include acl.h first, to check interface.  Don't
56433         bother to include sys/types.h and sys/stat.h again.
56434
56435 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56436
56437         Import the following change from libc; problem reported by
56438         Sven Verdoolaege.
56439
56440         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56441
56442         [BZ #1373]
56443         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56444
56445 2006-12-28  Jim Meyering  <jim@meyering.net>
56446
56447         * build-aux/announce-gen: Do not assume that the package
56448         builds any of tar.gz, tar.bz2, and .xdelta files.
56449         Suggestion from Simon Josefsson.
56450
56451 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56452
56453         * modules/announce-gen: New file.
56454
56455 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56456
56457         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56458         handles its gotchas now.
56459         * lib/mbswidth.c: Likewise.
56460         * lib/wcwidth.h: Likewise.
56461         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56462         and iswcntrl; the wctype module does this stuff now.
56463         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56465         * modules/mbchar (Depends-on): Add wctype.
56466         * modules/mbswidth (Depends-on): Likewise.
56467         * modules/wcwidth (Depends-on): Likewise.
56468
56469 2006-12-27  Eric Blake  <ebb9@byu.net>
56470
56471         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56472         module uses more than what <wctype.h> is required to provide.
56473
56474 2006-12-26  Eric Blake  <ebb9@byu.net>
56475
56476         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56477
56478 2006-12-26  Eric Blake  <ebb9@byu.net>
56479
56480         * modules/absolute-header: New module.
56481         * modules/fcntl (Depends-on): Depend on it.
56482         * modules/inttypes (Depends-on): Likewise.
56483         * modules/stdint (Depends-on): Likewise.
56484         * modules/sys_stat (Depends-on): Likewise.
56485         * modules/wctype (Depends-on): Likewise.
56486         * MODULES.html.sh (Support for building libraries and
56487         executables): Document it.
56488
56489 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         * gnulib-tool (SED): Remove, undoing previous change.
56492         The problem was that it broke coreutils on Solaris, because
56493         "sed --posix" leaked into a makefile.
56494         (sed): New alias, if 'alias' and GNU sed.
56495
56496 2006-12-24  Jim Meyering  <jim@meyering.net>
56497
56498         Work around an fchownat bug in glibc-2.4:
56499         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56500         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56501         in spite of the -P option.
56502         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56503         New macros.
56504         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56505         * modules/openat (Files): Add lib/fchownat.c.
56506         * lib/openat.c (fchownat): Don't define here.  Move to...
56507         * lib/fchownat.c: ...this new file.
56508
56509 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56510
56511         Fix bug reported by Bruno Haible in
56512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56513         where quotearg.c didn't compile on Mac OS X 10.2 because it
56514         lacks <wchar.h> and wint_t.
56515         * lib/wctype_.h (__wctype_wint_t): New type.
56516         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56517         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56518         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56519         Arg is now of type __wctype_wint_t, not wint_t.
56520         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56521         substitute HAVE_WINT_T.
56522         * modules/wctype (Files): Add m4/wint_t.m4.
56523         (wctype.h): Substitute HAVE_WINT_T.
56524
56525 2006-12-23  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56528
56529 2006-12-23  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56532         S_ISLNK.
56533         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56534         mingw.
56535
56536 2006-12-22  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/copy-file.c: Include acl.h.
56539         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56540         Close the file descriptors only after being done with copy_acl.
56541         * modules/copy-file (Depends-on): Add acl.
56542
56543 2006-12-22  Bruno Haible  <bruno@clisp.org>
56544
56545         * gnulib-tool (SED): New variable.
56546         Use $SED instead of sed everywhere.
56547
56548 2006-12-22  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/no-c++: New file.
56551         * m4/no-c++.m4: New file.
56552         * MODULES.html.sh (Support for building libraries and executables):
56553         Add no-c++.
56554
56555 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56556
56557         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56558         Include <limits.h>, and use its INT_MAX to rewrite the
56559         j loop so that it does not overflow 'int'.  Problem reported by
56560         Ralf Wildenhues in
56561         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56562         Play it safe by shifting left by 1 rather than multiplying by 2,
56563         as GCC is less likely to optimize this away when the value
56564         is signed (when it assumes overflow leads to undefined behavior).
56565         Also, don't assume time_t uses two's complement.
56566
56567 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         * MODULES.html.sh: New module wctype.
56570         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56571         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56572         <wctype.h>, since the new wctype module should fix this.
56573         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56574         the wctype module should arrange for it.
56575         * lib/regex_internal.h: Likewise.
56576         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56577         since the wctype module should handle this now.
56578         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56579         * modules/fnmatch (Depends-on): Add wctype.
56580         * modules/quotearg (Depends-on): Likewise.
56581         * modules/regex (Depends-on): Likewise.
56582
56583 2006-12-19  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56586         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56587
56588 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56589
56590         * modules/savewd (Depends-on): Fix dependency on fcntl.
56591
56592 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56595         conforms to C99, rather than relying on the user's environment
56596         setting of STDINT_H.
56597
56598 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56599         and Eric Blake  <ebb9@byu.net>
56600
56601         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56602         This is more consistent with the other defines here.
56603         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56604         Port to z/OS.  Problem reported by Paul Gilmartin.
56605         Change local vars to use gl_ prefix rather than ac_.
56606         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56607         with other defines.
56608         * modules/double-slash-root: New module.
56609         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56610         (Depends-on): Add double-slash-root.
56611         * MODULES.html.sh (File system functions): Mention new module.
56612
56613 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56616         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56617         This is for the benefit of gzip, which doesn't do i18n.
56618
56619 2006-12-12  Jim Meyering  <jim@meyering.net>
56620
56621         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56622         Reported by Andreas Schwab <schwab@suse.de>.
56623
56624 2006-12-12  Bruno Haible  <bruno@clisp.org>
56625
56626         Merge these changes.
56627         2006-09-05  Bruno Haible  <bruno@clisp.org>
56628         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56629         iconv_alloc succeeded.
56630         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56631         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56632         test for " && dest " at the end - dest is always != NULL there. Call
56633         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56634         with 2xNULL arguments, also to flush the state storage. Handle the
56635         IRIX iconv behaviour. Realloc the final result, to throw away unused
56636         memory.
56637
56638 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56641         and fchmodat unconditionally, since glibc 2.4 has them.
56642         Problem reported by Arkadiusz Miskiewicz.
56643
56644 2006-12-10  Bruno Haible  <bruno@clisp.org>
56645
56646         * gnulib-tool (func_import): Show the include files only for those
56647         modules that are copied and specified.
56648         Reported by Karl Berry.
56649
56650 2006-12-08  Jim Meyering  <jim@meyering.net>
56651
56652         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56653         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56654
56655         * build-aux/announce-gen: Add two new options, both optional:
56656         --bootstrap-tools=TOOL_LIST
56657               a comma-separated list of tools, e.g.,
56658               autoconf,automake,bison,gnulib
56659         --gnulib-snapshot-date=DATE
56660               if gnulib is in the bootstrap tool list,
56661               then report this as the snapshot date.
56662               If not specified, use the current date/time.
56663               If you specify a date here, be sure it's UTC.
56664
56665 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56666
56667         * tests/test-argp-2.sh: Fix test to match actual output.
56668         (func_compare): Fix sed script to be portable.
56669
56670 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56671
56672         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56673         workaround for this case.  It is not autoconfigured now; offhand
56674         it's hard to see how to autoconfigure it.
56675
56676 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56677
56678         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56679         a directory that is about to be chowned.  Such a directory's
56680         initial file permissions should permit the owner only and this
56681         should not be changed until after the chown, since the group and
56682         other bits would be incorrect if they granted permission before
56683         the chown.
56684
56685         Fix porting problem for iswctype reported by Georg Schwarz in:
56686         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56687         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56688         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56689         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56690         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56691
56692 2006-12-03  Jim Meyering  <jim@meyering.net>
56693
56694         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56695         p->fts_statp may not yet be defined.
56696         (fts_read): Instead, set it in the caller, once p->fts_statp is
56697         sure to be defined, and corresponds to a top-level directory.
56698         This bug made du -x fail.  Here's the coreutils test case:
56699         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56700         Reported by Mike Frysinger.
56701
56702 2006-12-01  Jim Meyering  <jim@meyering.net>
56703
56704         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56705         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56706         Reported by Simon Josefsson.
56707
56708 2006-11-30  Jim Meyering  <jim@meyering.net>
56709
56710         * m4/warning.m4: Use the all-permissive copyright notice
56711         recommended by RMS (rather than LGPL).
56712         * m4/vararrays.m4: Likewise.
56713         * m4/flexmember.m4: Likewise.
56714
56715 2006-11-29  Bruno Haible  <bruno@clisp.org>
56716
56717         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56718         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56719         using +=.
56720         Reported by Simon Josefsson <simon@josefsson.org>.
56721
56722 2006-11-28  James Youngman <jay@gnu.org>
56723
56724         * README: Advise users that they might find the bug-gnulib@gnu.org
56725         and autotools-announce@gnu.org mailing lists useful.
56726
56727 2006-11-28  Bruno Haible  <bruno@clisp.org>
56728
56729         * m4/ptrdiff_max.m4: Remove file.
56730
56731 2006-11-21  Bruno Haible  <bruno@clisp.org>
56732
56733         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56734         _AC_COMPUTE_INT.
56735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56736         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56737         _AC_COMPUTE_INT.
56738         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56739         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56740         _AC_COMPUTE_INT.
56741         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56742
56743 2006-11-28  Jim Meyering  <jim@meyering.net>
56744
56745         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56746         warning from "gcc -Wshadow" about shadowing the builtin.
56747
56748 2006-11-27  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56751         _AC_COMPUTE_INT.
56752         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56753
56754 2006-11-27  Bruno Haible  <bruno@clisp.org>
56755             Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56758
56759 2006-11-26  Bruno Haible  <bruno@clisp.org>
56760
56761         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56762         noinst_LTLIBRARIES.
56763
56764 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56765             Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56768         if compiling with "gcc -ansi".
56769
56770 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56771
56772         Fix some incompatibilities with gcc -ansi -pedantic.
56773         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56774         if compiling pedantically with GCC, unless it's C99 or later.
56775         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56776         it mishandles gcc -ansi -pedantic as well.
56777         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56778         if gcc -pedantic.
56779         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56780         initializers for struct if -pedantic, unless it's C99 or later.
56781
56782 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56783
56784         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56785         Don't close an fd more than once. Identical atimes indicate
56786         success, not failure.
56787
56788 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56789
56790         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56791
56792 2006-11-23  Jim Meyering  <jim@meyering.net>
56793
56794         * build-aux/announce-gen: New file.  From coreutils.
56795
56796 2006-11-22  Jim Meyering  <jim@meyering.net>
56797
56798         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56799         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56800         (fts_read): Use a temporary to narrow the overused st_size member
56801         before using it in a switch statement.  Reported by Matthew Woehlke.
56802
56803         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56804         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56805
56806 2006-11-20  Bruno Haible  <bruno@clisp.org>
56807
56808         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56809         changequote instead of pairs of brackets.
56810         Reported by Andreas Schwab <schwab@suse.de>.
56811
56812 2006-11-21  Jim Meyering  <jim@meyering.net>
56813
56814         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56815         so as to remain compatible with older compilers.
56816         Patch from Michael Deutschmann.
56817
56818 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56819
56820         * MODULES.html.sh (File system functions): Add openat.
56821
56822         * lib/openat.h (rpl_fstatat): New macro, if
56823         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56824         (fstatat): Define to rpl_fstatat under the same conditions,
56825         unless COMPILING_FSTATAT.
56826         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56827         seems to have the bug.
56828         * lib/fstatat.c: New file.
56829         * modules/openat (Files): Add it.
56830
56831 2006-11-20  Bruno Haible  <bruno@clisp.org>
56832
56833         * Makefile: New file.
56834
56835 2006-11-20  Jim Meyering  <jim@meyering.net>
56836
56837         The beginnings of syntax-related checks for gnulib.
56838         * lib/Makefile: New file.
56839         * lib/t-idcache: New script.  Ensure that the two halves of
56840         idcache.c stay in sync.
56841
56842         * lib/idcache.c: Adjust comments in user- and group- portions to
56843         be more accurate, and to be consistent with one another.
56844
56845 2006-11-20  Jim Meyering  <jim@meyering.net>
56846
56847         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56848         continue using the flexible array member (thus, this module performs
56849         half as many malloc calls), with the addition that...
56850         (getgroup, getuser): Consistently record a non-match via an empty
56851         "name" string, and map an empty string match to a NULL return value.
56852         * modules/idcache (Depends-on): Re-add flexmember.
56853
56854         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56855         (getuidbyname, getgroup, getgidbyname): Likewise.
56856
56857         Use cleaner syntax: NULL rather than 0.
56858         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56859
56860 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56863         It mishandled the case where the group was missing.
56864         Problem reported by Greg Schafer.
56865         * modules/idcache: Likewise.
56866
56867 2006-11-18  Jim Meyering  <jim@meyering.net>
56868
56869         * check-module (%exempt_header): Add exception for some
56870         conditionally-included headers.
56871
56872         * modules/i-ring (Depends-on): Add verify.
56873         (License): Change to LGPL.
56874
56875 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56876
56877         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56878         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56879         and inttostr.h.  Use snprintf rather than uinttostr, so that
56880         LGPLed code doesn't depend on GPLed.
56881
56882 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * modules/inline (License): Change from GPL to LGPL.
56885
56886 2006-11-17  Jim Meyering  <jim@meyering.net>
56887
56888         * modules/d-type (License): Switch to LGPL.
56889
56890 2006-11-15  Bruno Haible  <bruno@clisp.org>
56891
56892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56893
56894 2006-11-15  Eric Blake  <ebb9@byu.net>
56895
56896         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56897         the module dependency.
56898
56899 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56900             Bruno Haible  <bruno@clisp.org>
56901
56902         * gnulib-tool (func_create_testdir): Add license consistency check.
56903
56904 2006-11-15  Eric Blake  <ebb9@byu.net>
56905
56906         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56907         random "(cached)" in configure output.
56908
56909 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56910
56911         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56912         test for conforming inttypes.h is both announced and cached.
56913
56914         * MODULES.html.sh (seen_modules, seen_files): New variables.
56915         (func_module): Rewrite to use a few less gnulib-tool and sed
56916         invocations.  Avoid a couple of quadratic algorithms for ...
56917         (missed_modules, missed_files): ... these, with ...
56918         (func_append, func_tmpdir): ... these new functions, from
56919         gnulib-tool.  Analogously, install traps for cleanup.
56920
56921         * tests/test-gc.c (main): Remove unused variables.
56922         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56923
56924 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         * modules/inttostr (License): Change to LGPL.
56927
56928 2006-11-14  Eric Blake  <ebb9@byu.net>
56929
56930         * modules/tempname (License): Change to LGPL.
56931
56932 2006-11-14  Eric Blake  <ebb9@byu.net>
56933
56934         * doc/functions.texi (Function Portability): *printf functions on
56935         Cygwin now understand all POSIX size specifiers.
56936
56937 2006-11-14  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/c-ctype (License): Change to LGPL.
56940
56941 2006-11-12  Bruno Haible  <bruno@clisp.org>
56942
56943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56944         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56945         for GNOME libraries, for which the include files are installed in
56946         subdirectories of $prefix/include.
56947
56948 2006-11-12  Bruno Haible  <bruno@clisp.org>
56949
56950         * m4/lib-link.m4: Require at least autoconf-2.54.
56951         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56952         name to underscores for the --with option.
56953
56954 2006-11-13  Bruno Haible  <bruno@clisp.org>
56955
56956         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56957         the tests directory.
56958         Reported by Ralf Wildenhues.
56959
56960 2006-11-13  Bruno Haible  <bruno@clisp.org>
56961
56962         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56963         (func_emit_initmacro_end): Undo the override here.
56964         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56965         Works around the famous automake error in coreutils.
56966
56967 2006-11-13  Eric Blake  <ebb9@byu.net>
56968
56969         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56970         element, not its node.
56971
56972 2006-11-12  Bruno Haible  <bruno@clisp.org>
56973
56974         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56975         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56976
56977 2006-11-12  Bruno Haible  <bruno@clisp.org>
56978
56979         * gnulib-tool: New option --local-symlink.
56980         (func_usage): Document it.
56981         (lsymbolic): New variable.
56982         (func_import, func_create_testdir): If --symlink was not specified,
56983         test whether --local-symlink was specified and the file comes from
56984         the local_gnulib_dir.
56985
56986 2006-11-12  Bruno Haible  <bruno@clisp.org>
56987
56988         * gnulib-tool (func_ln): New function.
56989         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56990
56991 2006-11-12  Bruno Haible  <bruno@clisp.org>
56992
56993         Finish support for source files in subdirectories.
56994         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56995         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56996         AUTOMAKE_OPTIONS.
56997         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56998
56999 2006-11-12  Bruno Haible  <bruno@clisp.org>
57000
57001         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57002         EXTRA_lib_SOURCES augmentation.
57003         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57004
57005 2006-11-12  Jim Meyering  <jim@meyering.net>
57006
57007         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57008         file descriptors.  This also averts a failure on systems with
57009         native openat support when a traversed directory lacks "x" access.
57010         * lib/fts_.h: Include "i-ring.h"
57011         (struct FTS) [fts_fd_ring]: New member.
57012         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57013         (FCHDIR): Add parentheses.
57014         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57015         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57016         When descending, rather than simply closing the previous
57017         fts_cwd_fd value, push that file descriptor onto the ring.
57018         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57019         (fts_open): Initialize the new fd_ring member.
57020         (fts_close): Clear the ring.
57021         (fts_safe_changedir): When possible, use our new fd_ring to skip
57022         the diropen and fstat and dev/ino comparison that would normally
57023         accompany a virtual `chdir ("..")'.
57024
57025         * modules/fts (Depends-on): Add i-ring.
57026         * modules/i-ring: New module.
57027         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57028         * m4/i-ring.m4: New file.
57029
57030 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57031
57032         * gnulib-tool (func_create_testdir): Fix replacement of
57033         `build-aux' in configure.ac.  Run autotools in gltests
57034         subdirectory.
57035         (func_create_testdir, func_create_megatestdir, test): There is
57036         no need for '--force' in most autotool invocations in a new
57037         tree.  Actually fail the whole test if any of the tools, or the
57038         configure or make stages fail.
57039
57040         Sync from Automake.
57041         * build-aux/gnupload: Revert last change.  Add pointer to upload
57042         instructions of the GNU Maintenance Instructions.
57043         Suggestion by Karl Berry.
57044
57045 2006-11-10  Jim Meyering  <jim@meyering.net>
57046
57047         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57048
57049 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57050
57051         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57052         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57053         (bind_textdomain_codeset) [! ENABLE_NLS]:
57054         Evaluate all the arguments.  That way, callers get compatible behavior
57055         if the arguments have side effects.  Also, it avoids some GCC
57056         diagnostics in some cases; Joel E. Denny reported problems when Bison
57057         was configured with --enable-gcc-warnigs.
57058
57059 2006-11-10  Jim Meyering  <jim@meyering.net>
57060
57061         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57062         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57063         account.
57064
57065 2006-11-10  Jim Meyering  <jim@meyering.net>
57066
57067         * modules/inline: New file/module.
57068         * modules/xalloc (Files): Remove m4/inline.m4.
57069         (Depends-on): Add inline, instead.
57070         * modules/oset: Likewise.
57071         * modules/list: Likewise.
57072
57073 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57076         Problem reported by Matthew Woehlke.
57077
57078 2006-11-09  Bruno Haible  <bruno@clisp.org>
57079
57080         * lib/tempname.c (gen_tempname): Remove variant that invokes
57081         __gen_tempname.
57082         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57083         __gen_tempname.
57084
57085 2006-11-08  Bruno Haible  <bruno@clisp.org>
57086
57087         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57088         to 'yes' instead of 'cross-compiling'.
57089
57090 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * lib/quotearg.h (quotearg_free): New decl.
57093         * lib/quotearg.c (quotearg_free): New function.
57094         (slot0, nslots, slotvec0, slotvec):
57095         Now file-scope so that quotearg_free can get at them.
57096
57097 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57098
57099         Sync from Automake.
57100         * build-aux/gnupload: Add missing 'gnu' to example URL.
57101         Report by Karl Berry.
57102
57103 2006-11-08  Bruno Haible  <bruno@clisp.org>
57104
57105         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57106         Suggested by Paul Eggert.
57107
57108 2006-11-08  Jim Meyering  <jim@meyering.net>
57109
57110         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57111         It's already included if !_LIBC.
57112         (fts_safe_changedir): Add a comment.
57113
57114 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57115
57116         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57117         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57118         Matthew Woehlke.
57119
57120         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57121         definitions up, to avoid colliding with change below.
57122         (static_inline) [HAVE_INLINE]: New macro.
57123         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57124         Provide extern decls when !HAVE_INLINE.  Do not define unless
57125         static_inline is defined, either by us or by xmalloc.c.  Use
57126         static_inline rather than static inline.
57127         (XCALLOC): Optimize sizeof(T) = 1 case.
57128         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57129
57130 2006-11-07  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57133         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57134         AC_C_INLINE.
57135         * modules/xalloc (Files): Add m4/inline.m4.
57136
57137 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57138
57139         * README: Fix typo.
57140         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57141         (Miscellanous Notes): ...from this.
57142
57143 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57144
57145         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57146         Mention that offsetof should be used instead of sizeof.
57147         From Bruno Haible.
57148
57149 2006-11-07  Bruno Haible  <bruno@clisp.org>
57150
57151         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57152
57153 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57156         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57157         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57158         (gl_tree_add_before, gl_tree_add_after):
57159         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57160         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57161         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57162         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57163         (gl_linked_add_after, gl_linked_add_at): Likewise.
57164         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57165         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57166         (gl_tree_add_before, gl_tree_add_after): Likewise.
57167         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57168         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57169         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57170
57171 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57172
57173         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57174
57175 2006-11-06  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/inline.m4: New file.
57178         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57179         * modules/list (Files): Add m4/inline.m4.
57180         * modules/oset (Files): Likewise.
57181
57182 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57183
57184         * lib/idcache.c: Include <stddef.h>, for offsetof.
57185         (struct userid.name): Change from char * to a flexible array member.
57186         All uses changed.
57187         * modules/idcache (Depends-on): Add flexmember.
57188
57189         * MODULES.html.sh (Core language properties): New module flexmember.
57190         * modules/flexmember, m4/flexmember.m4: New files.
57191
57192         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57193         inline functions that are identical with the old xnmalloc_inline,
57194         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57195         that we can avoid some unnecessary integer multiplications and
57196         divisions in the common case where the element size is known at
57197         compile time.
57198         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57199         needed.
57200         (xnboundedmalloc): Remove.
57201         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57202         arguments, for consistency with rest of this header.
57203         (xcharalloc): Rewrite using XNMALLOC.
57204         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57205         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57206         versions have been moved to lib/xalloc.h and renamed to be the
57207         non-*_inline versions.
57208         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57209         and xnrealloc functions, since those functions are now inline and
57210         now call us.
57211         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57212         renaming described above.
57213         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57214         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57215         captures the dependency in AC_C_INLINE.
57216
57217         New module canonicalize-lgpl, proposed by Charles Wilson in
57218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57219         with a few small changes afterwards.
57220         * MODULES.html.sh (File system functions): New module
57221         canonicalize-lgpl.
57222         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57223         and canonicalize_file_name.
57224         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57225         * modules/canonicalize-lgpl: New files.
57226
57227 2006-11-05  Bruno Haible  <bruno@clisp.org>
57228
57229         * gnulib-tool (func_import, func_create_testdir): Create directories
57230         also for files in subdirectories of lib/.
57231
57232 2006-11-05  Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57235         ANSI C compliant.
57236
57237 2006-11-03  Bruno Haible  <bruno@clisp.org>
57238
57239         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57240         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57241         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57242         (xnboundedmalloc): New inline function.
57243         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57244         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57245         xmalloc.
57246         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57247         xmalloc.
57248         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57249         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57250         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57251         xmalloc.
57252         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57253         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57254         xmalloc.
57255         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57256         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57257         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57258         xmalloc.
57259         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57260         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57261         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57262         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57263         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57264         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57265         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57266
57267 2006-11-03  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/c-ctype.h [C++]: Define functions without name mangling.
57270         * lib/fwriteerror.h [C++]: Likewise.
57271         * lib/gcd.h [C++]: Likewise.
57272         * lib/linebreak.h [C++]: Likewise.
57273
57274 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57277         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57278         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57279         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57280         Check for functions and headers just once.
57281         Check for declaration of canonicalize_file_name.
57282         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57283
57284 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57285
57286         * gnulib-tool (func_import): Fix typo in actioncmd.
57287
57288 2006-11-02  Bruno Haible  <bruno@clisp.org>
57289
57290         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57291         newline sequence in the Makefile.am snippet as a space, like "make"
57292         does.
57293         Reported by Roger Persson <perrog@gmail.com>.
57294
57295 2006-11-01  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57298         already declared in <string.h>.
57299         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57300
57301 2006-11-01  Bruno Haible  <bruno@clisp.org>
57302
57303         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57304         * lib/strcase.h: Include <string.h>.
57305         (strcasecmp): Define to rpl_strcasecmp here.
57306
57307 2006-11-01  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57310
57311 2006-11-01  Eric Blake  <ebb9@byu.net>
57312
57313         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57314
57315         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57316
57317 2006-10-29  Bruno Haible  <bruno@clisp.org>
57318
57319         Make it compile in C++ mode.
57320         * lib/full-write.c (full_rw): Add a cast.
57321
57322 2006-11-01  Bruno Haible  <bruno@clisp.org>
57323
57324         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57325         be POSIX compliant.
57326         Reported by Roger Persson <perrog@gmail.com>.
57327
57328 2006-11-01  Eric Blake  <ebb9@byu.net>
57329
57330         * lib/getopt_.h: Fix comments.
57331
57332 2006-10-31  Eric Blake  <ebb9@byu.net>
57333
57334         * modules/tmpdir (Depends-on): Add sys_stat.
57335         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57336         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57337         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57338         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57339         tempname.
57340
57341 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         Avoid some C++ diagnostics reported by Bruno Haible.
57344         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57345         xmalloc.
57346         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57347         (struct slotvec): Move to top level.
57348         (quotearg_n_options): Rewrite to avoid xmalloc.
57349         * lib/xalloc.h (xcharalloc): New function.
57350         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57351         [defined __cplusplus]: Add function template that provides result
57352         type propagation.  This part of the change is from Bruno Haible.
57353
57354 2006-10-29  Bruno Haible  <bruno@clisp.org>
57355
57356         Make it compile in C++ mode.
57357         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57358         * lib/strnlen1.c (strnlen1): Cast memchr result.
57359         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57360         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57361         (create_temp_dir): Rename local variable 'template'.
57362         (compile_csharp_using_sscli): Add cast.
57363         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57364         * lib/findprog.c (find_in_path): Likewise.
57365         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57366         * lib/wait-process.c (register_slave_subprocess): Likewise.
57367
57368 2006-10-22  Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/tsearch: New file.
57371         * lib/tsearch.h: New file.
57372         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57373         * m4/tsearch.m4: New file.
57374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57375
57376 2006-10-29  Eric Blake  <ebb9@byu.net>
57377
57378         * lib/arcfour.c: Assume config.h.
57379         * lib/arctwo.c: Likewise.
57380         * lib/base64.c: Likewise.
57381         * lib/check-version.c: Likewise.
57382         * lib/crc.c: Likewise.
57383         * lib/des.c: Likewise.
57384         * lib/gc-gnulib.c: Likewise.
57385         * lib/gc-libgcrypt.c: Likewise.
57386         * lib/gc-pbkdf2-sha1.c: Likewise.
57387         * lib/getaddrinfo.c: Likewise.
57388         * lib/getdelim.c: Likewise.
57389         * lib/getline.c: Likewise.
57390         * lib/hmac-md5.c: Likewise.
57391         * lib/hmac-sha1.c: Likewise.
57392         * lib/iconvme.c: Likewise.
57393         * lib/md2.c: Likewise.
57394         * lib/md4.c: Likewise.
57395         * lib/memxor.c: Likewise.
57396         * lib/read-file.c: Likewise.
57397         * lib/readline.c: Likewise.
57398         * lib/rijndael-alg-fst.c: Likewise.
57399         * lib/rijndael-api-fst.c: Likewise.
57400         * lib/xgetdomainname.c: Likewise.
57401
57402 2006-10-28  Eric Blake  <ebb9@byu.net>
57403
57404         * lib/xstrndup.c: Assume config.h.
57405
57406 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57409         stat-macros.h is now for our own macros, whereas stat_h is for
57410         macros in the <sys/stat.h> name space.
57411         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57412         (STAT_MACROS_H): Remove.
57413         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57414         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57415         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57416         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57417         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57418         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57419         Move these macros to ...
57420         * lib/stat_.h: here.  Don't include stat-macros.h.
57421         * lib/canonicalize.c: Don't include stat-macros.h.
57422         * lib/chown.c: Likewise.
57423         * lib/euidaccess.c: Likewise.
57424         * lib/file-type.c: Likewise.
57425         * lib/filemode.c: Likewise.
57426         * lib/glob.c: Likewise.
57427         * lib/isapipe.c: Likewise.
57428         * lib/lchown.c: Likewise.
57429         * lib/lstat.c: Likewise.
57430         * lib/mkdir-p.c: Likewise.
57431         * lib/rmdir.c: Likewise.
57432         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57434         unless mkdir isn't declared, to speed up 'configure'.
57435         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57436         would define all the S_* symbols.
57437         * modules/canonicalize (Depends-on):
57438         Depend on sys_stat, not stat-macros.
57439         * modules/chown: Likewise.
57440         * modules/euidaccess: Likewise.
57441         * modules/filemode: Likewise.
57442         * modules/file-type: Likewise.
57443         * modules/glob: Likewise.
57444         * modules/isapipe: Likewise.
57445         * modules/lchown: Likewise.
57446         * modules/lstat: Likewise.
57447         * modules/mkancesdirs: Likewise.
57448         * modules/rmdir: Likewise.
57449         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57450         * modules/modechange: Likewise.
57451         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57452         (configure.ac): Remove gl_STAT_MACROS.
57453         * modules/sys_stat (Depends-on): Remove stat-macros.
57454
57455 2006-10-27  Bruno Haible  <bruno@clisp.org>
57456
57457         * m4/signed.m4: Remove file.
57458         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57459         invocation.
57460         * modules/vasnprintf (Files): Remove m4/signed.m4.
57461
57462 2006-10-27  Bruno Haible  <bruno@clisp.org>
57463
57464         Update to GNU gettext 0.16.
57465         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57466         m4/inttypes-h.m4, m4/signed.m4.
57467         * m4/gettext.m4: Update to GNU gettext 0.16.
57468         * m4/intl.m4: New file, from GNU gettext.
57469         * m4/intldir.m4: New file, from GNU gettext.
57470         * config/srclist.txt: Update
57471
57472 2006-10-27  Eric Blake  <ebb9@byu.net>
57473
57474         * MODULES.html.sh: Document tempname.
57475         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57476         dependencies.
57477         (Files): Move lib/tempname.c...
57478         * modules/tempname: ...to this new module.
57479         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57480         (gl_PREREQ_TEMPNAME): Move...
57481         * m4/tempname.m4: ...to this new file.
57482         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57483         * modules/sys_stat (Depends-on): Add stat-macros.
57484         * lib/stat_.h (includes): Pick up stat macros.
57485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57486         if stat macros are broken.
57487         * lib/tempname.c (includes): No need to include "stat-macros.h".
57488         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57489         (direxists, __path_search) [!_LIBC]: Don't compile these in
57490         gnulib; the tmpdir module covers that.
57491         * lib/tempname.h: New file.
57492
57493 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         * COPYING: Explain how gnulib-tool converts licence headers.
57496         Almost all wording by Eric Blake.
57497
57498 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * lib/mbchar.h (is_basic_table): Make read-only.
57501         * lib/mbchar.c (is_basic_table): Likewise.
57502         Reported by John Darrington.
57503
57504 2006-10-25  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/progname.h (set_program_name): Undefine before defining.
57507
57508 2006-10-25  Bruno Haible  <bruno@clisp.org>
57509
57510         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57511         false for non-gcc C++ compilers.
57512         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57513
57514 2006-10-24  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57517         iconv implementations like Irix iconv.
57518
57519 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         * modules/vararrays: New file.
57522         * m4/vararrays.m4: New file, taken from diffutils.
57523         * MODULES.html.sh: New module vararrays.
57524
57525 2006-10-24  Karl Berry  <karl@gnu.org>
57526
57527         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57528         Don't call GNU Unix.
57529
57530 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57531
57532         * users.txt: Add Libtool.
57533
57534         Sync from Libtool:
57535
57536         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57539         to gnulib's policy of including config.h unconditionally.
57540
57541 2006-10-24  Bruno Haible  <bruno@clisp.org>
57542
57543         * modules/wcwidth (Files): Add m4/wint_t.m4.
57544         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57545         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57546
57547 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57550         to pacify GCC with some -W flags enabled.  Problem reported by
57551         Bruno Haible.
57552
57553 2006-10-24  Jim Meyering  <jim@meyering.net>
57554
57555         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57556         Reported by Karl Berry.
57557
57558 2006-10-23  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57561
57562 2006-10-24  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/gl_list.h: Use C comment style, not C++ comment style.
57565
57566 2006-10-23  Eric Blake  <ebb9@byu.net>
57567
57568         * lib/getaddrinfo.c (includes): Add missing include.
57569
57570 2006-10-23  Bruno Haible  <bruno@clisp.org>
57571             Paul Eggert  <eggert@cs.ucla.edu>
57572
57573         Ability to rename obstack_free.
57574         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57575         obstack_free.
57576         (obstack_free): Invoke the __obstack_free macro.
57577         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57578
57579 2006-10-23  Bruno Haible  <bruno@clisp.org>
57580             Paul Eggert  <eggert@cs.ucla.edu>
57581
57582         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57583         __argc, __argv from the declaration. (They are defined as macros on
57584         mingw.)
57585
57586 2006-10-22  Bruno Haible  <bruno@clisp.org>
57587
57588         * doc/gnulib-intro.texi: New file.
57589         * doc/gnulib.texi: Include it.
57590
57591 2006-10-21  Bruno Haible  <bruno@clisp.org>
57592
57593         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57594         "Introduction", "Miscellanous Notes", "Particular Modules".
57595
57596 2006-10-21  Bruno Haible  <bruno@clisp.org>
57597
57598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57599         Change mostlyclean-local rule to avoid sh syntax error from bash
57600         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57601
57602 2006-10-23  Jim Meyering  <jim@meyering.net>
57603
57604         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57605         in place of snprintf.
57606
57607         * modules/inttostr (Files): Add lib/uinttostr.c.
57608         * lib/uinttostr.c (inttostr): New file/function.
57609         * lib/inttostr.h (uinttostr): Declare.
57610         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57611         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57612         Add uinttostr.
57613         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57614
57615 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * lib/canonicalize.c (ELOOP): Define if not already defined.
57618         Problem reported by Bruno Haible in
57619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57620
57621 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57622
57623         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57624         Problem reported by Perry Smith and Ville Laurikari.
57625
57626         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57627         uses.
57628
57629 2006-10-19  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57632         for mingw.
57633
57634 2006-10-19  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57637         Needed for mingw.
57638
57639 2006-10-19  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57642
57643 2006-10-19  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57646         it.
57647
57648 2006-10-19  Bruno Haible  <bruno@clisp.org>
57649
57650         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57651         invocation.
57652
57653 2006-10-19  Bruno Haible  <bruno@clisp.org>
57654
57655         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57656         mountlist by default.
57657
57658 2006-10-16  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/c-strstr.c: Include c-strstr.h.
57661
57662 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57663
57664         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57665         in a slash.
57666
57667 2006-10-18  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/lock.h [C++]: Wrap definitions in extern "C".
57670
57671 2006-10-18  Bruno Haible  <bruno@clisp.org>
57672
57673         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57674         gl_LIBOBJS list.
57675
57676 2006-10-18  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57679
57680 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * lib/xstrtol.h: Include gettext.h.
57683         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57684         Problem reported by Eric Blake.
57685         * modules/xstrtol (Depends-on): Add gettext-h.
57686
57687 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57688
57689         * lib/strftime.c (advance): New macro.
57690         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57691         incomplete type, so you can't add 0 to it.  Problem and patch
57692         reported by Eelco Dolstra for dietlibc.
57693
57694 2006-10-18  Jim Meyering  <jim@meyering.net>
57695
57696         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57697         type for a local, and rename it: s/up/user_proc/.
57698
57699 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57700
57701         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57702         READ_UTMP_USER_PROCESS.
57703         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57704
57705 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57706
57707         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57708         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57709
57710 2006-10-17  Eric Blake  <ebb9@byu.net>
57711
57712         * lib/sigprocmask.c (sigprocmask): Fix typo.
57713
57714         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57715
57716         * modules/clean-temp (Makefile.am): Don't add to make output...
57717         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57718         config.h.
57719
57720 2006-10-17  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57723         differently if DEFAULT_TEXT_DOMAIN is set.
57724
57725 2006-10-16  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/clean-temp.c: Include fwriteerror.h.
57728
57729 2006-10-16  Bruno Haible  <bruno@clisp.org>
57730
57731         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57732
57733 2006-10-16  Bruno Haible  <bruno@clisp.org>
57734
57735         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57736         * lib/sigprocmask.h: Include <sys/types.h>.
57737         (sigset_t): Use the system's definition if present.
57738
57739 2006-10-17  Eric Blake  <ebb9@byu.net>
57740
57741         * lib/xvasprintf.c (includes): Assume config.h.
57742         * lib/xasprintf.c (includes): Likewise.
57743
57744 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57747         at least as wide as intmax_t.
57748
57749 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57750
57751         (Imported from Automake.)
57752         * build-aux/gnupload: Update to version 1.1 of directive file.
57753
57754 2006-10-16  Eric Blake  <ebb9@byu.net>
57755
57756         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57757         match Automake 1.10a.
57758
57759 2006-10-14  Bruno Haible  <bruno@clisp.org>
57760
57761         * modules/sigprocmask: New file.
57762         * lib/sigprocmask.h: New file.
57763         * lib/sigprocmask.c: New file.
57764         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57765         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57766         request sigprocmask.o.
57767         (gl_PREREQ_SIGPROCMASK): New macro.
57768         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57769         (Depends-on): Add sigprocmask.
57770         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57771         gt_SIGNALBLOCKING. Test for 'raise' only once.
57772         * lib/fatal-signal.c: Include sigprocmask.h.
57773         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57774         unblock_fatal_signals): Define always.
57775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57776         sigprocmask.
57777
57778 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         Sync from Automake.
57781         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57782         which incorrectly sets the mode of an existing destination
57783         directory.  In some cases the unpatched install-sh could do the
57784         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57785         system.  We hope this is rare in practice, but it's clearly worth
57786         fixing.  Problem reported by Alex Unleashed in
57787         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57788         Also, don't bother to check for -m bugs unless we're using -m;
57789         suggested by Stepan Kasal.
57790
57791 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57792
57793         Sync from Automake.
57794         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57795         `-c' flag, so they appear at the same position as in %FASTDEP%
57796         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57797         which ignores unknown options only after the first non-option.
57798         Bug report against M4 by Nelson H. F. Beebe.
57799
57800 2006-10-13  Jim Meyering  <jim@meyering.net>
57801
57802         Fix a bug in yesterday's change.
57803         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57804         p->fts_statp->st_dev would be used uninitialized.
57805         Ensures that we always call fts_stat on the very first entry.
57806         Miklos Szeredi reported that find -xdev stopped working.
57807
57808 2006-10-12  Bruno Haible  <bruno@clisp.org>
57809
57810         * gnulib-tool (func_get_automake_snippet): Append an automatically
57811         computed EXTRA_DIST augmentation.
57812         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57813         * modules/alloca-opt (Makefile.am): Likewise.
57814         * modules/allocsa (Makefile.am): Likewise.
57815         * modules/arcfour (Makefile.am): Likewise.
57816         * modules/arctwo (Makefile.am): Likewise.
57817         * modules/argmatch (Makefile.am): Likewise.
57818         * modules/argz (Makefile.am): Likewise.
57819         * modules/atexit (Makefile.am): Likewise.
57820         * modules/backupfile (Makefile.am): Likewise.
57821         * modules/byteswap (Makefile.am): Likewise.
57822         * modules/c-strtod (Makefile.am): Likewise.
57823         * modules/c-strtold (Makefile.am): Likewise.
57824         * modules/calloc (Makefile.am): Likewise.
57825         * modules/canon-host (Makefile.am): Likewise.
57826         * modules/canonicalize (Makefile.am): Likewise.
57827         * modules/chdir-long (Makefile.am): Likewise.
57828         * modules/chdir-safer (Makefile.am): Likewise.
57829         * modules/check-version (Makefile.am): Likewise.
57830         * modules/chown (Makefile.am): Likewise.
57831         * modules/cloexec (Makefile.am): Likewise.
57832         * modules/close-stream (Makefile.am): Likewise.
57833         * modules/closeout (Makefile.am): Likewise.
57834         * modules/crc (Makefile.am): Likewise.
57835         * modules/csharpexec (Makefile.am): Likewise.
57836         * modules/cycle-check (Makefile.am): Likewise.
57837         * modules/des (Makefile.am): Likewise.
57838         * modules/dev-ino (Makefile.am): Likewise.
57839         * modules/dirfd (Makefile.am): Likewise.
57840         * modules/dirname (Makefile.am): Likewise.
57841         * modules/dup2 (Makefile.am): Likewise.
57842         * modules/eealloc (Makefile.am): Likewise.
57843         * modules/error (Makefile.am): Likewise.
57844         * modules/euidaccess (Makefile.am): Likewise.
57845         * modules/exclude (Makefile.am): Likewise.
57846         * modules/exitfail (Makefile.am): Likewise.
57847         * modules/fcntl-safer (Makefile.am): Likewise.
57848         * modules/fcntl (Makefile.am): Likewise.
57849         * modules/file-type (Makefile.am): Likewise.
57850         * modules/fileblocks (Makefile.am): Likewise.
57851         * modules/filemode (Makefile.am): Likewise.
57852         * modules/filenamecat (Makefile.am): Likewise.
57853         * modules/fnmatch (Makefile.am): Likewise.
57854         * modules/fopen-safer (Makefile.am): Likewise.
57855         * modules/fpending (Makefile.am): Likewise.
57856         * modules/fprintftime (Makefile.am): Likewise.
57857         * modules/free (Makefile.am): Likewise.
57858         * modules/fsusage (Makefile.am): Likewise.
57859         * modules/ftruncate (Makefile.am): Likewise.
57860         * modules/fts (Makefile.am): Likewise.
57861         * modules/gc-arcfour (Makefile.am): Likewise.
57862         * modules/gc-des (Makefile.am): Likewise.
57863         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57864         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57865         * modules/gc-md4 (Makefile.am): Likewise.
57866         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57867         * modules/gc-sha1 (Makefile.am): Likewise.
57868         * modules/gc (Makefile.am): Likewise.
57869         * modules/getaddrinfo (Makefile.am): Likewise.
57870         * modules/getcwd (Makefile.am): Likewise.
57871         * modules/getdelim (Makefile.am): Likewise.
57872         * modules/getdomainname (Makefile.am): Likewise.
57873         * modules/getgroups (Makefile.am): Likewise.
57874         * modules/gethostname (Makefile.am): Likewise.
57875         * modules/gethrxtime (Makefile.am): Likewise.
57876         * modules/getline (Makefile.am): Likewise.
57877         * modules/getloadavg (Makefile.am): Likewise.
57878         * modules/getlogin_r (Makefile.am): Likewise.
57879         * modules/getndelim2 (Makefile.am): Likewise.
57880         * modules/getopt (Makefile.am): Likewise.
57881         * modules/getpagesize (Makefile.am): Likewise.
57882         * modules/getpass-gnu (Makefile.am): Likewise.
57883         * modules/getpass (Makefile.am): Likewise.
57884         * modules/getsubopt (Makefile.am): Likewise.
57885         * modules/gettime (Makefile.am): Likewise.
57886         * modules/gettimeofday (Makefile.am): Likewise.
57887         * modules/getugroups (Makefile.am): Likewise.
57888         * modules/getusershell (Makefile.am): Likewise.
57889         * modules/glob (Makefile.am): Likewise.
57890         * modules/group-member (Makefile.am): Likewise.
57891         * modules/hard-locale (Makefile.am): Likewise.
57892         * modules/hash (Makefile.am): Likewise.
57893         * modules/hmac-md5 (Makefile.am): Likewise.
57894         * modules/hmac-sha1 (Makefile.am): Likewise.
57895         * modules/human (Makefile.am): Likewise.
57896         * modules/idcache (Makefile.am): Likewise.
57897         * modules/imaxabs (Makefile.am): Likewise.
57898         * modules/imaxdiv (Makefile.am): Likewise.
57899         * modules/inet_ntop (Makefile.am): Likewise.
57900         * modules/inet_pton (Makefile.am): Likewise.
57901         * modules/intprops (Makefile.am): Likewise.
57902         * modules/inttostr (Makefile.am): Likewise.
57903         * modules/inttypes (Makefile.am): Likewise.
57904         * modules/isapipe (Makefile.am): Likewise.
57905         * modules/javaversion (Makefile.am): Likewise.
57906         * modules/lchmod (Makefile.am): Likewise.
57907         * modules/lchown (Makefile.am): Likewise.
57908         * modules/localcharset (Makefile.am): Likewise.
57909         * modules/long-options (Makefile.am): Likewise.
57910         * modules/lstat (Makefile.am): Likewise.
57911         * modules/malloc (Makefile.am): Likewise.
57912         * modules/mathl (Makefile.am): Likewise.
57913         * modules/mbchar (Makefile.am): Likewise.
57914         * modules/md2 (Makefile.am): Likewise.
57915         * modules/md4 (Makefile.am): Likewise.
57916         * modules/md5 (Makefile.am): Likewise.
57917         * modules/memcasecmp (Makefile.am): Likewise.
57918         * modules/memchr (Makefile.am): Likewise.
57919         * modules/memcmp (Makefile.am): Likewise.
57920         * modules/memcoll (Makefile.am): Likewise.
57921         * modules/memcpy (Makefile.am): Likewise.
57922         * modules/memmem (Makefile.am): Likewise.
57923         * modules/memmove (Makefile.am): Likewise.
57924         * modules/mempcpy (Makefile.am): Likewise.
57925         * modules/memrchr (Makefile.am): Likewise.
57926         * modules/memset (Makefile.am): Likewise.
57927         * modules/memxor (Makefile.am): Likewise.
57928         * modules/mkancesdirs (Makefile.am): Likewise.
57929         * modules/mkdir-p (Makefile.am): Likewise.
57930         * modules/mkdir (Makefile.am): Likewise.
57931         * modules/mkdtemp (Makefile.am): Likewise.
57932         * modules/mkstemp (Makefile.am): Likewise.
57933         * modules/mktime (Makefile.am): Likewise.
57934         * modules/modechange (Makefile.am): Likewise.
57935         * modules/mountlist (Makefile.am): Likewise.
57936         * modules/nanosleep (Makefile.am): Likewise.
57937         * modules/obstack (Makefile.am): Likewise.
57938         * modules/openat (Makefile.am): Likewise.
57939         * modules/pagealign_alloc (Makefile.am): Likewise.
57940         * modules/pathmax (Makefile.am): Likewise.
57941         * modules/physmem (Makefile.am): Likewise.
57942         * modules/poll (Makefile.am): Likewise.
57943         * modules/posixtm (Makefile.am): Likewise.
57944         * modules/posixver (Makefile.am): Likewise.
57945         * modules/putenv (Makefile.am): Likewise.
57946         * modules/quote (Makefile.am): Likewise.
57947         * modules/quotearg (Makefile.am): Likewise.
57948         * modules/raise (Makefile.am): Likewise.
57949         * modules/read-file (Makefile.am): Likewise.
57950         * modules/readline (Makefile.am): Likewise.
57951         * modules/readlink (Makefile.am): Likewise.
57952         * modules/readtokens (Makefile.am): Likewise.
57953         * modules/readutmp (Makefile.am): Likewise.
57954         * modules/realloc (Makefile.am): Likewise.
57955         * modules/regex (Makefile.am): Likewise.
57956         * modules/rename-dest-slash (Makefile.am): Likewise.
57957         * modules/rename (Makefile.am): Likewise.
57958         * modules/rijndael (Makefile.am): Likewise.
57959         * modules/rmdir (Makefile.am): Likewise.
57960         * modules/rpmatch (Makefile.am): Likewise.
57961         * modules/safe-read (Makefile.am): Likewise.
57962         * modules/safe-write (Makefile.am): Likewise.
57963         * modules/same-inode (Makefile.am): Likewise.
57964         * modules/same (Makefile.am): Likewise.
57965         * modules/save-cwd (Makefile.am): Likewise.
57966         * modules/savedir (Makefile.am): Likewise.
57967         * modules/setenv (Makefile.am): Likewise.
57968         * modules/settime (Makefile.am): Likewise.
57969         * modules/sha1 (Makefile.am): Likewise.
57970         * modules/sig2str (Makefile.am): Likewise.
57971         * modules/snprintf (Makefile.am): Likewise.
57972         * modules/stat-macros (Makefile.am): Likewise.
57973         * modules/stat-time (Makefile.am): Likewise.
57974         * modules/stdbool (Makefile.am): Likewise.
57975         * modules/stdint (Makefile.am): Likewise.
57976         * modules/stdlib-safer (Makefile.am): Likewise.
57977         * modules/stpcpy (Makefile.am): Likewise.
57978         * modules/stpncpy (Makefile.am): Likewise.
57979         * modules/strcase (Makefile.am): Likewise.
57980         * modules/strcasestr (Makefile.am): Likewise.
57981         * modules/strchrnul (Makefile.am): Likewise.
57982         * modules/strcspn (Makefile.am): Likewise.
57983         * modules/strdup (Makefile.am): Likewise.
57984         * modules/strerror (Makefile.am): Likewise.
57985         * modules/strftime (Makefile.am): Likewise.
57986         * modules/strndup (Makefile.am): Likewise.
57987         * modules/strnlen (Makefile.am): Likewise.
57988         * modules/strpbrk (Makefile.am): Likewise.
57989         * modules/strsep (Makefile.am): Likewise.
57990         * modules/strstr (Makefile.am): Likewise.
57991         * modules/strtod (Makefile.am): Likewise.
57992         * modules/strtoimax (Makefile.am): Likewise.
57993         * modules/strtok_r (Makefile.am): Likewise.
57994         * modules/strtol (Makefile.am): Likewise.
57995         * modules/strtoll (Makefile.am): Likewise.
57996         * modules/strtoul (Makefile.am): Likewise.
57997         * modules/strtoull (Makefile.am): Likewise.
57998         * modules/strtoumax (Makefile.am): Likewise.
57999         * modules/strverscmp (Makefile.am): Likewise.
58000         * modules/sys_socket (Makefile.am): Likewise.
58001         * modules/sys_stat (Makefile.am): Likewise.
58002         * modules/sysexits (Makefile.am): Likewise.
58003         * modules/time_r (Makefile.am): Likewise.
58004         * modules/timegm (Makefile.am): Likewise.
58005         * modules/timespec (Makefile.am): Likewise.
58006         * modules/tmpfile-safer (Makefile.am): Likewise.
58007         * modules/trim (Makefile.am): Likewise.
58008         * modules/unistd-safer (Makefile.am): Likewise.
58009         * modules/unlinkdir (Makefile.am): Likewise.
58010         * modules/unlocked-io (Makefile.am): Likewise.
58011         * modules/userspec (Makefile.am): Likewise.
58012         * modules/utime (Makefile.am): Likewise.
58013         * modules/utimecmp (Makefile.am): Likewise.
58014         * modules/utimens (Makefile.am): Likewise.
58015         * modules/vasnprintf (Makefile.am): Likewise.
58016         * modules/vasprintf (Makefile.am): Likewise.
58017         * modules/vsnprintf (Makefile.am): Likewise.
58018         * modules/xalloc (Makefile.am): Likewise.
58019         * modules/xgetcwd (Makefile.am): Likewise.
58020         * modules/xnanosleep (Makefile.am): Likewise.
58021         * modules/xreadlink (Makefile.am): Likewise.
58022         * modules/xstrtod (Makefile.am): Likewise.
58023         * modules/xstrtol (Makefile.am): Likewise.
58024         * modules/xstrtold (Makefile.am): Likewise.
58025         * modules/yesno (Makefile.am): Likewise.
58026         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58027
58028 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * modules/error (Makefile.am): Distribute files through
58031         EXTRA_DIST, not lib_SOURCES.
58032
58033 2006-10-12  Eric Blake  <ebb9@byu.net>
58034
58035         * modules/error (Makefile.am): Distribute files in /lib.
58036         * modules/obstack (Makefile.am): Likewise.
58037
58038 2006-10-12  Bruno Haible  <bruno@clisp.org>
58039
58040         * modules/acl (Makefile.am): Distribute all files in lib/ through
58041         EXTRA_DIST.
58042         * modules/arcfour (Makefile.am): Likewise.
58043         * modules/arctwo (Makefile.am): Likewise.
58044         * modules/argmatch (Makefile.am): Likewise.
58045         * modules/argz (Makefile.am): Likewise.
58046         * modules/atexit (Makefile.am): Likewise.
58047         * modules/backupfile (Makefile.am): Likewise.
58048         * modules/c-strtod (Makefile.am): Likewise.
58049         * modules/c-strtold (Makefile.am): Likewise.
58050         * modules/calloc (Makefile.am): Likewise.
58051         * modules/canon-host (Makefile.am): Likewise.
58052         * modules/canonicalize (Makefile.am): Likewise.
58053         * modules/chdir-long (Makefile.am): Likewise.
58054         * modules/chdir-safer (Makefile.am): Likewise.
58055         * modules/check-version (Makefile.am): Likewise.
58056         * modules/chown (Makefile.am): Likewise.
58057         * modules/cloexec (Makefile.am): Likewise.
58058         * modules/close-stream (Makefile.am): Likewise.
58059         * modules/closeout (Makefile.am): Likewise.
58060         * modules/crc (Makefile.am): Likewise.
58061         * modules/cycle-check (Makefile.am): Likewise.
58062         * modules/des (Makefile.am): Likewise.
58063         * modules/dirfd (Makefile.am): Likewise.
58064         * modules/dirname (Makefile.am): Likewise.
58065         * modules/dup2 (Makefile.am): Likewise.
58066         * modules/euidaccess (Makefile.am): Likewise.
58067         * modules/exclude (Makefile.am): Likewise.
58068         * modules/exitfail (Makefile.am): Likewise.
58069         * modules/fcntl-safer (Makefile.am): Likewise.
58070         * modules/file-type (Makefile.am): Likewise.
58071         * modules/fileblocks (Makefile.am): Likewise.
58072         * modules/filemode (Makefile.am): Likewise.
58073         * modules/filenamecat (Makefile.am): Likewise.
58074         * modules/fnmatch (Makefile.am): Likewise.
58075         * modules/fopen-safer (Makefile.am): Likewise.
58076         * modules/fpending (Makefile.am): Likewise.
58077         * modules/fprintftime (Makefile.am): Likewise.
58078         * modules/free (Makefile.am): Likewise.
58079         * modules/fsusage (Makefile.am): Likewise.
58080         * modules/ftruncate (Makefile.am): Likewise.
58081         * modules/fts (Makefile.am): Likewise.
58082         * modules/gc (Makefile.am): Likewise.
58083         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58084         * modules/getaddrinfo (Makefile.am): Likewise.
58085         * modules/getcwd (Makefile.am): Likewise.
58086         * modules/getdelim (Makefile.am): Likewise.
58087         * modules/getdomainname (Makefile.am): Likewise.
58088         * modules/getgroups (Makefile.am): Likewise.
58089         * modules/gethostname (Makefile.am): Likewise.
58090         * modules/gethrxtime (Makefile.am): Likewise.
58091         * modules/getline (Makefile.am): Likewise.
58092         * modules/getloadavg (Makefile.am): Likewise.
58093         * modules/getlogin_r (Makefile.am): Likewise.
58094         * modules/getopt (Makefile.am): Likewise.
58095         * modules/getpass (Makefile.am): Likewise.
58096         * modules/getpass-gnu (Makefile.am): Likewise.
58097         * modules/getsubopt (Makefile.am): Likewise.
58098         * modules/gettime (Makefile.am): Likewise.
58099         * modules/gettimeofday (Makefile.am): Likewise.
58100         * modules/getugroups (Makefile.am): Likewise.
58101         * modules/getusershell (Makefile.am): Likewise.
58102         * modules/glob (Makefile.am): Likewise.
58103         * modules/group-member (Makefile.am): Likewise.
58104         * modules/hard-locale (Makefile.am): Likewise.
58105         * modules/hash (Makefile.am): Likewise.
58106         * modules/hmac-md5 (Makefile.am): Likewise.
58107         * modules/hmac-sha1 (Makefile.am): Likewise.
58108         * modules/human (Makefile.am): Likewise.
58109         * modules/idcache (Makefile.am): Likewise.
58110         * modules/imaxabs (Makefile.am): Likewise.
58111         * modules/imaxdiv (Makefile.am): Likewise.
58112         * modules/inet_ntop (Makefile.am): Likewise.
58113         * modules/inet_pton (Makefile.am): Likewise.
58114         * modules/inttostr (Makefile.am): Likewise.
58115         * modules/isapipe (Makefile.am): Likewise.
58116         * modules/lchown (Makefile.am): Likewise.
58117         * modules/long-options (Makefile.am): Likewise.
58118         * modules/lstat (Makefile.am): Likewise.
58119         * modules/malloc (Makefile.am): Likewise.
58120         * modules/mathl (Makefile.am): Likewise.
58121         * modules/mbchar (Makefile.am): Likewise.
58122         * modules/md2 (Makefile.am): Likewise.
58123         * modules/md4 (Makefile.am): Likewise.
58124         * modules/md5 (Makefile.am): Likewise.
58125         * modules/memcasecmp (Makefile.am): Likewise.
58126         * modules/memchr (Makefile.am): Likewise.
58127         * modules/memcmp (Makefile.am): Likewise.
58128         * modules/memcoll (Makefile.am): Likewise.
58129         * modules/memcpy (Makefile.am): Likewise.
58130         * modules/memmem (Makefile.am): Likewise.
58131         * modules/memmove (Makefile.am): Likewise.
58132         * modules/mempcpy (Makefile.am): Likewise.
58133         * modules/memrchr (Makefile.am): Likewise.
58134         * modules/memset (Makefile.am): Likewise.
58135         * modules/memxor (Makefile.am): Likewise.
58136         * modules/mkancesdirs (Makefile.am): Likewise.
58137         * modules/mkdir (Makefile.am): Likewise.
58138         * modules/mkdir-p (Makefile.am): Likewise.
58139         * modules/mkdtemp (Makefile.am): Likewise.
58140         * modules/mkstemp (Makefile.am): Likewise.
58141         * modules/mktime (Makefile.am): Likewise.
58142         * modules/modechange (Makefile.am): Likewise.
58143         * modules/mountlist (Makefile.am): Likewise.
58144         * modules/nanosleep (Makefile.am): Likewise.
58145         * modules/openat (Makefile.am): Likewise.
58146         * modules/pagealign_alloc (Makefile.am): Likewise.
58147         * modules/physmem (Makefile.am): Likewise.
58148         * modules/poll (Makefile.am): Likewise.
58149         * modules/posixtm (Makefile.am): Likewise.
58150         * modules/posixver (Makefile.am): Likewise.
58151         * modules/putenv (Makefile.am): Likewise.
58152         * modules/quote (Makefile.am): Likewise.
58153         * modules/quotearg (Makefile.am): Likewise.
58154         * modules/raise (Makefile.am): Likewise.
58155         * modules/read-file (Makefile.am): Likewise.
58156         * modules/readline (Makefile.am): Likewise.
58157         * modules/readlink (Makefile.am): Likewise.
58158         * modules/readtokens (Makefile.am): Likewise.
58159         * modules/readutmp (Makefile.am): Likewise.
58160         * modules/realloc (Makefile.am): Likewise.
58161         * modules/regex (Makefile.am): Likewise.
58162         * modules/rename (Makefile.am): Likewise.
58163         * modules/rename-dest-slash (Makefile.am): Likewise.
58164         * modules/rijndael (Makefile.am): Likewise.
58165         * modules/rmdir (Makefile.am): Likewise.
58166         * modules/rpmatch (Makefile.am): Likewise.
58167         * modules/safe-read (Makefile.am): Likewise.
58168         * modules/safe-write (Makefile.am): Likewise.
58169         * modules/same (Makefile.am): Likewise.
58170         * modules/save-cwd (Makefile.am): Likewise.
58171         * modules/savedir (Makefile.am): Likewise.
58172         * modules/setenv (Makefile.am): Likewise.
58173         * modules/settime (Makefile.am): Likewise.
58174         * modules/sha1 (Makefile.am): Likewise.
58175         * modules/sig2str (Makefile.am): Likewise.
58176         * modules/snprintf (Makefile.am): Likewise.
58177         * modules/stdlib-safer (Makefile.am): Likewise.
58178         * modules/stpcpy (Makefile.am): Likewise.
58179         * modules/stpncpy (Makefile.am): Likewise.
58180         * modules/strcase (Makefile.am): Likewise.
58181         * modules/strcasestr (Makefile.am): Likewise.
58182         * modules/strchrnul (Makefile.am): Likewise.
58183         * modules/strcspn (Makefile.am): Likewise.
58184         * modules/strdup (Makefile.am): Likewise.
58185         * modules/strerror (Makefile.am): Likewise.
58186         * modules/strftime (Makefile.am): Likewise.
58187         * modules/strndup (Makefile.am): Likewise.
58188         * modules/strnlen (Makefile.am): Likewise.
58189         * modules/strpbrk (Makefile.am): Likewise.
58190         * modules/strsep (Makefile.am): Likewise.
58191         * modules/strstr (Makefile.am): Likewise.
58192         * modules/strtod (Makefile.am): Likewise.
58193         * modules/strtoimax (Makefile.am): Likewise.
58194         * modules/strtok_r (Makefile.am): Likewise.
58195         * modules/strtol (Makefile.am): Likewise.
58196         * modules/strtoll (Makefile.am): Likewise.
58197         * modules/strtoul (Makefile.am): Likewise.
58198         * modules/strtoull (Makefile.am): Likewise.
58199         * modules/strtoumax (Makefile.am): Likewise.
58200         * modules/strverscmp (Makefile.am): Likewise.
58201         * modules/time_r (Makefile.am): Likewise.
58202         * modules/timegm (Makefile.am): Likewise.
58203         * modules/tmpfile-safer (Makefile.am): Likewise.
58204         * modules/unistd-safer (Makefile.am): Likewise.
58205         * modules/unlinkdir (Makefile.am): Likewise.
58206         * modules/userspec (Makefile.am): Likewise.
58207         * modules/utime (Makefile.am): Likewise.
58208         * modules/utimecmp (Makefile.am): Likewise.
58209         * modules/utimens (Makefile.am): Likewise.
58210         * modules/vasnprintf (Makefile.am): Likewise.
58211         * modules/vasprintf (Makefile.am): Likewise.
58212         * modules/vsnprintf (Makefile.am): Likewise.
58213         * modules/xalloc (Makefile.am): Likewise.
58214         * modules/xgetcwd (Makefile.am): Likewise.
58215         * modules/xnanosleep (Makefile.am): Likewise.
58216         * modules/xreadlink (Makefile.am): Likewise.
58217         * modules/xstrtod (Makefile.am): Likewise.
58218         * modules/xstrtol (Makefile.am): Likewise.
58219         * modules/xstrtold (Makefile.am): Likewise.
58220         * modules/yesno (Makefile.am): Likewise.
58221
58222 2006-10-12  Jim Meyering  <jim@meyering.net>
58223
58224         * m4/getloadavg.m4: Revert the change below.
58225
58226         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58227         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58228         fail with a symlink, which is what coreutils' ./bootstrap now
58229         creates by default.
58230
58231 2006-10-12  Bruno Haible  <bruno@clisp.org>
58232
58233         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58234         mingw.
58235         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58236         MSVC and mingw explicitly.
58237
58238 2006-10-11  Simon Josefsson  <jas@extundo.com>
58239             Bruno Haible  <bruno@clisp.org>
58240
58241         Add support for multiple gnulib-tool invocations in the scope of a
58242         single configure.ac file.
58243         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58244         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58245         with the same contents as the _LIBADD variable.
58246         (func_emit_initmacro_start, func_emit_initmacro_end,
58247         func_emit_initmacro_done): New functions.
58248         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58249         gl_LIBOBJS and gl_LTLIBOBJS.
58250
58251 2006-10-11  Bruno Haible  <bruno@clisp.org>
58252
58253         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58254         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58255         autoreconf. Instead, invoke autopoint explicitly but move back the
58256         *.m4 files from gnulib.
58257
58258 2006-10-11  Bruno Haible  <bruno@clisp.org>
58259
58260         * gnulib-tool (func_usage): Make module names after --create-testdir
58261         optional.
58262         (func_create_testdir): If no module was specified, use nearly all
58263         modules.
58264
58265 2006-10-12  Jim Meyering  <jim@meyering.net>
58266
58267         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58268         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58269         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58270         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58271         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58272         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58273         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58274         (fts_set_stat_required): New function.
58275         (fts_open): Defer the calls to fts_stat, if possible or requested.
58276         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58277         into fts_stat itself.
58278         (fts_read): Perform any required (deferred) fts_stat call.
58279         (fts_build): Likewise, for the directory we're about to open and read.
58280         In the readdir loop, carefully decide whether each entry will require
58281         an eventual call to fts_stat, using dirent.d_type info if available.
58282         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58283         a command line argument into this function.  Update all callers.
58284         Map a return value of FTS_DOT to FTS_D for a command line argument.
58285         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58286         Thanks to Miklos Szeredi for his tenacity and for the initial
58287         bug report about "find" failing on a FUSE-based file system.
58288
58289         * lib/fts.c (fts_open): Use consistent indentation.
58290
58291 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58294         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58295         reported by Jim Meyering.  All uses of cache variables renamed
58296         to match Autoconf's.
58297         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58298         the other one.
58299
58300         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58301         Fix misspelling in diagnostic.
58302
58303 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58306         defined.  Problem reported by Matthew Woehlke.
58307
58308         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58309         Add support for Tandem NonStop R series.
58310         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58311         Use new macro.
58312
58313         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58314         (has_trailing_slash): Omit size arg; all callers changed.
58315         Omit 'inline', since it doesn't help performance and we'd
58316         need to configure it.
58317         Don't count //, ///, etc. as having a trailing slash.
58318         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58319         (rpl_rename_dest_slash): On failure, use rename's errno rather
58320         than (in some cases) an incorrect or junk errno.
58321         Simplify code by removing need to compute length; this does
58322         cause it to make two passes instead of one over the file name,
58323         but it's worth it.
58324
58325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58326         change, since Autoconf's version may no longer be appropriate now
58327         that we are using CVS Autoconf's version.  Add support for Tandem.
58328
58329 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58330             Bruno Haible  <bruno@clisp.org>
58331
58332         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58333         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58334         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58335         gl_AC_TYPE_LONG_LONG.
58336
58337         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58338         instead of HAVE_LONG_LONG.
58339         * lib/printf-args.c (printf_fetchargs): Likewise.
58340         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58341         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58343         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58344         gl_AC_TYPE_LONG_LONG.
58345
58346 2006-10-11  Bruno Haible  <bruno@clisp.org>
58347
58348         * m4/longlong.m4: Add comments.
58349         * m4/ulonglong.m4: Likewise.
58350
58351 2006-10-10  Bruno Haible  <bruno@clisp.org>
58352
58353         Make it possible to #define stpcpy, strdup to aliases.
58354         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58355         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58356
58357 2006-10-10  Bruno Haible  <bruno@clisp.org>
58358
58359         Make it possible to #define gcd to an alias.
58360         * lib/gcd.c: Include config.h.
58361
58362 2006-10-10  Bruno Haible  <bruno@clisp.org>
58363
58364         Make it possible to #define c_isascii to an alias.
58365         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58366         defined. Undefine the macros before defining them, to avoid gcc
58367         warnings.
58368         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58369         define NO_C_CTYPE_MACROS early.
58370
58371 2006-10-10  Bruno Haible  <bruno@clisp.org>
58372
58373         Make it possible to #define set_program_name to an alias.
58374         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58375         ENABLE_RELOCATABLE early.
58376
58377 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58380         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58381         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58382         More generally, don't assume that 64-bit signed int is available
58383         if unsigned int is, and vice versa.
58384         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58385         unsigned symbols, not on their signed counterparts.
58386         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58387         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58388         (UINT64_C, UINTMAX_C):
58389         Likewise.
58390         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58391         unsigned counterparts.
58392         (Have_long_long, Unsigned): New macros.
58393         (Int): Renamed from INT.
58394         (strtoimax): Use the new macros.
58395         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58396         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58397         * modules/inttypes (inttypes.h): Substitute
58398         HAVE_UNSIGNED_LONG_LONG_INT.
58399         * modules/stdint (stdint.h): Likewise.
58400         (Files): Add m4/ulonglong.m4.
58401
58402 2006-10-10  Bruno Haible  <bruno@clisp.org>
58403
58404         Fix a gcc -Wshadow warning.
58405         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58406         to 'bucket'.
58407         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58408         gl_linked_indexof_from_to): Likewise.
58409         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58410         Likewise.
58411         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58412         Likewise.
58413         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58414         Reported by Eric Blake.
58415
58416 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58417
58418         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58419         for NetBSD.  Problem reported by Bruno Haible.
58420
58421 2006-10-09  Jim Meyering  <jim@meyering.net>
58422
58423         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58424         Patch from Bruno Haible.
58425
58426 2006-10-09  Jim Meyering  <jim@meyering.net>
58427
58428         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58429         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58430         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58431
58432 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58433
58434         Don't include <config.h> twice; this doesn't work in some cases,
58435         e.g., when config.h has "#define intmax_t long long int" and
58436         we include <config.h>, <inttypes.h>, <config.h> in that order.
58437         Problem reported by Matthew Woehlke in:
58438         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58439         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58440         * lib/fts-cycle.c: Don't include config.h.
58441         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58442         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58443         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58444         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58445         inttypes.h.
58446         * lib/xstrtoumax.c: Likewise.
58447         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58448         __strtol and the like, so that this module is more like its siblings.
58449         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58450         Remove; no longer needed now that we assume gnulib inttypes.h.
58451
58452 2006-10-08  Bruno Haible  <bruno@clisp.org>
58453
58454         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58455         option.
58456
58457 2006-10-07  Jim Meyering  <jim@meyering.net>
58458
58459         * modules/inttypes (inttypes.h): Revert what seems to have been
58460         an inadvertent part of today's change: use "|", not "/" in the
58461         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58462
58463 2006-10-07  Bruno Haible  <bruno@clisp.org>
58464
58465         * modules/sublist: New file.
58466
58467 2006-10-07  Bruno Haible  <bruno@clisp.org>
58468
58469         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58470         * modules/argz (argz.h): Likewise.
58471         * modules/arpa_inet (arpa/inet.h): Likewise.
58472         * modules/byteswap (byteswap.h): Likewise.
58473         * modules/configmake (configmake.h): Likewise.
58474         * modules/fcntl (fcntl.h): Likewise.
58475         * modules/fnmatch (fnmatch.h): Likewise.
58476         * modules/getopt (getopt.h): Likewise.
58477         * modules/glob (glob.h): Likewise.
58478         * modules/inttypes (inttypes.h): Likewise.
58479         * modules/netinet_in (netinet/in.h): Likewise.
58480         * modules/poll (poll.h): Likewise.
58481         * modules/stdbool (stdbool.h): Likewise.
58482         * modules/stdint (stdint.h): Likewise.
58483         * modules/sys_select (sys/select.h): Likewise.
58484         * modules/sys_socket (sys/socket.h): Likewise.
58485         * modules/sys_stat (sys/stat.h): Likewise.
58486         * modules/sysexits (sysexits.h): Likewise.
58487         * modules/unistd (unistd.h): Likewise.
58488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58489         Add a "DO NOT EDIT" comment to the generated file.
58490         (func_import): Likewise for gnulib-comp.m4.
58491
58492 2006-10-07  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/gl_sublist.h: New file.
58495         * lib/gl_sublist.c: New file.
58496
58497 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58500         name (relative to the original working directory) and the file
58501         name component (relative to the temporary working directory).  All
58502         callers changed.
58503         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58504         * lib/mkdir-p.c (make_dir_parents): Likewise.
58505         * lib/mkdir-p.h (make_dir_parents): Likewise.
58506
58507 2006-10-06  Eric Blake  <ebb9@byu.net>
58508
58509         Define several macros for use by the clean-temp module.
58510         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58511         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58512         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58513
58514         * lib/clean-temp.h (close_stream_temp): New declaration.
58515         * lib/clean-temp.c (includes): Pull in headers according to what
58516         other modules are in use.
58517         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58518
58519 2006-10-06  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58522         instead of fopen, fwriteerror.
58523
58524 2006-10-06  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58527         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58528         int.
58529         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58530         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58531         Return an error indicator.
58532         Suggested by Eric Blake.
58533
58534 2006-10-06  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58537         Reported by Eric Blake.
58538
58539 2006-10-06  Bruno Haible  <bruno@clisp.org>
58540
58541         * modules/closeout (Description): Mention stderr too.
58542
58543 2006-10-06  Bruno Haible  <bruno@clisp.org>
58544         and Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         * lib/closeout.c (close_stdout): Also close stderr.
58547         * lib/closeout.h: Update comment.
58548
58549 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58552         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58553         * lib/dirchownmod.c: Include lchown.h.
58554         * lib/lchown.c: Don't include files that lchown.h now includes.
58555         Don't declare chown, since lchown.h now does that.
58556         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58557         (lchown): Define to rpl_chown if lchown is declared but
58558         does not exist.  Declare using a prototype if lchown is not
58559         declared.  Add a copyright notice.
58560         * lib/mkstemp.h: Include <unistd.h>.
58561         * lib/openat.c: Include lchown.h.
58562
58563         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58564         we now test for that separately.
58565         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58566         rather than O_NOFOLLOW, when testing whether it's possible to
58567         avoid a race condition reliably.
58568         * lib/savewd.c (savewd_chdir): Likewise.
58569
58570         Remove macros that are no longer needed now that stdint.h is
58571         reliable.
58572         * lib/fsusage.c (UINTMAX_MAX): Remove.
58573         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58574         * lib/utimecmp.c (SIZE_MAX): Remove.
58575
58576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58577
58578         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58579         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58580         O_NOATIME works.
58581
58582 2006-10-05  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/gl_list.h (gl_sortedlist_search_from_to,
58585         gl_sortedlist_indexof_from_to): New declarations.
58586         (gl_list_implementation): New fields sortedlist_search_from_to,
58587         sortedlist_indexof_from_to.
58588         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58589         inline functions.
58590         * lib/gl_list.c (gl_sortedlist_search_from_to,
58591         gl_sortedlist_indexof_from_to): New functions.
58592         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58593         function.
58594         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58595         (gl_array_sortedlist_search_from_to): New function.
58596         (gl_array_list_implementation): Update.
58597         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58598         function.
58599         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58600         (gl_carray_sortedlist_search_from_to): New function.
58601         (gl_carray_list_implementation): Update.
58602         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58603         gl_linked_sortedlist_indexof_from_to): New functions.
58604         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58605         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58606         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58607         gl_tree_sortedlist_indexof_from_to): New functions.
58608         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58609         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58610         Update.
58611         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58612         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58613         Update.
58614
58615 2006-10-05  Bruno Haible  <bruno@clisp.org>
58616
58617         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58618         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58619         (struct gl_list_implementation): Add fields search_from_to,
58620         indexof_from_to. Remove fields search, indexof.
58621         (gl_list_search): Use the search_from_to method.
58622         (gl_list_search_from, gl_list_search_from_to): New functions.
58623         (gl_list_indexof): Use the indexof_from_to method.
58624         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58625         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58626         (gl_list_search_from, gl_list_search_from_to): New functions.
58627         (gl_list_indexof): Use the indexof_from_to method.
58628         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58629         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58630         gl_array_indexof. Add start_index, end_index arguments.
58631         (gl_array_search_from_to): Renamed from gl_array_search. Add
58632         start_index, end_index arguments.
58633         (gl_array_remove, gl_array_list_implementation): Update.
58634         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58635         gl_carray_indexof. Add start_index, end_index arguments.
58636         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58637         start_index, end_index arguments.
58638         (gl_carray_remove, gl_carray_list_implementation): Update.
58639         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58640         gl_linked_search. Add start_index, end_index arguments.
58641         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58642         start_index, end_index arguments.
58643         (gl_linked_remove): Update.
58644         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58645         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58646         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58647         field to 'size_t'.
58648         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58649         gl_tree_search. Add start_index, end_index arguments.
58650         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58651         start_index, end_index arguments.
58652         (gl_tree_remove): Update.
58653         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58654         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58655         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58656         function.
58657         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58658         gl_tree_search. Add start_index, end_index arguments.
58659         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58660         start_index, end_index arguments.
58661         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58662         Update.
58663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58664
58665 2006-10-05  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58668
58669         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58670         fwriteerror_temp): New declarations.
58671         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58672         (descriptors): New variable.
58673         (cleanup): First, close the descriptors.
58674         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58675         fclose_temp, fwriteerror_temp): New functions.
58676
58677 2006-10-04  Jim Meyering  <jim@meyering.net>
58678
58679         * lib/fts.c (fts_open): Tiny comment change.
58680
58681 2006-10-04  Bruno Haible  <bruno@clisp.org>
58682
58683         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58684         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58685         gl_LOCK_BODY.
58686         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58687         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58688         gl_LOCK_EARLY_BODY.
58689         (gl_LOCK): Require gl_LOCK_BODY.
58690
58691 2006-10-04  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58694         (gl_oset_search_atleast): New declaration.
58695         (struct gl_oset_implementation): Add field 'search_atleast'.
58696         (gl_oset_search_atleast): New inline function.
58697         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58698         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58699         (gl_array_oset_implementation): Update.
58700         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58701         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58702         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58703
58704 2006-10-04  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58707
58708 2006-10-03  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58711         from gl_avltreehash_list_implementation.
58712
58713 2006-10-03  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/gl_oset.c (gl_oset_add): Fix return type.
58716
58717 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58718
58719         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58720
58721 2006-10-02  Eric Blake  <ebb9@byu.net>
58722
58723         * modules/strnlen (Depends-on): Add extensions.
58724
58725 2006-10-02  Eric Blake  <ebb9@byu.net>
58726
58727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58728         definition in 2.60+.
58729
58730 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58731
58732         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58733         checks.
58734
58735 2006-10-02  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58738         to the AUTOMAKE_OPTIONS.
58739         Reported by Jim Meyering.
58740
58741 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         Work around bug in Solaris 10 /proc file system:
58744         /proc/self/fd/NNN/.. isn't the parent directory of
58745         the directory whose file descriptor is NNN.  This needs to
58746         be worked around at run time, not compile time, since a
58747         program might be built on Solaris 8, where things work, and
58748         run on Solaris 10.
58749         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58750         to use the following interface instead:
58751         (OPENAT_BUFFER_SIZE): New macro.
58752         (openat_proc_name): New function.
58753         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58754         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58755         Likewise.
58756         * lib/openat-proc.c: New file.
58757         * modules/openat (Files): Add lib/openat-proc.c.
58758         (Depends-on): Add same-inode, stdbool.
58759         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58760
58761 2006-09-29  Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58764         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58765         argument. Set stdout_closed before testing for ferror, not after.
58766         (fwriteerror, fwriteerror_no_ebadf): New functions.
58767
58768 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58769
58770         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58771
58772 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58773
58774         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58775         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58776
58777 2006-09-28  Jim Meyering  <jim@meyering.net>
58778
58779         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58780         Include <unistd.h>.
58781
58782 2006-09-28  Bruno Haible  <bruno@clisp.org>
58783
58784         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58785         * modules/linkedhash-list (Depends-on): Likewise.
58786         * modules/rbtreehash-list (Depends-on): Likewise.
58787
58788 2006-09-28  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/strndup.h: Simplify the redefinition of strndup.
58791         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58792         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58793
58794 2006-09-28  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58797         * lib/gl_linkedhash_list.c: Likewise.
58798         * lib/gl_rbtreehash_list.c: Likewise.
58799
58800 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58801
58802         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58803         getaddrinfo.
58804
58805         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58806         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58807         it causes <stdio_ext.h> to cause a compile-time error.
58808         Problem reported by Nelson H. F. Beebe.
58809         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58810         of HAVE_DECL___PENDING.
58811
58812         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58813         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58814         declaration.
58815
58816 2006-09-27  Jim Meyering  <jim@meyering.net>
58817
58818         This file could end up with a definition for a function
58819         named __strndup, rather than rpl_strndup on a system with
58820         incomplete weak_alias support.
58821         * lib/strndup.c (strndup): Rename from __strndup.
58822         Remove #defines that used to map __strndup to strndup.
58823         Don't use K&R prototypes.
58824         Remove LIBC-related code, since this file is not sync'd with glibc.
58825         * lib/strndup.h: Revamp, accordingly.
58826         * m4/strndup.m4: Modernize.
58827
58828 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * modules/savewd (Depends-on): Add 'raise'.
58831         * lib/savewd.c: Include <signal.h>, for 'raise'.
58832
58833 2006-09-26  Jim Meyering  <jim@meyering.net>
58834
58835         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58836         when we detect Darwin 8.7.0's acl_get_file bug.
58837         Rearrange to perform the new (below) run-test while $LIBS
58838         contains any acl-related library.  Set USE_ACL at the end.
58839         (gl_ACL_GET_FILE): New function.
58840
58841 2006-09-26  Eric Blake  <ebb9@byu.net>
58842
58843         * lib/verror.c: Include <config.h> unconditionally.
58844
58845 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * modules/clock-time (Maintainer): Add self.
58848         * modules/getlogin_r (Depends-on): Add extensions.
58849
58850 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58851
58852         * modules/clock-time: New module.
58853         * modules/nanosleep (Depends-on): Add clock-time.
58854         * modules/gethrxtime (Depends-on): Likewise.
58855         * modules/gettime (Depends-on): Likewise.
58856         * modules/settime (Depends-on): Likewise.
58857
58858         * modules/fts-lgpl: Depend on openat.
58859         * modules/mkancesdirs: Depend on savewd.
58860         * modules/mkdir-p: Likewise.
58861
58862 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58863
58864         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58865
58866         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58867         `gl_have_arbitrary_file_name_length_limit' to
58868         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58869         actually works between configure runs.
58870
58871 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58872             Bruno Haible  <bruno@clisp.org>
58873
58874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58875
58876 2006-09-25  Jim Meyering  <jim@meyering.net>
58877
58878         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58879         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58880
58881 2006-09-25  Eric Blake  <ebb9@byu.net>
58882
58883         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58884         exec's in 2006-09-18 patch when shuffling fds.
58885
58886 2006-09-25  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58889         Reported by Jim Meyering.
58890
58891 2006-09-24  Jim Meyering  <jim@meyering.net>
58892
58893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58894         compare a pointer against a literal "0".  That caused failures with
58895         at least HP-UX's hpcc.
58896
58897 2006-09-22  Simon Josefsson  <jas@extundo.com>
58898
58899         * modules/gc-sha1:
58900         * modules/gc-md4:
58901         * modules/gc-hmac-sha1:
58902         * modules/gc-hmac-md5:
58903         * modules/gc-des:
58904         * modules/gc-arcfour: Distribute more files.
58905
58906 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58907
58908         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58909         (gl_linked_iterator_from_to): Initialize struct completely.
58910         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58911         (gl_tree_iterator_from_to): Likewise
58912         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58913         * lib/gl_array_list.c [lint] (gl_array_iterator)
58914         (gl_array_iterator_from_to): Likewise.
58915         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58916         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58917         (gl_carray_iterator_from_to): Likewise.
58918
58919         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58920         * lib/md4.c (md4_process_block): Remove unused variable.
58921         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58922         parentheses for clarity.
58923
58924 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58925
58926         * modules/bison-i18n (Depends-on): Add gettext.
58927
58928 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58929
58930         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58931         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58932         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58933         also add missing comma that caused broken test.
58934         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58935         stdlib.h, for `abort'.
58936         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58937         variables.
58938         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58939         include unistd.h if present, for `rmdir'.
58940         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58941         variables.
58942         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58943         in the process include standard headers for prototypes.
58944         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58945         gets declared on GNU/Linux.
58946         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58947         unistd.h, for `rmdir'.
58948         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58949
58950         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58951         always true.
58952         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58953
58954         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58955
58956 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58957
58958         * gnulib-tool (func_version): Create output all at once.  This
58959         may help avoid triggering unnecessary SIGPIPEs, and at any
58960         rate it doesn't hurt.
58961
58962 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58963             Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58966         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58967         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58968
58969         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58970         (gl_FUNC_VASPRINTF): Invoke it.
58971
58972 2006-09-22  Bruno Haible  <bruno@clisp.org>
58973
58974         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58975         getloadavg.c as first argument.
58976
58977 2006-09-22  Bruno Haible  <bruno@clisp.org>
58978
58979         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58980         at the beginning of the gl_INIT macro.
58981         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58982         gl_GETLOADAVG.
58983
58984 2006-09-22  Bruno Haible  <bruno@clisp.org>
58985
58986         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58987         module.
58988         Suggested by Ralf Wildenhues.
58989
58990 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         Import this patch from libc:
58993
58994         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58995
58996         * lib/regex_internal.c (re_string_reconstruct): Handle
58997         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58998         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58999         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59000         re_string_context_at.
59001
59002         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59003         now requires it.
59004         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59005         gl_REGEX now does it for us.
59006         (gl_REGEX): Add test taken from
59007         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59008
59009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59010         Check that large offsets work.  Modernize Autoconf usages.
59011         Prefer "yes" to mean a good thing rather than a bad.
59012         Don't put "#define mkstemp" in config.h, as this might interfere
59013         with standard system headers that "#define mkstemp mkstemp64".
59014
59015         * modules/mkstemp (Depends-on): Add extensions, so that
59016         mkstemp is visible on some platforms.
59017         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59018         (Include): Change to "mkstemp.h" from <stdlib.h>.
59019         (Files): Add mkstemp.h.
59020
59021         * lib/mkstemp.h: New file, since some standard headers
59022         #define mkstemp.
59023         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59024         Include "mkstemp.h".
59025         Make the _LIBC code resemble glibc original more,
59026         e.g., use K&R style.
59027         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59028         (mkstemp): Remove, since mkstemp.h does this for us.
59029         * lib/stdlib--.h: Include mkstemp.h.
59030
59031         Import this patch from libc:
59032
59033         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59034
59035         * lib/tempname.c (__gen_tempname): Change attempts_min
59036         into a macro.  Use preprocessor to decide how to initialize
59037         attempts [Coverity CID 67].
59038
59039 2006-09-20  Bruno Haible  <bruno@clisp.org>
59040
59041         * lib/mkdtemp.c: Import from libc.
59042         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59043                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59044                 attempts_min into a macro.  Use preprocessor to decide how to
59045                 initialize attempts [Coverity CID 67].
59046         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59047                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59048                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59049
59050 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59051
59052         * gnulib-tool (func_exit): New function, to allow to pass the
59053         exit status portably through the trap.  Use everywhere.
59054         (--help, --version): Signal a write error.
59055         (trap): catch SIGPIPE, for write errors.
59056         Exit at the end of the trap, with the correct exit status.
59057
59058 2006-09-19  Karl Berry  <karl@gnu.org>
59059
59060         * doc/gnulib.texi: note about the license texinfo files.
59061
59062 2006-09-19  Eric Blake  <ebb9@byu.net>
59063
59064         * gnulib-tool: Avoid space-tab.
59065
59066 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59069         that prevented coreutils 6.1 from building.  Problem reported
59070         by Petter Reinholdtsen.
59071
59072 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * gnulib-tool (avoidlist): Fix typo that broke options like
59075         --avoid=lock that are used by coreutils bootstrap.
59076
59077 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59078
59079         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59080         more systematically.
59081
59082 2006-09-18  Jim Meyering  <jim@meyering.net>
59083
59084         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59085
59086 2006-09-18  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59089
59090 2006-09-18  Bruno Haible  <bruno@clisp.org>
59091
59092         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59093         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59094         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59095         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59096         * m4/gettext.m4: Require autoconf >= 2.52.
59097         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59098         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59099         of gl_cv_header_inttypes_h.
59100
59101 2006-09-18  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/javaversion.c: Include configmake.h.
59104
59105 2006-09-18  Bruno Haible  <bruno@clisp.org>
59106
59107         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59108         avoid that the while loops be executed in a subshell.
59109
59110 2006-09-18  Bruno Haible  <bruno@clisp.org>
59111
59112         * MODULES.html.sh (func_module): Break long lines.
59113         Suggested by Bruce Korb <bkorb@gnu.org>.
59114
59115 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59116
59117         Speed up by a factor of 1.12.
59118         * gnulib-tool (nl): New variable.
59119         (func_import): Rewrite include directive extraction to only read each
59120         directive once.
59121
59122 2006-09-17  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/javaversion (Makefile.am): Remove DEFS setting.
59125         (Depends-on): Add configmake, for PKGDATADIR definition.
59126
59127 2006-09-17  Bruno Haible  <bruno@clisp.org>
59128
59129         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59130
59131 2006-09-17  Bruno Haible  <bruno@clisp.org>
59132
59133         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59134         (func_modules_transitive_closure, func_modules_add_dummy,
59135         func_modules_to_filelist, func_import, func_create_testdir,
59136         func_create_megatestdir, ...): Use it wherever possible.
59137         Suggested by Ralf Wildenhues.
59138
59139 2006-09-16  Karl Berry  <karl@gnu.org>
59140
59141         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59142         to avoid sectioning errors.
59143         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59144         [ifinfo]: blank line after @center-ed titles.
59145         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59146         Spell FSF address consistently with others.
59147         (These changes approved by rms.)
59148
59149 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59150
59151         Speed up by a factor of 1.61.
59152         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59153         already checked module names again.
59154
59155 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59156
59157         Speed up by a factor of 1.13.
59158         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59159         for new_files, and the input to func_add_or_update.
59160
59161 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59162
59163         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59164         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59165
59166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * modules/mkancesdirs (Depends-on): Add fcntl.
59169         * modules/savewd: New file.
59170         * MODULES.html.sh (File system functions): Add savewd.
59171
59172         * modules/configmake (Makefile.am): Add support for the
59173         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59174
59175 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59176
59177         * m4/savewd.m4: New file.
59178
59179 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59180
59181         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59182         (dirchownmod): New arg FD.  All callers changed.
59183         Use FD rather than opening the directory ourself, as opening is
59184         now the caller's responsibility.
59185         * lib/dirchownmod.h: Likewise.
59186         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59187         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59188         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59189         (test_dir): Remove.
59190         (mkancesdirs): Return length of prefix of FILE that has already
59191         been made, or -2 if there is a child doing the work.  Redo
59192         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59193         ".", and treat ".." specially since it might stray back into
59194         already-created areas.  Use a subprocess if necessary.  New arg
59195         WD; all users changed.  MAKE_DIR function should now return 1
59196         if it creates a directory that is not readable.  Return -2 if
59197         a child process is spun off.
59198         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59199         Adjust signature to match code.
59200         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59201         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59202         all users changed.
59203         * lib/savewd.c, lib/savewd.h: New files.
59204
59205 2006-09-15  Jim Meyering  <jim@meyering.net>
59206
59207         * modules/rename-dest-slash: New module.
59208         * MODULES.html.sh (posix_compat): Add it here.
59209
59210         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59211
59212 2006-09-15  Jim Meyering  <jim@meyering.net>
59213
59214         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59215         file.
59216
59217         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59218
59219 2006-09-15  Jim Meyering  <jim@meyering.net>
59220
59221         * lib/rename-dest-slash.c (has_trailing_slash): Use
59222         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59223         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59224         test before testing whether SRC is a directory.
59225         Suggestions from Bruno Haible.
59226
59227         Avoid a warning about an unused variable.
59228         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59229         into the #ifdef block where it's used.
59230
59231         * lib/rename-dest-slash.c: New file.
59232
59233 2006-09-14  Bruno Haible  <bruno@clisp.org>
59234
59235         * lib/allocsa.c: Include <config.h> unconditionally.
59236         * lib/asnprintf.c: Likewise.
59237         * lib/asprintf.c: Likewise.
59238         * lib/c-strcasecmp.c: Likewise.
59239         * lib/c-strcasestr.c: Likewise.
59240         * lib/c-strncasecmp.c: Likewise.
59241         * lib/c-strstr.c: Likewise.
59242         * lib/classpath.c: Likewise.
59243         * lib/clean-temp.c: Likewise.
59244         * lib/concatpath.c: Likewise.
59245         * lib/copy-file.c: Likewise.
59246         * lib/csharpcomp.c: Likewise.
59247         * lib/csharpexec.c: Likewise.
59248         * lib/execute.c: Likewise.
59249         * lib/fatal-signal.c: Likewise.
59250         * lib/findprog.c: Likewise.
59251         * lib/fwriteerror.c: Likewise.
59252         * lib/gl_array_list.c: Likewise.
59253         * lib/gl_array_oset.c: Likewise.
59254         * lib/gl_avltree_list.c: Likewise.
59255         * lib/gl_avltree_oset.c: Likewise.
59256         * lib/gl_avltreehash_list.c: Likewise.
59257         * lib/gl_carray_list.c: Likewise.
59258         * lib/gl_linked_list.c: Likewise.
59259         * lib/gl_linkedhash_list.c: Likewise.
59260         * lib/gl_list.c: Likewise.
59261         * lib/gl_oset.c: Likewise.
59262         * lib/gl_rbtree_list.c: Likewise.
59263         * lib/gl_rbtree_oset.c: Likewise.
59264         * lib/gl_rbtreehash_list.c: Likewise.
59265         * lib/imaxabs.c: Likewise.
59266         * lib/imaxdiv.c: Likewise.
59267         * lib/javacomp.c: Likewise.
59268         * lib/javaexec.c: Likewise.
59269         * lib/javaversion.c: Likewise.
59270         * lib/linebreak.c: Likewise.
59271         * lib/localcharset.c: Likewise.
59272         * lib/lock.c: Likewise.
59273         * lib/mbchar.c: Likewise.
59274         * lib/mbswidth.c: Likewise.
59275         * lib/mkdtemp.c: Likewise.
59276         * lib/pipe.c: Likewise.
59277         * lib/printf-args.c: Likewise.
59278         * lib/printf-parse.c: Likewise.
59279         * lib/progname.c: Likewise.
59280         * lib/progreloc.c: Likewise.
59281         * lib/readlink.c: Likewise.
59282         * lib/sh-quote.c: Likewise.
59283         * lib/stpcpy.c: Likewise.
59284         * lib/stpncpy.c: Likewise.
59285         * lib/strcasecmp.c: Likewise.
59286         * lib/strcasestr.c: Likewise.
59287         * lib/strcspn.c: Likewise.
59288         * lib/striconv.c: Likewise.
59289         * lib/strncasecmp.c: Likewise.
59290         * lib/strnlen1.c: Likewise.
59291         * lib/strstr.c: Likewise.
59292         * lib/strtok_r.c: Likewise.
59293         * lib/tls.c: Likewise.
59294         * lib/tmpdir.c: Likewise.
59295         * lib/unicodeio.c: Likewise.
59296         * lib/unsetenv.c: Likewise.
59297         * lib/vasnprintf.c: Likewise.
59298         * lib/vasprintf.c: Likewise.
59299         * lib/wait-process.c: Likewise.
59300         * lib/xallocsa.c: Likewise.
59301         * lib/xsetenv.c: Likewise.
59302         * lib/xstriconv.c: Likewise.
59303
59304 2006-09-13  Simon Josefsson  <jas@extundo.com>
59305
59306         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59307         that internally, suggested by Ralf Wildenhues
59308         <Ralf.Wildenhues@gmx.de>.
59309
59310 2006-09-13  Simon Josefsson  <jas@extundo.com>
59311
59312         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59313         @LIBOBJS@.
59314         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59315
59316 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59319         longer worry about uses that don't define HAVE_CONFIG_H.
59320         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59321         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59322         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59323         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59324         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59325         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59326         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59327         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59328         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59329         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59330         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59331         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59332         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59333         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59334         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59335         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59336         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59337         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59338         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59339         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59340         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59341         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59342         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59343         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59344         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59345         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59346         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59347         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59348         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59349         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59350         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59351         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59352         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59353         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59354         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59355         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59356         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59357         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59358         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59359         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59360         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59361         Likewise.
59362
59363 2006-09-13  Eric Blake  <ebb9@byu.net>
59364
59365         * lib/getopt.c: Fix typo in last commit.
59366
59367 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59368
59369         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59370         dgettext.
59371
59372 2006-09-12  Jim Meyering  <jim@meyering.net>
59373
59374         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59375         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59376         Reported by Nelson H. F. Beebe.
59377
59378 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59379
59380         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59381         program_invocation_name and program_invocation_short_name are
59382         initialized.
59383         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59384         and program_invocation_short_name to argp.h, so they are visible
59385         to user programs.
59386         * lib/argp.h: Likewise
59387
59388 2006-09-10  Bruno Haible  <bruno@clisp.org>
59389
59390         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59391         m4/inttypes_h.m4, m4/uintmax_t.m4.
59392
59393 2006-09-10  Bruno Haible  <bruno@clisp.org>
59394
59395         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59396         gl_AC_TYPE_UINTMAX_T.
59397
59398 2006-09-10  Bruno Haible  <bruno@clisp.org>
59399
59400         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59401
59402 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59403
59404         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59405         convention.  Text proposed by Bruno Haible.
59406         (struct argp_option): Document the use of N_() wrappers.
59407
59408         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59409         '\v', and translate the two parts separately, instead of feeding
59410         the whole string to gettext.  This allows to exclude
59411         '\v' from the strings visible to the translator by writing doc
59412         strings as N_("..") "\v" N_("..").
59413
59414 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * config/srclist.txt: Undo latest change; the bug was fixed.
59417
59418 2006-09-09  Bruno Haible  <bruno@clisp.org>
59419
59420         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59421         assignments if building a library without libtool.
59422         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59423         in func_emit_lib_Makefile_am.
59424         (func_import): When building a static library libfoo.a, arrange to
59425         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59426         (func_create_testdir): Likewise.
59427         * modules/gc (configure.ac, Makefile.am): If building statically,
59428         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59429         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59430         * modules/striconv (configure.ac, Makefile.am): Likewise.
59431         Based on a suggestion by Ralf Wildenhues.
59432
59433 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59436         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59437         Also:
59438
59439         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59440         Add year_2050_test to catch glibc bug 2821
59441         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59442
59443         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59444         Prefer #ifdef to #if.
59445
59446         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59447         Return from 'main' instead of calling 'exit'.
59448
59449 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59452         returned the maximum time_t value rather than (time_t) -1.
59453         Problem originally reported by William Bardwell
59454         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59455
59456         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59457         Moved to here ...
59458         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59459         ... from here.
59460
59461 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59464         2821 is fixed.
59465
59466 2006-09-08  Jim Meyering  <jim@meyering.net>
59467
59468         Don't make generated files read-only.  That would bother too many
59469         people.  However, do retain the ability to work when targets are
59470         read-only: remove the destination and temporary files before writing
59471         them (when generated via sed or echo), or by using the -f option for
59472         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59473         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59474         * modules/byteswap, modules/configmake, modules/fcntl:
59475         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59476         * modules/localcharset, modules/netinet_in, modules/poll:
59477         * modules/stdbool, modules/stdint, modules/sys_select:
59478         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59479
59480 2006-09-08  Jim Meyering  <jim@meyering.net>
59481
59482         Avoid new build failure on FreeBSD 6.0.
59483         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59484         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59485         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59486
59487 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59488
59489         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59490
59491 2006-09-07  Jim Meyering  <jim@meyering.net>
59492
59493         Fix global typo in last change: use chmod u-w, not chmod u-x.
59494         Spotted by Paul Eggert and Bruce Korb.
59495         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59496         * modules/byteswap, modules/configmake, modules/fcntl:
59497         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59498         * modules/localcharset, modules/netinet_in, modules/poll:
59499         * modules/stdbool, modules/stdint, modules/sys_select:
59500         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59501
59502 2006-09-06  Jim Meyering  <jim@meyering.net>
59503
59504         Make generated files be read-only.
59505         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59506         Ensure that each generated file is now read-only.
59507         * modules/argz: Likewise.
59508         * modules/arpa_inet: Likewise.
59509         * modules/byteswap: Likewise.
59510         * modules/configmake: Likewise.
59511         * modules/fcntl: Likewise.
59512         * modules/fnmatch: Likewise.
59513         * modules/getopt: Likewise.
59514         * modules/glob: Likewise.
59515         * modules/inttypes: Likewise.
59516         * modules/netinet_in: Likewise.
59517         * modules/poll: Likewise.
59518         * modules/stdbool: Likewise.
59519         * modules/stdint: Likewise.
59520         * modules/sys_select: Likewise.
59521         * modules/sys_socket: Likewise.
59522         * modules/sys_stat: Likewise.
59523         * modules/sysexits: Likewise.
59524         * modules/localcharset: Same as above, but continue using temporary
59525         file named "t-$@" (why different?) rather than the "$@-t" used
59526         everywhere else.
59527
59528         * modules/sysexits (Makefile.am): Replace literal occurrences
59529         of "sysexit.h" more readable, and more consistent, "$@".
59530
59531 2006-09-06  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/striconv: New file.
59534         * modules/xstriconv: New file.
59535         * MODULES.html.sh (Internationalization functions): Add striconv,
59536         xstriconv.
59537
59538 2006-09-06  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59541         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59542         not using libtool correctly.
59543
59544 2006-09-06  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/striconv.h: New file.
59547         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59548         iconvstring.c.
59549         * lib/xstriconv.h: New file.
59550         * lib/xstriconv.c: New file.
59551
59552 2006-09-06  Bruno Haible  <bruno@clisp.org>
59553
59554         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59555         lib_..._LDFLAGS.
59556
59557 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59558
59559         * lib/argz_.h: Sync from Libtool.
59560
59561         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59562                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59563
59564         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59565
59566 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59567
59568         * modules/trim: New file.
59569
59570 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59571
59572         * lib/trim.h: New file.
59573         * lib/trim.c: New file.
59574
59575 2006-09-05  Bruno Haible  <bruno@clisp.org>
59576
59577         * MODULES.html.sh (String handling): Add trim.
59578
59579 2006-09-04  Karl Berry  <karl@gnu.org>
59580
59581         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59582         until next release.
59583
59584 2006-09-03  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59587         correctly.
59588
59589 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59590
59591         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59592         not gl_GETLOADAVG.  Omit unneeded semicolons.
59593         Problems reported by Ralf Wildenhues in
59594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59595         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59596         at the end, which is the usual gnulib style.
59597
59598         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59599         of doing all the work ourselves.
59600         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59601         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59602
59603 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59606         Problem reported by Ralf Wildenhues in
59607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59608
59609         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59610         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59611
59612 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59615         yesterday's patch by changing test -n to test -z.
59616
59617 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59618
59619         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59620         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59621         the former is now obsolescent.
59622
59623         * modules/chdir-long (Depends-on): Add fcntl.
59624
59625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59628         obsolescent, and programs should use gnulib instead.
59629         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59630         but with prefixes changed.
59631
59632 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59635         or stdbool.h, because they might not exist while configuring.
59636
59637         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59638         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59639         does that for us.
59640         (O_DIRECTORY): Remove.
59641
59642 2006-08-31  Eric Blake  <ebb9@byu.net>
59643
59644         * gnulib-tool: Don't let emacs change spaces to TAB.
59645
59646 2006-08-31  Bruno Haible  <bruno@clisp.org>
59647
59648         * gnulib-tool: When calling func_import more than once, do it in a
59649         subshell.
59650         Reported by Eric Blake <ebb9@byu.net>.
59651
59652 2006-08-31  Bruno Haible  <bruno@clisp.org>
59653
59654         * gnulib-tool (nl): Remove variable.
59655         (sed_transform_lib_file): Use more robust test for config-h module.
59656         (func_import): Fix typo in 2006-08-25 patch.
59657
59658 2006-08-31  Bruno Haible  <bruno@clisp.org>
59659
59660         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59661         specified, augment Makefile.am variables instead of assigning them.
59662
59663 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59664
59665         Work around a bug in both the Linux and SunOS 64-bit kernels:
59666         nanosleep mishandles sleeps for longer than 2**31 seconds.
59667         Problem reported by Frank v Waveren in
59668         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59670         Check for nanosleep bug.
59671         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59672
59673 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         Work around a bug in both the Linux and SunOS 64-bit kernels:
59676         nanosleep mishandles sleeps for longer than 2**31 seconds.
59677         Problem reported by Frank v Waveren in
59678         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59679         * lib/nanosleep.c (BILLION): New constant.
59680         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59681         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59682         implementation.
59683
59684 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59685
59686         * modules/nanosleep (Depends-on): Add gettime.
59687
59688 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59689         and Simon Josefsson  <jas@extundo.com>
59690         and Oskar Liljeblad  <oskar@osk.mine.nu>
59691
59692         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59693         * gnulib-tool (func_import): New license type 'unmodifiable license
59694         text'.
59695         * modules/fdl: Use it.  Longer description.
59696         * module/gpl, module/lgpl: New files.
59697
59698 2006-08-30  Jim Meyering  <jim@meyering.net>
59699
59700         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59701         shadowing the parameter.
59702
59703 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59704
59705         Sync from Libtool:
59706
59707         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59708
59709         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59710         sharing with gnulib.  Report by Eric Blake.
59711
59712 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59713
59714         * modules/isapipe: New file.
59715         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59716
59717 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         * modules/configmake (Makefile.am): Add a comment, and omit
59720         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59721         by Bruno Haible.
59722
59723 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * m4/isapipe.m4: New file.
59726
59727 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * lib/isapipe.c, lib/isapipe.h: New files.
59730
59731 2006-08-29  Jim Meyering  <jim@meyering.net>
59732
59733         * modules/configmake (Makefile.am): Make configmake.h depend on
59734         Makefile.  Otherwise, a stale configmake.h could hang around.
59735
59736 2006-08-29  Eric Blake  <ebb9@byu.net>
59737
59738         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59739         resolution of upstream bug 3044.
59740
59741 2006-08-29  Bruno Haible  <bruno@clisp.org>
59742
59743         * modules/localcharset (Depends-on): Add configmake.
59744         (Makefile.am): Remove setting of LIBDIR through DEFS.
59745
59746 2006-08-29  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59749         defined.
59750
59751 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * modules/fcntl: New file.
59754         * modules/chdir-safer (Depends-on): Add fcntl.
59755         * modules/fts: Likewise.
59756         * modules/mkdir-p: Likewise.
59757
59758         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59759         This undoes the most recent change, since we're now addressing the
59760         problem in a different way.
59761
59762         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59763         into output, since the output might be called Makefile.am even
59764         if $makefile_name is something different.
59765         (func_import): Use $makefile_am rather than
59766         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59767         empty.
59768
59769         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59770
59771 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59774         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59775         recent change to stdint.m4, since we're now addressing the problem in a
59776         different way.
59777
59778 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * m4/fcntl_h.m4: New file.
59781
59782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * lib/fcntl_.h: New file.
59785         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59786         the fcntl module.
59787         * lib/dirchownmod.c: Likewise.
59788         * lib/fts.c: Likewise.
59789
59790         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59791         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59792         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59793         just before including <inttypes.h>, to avoid circular inclusion.
59794
59795 2006-08-28  Jim Meyering  <jim@meyering.net>
59796
59797         * doc/visibility.texi: Actually read and correct the grammar of the
59798         sentence affected by yesterday's change.
59799
59800 2006-08-28  Eric Blake  <ebb9@byu.net>
59801
59802         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59803         needs wrapper.
59804
59805 2006-08-28  Eric Blake  <ebb9@byu.net>
59806
59807         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59808
59809 2006-08-28  Eric Blake  <ebb9@byu.net>
59810
59811         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59812
59813 2006-08-28  Bruno Haible  <bruno@clisp.org>
59814
59815         * modules/c-strstr: New file, from GNU gettext.
59816         * MODULES.html.sh (String handling): Add c-strstr.
59817
59818 2006-08-28  Bruno Haible  <bruno@clisp.org>
59819
59820         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59821         macros.
59822         Reported by Eric Blake.
59823
59824 2006-08-28  Bruno Haible  <bruno@clisp.org>
59825
59826         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59827         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59828         * lib/vasprintf.c: Include errno.h, limits.h.
59829         (EOVERFLOW): New fallback definition.
59830         (vasprintf): Test here whether the string length is > INT_MAX.
59831         * lib/vsnprintf.c: Include errno.h, limits.h.
59832         (EOVERFLOW): New fallback definition.
59833         (vsnprintf): Fix bug when generated string was too long for the buffer.
59834         Test here whether the string length is > INT_MAX.
59835
59836 2006-08-28  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/inttypes_.h (SCNX*): Remove definitions.
59839         Reported by Eric Blake.
59840
59841 2006-08-28  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/c-strstr.h: New file, from GNU gettext.
59844         * lib/c-strstr.c: New file, from GNU gettext.
59845
59846 2006-08-28  Bruno Haible  <bruno@clisp.org>
59847
59848         * gnulib-tool: Reorder some statements.
59849
59850 2006-08-28  Bruno Haible  <bruno@clisp.org>
59851
59852         * gnulib-tool: New option --makefile-name.
59853         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59854         $makefile_name.
59855         (func_import): Write $makefile_name to the cache file, and read it from
59856         there unless explicitly specified. Use $makefile_name as file name
59857         instead of Makefile.am. Adjust the recommendations accordingly.
59858
59859 2006-08-28  Bruno Haible  <bruno@clisp.org>
59860
59861         * gnulib-tool (func_verify_module): Check against misapplying patch.
59862
59863 2006-08-28  Bruno Haible  <bruno@clisp.org>
59864
59865         * gnulib-tool (func_relativize, func_relconcat): New functions.
59866         Give an error if --local-dir is given with --update.
59867         Remove trailing slashes from $local_gnulib_dir.
59868         (func_import): Store the relativized $local_gnulib_dir in
59869         gnulib-cache.m4, and read it from there if not specified explicitly.
59870
59871 2006-08-28  Bruno Haible  <bruno@clisp.org>
59872
59873         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59874         is the current directory. Respect also $local_gnulib_dir.
59875
59876 2006-08-28  Bruno Haible  <bruno@clisp.org>
59877             Simon Josefsson  <jas@extundo.com>
59878
59879         BeOS portability.
59880         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59881
59882 2006-08-27  Jim Meyering  <jim@meyering.net>
59883
59884         * doc/visibility.texi: Remove duplicate word: "pointer".
59885
59886 2006-08-26  Bruno Haible  <bruno@clisp.org>
59887
59888         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59889         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59890         (Makefile.am): Create inttypes.h from inttypes_.h.
59891         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59892
59893         * modules/imaxabs: New file.
59894
59895         * modules/imaxdiv: New file.
59896
59897 2006-08-26  Bruno Haible  <bruno@clisp.org>
59898
59899         * m4/inttypes.m4: New file.
59900         * m4/_inttypes_h.m4: Remove file.
59901         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59902         PRI_MACROS_BROKEN.
59903         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59904
59905         * m4/imaxabs.m4: New file.
59906
59907         * m4/imaxdiv.m4: New file.
59908
59909 2006-08-26  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/inttypes_.h: New file.
59912         * lib/inttypes.h: Remove file.
59913         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59914
59915         * lib/imaxabs.c: New file.
59916
59917         * lib/imaxdiv.c: New file.
59918
59919 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         New config-h module, so that "make" output needn't be cluttered
59922         by -DHAVE_CONFIG_H.
59923         * MODULES.html.sh (Support for building libraries and executables):
59924         Add config-h.
59925         * modules/config-h: New file.
59926         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59927         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59928         the config-h module is used.
59929
59930         New configmake module, so that "make" output needn't be cluttered
59931         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59932         * MODULES.html.sh (Support for building libraries and executables):
59933         Add configmake.
59934         * modules/configmake: New file.
59935
59936 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         * m4/config-h.m4: New file.
59939
59940 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         * config/srclist.txt: Add elisp-comp.
59943
59944 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * MODULES.html.sh (Support for building libraries and executables):
59947         Add elisp-comp.
59948         * build-aux/elisp-comp: New file.
59949         * modules/elisp-comp: New file.
59950
59951 2006-08-24  Bruno Haible  <bruno@clisp.org>
59952
59953         * gnulib-tool (func_create_testdir): Use non-default values of
59954         sourcebase and m4base.
59955
59956 2006-08-24  Bruno Haible  <bruno@clisp.org>
59957
59958         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59959         HTML structure.
59960
59961 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         * modules/openat (Depends-on): Add lchown.
59964
59965 2006-08-23  Bruno Haible  <bruno@clisp.org>
59966
59967         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59968         of gl_LOCK_EARLY instead of gl_LOCK.
59969
59970 2006-08-23  Bruno Haible  <bruno@clisp.org>
59971
59972         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59973         on OSF/1 to no.
59974         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59975
59976 2006-08-23  Bruno Haible  <bruno@clisp.org>
59977
59978         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59979         as unusable.
59980
59981         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59982         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59983         (gl_LOCK): New macro.
59984
59985 2006-08-22  Simon Josefsson  <jas@extundo.com>
59986
59987         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59988         to md5 module.
59989
59990 2006-08-22  Simon Josefsson  <jas@extundo.com>
59991
59992         * MODULES.html.sh: Add "Support for maintaining and release
59993         projects".
59994
59995         * build-aux/gnupload: New file, from coreutils.
59996
59997 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59998
59999         Avoid the need for AC_LIBSOURCES in m4 macros.
60000         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60001         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60002         * modules/check-version (EXTRA_DIST): Add check-version.h.
60003         * modules/crc (EXTRA_DIST): Add crc.h.
60004         * modules/des (EXTRA_DIST): Add des.h.
60005         * modules/gc (EXTRA_DIST): Add gc.h.
60006         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60007         * modules/getline (EXTRA_DIST): Add getline.h.
60008         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60009         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60010         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60011         * modules/md2 (EXTRA_DIST): Add md2.h.
60012         * modules/md4 (EXTRA_DIST): Add md4.h.
60013         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60014         * modules/read-file (EXTRA_DIST): Add read-file.h.
60015         * modules/readline (EXTRA_DIST): Add readline.h.
60016         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60017         rijndael-api-fst.h.
60018
60019 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * m4/rijndael.m4 (gl_ARCFOUR):
60022         * m4/arctwo.m4 (gl_ARCTWO):
60023         * m4/check-version.m4 (gl_CHECK_VERSION):
60024         * m4/crc.m4 (gl_CRC):
60025         * m4/des.m4 (gl_DES):
60026         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60027         * m4/gc.m4 (gl_GC):
60028         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60029         * m4/getline.m4 (gl_FUNC_GETLINE):
60030         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60031         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60032         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60033         * m4/md2.m4 (gl_MD2):
60034         * m4/md4.m4 (gl_MD4):
60035         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60036         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60037         * m4/readline.m4 (gl_FUNC_READLINE):
60038         * m4/rijndael.m4 (gl_RIJNDAEL):
60039         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60040         to get the necessary .h files and whatnot.
60041
60042 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60045         gnulib rather than the other way around.
60046         * config/srclistvars.sh (COREUTILS): Remove.
60047
60048 2006-08-22  Jim Meyering  <jim@meyering.net>
60049
60050         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60051
60052         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60053
60054 2006-08-22  Eric Blake  <ebb9@byu.net>
60055
60056         * modules/regexprops-generic: New file.
60057         * MODULES.html.sh (Support for building documentation): List it.
60058
60059 2006-08-22  Eric Blake  <ebb9@byu.net>
60060
60061         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60062         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60063         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60064         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60065
60066 2006-08-22  Bruno Haible  <bruno@clisp.org>
60067
60068         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60069         and lib_LTLIBRARIES like the other lib_* variables.
60070
60071 2006-08-22  Bruno Haible  <bruno@clisp.org>
60072
60073         * build-aux/x-to-1.in: New file, from GNU gettext.
60074
60075 2006-08-22  Bruno Haible  <bruno@clisp.org>
60076
60077         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60078         <utmpx.h> exists.
60079
60080 2006-08-22  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60083         <utmpx.h> exists.
60084
60085 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60086
60087         BeOS portability.
60088         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60089         exist.
60090         Problem reported by Bruno Haible.
60091
60092 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         Avoid the need for AC_LIBSOURCES in m4 macros.
60095         * modules/acl (EXTRA_DIST): Add acl.h.
60096         * modules/argmatch (Files): Add m4/argmatch.m4.
60097         (configure.ac): Add gl_ARGMATCH.
60098         (EXTRA_DIST): Renamed from lib_SOURCES, for
60099         consistency with the other modules.  Remove argmatch.c.
60100         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60101         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60102         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60103         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60104         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60105         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60106         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60107         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60108         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60109         * modules/closeout (EXTRA_DIST): Add closeout.h.
60110         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60111         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60112         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60113         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60114         dirname.h; remove basename.c and stripslash.c.
60115         * modules/exclude (EXTRA_DIST): Add exclude.h.
60116         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60117         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60118         * modules/file-type (EXTRA_DIST): Add file-type.h.
60119         * modules/filemode (EXTRA_DIST): Add filemode.h.
60120         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60121         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60122         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60123         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60124         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60125         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60126         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60127         * modules/getdate (EXTRA_DIST): Add getdate.c.
60128         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60129         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60130         * modules/getpass (EXTRA_DIST): Add getpass.h.
60131         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60132         * modules/group-member (EXTRA_DIST): Add group-member.h.
60133         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60134         * modules/hash (EXTRA_DIST): Add hash.h.
60135         * modules/human (EXTRA_DIST): Add human.h.
60136         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60137         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60138         * modules/lchown (EXTRA_DIST): Add lchown.h.
60139         * modules/long-options (EXTRA_DIST): Add long-options.h.
60140         * modules/lstat (EXTRA_DIST): Add lstat.h.
60141         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60142         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60143         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60144         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60145         * modules/memxor (EXTRA_DIST): Add memxor.h.
60146         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60147         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60148         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60149         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60150         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60151         * modules/physmem (EXTRA_DIST): Add physmem.h.
60152         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60153         * modules/posixver (EXTRA_DIST): Add posixver.h.
60154         * modules/quote (EXTRA_DIST): Add quote.h.
60155         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60156         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60157         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60158         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60159         regex_internal.h regexec.c.
60160         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60161         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60162         * modules/same (EXTRA_DIST): Add same.h.
60163         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60164         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60165         * modules/savedir (EXTRA_DIST): Add savedir.h.
60166         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60167         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60168         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60169         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60170         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60171         * modules/strdup (EXTRA_DIST): Add strdup.h.
60172         * modules/strftime (EXTRA_DIST): Add strftime.h.
60173         * modules/strndup (EXTRA_DIST): Add strndup.h.
60174         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60175         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60176         * modules/time_r (EXTRA_DIST): Add time_r.h.
60177         * modules/timespec (EXTRA_DIST): Add timespec.h.
60178         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60179         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60180         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60181         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60182         * modules/userspec (EXTRA_DIST): Add userspec.h.
60183         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60184         * modules/utimens (EXTRA_DIST): Add utimens.h.
60185         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60186         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60187         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60188         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60189         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60190         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60191         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60192         * modules/yesno (EXTRA_DIST): Add yesno.h.
60193
60194 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60197
60198         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60199         * m4/dev-ino.m4, same-inode.m4: Remove.
60200
60201         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60202         * m4/acl.m4 (AC_FUNC_ACL):
60203         * m4/backupfile.m4 (gl_BACKUPFILE):
60204         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60205         * m4/canon-host.m4 (gl_CANON_HOST):
60206         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60208         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60209         * m4/cloexec.m4 (gl_CLOEXEC):
60210         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60211         * m4/closeout.m4 (gl_CLOSEOUT):
60212         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60213         * m4/dirname.m4 (gl_DIRNAME):
60214         * m4/exclude.m4 (gl_EXCLUDE):
60215         * m4/exitfail.m4 (gl_EXITFAIL):
60216         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60217         * m4/file-type.m4 (gl_FILE_TYPE):
60218         * m4/filemode.m4 (gl_FILEMODE):
60219         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60220         * m4/fpending.m4 (gl_FUNC_FPENDING):
60221         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60222         * m4/fts.m4 (gl_FUNC_FTS):
60223         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60224         * m4/getdate.m4 (gl_GETDATE):
60225         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60226         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60227         * m4/getpass.m4 (gl_FUNC_GETPASS):
60228         * m4/gettime.m4 (gl_GETTIME):
60229         * m4/getugroups.m4 (gl_GETUGROUPS):
60230         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60231         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60232         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60233         * m4/hash.m4 (gl_HASH):
60234         * m4/idcache.m4 (gl_IDCACHE):
60235         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60236         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60237         * m4/long-options.m4 (gl_LONG_OPTIONS):
60238         * m4/lstat.m4 (gl_FUNC_LSTAT):
60239         * m4/md5.m4 (gl_MD5):
60240         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60241         * m4/memcoll.m4 (gl_MEMCOLL):
60242         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60243         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60244         * m4/memxor.m4 (gl_MEMXOR):
60245         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60246         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60247         * m4/modechange.m4 (gl_MODECHANGE):
60248         * m4/mountlist.m4 (gl_MOUNTLIST):
60249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60250         * m4/openat.m4 (gl_FUNC_OPENAT):
60251         * m4/pathmax.m4 (gl_PATHMAX):
60252         * m4/physmem.m4 (gl_PHYSMEM):
60253         * m4/posixtm.m4 (gl_POSIXTM):
60254         * m4/posixver.m4 (gl_POSIXVER):
60255         * m4/quote.m4 (gl_QUOTE):
60256         * m4/quotearg.m4 (gl_QUOTEARG):
60257         * m4/readtokens.m4 (gl_READTOKENS):
60258         * m4/readutmp.m4 (gl_READUTMP):
60259         * m4/regex.m4 (gl_REGEX):
60260         * m4/safe-read.m4 (gl_SAFE_READ):
60261         * m4/safe-write.m4 (gl_SAFE_WRITE):
60262         * m4/same.m4 (gl_SAME):
60263         * m4/save-cwd.m4 (gl_SAVE_CWD):
60264         * m4/savedir.m4 (gl_SAVEDIR):
60265         * m4/settime.m4 (gl_SETTIME):
60266         * m4/sha1.m4 (gl_SHA1):
60267         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60268         * m4/stat-macros.m4 (gl_STAT_MACROS):
60269         * m4/stat-time.m4 (gl_STAT_TIME):
60270         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60271         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60272         * m4/strdup.m4 (gl_FUNC_STRDUP):
60273         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60274         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60275         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60276         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60277         * m4/time_r.m4 (gl_TIME_R):
60278         * m4/timespec.m4 (gl_TIMESPEC):
60279         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60280         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60281         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60282         * m4/userspec.m4 (gl_USERSPEC):
60283         * m4/utimecmp.m4 (gl_UTIMECMP):
60284         * m4/utimens.m4 (gl_UTIMENS):
60285         * m4/xalloc.m4 (gl_XALLOC):
60286         * m4/xgetcwd.m4 (gl_XGETCWD):
60287         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60288         * m4/xreadlink.m4 (gl_XREADLINK):
60289         * m4/xstrtod.m4 (gl_XSTRTOD):
60290         * m4/yesno.m4 (gl_YESNO):
60291         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60292         to get the necessary .h files and whatnot.
60293
60294 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60295             Bruno Haible  <bruno@clisp.org>
60296
60297         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60298         /bin/sh understanding of '!' conditional negation.
60299
60300 2006-08-21  Jim Meyering  <jim@meyering.net>
60301
60302         * modules/openat (Depends-on): Really alphabetize.
60303
60304         * modules/acl (Depends-on): Add error and quote.
60305
60306         * check-module (find_included_lib_files): Add at-func.c to the
60307         ok-to-include-more-than-once white list.
60308
60309         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60310
60311 2006-08-21  Bruno Haible  <bruno@clisp.org>
60312
60313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60314         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60315         Reported by Martin Lambers <marlam@marlam.de>.
60316
60317 2006-08-21  Bruno Haible  <bruno@clisp.org>
60318
60319         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60320         specify an installation location, don't emit a noinst_LIBRARIES or
60321         noinst_LTLIBRARIES assignment.
60322
60323 2006-08-21  Bruno Haible  <bruno@clisp.org>
60324
60325         BeOS portability.
60326         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60327         BeOS has mbrtowc() but no <wctype.h>.
60328
60329 2006-08-21  Bruno Haible  <bruno@clisp.org>
60330
60331         BeOS portability.
60332         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60333         exist.
60334
60335 2006-08-21  Bruno Haible  <bruno@clisp.org>
60336
60337         BeOS portability.
60338         * lib/mbchar.h: Include <wctype.h> only if it exists.
60339
60340 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         Remove files that are no longer needed by their respective modules.
60343         * m4/obstack.m4: Remove.
60344         * m4/strerror_r.m4: Remove.
60345         * m4/uint32_t.m4: Remove.
60346         * m4/uintptr_t.m4: Remove.
60347         * m4/ullong_max.m4: Remove.
60348         * m4/xstrtoimax.m4: Remove.
60349         * m4/xstrtoumax.m4: Remove.
60350
60351         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60352         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60353         dependencies now capture this.
60354
60355         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60356         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60357         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60358         * m4/human.m4 (gl_HUMAN): Likewise.
60359         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60360         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60361
60362         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60363
60364         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60365         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60366         stdint.
60367         * m4/human.m4 (gl_HUMAN): Likewise.
60368         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60369         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60370         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60371         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60372         * m4/xstrtol (gl_XSTRTOL): Likewise.
60373
60374         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60375         AC_TYPE_LONG_LONG_INT.
60376         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60377         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60378         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60380
60381         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60382         on stdbool.
60383
60384         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60385         (gl_PREREQ_XSTRTOUL): Remove.
60386
60387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60388
60389         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60390         mode.
60391
60392 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         Add and change modules to make it easier for coreutils to use
60395         gnulib-tool.
60396         * modules/backupfile (Files): Remove m4/d-ino.m4.
60397         (Depends-on): Add d-ino.
60398         * modules/cycle-check (Depends-on): Add stdint.
60399         (lib_SOURCES): Add cycle-check.h.
60400         * modules/d-ino: New module.
60401         * modules/d-type: New module.
60402         * modules/error (Files): Remove m4/strerror_r.m4.
60403         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60404         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60405         m4/inttypes_h.m4, m4/uintmax_t.m4.
60406         (Depends-on): Add stdint.
60407         (lib_SOURCES): Add fsusage.h.
60408         * modules/getcwd (Files): Remove d-ino.m4.
60409         (Depends-on): Add d-ino.
60410         * modules/getndelim2 (Depends-on): Add stdint.
60411         * modules/glob (Files): Remove m4/d-type.m4.
60412         (Depends-on): Add d-type.
60413         * modules/host-os: New module.
60414         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60415         m4/inttypes_h.m4, m4/uintmax_t.m4.
60416         * Depends-on: Add stdint.
60417         (lib_SOURCES): Add human.h.
60418         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60419         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60420         m4/uintmax_t.m4, m4/ulonglong.m4.
60421         (Depends-on): Add stdint.
60422         (EXTRA_DIST): Add inttostr.h.
60423         * modules/lchmod: New module.
60424         * modules/link-follow: New module.
60425         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60426         (Depends-on): Add lchmod.
60427         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60428         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60429         (Depends-on): Add stdint.
60430         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60431         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60432         (Depends-on): Add stdint.
60433         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60434         * modules/perl: New module.
60435         * modules/regex (Depends-on): Add stdint.
60436         * modules/rmdir-errno: New module.
60437         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60438         m4/intmax_t.m4.
60439         (Depends-on): Add stdint.
60440         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60441         m4/uintmax_t.m4.
60442         (Depends-on): Add stdint.
60443         * modules/unlink-busy: New module.
60444         * modules/utimecmp (Depends-on): Add stdint.
60445         * modules/uptime: New module.
60446         * modules/winsz-ioctl: New module.
60447         * modules/winsz-termios: New module.
60448         * modules/xnanosleep (Depends-on): Add nanosleep.
60449         * modules/ullong_max: Remove.
60450         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60451         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60452         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60453         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60454         (Depends-on): Add inttypes.
60455         (lib_SOURCES): Add xstrtol.h.
60456         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60457         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60458         * MODULES.html.sh: Move 'assert' into the assert section.
60459         Move 'dummy' into the linking section.
60460         Remove ullong_max.
60461         Add section for compatibility checks for POSIX:2001 functions,
60462         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60463         winsz-ioctl, and winsz-termios into it.
60464         Add lchmod.
60465         Add top-level Misc section and put host-os, perl, and uptime
60466         into it.
60467
60468 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60469
60470         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60471         now assume the stdint module.  Do not include inttypes.h.
60472         * lib/fsusage.h: Likewise.
60473         * lib/getndelim2.c: Likewise.
60474         * lib/human.h: Likewise.
60475         * lib/inttostr.h: Likewise.
60476         * lib/obstack.c: Likewise.
60477         * lib/regex_internal.h: Likewise.
60478         * lib/tempname.c: Likewise.
60479         * lib/utimecmp.c: Likewise.
60480         * lib/xstrtol.h: Likewise.
60481
60482         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60483
60484         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60485         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60486         * lib/xtime.h: Likewise.
60487
60488 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * modules/openat (Files): Add lib/fchmodat.c.
60491         Fixes problem reported by Jay Youngman.
60492
60493 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60496         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60497
60498 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60499             Bruno Haible  <bruno@clisp.org>
60500
60501         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60502         and is a script that invokes bison. Tighten the code. Add comments.
60503
60504 2006-08-18  Jim Meyering  <jim@meyering.net>
60505
60506         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60507         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60508         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60509         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60510
60511 2006-08-18  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/bison-i18n: New file.
60514         * MODULES.html.sh (Internationalization functions): Add it.
60515
60516 2006-08-18  Bruno Haible  <bruno@clisp.org>
60517
60518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60519         sys/statvfs.h. When getmntinfo was found, check its declaration and
60520         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60521
60522 2006-08-18  Bruno Haible  <bruno@clisp.org>
60523
60524         * m4/bison-i18n.m4: New file, from bison.
60525
60526 2006-08-18  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60529         (ME_DUMMY): Treat "kernfs" as a dummy.
60530         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60531
60532 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         Update from coreutils.
60535
60536         2006-08-15  Jim Meyering  <jim@meyering.net>
60537
60538         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60539
60540         2006-01-17  Jim Meyering  <jim@meyering.net>
60541
60542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60543
60544         2006-01-11  Jim Meyering  <jim@meyering.net>
60545
60546         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60547         Check for the lchmod function.
60548
60549 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60550
60551         Update from coreutils.
60552
60553         * lib/__fpending.h: Add copyright notice.
60554         * lib/fprintftime.h: Likewise.
60555         * lib/savedir.c: Use (C) in copyright notice.
60556         * lib/savedir.h: Likewise.
60557
60558         2006-08-15  Jim Meyering  <jim@meyering.net>
60559
60560         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60561         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60562         in support of the EXPECTED_ERRNO macro.
60563         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60564         definitions.  Instead, define the appropriate symbols and include
60565         "at-func.c".
60566         * lib/mkdirat.c (mkdirat): Likewise.
60567         * lib/fchmodat.c (fchmodat): Likewise.
60568         (ENOSYS): Remove definition.
60569         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60570         it.  Don't include "unistd--.h" -- it wasn't ever used.
60571
60572         2006-01-17  Jim Meyering  <jim@meyering.net>
60573
60574         Rewrite fts.c not to change the current working directory,
60575         by using openat, fstatat, fdopendir, etc..
60576
60577         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60578         (HAVE_OPENAT_SUPPORT): Define.
60579         [_LIBC] (fchdir): Don't undef or define; no longer used.
60580         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60581         Now, this `function' always succeeds, and consumes its file descriptor
60582         parameter -- so callers must not close such FDs.  Update callers.
60583         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60584         (diropen): Add parameter, SP.  Adjust all callers.
60585         Implement using diropen_fd, rather than open.
60586         (fts_open): Initialize new member, fts_cwd_fd.
60587         Remove fts_rft-setting code.
60588         (fts_close): Close fts_cwd_fd, if necessary.
60589         (__opendir2): Define in terms of opendir or opendirat,
60590         depending on whether the FST_NOCHDIR flag is set.
60591         (fts_build): Since fts_safe_changedir consumes its FD, and since
60592         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60593         and close the dup'd file descriptor upon failure.
60594         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60595         (fts_safe_changedir): Tweak semantics to reflect that this function
60596         now calls cwd_advance_fd and hence consumes its FD argument.
60597         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60598         [struct FTS] (fts_rft): Remove now-unused member.
60599         [struct FTS] (fts_cycle.state): Improve comment.
60600
60601         * lib/openat.c (openat_needs_fchdir): New function.
60602         * lib/openat.h (openat_needs_fchdir): Declare it.
60603
60604 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60607         Problem and fix reported by Pádraig Brady in
60608         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60609
60610 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60613
60614 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * lib/memcoll.c (memcoll): Optimize for the common case where the
60617         arguments are bytewise equal.
60618
60619 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         * doc/regexprops-generic.texi: Add a copyright notice.
60622
60623 2006-08-15  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/tmpdir (License): Change to LGPL.
60626
60627 2006-08-15  Bruno Haible  <bruno@clisp.org>
60628
60629         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60630         module.
60631
60632 2006-08-14  Simon Josefsson  <jas@extundo.com>
60633
60634         * config/srclist.txt: Add gnupload.
60635
60636 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         Change copyright notice from LGPL 2 to GPL 2, since that's the
60639         standard form used in the gnulib repository.
60640         * tests/test-lock.c: Likewise.
60641         * tests/test-stdint.c: Likewise.
60642         * tests/test-tls.c: Likewise.
60643
60644         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60645         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60646         Add copyright notice.
60647
60648         * check-module: Add copyright notice.  Output a copyright
60649         notice if "--version" is specified.
60650         * modules/COPYING: New file.
60651         * tests/test-getaddrinfo.c: Add copyright notice.
60652         * tests/test-verify.c: Likewise.
60653
60654 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         Change copyright notice from LGPL 2 to GPL 2, since that's the
60657         standard form used in the gnulib repository.
60658         * lib/lock.c: LGPL -> GPL.
60659         * lib/lock.h: Likewise.
60660         * lib/strnlen1.c: Likewise.
60661         * lib/strnlen1.h: Likewise.
60662         * lib/tls.c: Likewise.
60663         * lib/tls.h: Likewise.
60664         * lib/tmpdir.c: Likewise.
60665
60666         * lib/TODO: Remove; this belongs only in coreutils.
60667
60668 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         Add copyright notices to long-enough files that lack them, since
60671         otherwise the files aren't clearly free.  Use the same notice that
60672         getdate.texi already uses.
60673         * doc/alloca-opt.texi: Add copyright notice.
60674         * doc/alloca.texi: Likewise.
60675         * doc/ctime.texi: Likewise.
60676         * doc/functions.texi: Likewise.
60677         * doc/gcd.texi: Likewise.
60678         * doc/gnulib-tool.texi: Likewise.
60679         * doc/inet_ntoa.texi: Likewise.
60680         * doc/visibility.texi: Likewise.
60681
60682         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60683         * doc/quote.texi: Add copyright notice.
60684
60685         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60686         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60687         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60688         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60689         is now obsolete, and give a pointer to the Sun list.
60690         Add copyright notice.
60691
60692 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         * config/srclistvars.sh: Add copyright notice.
60695
60696 2006-08-14  Eric Blake  <ebb9@byu.net>
60697
60698         Import the following change from libc:
60699
60700         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60701
60702         Upstream bug 2997.
60703         * lib/misc/error.c: Add space between program name and message if file
60704         name is missing.
60705
60706 2006-08-12  Karl Berry  <karl@gnu.org>
60707
60708         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60709         remove, these originate in gnulib now.
60710
60711 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60712
60713         * doc/Makefile (standards.info standards.html standards.dvi):
60714         Also depend on make-stds.texi.
60715
60716 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60719         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60720
60721         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60722         in wchar_t.  Problem reported by Eric Blake.
60723
60724         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60725         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60726         Also, help the compiler to keep LEN in a register.
60727
60728 2006-08-11  Eric Blake  <ebb9@byu.net>
60729
60730         * users.txt: Sort.  Add tar.
60731
60732 2006-08-11  Bruno Haible  <bruno@clisp.org>
60733
60734         * users.txt: New file.
60735
60736 2006-08-11  Bruno Haible  <bruno@clisp.org>
60737
60738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60739         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60740
60741 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         * modules/snprintf (Depends-on): Remove minmax.
60744         (Maintainer): Add self and Bruno.
60745
60746 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60749         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60750         (EOVERFLOW): Define if the system does not.
60751         Do not include "minmax.h"; it wasn't used.
60752         (snprintf): Don't assume size_t promotes to an unsigned type.
60753         Fix bug when generated string was too long for the buffer: the
60754         buffer's contents are supposed to be the initial prefix of the
60755         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60756         exceeds INT_MAX; do the check ourselves.
60757
60758         Import the following changes from libc:
60759
60760         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60761
60762         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60763         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60764         set wc to the byte which couldn't be converted.
60765         (re_string_reconstruct): Don't clear valid_raw_len before calling
60766         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60767         tip_context using re_string_context_at.
60768
60769         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60770
60771         * lib/posix/regex.h: g++ still cannot handled [restrict].
60772
60773         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60774
60775         * lib/posix/regex.h: Remove special handling for VMS.
60776
60777 2006-08-10  Jim Meyering  <jim@meyering.net>
60778
60779         * modules/same-inode: New module.
60780         * modules/dev-ino: New module.
60781         * modules/cycle-check: Depend on these modules, rather than simply
60782         including their .h files.
60783         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60784         required via m4/cycle-check.m4.
60785         * modules/same: Depend on new same-inode module, rather than
60786         including same-inode.h.
60787         * modules/chdir-safer: New file.
60788
60789         * modules/chown (Depends-on): Add stat-macros.
60790
60791 2006-08-10  Jim Meyering  <jim@meyering.net>
60792
60793         * m4/cycle-check.m4: New file.
60794         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60795         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60796
60797 2006-08-10  Eric Blake  <ebb9@byu.net>
60798
60799         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60800         in from original proposal.
60801
60802 2006-08-10  Eric Blake  <ebb9@byu.net>
60803         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60804
60805         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60806         namespace.
60807
60808 2006-08-10  Bruno Haible  <bruno@clisp.org>
60809
60810         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60811         as well.
60812
60813 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60814
60815         Sync from coreutils.
60816
60817         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60818
60819         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60820         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60821
60822 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         * modules/restrict: Remove; no longer needed now that we assume
60825         Autoconf 2.59 or later.
60826         * MODULES.html.sh: Remove 'restrict'.
60827         * modules/argp (Depends-on): Remove 'restrict'.
60828         * modules/base64 (Depends-on): Likewise.
60829         * modules/gc (Depends-on): Likewise.
60830         * modules/getaddrinfo (Depends-on): Likewise.
60831         * modules/glob (Depends-on): Likewise.
60832         * modules/inet_ntop (Depends-on): Likewise.
60833         * modules/inet_pton (Depends-on): Likewise.
60834         * modules/memxor (Depends-on): Likewise.
60835         * modules/regex (Depends-on): Likewise.
60836         * modules/strtok_r (Depends-on): Likewise.
60837         * modules/time_r (Depends-on): Likewise.
60838
60839 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60840
60841         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60842         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60843         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60844         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60845         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60846         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60847         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60848         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60849
60850         Merge from coreutils.
60851         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60852         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60853         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60854         * m4/time_r.m4 (gl_TIME_R): Likewise.
60855
60856 2006-08-09  Karl Berry  <karl@gnu.org>
60857
60858         * config/srclist.txt: no more gettext-tools, per Bruno.
60859
60860 2006-08-08  Eric Blake  <ebb9@byu.net>
60861
60862         * modules/verror: New module.
60863         * MODULES.html.sh: Document it.
60864
60865 2006-08-08  Eric Blake  <ebb9@byu.net>
60866
60867         * lib/verror.h, lib/verror.c: New files.
60868
60869 2006-08-08  Eric Blake  <ebb9@byu.net>
60870
60871         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60872         verror_at_line output complies with GNU Coding Standards even when
60873         file is NULL.
60874
60875 2006-08-07  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60878         versions of AIX.
60879         Reported by Ralf Wildenhues.
60880
60881 2006-08-07  Bruno Haible  <bruno@clisp.org>
60882
60883         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60884         in an AC_DEFUN. Needed so that the autoconf snippets can use
60885         AC_REQUIRE.
60886
60887 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60888
60889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60890         Initialize pkgdata_DATA.
60891         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60892         overriding it.
60893
60894 2006-08-06  Eric Blake  <ebb9@byu.net>
60895
60896         * lib/error.h: Fold in some upstream changes from glibc.
60897         * lib/error.c: Likewise.
60898
60899 2006-08-04  Bruno Haible  <bruno@clisp.org>
60900
60901         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60902         Make the mostlyclean-local rule depend on mostlyclean-generic.
60903         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60904
60905 2006-07-31  Bruno Haible  <bruno@clisp.org>
60906
60907         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60908         <stdlib.h>, <string.h>.
60909
60910 2006-07-30  Bruno Haible  <bruno@clisp.org>
60911
60912         * modules/readlink (License): Change to LGPL.
60913
60914 2006-07-30  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60917         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60918         set PKGDATADIR to point to it.
60919
60920 2006-07-30  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/csharpexec (configure.ac): Comment out macro invocation.
60923         * modules/javaexec (configure.ac): Likewise.
60924         * modules/javacomp-script (configure.ac): Likewise.
60925
60926         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60927
60928 2006-07-30  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60931         linked-list.
60932
60933 2006-07-30  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60936
60937 2006-07-30  Bruno Haible  <bruno@clisp.org>
60938
60939         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60940         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60941         get removed.
60942
60943 2006-07-29  Bruno Haible  <bruno@clisp.org>
60944
60945         Make it possible for gnulib-tool to work with locally modified or
60946         augmented gnulib repositories.
60947         * gnulib-tool (func_usage): Document --local-dir option.
60948         (local_gnulib_dir): New variable.
60949         Handle --local-dir option.
60950         (func_lookup_file): New function.
60951         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60952         (func_get_description, func_get_filelist, func_get_description,
60953         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60954         func_get_automake_snippet, func_get_include_directive,
60955         func_get_license, func_get_maintainer): Use func_lookup_file.
60956         (func_import, func_create_testdir): Use func_lookup_file.
60957
60958 2006-07-29  Bruno Haible  <bruno@clisp.org>
60959
60960         * modules/setenv (Depends-on): Add unistd.
60961
60962 2006-07-29  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60965
60966 2006-07-29  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60969
60970 2006-07-29  Bruno Haible  <bruno@clisp.org>
60971
60972         * gnulib-tool (import, update): If there is no Makefile.am, look at
60973         aclocal.m4, instead of bailing out.
60974
60975 2006-07-29  Bruno Haible  <bruno@clisp.org>
60976
60977         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60978         Categorize the options by when they are useful.
60979
60980 2006-07-29  Bruno Haible  <bruno@clisp.org>
60981
60982         * gnulib-tool (func_usage): Document option --no-libtool.
60983         Handle option --no-libtool.
60984         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60985         for changed semantics of $libtool variable.
60986         (func_import): Likewise. If libtool is not used, show this through
60987         an option --no-libtool.
60988         (func_create_testdir): Update.
60989
60990 2006-07-29  Bruno Haible  <bruno@clisp.org>
60991
60992         * gnulib-tool (func_import): Extend error message about missing
60993         --doc-base.
60994
60995 2006-07-29  Bruno Haible  <bruno@clisp.org>
60996
60997         * gnulib-tool (func_import): Don't create the $docbase directory if
60998         there is no file to store there.
60999
61000 2006-07-29  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61003         relevant, look for configure.ac there, not in the current directory.
61004         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61005
61006 2006-07-29  Bruno Haible  <bruno@clisp.org>
61007
61008         * gnulib-tool (SORT): New variable.
61009         (func_usage): Undocument --assume-autoconf option.
61010         Remove --assume-autoconf option handling.
61011         (autoconf_minversion): Determine from the contents of configure.ac.
61012         (func_import): Remove autoconf_minversion handling.
61013         Suggested by Eric Blake.
61014
61015 2006-07-29  Bruno Haible  <bruno@clisp.org>
61016
61017         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61018
61019 2006-07-29  Bruno Haible  <bruno@clisp.org>
61020
61021         * config/srclist.txt (*setenv.[ch]): Remove rules.
61022
61023 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61024
61025         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61026
61027 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61028
61029         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61030         arpa/inet.h.
61031
61032 2006-07-28  Simon Josefsson  <jas@extundo.com>
61033
61034         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61035         * modules/inet_pton (Depends-on): Likewise.
61036
61037 2006-07-28  Simon Josefsson  <jas@extundo.com>
61038
61039         * m4/netinet_in_h.m4: New file.
61040
61041 2006-07-28  Simon Josefsson  <jas@extundo.com>
61042
61043         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61044         #include's.
61045
61046 2006-07-28  Simon Josefsson  <jas@extundo.com>
61047
61048         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61049         #include's.
61050
61051 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61054         setgid on directories only if they set these bits.
61055         * lib/modechange.h: Remove obsolete comment about masks.
61056
61057 2006-07-28  Eric Blake  <ebb9@byu.net>
61058
61059         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61060         macro expansion.
61061
61062 2006-07-28  Bruno Haible  <bruno@clisp.org>
61063
61064         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61065
61066 2006-07-28  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61069
61070 2006-07-28  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61073         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61074         Define fallbacks.
61075         Avoids link error on FreeBSD 4.x.
61076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61077
61078         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61079         encoding.
61080         * lib/mbswidth.c (iswcntrl): Likewise.
61081
61082 2006-07-27  Bruno Haible  <bruno@clisp.org>
61083
61084         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61085         test.
61086
61087 2006-07-27  Bruno Haible  <bruno@clisp.org>
61088
61089         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61090         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61091         defined.
61092
61093 2006-07-26  Eric Blake  <ebb9@byu.net>
61094
61095         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61096
61097 2006-07-26  Eric Blake  <ebb9@byu.net>
61098
61099         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61100         like mingw that lack mkstemp.
61101         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61102         avoid compilation warning on mingw.
61103
61104 2006-07-26  Bruno Haible  <bruno@clisp.org>
61105
61106         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61107         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61108         INT_FAST*_MIN, INTPTR_MIN.
61109
61110 2006-07-25  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/version-etc (Depends-on): Add stdarg.
61113
61114 2006-07-25  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61117         complex commands.
61118
61119 2006-07-25  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61122         defined in <stdarg.h> or config.h.
61123
61124 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61125
61126         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61127         (gl_STDIO_SAFER): Remove.
61128
61129 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61130
61131         * MODULES.html.sh (File stream based Input/Output):
61132         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61133         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61134         * modules/fopen-safer, modules/tmpfile-safer: New files.
61135         * modules/stdio-safer: Remove.
61136
61137 2006-07-24  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/tmpdir: New file.
61140         * MODULES.html.sh (File system functions): Add it.
61141
61142 2006-07-24  Bruno Haible  <bruno@clisp.org>
61143
61144         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61145         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61146
61147 2006-07-24  Bruno Haible  <bruno@clisp.org>
61148
61149         * modules/clean-temp: New file.
61150
61151 2006-07-24  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/tmpdir.m4: New file, from GNU gettext.
61154
61155 2006-07-24  Bruno Haible  <bruno@clisp.org>
61156
61157         * lib/tmpdir.h: New file, from GNU gettext.
61158         * lib/tmpdir.c: New file, from GNU gettext.
61159
61160 2006-07-24  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/clean-temp.h: New file, from GNU gettext.
61163         * lib/clean-temp.c: New file, from GNU gettext.
61164
61165 2006-07-23  Eric Blake  <ebb9@byu.net>
61166
61167         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61168         (Depends-on): Add binary-io.
61169
61170 2006-07-23  Eric Blake  <ebb9@byu.net>
61171
61172         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61173
61174 2006-07-23  Eric Blake  <ebb9@byu.net>
61175
61176         * lib/tmpfile-safer.c: New file.
61177         * lib/stdio-safer.h (fopen_safer): Add prototype.
61178         * lib/stdio--.h (tmpfile): Make safer.
61179
61180 2006-07-23  Bruno Haible  <bruno@clisp.org>
61181
61182         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61183         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61184         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61185         gl_linked_remove_at): Use it.
61186
61187 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61188         and Simon Josefsson <jas@extundo.com>
61189
61190         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61191
61192         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61193
61194 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         * modules/close-stream: New file.
61197         * modules/closeout (Description): Make it clear that it exits
61198         with a diagnostic on error.
61199         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61200         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61201
61202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61203
61204         * m4/close-stream.m4: New file.
61205
61206 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61207
61208         * lib/close-stream.c, lib/close-stream.h: New files.
61209
61210 2006-07-22  Bruno Haible  <bruno@clisp.org>
61211
61212         Merge from GNU gettext 0.15.
61213
61214         2006-05-01  Bruno Haible  <bruno@clisp.org>
61215
61216                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61217
61218         2006-07-22  Bruno Haible  <bruno@clisp.org>
61219
61220                 * modules/javaversion: New file.
61221                 * MODULES.html.sh (Java): Add javaversion.
61222
61223         2006-03-12  Bruno Haible  <bruno@clisp.org>
61224
61225                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61226
61227         2005-12-04  Bruno Haible  <bruno@clisp.org>
61228
61229                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61230                 (untested).
61231
61232         2006-06-21  Bruno Haible  <bruno@clisp.org>
61233
61234                 Avoid warnings from recent versions of mcs.
61235                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61236                 -o, -L, -r any more. Use options documented since mcs-1.0
61237                 instead. Similarly for -g.
61238
61239         2005-12-04  Bruno Haible  <bruno@clisp.org>
61240
61241                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61242                 .resources, not .resource.
61243
61244         2005-07-09  Bruno Haible  <bruno@clisp.org>
61245
61246                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61247                 add a .dll suffix.
61248                 Reported by Mark Junker <mjscod@gmx.de>.
61249
61250         2006-07-22  Bruno Haible  <bruno@clisp.org>
61251
61252                 * modules/gettext: Upgrade to gettext-0.15.
61253                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61254                 m4/visibility.m4.
61255                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61256
61257 2006-07-22  Bruno Haible  <bruno@clisp.org>
61258
61259         Merge from GNU gettext 0.15.
61260
61261         2006-03-25  Bruno Haible  <bruno@clisp.org>
61262
61263                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61264
61265         2006-07-21  Bruno Haible  <bruno@clisp.org>
61266
61267                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61268                 "1.1".
61269
61270         2006-05-09  Bruno Haible  <bruno@clisp.org>
61271
61272                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61273                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61274                 for the conftestver execution.
61275
61276         2006-05-01  Bruno Haible  <bruno@clisp.org>
61277
61278                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61279                 optional target-version argument. Verify that the compiler
61280                 groks source of the specified source-version, or add -source
61281                 option as necessary. Verify that the compiler produces
61282                 bytecode in the specified target-version, or add -target and
61283                 -source options as necessary. Make the result of the test
61284                 available as variable CONF_JAVAC. Also log error output in
61285                 config.log.
61286
61287         2006-03-11  Bruno Haible  <bruno@clisp.org>
61288
61289                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61290
61291         2006-05-09  Bruno Haible  <bruno@clisp.org>
61292
61293                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61294                 CLASSPATH_SEPARATOR to a semicolon.
61295
61296         2006-03-12  Bruno Haible  <bruno@clisp.org>
61297
61298                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61299                 available as variable CONF_JAVA, for subsequent autoconf
61300                 tests. Also log error output in config.log.
61301
61302         2006-07-19  Bruno Haible  <bruno@clisp.org>
61303
61304                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61305                 that getline works on glibc2 systems. Needed to avoid trouble
61306                 in relocatable.c.
61307                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61308
61309         2005-12-04  Bruno Haible  <bruno@clisp.org>
61310
61311                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61312                 launcher (untested).
61313
61314         2005-12-04  Bruno Haible  <bruno@clisp.org>
61315
61316                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61317
61318         2006-07-22  Bruno Haible  <bruno@clisp.org>
61319
61320                 * gettext.m4: Update from GNU gettext-0.15.
61321                 * nls.m4: Likewise.
61322                 * po.m4: Likewise.
61323                 * inttypes-pri.m4: Likewise.
61324                 * inttypes-h.m4: Renamed from inttypes.m4.
61325                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61326
61327 2006-07-22  Bruno Haible  <bruno@clisp.org>
61328
61329         Merge from GNU gettext 0.15.
61330
61331         2005-07-05  Bruno Haible  <bruno@clisp.org>
61332
61333                 * printf-args.c (printf_fetchargs): Work around broken
61334                 definition of wint_t on mingw.
61335
61336         2005-02-12  Bruno Haible  <bruno@clisp.org>
61337
61338                 * xallocsa.h: Add extern "C" for C++.
61339
61340         2006-05-17  Bruno Haible  <bruno@clisp.org>
61341
61342                 Cygwin portability.
61343                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61344
61345         2006-04-30  Bruno Haible  <bruno@clisp.org>
61346
61347                 * progreloc.c: Include <mach-o/dyld.h> if available.
61348                 (find_executable): Use _NSGetExecutablePath when possible.
61349
61350         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61351
61352                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61353                 function.
61354
61355         2005-12-29  Bruno Haible  <bruno@clisp.org>
61356
61357                 * progreloc.c (set_program_name_and_installdir): Fix
61358                 compilation error.
61359
61360         2005-12-04  Bruno Haible  <bruno@clisp.org>
61361
61362                 Cygwin portability.
61363                 * progreloc.c: Include <windows.h> also on Cygwin.
61364                 (find_executable): Add support for Cygwin.
61365                 (set_program_name_and_installdir): Handle also platforms with
61366                 nonempty EXEEXT.
61367
61368         2006-07-11  Bruno Haible  <bruno@clisp.org>
61369
61370                 * javacomp.c: Fix a comment.
61371                 Reported by Jim Meyering.
61372
61373         2006-04-30  Bruno Haible  <bruno@clisp.org>
61374
61375                 * javacomp.h (compile_java_class): Add source_version,
61376                 target_version arguments.
61377                 * javacomp.c: Rewritten to choose only a compiler that
61378                 respects the specified source_version and target_version.
61379
61380         2006-06-27  Bruno Haible  <bruno@clisp.org>
61381
61382                 Assume correct S_ISDIR macro.
61383                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61384
61385         2006-07-22  Bruno Haible  <bruno@clisp.org>
61386
61387                 * javaversion.h: New file, from GNU gettext.
61388                 * javaversion.c: New file, from GNU gettext.
61389                 * javaversion.java: New file, from GNU gettext.
61390                 * javaversion.class: New file, from GNU gettext.
61391
61392         2006-05-17  Bruno Haible  <bruno@clisp.org>
61393
61394                 Cygwin portability.
61395                 * javaexec.c (execute_java_class): Test for jview program
61396                 also on Cygwin.
61397
61398         2006-04-09  Bruno Haible  <bruno@clisp.org>
61399
61400                 * fatal-signal.c: Don't include string.h.
61401                 (at_fatal_signal): Use a copying loop instead of memcpy.
61402
61403         2005-12-04  Bruno Haible  <bruno@clisp.org>
61404
61405                 * csharpexec.c: Add support for 'clix' launcher (untested).
61406                 (execute_csharp_using_sscli): New function.
61407                 (execute_csharp_program): Call it.
61408
61409         2006-06-21  Bruno Haible  <bruno@clisp.org>
61410
61411                 Avoid warnings from recent versions of mcs.
61412                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61413                 -o, -L, -r any more. Use options documented since mcs-1.0
61414                 instead. Similarly for -g.
61415
61416         2005-07-09  Bruno Haible  <bruno@clisp.org>
61417
61418                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61419                 add a .dll suffix.
61420                 Reported by Mark Junker <mjscod@gmx.de>.
61421
61422         2006-06-17  Bruno Haible  <bruno@clisp.org>
61423
61424                 * config.charset: Update for NetBSD 3.0.
61425
61426         2006-05-17  Bruno Haible  <bruno@clisp.org>
61427
61428                 Cygwin portability.
61429                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61430
61431         2006-05-16  Bruno Haible  <bruno@clisp.org>
61432
61433                 * localcharset.c [CYGWIN]: Include <windows.h>.
61434                 (get_charset_aliases): For Cygwin, return the same CPxxx
61435                 aliases list as under WIN32.
61436                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61437                 the environment variables. Fall back to GetACP().
61438
61439         2006-04-05  Bruno Haible  <bruno@clisp.org>
61440
61441                 * config.charset: Update Juan Manuel Guerrero's address.
61442
61443         2005-02-12  Bruno Haible  <bruno@clisp.org>
61444
61445                 * allocsa.h: Add extern "C" for C++.
61446
61447         2005-02-10  Bruno Haible  <bruno@clisp.org>
61448
61449                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61450                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61451
61452         2006-07-22  Bruno Haible  <bruno@clisp.org>
61453
61454                 * gettext.h: Update to GNU gettext-0.15.
61455
61456 2006-07-22  Bruno Haible  <bruno@clisp.org>
61457
61458         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61459         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61460         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61461
61462 2006-07-21  Eric Blake  <ebb9@byu.net>
61463
61464         * modules/stdlib-safer: New file.
61465         * MODULES.html.sh (File stream based Input/Output): Add
61466         stdlib-safer.
61467
61468 2006-07-21  Eric Blake  <ebb9@byu.net>
61469
61470         * lib/stdlib-safer.h: New file from coreutils, required by
61471         stdlib--.h.
61472
61473 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61476
61477 2006-07-20  Bruno Haible  <bruno@clisp.org>
61478
61479         * gnulib-tool: Recognize new option --assume-autoconf.
61480         (autoconf_minversion): New variable.
61481         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61482
61483 2006-07-20  Bruno Haible  <bruno@clisp.org>
61484
61485         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61486
61487 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61488
61489         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61490         Reindent and repaginate.
61491
61492 2006-07-19  Derek Price  <derek@ximbiot.com>
61493
61494         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61495         Correct grammar.
61496
61497 2006-07-17  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/list: New file.
61500         * modules/array-list: New file.
61501         * modules/carray-list, modules/carray-list-tests: New files.
61502         * modules/linked-list, modules/linked-list-tests: New files.
61503         * modules/avltree-list, modules/avltree-list-tests: New files.
61504         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61505         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61506         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61507         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61508         * modules/oset: New file.
61509         * modules/array-oset: New file.
61510         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61511         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61512         * tests/test-carray_list.c: New file.
61513         * tests/test-linked_list.c: New file.
61514         * tests/test-avltree_list.c: New file.
61515         * tests/test-rbtree_list.c: New file.
61516         * tests/test-linkedhash_list.c: New file.
61517         * tests/test-avltreehash_list.c: New file.
61518         * tests/test-rbtreehash_list.c: New file.
61519         * tests/test-avltree_oset.c: New file.
61520         * tests/test-rbtree_oset.c: New file.
61521         * MODULES.html.sh (Container data structures): New section.
61522
61523 2006-07-17  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/gl_list.m4: New file.
61526
61527 2006-07-17  Bruno Haible  <bruno@clisp.org>
61528
61529         * lib/gl_list.h: New file.
61530         * lib/gl_list.c: New file.
61531         * lib/gl_array_list.h: New file.
61532         * lib/gl_array_list.c: New file.
61533         * lib/gl_carray_list.h: New file.
61534         * lib/gl_carray_list.c: New file.
61535         * lib/gl_linked_list.h: New file.
61536         * lib/gl_linked_list.c: New file.
61537         * lib/gl_anylinked_list1.h: New file.
61538         * lib/gl_anylinked_list2.h: New file.
61539         * lib/gl_avltree_list.h: New file.
61540         * lib/gl_avltree_list.c: New file.
61541         * lib/gl_anyavltree_list1.h: New file.
61542         * lib/gl_anyavltree_list2.h: New file.
61543         * lib/gl_rbtree_list.h: New file.
61544         * lib/gl_rbtree_list.c: New file.
61545         * lib/gl_anyrbtree_list1.h: New file.
61546         * lib/gl_anyrbtree_list2.h: New file.
61547         * lib/gl_anytree_list1.h: New file.
61548         * lib/gl_anytree_list2.h: New file.
61549         * lib/gl_linkedhash_list.h: New file.
61550         * lib/gl_linkedhash_list.c: New file.
61551         * lib/gl_anyhash_list1.h: New file.
61552         * lib/gl_anyhash_list2.h: New file.
61553         * lib/gl_avltreehash_list.h: New file.
61554         * lib/gl_avltreehash_list.c: New file.
61555         * lib/gl_rbtreehash_list.h: New file.
61556         * lib/gl_rbtreehash_list.c: New file.
61557         * lib/gl_anytreehash_list1.h: New file.
61558         * lib/gl_anytreehash_list2.h: New file.
61559
61560         * lib/gl_oset.h: New file.
61561         * lib/gl_oset.c: New file.
61562         * lib/gl_array_oset.h: New file.
61563         * lib/gl_array_oset.c: New file.
61564         * lib/gl_avltree_oset.h: New file.
61565         * lib/gl_avltree_oset.c: New file.
61566         * lib/gl_rbtree_oset.h: New file.
61567         * lib/gl_rbtree_oset.c: New file.
61568         * lib/gl_anytree_oset.h: New file.
61569
61570 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * m4/mkancesdirs.m4: New file.
61573         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61574         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61575         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61576         it.
61577
61578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61581         * lib/mkancesdirs.h: New files.
61582         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61583         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61584         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61585         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61586         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61587         callers changed.  Revamp internals significantly, by not
61588         attempting to create directories that are temporarily more
61589         permissive than the final results.  Do not attempt to use
61590         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61591         This removes some race conditions, fixes some bugs, and simplifies
61592         things.  Use new dirchownmod function to do owner and mode changes.
61593         * lib/mkdir-p.h: Likewise.
61594         * lib/modechange.c (octal_to_mode): New function.
61595         (struct mode_change): New member mentioned.
61596         (make_node_op_equals): New arg mentioned.  All callers changed.
61597         (mode_compile): Keep track of which mode bits the user has explicitly
61598         mentioned.
61599         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61600         New arg PMODE_BITS, to keep track of which mode bits the user
61601         mentioned; it treats S_ISUID and S_ISGID speciall.
61602         All callers changed.
61603         * lib/modechange.h: Likewise.
61604
61605 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * MODULES.html.sh: Add mkancestors.
61608         * modules/mkancesdirs: New module.
61609         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61610         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61611         The chdir-safer and afs files are now orphans; I'll remove them
61612         unless someone speaks up.
61613         Add lib/dirchownmod.c, lib/dirchownmod.h.
61614         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61615         Add lchown, mkancesdirs.
61616         (Maintainer): Add self.
61617
61618 2006-07-15  Karl Berry  <karl@gnu.org>
61619
61620         * gnulib-tool: help message wording/arrangement.
61621
61622 2006-07-14  Simon Josefsson  <jas@extundo.com>
61623
61624         * doc/gnulib.texi (Libtool and Windows): New section.
61625
61626 2006-07-12  Simon Josefsson  <jas@extundo.com>
61627
61628         * modules/gendocs (License): Fix license, approved by Karl.
61629
61630 2006-07-12  Eric Blake  <ebb9@byu.net>
61631
61632         * MODULES.html.sh: Add gendocs.
61633
61634 2006-07-11  Eric Blake  <ebb9@byu.net>
61635
61636         * modules/fdl: New module, to install doc/fdl.texi.
61637         * MODULES.html.sh: Add new section for documentation modules.
61638         * gnulib-tool: Avoid space-tab.
61639         (--doc-base): New option, to manage files from doc.
61640
61641 2006-07-11  Eric Blake  <ebb9@byu.net>
61642
61643         * m4/absolute-header.m4: Fix comments to match recent change.
61644
61645 2006-07-11  Eric Blake  <ebb9@byu.net>
61646
61647         * gnulib-tool: List --doc-base before --tests-base.
61648
61649 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61650
61651         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61652
61653 2006-07-11  Bruno Haible  <bruno@clisp.org>
61654
61655         * README: Mention where to put documentation.
61656
61657 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61658
61659         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61660
61661 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61664         to stdint.m4.
61665
61666 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61669         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61670         "no/such/file/stdint.h" when there is no such file, so that
61671         the resulting C code can be parsed by dodgy compilers.
61672         Problems reported by Bob Proulx.
61673
61674 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61675
61676         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61677         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61678         macros into the GNU _D_EXACT_NAMLEN.
61679         * lib/savedir.c:  Likewise.
61680         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61681
61682 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61683         and Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61686         * m4/savedir.m4:
61687         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61688         macros into the GNU _D_EXACT_NAMLEN.
61689
61690 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61693         around the absolute name, to work around a problem with the HP-UX
61694         11.23 native C compiler, reported by Bob Proulx.
61695
61696 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         * doc/maintain.texi, make-stds.texi: Sync from
61699         <http://savannah.gnu.org/projects/gnustandards>.
61700
61701 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61704
61705 2006-07-09  Jim Meyering  <jim@meyering.net>
61706
61707         * m4/glob.m4: Remove a doubled word in a comment.
61708
61709 2006-07-09  Jim Meyering  <jim@meyering.net>
61710
61711         * lib/argp-pv.c: Remove a doubled word in a comment.
61712         * lib/check-version.c (check_version): Likewise.
61713         * lib/javacomp.c (compile_java_class): Likewise.
61714
61715 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61718         for the benefit of people using Autoconf 2.60.  If you want to
61719         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61720         (or m4/onceonly.m4, if pre-2.57) manually.
61721
61722 2006-07-08  Jim Meyering  <jim@meyering.net>
61723
61724         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61725         comment.
61726         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61727         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61728         comment.
61729
61730 2006-07-08  Jim Meyering  <jim@meyering.net>
61731
61732         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61733
61734 2006-07-07  Simon Josefsson  <jas@extundo.com>
61735
61736         * tests/test-crc.c: Change expected crc value, the test vector
61737         were probably computed using the old broken crc.c?
61738
61739 2006-07-06  Simon Josefsson  <jas@extundo.com>
61740
61741         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61742         now the canonical place for the M4 file).
61743
61744         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61745         from the sys_socket dependency now.
61746
61747         * modules/inet_pton (Files): Ditto.
61748
61749         * modules/inet_ntop (Files): Ditto.
61750
61751 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61752
61753         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61754         not gl_PREREQ_GETUSERSHELL.
61755
61756 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61757
61758         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61759         with only one argument, for Autoconf 2.60.
61760         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61761         expand to nothing, so add a shell command to avoid syntax error.
61762         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61763
61764 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61765
61766         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61767
61768 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61771         no longer needed.  Check for isblank decl.
61772         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61773         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61774         of existence.
61775
61776 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * lib/getloadavg.c: Use __VMS, not VMS.
61779         * lib/getopt.c: Likewise.
61780         * lib/getpagesize.h: Likewise.
61781         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61782         and probably does not work.
61783
61784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * lib/.cppi-disable: Add wcwidth.
61787         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61788         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61789         (ISGRAPH): Remove.  All uses changed to isgraph.
61790         (FOLD) [!defined _LIBC]: Remove special case.
61791         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61792         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61793         HAVE_ISBLANK.
61794         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61795         case.
61796
61797 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61798
61799         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61800         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61801         brackets.  Other minor changes to suppress some compiler
61802         warnings.
61803
61804 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61805         and Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61808         of invoking obsolescent AC_HEADER_DIRENT macro.
61809         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61810         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61811         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61813         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61814         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61815         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61816         * m4/readdir.m4: Remove; no longer needed.
61817
61818 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61819         and Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61822         Don't worry about this obsolete case any more.
61823         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61824         directories.
61825         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61826         worry about this obsolete case any more.
61827         * lib/fts.c: Likewise.
61828         * lib/getcwd.c: Likewise.
61829         * lib/glob.h: Likewise.
61830         * lib/savedir.c: Likewise.
61831
61832 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61835         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61836         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61837         needed.
61838         All uses removed.
61839         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61840         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61841         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61842         needed.
61843         * m4/getdate.m4 (gl_GETDATE): Likewise.
61844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61845         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61846         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61847         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61848         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61849         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61850         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61851         needed.
61852
61853 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * lib/memcasecmp.c: Include <limits.h>.
61856         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61857         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61858         Don't assume isdigit succeeds only on '0' through '9'.
61859
61860 2006-07-05  Eric Blake  <ebb9@byu.net>
61861
61862         * modules/getaddrinfo (Depends-on): Add snprintf.
61863
61864 2006-07-05  Eric Blake  <ebb9@byu.net>
61865
61866         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61867         to avoid 'header present but could not be compiled' on cygwin.
61868
61869 2006-07-05  Eric Blake  <ebb9@byu.net>
61870
61871         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61872         missing from netdb.h.
61873         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61874
61875 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61876
61877         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61878         no longer needed.
61879         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61880         * m4/getdate.m4 (gl_GETDATE): Likewise.
61881         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61882         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61883         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61884         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61886
61887 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61888
61889         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61890         All uses of is_space replaced by isspace.
61891         * lib/exit.h: Don't talk about STDC_HEADERS.
61892         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61893         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61894         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61895         replaced by isprint etc.
61896         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61897         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61898         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61899         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61900         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61901         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61902
61903 2006-07-05  Bruno Haible  <bruno@clisp.org>
61904
61905         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61906         the function exists, before testing against AIX.
61907         Reported by Martin Lambers <marlam@marlam.de>.
61908
61909 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61912         From Mark D. Baushke.
61913
61914 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61917         to the absolute name, not just one, to bypass Sun C 5.8's
61918         "warning: #include of /usr/include/... may be non-portable".
61919
61920 2006-07-04  Eric Blake  <ebb9@byu.net>
61921
61922         * modules/dirname-tests: New test module.
61923         * tests/test-dirname.c: New file, replacing dirname.c
61924         TEST_DIRNAME section that was recently deleted.
61925
61926 2006-07-04  Bruno Haible  <bruno@clisp.org>
61927
61928         Assume ANSI C header files and <ctype.h> functions.
61929         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61930         (mbsnwidth): Use isprint, iscntrl instead.
61931
61932 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         Merge from coreutils.
61935         * MODULES.html.sh: Add xstrtold.
61936         * modules/xstrtold: New file.
61937         * modules/cycle-check (Files): Add lib/same-inode.h.
61938         * modules/dirname (Files): Add m4/double-slash-root.m4.
61939         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61940         * modules/mkdir-p (Files): Add lib/same-inode.h.
61941         * modules/same (Files): Add lib/same-inode.h.
61942
61943 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61946         This is to keep the terminology clean; POSIX talks about
61947         "absolute pathnames", not "full pathnames", but the GNU
61948         Coding Standards say to use "path" for something else;
61949         so use "absolute" to keep both sides happy.
61950         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61951         Set gl_absolute_header, not gl_full_header_path.
61952         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61953         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61954         All uses changed.
61955
61956         Merge from coreutils.
61957
61958         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61959
61960         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61961         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61962         want to require the building of c-strtod.o.
61963         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61964         needs -lm directly.
61965         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61966
61967         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61970         --as-needed option if available.  Problem reported by Albert Chin in
61971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61972         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61973         cc merely issues a bunch of annoying warnings for --as-needed
61974         (this problem was reported by Bob Proulx).  Also, try linking with
61975         -lm to detect a bug in binutils 2.16 (this problem was reported
61976         by Ralf Wildenhues).
61977
61978         2006-06-18  Jim Meyering  <jim@meyering.net>
61979
61980         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61981         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61982         macro.
61983         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61984         also check for glibc-2.4's abort-inducing bug.
61985
61986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61987         Low-probability clean-up should be to use rmdir to get rid of
61988         the just-created directory, not unlink.
61989
61990         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61991         configure fail, and request a bug report to inform us about it.
61992         Add a comment that, barring reports to the contrary, in 2007 we'll
61993         assume ftruncate is universally available.
61994
61995         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61998
61999         2006-03-12  Jim Meyering  <jim@meyering.net>
62000
62001         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62002         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62003         * m4/same.m4 (gl_SAME): Likewise.
62004         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62005
62006         2006-03-11  Eric Blake  <ebb9@byu.net>
62007
62008         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62009         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62010         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62011         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62012
62013 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62016         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62017         reported by Mark D. Baushke, one in
62018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62019
62020         Merge from coreutils.
62021
62022         * lib/.cppi-disable: Add stdint_.h.
62023         * lib/.cvsignore: Add stdint.h.
62024
62025         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62028         both double and long double versions.
62029         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62030         * lib/xstrtold.c: New file.
62031         * lib/xstrtod.h (xstrtold): New decl.
62032
62033         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * lib/filemode.c (setst): Remove.
62036         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62037         (arguably) clearer, and the generated code is a bit smaller on my
62038         Debian GNU/Linux stable x86 host.
62039
62040         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62043         Assume that filemode.h includes sys/types.h and sys/stat.h.
62044         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62045         (ftypelet): Reorder to put common cases first, for efficiency.
62046         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62047         to do 'M'.
62048         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62049         of 10, for compatibility with FreeBSD.  All callers changed.
62050         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62051         types that can't be deduced solely from st_mode.  First arg is now a
62052         const pointer.
62053         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62054         (strmode): Renamed from mode_string.
62055         (filemodestring): New decl.
62056         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62057         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62058         needed.
62059         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62060
62061         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62064         fsusage.h now does that.  Include fsusage.h first, to test interface.
62065         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62066         at most one method (the old code could have generated decls that
62067         didn't conform to C89, not that this was ever exercised).
62068         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62069
62070         2006-03-19  Jim Meyering  <jim@meyering.net>
62071
62072         Work even in a chroot where d_ino values for entries in "/"
62073         don't match the stat.st_ino values for the same names.
62074         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62075         number, iterate through all entries again, using lstat instead.
62076         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62077         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62078
62079         * lib/getcwd.c (__getcwd): Clarify a comment.
62080         Use memcpy in place of a call to strcpy.
62081
62082         2006-03-12  Jim Meyering  <jim@meyering.net>
62083
62084         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62085         matches that of the current directory (which we're about to chdir ".."
62086         out of), then save the dev-ino of the parent, instead.
62087
62088         * lib/same-inode.h (SAME_INODE): New file/macro.
62089         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62090         Include "same-inode.h", instead.
62091         * lib/same.c: Likewise.
62092         * lib/cycle-check.h: Include "same-inode.h".
62093         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62094         * lib/cycle-check.c (SAME_INODE): Remove definition.
62095         * lib/root-dev-ino.h: Include "same-inode.h".
62096
62097         2006-03-11  Eric Blake  <ebb9@byu.net>
62098
62099         * lib/same.c (same_name): s/base_name/last_component/
62100         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62101         * lib/filenamecat.c (file_name_concat): Likewise.
62102
62103         2006-03-11  Eric Blake  <ebb9@byu.net>,
62104                     Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62107         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62108         drive prefix.
62109         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62110         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62111         (last_component): New method.
62112         * lib/dirname.c (dir_len): Determine when drive letters need a
62113         subsequent slash.  Preserve // when it is special.
62114         (dir_name): Don't append dot when drive letter is absolute.
62115         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62116         * lib/basename.c (base_name): New semantics - malloc the result.
62117         Preserve // when it is special.  Preserve relative files that look
62118         like drive letters.
62119         (base_len): Preserve // when it is special.
62120         (last_component): New method, similar to old base_name semantics.
62121         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62122         base_name.  Strip redundant slashes from ///.
62123
62124 2006-07-03  Jim Meyering  <jim@meyering.net>
62125
62126         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62127         macro is used before the first cycle_check call.
62128
62129 2006-07-03  Eric Blake  <ebb9@byu.net>
62130
62131         * modules/dirname (Depends-on): Add xstrndup.
62132
62133 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62136         test cases, so that config.log is a bit easier to follow.
62137
62138 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62139
62140         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62141         both are 64 bits, since this seems to be the tradition, and this
62142         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62143         we ever run into a host that prefers long long to long in this
62144         case, we'll need another configure-time test.  Problem reported by
62145         Jim Meyering.
62146
62147 2006-07-02  Eric Blake  <ebb9@byu.net>
62148
62149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62150
62151 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62152
62153         * modules/inttypes (Depends-on): No longer depends on stdint.
62154         * modules/stdint (Description): Say more about assumptions.
62155         Say that the fast types might differ.  Say macros are used.
62156         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62157         (Makefile.am): Revise list of substituted symbols to match
62158         new stdint.m4.
62159         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62160         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62161         * tests/test-stdint.c (verify_same_types)
62162         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62163         the code conforms to C99/C89.
62164         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62165         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62166
62167 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62170         but fix a bug, by requiring at least 64 bits.
62171         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62172         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62173         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62174         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62175
62176         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62177         changes.  Make 2.59 a prerequisite.  Check and substitute for
62178         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62179         inttypes.h.  Do not use special include files; just use the
62180         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62181         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62182         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62183         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62184         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62185         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62186         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62187         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62188         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62189         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62190         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62191         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62192         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62193         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62194         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62195         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62196         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62197         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62198         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62199         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62200         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62201         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62202         not check for things that C99 does not require, e.g., int8_t.  If
62203         a test isn't needed unless <stdint.h> isn't working, and is
62204         unlikely to be needed for any other reason, then don't do it
62205         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62206         size_t, since we assume C89 freestanding at least.  Do not check
62207         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62208         the right thing even if the types are not defined.  Instead use:
62209         (gl_STDINT_TYPE_PROPERTIES): New macro.
62210         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62211         testing whether <sys/types.h> clashes, as Autoconf does this for
62212         us now.  All uses removed.
62213         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62214         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62215         (gl_CHECK_TYPE_SAME):
62216         Remove; no longer needed.
62217         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62218         exists, since we'll return 0 anyway in that case.
62219         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62220
62221 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62224         possible collision with system files.
62225         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62226         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62227         WCHAR_MIN and WCHAR_MAX in this case.
62228         (<stddef.h>): Do not include; no longer needed.
62229         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62230         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62231         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62232         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62233         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62234         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62235         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62236         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62237         !defined(__c99))]: Include in this case too, since it's harmless
62238         now.
62239         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62240         dangerous to do so.
62241         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62242         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62243         (_STDINT_MIN, _STDINT_MAX): New macros.
62244         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62245         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62246         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62247         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62248         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62249         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62250         macros, not typedefs; this simplifies things quite a bit.
62251         Use long int for all types narrower than int64_t.
62252         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62253         Define in terms of long long int or int64_t or long int,
62254         not int64_t or int32_t.  This saves some compile-time testing.
62255         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62256         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62257         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62258         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62259         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62260         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62261         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62262         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62263         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62264         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62265         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62266         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62267         undef any previous version and define our own version, for
62268         simplicity and consistency with the new macros for types.
62269         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62270         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62271         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62272         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62273         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62274         @WINT_T_SUFFIX@ to keep things simple here.
62275         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62276         Simplify by assuming typical 8/16/32/64 host, since we're
62277         already doing that elsewhere anyway.
62278         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62279         and assume long long int is 64 bits if available.  This
62280         speeds up 'configure'.
62281
62282 2006-07-01  Eric Blake  <ebb9@byu.net>
62283
62284         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62285         Reported by Andreas Buening.
62286
62287 2006-07-01  Eric Blake  <ebb9@byu.net>
62288
62289         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62290
62291 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62292
62293         * lib/getaddrinfo.c: fixed typo
62294
62295 2006-06-29  Jim Meyering  <jim@meyering.net>
62296
62297         * modules/strftime (Maintainer): Add my name, since with the
62298         FPRINTFTIME changes strftime.c has forked from glibc.
62299
62300 2006-06-29  Eric Blake  <ebb9@byu.net>
62301
62302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62303
62304 2006-06-29  Eric Blake  <ebb9@byu.net>
62305
62306         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62307
62308 2006-06-29  Eric Blake  <ebb9@byu.net>
62309
62310         * lib/stat_.h: New file.
62311
62312 2006-06-29  Eric Blake  <ebb9@byu.net>
62313
62314         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62315         unused static function.
62316
62317 2006-06-29  Eric Blake  <ebb9@byu.net>
62318
62319         * doc/functions.texi (Function Portability): Document missing lstat
62320         on mingw.
62321
62322 2006-06-29  Eric Blake  <ebb9@byu.net>
62323
62324         * MODULES.html.sh: Add sys_stat.
62325         * modules/sys_stat: New module.
62326         * modules/mkstemp (Depends-on): Add sys_stat.
62327
62328 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62329
62330         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62331
62332 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62333
62334         * m4/c-bs-a.m4: Removed.
62335
62336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62337
62338         * lib/strftime.c: Assume strftime() exists.
62339
62340 2006-06-29  Derek Price  <derek@ximbiot.com>
62341
62342         * modules/c-bs-a: Removed - \a is C89.
62343         * MODULES.html.sh: Remove c-bs-a.
62344
62345 2006-06-29  Bruno Haible  <bruno@clisp.org>
62346
62347         * modules/wcwidth (License): Change to LGPL.
62348
62349 2006-06-28  Simon Josefsson  <jas@extundo.com>
62350
62351         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62352         on _WIN32.
62353
62354         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62355         getnameinfo.
62356
62357 2006-06-28  Simon Josefsson  <jas@extundo.com>
62358
62359         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62360
62361 2006-06-28  Simon Josefsson  <jas@extundo.com>
62362
62363         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62364         functions there.  It will succeed on Windows XP, but on Windows
62365         2000 and (presumably) earlier, it will fail, and use the internal
62366         re-implementation.
62367         (use_win32_p): New function.
62368         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62369         Support AI_NUMERICSERV to disable getservbyname.
62370         (getnameinfo): New function, only supports
62371         NI_NUMERICHOST|NI_NUMERICSERV for now.
62372
62373         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62374         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62375         getnameinfo.
62376
62377 2006-06-28  Eric Blake  <ebb9@byu.net>
62378
62379         * modules/wcwidth: New file.
62380         * modules/mbchar (Depends-on): Add wcwidth.
62381         * modules/mbswidth (Depends-on): Add wcwidth.
62382         * MODULES.html.sh: Add wcwidth.
62383
62384 2006-06-28  Eric Blake  <ebb9@byu.net>
62385
62386         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62388
62389 2006-06-28  Eric Blake  <ebb9@byu.net>
62390
62391         * lib/xvasprintf.h: Fix comments.
62392
62393 2006-06-28  Eric Blake  <ebb9@byu.net>
62394
62395         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62396         * lib/mbswidth.c (wcwidth): Move from here...
62397         * lib/wcwidth.h: ...to this new file.
62398
62399 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62400
62401         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62402
62403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62404         it's obsolete.
62405         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62406
62407 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62408
62409         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62410         Autoconf 2.60 says this stuff was obsolete.
62411
62412 2006-06-28  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62415
62416 2006-06-28  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62419         gt_TYPE_WCHAR_T.
62420
62421 2006-06-28  Bruno Haible  <bruno@clisp.org>
62422
62423         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62424         declaration for wcwidth.
62425         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62426
62427 2006-06-28  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62430         (mkdir): Define using _mkdir.
62431
62432 2006-06-28  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/getaddrinfo.h: Fix POSIX URL.
62435         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62436         _WIN32.
62437         (use_win32_p): Make static.
62438         (getaddrinfo): Reject service name if it is empty or does not consist
62439         solely of decimal digits, or if its value is > 65535.
62440         (getnameinfo): Remove useless casts.
62441
62442 2006-06-27  Simon Josefsson  <jas@extundo.com>
62443
62444         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62445         Eggert and Martin Lambers.
62446
62447 2006-06-27  Simon Josefsson  <jas@extundo.com>
62448
62449         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62450         Eggert and Martin Lambers.
62451
62452 2006-06-27  Bruno Haible  <bruno@clisp.org>
62453
62454         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62455         result to 0, not to empty.
62456         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62457
62458 2006-06-27  Bruno Haible  <bruno@clisp.org>
62459
62460         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62461
62462 2006-06-26  Simon Josefsson  <jas@extundo.com>
62463
62464         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62465         present.
62466
62467 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62468
62469         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62470         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62472
62473 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62474
62475         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62476
62477 2006-06-26  Bruno Haible  <bruno@clisp.org>
62478
62479         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62480
62481 2006-06-26  Bruno Haible  <bruno@clisp.org>
62482
62483         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62484
62485 2006-06-26  Bruno Haible  <bruno@clisp.org>
62486
62487         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62488         SGI C compiler in pre-C99 mode.
62489         Suggested by Mark D. Baushke and Larry Jones.
62490
62491 2006-06-26  Bruno Haible  <bruno@clisp.org>
62492
62493         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62494         WCHAR_MAX.
62495         Reported by Mark D. Baushke and Larry Jones.
62496
62497 2006-06-26  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62500         in pre-C99 mode.
62501         Suggested by Mark D. Baushke and Larry Jones.
62502
62503 2006-06-23  Simon Josefsson  <jas@extundo.com>
62504             Bruno Haible  <bruno@clisp.org>
62505
62506         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62507         Emit mostlyclean-local rule.
62508         (func_emit_tests_Makefile_am): Likewise.
62509         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62510
62511 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62512
62513         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62514
62515 2006-06-23  Bruno Haible  <bruno@clisp.org>
62516
62517         * tests/test-stdint.c: Update to match ISO C 99 Technical
62518         Corrigendum 1.
62519
62520 2006-06-23  Bruno Haible  <bruno@clisp.org>
62521
62522         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62523
62524 2006-06-23  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/stdint_.h: Treat IRIX like OpenBSD.
62527
62528 2006-06-23  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62531         ISO C 99 Technical Corrigendum 1.
62532
62533 2006-06-22  Simon Josefsson  <jas@extundo.com>
62534
62535         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62536         MinGW.
62537
62538 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62539
62540         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62541         needed.  Some compiler complained about some of them.  Problem reported
62542         by Larry Jones in
62543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62544
62545 2006-06-21  Simon Josefsson  <jas@extundo.com>
62546
62547         * tests/test-getaddrinfo.c: New file.
62548
62549         * modules/getaddrinfo-tests: New file.
62550
62551         * MODULES.html.sh: Add inet_pton.
62552
62553         * modules/inet_pton: New file.
62554
62555 2006-06-21  Simon Josefsson  <jas@extundo.com>
62556
62557         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62558         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62559         of using the (limited) gnulib implementation on Windows XP.
62560
62561         * m4/inet_pton.m4: New file.
62562
62563 2006-06-21  Simon Josefsson  <jas@extundo.com>
62564
62565         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62566         variable.
62567
62568         * lib/socket_.h: Don't define WINVER.
62569
62570         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62571         slightly modified to work in gnulib.
62572
62573 2006-06-21  Simon Josefsson  <jas@extundo.com>
62574
62575         * doc/gnulib.texi (Windows sockets): Add.
62576
62577 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * lib/read-file.c (fread_file): Start with buffer allocation of
62580         0 bytes rather than 1 byte; this simplifies the code.
62581         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62582         code to free buffer and save/restore errno.
62583         (internal_read_file): Remove unused local.
62584
62585 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62586
62587         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62588         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62589         Problem reported by Denis Excoffier in
62590         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62591
62592 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62593
62594         * modules/sys_socket, modules/socklen: Include sys/types since
62595         FreeBSD 4.x's sys/socket.h needs it.
62596
62597 2006-06-19  Simon Josefsson  <jas@extundo.com>
62598
62599         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62600
62601 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62604
62605 2006-06-19  Bruno Haible  <bruno@clisp.org>
62606
62607         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62608         and FULL_PATH_INTTYPES_H in angle brackets.
62609         Reported by Mark D. Baushke <mdb@gnu.org>.
62610
62611 2006-06-17  Eric Blake  <ebb9@byu.net>
62612
62613         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62614         errno.
62615
62616 2006-06-17  Bruno Haible  <bruno@clisp.org>
62617
62618         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62619         <sys/inttypes.h>.
62620
62621 2006-06-17  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62624         whether errno is declared. Assume <errno.h> declares errno.
62625
62626 2006-06-17  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62629
62630 2006-06-17  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62633         problem on Solaris 2.5.1.
62634
62635 2006-06-16  Eric Blake  <ebb9@byu.net>
62636
62637         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62638         * lib/unicodeio.c [!defined errno]: Likewise.
62639         * lib/strtol.c [!defined errno]: Likewise.
62640         * lib/strtod.c [!defined errno]: Likewise.
62641
62642 2006-06-15  Eric Blake  <ebb9@byu.net>
62643
62644         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62645
62646 2006-06-15  Eric Blake  <ebb9@byu.net>
62647
62648         * config/srclist.txt (ssize_t.m4): Lose sync.
62649
62650 2006-06-15  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/stdint (Files): Include m4/full-header-path.m4,
62653         m4/size_max.m4, m4/wchar_t.m4.
62654         (Makefile.am): Many more substitutions.
62655         * modules/stdint-tests: New file.
62656         * tests/test-stdint.c: New file.
62657
62658 2006-06-15  Bruno Haible  <bruno@clisp.org>
62659
62660         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62661         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62662         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62663         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62664         gl_CHECK_TYPE_SAME): New macros.
62665
62666 2006-06-15  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62669
62670 2006-06-15  Bruno Haible  <bruno@clisp.org>
62671
62672         * lib/stdint_.h: Rewritten to be fully auto-configured.
62673         Fixes bug on HP-UX/IA64.
62674
62675 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         * lib/getdate.y (__attribute__): Don't define if already defined.
62678         Problem reported by Larry Jones.
62679         * lib/utimens.c (__attribute__): Likewise.
62680
62681 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62684         reported by Andreas Schwab.
62685
62686 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62687             Bruno Haible  <bruno@clisp.org>
62688
62689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62690         check for the declaration of strnlen and a run test that exposes the
62691         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62692         rpl_strndup.
62693
62694 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62695             Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62698
62699 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62700
62701         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62702         compile test, for Tru64 4.0D.
62703
62704 2006-05-28  Karl Berry  <karl@gnu.org>
62705
62706         * config/srclist.txt (printf-args.c): lose sync.
62707
62708 2006-05-26  Martin Lambers  <marlam@marlam.de>
62709
62710         * lib/getpass.c: Updates the test for the native W32 API, and adds
62711         missing includes, thus fixing compilation warnings.
62712
62713 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62714
62715         * lib/exclude.c (exclude_fnmatch): New function.
62716         (excluded_file_name): Call exclude_fnmatch.
62717         * lib/exclude.h (excluded_file_name): New prototype
62718
62719 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * lib/tempname.c (small_open, large_open): New macros.
62722         (__open, __open64) [!_LIBC]: Remove.
62723         (__gen_tempname): Use small_open and large_open instead of __open
62724         and __open64.  This fixes a portability bug on HP-UX 11.11i
62725         reported by Simon Wing-Tang in
62726         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62727
62728 2006-05-24  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62731         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62732         Reported by Thorsten Maerz <torte@netztorte.de> via
62733         Aaron Stone <aaron@serendipity.cx>.
62734
62735 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62738         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62739         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62740         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62741         not really conditional on the cache.
62742         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62743
62744 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62747         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62748         (my_usleep): Don't mishandle maximum value.
62749
62750 2006-05-19  Jim Meyering  <jim@meyering.net>
62751
62752         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62753
62754 2006-05-17  Bruno Haible  <bruno@clisp.org>
62755
62756         Cygwin portability.
62757         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62758
62759 2006-05-17  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/stdint_.h: Fix recognition of Cygwin.
62762
62763 2006-05-15  Bruno Haible  <bruno@clisp.org>
62764
62765         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62766         on libtool patch by Ralf Wildenhues.
62767
62768 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62771         test for C99 conformance; (bool) 0.5 is an integer constant
62772         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62773         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62774
62775 2006-05-11  Simon Josefsson  <jas@extundo.com>
62776
62777         * m4/xvasprintf.m4: Fix obvious typo.
62778
62779 2006-05-11  Jim Meyering  <jim@meyering.net>
62780
62781         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62782         James Lemley.
62783
62784 2006-05-10  Simon Josefsson  <jas@extundo.com>
62785
62786         * lib/md4.c: Typo fix, update copyright years.
62787         (K1, K2): Don't use L because it turn computations into 64-bit on
62788         64-bit platforms.
62789
62790 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62793         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62794         unwanted sign propagation, e.g., on hosts with 64-bit int.
62795         There still are some problems with reeelly weird theoretical hosts
62796         (e.g., 33-bit int) but it's not worth worrying about now.
62797         * lib/sha1.c (rol): Likewise.
62798         (K1, K2, K3, K4): Remove unnecessary L suffix.
62799
62800 2006-05-10  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/des.c: Cast to avoid warnings.
62803
62804 2006-05-09  Bruno Haible  <bruno@clisp.org>
62805
62806         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62807         (Depends-on): Depend also on xsize, stdarg.
62808         (configure.ac): Add gl_XVASPRINTF.
62809
62810 2006-05-09  Bruno Haible  <bruno@clisp.org>
62811
62812         * m4/xvasprintf.m4: New file.
62813
62814 2006-05-09  Bruno Haible  <bruno@clisp.org>
62815
62816         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62817         (EOVERFLOW): Define fallback value.
62818         (xstrcat): New function.
62819         (xvasprintf): Recognize the special case of a string concatenation.
62820
62821 2006-05-08  Eric Blake  <ebb9@byu.net>
62822
62823         * gnulib-tool (func_version): Base copyright year on CVS date.
62824         (func_emit_copyright_notice): New function.
62825         (func_emit_lib_Makefile_am): Use it.
62826         (func_emit_tests_Makefile_am): Likewise.
62827         (func_import): Likewise.
62828
62829 2006-05-08  Bruno Haible  <bruno@clisp.org>
62830
62831         * modules/stdarg: New file.
62832         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62833
62834 2006-05-08  Bruno Haible  <bruno@clisp.org>
62835
62836         * m4/stdarg.m4: New file, from GNU gettext.
62837
62838 2006-05-08  Bruno Haible  <bruno@clisp.org>
62839
62840         * config/srclist.txt (build-aux/config.rpath): different from latest
62841         release.
62842
62843 2006-05-08  Bruno Haible  <bruno@clisp.org>
62844
62845         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62846
62847 2006-05-05  Jim Meyering  <jim@meyering.net>
62848
62849         * m4/warning.m4: New file, derived from bison's file by the same name.
62850
62851 2006-05-03  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/stdint_.h: Shorter URL.
62854         * lib/inttypes.h: Likewise.
62855
62856 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62859
62860 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * lib/verify.h: Document the internals better.  Most of this change
62863         was written by Bruno Haible.
62864
62865 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * doc/verify.texi: New file, partly based on a proposal by
62868         Bruno Haible.
62869
62870 2006-05-02  Bruno Haible  <bruno@clisp.org>
62871
62872         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62873         test from here...
62874         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62875
62876 2006-04-29  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62879         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62880
62881 2006-04-29  Bruno Haible  <bruno@clisp.org>
62882
62883         * gnulib-tool: Make --update option actually work.
62884
62885 2006-04-29  Bruno Haible  <bruno@clisp.org>
62886
62887         * doc/gcd.texi: New file.
62888         * doc/gnulib.texi: Include it.
62889
62890 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * lib/getdate.y (get_date): When adding relative date, start with the
62893         initial time, not with the result of the first mktime call.
62894
62895 2006-04-25  Bruno Haible  <bruno@clisp.org>
62896
62897         * gnulib-tool (func_import): Output the include directives in three
62898         blocks, sorted separately.
62899         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62900
62901 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62904         to define main with arguments, for C++.  Reported by Eric Blake.
62905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62906         Prefer 'int main ()' to 'int main (void)', for C++.
62907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62909         for 'main', for C99 and C++.
62910
62911 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62914         Don't assume that exit status -1 is valid.
62915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62916         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62917         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62918         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62919         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62920         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62921         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62922         functions can be used without declaring them, or that you can
62923         exit with status -1.
62924         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62925
62926 2006-04-24  Karl Berry  <karl@gnu.org>
62927
62928         * config/srclist.txt (longdouble.m4): sync lost.
62929
62930 2006-04-24  Eric Blake  <ebb9@byu.net>
62931
62932         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62933
62934 2006-04-24  Bruno Haible  <bruno@clisp.org>
62935
62936         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62937         poll() implementation in AIX.
62938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62939
62940 2006-04-24  Bruno Haible  <bruno@clisp.org>
62941
62942         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62943         assigned exactly once.
62944
62945 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62946             Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62949         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62950         for AM_CPPFLAGS.
62951
62952 2006-04-23  Bruno Haible  <bruno@clisp.org>
62953
62954         * modules/copy-file: Depend on unistd.
62955         * modules/execute: Likewise.
62956         * modules/fatal-signal: Likewise.
62957         * modules/findprog: Likewise.
62958         * modules/mkdtemp : Likewise.
62959         * modules/pipe: Likewise.
62960         * modules/wait-process: Likewise.
62961
62962 2006-04-23  Bruno Haible  <bruno@clisp.org>
62963
62964         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62965         condition was already detected.
62966         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62967
62968 2006-04-23  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/copy-file.c: Include <unistd.h> unconditionally.
62971         * lib/execute.c: Likewise.
62972         * lib/fatal-signal.c: Likewise.
62973         * lib/findprog.c: Likewise.
62974         * lib/mkdtemp.c: Likewise.
62975         * lib/pipe.h: Likewise.
62976         * lib/pipe.c: Likewise.
62977         * lib/wait-process.h: Likewise.
62978
62979 2006-04-23  Bruno Haible  <bruno@clisp.org>
62980
62981         * gnulib-tool (func_usage): Fix --import description. Document
62982         --update.
62983         (func_import): Create temporary file in a temporary directory, if
62984         --dry-run is specified. Silence errors from 'grep' when there are no
62985         m4 files in $m4dir.
62986         (func_create_testdir): Silence errors from 'grep' when there are no
62987         m4 files in $m4dir.
62988         Reported by Karl Berry <karl@freefriends.org>.
62989
62990 2006-04-20  Bruno Haible  <bruno@clisp.org>
62991
62992         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62993         one argument, so that the code will be portable to Autoconf 2.60.
62994         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62995         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62996         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62997
62998 2006-04-19  Derek Price  <derek@ximbiot.com>
62999             Eric Blake  <ebb9@byu.net>
63000
63001         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63002         rather than "/full/path.h".  Update comment to match.  Shorten &
63003         generalize m4_translit call via AS_TR_CPP.
63004
63005 2006-04-19  Derek Price  <derek@ximbiot.com>
63006             Eric Blake  <ebb9@byu.net>
63007
63008         * lib/inttypes.h: Correct grammar in comment.
63009
63010 2006-04-18  Derek Price  <derek@ximbiot.com>
63011             Paul Eggert  <eggert@cs.ucla.edu>
63012
63013         * modules/inttypes: New file.
63014         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63015
63016 2006-04-18  Derek Price  <derek@ximbiot.com>
63017             Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63020         New files.
63021
63022 2006-04-18  Derek Price  <derek@ximbiot.com>
63023             Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * lib/inttypes.h: New file.
63026         * lib/strtoimax.c: Assume <inttypes.h>.
63027
63028 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63029
63030         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63031         isn't mounted.  Problem reported by Kir Kolyshkin.
63032
63033 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63036         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63037         Derek R. Price.
63038         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63039         implementation.
63040
63041 2006-04-12  Eric Blake  <ebb9@byu.net>
63042
63043         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63044         is now done automatically by the corresponding Autoconf macro.
63045
63046 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63047
63048         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63049         time_r.h.
63050
63051 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63052
63053         Merge regex changes from libc, removing some of our
63054         POSIX-conformance changes that were rejected and redoing them in a
63055         less-intrusive way.
63056
63057         * lib/regcomp.c (re_compile_internal, init_dfa):
63058         Length arg is now size_t, not Idx.  All uses changed.
63059         (peek_token): Forward decl now says internal_function.
63060         (__re_error_msgid, __re_error_msgid_idx):
63061         Now static rather than extern with attribute_hidden.
63062         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63063         For some reason libc prefers K&R style defns for external functions.
63064         (regerror) [!defined _LIBC]: Likewise.
63065         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63066         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63067         (build_range_exp, build_collating_symbol):
63068         Use K&R-style defn.
63069         (re_compile_fastmap): Use '\0' to memset, not 0.
63070         (utf8_sb_map): Make the calculations more obvious.
63071         (init_dfa, parse_bracket_exp, build_charclass_op):
63072         Call calloc and cast result, as glibc does.
63073         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63074         (build_range_exp, build_collating_symbol):
63075         Now internal functions.
63076
63077         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63078
63079         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63080         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63081         Don't depend on VMS; depend on __VMS instead, for POSIX
63082         namespace cleanness.
63083         (regoff_t): Define to ssize_t, not long int.
63084
63085         Remove the REG_ macros named below.  Instead, make the old names
63086         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63087         __USE_GNU_REGEX.
63088         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63089         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63090         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63091         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63092         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63093         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63094         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63095         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63096         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63097         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63098         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63099         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63100         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63101         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63102         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63103         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63104         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63105         (REG_NREGS):
63106         Remove.  All uses replaced by the old RE_* names.
63107         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63108         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63109         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63110         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63111         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63112         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63113         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63114         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63115         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63116         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63117         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63118         Don't bother having these macros be independent of each others'
63119         values, since they no longer exist in the POSIX name space.
63120
63121         Rename the following member names back to their old names,
63122         unless !__USE_GNU_REGEX.  All uses changed back.
63123         (buffer): Renamed from re_buffer.
63124         (allocated): Renamed from re_allocated.
63125         (used): Renamed from re_used.
63126         (syntax): Renamed from re_syntax.
63127         (fastmap): Renamed from re_fastmap.
63128         (translate): Renamed from re_translate.
63129         (can_be_null): Renamed from re_can_be_null.
63130         (regs_allocated): Renamed from re_regs_allocated.
63131         (fastmap_accurate): Renamed from re_fastmap_accurate.
63132         (no_sub): Renamed from re_no_sub.
63133         (not_bol): Renamed from re_not_bol.
63134         (not_eol): Renamed from re_not_eol.
63135         (newline_anchor): Renamed from re_newline_anchor.
63136         (num_regs): Renamed from rm_num_regs.
63137         (start): Renamed from rm_start.
63138         (end): Renamed from rm_end.
63139
63140         (free_state): Move up a bit.
63141
63142         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63143         #define to be empty.
63144         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63145         when that is what is intended.
63146         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63147         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63148         (MAX): New macro.
63149         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63150         All uses changed back to re_malloc, etc.  It's now the caller's
63151         responsibility to check for overflow; all callers changed.
63152         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63153         (re_x2nrealloc): Remove.
63154         (free_state): Remove decl.
63155
63156         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63157         (re_set_registers, re_exec):
63158         Use K&R-style defn.
63159
63160         2006-01-31  Roland McGrath  <roland@redhat.com>
63161
63162         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63163         Reported by Mike Frysinger <vapier@gentoo.org>.
63164
63165         2006-01-15  Andreas Jaeger  <aj@suse.de>
63166
63167         [BZ #1950]
63168         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63169         build_wcs_upper_buffer change.
63170         (build_wcs_upper_buffer): Change return type.
63171
63172         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63173
63174         * lib/regex_internal.h: Include <stdint.h> if available.
63175
63176         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63177
63178         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63179
63180         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63181
63182         * lib/regcomp.c: Adjust for changed secondary hash function.
63183
63184         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63185
63186         * lib/regex.h: Pretty printing.
63187         Clean up namespace a bit.
63188
63189         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63190
63191         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63192         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63193
63194         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63195                     Ulrich Drepper  <drepper@redhat.com>
63196
63197         [BZ #1302]
63198         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63199         changed.
63200         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63201
63202         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63203
63204         [BZ #281]
63205         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63206         * lib/regcomp.c: Remove unnecessary uses of
63207         unsigned RE_TRANSLATE_TYPE.
63208         * lib/regex_internal.h: Likewise.
63209         * lib/regex_internal.c: Likewise.
63210         * lib/regexec.c: Likewise.
63211         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63212
63213         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63214
63215         * lib/regexec.c (find_recover_state): Remove unnecessary
63216         initialization.
63217         (transit_state_bkref): Make DFA a const pointer.
63218         (get_subexp): Likewise.
63219         (check_arrival): Likewise.
63220         (update_cur_sifted_state): Likewise.
63221         (re_search_internal): Likewise.
63222         (prune_impossible_nodes): Likewise.
63223         (acquire_init_state_context): Likewise.
63224         (proceed_next_node): Likewise.
63225         (set_regs): Likewise.
63226         (free_fail_stack_return): Likewise.
63227         (check_arrival_expand_ecl): Mark DFA parameter as const.
63228         (check_arrival_expand_ecl_sub): Likewise.
63229         (check_subexp_limits): Likewise.
63230         (sub_epsilon_src_nodes):  Likewise.
63231         (add_epsilon_src_nodes):  Likewise.
63232         (merge_state_array): Likewise.
63233         (update_regs): Likewise.
63234         (build_trtable): Likewise.
63235         (sift_states_backward): Mark MCTX parameter as const.
63236         (build_sifted_states): Likewise.
63237         (update_cur_sifted_state): Likewise.
63238         (sift_states_mkref): Likewise.
63239         (check_arrival_expand_ecl): Mark eclosure as const.
63240         (check_dst_limits_calc_pos_1): Likewise.
63241         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63242         pointer.
63243
63244         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63245
63246         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63247         (transit_state_sb): Likewise.
63248         (transit_state_mb): Likewise.
63249         (sift_states_iter_mb): Likewise.
63250         (check_arrival_add_next_nodes): Likewise.
63251         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63252         [_LIBC] (re_search_2_stub): Use mempcpy.
63253
63254         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63255         mbrtowc for very simple UTF-8 case.
63256
63257         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63258         a pointer-to-const.
63259         (re_acquire_state_context): Likewise.
63260         * lib/regex_internal.h: Adjust prototypes.
63261
63262         * lib/regex.c: Prevent using C++ compilers.
63263
63264         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63265         (re_acquire_state_context): Likewise.
63266
63267 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * modules/regex (Depends-on): Add ssize_t.
63270
63271 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63272
63273         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63274         translation table.
63275
63276 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63279
63280 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63281             Bruno Haible  <bruno@clisp.org>
63282
63283         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63284         <sys/types.h> and <inttypes.h>.
63285
63286 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63287
63288         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63289         `__error_t_defined', so argp.h will not typedef the former.
63290
63291 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63294         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63295         glibc names.  Even if glibc is changed to conform to POSIX, the
63296         traditional names will be available anyway, since regex depends on
63297         the extensions module.  Also, fix a longstanding typo in the
63298         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63299         reported by Emanuele Giaquinta.  Also, change sense of cached
63300         variable, so that the message makes sense.
63301
63302 2006-03-24  Simon Josefsson  <jas@extundo.com>
63303
63304         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63305         including some doc fixes.
63306         (base64_encode_alloc): Fix +1 bug on allocation failures.
63307
63308 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63309
63310         * lib/base64.c (base64_encode): Do not read past end of array with
63311         unsanitized input on systems with CHAR_BIT > 8.
63312
63313 2006-03-24  Eric Blake  <ebb9@byu.net>
63314
63315         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63316
63317 2006-03-22  Karl Berry  <karl@gnu.org>
63318
63319         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63320         * config/srclistvars.sh (COREUTILS): new var.
63321
63322 2006-03-17  Jim Meyering  <jim@meyering.net>
63323
63324         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63325         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63326
63327 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63330         no longer needs it.  Instead, check that regoff_t is as least
63331         as wide as ptrdiff_t.
63332
63333         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63334         so that our regex.h stays compatible with the installed regex.
63335         This is helpful for installers who configure --without-included-regex.
63336         Problem reported by Emanuele Giaquinta.
63337
63338 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63341         Typedef to long int, not to off_, as POSIX will likely change
63342         in that direction.
63343
63344 2006-03-15  Eric Blake  <ebb9@byu.net>
63345
63346         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63347
63348 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63349
63350         * lib/argp-help.c (validate_uparams): Fix typo
63351         * lib/argp-parse.c (argp_default_options): Consistently begin help
63352         messages with a lowercase letter.
63353
63354 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63355
63356         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63357         overrun buffers and shouldn't be used (much as gets shouldn't be
63358         used).
63359         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63360
63361 2006-03-08  Simon Josefsson  <jas@extundo.com>
63362
63363         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63364         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63365
63366 2006-03-08  Simon Josefsson  <jas@extundo.com>
63367
63368         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63369         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63370
63371 2006-03-08  Simon Josefsson  <jas@extundo.com>
63372
63373         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63374         signal that configure disabled the device.
63375
63376 2006-03-08  Simon Josefsson  <jas@extundo.com>
63377
63378         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63379         languages.
63380
63381 2006-03-07  Simon Josefsson  <jas@extundo.com>
63382
63383         * modules/getopt (Depends-on): Add unistd.
63384
63385         * modules/unistd: New file.
63386
63387 2006-03-07  Simon Josefsson  <jas@extundo.com>
63388
63389         * modules/gc-random: New file.
63390
63391 2006-03-07  Simon Josefsson  <jas@extundo.com>
63392
63393         * m4/unistd_h.m4: New file.
63394
63395 2006-03-07  Simon Josefsson  <jas@extundo.com>
63396
63397         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63398         test to be side-effect free by storing the result in the cache
63399         variable gl_cv_lib_readline, and moving the assignment of
63400         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63401         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63402
63403 2006-03-07  Simon Josefsson  <jas@extundo.com>
63404
63405         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63406         error on missing devices (the functions will return an error).
63407
63408         * m4/gc.m4: Move random stuff to gc-random.m4
63409
63410 2006-03-07  Simon Josefsson  <jas@extundo.com>
63411
63412         * lib/unistd_.h: New file.
63413
63414 2006-03-07  Simon Josefsson  <jas@extundo.com>
63415
63416         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63417
63418 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63421         Problem reported by Juan Manuel Guerrero.
63422
63423 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63424
63425         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63426         the unistd module.
63427         * lib/getlogin_r.c: Likewise.
63428         * lib/getlogin_r.h: Likewise.
63429         * lib/glob.c: Likewise.
63430         * lib/pagealign_alloc.c: Likewise.
63431         * lib/unistd_.h: Remove; no longer needed.
63432
63433 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63436         Add unistd.
63437         * modules/c-stack (Depends-on): Add unistd.
63438         * modules/getlogin_r: Likewise.
63439         * modules/glob: Likewise.
63440         * modules/pagealign_alloc: Likewise.
63441         * modules/unistd (Files): Remove lib/unistd_.h.
63442         (EXTRA_DIST): Remove.
63443         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63444         need unistd_.h.
63445         (MOSTLYCLEANFILES): Remove unistd.h-t.
63446
63447 2006-03-03  Simon Josefsson  <jas@extundo.com>
63448
63449         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63450
63451 2006-03-03  Simon Josefsson  <jas@extundo.com>
63452
63453         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63454         libidn and bison.
63455
63456 2006-03-03  Simon Josefsson  <jas@extundo.com>
63457
63458         * build-aux/maint.mk: Add indent target.
63459
63460 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63461
63462         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63463         our replacement poll.h in any case, to avoid a differing
63464         declaration from a system header.  Seen on AIX.
63465
63466 2006-03-01  Simon Josefsson  <jas@extundo.com>
63467
63468         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63469         <kasal@ucw.cz>.
63470
63471 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * modules/gettime (Depends-on): Add extensions module.
63474         * modules/nanosleep (Depends-on): Likewise.
63475         * modules/settime (Depends-on): Likewise.
63476
63477 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63480         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63481         pedantically.
63482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63483         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63484
63485         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63486         not "==".  Reported by Ralf Wildenhues.
63487
63488 2006-03-01  Karl Berry  <karl@gnu.org>
63489
63490         * doc/Copyright/request-*: new files, synced from gnuorg.
63491
63492 2006-03-01  Karl Berry  <karl@gnu.org>
63493
63494         * config/srclist.txt (Copyright/*): new entries.
63495
63496 2006-02-28  Simon Josefsson  <jas@extundo.com>
63497
63498         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63499
63500 2006-02-27  Simon Josefsson  <jas@extundo.com>
63501
63502         * lib/base64.h: Indent #define's.  From Jim Meyering
63503         <jim@meyering.net>.
63504
63505 2006-02-27  Jim Meyering  <jim@meyering.net>
63506
63507         Revert the change of 2006-02-24, so these files can continue
63508         to be sync'd from gettext.
63509         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63510         of `config.h'.
63511
63512 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * modules/intprops: New file.
63515         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63516         Add intprops.
63517         * modules/getloadavg (Files): Remove lib/intprops.h.
63518         (Depends-on): Add intprops.
63519         * modules/human: Likewise.
63520         * modules/inttostr: Likewise.
63521         * modules/openat: Likewise.
63522         * modules/sig2str: Likewise.
63523         * modules/userspec: Likewise.
63524         * modules/utimecmp: Likewise.
63525         * modules/xnanosleep: Likewise.
63526         * modules/xstrtol: Likewise.
63527
63528 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63529
63530         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63531         * modules/lock-tests (TESTS): Use $(EXEEXT).
63532         * modules/tls-tests: Likewise.
63533         * modules/argp-tests: Likewise.
63534         (check_PROGRAMS): New var, replacing...
63535         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63536
63537 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63538
63539         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63540         `config.h'.
63541
63542 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63545
63546 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63547
63548         Sync from coreutils.
63549         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63550         gl_CHDIR_SAFER.
63551
63552 2006-02-22  Jim Meyering  <jim@meyering.net>
63553
63554         Sync from coreutils.
63555         * m4/chdir-safer.m4: New file.
63556
63557 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63560         AT_FDCWD exceeds INT_MAX.
63561         * lib/openat.h (AT_FDCWD): Likewise.
63562
63563 2006-02-17  Eric Blake  <address@hidden>
63564
63565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63566
63567 2006-02-16  Simon Josefsson  <jas@extundo.com>
63568
63569         * modules/getaddrinfo (Depends-on): Add sys_socket.
63570
63571 2006-02-15  Simon Josefsson  <jas@extundo.com>
63572
63573         * build-aux/maint.mk: Add dsyntax-check rule.
63574
63575 2006-02-15  Eric Blake  <ebb9@byu.net>
63576
63577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63578         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63579         'present but cannot compile' warnings on cygwin.
63580         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63581         use ws2tcpip.h if sys/socket.h works.
63582         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63583         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63584
63585 2006-02-14  Simon Josefsson  <jas@extundo.com>
63586
63587         * modules/maintainer-makefile (Files): Rename.
63588
63589         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63590         and (the local) Makefile.cfg to maint-cfg.mk.
63591
63592         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63593         to the latter.
63594
63595         * modules/maintainer-makefile: New module.
63596
63597         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63598         severaly stripped to make it possible to build it up from scratch
63599         with reliable tests.
63600
63601         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63602         fixes to permit overriding the default actions when configure and
63603         makefile are not available.
63604
63605 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         Sync from coreutils.
63608         * modules/lstat (Depends-on): Don't depend on xalloc.
63609         (License): Change from GPL to LGPL, since this is now simply a
63610         replacement for a libc function.
63611
63612 2006-02-14  Jim Meyering  <jim@meyering.net>
63613
63614         Sync from coreutils.
63615
63616         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63617         failure on deficient systems, and simplify gnulib lgpl dependencies.
63618         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63619         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63620
63621         * lib/xalloc-die.c: Remove unused definition of N_.
63622
63623 2006-02-14  Jim Meyering  <jim@meyering.net>
63624
63625         Sync from coreutils.
63626         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63627         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63628         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63629         double-quote uses of that variable, to accommodate the rare case in
63630         which getmntent is available in none of the libraries checked.  This
63631         happens at least on FreeBSD 5.0.
63632
63633 2006-02-13  Simon Josefsson  <jas@extundo.com>
63634
63635         * gnulib-tool (Usage): Fix --import, from
63636         karl@freefriends.org (Karl Berry).
63637
63638 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63639
63640         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63641
63642 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63643
63644         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63645         "autoupdate" on 2005-12-12.
63646
63647 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         * modules/closeout (Depends-on): Remove atexit.
63650
63651 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63654         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63655
63656 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63659         __EXTENSIONS__ if this causes compilation to fail.  Problem
63660         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63661         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63662
63663 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63666         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63668         All uses changed.
63669
63670 2006-01-26  Simon Josefsson  <jas@extundo.com>
63671
63672         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63673         prototype is visible on mingw32.
63674
63675         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63676         for mingw32.
63677
63678         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63679         mingw32).
63680
63681 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63682
63683         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63684         attempt to open for write; this always fails, at least on POSIX
63685         hosts.  This reinstates the 2006-01-09 change, which was
63686         inadvertently removed.
63687
63688 2006-01-26  Bruno Haible  <bruno@clisp.org>
63689
63690         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63691         Reported by Paul Eggert.
63692
63693 2006-01-26  Bruno Haible  <bruno@clisp.org>
63694             Paul Eggert  <eggert@cs.ucla.edu>
63695
63696         * lib/stdbool_.h (_Bool)
63697         [(! (defined __cplusplus || defined __BEOS__)
63698           && !defined __GNUC__
63699           && !(defined __HP_cc || defined __xlc__
63700                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63701                || defined __sgi))]:
63702         #define to signed char in these cases too; this simplifies
63703         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63704         etc., separately) and makes it more conservative.
63705
63706 2006-01-25  Simon Josefsson  <jas@extundo.com>
63707
63708         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63709         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63710         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63711
63712 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63713
63714         * lib/argp-namefrob.h: Bugfix. Remove stray #
63715
63716 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63719         so that we test the test.
63720         Check for yet another HP-UX cc bug involving *bool |= bool.
63721
63722 2006-01-25  Karl Berry  <karl@gnu.org>
63723
63724         * config/srclist.txt (vasnprintf.c): sync lost.
63725
63726 2006-01-25  Jim Meyering  <jim@meyering.net>
63727
63728         Sync from the stable (b5) branch of coreutils:
63729
63730         * lib/fts.c (fts_children): Don't let close() clobber errno from
63731         failed fchdir().
63732
63733         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63734         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63735         a dangling symlink.  That can also happen at least for ELOOP.
63736         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63737         FYI, this bug predates the inclusion of fts.c in coreutils.
63738
63739         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63740         in their own block, so pre-c99 compilers don't object.
63741
63742         Avoid the double-free (first in fts_read, second in fts_close) that
63743         would occur when an `active' directory is made inaccessible (e.g.,
63744         via chmod a-x) during a traversal.
63745         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63746         before returning.  Reproduce this failure by
63747         mkdir -p a/b; cd a; chmod a-x . b
63748         Reported by Stavros Passas.
63749
63750 2006-01-25  Jim Meyering  <jim@meyering.net>
63751
63752         * lib/fileblocks.c: Remove more useless parentheses.
63753         * lib/readutmp.h: Likewise.
63754
63755 2006-01-25  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63758         warnings.
63759         Reported by Paul Eggert.
63760
63761 2006-01-25  Bruno Haible  <bruno@clisp.org>
63762
63763         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63764         rid of a trap command. For Solaris sh.
63765         Reported by Mark D. Baushke <mdb@gnu.org>.
63766
63767 2006-01-24  Simon Josefsson  <jas@extundo.com>
63768
63769         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63770         Bruno.
63771
63772 2006-01-24  Karl Berry  <karl@gnu.org>
63773
63774         * config/srclist.txt (argp-namefrob.h): sync lost.
63775
63776 2006-01-24  Jim Meyering  <jim@meyering.net>
63777
63778         * modules/openat (Files): Add lib/intprops.h.
63779         From Mark D. Baushke.
63780
63781 2006-01-24  Jim Meyering  <jim@meyering.net>
63782
63783         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63784         Reported by Mark D. Baushke.
63785
63786 2006-01-24  Jim Meyering  <jim@meyering.net>
63787
63788         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63789
63790 2006-01-24  Bruno Haible  <bruno@clisp.org>
63791
63792         * modules/strnlen (Maintainer): Change from glibc to all.
63793
63794 2006-01-24  Bruno Haible  <bruno@clisp.org>
63795
63796         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63797         Patch by Paul Eggert.
63798
63799 2006-01-24  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63802         already has it.
63803         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63804         2005-11-26.
63805
63806         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63807         'signed char' to avoid problems with the built-in _Bool type.
63808         Reported by Paul Eggert on 2005-11-26.
63809
63810 2006-01-24  Bruno Haible  <bruno@clisp.org>
63811
63812         * gnulib-tool (func_import): Avoid constructing complicated sed
63813         expressions inside backquote.
63814         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63815
63816 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63817
63818         These changes imported from libc.
63819         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63820         test and two separate function calls.
63821         * lib/strndup.c (__strndup): Add libc_hidden_def.
63822
63823 2006-01-23  Simon Josefsson  <jas@extundo.com>
63824
63825         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63826         Remove the test_*_SOURCES variable: automake infers it by default.
63827         * modules/tls-tests: Likewise.
63828
63829 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         Work around porting bugs reported by Dieter in
63832         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63833         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63834         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63835         Include "getopt.h" first, to check interface.
63836         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63837         !HAVE_DECL_GETENV.
63838         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63839         (__strndup): Revert to K&R-style function dfns, the glibc style.
63840         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63841         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63842         Include strnlen.h first, to get prototype properly.
63843         (strnlen): Renamed from __strnlen.
63844         Remove weak alias.
63845
63846 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63847
63848         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63849
63850 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * config/srclist.txt: Adjust to reflect glibc reorganization.
63853         This affects only comments.
63854
63855 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63856
63857          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63858          Reported by Bruce Korb <bkorb@gnu.org>.
63859
63860 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63863         to pacify gcc -Wswitch-default.
63864
63865 2006-01-22  Bruno Haible  <bruno@clisp.org>
63866
63867         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63868         temporary buffer for sprintf, take into account the precision also
63869         for 'd', 'i', 'u', 'o', 'x', 'X'.
63870
63871 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63872
63873         * modules/argp-tests: New module
63874         * tests/test-argp.c: New file
63875         * tests/test-argp-2.sh: New file
63876
63877 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63878
63879         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63880         (__argp_base_name): Removed
63881         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63882         typo.
63883         (__argp_base_name): Provide macro definition or extern declaration
63884         depending on the configuration
63885
63886 2006-01-20  Simon Josefsson  <jas@extundo.com>
63887
63888         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63889
63890 2006-01-20  Simon Josefsson  <jas@extundo.com>
63891
63892         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63893
63894 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63897         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63898         Suggested by Bruno Haible.
63899
63900 2006-01-20  Karl Berry  <karl@gnu.org>
63901
63902         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63903         until changes propagate, I guess.
63904
63905 2006-01-19  Simon Josefsson  <jas@extundo.com>
63906
63907         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63908
63909 2006-01-19  Simon Josefsson  <jas@extundo.com>
63910
63911         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63912
63913 2006-01-19  Simon Josefsson  <jas@extundo.com>
63914
63915         * gnulib-tool: Set check_PROGRAMS.
63916
63917         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63918         modules/des-tests, modules/gc-arcfour-tests,
63919         modules/gc-arctwo-tests, modules/gc-des-tests,
63920         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63921         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63922         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63923         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63924         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63925         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63926         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63927         test_*_SOURCES.
63928
63929 2006-01-18  Simon Josefsson  <jas@extundo.com>
63930
63931         * modules/socklen (Depends-on): Depend on sys_socket.
63932
63933 2006-01-18  Simon Josefsson  <jas@extundo.com>
63934
63935         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63936         modules/des-tests, modules/gc-arcfour-tests,
63937         modules/gc-arctwo-tests, modules/gc-des-tests,
63938         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63939         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63940         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63941         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63942         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63943         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63944         $(EXEEXT) to automake TESTS variable, for mingw32.
63945
63946 2006-01-17  Simon Josefsson  <jas@extundo.com>
63947
63948         * modules/socklen (Include): Need sys/socket.h.
63949
63950 2006-01-17  Bruno Haible  <bruno@clisp.org>
63951
63952         * modules/ssize_t (Include): Add <sys/types.h>.
63953
63954 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63957         it's not portable and it doesn't work with cross-compiles.
63958         Problem reported by Bruno Haible.  Fix missing-$ typo in
63959         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63960         -zignore from being used with Sun's C compiler.
63961
63962 2006-01-12  Simon Josefsson  <jas@extundo.com>
63963
63964         * lib/base64.c: Fix warning, reported by Bruno Haible
63965         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63966
63967 2006-01-12  Bruno Haible  <bruno@clisp.org>
63968
63969         * modules/ldd: New file.
63970         * build-aux/ldd.sh.in: New file.
63971         * MODULES.html.sh (Support for building libraries and executables): Add
63972         ldd.
63973
63974 2006-01-12  Bruno Haible  <bruno@clisp.org>
63975
63976         * m4/ldd.m4: New file.
63977
63978 2006-01-12  Bruno Haible  <bruno@clisp.org>
63979
63980         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63981         endless loop while replacing $auxdir with build-aux.
63982
63983 2006-01-11  Simon Josefsson  <jas@extundo.com>
63984
63985         * lib/stdint_.h (SIZE_MAX): Add missing (.
63986
63987 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         Sync from coreutils.
63990         * lib/md5.c: Fix commentary typos.
63991         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63992         * lib/md5.h (__attribute__): Remove; unused.
63993         * lib/sha1.c: Fix commentary to match md5 better.
63994         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63995         so that we don't need to worry about alignment.  All uses changed.
63996         This merges the 2005-10-28 md5 change into sha1.
63997
63998 2006-01-11  Jim Meyering  <jim@meyering.net>
63999
64000         Sync from coreutils.
64001         * lib/md5.c (OP): Fix spacing.
64002
64003 2006-01-11  Bruno Haible  <bruno@clisp.org>
64004
64005         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64006         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64007         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64008
64009 2006-01-11  Bruno Haible  <bruno@clisp.org>
64010
64011         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64012         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64013         the "early" section as well.
64014
64015 2006-01-11  Bruno Haible  <bruno@clisp.org>
64016
64017         Avoid "ar: no archive members specified" error on MacOS X.
64018         * gnulib-tool (func_modules_add_dummy): New function.
64019         (func_import, func_create_testdir): Invoke it.
64020
64021 2006-01-11  Bruno Haible  <bruno@clisp.org>
64022
64023         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64024         with $auxdir in AC_CONFIG_FILES statements.
64025
64026 2006-01-11  Bruno Haible  <bruno@clisp.org>
64027
64028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64029         Initialize also noinst_HEADERS to empty.
64030
64031 2006-01-11  Bruno Haible  <bruno@clisp.org>
64032
64033         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64034         variables.
64035         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64036         autoreconf.
64037
64038 2006-01-11  Bruno Haible  <bruno@clisp.org>
64039
64040         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64041         overridable by the user.
64042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64043
64044 2006-01-10  Simon Josefsson  <jas@extundo.com>
64045
64046         * modules/sys_socket: New file.
64047
64048 2006-01-10  Simon Josefsson  <jas@extundo.com>
64049
64050         * m4/sys_socket_h.m4: New file.
64051
64052 2006-01-10  Simon Josefsson  <jas@extundo.com>
64053
64054         * lib/socket_.h: New file.
64055
64056 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64057
64058         * modules/readutmp (Maintainer): Add myself.
64059
64060 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64063         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64064         People who are still concerned with buggy memcmp implementations
64065         can invoke gl_FUNC_MEMCMP themselves.
64066
64067 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/regex_internal.h (BITSET_WORD_BITS):
64070         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64071         preprocessor mishandles large unsigned values as if they were signed.
64072         Problem reported by Claudio Fontana in
64073         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64074
64075 2006-01-10  Jim Meyering  <jim@meyering.net>
64076
64077         Avoid the double-free (first in fts_read, second in fts_close) that
64078         would occur when an `active' directory is made inaccessible (e.g.,
64079         via chmod a-x) during a traversal.
64080         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64081         before returning.  Reproduce this failure by
64082         mkdir -p a/b; cd a; chmod a-x . b
64083         Reported by Stavros Passas.
64084
64085         Sync from coreutils.
64086         * lib/sha1.c: Tweak grammar in a comment.
64087
64088 2006-01-10  Jim Meyering  <jim@meyering.net>
64089
64090         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64091         Patch by Joerg Sonnenberger.
64092
64093 2006-01-10  Bruno Haible  <bruno@clisp.org>
64094
64095         * modules/readutmp: Depend on module free.
64096         * modules/strtok_r: Depend on module restrict.
64097
64098 2006-01-10  Bruno Haible  <bruno@clisp.org>
64099
64100         * modules/gettext (configure.ac): Add an invocation of
64101         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64102
64103 2006-01-10  Bruno Haible  <bruno@clisp.org>
64104
64105         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64106         Reported by Werner Lemberg <wl@gnu.org>.
64107
64108 2006-01-10  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/localcharset.c: Update from GNU gettext.
64111
64112 2006-01-10  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/argp.h (__const): Remove macro. Use const instead.
64115         * lib/argp-fmtstream.h (__const): Likewise.
64116         * lib/glob_.h (__const): Remove macro.
64117         * lib/glob-libc.h: Use const instead of __const.
64118
64119 2006-01-10  Bruno Haible  <bruno@clisp.org>
64120
64121         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64122         variable.
64123         Needed to avoid an automake error regarding the 'gettext' module.
64124
64125 2006-01-09  Simon Josefsson  <jas@extundo.com>
64126
64127         * modules/inet_ntop (Depends-on): Add restrict.
64128
64129 2006-01-09  Simon Josefsson  <jas@extundo.com>
64130
64131         * modules/gc-rijndael-tests (License): Put under LGPL.
64132
64133         * modules/gc-des-tests (License): Likewise.
64134
64135         * modules/gc-arcfour-tests (License): Likewise.
64136
64137         * modules/gc-arctwo-tests (License): Likewise.
64138
64139         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64140
64141         * modules/gc-hmac-sha1-tests (Files): Likewise.
64142
64143         * modules/gc-hmac-md5-tests (License): Likewise.
64144
64145         * modules/gc-sha1-tests (License): Likewise.
64146
64147         * modules/gc-md5-tests (License): Likewise.
64148
64149         * modules/gc-md4-tests (License): Likewise.
64150
64151         * modules/gc-md2-tests (License): Likewise.
64152
64153         * modules/gc-tests (License): Likewise.
64154
64155         * modules/des-tests (License): Likewise.
64156
64157         * modules/md4-tests (License): Likewise.
64158
64159         * modules/md2-tests (License): Likewise.
64160
64161 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         Sync from coreutils:
64164
64165         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64166         * modules/lib-ignore: New file.
64167         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64168         chdir-safer.m4, lchmod.m4.
64169         * modules/openat: Add mkdirat.c, openat-priv.h.
64170
64171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         Sync from coreutils.
64174         * m4/lib-ignore.m4: New file.
64175         * m4/lchmod.m4: New file.
64176
64177 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64178
64179         Sync from coreutils.
64180         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64181         for write access: POSIX says that must fail.
64182         * lib/fts.c (diropen): Likewise.
64183         * lib/save-cwd.c (save_cwd): Likewise.
64184         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64185         well, for minor improvements on hosts that lack O_DIRECTORY.
64186         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64187         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64188         Fall back on chown if open failed with EACCES.
64189
64190         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64191         Report an error at compile-time if only a 1-second nominal clock
64192         resolution is found.
64193
64194         * lib/lchmod.h: New file.
64195         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64196         (make_dir_parents): Use lchown rather than chown, and
64197         lchmod rather than chmod.
64198
64199         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64200         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64201         "proc" reported by n0dalus.
64202
64203         * lib/mountlist.c: Include <limits.h>.
64204         (dev_from_mount_options)
64205         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64206         New function.  It no longer assumes "dev=" has the System V meaning
64207         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64208         (read_file_system_list)
64209         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64210         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64211         dev= in that case.
64212
64213         * lib/posixtm.h (PDS_PRE_2000): New macro.
64214         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64215         allow_century.  All usages changed.  Reject dates outside the range
64216         1969-1999 if PDS_PRE_2000 is used.
64217
64218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         Sync from coreutils.
64221         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64222         (Time of day items): Mention the possibility of leap seconds.
64223         Problem reported by Dr. David Alan Gilbert.
64224
64225 2006-01-09  Jim Meyering  <jim@meyering.net>
64226
64227         Sync from coreutils.
64228
64229         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64230
64231         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64232
64233         * lib/modechange.c (mode_compile): Reject an invalid mode string
64234         that starts with an octal digit.  From Andreas Gruenbacher.
64235
64236         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64237         and dup to open_safer and dup_safer, respectively.
64238         (openat_permissive): Fix typo in comment.
64239
64240         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64241         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64242         (_): Remove; no longer needed.
64243         (openat): Renamed from rpl_openat; no need for rpl_openat
64244         since openat.h renames openat for us.
64245         Replace most of the body with a call to openat_permissive,
64246         to avoid duplicate code.
64247         Port to (probably hypothetical) environments were mode_t is
64248         wider than int.
64249         (openat_permissive): Require mode arg, so that we can check
64250         types better.  Put it just after flags.  Change cwd failure
64251         indicator from pointer-to-bool to pointer-to-errno-value.
64252         All callers changed.
64253         Invoke openat_save_fail and/or openat_restore_fail if
64254         cwd_errno is null, so that openat can call us.
64255         (openat_permissive, fdopendir, fstatat, unlinkat):
64256         Simplify errno handling to avoid some duplicate code,
64257         as it's OK to set errno on success.
64258         * lib/openat.h: Revamp code so that function macros depend on
64259         __OPENAT_PREFIX only, not also on AT_FDCWD.
64260         (openat_ro): Remove.  Caller changed to use openat_permissive.
64261         (openat_permissive): Now a macro, if not a function.
64262         (openat_restore_fail, openat_save_fail): Now always functions,
64263         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64264
64265         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64266         and openat.c.
64267         * lib/mkdirat.c: Include openat-priv.h.
64268         Remove definitions of macros defined therein.
64269         * lib/openat.c: Likewise.
64270
64271         * lib/mkdirat.c (mkdirat): New file and function.
64272         * lib/openat.h (mkdirat): Declare.
64273
64274         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64275
64276         * lib/openat.h (openat_permissive): Declare.
64277         (openat_ro): Define.
64278
64279         * lib/openat.c (EXPECTED_ERRNO): New macro.
64280         (openat_permissive): New function -- used in remove.c rewrite.
64281         (all functions): Set errno just before returning, only if there
64282         was an actual failure.
64283         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64284
64285         Emulate openat-family functions using Linux's procfs, if possible.
64286         Idea and some code based on Ulrich Drepper's glibc changes.
64287
64288         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64289         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64290         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64291         before falling back on save_cwd and restore_cwd.
64292         (fdopendir, fstatat, unlinkat): Likewise.
64293
64294         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64295         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64296
64297         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64298         as second argument to va_arg.  Otherwise, some versions of gcc
64299         warn that `if this code is reached, the program will abort'.
64300
64301 2006-01-09  Jim Meyering  <jim@meyering.net>
64302
64303         Sync from coreutils.
64304         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64305         Require openat-priv.h.
64306
64307 2006-01-09  Bruno Haible  <bruno@clisp.org>
64308
64309         * modules/strnlen (Include): Use strnlen.h.
64310
64311 2006-01-09  Bruno Haible  <bruno@clisp.org>
64312
64313         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64314
64315 2006-01-09  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/sysexit_.h (EX_OK): New macro.
64318         Suggested by Martin Lambers <marlam@marlam.de>.
64319
64320 2006-01-09  Bruno Haible  <bruno@clisp.org>
64321
64322         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64323         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64324
64325 2006-01-09  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64328         numbers.
64329
64330 2006-01-09  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64333         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64334         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64335         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64336
64337 2006-01-09  Bruno Haible  <bruno@clisp.org>
64338
64339         * build-aux/javacomp.sh.in: New file, moved from lib/.
64340         * modules/javacomp-script (Files): Update.
64341         (configure.ac): Add AC_CONFIG_FILES invocation.
64342         (EXTRA_DIST): Remove variable.
64343
64344         * build-aux/javaexec.sh.in: New file, moved from lib/.
64345         * modules/javaexec (Files): Update.
64346         (configure.ac): Add AC_CONFIG_FILES invocation.
64347         (EXTRA_DIST): Remove javaexec.sh.in.
64348
64349         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64350         * modules/csharpcomp-script (Files): Update.
64351         (configure.ac): Add AC_CONFIG_FILES invocation.
64352         (EXTRA_DIST): Remove variable.
64353
64354         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64355         * modules/csharpexec (Files): Update.
64356         (configure.ac): Add AC_CONFIG_FILES invocation.
64357         (EXTRA_DIST): Remove csharpexec.sh.in.
64358
64359 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64360
64361         Sync from coreutils.
64362
64363         Add POSIX ACL support
64364         * lib/acl.h (copy_acl, set_acl): Add declarations.
64365         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64366         systems other than Linux.
64367         (chmod_or_fchmod): New function: use fchmod when possible,
64368         and chmod otherwise.
64369         (file_has_acl): Add a POSIX ACL implementation, with a
64370         Linux-specific subcase.
64371         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64372         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64373         acls are unsupported.
64374         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64375         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64376         are unsupported.
64377
64378 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64379
64380         Sync from coreutils.
64381         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64382
64383 2006-01-07  Bruno Haible  <bruno@clisp.org>
64384
64385         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64386         gl_EARLY.
64387
64388 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64391         Problem reported for Mingw by Mark Junker.
64392
64393 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         * README: Gnulib normally doesn't generate a tarball.
64396
64397 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64400         long int, not int, for nanosecond counts, so that people who are
64401         used to POSIX struct timespec won't be surprised.  Reported by Jim
64402         Meyering.
64403
64404 2005-12-28  Bruno Haible  <bruno@clisp.org>
64405
64406         * build-aux/config.rpath: Update from GNU gettext.
64407
64408 2005-12-16  Jim Meyering  <jim@meyering.net>
64409
64410         * modules/fprintftime: New module.
64411         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64412
64413 2005-12-16  Jim Meyering  <jim@meyering.net>
64414
64415         * m4/fprintftime.m4: New file.
64416
64417 2005-12-16  Jim Meyering  <jim@meyering.net>
64418
64419         * lib/fprintftime.c, lib/fprintftime.h: New files.
64420
64421 2005-12-15  Simon Josefsson  <jas@extundo.com>
64422
64423         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64424         new m4/socklen.m4.
64425
64426 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64427
64428         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64429         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64430
64431 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64432
64433         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64434         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64435         struct uparams is valid. Fall back to the default values if it is
64436         not.
64437
64438 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64439
64440         * modules/argp (Files): Add argp-pin.c
64441         (Depends-on): dirname
64442         (lib_SOURCES): Add argp-pin.c
64443
64444 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64445
64446         * m4/argp.m4:  Check if program_invocation_name and
64447         program_invocation_short_name are declared and define appropriate
64448         macros if they are not.
64449
64450 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64451
64452         * lib/argp-help.c (__argp_base_name): New function
64453         (__argp_short_program_name): Rewrite using __argp_base_name
64454         * lib/argp-namefrob.h: Define program_invocation_name and
64455         program_invocation_short_name if requested
64456         (__argp_base_name): Add prototype
64457         * lib/argp-parse.c (argp_def): Use gettext wrappers
64458         (argp_default_parser): Use __argp_base_name
64459         * lib/argp-pin.c: New file. Defines program_invocation_name and
64460         program_invocation_short_name on systems that lack them.
64461
64462 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64465         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64466         porting problem reported by Georg Schwarz in
64467         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64468
64469 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64472         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64473         porting problem reported by Georg Schwarz in
64474         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64475
64476 2005-12-05  Bruno Haible  <bruno@clisp.org>
64477
64478         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64479         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64480         Reported by Mark Junker <mjscod@gmx.de>.
64481
64482 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64485         Use implementation from Albert Chin, with some
64486         comments/corrections by Stepan Kasal and myself.
64487
64488 2005-12-02  Bruno Haible  <bruno@clisp.org>
64489
64490         * gnulib-tool (func_import): Accept GPLed build tool modules when
64491         --lgpl is given.
64492         * modules/csharpcomp-script: New file.
64493         * modules/csharpcomp: Depend on it.
64494         * modules/javacomp-script: New file.
64495         * modules/javacomp: Depend on it.
64496         Suggested by Simon Josefsson.
64497
64498 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64501         statement, to work around an HP-UX 10.20 compiler bug reported by
64502         Peter O'Gorman.
64503
64504 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64505
64506         * modules/savedir (Depends-on): Add openat.
64507
64508 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64511         (uintmax_t) [defined uintmax_t]: Do not declare.
64512         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64513         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64514         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64515         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64516         sake of portability to weird hosts that C allows (though we don't
64517         know of any practical examples).
64518
64519         * lib/savedir.h (fdsavedir): New decl.
64520         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64521         contains most of the former guts of savedir.
64522         (savedir): Use savedirstream.
64523         Include "openat.h".
64524
64525 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * modules/obstack (Files): Add m4/ulonglong.m4.
64528         Problem reported by Davide Angelocola.
64529
64530 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64531
64532         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64533         coreutils no longer futzes with rounding modes.
64534
64535 2005-11-14  Jim Meyering  <jim@meyering.net>
64536
64537         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64538         replacement of mkstemp.
64539
64540 2005-11-10  Simon Josefsson  <jas@extundo.com>
64541
64542         * lib/readline.c: Remove EOL.
64543
64544 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * modules/gethrxtime (Depends-on): Add gettime.
64547
64548 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64551         or gettimeofday; no longer needed.
64552
64553 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64554
64555         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64556         time business.
64557         (gethrxtime) [! (HAVE_NANOUPTIME
64558         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64559         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64560         our own approximation.
64561
64562 2005-11-08  Eric Blake  <ebb9@byu.net>
64563
64564         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64565
64566 2005-11-08  Eric Blake  <ebb9@byu.net>
64567
64568         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64569
64570 2005-11-04  Bruno Haible  <bruno@clisp.org>
64571
64572         * gnulib-tool: Implement --update mode.
64573
64574 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         Fix porting problem reported by Theodoros V. Kalamatianos.
64577         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64578         Don't assume that futimes failing means we must fail.
64579
64580 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64581
64582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64583         variables to suggest the intended function of the PATH_MAX check.
64584
64585 2005-10-30  Kean Johnston  <jkj@sco.com>
64586
64587         Trivial changes to support SCO systems.
64588         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64589         as PATH_MAX.
64590         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64591         where __ptr is null when no I/O is pending.
64592
64593 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64596         leave errno alone.  Problem reported by Dmitry V. Levin.
64597
64598 2005-10-28  Simon Josefsson  <jas@extundo.com>
64599
64600         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64601         Test more.
64602
64603         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64604
64605         * modules/md2, modules/md2-tests: New files.
64606
64607 2005-10-28  Simon Josefsson  <jas@extundo.com>
64608
64609         * m4/inet_ntop.m4: More tests.
64610
64611         * m4/gc-md2.m4, md2.m4: New file.
64612
64613 2005-10-28  Simon Josefsson  <jas@extundo.com>
64614
64615         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64616         "restrict" keywords, as per POSIX.  Protect the function
64617         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64618         Don't use K&R prototypes.  Check the sprintf return values.
64619         Re-define EAFNOSUPPORT if not present.  Indent.
64620
64621         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64622         suggested by Bruno Haible <bruno@clisp.org>.
64623
64624         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64625
64626         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64627
64628         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64629         libgcrypt).
64630
64631         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64632
64633         * lib/md2.h, lib/md2.c: New files.
64634
64635 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64636
64637         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64638         errno alone.  Problem reported by Frederic Jolliton.
64639
64640 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64641
64642         * modules/verify (License): Change from GPL to LGPL.  This is a
64643         tiny module and there are apparently near-equivalents that are
64644         under the BSD license.
64645
64646 2005-10-24  Simon Josefsson  <jas@extundo.com>
64647
64648         * modules/sha1: Relicense to LGPL.
64649
64650 2005-10-24  Simon Josefsson  <jas@extundo.com>
64651
64652         * lib/md4.h: Shrink buffer size, now that we changed the type.
64653
64654 2005-10-23  Simon Josefsson  <jas@extundo.com>
64655
64656         * gnulib-tool (func_import): Fix --tests-base.
64657
64658 2005-10-22  Simon Josefsson  <jas@extundo.com>
64659
64660         * modules/arcfour (Depends-on): Need stdint.
64661
64662 2005-10-22  Simon Josefsson  <jas@extundo.com>
64663
64664         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64665         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64666
64667 2005-10-22  Simon Josefsson  <jas@extundo.com>
64668
64669         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64670         suggested by Bruno Haible <bruno@clisp.org>.
64671
64672 2005-10-22  Simon Josefsson  <jas@extundo.com>
64673
64674         * lib/crc.h: Include stddef.h, for size_t.
64675
64676 2005-10-22  Simon Josefsson  <jas@extundo.com>
64677
64678         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64679         arcfour_context struct (simplify test vector testing in GNU
64680         Shishi).
64681
64682 2005-10-21  Simon Josefsson  <jas@extundo.com>
64683
64684         * modules/des, modules/des-tests: New files.
64685
64686         * modules/gc-des, modules/gc-des-tests: New files.
64687
64688         * tests/test-des.c, tests/test-gc-des.c: New file.
64689
64690 2005-10-21  Simon Josefsson  <jas@extundo.com>
64691
64692         * modules/arctwo, modules/arctwo-tests: New files.
64693
64694         * tests/test-arctwo.c: New file.
64695
64696         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64697
64698         * tests/test-gc-arctwo.c: New file.
64699
64700 2005-10-21  Simon Josefsson  <jas@extundo.com>
64701
64702         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64703         Bruno Haible <bruno@clisp.org>.
64704
64705         * m4/gc-des.m4: New file.
64706
64707 2005-10-21  Simon Josefsson  <jas@extundo.com>
64708
64709         * m4/arctwo.m4: New file.
64710
64711         * m4/gc-arctwo.m4: New file.
64712
64713 2005-10-21  Simon Josefsson  <jas@extundo.com>
64714
64715         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64716         block.
64717
64718 2005-10-21  Simon Josefsson  <jas@extundo.com>
64719
64720         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64721         <bruno@clisp.org>.
64722
64723         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64724
64725         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64726         Bruno Haible <bruno@clisp.org>.
64727
64728         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64729         <bruno@clisp.org>.
64730
64731 2005-10-21  Simon Josefsson  <jas@extundo.com>
64732
64733         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64734
64735 2005-10-21  Simon Josefsson  <jas@extundo.com>
64736
64737         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64738
64739 2005-10-21  Simon Josefsson  <jas@extundo.com>
64740
64741         * lib/des.h, lib/des.c: New files.
64742
64743         * lib/gc-gnulib.c: Support DES.c
64744
64745 2005-10-21  Simon Josefsson  <jas@extundo.com>
64746
64747         * lib/arctwo.h, lib/arctwo.c: New files.
64748
64749         * lib/gc-gnulib.c: Support ARCTWO.
64750
64751 2005-10-21  Simon Josefsson  <jas@extundo.com>
64752
64753         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64754         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64755
64756 2005-10-21  Simon Josefsson  <jas@extundo.com>
64757
64758         * gnulib-tool (func_import, func_create_testdir): Define automake
64759         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64760         Makefile.am snippet),
64761         suggested by Bruno Haible <bruno@clisp.org>.
64762
64763         * modules/gc (Makefile.am): Use it.
64764
64765 2005-10-21  Bruno Haible  <bruno@clisp.org>
64766
64767         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64768         patch.
64769
64770 2005-10-19  Simon Josefsson  <jas@extundo.com>
64771
64772         * tests/test-gc-rijndael.c: New file.
64773
64774         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64775
64776 2005-10-19  Simon Josefsson  <jas@extundo.com>
64777
64778         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64779         interface too.
64780
64781 2005-10-19  Simon Josefsson  <jas@extundo.com>
64782
64783         * tests/test-gc-arcfour.c: New file.
64784
64785         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64786
64787 2005-10-19  Simon Josefsson  <jas@extundo.com>
64788
64789         * modules/gc-md4, modules/gc-md4-tests: New file.
64790
64791         * tests/test-gc-md4.c: New file.
64792
64793 2005-10-19  Simon Josefsson  <jas@extundo.com>
64794
64795         * m4/gc-md4.m4: New file.
64796
64797 2005-10-19  Simon Josefsson  <jas@extundo.com>
64798
64799         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64800         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64801         <kasal@ucw.cz>.
64802
64803 2005-10-19  Simon Josefsson  <jas@extundo.com>
64804
64805         * m4/gc-arcfour.m4: New file.
64806
64807         * m4/gc-rijndael.m4: New file.
64808
64809 2005-10-19  Simon Josefsson  <jas@extundo.com>
64810
64811         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64812
64813 2005-10-19  Simon Josefsson  <jas@extundo.com>
64814
64815         * lib/gc-gnulib.c: Support ARCFOUR.
64816
64817 2005-10-19  Simon Josefsson  <jas@extundo.com>
64818
64819         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64820         support.
64821
64822         * lib/gc.h: Add ECB enum type.
64823
64824         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64825
64826 2005-10-18  Simon Josefsson  <jas@extundo.com>
64827
64828         * tests/test-md5.c: New file.
64829
64830         * modules/md5-tests: New file.
64831
64832 2005-10-18  Simon Josefsson  <jas@extundo.com>
64833
64834         * tests/test-md4.c: New file.
64835
64836         * modules/md4, modules/md4-tests: New files.
64837
64838 2005-10-18  Simon Josefsson  <jas@extundo.com>
64839
64840         * m4/md4.m4: New file.
64841
64842 2005-10-18  Simon Josefsson  <jas@extundo.com>
64843
64844         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64845
64846 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64847
64848         * gnulib-tool (func_create_testdir): Omit the second check whether
64849         BUILT_SOURCES in nonempty.
64850
64851 2005-10-17  Simon Josefsson  <jas@extundo.com>
64852
64853         * tests/test-rijndael.c: New file.
64854
64855 2005-10-17  Simon Josefsson  <jas@extundo.com>
64856
64857         * modules/sha1: Depend on stdint instead of md5.
64858
64859         * modules/md5: Depend on stdint, remove uint32_t.
64860
64861 2005-10-17  Simon Josefsson  <jas@extundo.com>
64862
64863         * modules/gc-sha1-tests: New file.
64864
64865         * tests/test-gc-sha1.c: New file.
64866
64867 2005-10-17  Simon Josefsson  <jas@extundo.com>
64868
64869         * m4/md5.m4: Remove call to uint32_t.m4.
64870
64871 2005-10-17  Simon Josefsson  <jas@extundo.com>
64872
64873         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64874
64875         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64876         md5.h.
64877
64878         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64879
64880         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64881
64882 2005-10-17  Simon Josefsson  <jas@extundo.com>
64883
64884         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64885
64886 2005-10-17  Simon Josefsson  <jas@extundo.com>
64887
64888         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64889
64890 2005-10-17  Simon Josefsson  <jas@extundo.com>
64891
64892         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64893
64894         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64895
64896 2005-10-17  Bruno Haible  <bruno@clisp.org>
64897
64898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64899         that it can also be used in a test.
64900
64901 2005-10-16  Bruno Haible  <bruno@clisp.org>
64902
64903         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64904         TESTS_ENVIRONMENT, so that individual tests can augment it.
64905
64906         * gnulib-tool (func_create_testdir): Use an intermediate target for
64907         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64908         macros, like $(ALLOCA_H), which cannot be passed through the command
64909         line.
64910
64911 2005-10-15  Simon Josefsson  <jas@extundo.com>
64912
64913         * modules/rijndael-tests: New file.
64914
64915         * modules/rijndael: New file.
64916
64917 2005-10-15  Simon Josefsson  <jas@extundo.com>
64918
64919         * m4/rijndael.m4: New file.
64920
64921 2005-10-15  Simon Josefsson  <jas@extundo.com>
64922
64923         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64924
64925         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64926
64927 2005-10-14  Simon Josefsson  <jas@extundo.com>
64928
64929         * tests/test-arcfour.c: New file.
64930
64931         * modules/arcfour, modules/arcfour-tests: New files.
64932
64933 2005-10-14  Simon Josefsson  <jas@extundo.com>
64934
64935         * m4/arcfour.m4: New file.
64936
64937 2005-10-14  Simon Josefsson  <jas@extundo.com>
64938
64939         * lib/arcfour.h, lib/arcfour.c: New files.
64940
64941 2005-10-14  Roland McGrath  <roland@redhat.com>
64942
64943         Import from libc.  [BZ #1331]
64944         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64945         macro argument.
64946         Reported by Matej Vela <vela@debian.org>.
64947
64948 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64951         include <wchar.h>; no longer needed.
64952
64953 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64956
64957 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64958         and  Ulrich Drepper  <drepper@redhat.com>
64959
64960         Import from libc.
64961         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64962         instead of inline stream orientation test and two separate
64963         function calls.  Pay no attention to USE_IN_LIBIO.
64964
64965 2005-10-13  Simon Josefsson  <jas@extundo.com>
64966
64967         * modules/gc-hmac-md5-tests: New file.
64968
64969         * tests/test-gc-hmac-sha1.c: New file.
64970
64971         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64972
64973         * modules/gc-hmac-md5-tests: New file.
64974
64975         * tests/test-gc-md5.c: New file.
64976
64977         * modules/gc-md5-tests: New file.
64978
64979 2005-10-13  Simon Josefsson  <jas@extundo.com>
64980
64981         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64982         Move memory allocation outside of loop.
64983
64984 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64985
64986         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64987         intermediate directory is in a read-only file system.  Problem
64988         reported by Eric Blake.
64989
64990 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64991
64992         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64993
64994 2005-10-12  Simon Josefsson  <jas@extundo.com>
64995
64996         * tests/test-hmac-sha1.c: New file.
64997
64998         * modules/hmac-sha1-tests: New file.
64999
65000         * modules/hmac-sha1: New file.
65001
65002 2005-10-12  Simon Josefsson  <jas@extundo.com>
65003
65004         * modules/gc-sha1: New file.
65005
65006 2005-10-12  Simon Josefsson  <jas@extundo.com>
65007
65008         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65009
65010         * tests/test-gc-pbkdf2-sha1.c: New file.
65011
65012 2005-10-12  Simon Josefsson  <jas@extundo.com>
65013
65014         * modules/gc-md5, modules/gc-hmac-md5: New files.
65015
65016         * modules/gc (Files): Remove md5, memxor and hmac files.
65017
65018 2005-10-12  Simon Josefsson  <jas@extundo.com>
65019
65020         * m4/gc-pbkdf2-sha1.m4: New file.
65021
65022         * m4/gc-hmac-sha1.m4: New file.
65023
65024         * m4/gc-sha1: New file.
65025
65026         * m4/hmac-sha1.m4: New file.
65027
65028 2005-10-12  Simon Josefsson  <jas@extundo.com>
65029
65030         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65031
65032         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65033
65034 2005-10-12  Simon Josefsson  <jas@extundo.com>
65035
65036         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65037         suggested by Bruno Haible <bruno@clisp.org>.
65038
65039 2005-10-12  Simon Josefsson  <jas@extundo.com>
65040
65041         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65042
65043 2005-10-12  Simon Josefsson  <jas@extundo.com>
65044
65045         * lib/gc-pbkdf2-sha1.c: New file.
65046
65047         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65048
65049 2005-10-12  Simon Josefsson  <jas@extundo.com>
65050
65051         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65052
65053         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65054
65055 2005-10-12  Simon Josefsson  <jas@extundo.com>
65056
65057         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65058         GC_USE_HMAC_MD5, respectively.
65059
65060         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65061         (gc_md5): Fix typo.
65062
65063         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65064
65065         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65066
65067         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65068
65069 2005-10-12  Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65072         Reported by Stepan Kasal <kasal@ucw.cz>.
65073
65074 2005-10-11  Simon Josefsson  <jas@extundo.com>
65075
65076         * tests/test-crc.c: New file.
65077
65078         * modules/crc, modules/crc-tests: New files.
65079
65080 2005-10-11  Simon Josefsson  <jas@extundo.com>
65081
65082         * m4/crc.m4: New file.
65083
65084 2005-10-11  Simon Josefsson  <jas@extundo.com>
65085
65086         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65087
65088         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65089
65090         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65091
65092 2005-10-11  Simon Josefsson  <jas@extundo.com>
65093
65094         * lib/crc.h, lib/crc.c: New files.
65095
65096         * lib/gc.h (gc_hash_buffer): Add doc.
65097
65098 2005-10-11  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/c-strcasestr: New file.
65101         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65102
65103 2005-10-11  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/c-strcase: New file.
65106         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65107
65108 2005-10-11  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/strcasecmp.c: Include limits.h.
65111         (strcasecmp): Avoid integer overflow on exotic platforms.
65112         * lib/strncasecmp.c: Include limits.h.
65113         (strncasecmp): Avoid integer overflow on exotic platforms.
65114         Reported by Paul Eggert.
65115
65116 2005-10-11  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/c-strcasestr.h: New file, from GNU gettext.
65119         * lib/c-strcasestr.c: New file, from GNU gettext.
65120
65121 2005-10-11  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/c-strcase.h: New file, from GNU gettext.
65124         * lib/c-strcasecmp.c: New file, from GNU gettext.
65125         * lib/c-strncasecmp.c: New file, from GNU gettext.
65126
65127 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65128
65129         * modules/mempcpy (License): GPL -> LGPL.
65130         * modules/strchrnul (License): Likewise.
65131         * modules/sysexits (License): Likewise.
65132
65133 2005-10-08  Simon Josefsson  <jas@extundo.com>
65134
65135         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65136
65137 2005-10-07  Simon Josefsson  <jas@extundo.com>
65138
65139         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65140
65141 2005-10-06  Simon Josefsson  <jas@extundo.com>
65142
65143         * tests/test-hmac-md5.c: New file.
65144
65145         * modules/hmac-md5-tests: New file.
65146
65147         * modules/hmac-md5: New file.
65148
65149 2005-10-06  Simon Josefsson  <jas@extundo.com>
65150
65151         * m4/hmac-md5.m4: New file.
65152
65153         * m4/memxor.m4: Require gl_C_RESTRICT.
65154
65155 2005-10-06  Simon Josefsson  <jas@extundo.com>
65156
65157         * lib/memxor.c (memxor): Avoid casts and warnings.
65158
65159 2005-10-06  Simon Josefsson  <jas@extundo.com>
65160
65161         * lib/hmac-md5.c: New file.
65162
65163         * lib/hmac.h: New file.
65164
65165 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65168         promotes to int, not unsigned int, to catch the AIX 5.3
65169         compiler bug.
65170
65171 2005-10-05  Simon Josefsson  <jas@extundo.com>
65172
65173         * modules/memxor: New file.
65174
65175         * modules/iconv (Files): Move config.rpath to havelib, it is used
65176         there.
65177
65178         * modules/havelib (Files): Add config.rpath.
65179
65180 2005-10-05  Simon Josefsson  <jas@extundo.com>
65181
65182         * m4/memxor.m4: New file.
65183
65184 2005-10-05  Simon Josefsson  <jas@extundo.com>
65185
65186         * lib/memxor.c (memxor): Fix compiler error.
65187
65188         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65189         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65190
65191         * lib/memxor.h, lib/memxor.c: New files.
65192
65193         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65194         we assume all systems have it, suggested by Jim Meyering
65195         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65196         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65197         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65198         same reasons.
65199
65200 2005-10-05  Simon Josefsson  <jas@extundo.com>
65201
65202         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65203
65204 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65205
65206         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65207         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65208         needed, since the source code now assumes these .h files.
65209
65210 2005-10-05  Derek Price  <derek@ximbiot.com>
65211
65212         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65213
65214 2005-10-05  Bruno Haible  <bruno@clisp.org>
65215
65216         * modules/stdint (License): Change to LGPL.
65217
65218 2005-10-04  Simon Josefsson  <jas@extundo.com>
65219
65220         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65221         D. Baushke" <mdb@gnu.org>.
65222
65223 2005-10-04  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/verify.h (verify_true): Provide alternative definition for C++.
65226
65227 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65228
65229         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65230         (SSIZE_MAX): New macro, if not already defined.
65231         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65232         than 2 GiB.
65233
65234 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65235
65236         Sync from coreutils.
65237         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65238         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65239         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65240         ULLONG_MAX doesn't work with 2.7.2.1.
65241
65242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65245         From Ben Pfaff.
65246
65247         * modules/exclude (Depends-on): Depend on verify.
65248         * modules/strtoimax (Depends-on): Likewise.
65249         * modules/utimecmp (Depends-on): Likewise.
65250
65251 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * lib/exclude.c: Include verify.h.
65254         (verify): Remove.  All callers changed to use verify.h's version.
65255         * lib/strtoimax.c: Likewise.
65256         * lib/utimecmp.c: Likewis.e
65257
65258         Sync from coreutils.
65259         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65260         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65261         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65262         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65263         bother returning ENOSYS if settimeofday or stime fails; just let
65264         them return whatever errno they want to return.
65265         * lib/utimens.c: Include unistd.h, for dup2.
65266         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65267         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65268
65269 2005-10-02  Jim Meyering  <jim@meyering.net>
65270
65271         Sync from coreutils.
65272         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65273         from glibc-2.2.5 that fails for read-only files.
65274
65275 2005-10-02  Jim Meyering  <jim@meyering.net>
65276
65277         Sync from coreutils.
65278         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65279         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65280         `#if HAVE_CONFIG_H'.
65281         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65282         Remove AT_FDCWD test.
65283         Do not consume the fd unless successful.
65284         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65285         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65286         block, so that we don't even try to compile it if settimeofday is
65287         available.  This works around a compilation failure on OSF1 V5.1,
65288         due to stime requiring a `long int*' while tv_sec is `int'.
65289
65290 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65291
65292         Sync from coreutils.
65293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65294         against `yes', rather than just testing for nonempty.
65295
65296 2005-10-01  Simon Josefsson  <jas@extundo.com>
65297
65298         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65299         and Darwin.
65300
65301         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65302         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65303         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65304         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65305         Check if struct addrinfo is declared.
65306
65307 2005-10-01  Simon Josefsson  <jas@extundo.com>
65308
65309         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65310         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65311         AI_* and EAI_* definitions.  Protect function declarations.
65312
65313 2005-10-01  Jim Meyering  <jim@meyering.net>
65314
65315         Sync from coreutils.
65316
65317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65318         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65319         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65321         in the inet and nsl libraries.  Required on Solaris 5.7.
65322
65323 2005-10-01  Jim Meyering  <jim@meyering.net>
65324
65325         Sync from coreutils.
65326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65327         in the inet and nsl libraries.  Required on Solaris 5.7.
65328
65329 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65330
65331         * lib/getdelim.c (getdelim): Remove unused variables.
65332
65333 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65336         so that the code works even with ancient cpp.  Portability problem
65337         with GCC 2.7.2.1 reported by Thomas M.Ott.
65338
65339 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * modules/regex (Depends-on): Add strcase.
65342
65343         * modules/gethostname (Licence): Change from GPL to LGPL, since
65344         gethostname.c is a trivial implementation of a standard library
65345         function.
65346         * modules/poll (License): Change from GPL to LGPL, since it's
65347         derived from LGPL code.
65348
65349 2005-09-27  Jim Meyering  <jim@meyering.net>
65350
65351         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65352         HAVE_CONFIG_H.
65353
65354         * lib/intprops.h (signed_type_or_expr__): Define.
65355         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65356         for unsigned types.
65357
65358 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * lib/verify.h (verify_expr): Remove, replacing with:
65361         (verify_true): New macro that returns true instead of void.
65362         (verify_type__): Remove.
65363         (verify): Use verify_true rather than verify_type__.
65364
65365 2005-09-26  Bruno Haible  <bruno@clisp.org>
65366
65367         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65368         is necessary.
65369         (lib_SOURCES): Remove mbchar.c.
65370         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65371         (Files): Add m4/mbrtowc.m4.
65372         * modules/mbiter: Likewise.
65373         * modules/mbuiter: Likewise.
65374
65375 2005-09-26  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65378         compile mbchar.c if they are not both present.
65379         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65380         * m4/mbiter.m4 (gl_MBITER): Likewise.
65381         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65382         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65383         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65384
65385 2005-09-25  Jim Meyering  <jim@meyering.net>
65386
65387         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65388         also uses socklen_t.
65389
65390 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65391
65392         * lib/utimens.c (ENOSYS): Define if not already defined.
65393         (futimens): Support having a null PATH if the file descriptor
65394         is nonnegative.
65395
65396         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65397         Remove.
65398         (__attribute): Define to empty unless GCC 3.1 or later.
65399         This works around a core dump on OpenBSD 3.4, which has GCC
65400         2.95.3, which dumps core when given __attribute__(()).  It also
65401         simplifies other tests, since we really don't want to bother with
65402         worrying about which ancient version of GCC supported what.
65403         Original problem reported by Yoann Vandoorselaere, with part of
65404         the fix suggested by Derek Price.
65405
65406 2005-09-24  Jim Meyering  <jim@meyering.net>
65407
65408         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65409         so we can once again use a positive bitfield width of 1 -- now we
65410         don't have to explain why we were using a bitfield width of 2.
65411
65412 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65415         and similarly for the other external symbols.  Problem reported
65416         by James Gallager.
65417
65418         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65419         bug reported by Jim Meyering.
65420
65421         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65423         not needed, since socklen is a prerequisite module.
65424
65425 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65428         Problem reported by Eric Blake.
65429         (getaddrinfo): Initialize se so that it's not garbage.
65430         Redo internal storage allocation so that it doesn't make unportable
65431         assumptions about alignment.
65432         Fix a memory leak.
65433
65434         * lib/utimens.c (futimens): Use futimesat if available.
65435         Prefer it to futimes since it doesn't have the futimes bug.
65436
65437         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65438         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65439         Instead, declare a function that returns a pointer to an array,
65440         and use verify_type__ to declare the size of the array.
65441         Problem and germ of a solution reported by Bruno Haible.
65442         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65443         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65444
65445 2005-09-23  Jim Meyering  <jim@meyering.net>
65446
65447         Sync from coreutils.
65448         Correct build failure (socklen_t not defined) on at least
65449         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65451
65452 2005-09-23  Jim Meyering  <jim@meyering.net>
65453
65454         * modules/getaddrinfo (Depends-on): Add socklen.
65455
65456 2005-09-23  Bruno Haible  <bruno@clisp.org>
65457
65458         * tests/test-verify.c: New file.
65459
65460 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         Sync from coreutils.
65463
65464         * modules/argmatch (Depends-on): Add verify.
65465         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65466         unistd-safer.
65467         * modules/save-cwd (Depends-on): Likewise.
65468
65469         * modules/openat (Files): Add lib/openat-die.c.
65470         (Depends-on): Remove error, exitfail.
65471         Add dirname.
65472
65473         * modules/verify: New file.
65474         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65475         with "verify" module.
65476
65477 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         Sync from coreutils.
65480
65481         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65482         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65483         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65484         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65485         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65486         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65487         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65488         Don't bother checking for string.h, stdlib.h, unistd.h.
65489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65490         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65491         module's job.
65492         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65493         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65494
65495         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65496         (gl_GETDATE): Use it.
65497
65498         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65499
65500 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         Sync from coreutils.
65503
65504         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65505         stat-time.h.
65506         * lib/argmatch.h: Include verify.h
65507         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65508         (ARGMATCH_ASSERT): Remove; unused.
65509         * lib/canonicalize.c: Assume STDC_HEADERS.
65510         * lib/exclude.c: Include "strcase.h".
65511         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65512         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65513         and stdio-safer.h.
65514         (getusershell): Call fopen, not fopen_safer.
65515         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65516         Do not include unistd-safer.h.
65517         (save_cwd): Don't call fd_safer; no longer needed
65518         now that we include fcntl--.h.
65519
65520         * lib/getdate.y (relative_time): New type.
65521         (RELATIVE_TIME_0): New constant.
65522         (parser_control): Use relative_time instead of doing it ourselves.
65523         (%union): Add new relative_time rel member.
65524         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65525         Now typeless.
65526         (relunit, relunit_snumber): Now of type rel.
65527         (zone, rel, relunit, get_date): Adjust to above changes.
65528
65529         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65530         Do not include unistd-safer.h.
65531         (getloadavg): Don't call fd_safer; no longer needed
65532         now that we include fcntl--.h.
65533
65534         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65535         (make_dir_parents): Treat ENOSYS like EEXIST.
65536
65537         Improve quality of diagnostics on restore_cwd failure.
65538         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65539         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65540         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65541         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65542         each time through the loop.  Do not diagnose restore_cwd failure;
65543         that is the caller's job (and perhaps the caller does not care).
65544
65545         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65546         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65547         If the file already exists but is not a directory, don't bother
65548         to try to make its parents.
65549         Close potential file descriptor leak if we can't chdir("/") (!).
65550         Don't always return true if chdir($PWD) fails; return true only
65551         if the requested action was done successfully (except for the
65552         chdir($PWD)).
65553         Don't log final directory unless we actually made it.
65554         Refactor to avoid duplicate code to fix up permissions.
65555         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65556
65557         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65558         to make it a bit faster and (I hope) clearer.
65559         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65560         Fix bug in formats like %2N.
65561
65562         * lib/verify.h: New file.
65563
65564 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         Sync from coreutils.
65567         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65568
65569 2005-09-22  Jim Meyering  <jim@meyering.net>
65570
65571         Sync from coreutils.
65572
65573         * m4/lstat.m4 (gl_FUNC_LSTAT):
65574         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65575         Remove obsolete comment.
65576         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65577         * m4/xstrtod.m4: Likewise.
65578
65579         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65580
65581 2005-09-22  Jim Meyering  <jim@meyering.net>
65582
65583         Sync from coreutils.
65584
65585         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65586
65587         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65588         the .tm_year member, since otherwise gcc-4.0 would now warn about
65589         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65590
65591         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65592         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65593
65594         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65595         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65596         when run in a time zone for which daylight savings time is in effect
65597         for the starting date.
65598
65599         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65600         stop us from restricting permissions of just-created absolute-named
65601         directories.
65602         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65603         to restore initial working directory.
65604         * lib/mkdir-p.c (make_dir_parents): New parameter:
65605         different_working_dir, to tell caller if/when we change the working
65606         directory and are unable to return to the initial one.
65607         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65608         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65609         `return false'.  This fixes a bug introduced on 2004-07-30.
65610
65611         * lib/openat.c (fdopendir): Be sure to close the supplied
65612         file descriptor before returning.  This makes our replacement
65613         implementation a little closer to Solaris's, where fdopendir
65614         ties the file descriptor to the returned DIR* pointer.
65615         * lib/openat.c (unlinkat): New function.
65616         * lib/openat.h (unlinkat): Add prototype.
65617         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65618         (openat_restore_fail): Rename from openat_restore_die.
65619         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65620
65621         Provide an alternative to exiting immediately upon save_cwd or
65622         restore_cwd failure.  Now, an application can arrange e.g.,
65623         to perform a longjump in that case.
65624         * lib/openat.c: Include dirname.h.
65625         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65626         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65627         and openat_restore_die rather than calling error directly.
65628         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65629
65630         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65631         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65632         define.
65633
65634         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65635         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65636                             int utc, int nanoseconds);
65637         Background:
65638         date should not have to allocate a megabyte of virtual memory to
65639         handle a format argument like +%1048575T.  When implemented with
65640         strftime, it must allocate such a buffer, use strftime to fill it
65641         in, print it, then free it.
65642         With fprintftime, it simply prints everything and exits.
65643         With no need for memory allocation, that's one fewer way to fail.
65644         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65645         optional field width, not before, so we accept %9:z, not %:9z.
65646         (my_strftime): Be sure to use L_('x') for literals.
65647
65648         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65649         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65650         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65651         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65652         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65653         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65654         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65655         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65656         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65657         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65658         * lib/xgethostname.c, lib/xreadlink.c:
65659         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65660
65661         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65662         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65663         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65664         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65665         and don't include <sys/file.h>).
65666
65667 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65668
65669         Sync from coreutils.
65670
65671         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65672         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65673         [!LDAV_DONE]: Avoid unused variable warning.
65674
65675 2005-09-21  Bruno Haible  <bruno@clisp.org>
65676
65677         * lib/unicodeio.h (unicode_to_mb): New declaration.
65678
65679 2005-09-20  Derek Price  <derek@ximbiot.com>
65680
65681         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65682         getaddrinfo.h.
65683
65684 2005-09-20  Bruno Haible  <bruno@clisp.org>
65685
65686         * gnulib-tool: Remove trailing slashes from the values specified for
65687         --source-base, --m4-base, --tests-base, --aux-dir.
65688         Suggested by Simon Josefsson <jas@extundo.com>.
65689
65690 2005-09-20  Bruno Haible  <bruno@clisp.org>
65691
65692         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65693         func_modules_to_filelist, func_import, func_create_testdir): Make all
65694         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65695         change when gnulib-tool is invoked in a different locale.
65696
65697 2005-09-19  Simon Josefsson  <jas@extundo.com>
65698
65699         * m4/socklen.m4: Fix typo.
65700
65701 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65702
65703         Use a consistent style for including <config.h>.
65704         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65705         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65706         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65707         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65708         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65709         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65710         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65711         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65712         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65713         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65714         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65715         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65716         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65717         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65718         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65719         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65720         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65721         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65722         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65723         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65724         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65725         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65726         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65727         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65728         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65729         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65730         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65731         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65732         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65733         lib/xstrtoumax.c, lib/yesno.c:
65734         Standardize inclusion of config.h.
65735         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65736         lib/inttostr.h:  Removed inclusion of config.h from header files.
65737         * lib/inttostr.c:  Adjusted in-tree users.
65738         * lib/timespec.h: Remove superfluous warning to include config.h.
65739         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65740         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65741         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65742         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65743         config.h with HAVE_CONFIG_H.
65744
65745 2005-09-19  Jim Meyering  <jim@meyering.net>
65746
65747         * modules/pathmax (License): Change to LGPL.
65748
65749 2005-09-19  Derek Price  <derek@ximbiot.com>
65750
65751         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65752
65753 2005-09-19  Bruno Haible  <bruno@clisp.org>
65754
65755         * gnulib-tool (import): Provide default for --tests-base.
65756
65757 2005-09-19  Bruno Haible  <bruno@clisp.org>
65758
65759         * doc/quote.texi: New file, extracted from gnulib.texi.
65760         * doc/ctime.texi: New file, extracted from gnulib.texi.
65761         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65762         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65763         * doc/gnulib.texi: Include them.
65764
65765 2005-09-18  Bruno Haible  <bruno@clisp.org>
65766
65767         Portability fix.
65768         * gnulib-tool (func_readlink): New function.
65769         (func_ln_if_changed): Use it.
65770
65771 2005-09-18  Bruno Haible  <bruno@clisp.org>
65772
65773         * gnulib-tool: Support --with-tests also with --import.
65774         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65775         (func_import): Use variables $testsbase and $inctests. Emit a
65776         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65777         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65778         SUBDIRS += $testsdir.
65779         (func_create_testdir): Update.
65780
65781 2005-09-18  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65784         instead of $dry_run.
65785         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65786         (func_ln_if_changed): Don't handle dry-run here.
65787         (func_import): In dry-run mode, detect more precisely which actions
65788         would be performed, and don't use "...ing" verbs.
65789
65790 2005-09-18  Bruno Haible  <bruno@clisp.org>
65791
65792         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65793         (func_import): Use join on two temporary files instead of three nested
65794         loops, in order to determine which files are new or old.
65795
65796 2005-09-18  Bruno Haible  <bruno@clisp.org>
65797
65798         * gnulib-tool (func_import): Comment out code that spits out the
65799         new files with --dry-run.
65800
65801 2005-09-18  Bruno Haible  <bruno@clisp.org>
65802
65803         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65804
65805 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         * lib/stat-time.h: New file.
65808         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65809         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65810         in a different way.
65811         (timespec_cmp): New function.
65812         * lib/utimecmp.c: Include stat-time.h.
65813         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65814         members exist, not on the obsolescent ST_MTIM_NSEC.
65815         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65816
65817 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65820
65821 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * MODULES.html.sh (File system functions): Add stat-time.
65824         * modules/stat-time: New file.
65825         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65826         is now done in a different way, by the stat-time module.
65827         * modules/utimecmp (Depends-on): Add stat-time.
65828
65829 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         * m4/st_mtim.m4: Remove.  Superseded by...
65832         * m4/stat-time.m4: New file.
65833         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65834         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65835
65836 2005-09-15  Derek Price  <derek@ximbiot.com>
65837
65838         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65839
65840 2005-09-15  Derek Price  <derek@ximbiot.com>
65841
65842         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65843         * lib/regex_internal.c: Ditto, using this...
65844         (__GNUC_PREREQ): ...new macro.
65845         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65846         using...
65847         (__GNUC_PREREQ): ...this new macro.
65848
65849         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65850
65851 2005-09-15  Derek Price  <derek@ximbiot.com>
65852             Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65855         changes, consolidating in...
65856         * lib/regex_internal.h: ...this file.
65857
65858 2005-09-13  Jim Meyering  <jim@meyering.net>
65859
65860         * lib/canon-host.c: Filter through gnu indent and reword comments
65861         slightly.
65862         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65863
65864 2005-09-13  Derek Price  <derek@ximbiot.com>
65865
65866         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65867         failure.
65868         Reported by Jim Meyering  <jim@meyering.net>.
65869
65870 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65871
65872         * lib/base64.c: Typo.
65873         (base64_encode): Put b64str in initialized data section.
65874
65875 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         Merge glibc and coreutils changes into gnulib, plus a few
65878         extra fixes.
65879         * lib/md5.c: Use #error rather than a string.
65880         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65881         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65882         (__attribute__): Define to empty for non recent-GCC.
65883         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65884         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65885         Renamed from their non-__ counterparts, with new macros replacing
65886         them if not _LIBC.  Add __THROW attribute.
65887         (rol): Remove.
65888         (struct md5_ctx): Align buffer if using GCC.
65889         * lib/sha1.h (struct sha1_ctx): Likewise.
65890         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65891         The old name was backwards.
65892         (NOTSWAP): Remove; not used.
65893         (rol): New macro, moved here from md5.h.
65894         (sha1_process_block): Remove a FIXME that doesn't make sense.
65895
65896 2005-09-12  Derek Price  <derek@ximbiot.com>
65897
65898         Return usable errors from canon-host.
65899         * lib/canon-host.h: New file.
65900         * lib/canon-host.c (canon_host): Wrap...
65901         (canon_host_r): ...this new function, which now relies exclusively on
65902         getaddrinfo.
65903         (ch_strerror): New function.
65904         (last_cherror): New global.
65905         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65906         interface.
65907         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65908         void *.
65909         (freeaddrinfo): Free ai->ai_canonname when set.
65910
65911 2005-09-12  Derek Price  <derek@ximbiot.com>
65912
65913         Make canon-host require getaddrinfo.
65914         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65915         AC_LIBSOURCE canon-host.h.  Call...
65916         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65917         gl_GETADDRINFO.
65918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65919
65920 2005-09-12  Derek Price  <derek@ximbiot.com>
65921
65922         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65923         LGPL.
65924         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65925
65926 2005-09-12  Derek Price  <derek@ximbiot.com>
65927
65928         * lib/gai_strerror.c: Include config.h when available.  Include
65929         getaddrinfo.h before other headers to test interface.
65930         Reported by Larry Jones <lawrence.jones@ugs.com>.
65931
65932 2005-09-12  Derek Price  <derek@ximbiot.com>
65933             Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * modules/glob (Files): Add glob-libc.h.
65936
65937 2005-09-12  Derek Price  <derek@ximbiot.com>
65938             Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65941         glob_.h, glob-libc.h.
65942         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65943
65944 2005-09-12  Derek Price  <derek@ximbiot.com>
65945             Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65948         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65949         protecting things that should be done only in gnulib contexts.
65950         * lib/glob_.h: New file, containing only the glob things needed for
65951         gnulib.
65952         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65953         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65954         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65955         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65956         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65957         and to respect the namespace rules better.
65958
65959 2005-09-08  Simon Josefsson  <jas@extundo.com>
65960
65961         * modules/socklen: New file.
65962
65963 2005-09-08  Simon Josefsson  <jas@extundo.com>
65964
65965         * m4/socklen.m4: New file.
65966
65967 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * modules/utimens (Files): Add m4/utimbuf.m4, since
65970         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65971         Reported by Sergey Poznyakoff.
65972
65973 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65974
65975         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65976         definitions, since that's the preferred style in glibc.
65977         Fix a minor spacing issue, and update copyright notice to match
65978         glibc's.
65979
65980 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65983
65984 2005-09-06  Simon Josefsson  <jas@extundo.com>
65985
65986         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65987         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65988
65989 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65992         warning.
65993
65994 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         * config/srclist.txt: Add glibc bug 1302.
65997
65998 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         Change bitset word type from unsigned int to unsigned long int,
66001         as this has better performance on typical 64-bit hosts.
66002         Port bitset code to hosts with unusual word sizes.
66003         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66004         (build_collating_symbol):
66005         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66006         argument is a bitset.  This is merely a style issue, but it makes
66007         it clearer that an entire array is expected.
66008         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66009         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66010         Port to the case where bitset_word is not the same as unsigned int.
66011         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66012         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66013         Likewise.
66014         * lib/regexec.c (check_dst_limits_calc_pos_1,
66015         check_subexp_matching_top):
66016         (build_trtable, group_nodes_into_DFAstates):
66017         Likewise.
66018         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66019         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66020         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66021         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66022         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66023         * lib/regcomp.c (optimize_subexps, lower_subexp):
66024         Work even if bitset_word has holes in its bitwise representation.
66025         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66026         * lib/regexec.c (check_dst_limits_calc_pos_1,
66027         check_subexp_matching_top):
66028         Likewise.
66029         * lib/regex_internal.c (re_string_reconstruct):
66030         Don't assume UCHAR_MAX == 255.
66031         * lib/regex_internal.h (bitset_set_all): Likewise.
66032         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66033         All uses changed.
66034         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66035         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66036         All uses changed.
66037         (BITSET_WORD_MAX): New macro.
66038         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66039         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66040         (bitset_empty, bitset_copy):
66041         Prefer sizeof (bitset) to multiplying it out ourselves.
66042         (bitset_not_merge): Remove; unused.
66043         (bitset_contain): Return bool, not unsigned int with one bit on.
66044         All callers changed.
66045         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66046         alignment than re_node_set; do this by defining a new internal
66047         type struct dests_alloc and using it to allocate memory.
66048
66049 2005-09-05  Bruno Haible  <bruno@clisp.org>
66050
66051         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66052         links.
66053
66054 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66055
66056         * modules/size_max (Makefile.am): Add size_max.h
66057
66058 2005-09-04  Derek Price  <derek@ximbiot.com>
66059
66060         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66061
66062 2005-09-03  Simon Josefsson  <jas@extundo.com>
66063
66064         * gnulib-tool: Fix typo.
66065
66066 2005-09-03  Simon Josefsson  <jas@extundo.com>
66067
66068         * config/srclist.txt: Add glibc bug 1293.
66069
66070 2005-09-03  Derek Price  <derek@ximbiot.com>
66071
66072         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66073         From Larry Jones <lawrence.jones@ugs.com>.
66074
66075 2005-09-02  Simon Josefsson  <jas@extundo.com>
66076
66077         * modules/socklen: New file.
66078
66079 2005-09-02  Simon Josefsson  <jas@extundo.com>
66080
66081         * modules/havelib: New module.
66082
66083         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66084         Use havelib.
66085
66086 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66087
66088         Check for arithmetic overflow when calculating sizes, to prevent
66089         some buffer-overflow issues.  These patches are conservative, in the
66090         sense that when I couldn't determine whether an overflow was possible,
66091         I inserted a run-time check.
66092         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66093         macros.
66094         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66095         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66096         (re_xnrealloc, re_x2nrealloc): New inline functions.
66097         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66098         parse_bracket_exp):
66099         (build_equiv_class, build_charclass): Check for arithmetic overflow
66100         in size expression calculations.
66101         * lib/regex_internal.c (re_string_realloc_buffers):
66102         (build_wcs_upper_buffer, re_node_set_add_intersect):
66103         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66104         (re_dfa_add_node, register_state): Likewise.
66105         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66106         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66107         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66108         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66109
66110 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66113         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66114
66115 2005-09-02  Bruno Haible  <bruno@clisp.org>
66116
66117         Support for lib vs. lib64 distinction on biarch platforms.
66118         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66119         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66121
66122 2005-09-02  Bruno Haible  <bruno@clisp.org>
66123
66124         * gnulib-tool (import): In the other first-use case, provide defaults
66125         as well.
66126
66127 2005-09-02  Bruno Haible  <bruno@clisp.org>
66128
66129         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66130         patches not yet found in the latest gettext release.
66131
66132 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66135         to avoid a collision with bits/local_lim.h in glibc.
66136         All uses changed.  Problem reported by Dmitry V. Levin in
66137         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66138
66139         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66140         bugs in int versus size_t comparisons.
66141         (re_string_context_at): Fix bug where the code assumed that
66142         Idx is signed.
66143
66144         Use bool where appropriate.
66145         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66146         All callers changed.
66147         (calc_eclosure_iter): Likewise, for ROOT arg.
66148         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66149         (build_charclass_op): Likewise, for NON_MATCH arg.
66150         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66151         (re_string_construct_common): Likewise, for ICASE arg.
66152         * lib/regexec.c (re_search_2_stub, re_search_stub):
66153         Likewise, for RET_LEN arg.
66154         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66155         (set_regs): Likewise, for FL_BACKTRACK arg.
66156         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66157         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66158         (calc_eclosure_iter, parse_bracket_exp):
66159         Use bool for internal variables that are booleans.
66160         * lib/regexec.c (re_search_internal, check_matching,
66161         proceed_next_node):
66162         (set_regs, build_sifted_states, sift_states_bkref):
66163         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66164         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66165         (find_collation_sequence_value):
66166         Likewise.
66167         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66168         (re_node_set_compare):
66169         Return bool, not int. All callers changed.
66170         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66171         (build_trtable, check_node_accept): Likewise.
66172         * lib/regex_internal.h: Include stdbool.h.
66173
66174         Fix bugs uncovered when converting to bool.
66175         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66176         failure instead of charging ahead blindly.
66177         * lib/regex_internal.c (register_state): Likewise.
66178         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66179         for freeing internal storage.
66180         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66181         bitset pieces used as boolean, to avoid undefined behavior
66182         on hosts that do int overflow checking.
66183
66184 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * config/srclist.txt: Add glibc bugs 1285-1287.
66187
66188 2005-09-01  Jim Meyering  <jim@meyering.net>
66189
66190         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66191         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66192         Require gl_STAT_MACROS, too.
66193
66194 2005-09-01  Bruno Haible  <bruno@clisp.org>
66195
66196         * gnulib-tool (import): In the first-use case, provide defaults.
66197
66198 2005-09-01  Bruno Haible  <bruno@clisp.org>
66199
66200         * gnulib-tool (func_import): Remove the .tmp files.
66201
66202 2005-09-01  Bruno Haible  <bruno@clisp.org>
66203
66204         * gnulib-tool (func_import): Fix handling of symbolic links.
66205
66206 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66209         old glibc regex code mishandles strings longer than 2**31 bytes.
66210         This patch fixes this when the regex code is used in gnulib
66211         (i.e., outside glibc).
66212
66213         This patch should not affect the use of the regex code inside
66214         glibc.  No doubt this problem also needs to be handled for glibc
66215         as well, but the result will be an incompatible change to the
66216         glibc ABI, and the old ABI will have to be supported too.  That
66217         can be the the subject for another patch.
66218
66219         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66220         governing whether the rest of this patch is active.  By default,
66221         the macro is disabled and the patch has no effect.
66222         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66223         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66224         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66225         (re_match_2, re_set_registers): Use the new types.
66226         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66227         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66228         New macros.
66229         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66230         (re_string_context_at, bin_tree_t, re_dfastate_t):
66231         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66232         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66233         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66234         (re_string_char_size_at, re_string_wchar_at):
66235         (re_string_elem_size_at):
66236         Use the new types and macros to port to 64-bit hosts.
66237         Use unsigned types for internal values, so that the code
66238         mostly works even for arrays larger than SSIZE_MAX.
66239         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66240         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66241         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66242         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66243         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66244         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66245         (calc_inveclosure, parse_dup_op, build_range_exp):
66246         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66247         (fetch_number, create_token_tree, mark_opt_subexp):
66248         Likewise.
66249         * lib/regex_internal.c (re_string_construct_common,
66250         create_ci_newstate):
66251         (create_cd_newstate, re_string_allocate, re_string_construct):
66252         (re_string_realloc_buffers, build_wcs_upper_buffer):
66253         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66254         (re_string_reconstruct, re_string_peek_byte_case):
66255         (re_string_fetch_byte_case, re_string_context_at):
66256         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66257         (re_node_set_init_copy, re_node_set_add_intersect):
66258         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66259         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66260         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66261         (re_acquire_state, re_acquire_state_context, register_state):
66262         Likewise.
66263         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66264         search_cur_bkref_entry):
66265         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66266         (re_search_internal, re_search_2_stub, re_search_stub)
66267         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66268         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66269         (update_cur_sifted_state, check_dst_limits):
66270         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66271         (check_subexp_limits, sift_states_bkref, merge_state_array):
66272         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66273         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66274         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66275         (expand_bkref_cache, check_node_accept_bytes):
66276         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66277         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66278         (acquire_init_state_context, check_halt_node_context):
66279         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66280         (sift_states_backward, clean_state_log_if_needed):
66281         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66282         (find_recover_state, transit_state_sb, transit_state_mb):
66283         (transit_state_bkref, build_trtable, match_ctx_clean):
66284         Likewise.
66285         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66286         to work around an assumption that REG_MISSING is negative.
66287
66288         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66289         (seek_collating_symbol_entry) [defined _LIBC]:
66290         (lookup_collation_sequence_value) [defined _LIBC]:
66291         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66292         Use prototypes rather than old-style function definitions.
66293         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66294         (transit_state_sb) [0]:
66295         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66296
66297         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66298         rm_eo.
66299
66300         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66301         (optimize_subexps, lower_subexp):
66302         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66303         since the signed shift might overflow.  Use 1u<<31 instead.
66304         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66305         Likewise.
66306         * lib/regexec.c (check_dst_limits_calc_pos_1,
66307         check_subexp_matching_top): Likewise.
66308
66309         * lib/regcomp.c (optimize_subexps, lower_subexp):
66310         Use CHAR_BIT rather than 8, for clarity.
66311         * lib/regexec.c (check_dst_limits_calc_pos_1):
66312         (check_subexp_matching_top): Likewise.
66313         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66314         have to worry about portability issues when shifting it left.
66315         Remove no-longer-needed test for table_size > 0.
66316         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66317         in a word, as the resulting behavior is undefined.
66318         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66319         in one case, a <= should have been an <, and in another case the
66320         whole test was missing.
66321         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66322         the standard name CHAR_BIT.
66323         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66324         this is not true on one's complement and signed-magnitude hosts.
66325
66326         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66327         next_last_offset.
66328         (struct re_dfa_t): Remove unused member states_alloc.
66329         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66330
66331 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66332
66333         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66334         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66335         and large-file glibc and in 32-bit large-file Solaris.
66336
66337 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66340         lengths fit in regoff_t; this isn't true if regoff_t is the same
66341         width as size_t.
66342         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66343         (= START + RANGE) instead of RANGE.  This avoids overflow
66344         problems when regoff_t is the same width as size_t.
66345         All callers changed.
66346         (re_search_2_stub): Check for overflow when adding the
66347         sizes of the two strings.
66348         (re_search_stub): Check for overflow when adding START
66349         to RANGE; if it occurs, substitute the extreme value.
66350
66351 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66352
66353         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66354
66355 2005-08-31  Jim Meyering  <jim@meyering.net>
66356
66357         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66358         a pointer-to-const.
66359         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66360         (register_state): Likewise.
66361         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66362         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66363         (group_nodes_into_DFAstates): Likewise.
66364
66365 2005-08-31  Jim Meyering  <jim@meyering.net>
66366
66367         * check-module: Add a FIXME comment.
66368
66369 2005-08-31  Eric Blake  <ebb9@byu.net>
66370
66371         * modules/unistd-safer (Files): Add unistd--.h.
66372         * modules/stdio-safer (Files): Add stdio--.h.
66373
66374 2005-08-31  Derek Price  <derek@ximbiot.com>
66375
66376         * lib/getdelim.c (getdelim): Return EOF on EOF.
66377         Reported by Larry Jones <lawrence.jones@ugs.com>.
66378
66379 2005-08-31  Bruno Haible  <bruno@clisp.org>
66380
66381         Avoid unnecessary diffs in the generated lib/Makefile.am.
66382         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66383         the generated files.
66384         (func_import): Don't set cmd.
66385
66386 2005-08-31  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/strstr.c: Include <stddef.h>, for NULL.
66389         * lib/strcasestr.c: Likewise.
66390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66391
66392 2005-08-31  Bruno Haible  <bruno@clisp.org>
66393
66394         * gnulib-tool: New option --macro-prefix.
66395         (func_import): Use macro_prefix.
66396         (import): Handle option --macro-prefix.
66397
66398 2005-08-31  Bruno Haible  <bruno@clisp.org>
66399
66400         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66401         Also use new variables cached_lgpl, cached_libtool.
66402
66403 2005-08-31  Bruno Haible  <bruno@clisp.org>
66404
66405         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66406         always instantiating them.
66407
66408 2005-08-31  Bruno Haible  <bruno@clisp.org>
66409
66410         * gnulib-tool (func_import): Read the previous cached settings
66411         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66412         earlier added by gnulib but are now dropped. Warn when a gnulib file
66413         overwrites a non-gnulib file.
66414
66415 2005-08-31  Bruno Haible  <bruno@clisp.org>
66416
66417         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66418         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66419         projects that don't keep autogenerated files in CVS. Put into
66420         actioncmd only the specified modules, not the transitive closure.
66421
66422 2005-08-31  Bruno Haible  <bruno@clisp.org>
66423
66424         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66425         Create directories that shall be filled.
66426         (import): Don't look for gl_* macros in configure.ac. Recurse across
66427         all directories containing a gnulib-cache.m4 files, if meaningful.
66428
66429 2005-08-31  Bruno Haible  <bruno@clisp.org>
66430
66431         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66432         (import): Set seen_libtool when we see gl_LIBTOOL.
66433
66434 2005-08-31  Bruno Haible  <bruno@clisp.org>
66435
66436         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66437         declaration macro definitions from generated gnulib.m4.
66438
66439 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66440
66441         * lib/iconvme.h: Add prototype for iconv_alloc.
66442
66443 2005-08-29  Simon Josefsson  <jas@extundo.com>
66444
66445         * lib/iconvme.c: Fix errno.
66446
66447 2005-08-29  Bruno Haible  <bruno@clisp.org>
66448
66449         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66450         that it works when the directory contains spaces.
66451
66452 2005-08-29  Bruno Haible  <bruno@clisp.org>
66453
66454         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66455
66456 2005-08-29  Bruno Haible  <bruno@clisp.org>
66457
66458         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66459         Emit more advice.
66460
66461 2005-08-29  Bruno Haible  <bruno@clisp.org>
66462         and Stepan Kasal  <kasal@ucw.cz>
66463
66464         * check-module: If more parameters are given, check each of them
66465         separately; add more exceptions, as noted by Jim Meyering.
66466         (check_module): New procedure.
66467         (%exempt_header): Now contains all exceptions.
66468
66469 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66470
66471         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66472
66473 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66474
66475         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66476
66477 2005-08-28  Bruno Haible  <bruno@clisp.org>
66478
66479         * m4/gnulib-tool.m4: New file.
66480
66481 2005-08-27  Jim Meyering  <jim@meyering.net>
66482
66483         * modules/unistd-safer (Files): Add pipe-safer.c.
66484         * modules/fcntl-safer (Files): Add creat-safer.c.
66485
66486 2005-08-27  Jim Meyering  <jim@meyering.net>
66487
66488         * m4/stdlib-safer.m4: New file.  From coreutils.
66489         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66491         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66492         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66493         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66494
66495 2005-08-27  Jim Meyering  <jim@meyering.net>
66496
66497         * lib/fopen-safer.c: Merge minor changes from coreutils.
66498         * lib/dup-safer.c: Likewise.
66499         * lib/fd-safer.c: Likewise.
66500
66501         Merge from coreutils.
66502         * lib/stdio--.h: New file.
66503         * lib/stdlib--.h: New file.
66504         * lib/mkstemp-safer.c: New file.
66505
66506         GNU tar needs these.
66507         * lib/pipe-safer.c: New file.
66508         * lib/creat-safer.c: New file.
66509         * lib/fcntl--.h (creat): Define to creat_safer.
66510         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66511         * lib/unistd--.h (pipe): Define to pipe_safer.
66512         * lib/unistd-safer.h: Declare pipe_safer.
66513
66514 2005-08-26  Simon Josefsson  <jas@extundo.com>
66515
66516         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66517         Haible <bruno@clisp.org>.
66518
66519 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/regex_internal.h: Remove all references to
66522         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66523         or better.
66524         (bitset_not, bitset_merge, bitset_not_merge):
66525         (bitset_mask, re_string_allocate, re_string_construct):
66526         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66527         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66528         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66529         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66530         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66531         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66532         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66533         (re_acquire_state_context):
66534         Remove unnecessary forward decls.
66535         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66536         Put __attribute at function definition,
66537         now that the function decl has been removed.
66538         * lib/regex_internal.c (re_string_peek_byte_case):
66539         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66540         Likewise.
66541
66542 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66543
66544         * m4/regex.m4: Add AC_PREREQ(2.50).
66545         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66546
66547 2005-08-25  Simon Josefsson  <jas@extundo.com>
66548
66549         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66550         __fsetlocking.
66551
66552 2005-08-25  Simon Josefsson  <jas@extundo.com>
66553
66554         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66555         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66556         GLIBC specific code.
66557
66558 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         Make regex safe for g++.  This fixes one real bug (an "err"
66561         that should have been "*err").  g++ problem reported by
66562         Sam Steingold.
66563         * lib/regex_internal.h (re_calloc): New macro, consistent with
66564         re_malloc etc.  All callers of calloc changed to use re_calloc.
66565         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66566         not int.  All callers changed.
66567         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66568         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66569         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66570         (find_recover_state): Change "err" to "*err"; this fixes what
66571         appears to be a real bug.
66572         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66573         versus int.
66574
66575 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * modules/regex (Depends-on): Add malloc, since the code
66578         assumes that !malloc(0) means failure.
66579
66580 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66583
66584         alloca modernization/simplification for regex.
66585         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66586         needs to be at the start of the file, and can be moved into
66587         regex_internal.h and simplified.
66588         * lib/regex_internal.h: Include <alloca.h>.
66589         (__libc_use_alloca) [!defined _LIBC]: New macro.
66590         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66591         now works outside glibc.
66592
66593 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * config/srclist.txt: Add glibc bugs 1241, 1245.
66596
66597 2005-08-25  Jim Meyering  <jim@meyering.net>
66598
66599         * lib/open-safer.c: Include <config.h>.
66600         Otherwise, we'd lose LARGEFILE support in any file using
66601         e.g. "fcntl--.h"
66602
66603 2005-08-25  Bruno Haible  <bruno@clisp.org>
66604
66605         * m4/minmax.m4: Require autoconf 2.52.
66606         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66607         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66608         alternatives of translit over the alphabet.
66609         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66610
66611 2005-08-24  Simon Josefsson  <jas@extundo.com>
66612
66613         * tests/test-getpass.c: New file.
66614
66615 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66618         for GNU regex features.
66619
66620 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66623         * lib/regex.h (regerror): Likewise.
66624
66625         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66626         requires this.  (The code never needed it.)
66627
66628         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66629         All uses of recently-renamed identifiers changed to use the new,
66630         POSIX-compliant names.  The code will build and run just fine
66631         without these changes, but it's better to eat our own dog food
66632         and use the standard-conforming names.
66633
66634         * lib/regex.h: Fix a multitude of POSIX name space violations.
66635         These changes have an effect only for programs that define
66636         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66637         do not change anything for programs compiled in the normal way.
66638         Also, there is no effect on the ABI.
66639
66640         (_REGEX_SOURCE): New macro.
66641         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66642         defined and _GNU_SOURCE is not; this fixes a name space violation.
66643
66644         Rename the following macros to obey POSIX requirements.
66645         The old names are still visible as macros if _REGEX_SOURCE is defined.
66646         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66647         RE_BACKSLASH_ESCAPE_IN_LISTS.
66648         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66649         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66650         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66651         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66652         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66653         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66654         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66655         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66656         (REG_INTERVALS): renamed from RE_INTERVALS.
66657         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66658         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66659         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66660         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66661         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66662         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66663         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66664         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66665         RE_UNMATCHED_RIGHT_PAREN_ORD.
66666         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66667         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66668         (REG_DEBUG): renamed from RE_DEBUG.
66669         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66670         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66671         unusual, since we can't clash with the POSIX REG_ICASE.
66672         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66673         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66674         (REG_NO_SUB): renamed from RE_NO_SUB.
66675         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66676         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66677         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66678         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66679         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66680         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66681         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66682         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66683         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66684         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66685         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66686         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66687         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66688         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66689         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66690         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66691         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66692         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66693         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66694         (REG_FIXED): Renamed from REGS_FIXED.
66695         (REG_NREGS): Renamed from RE_NREGS.
66696
66697         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66698         of other REG_* macros, since POSIX says the user is allowed to
66699         #undef these macros selectively.
66700
66701         (reg_errcode_t): Update comment stating what other tables need
66702         to be consistent.
66703
66704         Rename the following enum values to obey POSIX requirements.
66705         The old names are still visible as macros.
66706         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66707         is not defined, since GNU is supposed to be a superset of POSIX as
66708         much as possible, and since we want reg_errcode_t to be a signed
66709         type for implementation consistency.
66710         (_REG_NOERROR): Renamed from REG_NOERROR.
66711         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66712         (_REG_BADPAT): Renamed from REG_BADPAT.
66713         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66714         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66715         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66716         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66717         (_REG_EBRACK): Renamed from REG_EBRACK.
66718         (_REG_EPAREN): Renamed from REG_EPAREN.
66719         (_REG_EBRACE): Renamed from REG_EBRACE.
66720         (_REG_BADBR): Renamed from REG_BADBR.
66721         (_REG_ERANGE): Renamed from REG_ERANGE.
66722         (_REG_ESPACE): Renamed from REG_ESPACE.
66723         (_REG_BADRPT): Renamed from REG_BADRPT.
66724         (_REG_EEND): Renamed from REG_EEND.
66725         (_REG_ESIZE): Renamed from REG_ESIZE.
66726         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66727         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66728         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66729         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66730         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66731
66732         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66733         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66734         changed.  But support the old name if the new one is not defined
66735         and if _REGEX_SOURCE.
66736
66737         Change the following member names in struct re_pattern_buffer.
66738         The old names are still supported if !_REGEX_SOURCE.
66739         The new names are always supported, regardless of _REGEX_SOURCE.
66740         (re_buffer): Renamed from buffer.
66741         (re_allocated): Renamed from allocated.
66742         (re_used): Renamed from used.
66743         (re_syntax): Renamed from syntax.
66744         (re_fastmap): Renamed from fastmap.
66745         (re_translate): Renamed from translate.
66746         (re_can_be_null): Renamed from can_be_null.
66747         (re_regs_allocated): Renamed from regs_allocated.
66748         (re_fastmap_accurate): Renamed from fastmap_accurate.
66749         (re_no_sub): Renamed from no_sub.
66750         (re_not_bol): Renamed from not_bol.
66751         (re_not_eol): Renamed from not_eol.
66752         (re_newline_anchor): Renamed from newline_anchor.
66753
66754         Change the following member names in struct re_registers.
66755         The old names are still supported if !_REGEX_SOURCE.
66756         The new names are always supported, regardless of _REGEX_SOURCE.
66757         (rm_num_regs): Renamed from num_regs.
66758         (rm_start): Renamed from start.
66759         (rm_end): Renamed from end.
66760
66761         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66762         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66763         Prepend __ to parameter names.
66764
66765         Undo yesterday's changes.
66766
66767 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66770         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66771         lib/regex.c.
66772
66773 2005-08-24  Jim Meyering  <jim@meyering.net>
66774
66775         Sync from coreutils.
66776         * m4/fcntl-safer.m4: New file.
66777
66778         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66779         and object files for this module.
66780
66781 2005-08-24  Jim Meyering  <jim@meyering.net>
66782
66783         Sync from coreutils.
66784         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66785
66786 2005-08-24  Jim Meyering  <jim@meyering.net>
66787
66788         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66789         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66790
66791 2005-08-24  Jim Meyering  <jim@meyering.net>
66792
66793         * modules/fcntl-safer: New module.
66794         * modules/fts (Depends-on): Add fcntl-safer.
66795         * MODULES.html.sh (File descriptor based Input/Output):
66796         Add fcntl-safer.
66797
66798 2005-08-24  Bruno Haible  <bruno@clisp.org>
66799
66800         Support for unit test modules.
66801         * modules/README: Mention tests modules.
66802         * modules/TEMPLATE-TESTS: New file.
66803         * gnulib-tool: New options --extract-tests-module, --with-tests and
66804         --tests-base (unused for the moment).
66805         (testsbase, inctests): New variables.
66806         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66807         (func_verify_module): Exclude TEMPLATE-TESTS.
66808         (func_verify_nontests_module, func_verify_tests_module): New functions.
66809         (func_get_dependencies): Add implicit dependency for tests modules.
66810         (func_get_tests_module): New function.
66811         (func_modules_transitive_closure): When --with-tests was specified,
66812         include the unit tests as well, unless explicitly avoided.
66813         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66814         (func_emit_tests_Makefile_am): New function.
66815         (func_create_testdir): When --with-tests was specified, emit a
66816         tests/ directory.
66817         * MODULES.html.sh (Future developments): Update.
66818
66819 2005-08-24  Bruno Haible  <bruno@clisp.org>
66820
66821         * modules/tls-tests: New file.
66822         * tests/test-tls.c: New file, from GNU gettext.
66823
66824 2005-08-24  Bruno Haible  <bruno@clisp.org>
66825
66826         * modules/lock-tests: New file.
66827         * tests/test-lock.c: New file, from GNU gettext.
66828
66829 2005-08-24  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/lock.h: Add multiple inclusion guard.
66832         * lib/tls.h: Add multiple inclusion guard.
66833
66834 2005-08-24  Bruno Haible  <bruno@clisp.org>
66835
66836         * gnulib-tool: Add support for the --aux-dir option to
66837         --create-testdir, --create-megatestdir, --test, --megatest.
66838         (func_create_testdir, func_create_megatestdir): Optionally emit a
66839         AC_CONFIG_AUX_DIR directive.
66840         (create-testdir, create-megatestdir, test, megatest): Provide a
66841         default value for $auxdir.
66842
66843 2005-08-24  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (import): Use compound statement instead of subshell
66846         where possible.
66847
66848 2005-08-24  Bruno Haible  <bruno@clisp.org>
66849
66850         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66851
66852 2005-08-24  Bruno Haible  <bruno@clisp.org>
66853
66854         * gnulib-tool (func_version): Update.
66855
66856 2005-08-24  Bruno Haible  <bruno@clisp.org>
66857
66858         * gnulib-tool (func_import, func_create_testdir,
66859         func_create_megatestdir): Quote all autoconf macro arguments.
66860
66861 2005-08-24  Bruno Haible  <bruno@clisp.org>
66862
66863         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66864         option --force, because --force causes the aclocal.m4 of each
66865         subdirectory to be newer than the corresponding config.h.in.
66866
66867 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66870         All contents moved to gl_REGEX.
66871         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66872         assume that it does.
66873
66874 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66875
66876         * lib/regex.h (REG_NOSYS)
66877         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66878         Define, since POSIX requires it as of 2001.
66879         (_REG_ENOSYS)
66880         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66881         New private symbol, used to keep the enum signed in all cases.
66882         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66883         Youngman in
66884         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66885
66886         * lib/regex_internal.c (re_string_skip_chars, register_state):
66887         (calc_state_hash):
66888         Remove forward decls; no longer needed now that we use prototypes.
66889         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66890         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66891         (clean_state_log_if_needed): Likewise.
66892
66893 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * config/srclist.txt: Add glibc bugs 1231-1233.
66896
66897 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         Fix problems reported by Sam Steingold in
66900         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66901         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66902         assumed that reg_errcode_t is a signed type, which is not
66903         necessarily true if _XOPEN_SOURCE is not defined.
66904         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66905         since some compilers warn about it otherwise.
66906
66907 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66910         (init_word_char, create_initial_state, duplicate_node_closure):
66911         (fetch_token, peek_token_bracket, build_range_exp):
66912         (build_collating_symbol): Remove forward decls; no longer needed
66913         now that we use prototypes.
66914
66915         * lib/regcomp.c:
66916         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66917         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66918         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66919         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66920         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66921         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66922         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66923         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66924         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66925         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66926         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66927         (build_charclass, build_charclass_op, fetch_number, create_tree):
66928         (create_token_tree, mark_opt_subexp, duplicate_tree):
66929         Use prototypes rather than old-style definitions.
66930
66931         * lib/regex_internal.c:
66932         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66933         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66934         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66935         (re_string_reconstruct, re_string_peek_byte_case):
66936         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66937         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66938         (re_node_set_init_copy, re_node_set_add_intersect):
66939         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66940         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66941         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66942         (re_acquire_state, re_acquire_state_context, register_state):
66943         (create_ci_newstate, create_cd_newstate, free_state):
66944         Likewise.
66945         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66946         re_search_2):
66947         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66948         (re_search_internal, prune_impossible_nodes):
66949         (acquire_init_state_context, check_matching, static):
66950         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66951         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66952         (update_regs, sift_states_backward, build_sifted_states):
66953         (clean_state_log_if_needed, merge_state_array):
66954         (update_cur_sifted_state, add_epsilon_src_nodes):
66955         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66956         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66957         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66958         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66959         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66960         (check_arrival, check_arrival_add_next_nodes):
66961         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66962         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66963         (check_node_accept_bytes, check_node_accept, extend_buffers):
66964         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66965         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66966         (sift_ctx_init):
66967         Likewise.
66968
66969         * lib/regex_internal.h:
66970         (re_string_allocate, re_string_construct, re_string_reconstruct):
66971         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66972         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66973         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66974         (re_string_context_at, re_string_peek_byte_case):
66975         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66976         is defined, since we now use prototypes always.
66977
66978         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66979         C89 or better.  All uses removed.
66980
66981 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         * config/srclist.txt: Add glibc bugs 1220-1227.
66984
66985 2005-08-20  Jim Meyering  <jim@meyering.net>
66986
66987         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66988         of unused local, dfa.
66989
66990 2005-08-20  Bruno Haible  <bruno@clisp.org>
66991
66992         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66993
66994 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66997         (re_node_set_insert_last, re_dfa_add_node):
66998         Rename local variables to avoid GCC shadowing warnings.
66999
67000 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67003         [defined lint]: Suppress bogus uninitialized-variable warnings.
67004
67005         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67006         and let the caller return REG_ESPACE if out of space.  This
67007         removes an uninitialied-variable warning with GCC 4.0.1, and also
67008         avoids taking the address of a local variable.  All callers
67009         changed.
67010
67011 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67014         $LIBCSRC/posix/regexec.c.
67015         Add glibc bug 1217 for regcomp.c.
67016
67017 2005-08-19  Jim Meyering  <jim@meyering.net>
67018
67019         * lib/regexec.c (proceed_next_node): Redo local variables to
67020         avoid GCC shadowing warnings.
67021
67022 2005-08-18  Bruno Haible  <bruno@clisp.org>
67023
67024         * lib/strstr.c (strstr): Fix return value in multibyte case.
67025         * lib/strcasestr.c (strcasestr): Likewise.
67026
67027 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67030
67031 2005-08-17  Jim Meyering  <jim@meyering.net>
67032
67033         Make the %s format (seconds since the epoch) work for a negative
67034         number and when used with a zero-padded field width, e.g. %015s.
67035
67036         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67037         label so that it precedes the code to set `digits'.  Otherwise,
67038         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67039         print `00-22'.  Now, it prints `-0022', as it should.
67040
67041 2005-08-17  Bruno Haible  <bruno@clisp.org>
67042
67043         * modules/strstr (Files): Add m4/mbrtowc.m4.
67044         (Depends-on): Add mbuiter.
67045
67046 2005-08-17  Bruno Haible  <bruno@clisp.org>
67047
67048         * modules/strcasestr: New file.
67049         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67050         strcasestr.
67051
67052 2005-08-17  Bruno Haible  <bruno@clisp.org>
67053
67054         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67055
67056 2005-08-17  Bruno Haible  <bruno@clisp.org>
67057
67058         * modules/mbuiter: New file.
67059         * MODULES.html.sh (Extended multibyte and wide character utilities):
67060         Add mbuiter.
67061
67062 2005-08-17  Bruno Haible  <bruno@clisp.org>
67063
67064         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67065         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67066
67067 2005-08-17  Bruno Haible  <bruno@clisp.org>
67068
67069         * m4/strcasestr.m4: New file.
67070
67071 2005-08-17  Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67074         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67075
67076 2005-08-17  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/strcasestr.h: New file.
67079         * lib/strcasestr.c: New file.
67080
67081 2005-08-17  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/strcasecmp.c: Use mbuiter.h.
67084
67085 2005-08-17  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/mbuiter.h: New file.
67088
67089 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67090
67091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67092         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67093         and gl_GETOPT are both invoked via different paths (as happens
67094         with GNU tar CVS because it uses both argp and getopt), the former
67095         wins.
67096
67097 2005-08-16  Bruno Haible  <bruno@clisp.org>
67098
67099         * modules/tls: New file.
67100         * MODULES.html.sh (Multithreading): Add tls.
67101
67102 2005-08-16  Bruno Haible  <bruno@clisp.org>
67103
67104         * modules/strnlen1: New file.
67105         * MODULES.html.sh (String handling): Add strnlen1.
67106
67107 2005-08-16  Bruno Haible  <bruno@clisp.org>
67108
67109         * modules/strcase (Files): Add m4/mbrtowc.m4.
67110         (Depends-on): Add strnlen1, mbchar.
67111
67112 2005-08-16  Bruno Haible  <bruno@clisp.org>
67113
67114         * modules/mbiter: New file.
67115         * MODULES.html.sh (Extended multibyte and wide character utilities):
67116         Add mbiter.
67117
67118 2005-08-16  Bruno Haible  <bruno@clisp.org>
67119
67120         * modules/mbfile: New file.
67121         * MODULES.html.sh (Extended multibyte and wide character utilities):
67122         Add mbfile.
67123
67124 2005-08-16  Bruno Haible  <bruno@clisp.org>
67125
67126         * modules/mbchar: New file.
67127         * MODULES.html.sh (Extended multibyte and wide character utilities):
67128         New section.
67129
67130 2005-08-16  Bruno Haible  <bruno@clisp.org>
67131
67132         * m4/tls.m4: New file, from GNU gettext.
67133
67134 2005-08-16  Bruno Haible  <bruno@clisp.org>
67135
67136         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67137         always.
67138         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67139
67140 2005-08-16  Bruno Haible  <bruno@clisp.org>
67141
67142         * m4/mbiter.m4: New file.
67143
67144 2005-08-16  Bruno Haible  <bruno@clisp.org>
67145
67146         * m4/mbfile.m4: New file.
67147
67148 2005-08-16  Bruno Haible  <bruno@clisp.org>
67149
67150         * m4/mbchar.m4: New file.
67151
67152 2005-08-16  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/tls.h: New file, from GNU gettext.
67155         * lib/tls.c: New file, from GNU gettext.
67156
67157 2005-08-16  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/strnlen1.h: New file.
67160         * lib/strnlen1.c: New file.
67161
67162 2005-08-16  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67165         (mbi_init): Update.
67166         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67167         NUL byte, not after it.
67168
67169 2005-08-16  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/strcase.h (strcasecmp): Add note in comments.
67172         * lib/strncasecmp.c: Use code from strcasecmp.c.
67173         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67174         (strcasecmp): Work correctly in multibyte locales.
67175
67176 2005-08-16  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/mbiter.h: New file.
67179
67180 2005-08-16  Bruno Haible  <bruno@clisp.org>
67181
67182         * lib/mbfile.h: New file.
67183
67184 2005-08-16  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/mbchar.h: New file.
67187         * lib/mbchar.c: New file.
67188
67189 2005-08-16  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67192         the valid ones. Makes the comparison operations transitive:
67193         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67194         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67195
67196 2005-08-15  Simon Josefsson  <jas@extundo.com>
67197
67198         * modules/ssize_t (License): Change to 'unlimited'.
67199
67200         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67201
67202 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67205         Add comments for each pending glibc patch.
67206
67207 2005-08-15  Bruno Haible  <bruno@clisp.org>
67208
67209         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67210         __cplusplus is defined.
67211
67212 2005-08-14  Jim Meyering  <jim@meyering.net>
67213
67214         Sync from coreutils.
67215
67216         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67217         Use the hash-table-based cycle-detection code not just when
67218         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67219         Reported by James Youngman in
67220         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67221         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67222         FTS_TIGHT_CYCLE_CHECK.
67223         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67224         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67225         once again.
67226         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67227         * lib/fts.c (fd_safer): Remove decl.
67228         Include fcntl--.h rather than unistd-safer.h
67229         (fts_safe_changedir): Don't call fd_safer; no longer needed
67230         now that we include fcntl--.h.
67231
67232 2005-08-12  Simon Josefsson  <jas@extundo.com>
67233
67234         * modules/getndelim2: Use ssize_t module.
67235         * modules/getnline: Likewise.
67236         * modules/safe-read: Likewise.
67237         * modules/xreadlink: Likewise.
67238
67239         * modules/ssize_t: New file.
67240
67241 2005-08-12  Simon Josefsson  <jas@extundo.com>
67242
67243         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67244
67245 2005-08-12  Simon Josefsson  <jas@extundo.com>
67246
67247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67248         ssize_t.
67249
67250 2005-08-12  Simon Josefsson  <jas@extundo.com>
67251
67252         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67253         readline, getdelim and check_version.
67254         (Support for systems lacking ISO C 99: Sizes of integer types):
67255         Add size_max.
67256
67257 2005-08-12  Bruno Haible  <bruno@clisp.org>
67258
67259         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67260
67261 2005-08-11  Simon Josefsson  <jas@extundo.com>
67262
67263         * modules/readline: New file.
67264
67265         * modules/strnlen (Files): Add strnlen.h.
67266
67267 2005-08-11  Simon Josefsson  <jas@extundo.com>
67268
67269         * m4/readline.m4: New file.
67270
67271 2005-08-11  Simon Josefsson  <jas@extundo.com>
67272
67273         * lib/readline.h, readline.c: New file.
67274
67275 2005-08-11  Simon Josefsson  <jas@extundo.com>
67276
67277         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67278         gl_AVOID.
67279
67280 2005-08-11  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67283
67284 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67285
67286         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67287
67288 2005-08-10  Simon Josefsson  <jas@extundo.com>
67289
67290         * tests/test-iconvme.c: New file.
67291
67292 2005-08-10  Simon Josefsson  <jas@extundo.com>
67293
67294         * m4/strnlen.m4: New file.
67295
67296         * m4/strndup.m4: Don't check for strnlen declaration, done in
67297         strnlen.m4.
67298
67299 2005-08-10  Simon Josefsson  <jas@extundo.com>
67300
67301         * lib/strndup.c: Use strnlen.h.
67302
67303         * lib/strnlen.h: New file.
67304
67305 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67306
67307         * README: Typos.
67308
67309 2005-08-02  Simon Josefsson  <jas@extundo.com>
67310
67311         * modules/readline: New file.
67312
67313 2005-08-02  Simon Josefsson  <jas@extundo.com>
67314
67315         * modules/getdelim: New file.
67316
67317         * modules/getline: Rewrite, don't use getndelim2.
67318
67319 2005-08-02  Simon Josefsson  <jas@extundo.com>
67320
67321         * m4/getline.m4: Separate out getdelim stuff into separate module.
67322
67323         * m4/getdelim.m4: New file.
67324
67325 2005-08-02  Simon Josefsson  <jas@extundo.com>
67326
67327         * lib/getline.h, getline.c: Rewrite.
67328
67329         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67330
67331 2005-07-31  Bruno Haible  <bruno@clisp.org>
67332
67333         * lib/lock.h (gl_lock_initializer): New macro.
67334         (gl_lock_define_initialized): Use it.
67335         (gl_rwlock_initializer): New macro.
67336         (gl_rwlock_define_initialized): Use it.
67337         (gl_recursive_lock_initializer): New macro.
67338         (gl_recursive_lock_define_initialized): Use it.
67339
67340 2005-07-30  Karl Berry  <karl@gnu.org>
67341
67342         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67343         Report from Ben Pfaff, regarding getopt.
67344
67345 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67348         normal way.
67349         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67350         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67351         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67352         (gl_GETOPT): Use the new macros.  Most of the implementation
67353         is moved to the new macros.  This is for programs like Emacs
67354         that don't want all the functionality of gl_GETOPT.
67355
67356 2005-07-26  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/lock.m4: Update from GNU gettext.
67359
67360 2005-07-26  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/lock.h: Update from GNU gettext.
67363         * lib/lock.c: Update from GNU gettext.
67364
67365 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67368         obsolescent AC_TRY_RUN.  Include the default includes files, for
67369         'exit'.
67370
67371 2005-07-24  Bruno Haible  <bruno@clisp.org>
67372
67373         * modules/visibility: New file.
67374         * MODULES.html.sh (Misc): Add visibility.
67375
67376 2005-07-24  Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/visibility.m4: New file.
67379
67380 2005-07-24  Bruno Haible  <bruno@clisp.org>
67381
67382         * doc/visibility.texi: New file.
67383
67384 2005-07-22  Bruno Haible  <bruno@clisp.org>
67385
67386         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67387         $(ALLOCA_H), redundant through BUILT_SOURCES.
67388         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67389         redundant through BUILT_SOURCES.
67390         * modules/byteswap (Makefile.am): Remove explicit dependency on
67391         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67392         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67393         $(FNMATCH_H), redundant through BUILT_SOURCES.
67394         * modules/getopt (Makefile.am): Remove explicit dependency on
67395         $(GETOPT_H), redundant through BUILT_SOURCES.
67396         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67397         redundant through BUILT_SOURCES.
67398         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67399         redundant through BUILT_SOURCES.
67400         * modules/stdbool (Makefile.am): Remove explicit dependency on
67401         $(STDBOOL_H), redundant through BUILT_SOURCES.
67402         * modules/stdint (Makefile.am): Remove explicit dependency on
67403         $(STDINT_H), redundant through BUILT_SOURCES.
67404         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67405         Remove explicit dependency on $(SYSEXITS_H).
67406         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67407
67408 2005-07-18  Simon Josefsson  <jas@extundo.com>
67409
67410         * lib/check-version.c (check_version): Accept identical versions too.
67411
67412 2005-07-18  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/lock: New file.
67415         * MODULES.html.sh (Multithreading): New section.
67416
67417 2005-07-18  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/lock.m4: New file, from GNU gettext.
67420
67421 2005-07-18  Bruno Haible  <bruno@clisp.org>
67422
67423         * lib/lock.h: New file, from GNU gettext.
67424         * lib/lock.c: New file, from GNU gettext.
67425
67426 2005-07-18  Bruno Haible  <bruno@clisp.org>
67427
67428         * lib/lock.h (gl_once_t): New type.
67429         (gl_once_define, gl_once): New macros.
67430         * lib/lock.c (fresh_once): New variable.
67431         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67432         functions.
67433
67434 2005-07-16  Simon Josefsson  <jas@extundo.com>
67435
67436         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67437         workaround, suggested by Bruno.
67438
67439 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67440
67441         * modules/xalloc (Depends-on): Add xalloc-die.
67442         * modules/xvasprintf (Depends-on): Add xalloc-die.
67443
67444 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67447         with a minor change.
67448
67449 2005-07-15  Bruno Haible  <bruno@clisp.org>
67450
67451         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67452         When using lib/poll.c, define poll as rpl_poll.
67453
67454 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67455
67456         * modules/argp (Depends-on): Remove unlocked-io.
67457
67458 2005-07-14  Derek Price  <derek@ximbiot.com>
67459
67460         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67461         for glob symlink bug.
67462
67463 2005-07-14  Bruno Haible  <bruno@clisp.org>
67464
67465         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67466         Instead, test for *_unlocked function declarations directly.
67467
67468 2005-07-11  Simon Josefsson  <jas@extundo.com>
67469
67470         * modules/size_max: New file.
67471
67472         * modules/xsize: Depend on size_max module for size_max.m4.
67473
67474 2005-07-11  Simon Josefsson  <jas@extundo.com>
67475
67476         * lib/size_max.h: New file.
67477
67478 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67481         copyright symbol and the year.
67482         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67483         (version_etc_va): Use parameterized copyright notice.
67484         Reword to conform to the current GNU coding standards.
67485
67486 2005-07-11  Karl Berry  <karl@gnu.org>
67487
67488         * doc/gnulib.texi (Quoting): new node.
67489         (Initial import): more info, from Patrice.
67490
67491 2005-07-11  Bruno Haible  <bruno@clisp.org>
67492
67493         * gnulib-tool (func_usage): Document option --avoid.
67494         (Command line options): Handle --avoid.
67495         (func_acceptable): New function.
67496         (func_modules_transitive_closure): Use it.
67497
67498 2005-07-11  Bruno Haible  <bruno@clisp.org>
67499
67500         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67501         Reported by Jim Meyering.
67502
67503 2005-07-10  Bruno Haible  <bruno@clisp.org>
67504
67505         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67506         Needed when size_t is smaller than 'unsigned int'.
67507         Reported by Paul Eggert.
67508
67509 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67510
67511         * modules/argp (Depends-on): Add unlocked-io
67512
67513 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67514
67515         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67516         block of defines.
67517
67518 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67521         fix now.
67522
67523 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67524         and Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67527         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67528
67529 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * modules/regex (Files): Add lib/regex_internal.c,
67532         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67533         (Depends-on): Add extensions.
67534         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67535
67536 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67539         pathconf.
67540         * m4/same.m4 (gl_SAME): Likewise.
67541         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67542
67543         * m4/regex.m4: Adjust to new libc regex implementation.
67544         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67545         all the .c and .h parts of (the new) regex.
67546         Quote the m4 stuff better.
67547         Check for RE_ICASE bug of old gnulib.
67548         Check for REG_STARTEND of recent libc.
67549         Rename local variables from jm_* to gl_*.
67550         Quote operand of "test -f".
67551         Say "recent enough" version of libc, not "version 2".
67552         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67553         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67554         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67555         Remove check for btowc, isascii.
67556         Require AM_LANGINFO_CODESET.
67557
67558 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * lib/regex.c, regex.h: Sync from libc.
67561         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67562         * lib/regexec.c:
67563         New files, synced from libc, except that regex_internal.h
67564         currently has a small porting fix.
67565
67566 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67567
67568         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67569         regex_internal.c, regexec.c.
67570         Add regex_internal.h too, but as a comment, since the libc version
67571         is currently broken in gnulib mode.
67572
67573 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         Support programs like Emacs that use gnulib but not gettext.
67576         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67577         * modules/gettext-h: New file.
67578         * modules/gettext (Files): Remove lib/gettext.h.
67579         (Depends-on): Add gettext-h.
67580         (Makefile.am): Remove lib_SOURCES.
67581         * modules/argmatch, modules/c-stack, modules/closeout:
67582         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67583         * modules/execute, modules/file-type, modules/getaddrinfo:
67584         * modules/getopt, modules/human, modules/javacomp:
67585         * modules/javaexec, modules/mkdir-p, modules/obstack:
67586         * modules/openat, modules/pagealign_alloc, modules/pipe:
67587         * modules/quotearg, modules/regex, modules/rpmatch:
67588         * modules/unicodeio, modules/userspec, modules/version-etc:
67589         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67590         * modules/xsetenv:
67591         Depend on gettext-h, not gettext.
67592
67593 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * gnulib-tool (func_import): Add support for 'public domain' license.
67596         * modules/alloca, modules/atexit, modules/memmove:
67597         Now public domain, not GPL.
67598         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67599         * modules/realloc, modules/strerror, modules/strtod:
67600         Now LGPL, not GPL.
67601
67602 2005-07-05  Bruno Haible  <bruno@clisp.org>
67603
67604         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67605         autoconf CVS. Needed for mingw.
67606
67607 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67608
67609         Remove the dependency of the strftime module on the tzset module.
67610         * modules/strftime (Depends-on): Remove dependency on tzset.
67611
67612 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         Remove the dependency of the strftime module on the tzset module.
67615         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67616         gl_FUNC_TZSET_CLOBBER.
67617
67618 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         Remove the dependency of the strftime module on the tzset module.
67621         * lib/strftime.c (my_strftime)
67622         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67623         Copy the input structure, to work around some of the bug with
67624         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67625         Solaris releases, you should also use the tzset module, but we won't
67626         require it as a dependency any more since we don't want LGPLed code
67627         to depend on GPLed code.
67628
67629 2005-07-02  Jim Meyering  <jim@meyering.net>
67630
67631         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67632         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67633         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67634         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67635
67636 2005-07-02  Jim Meyering  <jim@meyering.net>
67637
67638         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67639
67640 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67643         declares only 'struct timespec;' (!).
67644
67645 2005-07-01  Jim Meyering  <jim@meyering.net>
67646
67647         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67648         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67649         * lib/save-cwd.c, tempname.c:
67650         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67651         and don't include <sys/file.h>).
67652
67653 2005-06-29  Jim Meyering  <jim@meyering.net>
67654
67655         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67656         type name.  Use the variable name instead.
67657         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67658         Likewise.
67659
67660 2005-06-28  Simon Josefsson  <jas@extundo.com>
67661
67662         * modules/check-version (Files): Add check-version.m4.
67663
67664 2005-06-28  Simon Josefsson  <jas@extundo.com>
67665
67666         * m4/check-version.m4: New file, suggested by Jim Meyering
67667         <jim@meyering.net>.
67668
67669 2005-06-28  Simon Josefsson  <jas@extundo.com>
67670
67671         * lib/check-version.h, lib/check-version.c: New files.
67672
67673 2005-06-28  Simon Josefsson  <jas@extundo.com>
67674
67675         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67676         collision with global variable.  Better indentation.  Don't
67677         increment buffer pointer beyond buffer end.  Based on comments
67678         from Paul Eggert <eggert@cs.ucla.edu>.
67679
67680         * lib/base64.h: Indent.
67681
67682 2005-06-28  Simon Josefsson  <jas@extundo.com>
67683
67684         * doc/gnulib.texi (Library version handling): New section.
67685
67686 2005-06-28  Jim Meyering  <jim@meyering.net>
67687
67688         * check-module (find_included_lib_files): Hard-code another
67689         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67690         but modules/fts-lgpl (correctly) does not list those files.
67691
67692         * modules/canonicalize (Files): Add lib/pathmax.h.
67693
67694 2005-06-25  Simon Josefsson  <jas@extundo.com>
67695
67696         * modules/check-version: New file.
67697
67698 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67701         initializer of struct addrinfo, as an indication that we don't
67702         care how many members the structure has.
67703
67704 2005-06-24  Derek Price  <derek@ximbiot.com>
67705         and Bruno Haible  <bruno@clisp.org>
67706
67707         Remove stat module & update lstat.
67708         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67709         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67710         * m4/stat.m4: Remove this file.
67711
67712 2005-06-24  Derek Price  <derek@ximbiot.com>
67713         and Bruno Haible  <bruno@clisp.org>
67714
67715         Remove stat module & update lstat.
67716         * lib/stat.c: Remove this file...
67717         (slash_aware_lstat): ...moving this content and its support...
67718         * lib/lstat.c (rpl_lstat): ...into here.
67719         * lib/lstat.h: New file.
67720
67721 2005-06-24  Derek Price  <derek@ximbiot.com>
67722         and Bruno Haible  <bruno@clisp.org>
67723
67724         Remove stat module & update lstat.
67725         * config/srclist.txt (libc sources): Remove stat.
67726
67727 2005-06-24  Derek Price  <derek@ximbiot.com>
67728         and Bruno Haible  <bruno@clisp.org>
67729
67730         Remove stat module & update lstat.
67731         * MODULES.html.sh (stat): Remove.
67732         * MODULES.html: Regenerated.
67733         * modules/lstat (Description): Correct function name.
67734         (Files): Add "lstat.h".
67735         (Depends-on): Remove stat, add xalloc, stat-macros.
67736         * modules/stat: Remove this file.
67737         (Include): Add "lstat.h", remove <sys/stat.h>.
67738
67739 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67742         (ranged_convert): Don't save conversion in a temporary struct.
67743         This causes a warning with GCC 4.0.0, and anyway in the typical
67744         case it's not worth the extra 100 bytes or so of code.
67745         (ranged_convert, __mktime_internal): When calling a function via a
67746         pointer P, use P () rather than (*P) (), as we now assume C89 or
67747         better.
67748
67749 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67752         "who -r" failed to give output.  Problem reported by Tim Waugh.
67753
67754         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67755         (xcalloc): Use it to avoid needless tests.
67756         Problem reported by Jim Meyering.
67757
67758 2005-06-20  Derek Price  <derek@ximbiot.com>
67759
67760         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67761         unnecessary for Autoconfs > 2.59c.
67762
67763 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67764
67765         * lib/argp.h (__option_is_short): Check upper limit of
67766         __key. Isprint() requires its argument to have the value
67767         of an unsigned char or EOF.
67768
67769 2005-06-16  Jim Meyering  <jim@meyering.net>
67770
67771         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67772         when either N or S is zero.
67773
67774 2005-06-16  Derek Price  <derek@ximbiot.com>
67775
67776         * m4/bison.m4: Declare YACC & YFLAGS precious.
67777
67778 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67781         multibyte string or pattern, fall back on unibyte matching.
67782         Problem reported by James Youngman.
67783
67784 2005-06-08  Bruno Haible  <bruno@clisp.org>
67785
67786         * modules/csharpcomp: New file.
67787         * MODULES.html.sh (C#): Add csharpcomp.
67788
67789 2005-06-08  Bruno Haible  <bruno@clisp.org>
67790
67791         * m4/csharpcomp.m4: New file, from GNU gettext.
67792
67793 2005-06-08  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/csharpcomp.h: New file, from GNU gettext.
67796         * lib/csharpcomp.c: New file, from GNU gettext.
67797         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67798
67799 2005-06-08  Bruno Haible  <bruno@clisp.org>
67800
67801         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67802         warning on mingw.
67803
67804 2005-06-07  Derek Price  <derek@ximbiot.com>
67805
67806         Sync from CVS.
67807         * lib/glob_.h: Indent nested #ifdef.
67808
67809 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         Sync from coreutils.
67812         Use "file name" when talking about file names, instead of "filename"
67813         or "path", as per the GNU coding standards.
67814         * lib/mkdir-p.c: Renamed from makepath.c.
67815         (make_dir_parents): Renamed from make_path.  All callers changed.
67816         * lib/mkdir-p.h: Likewise.  All includers changed.
67817         * lib/filenamecat.c: Renamed from path-concat.c.
67818         (file_name_concat): Renamed from path_concat.  All callers changed.
67819         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67820         * lib/filenamecat.h: Likewise.  All includers changed.
67821         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67822         in comments or local variable names.
67823         * lib/basename.c: Likewise.
67824         * lib/canonicalize.c, canonicalize.h: Likewise.
67825         * lib/dirname.c, dirname.h: Likewise.
67826         * lib/euidaccess.c: Likewise.
67827         * lib/exclude.c: Likewise
67828         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67829         * lib/fsusage.c, fsuage.h: Likewise.
67830         * lib/fts.c, fts_.h: Likewise.
67831         * lib/getcwd.c: Likewise.
67832         * lib/getloadavg.c: Likewise.
67833         * lib/mkstemp.c: Likewise.
67834         * lib/mountlist.c, mountlist.h: Likewise.
67835         * lib/openat.c, openat.h: Likewise.
67836         * lib/readlink-stub.c: Likewise.
67837         * lib/readutmp.c, readutmp.h: Likewise.
67838         * lib/rename.c: Likewise.
67839         * lib/rmdir.c: Likewise.
67840         * lib/same.c: Likewise.
67841         * lib/savedir.c: Likewise.
67842         * lib/stripslash.c: Likewise.
67843         * lib/tempname.c: Likewise.
67844         * lib/xreadlink.c: Likewise.
67845         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67846         All uses changed.
67847         * lib/exclude.h: Likewise.
67848
67849         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67850         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67851         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67852         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67853         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67854         files have been getting away with it for years (MORE/BSD 4.3
67855         is extinct now).
67856         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67857         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67858
67859         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67860         Define to 256, not 255, as per modern POSIX.
67861
67862 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         Sync from coreutils.
67865         Use "file name" when talking about file names, instead of "filename"
67866         or "path", as per the GNU coding standards.
67867         * MODULES.html.sh: mkdir-p renamed from makepath.
67868         filenamecat renamed from path-concat.
67869         * modules/filenamecat: Renamed from modules/path-concat.
67870         (Files): filenamecat.h and filenamecat.c renamed from
67871         path-concat.h and path-concat.c.
67872         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67873         (Include): filenamecat.h, not path-concat.h.
67874         * modules/mkdir-p: Renamed from modules/makepath.
67875         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67876         makepath.c.
67877         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67878         (Include): mkdir-p.h, not makepath.h.
67879
67880 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         Sync from coreutils.
67883         * m4/mkdir-p.m4: Renamed from makepath.m4.
67884         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67885         Rename files from makepath.c to mkdir-p.c, and from
67886         makepath.h to mkdir-p.h.
67887         * m4/filenamecat.m4: Renamed from path-concat.m4.
67888         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67889         Rename files from path-concat.c to filenamecat.c,
67890         and from path-concat.h to filenamecat.h.
67891         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67892         "file name" in local variables or comments.
67893         * m4/rename.m4: Likewise.
67894
67895 2005-06-01  Bruno Haible  <bruno@clisp.org>
67896
67897         * modules/csharpexec: New file.
67898         * MODULES.html.sh (C#): New section.
67899
67900 2005-06-01  Bruno Haible  <bruno@clisp.org>
67901
67902         * m4/csharp.m4: New file, from GNU gettext.
67903         * m4/csharpexec.m4: New file, from GNU gettext.
67904
67905 2005-06-01  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/csharpexec.h: New file, from GNU gettext.
67908         * lib/csharpexec.c: New file, from GNU gettext.
67909         * lib/csharpexec.sh.in: New file, from GNU gettext.
67910
67911 2005-05-31  Derek Price  <derek@ximbiot.com>
67912             Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         Sync from cvs.
67915         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67916
67917 2005-05-31  Derek Price  <derek@ximbiot.com>
67918             Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         Sync from cvs.
67921         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67922
67923 2005-05-29  Derek Price  <derek@ximbiot.com>
67924
67925         * config/srclist.txt (glob_.h, glob.c): Add these files.
67926
67927 2005-05-29  Derek Price  <derek@ximbiot.com>
67928
67929         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67930         * modules/glob: New file.
67931         * modules/getlogin_r: Add link to POSIX spec in description.
67932
67933 2005-05-29  Derek Price  <derek@ximbiot.com>
67934             Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         * m4/glob.m4: New file.
67937
67938 2005-05-29  Derek Price  <derek@ximbiot.com>
67939             Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/glob_.h, lib/glob.c: New files.
67942
67943 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67946         * modules/fts-lgpl (Depends-on): Remove gettext.
67947
67948 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67951         and don't require gt_INTTYPES_PRI.
67952
67953 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67956
67957         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67958         the configuration hassle isn't worth it.
67959         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67960         (LONGEST_MODIFIER, PRIuMAX): Remove.
67961
67962 2005-05-27  Bruno Haible  <bruno@clisp.org>
67963
67964         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67965
67966 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67969         _POSIX_PTHREAD_SEMANTICS for Solaris.
67970
67971 2005-05-25  Derek Price  <derek@ximbiot.com>
67972
67973         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67974
67975 2005-05-25  Derek Price  <derek@ximbiot.com>
67976             Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67979         * lib/getlogin_r.c, getlogin_r.h: New files.
67980
67981 2005-05-25  Bruno Haible  <bruno@clisp.org>
67982             Derek Price  <derek@ximbiot.com>
67983
67984         * lib/getlogin_r.h: Simplify API documentation.
67985
67986 2005-05-23  Derek Price  <derek@ximbiot.com>
67987
67988         * modules/minmax (Files): Add m4/minmax.m4.
67989         (configure.ac): Add gl_MINMAX.
67990
67991 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67994         so that unistd-safer.h (GPL'ed code) need not be included.
67995
67996 2005-05-22  Bruno Haible  <bruno@clisp.org>
67997
67998         * m4/minmax.m4: New file.
67999         Based on a patch by Derek Price <derek@ximbiot.com>.
68000
68001 2005-05-22  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68004         (INT64_MIN): Fix definition.
68005         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68006
68007         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68008         NEED_SIGNED_INT_TYPES.
68009
68010         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68011         HAVE_SYSTEM_INTTYPES.
68012
68013 2005-05-22  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68016         Also include <sys/param.h> if it defines MIN, MAX.
68017         Based on a patch by Derek Price <derek@ximbiot.com>.
68018
68019 2005-05-21  Jim Meyering  <jim@meyering.net>
68020
68021         * modules/fts (Files): Add m4/inttypes-pri.m4.
68022         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68023
68024 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         New fts module.
68027         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68028         (setup_dir, free_dir): New functions.
68029         (enter_dir, leave_dir): Define trivial
68030         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68031         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68032         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68033         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68034         Move to fts-cycle.c.
68035         (fts_open): Use setup_dir.
68036         (fts_close): Use free_dir.
68037         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68038         This adds a label and some gotos, but the alternatives were messier.
68039         Check for memory allocation failure when entering a dir.
68040         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68041         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68042         (FTS): New member fts_cycle, that is a union that contains the
68043         old active_dir_ht and cycle_state.  All uses changed to mention
68044         fts_cycle.ht and fts_cycle.state.
68045         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68046         fts.c, with the following changes:
68047         (setup_dir, free_dir): New functions.
68048         (enter_dir): Now returns bool.  Return true if successful, false
68049         if memory exhausted.  All callers changed.
68050         Do not bother partly cleaning up on
68051         memory allocation failure; that is free_dir's job.
68052         However, free ad if hash_insert fails, to avoid memory leak.
68053         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68054         fts->fts_options to see which union member to use.
68055
68056 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68059         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68060
68061 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68062
68063         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68064
68065 2005-05-20  Jim Meyering  <jim@meyering.net>
68066
68067         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68068         Now a macro, to pacify GCC.
68069
68070 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68071
68072         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68073         of -1.
68074
68075 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68076
68077         * lib/chown.c (rpl_chown): Return -1 on failure.
68078
68079 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68082         Don't check for stddef.h.
68083         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68084         don't use its results.
68085         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68086         since we include them unconditionally.  Don't require
68087         AM_STDBOOL_H, since stdbool is a prerequisite.
68088         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68089         since we assume C89 or better.
68090         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68091         as we don't use their results.
68092         Don't check for fchdir, memmove, memset, strrchr, as we use
68093         them unconditionally.
68094         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68095         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68096
68097 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68100         Include <stddef.h> unconditionally, since we assume C89 now.
68101         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68102         * lib/fts.c: Include fts_.h first, to check interface.
68103         Do not include intprops.h; no longer needed.
68104         Include cycle-check.h and hash.h, since fts_.h no longer does.
68105         Remove unnecessary casts of closedir to void.
68106         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68107         decide whether to decrement nlinks.
68108         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68109         (FTS): Use struct hash_table * instead of Hash_table, so that
68110         we no longer need to include hash.h here.
68111
68112 2005-05-18  Jim Meyering  <jim@meyering.net>
68113
68114         * modules/dirfd (License): Change to LGPL.  Most of the code
68115         is already in the public domain.
68116
68117 2005-05-18  Jim Meyering  <jim@meyering.net>
68118
68119         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68120         Reported by Yoann Vandoorselaere.
68121
68122 2005-05-17  Jim Meyering  <jim@meyering.net>
68123
68124         * m4/fts.m4: New file, from coreutils.
68125
68126 2005-05-17  Jim Meyering  <jim@meyering.net>
68127
68128         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68129
68130 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         Sync from coreutils.
68133         * m4/unlinkdir.m4: New file.
68134
68135 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         Sync from coreutils.
68138         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68139         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68140         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68141         White space changes only.
68142         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68143         special.
68144         * lib/yesno.c: Include getline.h, not ctype.h.
68145         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68146         Use getline to remove arbitrary restriction on response length.
68147
68148 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * config/srclist-update: Spell out "Street" in FSF postal
68151         mail address; this is the style the FSF seems to prefer.
68152
68153         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68154         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68155         this updates FSF postal mail address.
68156
68157         Sync from coreutils.
68158         * modules/unlinkdir: New file.
68159         * modules/yesno (Depends-on): Add getline.
68160         * MODULES.html.sh (File system functions): Add unlinkdir.
68161
68162 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68165         lib/strsep.h:
68166         Change the initial comment to refer to GPL, not LGPL.
68167         gnulib-tool will change it to LGPL as needed.
68168
68169         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68170         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68171         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68172         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68173         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68174         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68175         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68176         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68177         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68178         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68179         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68180         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68181         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68182         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68183         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68184         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68185         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68186         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68187         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68188         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68189         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68190         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68191         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68192         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68193         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68194         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68195         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68196         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68197         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68198         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68199         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68200         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68201         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68202         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68203         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68204         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68205         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68206         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68207         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68208         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68209         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68210         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68211         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68212         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68213         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68214         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68215         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68216         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68217         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68218         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68219         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68220         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68221         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68222         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68223         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68224         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68225         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68226         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68227         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68228         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68229         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68230         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68231         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68232         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68233         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68234         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68235         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68236         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68237         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68238         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68239         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68240         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68241         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68242         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68243         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68244         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68245         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68246         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68247         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68248         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68249         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68250         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68251         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68252         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68253         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68254         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68255         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68256         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68257         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68258         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68259         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68260         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68261         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68262         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68263         lib/yesno.c, lib/yesno.h:
68264         Update FSF postal mail address.
68265
68266 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68269         tests/test-memmem.c, tests/test-stpncpy.c:
68270         Update FSF postal mail address.
68271
68272 2005-05-13  Bruno Haible  <bruno@clisp.org>
68273
68274         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68275         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68276         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68277         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68278         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68279         Add support for 64-bit integers in the MSVC compiler.
68280
68281 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68282
68283         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68284
68285 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68286
68287         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68288
68289 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         * doc/getdate.texi (General date syntax): Don't say that date
68292         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68293         Problem reported by Nic Ferrier.
68294
68295 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68296
68297         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68298         specified in ai_socktype. Fix invalid ai_protocol
68299         check. ai_protocol is usually set to 0 or depending on
68300         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68301         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68302         ai_socktype / ai_protocol in the returned addrinfo structure.
68303
68304 2005-05-10  Simon Josefsson  <jas@extundo.com>
68305
68306         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68307         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68308
68309 2005-05-10  Karl Berry  <karl@gnu.org>
68310
68311         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68312         (from http://www.gnu.org/licenses).
68313         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68314         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68315         fdl.texi suffices.
68316
68317 2005-05-10  Karl Berry  <karl@gnu.org>
68318
68319         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68320         (COPYING.DOC): remove.
68321
68322         * config/srclist-update: new FSF address.
68323
68324 2005-05-10  Derek Price  <derek@ximbiot.com>
68325
68326         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68327         possible.
68328
68329 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68330             Bruno Haible  <bruno@clisp.org>
68331
68332         * modules/inet_ntop: New file.
68333         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68334         inet_ntop.
68335
68336 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68337             Bruno Haible  <bruno@clisp.org>
68338
68339         * m4/inet_ntop.m4: New file.
68340
68341 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68342             Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/inet_ntop.h: New file.
68345         * lib/inet_ntop.c: New file, from glibc with modifications.
68346
68347 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * modules/time_r (License): Change to LGPL.
68350         * modules/extensions (License): Change to LGPL.  Actually,
68351         the license is more permissive than that, but currently gnulib-tool
68352         doesn't know how to handle more-permissive licenses.
68353
68354         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68355         Problem reported by Dave Love.
68356
68357 2005-05-08  Jim Meyering  <jim@meyering.net>
68358
68359         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68360         blank.
68361
68362 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * modules/argmatch (Depends-on): Add stdbool.
68365         * modules/backupfile (Depends-on): Likewise.
68366         * modules/chdir-long (Depends-on): Likewise.
68367         * modules/closeout (Depends-on): Likewise.
68368         * modules/cycle-check (Depends-on): Likewise.
68369         * modules/dirname (Depends-on): Likewise.
68370         * modules/fnmatch (Depends-on): Likewise.
68371         * modules/fsusage (Depends-on): Likewise.
68372         * modules/fwriteerror (Depends-on): Likewise.
68373         * modules/getcwd (Depends-on): Likewise.
68374         * modules/getloadavg (Depends-on): Likewise.
68375         * modules/hard-locale (Depends-on): Likewise.
68376         * modules/makepath (Depends-on): Likewise.
68377         * modules/mountlist (Depends-on): Likewise.
68378         * modules/nanosleep (Depends-on): Likewise.
68379         * modules/posixtm (Depends-on): Likewise.
68380         * modules/quotearg (Depends-on): Likewise.
68381         * modules/readtokens (Depends-on): Likewise.
68382         * modules/readtokens0 (Depends-on): Likewise.
68383         * modules/readutmp (Depends-on): Likewise.
68384         * modules/save-cwd (Depends-on): Likewise.
68385         * modules/strftime (Depends-on): Likewise.
68386         * modules/userspec (Depends-on): Likewise.
68387         * modules/utimecmp (Depends-on): Likewise.
68388         * modules/xgetcwd (Depends-on): Likewise.
68389         * modules/xnanosleep (Depends-on): Likewise.
68390         * modules/xstrtod (Depends-on): Likewise.
68391         * modules/yesno (Depends-on): Likewise.
68392
68393 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68396         needless checks.
68397
68398 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         Merge from coreutils.  Among other things,
68401         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68402         * lib/fd-safer.c: New file.
68403         * lib/fcntl-safer.h, open-safer.c: Remove.
68404         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68405         * lib/dup-safer.c: Include unistd-safer.h first.
68406         Don't include errno.h.
68407         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68408         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68409         * lib/file-type.c: Rely on file-type.h change.
68410         * lib/getloadavg.c: Include unistd-safer.h.
68411         (getloadavg): Use safer open.
68412         * lib/getusershell.c: Include "stdio-safer.h".
68413         (getusershell): Use safer fopen.
68414         * lib/long-options.c (long_options): Use NULL rather than 0.
68415         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68416         'free'.
68417         * lib/modechange.c: Likewise.
68418         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68419         (MODE_DONE): New constant.
68420         (struct mode_change): Remove 'next' member.
68421         (make_node_op_equals): New function; like the old one of the
68422         same name, except it allocates an array.
68423         (mode_compile, mode_create_from_ref): Use it.
68424         (mode_compile): Allocate result as an array, not a linked list.
68425         Parse octal string ourself, so that we catch mistakes like "+0".
68426         (mode_adjust): Arg is an array, not a linked list.
68427         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68428         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68429         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68430         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68431         Remove.  This is now stat-macros.h's job.
68432         (talloc): Remove.  All callers replaced by xalloc, so that
68433         our invokers don't have to worry about reporting memory failures.
68434         (make_node_op_equals): Remove.
68435         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68436         New constants.
68437         (struct mode_change): Moved here from modechange.h.
68438         (mode_append_entry): Remove.
68439         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68440         apps to have incorrect behavior.  Use simpler algorithm for head
68441         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68442         Detect more invalid usages rather than having somewhat-random behavior.
68443         Don't insert an "a=" action, as that leads to incorrect behavior.
68444         (mode_compile, mode_create_from_ref): Return NULL on error instead
68445         of an enum, since now there's only one way to have an error.  All
68446         callers changed.
68447         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68448         at the correct time.  Simplify calculation of "+u" and its ilk.
68449         Don't mishandle "+X".
68450         (mode_free): Remove "register" and localize decls.
68451         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68452         (struct mode_change): Move to modechange.c; callers don't
68453         need to see this stuff.
68454         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68455         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68456         (mode_change, mode_adjust): Reflect the new signatures noted above.
68457         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68458         that might redefine system include files.
68459         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68460         (my_usleep): Use NULL rather than (void *) 0.
68461         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68462         Use siginterrupt to specify that system calls should be interrupted.
68463         (rpl_nanosleep): Move initialization of suspended closer to call of
68464         my_usleep.
68465         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68466         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68467         (desirable_utmp_entry): New function.
68468         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68469         using x2nrealloc, to simplify logic.
68470         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68471         size calculation.  Do not assume utmp file is a regular file.
68472         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68473         (READ_UTMP_CHECK_PIDS): New constant.
68474         * lib/save-cwd.c: Include unistd-safer.h.
68475         (save_cwd): Use fd_safer.
68476         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68477         [!_LIBC] Include "stat-macros.h" instead.
68478         * lib/unistd-safer.h (fd_safer): New decl.
68479
68480 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68481
68482         * modules/getloadavg (Depends-on): Add unistd-safer.
68483         * modules/getusershell (Depends-on): Add stdio-safer.
68484         * modules/lstat (Depends-on): Remove xalloc.
68485         * modules/mkstemp (Depends-on): Add stat-macros.
68486         * modules/modechange (Depends-on): Remove xstrtol.
68487         Add stat-macros, xalloc.
68488         * modules/save-cwd (Depends-on): Add unistd-safer.
68489         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68490         * modules/unistd-safer (Files): Add lib/fd-safer.c
68491         (Makefile.am): Remove lib_SOURCES.
68492
68493         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68494         Remove fcntl-safer; unistd-safer supersedes it.
68495
68496 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68499         AC_HEADER_STAT.
68500         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68501         (gl_PREREQ_CHOWN): Remove.
68502         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68503         it.  Don't require AC_HEADER_STAT.
68504         (gl_PREREQ_LSTAT): Remove.
68505         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68506         Don't require AC_HEADER_STAT.
68507         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68508         (gl_PREREQ_RMDIR): Remove.
68509         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68510         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68511         the stat-macros module a prerequisite.
68512         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68513         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68514         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68515         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68516         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68517         variable names.
68518         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68519         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68520         variable prefixes.
68521         * m4/fcntl-safer.m4: Remove.
68522         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68523         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68524         Invoke gl_PREREQ_FD_SAFER.
68525         (gl_PREREQ_FD_SAFER): New macro.
68526         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68527         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68528         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68529         Remove duplicate call to AC_LIBOBJ(readutmp).
68530         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68531
68532         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68533         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68534
68535 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * MODULES.html.sh (Misc): Add byteswap.
68538
68539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68540
68541         * modules/getcwd (Depends-on): Add extensions.
68542         * modules/openat (Depends-on): Likewise.
68543
68544 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68545
68546         * modules/byteswap: New file.
68547
68548 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68549
68550         * m4/byteswap.m4: New file.
68551
68552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68553
68554         * lib/byteswap_.h: New file.
68555
68556 2005-04-25  Karl Berry  <karl@gnu.org>
68557
68558         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68559
68560 2005-04-25  Albert Chin  <china@thewrittenword.com>
68561
68562         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68563         Toolkit C bug.
68564
68565 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68566
68567         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68568         (func_ln_if_changed): Remove forcibly for no error message
68569         in case file does not exist.
68570
68571 2005-04-19  Simon Josefsson  <jas@extundo.com>
68572
68573         * gnulib-tool (Options): Make --symlink mean --symbolic.
68574
68575 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68576
68577         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68578
68579 2005-04-16  Simon Josefsson  <jas@extundo.com>
68580
68581         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68582
68583 2005-04-15  Simon Josefsson  <jas@extundo.com>
68584
68585         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68586
68587 2005-04-15  Simon Josefsson  <jas@extundo.com>
68588
68589         * gnulib-tool: Rename --symlink to --symbolic.
68590
68591 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68592
68593         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68594         symbolic links to files instead of copying/moving.  Add --aux-dir,
68595         specifying directory relative --dir where auxiliary build tools
68596         are placed.
68597
68598 2005-04-14  Bruno Haible  <bruno@clisp.org>
68599
68600         * modules/allocsa (License): Change to LGPL.
68601         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68602
68603 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68606         that "UTC +1 second" continues to work.  Problem reported
68607         by Dmitry V. Levin.
68608         (relunit_snumber): New rule.
68609         (relunit): Use it.
68610
68611 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * lib/getdate.y (universal_time_zone_table): New constant.
68614         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68615         universal_time_zone_table.
68616         (lookup_zone): Prefer universal_time_zone_table to
68617         local_time_zone_table, so that "GMT" time stamps are allowed in
68618         London during the summer.  Problem reported by Ian Abbott.
68619
68620 2005-04-12  Jim Meyering  <jim@meyering.net>
68621
68622         * lib/human.c (humblock): Set *options even when returning due to
68623         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68624         warning from gcc-4.
68625
68626 2005-04-09  Jim Meyering  <jim@meyering.net>
68627
68628         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68629         -Wuninitialized: initialize tm0.tm_year.
68630
68631 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68634         count, since there's no maximum.  All uses changed.
68635         Add member dsts_seen.
68636         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68637         not being INT_MAX.
68638         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68639         Use pc_rels_seen to decide whther a date is absolute.
68640
68641         * lib/getdate.y (number): Don't overwrite year.
68642         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68643         check.
68644
68645 2005-04-02  Simon Josefsson  <jas@extundo.com>
68646
68647         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68648         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68649
68650 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68651
68652         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68653         where no absolute path name can be longer than PATH_MAX.
68654
68655 2005-03-27  Jim Meyering  <jim@meyering.net>
68656
68657         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68658
68659 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68662         "one's complement" -> "ones' complement" in comment, as per Knuth.
68663         "value of type" -> "type or expression" in comment.
68664         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68665
68666 2005-03-26  Jim Meyering  <jim@meyering.net>
68667
68668         Comment nits.
68669         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68670         Correct typos: s/or/of/.
68671
68672 2005-03-26  Jim Meyering  <jim@meyering.net>
68673
68674         * modules/check-include-files: Move to ../ and rename to...
68675         * check-module: ...this.
68676
68677 2005-03-25  Jim Meyering  <jim@meyering.net>
68678
68679         * modules/xvasprintf (Files): Add xalloc.h.
68680
68681 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         * modules/gettext (Files): config/config.rpath ->
68684         build-aux/config.rpath
68685         * modules/iconv (Files): Likewise.
68686         Problem reported by Oskar Liljeblad.
68687
68688 2005-03-23  Jim Meyering  <jim@meyering.net>
68689
68690         * modules/check-include-files: New script to check for
68691         missing dependencies, multiple includes, etc.
68692
68693         * modules/c-strtold (Depends-on): Add xalloc.
68694         * modules/c-strtod (Depends-on): Add xalloc.
68695         * modules/hash (Depends-on): Add xalloc.
68696         (Files): Remove lib/xalloc.h.
68697
68698         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68699         * modules/userspec (Files): Add lib/inttostr.h.
68700
68701 2005-03-23  Jim Meyering  <jim@meyering.net>
68702
68703         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68704
68705 2005-03-22  Jim Meyering  <jim@meyering.net>
68706
68707         * modules/stat-macros: New module.
68708         * modules/canonicalize, modules/euidaccess, modules/file-type,
68709         * modules/filemode, modules/lchown, modules/makepath,
68710         * modules/rmdir, modules/stat: Depend on new stat-macros module
68711         rather than listing lib/stat-macros.h manually.
68712         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68713
68714 2005-03-22  Jim Meyering  <jim@meyering.net>
68715
68716         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68717
68718 2005-03-22  Bruno Haible  <bruno@clisp.org>
68719
68720         * config/srclist.txt: Replace target directory 'config' with
68721         'build-aux'.
68722         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68723         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68724         ../build-aux/.
68725
68726 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * modules/chdir-long (Depends-on): Add mempcpy.
68729
68730         * modules/acl, modules/backupfile, modules/c-strtod,
68731         modules/c-strtold, modules/canon-host, modules/canonicalize,
68732         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68733         modules/exclude, modules/exitfail, modules/file-type,
68734         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68735         modules/getdate, modules/getline, modules/getpagesize,
68736         modules/getpass, modules/getugroups, modules/group-member,
68737         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68738         modules/inttostr, modules/long-options, modules/makepath,
68739         modules/md5, modules/memcasecmp, modules/memcoll,
68740         modules/modechange, modules/mountlist, modules/path-concat,
68741         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68742         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68743         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68744         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68745         modules/strftime, modules/strndup, modules/strverscmp,
68746         modules/timespec, modules/unlocked-io, modules/userspec,
68747         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68748         modules/yesno:
68749         Remove lib_SOURCES line from Makefile.am section, as this is now
68750         done automatically by the corresponding Autoconf macro.
68751
68752 2005-03-21  Jim Meyering  <jim@meyering.net>
68753
68754         Changes imported from coreutils.
68755
68756         * lib/cycle-check.c: Don't include xalloc.h.
68757
68758         * lib/path-concat.c: Don't include assert.h.
68759         (path_concat): Remove assertion that would have triggered
68760         for ABASE starting with more than one slash.
68761         Reported by Andreas Schwab.
68762
68763         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68764         properly when ABASE is an absolute file name.
68765         Correct the description of this function.
68766         Include <assert.h>.
68767         Add an assertion and a test driver.
68768         This fixes a bug introduced on 2004-07-02.
68769         Andreas Schwab reported the resulting failure of cp --parents:
68770         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68771
68772 2005-03-21  Jim Meyering  <jim@meyering.net>
68773
68774         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68775         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68776
68777 2005-03-21  Jim Meyering  <jim@meyering.net>
68778         and  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68781         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68782         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68783         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68784         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68785         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68786         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68787         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68788         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68789         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68790         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68791         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68792         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68793         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68794         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68795         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68796         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68797         for these modules.
68798
68799 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68802         (which shouldn't happen), generate nothing instead of returning 0
68803         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68804
68805 2005-03-16  Bruno Haible  <bruno@clisp.org>
68806
68807         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68808         HAVE_LONGLONG_64BIT.
68809
68810 2005-03-16  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68813         HAVE_LONGLONG_64BIT.
68814
68815 2005-03-16  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68818         HAVE_LONGLONG_64BIT.
68819
68820 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68823         reliably distinguish strftime failure from empty output on POSIX
68824         hosts.
68825
68826 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68829         (iconv_string): Don't guess a size-zero buffer, as that might cause
68830         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68831         result would be 'too large', where 'too large' is (heuristically)
68832         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68833         overflow concerns.  This will prevent some unwanted malloc failures
68834         when the inputs are very large.
68835
68836 2005-03-15  Karl Berry  <karl@gnu.org>
68837
68838         * config/srclist.txt (config.rpath): from gettext.
68839         * config/config.rpath: update.
68840
68841 2005-03-15  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68844         to 'negate'.
68845
68846         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68847         variable.
68848
68849         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68850         results.
68851
68852 2005-03-14  Simon Josefsson  <jas@extundo.com>
68853
68854         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68855         <fx@gnu.org>.
68856
68857 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68860         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68861         intprops.h.
68862         * lib/strtol.c: Likewise.
68863
68864 2005-03-14  Jim Meyering  <jim@meyering.net>
68865
68866         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68867         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68868         to be nonzero so that we (and caller) can detect the difference
68869         between a valid zero-length expansion and an error return, even
68870         when the underlying strftime fails before writing anything into
68871         that location.
68872
68873 2005-03-14  Bruno Haible  <bruno@clisp.org>
68874
68875         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68876         Update from GNU gettext 0.14.3.
68877
68878 2005-03-10  Jim Meyering  <jim@meyering.net>
68879
68880         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68881
68882 2005-03-10  Jim Meyering  <jim@meyering.net>
68883
68884         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68885         so that this module works on systems without fchdir.
68886
68887 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         Factor int-properties macros into a single file, except for
68890         glibc-related files.
68891         * lib/intprops.h: New file.
68892         * lib/getloadavg.c: Include it instead of limits.h.
68893         (INT_STRLEN_BOUND): Remove.
68894         * lib/human.c: Include intprops.h.
68895         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68896         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68897         302/1000.
68898         * lib/inttostr.h: Include intprops.h instead of limits.h.
68899         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68900         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68901         for consistency with intprops.h.
68902         (time_t_is_integer, twos_complement_arithmetic): Use them.
68903         * lib/sig2str.h: Include <signal.h>, intprops.h.
68904         (INT_STRLEN_BOUND): Remove.
68905         * lib/strftime.c (TYPE_SIGNED): Remove.
68906         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68907         * lib/strtol.c: Adjust comments to match intprops.h.
68908         * lib/userspec.c: Include intprops.h.
68909         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68910         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68911         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68912         instead of rolling our own expressions.
68913         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68914
68915         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68916         instead of int.
68917         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68918         the right thing even if adding 1900 would overflow.  Similarly
68919         for tm_mon + 1 and tm_yday + 1.
68920         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68921         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68922         (DO_SIGNED_NUMBER): New macro.
68923         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68924
68925 2005-03-07  Bruno Haible  <bruno@clisp.org>
68926
68927         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68928
68929 2005-03-07  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68932
68933 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68934
68935         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68936         (func_import): Only replace files via --import when they have actually
68937         changed.
68938
68939 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68940
68941         * m4/mmap-anon.m4: New file.
68942         * m4/pagealign_alloc.m4: New file.
68943
68944 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68945             Bruno Haible  <bruno@clisp.org>
68946
68947         * modules/pagealign_alloc: New file.
68948         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68949
68950 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68951             Bruno Haible  <bruno@clisp.org>
68952
68953         * lib/pagealign_alloc.h: New file.
68954         * lib/pagealign_alloc.c: New file.
68955
68956 2005-03-03  Bruno Haible  <bruno@clisp.org>
68957
68958         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68959         Use an all-permissive copyright notice, recommended by RMS.
68960
68961 2005-03-02  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68964         of AIX, the replacement has to be done only after <string.h> is
68965         included, therefore not in config.h. stpncpy.h does the replacement,
68966         and stpncpy.c uses it.
68967
68968 2005-03-02  Bruno Haible  <bruno@clisp.org>
68969
68970         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68971         stpncpy.c uses it.
68972
68973 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68974
68975         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68976         The workaround isn't strictly needed for POSIX conformance, and
68977         it's too much of a pain to configure and maintain.  We'll ask
68978         people to fix their kernels instead.
68979         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68980         (NANOSLEEP_BUG_WORKAROUND): Remove.
68981         (xnanosleep): Remove the workaround.
68982
68983 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68986         Reported by Derek Price.
68987         (Include): Add "timespec.h".
68988
68989         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68990
68991 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68994         to detect nanosleep bug.
68995
68996 2005-03-01  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68999
69000 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         * modules/gethrxtime: New file.
69003         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69004         (Depends-on): Add gethrxtime.
69005         (configure.ac): Add gl_XNANOSLEEP.
69006         (Makefile.am): Remove lib_SOURCES line.
69007
69008 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69011         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69012
69013 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69016         * lib/timespec.h (gettime): Return void, since it always
69017         succeeds now.  All uses changed.
69018         * lib/gettime.c (gettime): Likewise.
69019         [HAVE_NANOTIME]: Prefer nanotime.
69020         Assume gettimeofday succeeds, as POSIX requires.
69021         Assime time () succeeds, since other code already does.
69022         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69023         (timespec_subtract): Remove.
69024         (NANOSLEEP_BUG_WORKAROUND): New constant.
69025         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69026         things considerably.  Use it only on GNU/Linux hosts, since the
69027         workaround shouldn't be needed elsewhere.
69028
69029 2005-02-24  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/gettext (Files): Add m4/glibc2.m4.
69032
69033 2005-02-24  Bruno Haible  <bruno@clisp.org>
69034
69035         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69036         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69037         * m4/progtest.m4:
69038         Update from GNU gettext 0.14.2.
69039         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69040
69041 2005-02-24  Bruno Haible  <bruno@clisp.org>
69042
69043         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69044         * lib/config.charset: Update from GNU gettext 0.14.2.
69045
69046 2005-02-24  Bruno Haible  <bruno@clisp.org>
69047
69048         * lib/gettext.h: Update from GNU gettext 0.14.2.
69049
69050 2005-02-23  Simon Josefsson  <jas@extundo.com>
69051
69052         * m4/iconvme.m4: New file.
69053
69054 2005-02-23  Jim Meyering  <jim@meyering.net>
69055
69056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69057         change.
69058         Thanks to Bruno Haible for catching it.
69059
69060 2005-02-22  Simon Josefsson  <jas@extundo.com>
69061
69062         * modules/iconvme: New file.
69063
69064         * MODULES.html.sh: Add iconvme.
69065
69066 2005-02-22  Simon Josefsson  <jas@extundo.com>
69067
69068         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69069
69070 2005-02-22  Simon Josefsson  <jas@extundo.com>
69071
69072         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69073
69074 2005-02-22  Jim Meyering  <jim@meyering.net>
69075
69076         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69077         s/ifndef/ifdef/.
69078
69079 2005-02-20  Neil Conway  <neilc@samurai.com>
69080
69081         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69082         returned by OSX/Darwin if the specified buffer is not large
69083         enough for the hostname.
69084
69085 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69086
69087         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69088         pass it to _help, otherwise the latter coredumps trying to
69089         dereference state.root_argp.
69090
69091 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * modules/chdir-long (Depends-on): Add memrchr.
69094         * modules/memrchr (Files): Add lib/memrchr.h.
69095         (Include): "memrchr.h".
69096
69097 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69100
69101 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/memrchr.h: New file.
69104         * lib/chdir-long.c: Include it.
69105         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69106         Don't bother including stddef.h.
69107
69108 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69111         inclusion.
69112         Include <sys/types.h>, for dev_t.
69113         (ME_DUMMY, ME_REMOTE): Move from here....
69114         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69115         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69116         Dmitry V. Levin.
69117         Include mountlist.h first, to test the interface.
69118
69119 2005-01-29  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/progname.c (program_name): Initialize.
69122         Needed when linking statically on MacOS X.
69123
69124 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         Sync from coreutils.
69127         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69128         (Depends-on): Add c-strtod.
69129         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69130
69131 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         Sync from coreutils.
69134         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69135
69136         Remove files that are specific to coreutils.
69137         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69138
69139 2005-01-28  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/javacomp: New file.
69142         * MODULES.html.sh (Java): Add javacomp.
69143
69144 2005-01-28  Bruno Haible  <bruno@clisp.org>
69145
69146         * m4/javacomp.m4: New file, from GNU gettext.
69147
69148 2005-01-28  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/javacomp.sh.in: New file, from GNU gettext.
69151         * lib/javacomp.h: New file, from GNU gettext.
69152         * lib/javacomp.c: New file, from GNU gettext.
69153
69154 2005-01-26  Simon Josefsson  <jas@extundo.com>
69155
69156         * lib/gai_strerror.c: Use GPL in header.
69157
69158 2005-01-26  Bruno Haible  <bruno@clisp.org>
69159
69160         * modules/javaexec: New file.
69161         * MODULES.html.sh (Java): Add javaexec.
69162
69163 2005-01-26  Bruno Haible  <bruno@clisp.org>
69164
69165         * m4/javaexec.m4: New file, from GNU gettext.
69166
69167 2005-01-26  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/javaexec.sh.in: New file, from GNU gettext.
69170         * lib/javaexec.h: New file, from GNU gettext.
69171         * lib/javaexec.c: New file, from GNU gettext.
69172
69173 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69174
69175         * modules/lchown (Depends-on): Remove lchown.h
69176
69177 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69178
69179         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69180         must be defined if the header file was not found, in order
69181         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69182
69183 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69184
69185         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69186         initializers for struct pentry_state.
69187         (__argp_error): Check return value of __asprintf
69188         (__argp_failure): Translate error message
69189
69190         * lib/argp-parse.c: Removed braces around the expansion of N_()
69191
69192 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69195         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69196         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69197         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69198         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69199         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69200         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69201         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69202         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69203         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69204         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69205         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69206         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69207         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69208         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69209         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69210         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69211         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69212         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69213         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69214         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69215         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69216         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69217         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69218         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69219         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69220         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69221         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69222         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69223         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69224         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69225         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69226         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69227         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69228         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69229         Use an all-permissive copyright notice, recommended by RMS.
69230
69231 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * modules/chdir-long (Depends-on): Remove mempcpy.
69234
69235 2005-01-21  Jim Meyering  <jim@meyering.net>
69236
69237         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69238         same value as for Solaris 9.
69239
69240         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69241         component length.  This included changing the parameter to be
69242         of type `char *' rather than `char const *'.
69243         * lib/chdir-long.h (chdir_long): Update prototype.
69244
69245         * lib/openat.c (fdopendir, fstatat): New functions.
69246         * lib/openat.h: Include headers required for use of DIR and struct
69247         stat.
69248         [AT_SYMLINK_NOFOLLOW]: Define.
69249         (fdopendir, fstatat): Add prototypes.
69250
69251 2005-01-21  Bruno Haible  <bruno@clisp.org>
69252
69253         * modules/classpath: New file.
69254         * MODULES.html.sh (Java): Add classpath.
69255
69256 2005-01-21  Bruno Haible  <bruno@clisp.org>
69257
69258         * lib/classpath.h: New file, from GNU gettext.
69259         * lib/classpath.c: New file, from GNU gettext.
69260
69261 2005-01-20  Simon Josefsson  <jas@extundo.com>
69262
69263         * modules/version-etc-fsf: New file.
69264
69265 2005-01-20  Simon Josefsson  <jas@extundo.com>
69266
69267         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69268         * lib/version-etc.c: Remove version_etc_copyright.
69269         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69270         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69271
69272 2005-01-20  Simon Josefsson  <jas@extundo.com>
69273
69274         * lib/base64.h (isbase64): Add.
69275
69276         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69277         using a unsigned prototype, don't inline.
69278         (base64_decode): Use it.
69279
69280 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69283         it.
69284
69285 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * lib/save-cwd.c (save_cwd): Remove code to support the case
69288         where fchdir is missing or flaky.
69289
69290 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69293
69294 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69297         AC_LIBSOURCES now does this.
69298         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69299         with new ullong_max module.
69300
69301 2005-01-19  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/sh-quote: New file.
69304         * MODULES.html.sh (Executing programs): Add sh-quote.
69305
69306 2005-01-19  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/sh-quote.h: New file, from GNU gettext.
69309         * lib/sh-quote.c: New file, from GNU gettext.
69310
69311 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         Merge from coreutils.
69314         * m4/ullong_max.m4: New file.
69315         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69316         (gl_MACROS): Assume localeconv exists.
69317
69318 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         Merge changes from coreutils, as described below in several
69321         changelogs dated today.
69322
69323         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69324         (O_DIRECTORY): Remove; not needed here, since "." must be
69325         a directory.  All uses removed.
69326         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69327         universal on Suns, and we also need to test for IRIX.
69328         Revamp code to use 'if' rather than '#if'.
69329         Avoid unnecessary comparison of cwd->desc to 0.
69330
69331         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69332         for known valid error numbers rather than observed invalid ones.
69333
69334 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * modules/ullong_max: New file.
69337
69338         * modules/chdir-long, modules/openat: New files.
69339         * modules/save-cwd (Depends-on): Depend on chdir-long.
69340         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69341
69342 2005-01-18  Jim Meyering  <jim@meyering.net>
69343
69344         Merge from coreutils.
69345         * m4/chdir-long.m4, m4/openat.m4: New files.
69346         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69347         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69348         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69349         is sane and DOES follow symlinks.  Besides, testing 20 different
69350         systems found no broken chown implementations.
69351         Prompted by a change in rsync's copy of this macro.
69352         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69353
69354         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69355
69356         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69357         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69358         NULL-means-set-to-current-time semantics.
69359         Remove temporary file immediately, rather than waiting
69360         for configure's at-exit trap code to do it.
69361
69362 2005-01-18  Jim Meyering  <jim@meyering.net>
69363
69364         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69365
69366         * lib/utimens.c (futimens): Account for the fact that futimes
69367         can also fail with errno == ENOSYS or errno == ENOENT.
69368         Patch from Dmitry V. Levin.
69369
69370         Change the name of the robust chdir function from chdir to chdir_long.
69371         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69372         (restore_cwd): Use chdir_long, not chdir.
69373         * lib/chdir-long.c: Renamed from chdir.c.
69374         * lib/chdir-long.h: Renamed from chdir.h.
69375         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69376         Hurd.
69377
69378 2005-01-18  Bruno Haible  <bruno@clisp.org>
69379
69380         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69381         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69382         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69383         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69384         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69385         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69386         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69387         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69388         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69389         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69390         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69391         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69392         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69393         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69394         Use an all-permissive copyright notice, recommended by RMS.
69395
69396 2005-01-18  Bob Proulx  <bob@proulx.com>
69397
69398         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69399         simplify offsetof() macro construct to avoid compile failure with
69400         native HP-UX 11.0 ANSI C compiler.
69401
69402 2005-01-17  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69405         redundant because stpncpy.m4 takes care of it.
69406
69407 2005-01-17  Bruno Haible  <bruno@clisp.org>
69408
69409         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69410
69411 2005-01-17  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69414         used.
69415
69416 2005-01-17  Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/fwriteerror.h (fwriteerror): Change specification to include
69419         fclose.
69420         * lib/fwriteerror.c: Include <stdbool.h>.
69421         (fwriteerror): At the end, close the file stream. Record whether
69422         stdout was already closed.
69423
69424 2005-01-17  Bruno Haible  <bruno@clisp.org>
69425
69426         * lib/execute.c (environ): Declare if needed.
69427         * lib/pipe.c (environ): Likewise.
69428         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69429
69430 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69431
69432         * modules/argp: Depend on vsnprintf
69433
69434 2005-01-10  Jim Meyering  <jim@meyering.net>
69435
69436         * modules/closeout (Depends-on): Add atexit.
69437
69438 2005-01-06  Bruno Haible  <bruno@clisp.org>
69439
69440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69441
69442 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69445         definitions to be after all include files, to avoid collisions.
69446         Problem reported by Bob Proulx.
69447
69448 2005-01-04  Jim Meyering  <jim@meyering.net>
69449
69450         Changes imported from coreutils.
69451         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69452         as the mkstemp template, use a temporary directory and an
69453         8.3-friendly template to avoid trouble on systems like DJGPP.
69454         Reported by Juan M. Guerrero via Stepan Kasal.
69455         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69456         close. Remove the temporary directory right away, rather than waiting
69457         for configure's at-exit trap code to do it.
69458         Suggestion from Stepan Kasal.
69459
69460 2005-01-01  Simon Josefsson  <jas@extundo.com>
69461
69462         * gnulib-tool: Print #include directives when --import'ing.
69463
69464 2004-12-28  Simon Josefsson  <jas@extundo.com>
69465
69466         * tests/test-base64.c: Include required header files.  Remove
69467         unused variables.
69468
69469 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * modules/error (Depends-on): Remove gettext.
69472
69473 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69476         not needed.  This removes a dependency on the gettext module.
69477         [defined _LIBC]: Do not include <libintl.h>; not needed.
69478
69479 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69482         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69483
69484 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69487         HAVE_DECL_STRTOLD.
69488
69489 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * modules/getdate (Depends-on): Remove alloca-opt.
69492
69493 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69494
69495         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69496
69497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/argp-parse.c: Include <stddef.h>.
69500         (alignof, alignto): New macros.
69501         (parser_init): Don't assume that void * is aligned sufficiently
69502         for struct option.
69503
69504         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69505         need to extend the stack.
69506         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69507         large.
69508
69509 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69510
69511         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69512
69513 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69516         (2004-10-24) change.  Apparently this was a false alarm.
69517
69518         * modules/getdate: Depend on alloca-opt, not alloca.
69519
69520 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69523         Remove now-obsolete comment about AIX.
69524         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69525         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69526         (YYMAXDEPTH): New macro.
69527
69528 2004-12-18  Simon Josefsson  <jas@extundo.com>
69529
69530         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69531
69532 2004-12-18  Bruno Haible  <bruno@clisp.org>
69533
69534         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69535
69536 2004-12-18  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/fatal-signal.c (fatal_signals): Make non-const.
69539         (init_fatal_signals): New function.
69540         (uninstall_handlers, install_handlers): Ignore signals that were set to
69541         SIG_IGN.
69542         (at_fatal_signal): Call init_fatal_signals.
69543         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69544         SIG_IGN.
69545         Reported by Paul Eggert.
69546
69547 2004-12-18  Bruno Haible  <bruno@clisp.org>
69548
69549         * doc/alloca.texi: New file.
69550         * doc/alloca-opt.texi: New file.
69551
69552 2004-12-17  Jim Meyering  <jim@meyering.net>
69553
69554         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69555         Otherwise, install-sh could exit with improper exit status when
69556         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69557
69558 2004-12-16  Simon Josefsson  <jas@extundo.com>
69559
69560         * tests/test-base64.c: Add license.
69561
69562 2004-12-15  Stepan Kasal  <address@hidden>
69563
69564         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69565
69566 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * modules/getcwd (Files): Add m4/d-ino.m4.
69569         Suggested by Mark D. Baushke.
69570
69571 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         * lib/getdate.y (textint): New member "negative".
69574         (time_zone_hhmm): New function.
69575         Expect 14 shift-reduce conflicts, not 13.
69576         (o_colon_minutes): New rule.
69577         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69578         (yylex): Set the "negative" member of signed numbers.
69579
69580 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69581
69582         * doc/getdate.texi (Time of day items, Time zone items):
69583         Describe new formats +00:00, UTC+00:00.
69584
69585 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69588         spurious "-l"s.  Problem reported by Stepan Kasal.
69589
69590 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69591
69592         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69593         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69594
69595 2004-12-04  Simon Josefsson  <jas@extundo.com>
69596
69597         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69598         Vandoorselaere <yoann@prelude-ids.org>.
69599
69600 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         Changes imported from coreutils.
69603         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69604         exist.
69605         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69606
69607 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         Changes imported from coreutils.
69610         * lib/hard-locale.c: Assume <locale.h> exists.
69611         Include "strdup.h".
69612         (GLIBC_VERSION): New macro.
69613         (hard_locale): Assume setlocale exists.
69614         Rewrite to avoid #ifdef.
69615         Use strdup rather than malloc + strcpy.
69616         * lib/human.c: Assume <locale.h> exists.
69617         (human_readable): Assume localeconv exists.
69618
69619 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * modules/hard-locale (Depends-on): Add strdup.
69622
69623 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69624
69625         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69626         convert T2, not T.  (Imported from libc.)
69627
69628 2004-11-30  Simon Josefsson  <jas@extundo.com>
69629
69630         * modules/restrict (License): Change to LGPL.
69631
69632 2004-11-30  Simon Josefsson  <jas@extundo.com>
69633
69634         * m4/restrict.m4: Add copyright and copying conditions.
69635
69636 2004-11-30  Simon Josefsson  <jas@extundo.com>
69637
69638         * m4/base64.m4: New file.
69639
69640 2004-11-30  Simon Josefsson  <jas@extundo.com>
69641
69642         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69643         base64.
69644
69645         * tests/test-base64.c: New file.
69646
69647         * modules/base64: New file.
69648
69649 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69652         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69653
69654         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69655
69656 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69659         (__getcwd.c): Don't restore errno; glibc doesn't.
69660         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69661         first, falling back to our code only if its results look suspicious.
69662         Ensure that the resulting buffer is only as large as necessary.
69663
69664         * lib/readutmp.c: Include readutmp.h first.
69665         Include <errno.h>, since readutmp.h no longer does that.
69666         * lib/readutmp.h: Don't include <errno.h>,
69667         <sys/param.h>, <time.h>; not needed to establish interface.
69668         (errno): Remove decl.
69669         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69670         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69671         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69672
69673 2004-11-28  Simon Josefsson  <jas@extundo.com>
69674
69675         * lib/base64.h, base64.c: New file.
69676
69677 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69680
69681 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69684         (Depends-on): Remove pathmax, same.  Add mempcpy.
69685         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69686         (Makefile.am): Append getcwd.h to lib_SOURCES.
69687         (Include): Add getcwd.h.
69688         (Maintainer): Change from Jim Meyering to "all, glibc",
69689         since getdate now uses intended-for-glibc code.
69690         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69691         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69692
69693 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69696         HP's ANSI C compiler.
69697         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69698         Declaring int functions causes warnings on some modern systems and
69699         shouldn't be needed to compile on ancient ones.
69700         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69701         defined.
69702
69703         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69704         with the following changes.
69705         (__set_errno): Parenthesize properly.
69706         Include <stdbool.h>.
69707         (MIN, MAX, MATCHING_INO): New macros.
69708         (__getcwd): Define with prototype, not K&R form.
69709         Use heuristics to allocate default buffer on stack if possible.
69710         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69711         behavior, and to avoid the PATH_MAX limit when computing
69712         ../../../../...
69713         Use MATCHING_INO to compare inode number to file.
69714         Check for arithmetic overflow in size calculations.
69715         Fix bug in reallocation of dot array that caused getcwd to fail
69716         on directories nested deeper than 75.
69717         Be more careful about saving errno on error.
69718         Do not use realloc; use only free+malloc, as this is a bit
69719         more flexible and avoids a needless copy operation.
69720         Do not inspect st_dev and st_ino for symbolic links; POSIX
69721         doesn't specify the latter.
69722         Check for closedir errors.
69723         Avoid needless casts.
69724         Use "#ifdef weak_alias" around weak_alias, to be like other
69725         glibc code.
69726         The following changes to getcwd.c have effect only when used in
69727         gnulib; they have no effect inside glibc proper.
69728         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69729         as alloca isn't used.
69730         (alloca, __alloca): Likewise.
69731         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69732         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69733         unconditionally, as gnulib assumes C89 or better.
69734         Do not include <sys/param.h>.
69735         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69736         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69737         better.
69738         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69739         Include <dirent.h> in a way that is compatible with modern Autoconf.
69740         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69741         New macros, if not already defined.
69742         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69743         Use "_LIBC", not "defined _LIBC", for consistency.
69744         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69745         a mempcpy module.
69746         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69747         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69748         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69749         credit only to Jim Meyering and adjust the copyright dates.
69750         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69751         <stdlib.h>, <unistd.h>, "pathmax.h".
69752         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69753         (INITIAL_BUFFER_SIZE): Remove.
69754         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69755
69756 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69759         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69760         Use the _ONCE methods, for efficiency.
69761         Check for fcntl.h.  In test program, include <errno.h>
69762         and <fcntl.h> if available.  Remove old K&R cruft from
69763         test program.  Check for common errors in GNU/Linux,
69764         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69765         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69766         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69767         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69768         name accordingly.
69769         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69770         accommodate new getcwd.c.
69771         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69772         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69773         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69774         that's all we need now.
69775
69776 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69777
69778         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69779         argp-parse.c depends on getopt internals, that means we should
69780         always use our getopt, to be on the safe side.
69781         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69782         order not to spoil the result of an eventual previous invocation
69783         of gl_GETOPT_SUBSTITUTE.
69784
69785 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69786
69787         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69788         redefinition warnings. To avoid them, include the defines
69789         in `#if !defined __need_getopt ... #endif'. The only place
69790         where __getopt_argv_const is used is in definitions
69791         of getopt_long and getopt_long_only below, which are as well
69792         protected by `#ifndef __need_getopt'.
69793         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69794         __need_getopt after including <stdio.h> and <unistd.h> These
69795         headers might have defined it.
69796
69797 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69800
69801 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69804         (futimens): New function, which uses futimes if available.
69805         (futimens, utimens): Support timespec==NULL, with same semantics
69806         as utime and utimens.
69807         * lib/utimens.h (futimens): New decl.
69808
69809 2004-11-23  Jim Meyering  <jim@meyering.net>
69810
69811         * lib/getopt_.h: Remove trailing blanks.
69812
69813 2004-11-23  Jim Meyering  <jim@meyering.net>
69814
69815         * lib/__fpending.c: Add comment.
69816
69817 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * modules/canonicalize (Depends-on): Add xreadlink.
69820         Problem reported by James Youngman.
69821
69822 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69825         New macros.
69826         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69827         optopt): Use them instead of invoking ## directly; otherwise, the
69828         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69829
69830 2004-11-19  Bruno Haible  <bruno@clisp.org>
69831
69832         * lib/strtok_r.c: Move comments from here...
69833         * lib/strtok_r.h: ... to here.
69834
69835 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69838         implementations that mishandle size_t overflow.
69839
69840 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69843         might fail.  Problem reported by Yoann Vandoorselaere.
69844         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69845         implementations that mishandle size_t overflow.
69846
69847 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * modules/canon-host (Depends-on): Add strdup.
69850
69851 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69854
69855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * lib/canon-host.c: Include "strdup.h".
69858         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69859         Use strdup instead of malloc/strcpy to duplicate strings.
69860
69861         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69862         (human_space_before_unit): New constant.
69863         * lib/human.c (human_readable): Support it.
69864
69865         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69866         (xgetcwd): Set errno correctly when failing.
69867         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69868         the failure is actually due to a PATH_MAX problem.
69869
69870         Further getopt changes to make it more likely that glibc will
69871         buy the changes back.
69872         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69873         (getopt): Use it, so to preserve glibc semantic
69874         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69875         when compiling for libc.
69876         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69877         (getopt_long, getopt_long_only): Use it.
69878
69879         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69880         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69881         (getopt): Argv is now char * const *, as per standard.
69882         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69883         not char *__getopt_argv_const *.
69884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69885         _getopt_long_only_r): Likewise.
69886         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69887         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69888         _getopt_long_r, _getopt_long_only_r): Likewise.
69889         * lib/getopt_.h (__getopt_argv_const): Remove.
69890         (getopt): Argv is now char * const *, as per standard.
69891
69892         * lib/getdate.y (tORDINAL): New token.
69893         (day, relunit): Allow it for relative times.
69894         (relative_time_table): Use tORDINAL for ordinals.
69895
69896 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69899         Document that "second" isn't allowed as an ordinal number.
69900
69901 2004-11-16  Jim Meyering  <jim@meyering.net>
69902
69903         * modules/closeout (Depends-on): Add fpending.
69904
69905 2004-11-15  Jim Meyering  <jim@meyering.net>
69906
69907         * lib/closeout.c: Include "__fpending.h" once again.
69908         Include <stdbool.h>.
69909         (close_stdout): Don't fail just because stdout was closed initially,
69910         since some programs don't write to stdout in the normal course of
69911         operation (other than --version and --help), and we don't want this
69912         function to make e.g. `touch file >&-' fail.
69913         But do fail if it was closed and someone has tried to write to it.
69914         E.g., `printf foo >&-' must fail.
69915
69916 2004-11-13  Jim Meyering  <jim@meyering.net>
69917
69918         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69919
69920 2004-11-12  Simon Josefsson  <jas@extundo.com>
69921
69922         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69923         small doc fix is still pending.
69924
69925 2004-11-11  Simon Josefsson  <jas@extundo.com>
69926
69927         * modules/strtok_r: New file.
69928
69929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69930         strtok_r.
69931
69932 2004-11-11  Simon Josefsson  <jas@extundo.com>
69933
69934         * m4/strtok_r.m4: New file.
69935
69936         * m4/getopt.m4: Replace opterr.
69937
69938 2004-11-11  Simon Josefsson  <jas@extundo.com>
69939
69940         * lib/strtok_r.h, strtok_r.c: New file.
69941
69942 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69945         of replacing opterr, getopt, etc.  This should handle the
69946         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69947
69948 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69951         we can stop lying to compilers about the constness of argv when we
69952         are compiled outside glibc.
69953         (getopt, getopt_long, getopt_long_only): Use it.
69954         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69955         _getopt_internal, getopt): Likewise.
69956         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69957         _getopt_long_only_r): Likewise.
69958         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69959         _getopt_long_r, _getopt_long_only_r): Likewise.
69960
69961         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69962         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69963         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69964         the other external symbols.
69965         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69966         declaration, since the above renaming now works around collisions.
69967
69968 2004-11-11  Jim Meyering  <jim@meyering.net>
69969
69970         * lib/linebreak.c: Remove trailing blanks.
69971         * lib/alloca_.h: Likewise.
69972         * lib/acosl.c: Likewise.
69973         * lib/euidaccess.c: Likewise.
69974         * lib/allocsa.h: Likewise.
69975
69976 2004-11-10  Simon Josefsson  <jas@extundo.com>
69977
69978         * m4/getaddrinfo.m4: New file.
69979
69980 2004-11-10  Simon Josefsson  <jas@extundo.com>
69981
69982         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69983
69984 2004-11-10  Simon Josefsson  <jas@extundo.com>
69985
69986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69987         getaddrinfo.
69988
69989         * modules/getaddrinfo: New file.
69990
69991 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69994
69995 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * lib/mktime.c (SHR): New macro, which is a portable
69998         substitute for >> that should work even on Crays.
69999         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70000         Problem reported by Mark D. Baushke in
70001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70002         * lib/getdate.y (SHR): Likewise.
70003         (tm_diff): Use it.
70004         * lib/strftime.c (SHR): Likewise.
70005         (tm_diff): Use it.
70006         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70007         quote_these_too, so that right shifts are well defined.  All uses
70008         changed.
70009
70010 2004-11-10  Jim Meyering  <jim@meyering.net>
70011
70012         Ensure that no close failure goes unreported.
70013         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70014         return early when it seems there's nothing to flush.
70015         Don't include __fpending.h.
70016
70017 2004-11-10  Jim Meyering  <jim@meyering.net>
70018
70019         * modules/closeout (Depends-on): Remove fpending.
70020
70021 2004-11-10  Jim Meyering  <jim@meyering.net>
70022
70023         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70024
70025 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70026
70027         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70028         gl_FUNC_STRFTIME.
70029         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70030         and AC_REQUIRE when possible, to avoid duplicate checks.
70031         Check for <wchar.h>.
70032
70033 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70036
70037 2004-11-09  Bruno Haible  <bruno@clisp.org>
70038
70039         * m4/sockpfaf.m4: New file.
70040
70041 2004-11-05  Bruno Haible  <bruno@clisp.org>
70042
70043         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70044         Reported by Mark D. Baushke <mdb@cvshome.org>.
70045
70046 2004-11-04  Bruno Haible  <bruno@clisp.org>
70047
70048         2004-09-11  Bruno Haible  <bruno@clisp.org>
70049                 * allocsa.valgrind: New file.
70050         2004-02-06  Bruno Haible  <bruno@clisp.org>
70051                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70052                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70053                 Reported by Christopher Seip <chris.seip@hp.com>.
70054
70055 2004-11-04  Bruno Haible  <bruno@clisp.org>
70056
70057         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70058         (Makefile.am): Distribute it.
70059
70060 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70063         with errno == ERANGE if the buffer is too small.
70064         Problem reported by Mark D. Baushke.
70065
70066 2004-11-03  Albert Chin  <china@thewrittenword.com>
70067             Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70070         equivalent, substitute $ac_type for equivalent type rather than
70071         blindly using uint32_t *always* which won't work if uint32_t is not
70072         available.  Define _UINT32_T to work around typedef of uint32_t if
70073         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70074         2.5.1.
70075
70076 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * m4/jm-macros.m4: Sync from coreutils.
70079         (gl_MACROS): Check for mbrlen, for pathchk.
70080         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70081
70082 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * lib/xreadlink.c (MAXSIZE): New macro.
70085         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70086         size does not exceed MAXSIZE.  Avoid cast.
70087         As suggested by Mark D. Baushke in
70088         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70089         if readlink fails with buffer size just under MAXSIZE, try again
70090         with MAXSIZE.
70091
70092 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70093
70094         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70095
70096 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70097         and  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70100         (get_date): Overparenthesize to avoid GCC warning.
70101
70102 2004-11-02  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70105         returns void.
70106
70107 2004-11-02  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70110         function returns void.
70111
70112 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70115         fflush_unlocked, flockfile, funlockfile, funlockfile,
70116         fputs_unlocked, putc_unlocked.
70117
70118 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70121         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70122         already declared.
70123
70124 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * modules/getdate (Files): Add doc/getdate.texi.
70127         (Depends-on): Add setenv, xalloc.
70128
70129 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         * lib/getdate.y: Add support for TZ="foo" within a date string.
70132         Fix some bugs near time_t boundaries.  Reject dates with
70133         out-of-range components, e.g., "Sept 31".
70134         Include <stdlib.h>, "setenv.h", "xalloc.h".
70135         (ISDIGIT_LOCALE): Remove; unused.
70136         Note that the TZ and time functions used here are not reentrant.
70137         (mktime_ok, get_tz): New functions.
70138         (TZBUFSIZE): New constant.
70139         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70140         This requires that we sometimes generate our own TZ="XXX..." setting.
70141
70142 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70143
70144         * doc/getdate.texi: New file, from coreutils with modifications for
70145         the new TZ parsing.
70146
70147 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70148
70149         * lib/mktime.c (not_equal_tm): Remove redundant check.
70150
70151 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * modules/regex (lib_SOURCES): Add regex.c.
70154         Reported by James Youngman in
70155         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70156
70157 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/getdate.y: Use Bison 1.875 features, and some minor
70160         code cleanups.  This change does not affect semantics.
70161         Don't include <stdlib.h>; no longer needed.
70162         Don't include unlocked-io.h; only the "#if TEST" code uses
70163         stdio, and performance isn't crucial there.
70164         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70165         Bison 1.875 features as described below.
70166         All uses of "PC." replaced by "pc->".
70167         (YYSTYPE): Add a forward declaration.
70168         (yylex, yyerror): Use full prototypes in forward decls.
70169         Use "%pure-parser" rather than obsolescent "%pure_parser".
70170         Use %parse-param and %lex-param instead of obsolescent
70171         YYPARSE_PARAM and YYLEX_PARAM.
70172         (meridian_table, month_and_day_table, time_units_table,
70173         relative_time_table, time_zone_table, military_table,
70174         lookup_zone, lookup_word, get_date):
70175         Use NULL instead of 0 where appropriate.
70176         (to_hour): Avoid abort (), to avoid a dependency on
70177         stdlib.h.
70178         (yyerror, yylex): Now accepts parser_control * arg.
70179         (main) [TEST]: Use '\0' rather than 0 for char.
70180
70181 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70184
70185 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70186
70187         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70188         It's now the caller's responsibility to handle the case where
70189         !HAVE_GETPAGESIZE && !defined getpagesize.
70190
70191         * lib/mktime.c (leapyear): Arg is long int, not int.
70192
70193 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70196
70197 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70200         missing.  Problem reported by James Youngman.
70201
70202 2004-10-16  Simon Josefsson  <jas@extundo.com>
70203
70204         * gnulib-tool: Fix comments.  Fix parse problem.
70205         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70206
70207 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70210         implementation of getopt_long.  Problem reported by Alexander Taler in:
70211         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70212
70213 2004-10-15  Bruno Haible  <bruno@clisp.org>
70214
70215         * gnulib-tool: Untabify. Initialize supplied_libname.
70216         (func_usage): More homogenous output.
70217         (func_modules_transitive_closure, func_modules_to_filelist,
70218         func_emit_lib_Makefile_am): New functions.
70219         (func_import): New function, extracted from big case statement. Use
70220         func_get_license, func_modules_transitive_closure,
70221         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70222         opt_lgpl. Don't use test -a, as it's not portable.
70223         (func_create_testdir): Use func_modules_transitive_closure,
70224         func_modules_to_filelist, func_emit_lib_Makefile_am.
70225
70226 2004-10-15  Bruno Haible  <bruno@clisp.org>
70227
70228         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70229
70230 2004-10-15  Bruno Haible  <bruno@clisp.org>
70231
70232         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70233         the portions belonging to each module.
70234         Suggested by Derek Robert Price <derek@ximbiot.com>.
70235
70236 2004-10-12  Simon Josefsson  <jas@extundo.com>
70237
70238         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70239         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70240         to real functions.
70241
70242 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70243
70244         * modules/vsnprintf: New file.
70245
70246 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70247
70248         * m4/vsnprintf.m4: New file.
70249
70250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70251
70252         * lib/vsnprintf.h: New file.
70253         * lib/vsnprintf.c: New file.
70254
70255 2004-10-11  Bruno Haible  <bruno@clisp.org>
70256
70257         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70258         vsnprintf.
70259
70260 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70263
70264 2004-10-07  Bruno Haible  <bruno@clisp.org>
70265
70266         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70267         fits into the provided buffer.
70268
70269 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * lib/diacrit.c, diacrit.h: Add GPL notice.
70272
70273         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70274         notice.
70275         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70276         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70277         This avoids a potential constant-folding bug.
70278
70279 2004-10-05  Bruno Haible  <bruno@clisp.org>
70280
70281         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70282         for the declaration of strsep.
70283
70284 2004-10-05  Bruno Haible  <bruno@clisp.org>
70285
70286         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70287
70288 2004-10-04  Simon Josefsson  <jas@extundo.com>
70289
70290         * modules/memmem: New file.
70291         * tests/test-memmem.c: New file.
70292         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70293
70294 2004-10-04  Simon Josefsson  <jas@extundo.com>
70295
70296         * m4/memmem.m4: New file.
70297
70298 2004-10-04  Simon Josefsson  <jas@extundo.com>
70299
70300         * lib/memmem.h: New file.
70301         * lib/memmem.c: New file, taken from glibc.
70302
70303 2004-10-04  Simon Josefsson  <jas@extundo.com>
70304
70305         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70306         '#ifdef USE_UNLOCKED_IO'.
70307
70308 2004-10-04  Simon Josefsson  <jas@extundo.com>
70309
70310         * config/srclist.txt: Add memmem from glibc.
70311
70312 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70315
70316         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70317         modules/exclude, modules/getdate, modules/getline,
70318         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70319         modules/getusershell, modules/linebuffer, modules/md5,
70320         modules/mountlist, modules/posixtm, modules/readtokens,
70321         modules/readutmp, modules/regex, modules/sha1,
70322         modules/version-etc, modules/yesno:
70323         Remove dependency on unlocked-io.
70324
70325 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70328
70329         * m4/unlocked-io.m4: Add copyright notice.
70330         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70331
70332 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70335         * lib/xmalloc.c (xmemdup): Likewise.
70336         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70337         XFREE): Remove these long-obsolescent macros.
70338         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70339         * lib/xstrdup.c: Remove.
70340
70341         * lib/regex.c (re_comp): Cast gettext return value to char *,
70342         Problem reported by Martin Neitzel via Mark D. Baushke.
70343
70344 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70347         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70348         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70349         regex.c, sha1.c, version-etc.c, yesno.c:
70350         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70351         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70352         the includer's responsibility.
70353
70354         Sync from coreutils.
70355
70356         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70357         points to the start of a string, as the C Standard says the
70358         resulting behavior is undefined.
70359
70360         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70361         simple -> simple_backups, numbered_existing ->
70362         numbered_existing_backups, numbered -> numbered_backups
70363         to avoid shadowing problems.  All uses changed.
70364         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70365         * lib/backupfile.c (check_extension, numbered_backup):
70366         Rename locals to avoid shadowing 'basename'.
70367         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70368         once.
70369
70370         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70371         * lib/.cvsignore: Add getopt.h.
70372
70373 2004-10-04  Bruno Haible  <bruno@clisp.org>
70374
70375         * modules/README: New file.
70376         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70377         not a module.
70378
70379 2004-10-02  Jim Meyering  <jim@meyering.net>
70380
70381         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70382
70383 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70384
70385         * modules/strsep: New file.
70386
70387 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70388
70389         * m4/strsep.m4: New file.
70390
70391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70392
70393         * lib/strsep.h: New file.
70394         * lib/strsep.c: New file.
70395
70396 2004-10-01  Simon Josefsson  <jas@extundo.com>
70397
70398         * lib/snprintf.c (snprintf): Handle size==0.
70399
70400 2004-10-01  Simon Josefsson  <jas@extundo.com>
70401             Bruno Haible  <bruno@clisp.org>
70402
70403         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70404         (snprintf): Declare 'args'.
70405
70406 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * lib/snprintf.c: Remove comments as to why each header is needed.
70409
70410 2004-10-01  Bruno Haible  <bruno@clisp.org>
70411
70412         * MODULES.html.sh: Add strsep.
70413
70414 2004-09-30  Simon Josefsson  <jas@extundo.com>
70415
70416         * modules/snprintf: New file.
70417
70418 2004-09-30  Simon Josefsson  <jas@extundo.com>
70419
70420         * m4/snprintf.m4: New file.
70421
70422 2004-09-30  Simon Josefsson  <jas@extundo.com>
70423
70424         * lib/snprintf.h, lib/snprintf.c: New files.
70425
70426 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70427
70428         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70429         (hol_entry_help): Never translate an empty string.
70430         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70431         * lib/argp.h (OPTION_NO_TRANS): New option.
70432
70433 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/argp (Maintainer): Replace Simon Josefsson
70436         by Sergey Poznyakoff.
70437
70438 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70441         changes merged back into glibc.
70442
70443 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70446
70447 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70448
70449         * lib/xvasprintf.c: Include xalloc.h.
70450         (xvasprintf): Use xalloc_die, not xmalloc_die.
70451
70452 2004-09-29  Bruno Haible  <bruno@clisp.org>
70453
70454         * modules/alloca-opt: New file, derived from modules/alloca.
70455         * modules/allocsa: Depend on alloca-opt instead of alloca.
70456         * modules/setenv: Likewise.
70457         * modules/vasnprintf: Likewise.
70458         * MODULES.html.sh: Add alloca-opt.
70459
70460 2004-09-28  Simon Josefsson  <jas@extundo.com>
70461
70462         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70463         LGPL, and to replace license template from GPL to LGPL.
70464
70465 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * modules/dummy: Change license to LGPL.
70468
70469 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70472
70473 2004-09-24  Simon Josefsson  <jas@extundo.com>
70474
70475         * modules/minmax (License): Change from GPL to LGPL.
70476
70477 2004-09-23  Simon Josefsson  <jas@extundo.com>
70478
70479         * gnulib-tool (--import): Typo.
70480
70481 2004-09-23  Simon Josefsson  <jas@extundo.com>
70482
70483         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70484
70485 2004-09-22  Bruno Haible  <bruno@clisp.org>
70486
70487         * modules/*: Add 'License' field.
70488         * gnulib-tool: Accept --extract-license option.
70489         (func_get_license): New function.
70490
70491 2004-09-21  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70494         Reported by Simon Josefsson.
70495
70496 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70499         gl_AC_TYPE_LONG_LONG.
70500
70501 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70504
70505 2004-09-18  Simon Josefsson  <jas@extundo.com>
70506         and  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70509         calls with autoreconf.  Define GL_LIB.
70510
70511 2004-09-14  Karl Berry  <karl@gnu.org>
70512
70513         * config/srclist.txt: unsync setenv.c, sigh.
70514
70515 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70518         Problem reported by Bruno Haible in:
70519         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70520
70521 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * config/srclist.txt: Comment out argp-pvh.c.
70524
70525 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70528         in case some system header has #define'd it.  Problem reported by
70529         Soeren D. Schulze in
70530         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70531
70532 2004-09-09  Karl Berry  <karl@gnu.org>
70533
70534         * regex.[ch]: delete from the root.  These were supposed to be
70535                 synced with emacs cvs, but this has not happened for about
70536                 a year, and anyway nothing else uses emacs regex.[ch].
70537                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70538                 lib/regex[.ch] is untouched.
70539
70540 2004-09-09  Bruno Haible  <bruno@clisp.org>
70541
70542         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70543
70544 2004-09-09  Bruno Haible  <bruno@clisp.org>
70545
70546         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70547         modifications.
70548         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70549
70550 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70551
70552         * modules/xvasprintf: New file.
70553         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70554
70555 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70556
70557         * lib/xvasprintf.h: New file.
70558         * lib/xvasprintf.c: New file.
70559         * lib/xasprintf.c: New file.
70560
70561 2004-09-08  Bruno Haible  <bruno@clisp.org>
70562
70563         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70564
70565 2004-09-08  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70568         length is > INT_MAX.
70569         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70570         more.
70571
70572 2004-09-08  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/stdint_.h: New file, taken from GNU clisp.
70575
70576 2004-09-08  Bruno Haible  <bruno@clisp.org>
70577             Oskar Liljeblad  <oskar@osk.mine.nu>
70578
70579         * modules/stdint: New file.
70580         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70581
70582 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         Import from coreutils.
70585         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70586         strings on unbounded length.  alloca's performance benefits aren't
70587         that important here.
70588         (V_STRDUP): Remove.
70589         (parse_with_separator): New function, with most of the internals
70590         of the old parse_user_spec.  Allow user to omit both user and group,
70591         for compatibility with FreeBSD.
70592         Clone only the user name, not the entire spec.
70593         Do not set *uid, *gid unless entirely successful.
70594         Avoid memory leak in some failing cases.
70595         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70596         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70597         (parse_user_spec): Rewrite to use parse_with_separator.
70598
70599 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * modules/userspec: Don't depend on alloca.
70602
70603 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70606
70607 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70610         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70611         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70612
70613 2004-08-16  Simon Josefsson  <jas@extundo.com>
70614
70615         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70616         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70617         Add --dry-run for --import.
70618         Let user provided command line parameters override configure.ac
70619         settings.
70620
70621 2004-08-12  Simon Josefsson  <jas@extundo.com>
70622
70623         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70624         as discussed with Paul Eggert in threads rooted at
70625         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70626         and
70627         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70628         Before, the test was empty, and relied on ELIDE_CODE in source
70629         code.)
70630         (gl_PREREQ_GETOPT): New macro.
70631         (gl_GETOPT): Use them.
70632
70633 2004-08-12  Simon Josefsson  <jas@extundo.com>
70634
70635         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70636         * lib/getopt_.h: Renamed from getopt.h.
70637
70638 2004-08-12  Simon Josefsson  <jas@extundo.com>
70639
70640         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70641         Change default library name from libfoo to libgnu.
70642         Now, if you have a configure.ac that says:
70643                 gl_SOURCE_BASE(gl)
70644                 gl_M4_BASE(gl/m4)
70645                 gl_MODULES(error getopt etcetera)
70646                 gl_INIT
70647         you can import all you need by running:
70648                 ../gnulib/gnulib-tool --import
70649
70650         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70651         (Makefile.am): Rewrite, use logic from argz.
70652         (Include): Use <getopt.h> instead of "getopt.h".
70653
70654 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * modules/argp (Files): Add m4/unlocked-io.m4.
70657         (Depends-on): Add extensions.
70658
70659 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70662         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70663         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70664         Check for program_invocation_name, program_invocation_short_name,
70665         flockfile, funlockfile, features.h, _getopt_long_only_r.
70666
70667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70670         its complicated substitute.
70671         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70672         and program_invocation_name.
70673         (__argp_basename) [!_LIBC]: Remove; the only use was
70674         replaced by its body.
70675         (__argp_short_program_name): Change condition from
70676         !defined __argp_short_program_name to
70677         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70678         to match argp-namefrob.h.
70679         (__argp_failure): Don't assume strerror_r returns char *.
70680         * lib/argp-parse.c (N_): Define unconditionally.
70681         (argp_default_options): Fill out initializers with 0 to avoid
70682         gcc warnings.
70683
70684 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70687         getopt1.c.
70688
70689 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         Merge from coreutils.
70692
70693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70694
70695         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70696         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70697
70698 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         Merge from coreutils.
70701
70702         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70703         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70704         for Reliant Unix 5.43.
70705
70706         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70707         (union fooround): Use uintmax_t, not long int.
70708         The rest is a merge from libc:
70709         [defined _LIBC]: Include <shlib-compat.h>.
70710         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70711
70712         * lib/settime.c (settime): Recode to avoid warning with
70713         Sun Forte C 6U2.
70714
70715         * lib/strverscmp.c: Convert to UTF-8.
70716
70717 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70720         m4/uintmax_t.m4.
70721
70722 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * modules/xalloc-die: New file.
70725         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70726
70727         * modules/md5 (Files): Add m4/uint32_t.m4.
70728         * modules/sha1: Renamed from modules/sha.
70729         (Files):
70730         Rename lib/sha.h to lib/sha1.h.
70731         Rename lib/sha.c to lib/sha1.c.
70732         Rename m4/sha.m4 to m4/sha1.m4.
70733         (lib_SOURCES): Likewise.
70734         (configure.ac): Rename gl_SHA to gl_SHA1.
70735         (Include): sha.h -> sha1.h.
70736
70737 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70740         * m4/sha1.m4: Renamed from sha.m4.
70741         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70742
70743 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * lib/obstack.h (obstack_empty_p):
70746         Don't assume that chunk->contents is suitably aligned.
70747         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70748         Likewise. Problem reported by Benno in
70749         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70750
70751         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70752         readable.  This could be improved further but it'd take some work.
70753
70754 2004-08-08  Simon Josefsson  <jas@extundo.com>
70755
70756         * modules/xgethostname (Depends-on): Remove exit and error (not
70757         used).
70758
70759         * modules/getpass-gnu: Add getpass.h.
70760         (Depends-on): Add stdbool.
70761         * modules/getpass: Add getpass.h.
70762
70763 2004-08-08  Simon Josefsson  <jas@extundo.com>
70764
70765         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70766         Check getpass declaration.
70767
70768 2004-08-08  Simon Josefsson  <jas@extundo.com>
70769
70770         * lib/xgethostname.c: Don't include error.h (not used).
70771
70772         * lib/getpass.h: Add.
70773         * lib/getpass.c: Include getpass.h first.
70774
70775 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * lib/xalloc-die.c: New file.
70778         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70779         All uses removed.
70780         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70781         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70782         xalloc-die.c.
70783         (_, N_, xalloc_die): Move to xalloc-die.c.
70784         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70785         so that we needn't mess with xalloc_msg_memory_exhausted.
70786
70787         * lib/sha1.h: Renamed from sha.h.
70788         (SHA1_H): Renamed from _SHA_H.
70789         (sha1_ctx): Renamed from sha_ctx.
70790         (sha1_init_ctx): Renamed from sha_init_ctx.
70791         (sha1_process_block): Renamed from sha_process_block.
70792         (sha1_process_bytes): Renamed from sha_process_bytes.
70793         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70794         (sha1_read_ctx): Renamed from sha_read_ctx.
70795         (sha1_stream): Renamed from sha_stream.
70796         (sha1_buffer): Renamed from sha_buffer.
70797         * lib/sha1.c: Likewise; renamed from sha.c.
70798         Do not include <sys/types.h>.
70799         Include <stddef.h> rather than <stdlib.h>.
70800
70801 2004-08-08  Bruno Haible  <bruno@clisp.org>
70802
70803         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70804         FILESYSTEM_PREFIX_LEN.
70805         * lib/progreloc.c: Likewise.
70806         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70807
70808 2004-08-06  Simon Josefsson  <jas@extundo.com>
70809
70810         * modules/progname (Depends-on): Don't depend on stdbool.
70811
70812 2004-08-06  Simon Josefsson  <jas@extundo.com>
70813
70814         * modules/getsubopt: New file.
70815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70816         getsubopt.
70817
70818 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         More merge from coreutils.
70821
70822         * m4/utimens.m4, m4/utimecmp.m4: New files.
70823         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70824         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70825         prereq.m4, sha.m4: Import changes from coreutils.
70826
70827 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         More merge from coreutils.
70830         * modules/raise, modules/readtokens0, modules/utimens:
70831         * modules/utimecmp, module/xnanosleep: New files.
70832         * modules/strftime: Add lib/strftime.h.
70833         Change include from <time.h> to "strftime.h".
70834         * modules/yesno: Add lib/yesno.h.
70835         * modules/backupfile: Remove lib/addext.c.
70836         * modules/euidaccess: Add stat-macros.h.
70837         * modules/canonicalize, modules/euidaccess,
70838         modules/filemode, modules/lchown, modules/makepath,
70839         modules/rmdir, modules/stat: Likewise.
70840
70841 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         Merge from tar.
70844         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70845         SIZE_MAX is a valid preprocessor constant.
70846         (__argp_basename): Change from "#ifndef _LIBC"
70847         to "#ifndef __argp_short_program_name", so that
70848         we don't compile these functions for tar.
70849
70850         More merges from coreutils.
70851         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70852         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70853         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70854         * lib/addext.c: Remove; no longer needed.
70855         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70856         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70857         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70858         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70859         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70860         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70861         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70862         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70863         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70864         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70865         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70866         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70867         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70868         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70869         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70870         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70871         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70872         Import changes from coreutils.
70873
70874 2004-08-05  Simon Josefsson  <jas@extundo.com>
70875
70876         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70877
70878 2004-08-05  Simon Josefsson  <jas@extundo.com>
70879
70880         * m4/getsubopt.m4: New file.
70881
70882 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         Merge from coreutils.
70885
70886         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70887         * m4/getcwd-path-max.m4: New files.
70888
70889         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70890         FILESYSTEM_PREFIX_LEN ->
70891         FILE_SYSTEM_PREFIX_LEN.
70892         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70893         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70894         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70895         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70896
70897         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70898         prerequisite modules now handle the DOS stuff.
70899         Don't check for unistd.h.
70900
70901 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         Merge from coreutils.
70904
70905         * lib/.gdb-history: Remove; this doesn't belong here.
70906
70907         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70908         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70909         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70910         * lib/getcwd.c: New files.
70911
70912         * lib/dirname.h: Include <stdbool.h>.
70913         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70914         for consistency with POSIX terminology.  All uses changed.
70915         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70916         (strip_trailing_slashes): Use bool for booleans.
70917         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70918
70919         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70920         sometimes returns a positive errno value even when it succeeds.
70921         (print_errno_message) [!LIBC]: Fall back on strerror if
70922         __strerror_r fails.
70923
70924         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70925         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70926         (longest_relative_suffix): New function.
70927         (path_concat): Use it.  Assume first argument is not NULL.
70928         Port to DOS.  Omit redundant separators.
70929         Report an error instead of returning NULL.
70930         Use mempcpy instead of memcpy.
70931         (xpath_concat): Remove: not declared or used.
70932
70933         * lib/same.h: Include <stdbool.h>
70934         (same_name): Return bool, not int.
70935         * lib/same.c (same_name): Likewise.
70936         (errno): Don't declare; we assume C89 or better now.
70937
70938         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70939         if not already defined.
70940
70941         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70942         * lib/dup-safer.c (errno): Likewise.
70943
70944 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         Merge from coreutils.
70947         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70948         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70949         * modules/path-concat: Don't depend on strdup.
70950
70951 2004-08-03  Simon Josefsson  <jas@extundo.com>
70952
70953         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70954         * lib/progname.h: Don't include stdbool.h.
70955
70956 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70959         * MODULES.html.sh (func_all_modules): Remove fatal.
70960
70961 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70964
70965 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70968         working.
70969
70970 2004-08-02  Simon Josefsson  <jas@extundo.com>
70971
70972         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70973         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70974         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70975
70976 2004-08-01  Simon Josefsson  <jas@extundo.com>
70977
70978         * lib/xgetdomainname.c: Include stdlib.h, for free().
70979
70980 2004-07-19  Bruno Haible  <bruno@clisp.org>
70981
70982         * MODULES.html.sh (func_all_modules): Add dummy.
70983
70984 2004-07-16  Simon Josefsson  <jas@extundo.com>
70985
70986         * modules/dummy: New file.
70987
70988 2004-07-16  Simon Josefsson  <jas@extundo.com>
70989
70990         * lib/dummy.c: New file.
70991
70992 2004-07-16  Bruno Haible  <bruno@clisp.org>
70993
70994         * lib/backupfile.h: Add extern "C" for C++.
70995         * lib/closeout.h: Likewise.
70996         * lib/copy-file.h: Likewise.
70997         * lib/findprog.h: Likewise.
70998         * lib/full-write.h: Likewise.
70999         * lib/pathname.h: Likewise.
71000         * lib/progname.h: Likewise.
71001         * lib/stpcpy.h: Likewise.
71002         * lib/stpncpy.h: Likewise.
71003         * lib/strcase.h: Likewise.
71004         * lib/strstr.h: Likewise.
71005         * lib/xalloc.h: Likewise.
71006
71007         * lib/mbswidth.h: Add extern "C" for C++.
71008         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71009
71010 2004-07-13  Robert Millan  <robertmh@gnu.org>
71011
71012         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71013
71014 2004-07-09  Simon Josefsson  <jas@extundo.com>
71015
71016         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71017         failed without this.)
71018
71019 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * modules/chown (Files): Add lib/fchown-stub.c, since
71022         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71023
71024 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * lib/fchown-stub.c: New file.
71027
71028 2004-06-24  Jim Meyering  <jim@meyering.net>
71029
71030         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71031
71032 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         * modules/argz: Omit "#include".
71035
71036         * MODULES.html.sh (func_all_modules): Add calloc, to match
71037         2004-06-01 addition of calloc module.
71038
71039 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         * m4/argz.m4: New file, which is autoupdated from libtool.
71042
71043 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71046         libtool.
71047
71048 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * config/srclist-update: Don't insist on "USA." before the
71051         close-comment, as libtool omits the period and puts the */ on a
71052         separate line.
71053         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71054         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71055
71056 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71057
71058         * modules/argz: New file.
71059         * MODULES.html.sh (func_all_modules): Add argz.
71060
71061 2004-06-12  Jim Meyering  <jim@meyering.net>
71062         and  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * modules/hash (Files): Add lib/xalloc.h.
71065         * modules/pipe (Depends-on): Add wait-process.
71066         * modules/stat (Depends-on): Add xalloc.
71067         * modules/userspec (Files): Add lib/userspec.h.
71068         * modules/xstrto
71069
71070         Upgrade from gettext-0.13.
71071         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71072         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71073         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71074
71075 2004-06-10  Jim Meyering  <jim@meyering.net>
71076
71077         * lib/calloc.c: New file.
71078
71079 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/getdate.y (yylex): Allow space between sign and number.
71082         Problem reported by Dan Jacobson.
71083
71084 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         Merge from coreutils CVS.
71087
71088         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71089         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71090         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71091         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71092         xstrtol.m4: Fix copyright date and/or serial number.
71093
71094         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71095         See if we need an fchown replacement.
71096         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71097         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71098         and use the replacement function if we detect either defect.
71099
71100         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71101         gl_UTIMECMP.
71102
71103 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71104         and  Jim Meyering  <jim@meyering.net>
71105
71106         Merge from coreutils CVS.
71107
71108         * lib/stat-macros.h: New file, with contents from file-type.h
71109         and coreutils' system.h.
71110         * lib/file-type.c: Include "stat-macros.h".
71111         * lib/file-type.h (file_type): Move all macro definitions to new file,
71112         stat-macros.h.
71113
71114         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71115         Wrap old code with this conditional.
71116         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71117         function that does not dereference symlinks.
71118         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71119
71120         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71121         dependency problems.
71122         (xreadlink): Accept new arg SIZE, for efficiency.
71123         All decls and uses changed.
71124         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71125
71126         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71127         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71128
71129         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71130         sysexits.h.
71131
71132 2004-06-01  Jim Meyering  <jim@meyering.net>
71133
71134         * m4/calloc.m4: New file.
71135
71136 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71139         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71140         Also, fix a typo in a diagnostic.
71141
71142 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71145         or AC_FUNC_REALLOC.
71146
71147 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71150         macros to be defined.
71151         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71152         the allocator returns NULL because the requested size is zero.
71153
71154 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71157         var.  Add comment explaining why libc still defines it.  This
71158         merges the following patch from glibc:
71159         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71160
71161 2004-05-20  Andreas Schwab  <schwab@suse.de>
71162
71163         * m4/free.m4: Replace free if it not known to work, not the other
71164         way round.
71165
71166 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71169         present in glibc since revision 1.1 of this file.
71170         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71171         obstack_alignment_mask, obstack_alloc, obstack_base,
71172         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71173         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71174         obstack_grow0, obstack_init, obstack_int_grow,
71175         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71176         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71177         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71178         nonexistent functions.
71179
71180 2004-05-18  Karl Berry  <karl@gnu.org>
71181
71182         * config/srclist.txt: break link for vasnprintf.c.
71183
71184 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         Port obstack to the AS/400, where pointers are 16 bytes wide and
71187         you cannot cast an integer to a valid pointer.  This patch is
71188         currently waiting to be integrated into glibc; see
71189         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71190
71191         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71192         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71193         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71194         (struct obstack): temp member is now a union of a pointer and
71195         an integer, instead of an integer.  All integer uses changed.
71196         This does not affect the physical layout of struct obstack,
71197         except on hosts (like the AS/400) where the size or alignment of
71198         void * is greater than that of ptrdiff_t.
71199         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71200         __STDC__)]: Store temporary in pointer member of union, not
71201         integer member.
71202         * lib/obstack.c: Include <stddef.h>, for offsetof.
71203         (struct fooalign): Remove; it doesn't need a name.
71204         (union fooround): Change double to long double, and add void *.
71205         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71206         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71207         not a macro.  Hence the values are always int; so remove all
71208         casts-to-int in uses.
71209
71210 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71211
71212         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71213         we can get this patch merged into glibc.
71214
71215 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71216             Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         * m4/argp: Depend on alloca.
71219
71220 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71221             Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71224         freecoding.
71225
71226 2004-05-17  Bruno Haible  <bruno@clisp.org>
71227
71228         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71229         precision that consists of a '.' followed by an empty digit string.
71230         Patch by Tor Lillqvist <tml@iki.fi>.
71231
71232 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71233
71234         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71235         for backward compatibility with older code.  We need our own
71236         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71237         it under some other name, and our alloca.h will define it.
71238
71239 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71240             Derek Price  <derek@ximbiot.com>
71241
71242         * lib/alloca.c: Include <alloca.h>, to get our interface.
71243         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71244         include <alloca.h> first.  Use C89 prototype for alloca; this
71245         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71246         Use #elif for simplicity, since we can assume C89 now.
71247         Don't try to source the system alloca.h since it will not be found
71248         and to prevent recursively including its replacement.
71249         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71250         * lib/regex.c: Likewise.
71251
71252 2004-05-16  Derek Price  <derek@ximbiot.com>
71253             Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         getline cleanup.  This changes the getndelim2 API: both order of
71256         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71257         no delimiter).
71258
71259         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71260         interface does that.
71261         (getline): Always use getdelim, so that we don't have two
71262         copies of this code.
71263         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71264         if available.
71265         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71266         (GETNDELIM2_MAXIMUM): New macro.
71267         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71268         instead of the old practice of delim2==0.  All callers changed.
71269         Return -1 on overflow, instead of returning junk.
71270         Do not set *linesize unless allocation succeeds.
71271         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71272         that we include sys/types.h.
71273         * lib/getnline.h: Likewise.
71274         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71275         (getndelim2): Reorder arguments.
71276         * lib/getnline.c (getnline, getndelim):
71277         Don't discard the NMAX argument.
71278         (getnline): Invoke getndelim, to avoid code duplication.
71279         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71280         of (size_t) -1 by callers of the getnline family.
71281
71282 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71285         Check for gettimeofday.
71286         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71287         Check for settimeofday, stime.
71288
71289 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71290
71291         * lib/nanosleep.c (suspended): Change its type from int to
71292         sig_atomic_t volatile.
71293         (first_call): Make it private to rpl_nanosleep, and have it
71294         be zero initially as that's a bit faster.
71295         (my_usleep): Round up fractional times instead of truncating them,
71296         as this is the usual meaning for 'sleep'.
71297
71298         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71299         doesn't work.
71300         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71301         (ENOSYS): Define if not defined.
71302         (settime): Fall back on stime if it exists and settimeofday fails.
71303         But don't bother with fallbacks if a method fails with errno == EPERM.
71304
71305 2004-05-11  Jim Meyering  <jim@meyering.net>
71306
71307         Prior to this change, the save_cwd caller required read access to the
71308         current directory on most systems (ones with the fchdir function).
71309
71310         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71311         fails, try write-only, and finally, resort to using xgetcwd.
71312
71313 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * lib/obstack.c, obstack.h: Import changes from libc.
71316
71317 2004-04-28  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71320         also implicitly appends .exe to executables.
71321         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71322         accepts Windows pathnames.
71323         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71324         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71325         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71326         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71327         Reported by Derek Robert Price <derek@ximbiot.com>.
71328
71329 2004-04-21  Karl Berry  <karl@gnu.org>
71330
71331         * config/srclist.txt (localcharset.c): break sync.
71332
71333 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71334
71335         * m4/host-os.m4: Add a copyright notice.
71336
71337 2004-04-20  Jim Meyering  <jim@meyering.net>
71338
71339         Change UTILS_ to gl_ in AC_DEFINE'd names.
71340         Change utils_- and jm_-prefixed variables, too.
71341         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71342         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71344
71345         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71346         Don't emit trailing blanks.
71347         Also rename jm_-prefixed variables to have gl_ prefix.
71348
71349         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71350         Also rename jm_-prefixed variables to have gl_ prefix.
71351
71352         * m4/jm-macros.m4: Reflect the renamings.
71353         * m4/prereq.m4: Likewise.
71354
71355 2004-04-20  Jim Meyering  <jim@meyering.net>
71356
71357         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71358         memory.
71359
71360 2004-04-20  Jim Meyering  <jim@meyering.net>
71361             Bruno Haible  <bruno@clisp.org>
71362
71363         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71364         memory when realloc fails.
71365
71366 2004-04-19  Jim Meyering  <jim@meyering.net>
71367
71368         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71369         now that readutmp.c may call `free (0)'.
71370
71371 2004-04-19  Bruno Haible  <bruno@clisp.org>
71372
71373         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71374         * m4/inttypes_h.m4: Likewise.
71375         * m4/stdint_h.m4: Likewise.
71376         * m4/intmax_t.m4: Likewise.
71377         * m4/uintmax_t.m4: Likewise.
71378
71379 2004-04-18  Jim Meyering  <jim@meyering.net>
71380
71381         * m4/prereq.m4: Don't forbid jm_ prefix.
71382
71383         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71384         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71385         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71386         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71387         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71388         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71389         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71390         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71391         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71392         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71393         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71394         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71395         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71396         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71397         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71398         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71399         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71400         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71401         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71402
71403 2004-04-18  Jim Meyering  <jim@meyering.net>
71404
71405         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71406         failure, don't leak memory and do call END_UTMP_ENT.
71407
71408 2004-04-16  Jim Meyering  <jim@meyering.net>
71409
71410         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71411         coreutils' stat program.
71412         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71413
71414 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71415
71416         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71417         C89.
71418         (CHAR_BIT): Remove, since we assume C89.
71419         Include <stdint.h> if available, as per current Autoconf CVS advice.
71420
71421 2004-03-31  Jim Meyering  <jim@meyering.net>
71422
71423         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71424         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71425         * m4/xalloc.m4: Likewise.
71426
71427 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71428
71429         Merge from coreutils.
71430
71431         * m4/inttostr.m4: New file.
71432         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71433         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71434         Require gl_CLOCK_TIME.
71435         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71436
71437 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71438
71439         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71440         not bool, to be more consistent with Unix conventions.
71441         Suggested by Bruno Haible.
71442
71443         Merge from coreutils.
71444
71445         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71446         * lib/umaxtostr.c: New files.
71447
71448         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71449         the usual <time.h> dance.
71450         (get_date): Change signature to support fractional time stamps.
71451         All callers changed.
71452         * lib/getdate.y: Include "getdate.h" first, as we can now
71453         assume C89 and don't need to worry about 'const'.
71454         Similarly, include "unlocked-io.h" near start, not in middle.
71455         Include <limits.h>.
71456         (textint.value): Use long int rather than int.
71457         (textint.digits): Use size_t rather than int.
71458         (BILLION, LOG10_BILLION): New constants.
71459         (parser_control): New member rel_ns.  Members day_ordinal,
71460         time_zone, month, day, hour, minutes, rel_year, rel_month,
71461         rel_day, rel_hour, rel_minutes, rel_seconds
71462         are now long int, not int.  Member seconds is now struct timespec,
71463         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71464         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71465         not int.
71466         (%union.intval): Now long int, not int.
71467         New member timespec.
71468         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71469         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71470         (spec): Now is a timespec or an item list.
71471         (timespec, items): New nonterminals.
71472         (time, rel, relunit, number, get_date):
71473         Add support for fractional seconds.
71474         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71475         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71476         (to_hour): First arg is now long int, not int.
71477         (to_year): Returns long int, not int.
71478         Don't treat year -70 like 70.
71479         (tm_diff): Returns long int, not int.
71480         (lookup_word): Use bool instead of int when appropriate.
71481         (yylex): Use size_t for count, not int.
71482         Detect overflow when parsing large integer constants.
71483         Add support for fractions.
71484         (get_date): Make pointers 'const' if possible.
71485         Use more-portable code to detect integer overflow.
71486         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71487         Don't use ctime; it's not reliable if the year has >4 digits.
71488
71489         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71490         This is for compatibility with BSD.
71491
71492         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71493         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71494         From coreutils' system.h.
71495
71496         * lib/userspec.c: Don't include "posixver.h".
71497         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71498         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71499         compatible extension.  Simplify code by removing a boolean int
71500         that was always nonzero if a string was nonnull.
71501
71502 2004-03-30  Jim Meyering  <jim@meyering.net>
71503
71504         Merge from coreutils.
71505
71506         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71507         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71508         on some systems one must include <grp.h> before it.
71509         Reported by Christian Krackowizer.
71510
71511 2004-03-30  Jim Meyering  <jim@meyering.net>
71512
71513         Merge from coreutils.
71514
71515         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71516
71517         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71518         an empty input stream.
71519
71520         * lib/readtokens.c: Include <stdbool.h>.
71521         (readtoken): Use `size_t' rather than int/long.
71522         All callers adjusted.
71523         Use `bool' rather than `int' where appropriate.
71524         Use memset rather than an explicit loop.
71525         Use x2nrealloc rather than xrealloc.
71526         Allow the use of `\0' as a delimiter.
71527         (readtokens): Likewise.
71528         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71529
71530 2004-03-30  Jim Meyering  <jim@meyering.net>
71531
71532         * m4/realloc.m4: Remove file, since now it does no more than
71533         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71534         the `configure.ac' section of module/realloc.
71535         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71536
71537 2004-03-30  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71540         nonnull.
71541
71542 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71543
71544         Merge changes to getloadavg.c from coreutils and Emacs.
71545
71546         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71547         Define to an expression, not to the empty string.
71548         Include cloexec.h and xalloc.h.
71549         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71550         Use set_cloexec_flag rather than rolling our own.
71551         * lib/cloexec.c, lib/cloexec.h: New files.
71552
71553 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71554
71555         * m4/cloexec.m4: New file.
71556
71557 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71558
71559         * lib/getopt.h: Sync with libc CVS.
71560
71561 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71562             Bruno Haible  <bruno@clisp.org>
71563
71564         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71565         mbswidth.
71566
71567 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71568             Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/mbswidth.h: Include <wchar.h> only if
71571         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71572         <wchar.h>.
71573         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71574
71575 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71576
71577         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71578         Sync with libc CVS.
71579         * lib/getopt_int.h: New file, also synced from libc.
71580
71581 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71582
71583         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71584         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71585         Bring back getopt.c, getopt.h, getopt1.c.
71586
71587 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71588
71589         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71590         All uses changed.  Check for sa_sigaction member; this fixes
71591         a bug first reported by Jason Andrade in
71592         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71593
71594 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71595
71596         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71597         '#if' expressions.  Unlike the code it replaces, it does not
71598         depend on (defined _SC_PAGESIZE).  However, it does depend on
71599         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71600         first reported by Jason Andrade in
71601         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71602
71603 2004-02-25  Simon Josefsson  <jas@extundo.com>
71604
71605         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71606
71607 2004-02-25  Simon Josefsson  <jas@extundo.com>
71608
71609         * lib/strdup.h: New file.
71610         * lib/strdup.c: Include it.
71611         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71612         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71613
71614 2004-02-23  Karl Berry  <karl@gnu.org>
71615
71616         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71617         (from fencepost.gnu.org:/gd/gnuorg).
71618
71619 2004-02-23  Karl Berry  <karl@gnu.org>
71620
71621         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71622         * config/srclist.txt: add maintain/standards documents.
71623
71624 2004-02-18  Bruno Haible  <bruno@clisp.org>
71625
71626         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71627         Reported by Derek Robert Price <derek@ximbiot.com>.
71628
71629 2004-02-16  Karl Berry  <karl@gnu.org>
71630
71631         * config/mkinstalldirs, install-sh: update from automake.
71632
71633 2004-02-06  Karl Berry  <karl@gnu.org>
71634
71635         * m4/po.m4: update from gettext 0.14.1.
71636
71637 2004-02-06  Karl Berry  <karl@gnu.org>
71638
71639         * lib/config.charset: update from gettext 0.14.1.
71640
71641 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71642
71643         Add comments and code, prompted by suggestions from Bruno Haible
71644         for sh-quote.
71645         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71646         describing the enum quoting_style values.
71647         * lib/quotearg.c (quotearg_alloc): New function.
71648         (quotearg_buffer_restyled): Treat lone { and } as special.
71649         Treat = as special.  Work around bug with older shells
71650         that "see" a '\' that is really the 2nd byte of a multibyte char.
71651         Quote empty string with shell_quoting_style.
71652
71653 2004-02-03  Bruno Haible  <bruno@clisp.org>
71654
71655         * m4/pipe.m4: New file, from GNU gettext.
71656
71657 2004-02-03  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/pipe.h: New file, from GNU gettext.
71660         * lib/pipe.c: New file, from GNU gettext.
71661
71662 2004-01-27  Bruno Haible  <bruno@clisp.org>
71663
71664         * m4/execute.m4: New file, from GNU gettext.
71665
71666 2004-01-27  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/execute.h: New file, from GNU gettext.
71669         * lib/execute.c: New file, from GNU gettext.
71670         * lib/w32spawn.h: New file, from GNU gettext.
71671
71672 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71673
71674         Merge from diffutils.
71675
71676         * lib/file-type.c (file_type): Add typed memory objects.
71677         * lib/file-type.h (S_TYPEISTMO): New macro.
71678
71679         * lib/c-stack.h (c_stack_action): Remove argv argument.
71680         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71681         (die): Don't calculate message unless segv_action returns.
71682         (get_stack_location, min_address_from_argv, max_address_from_argv,
71683         volatile stack_base, volatile_stack_size): Remove.
71684         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71685         that every segmentation violation is a stack overflow.  (Ouch!)
71686         See Debian bug 136249 (still outstanding) for more info about why
71687         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71688
71689 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71690
71691         Exit-status fix from coreutils.
71692
71693         Use exit_failure consistently in place of EXIT_FAILURE,
71694         so that program exit statuses are consistent on failure.
71695
71696         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71697         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71698         * lib/argmatch.h: Comment fix to match the above.
71699         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71700         Now a macro referring to exit_failure, instead of a separate
71701         variable.  Include "exitfail.h" to get it.
71702         * lib/xstrtol.h: Include "exitfail.h".
71703         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71704
71705         * lib/long-options.c (parse_long_options): Use prototype
71706         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71707         for clarity.
71708
71709 2004-01-21  Jim Meyering  <jim@meyering.net>
71710
71711         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71712         so as not to conflict with a different-sized __mktime_internal
71713         function in GNU libc.
71714         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71715         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71716
71717 2004-01-20  Karl Berry  <karl@gnu.org>
71718
71719         * config/config.guess: update from config.
71720
71721         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71722
71723 2004-01-20  Bruno Haible  <bruno@clisp.org>
71724
71725         Safer stack allocation.
71726         * lib/setenv.c: Include allocsa.h.
71727         (alloca): Remove fallback definition.
71728         (freea): Remove macro.
71729         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71730         instead of freea.
71731
71732 2004-01-20  Bruno Haible  <bruno@clisp.org>
71733
71734         * m4/eealloc.m4: New file, from GNU gettext.
71735
71736 2004-01-20  Bruno Haible  <bruno@clisp.org>
71737
71738         * m4/allocsa.m4: New file, from GNU gettext.
71739
71740 2004-01-20  Bruno Haible  <bruno@clisp.org>
71741
71742         * lib/xallocsa.h: New file, from GNU gettext.
71743         * lib/xallocsa.c: New file, from GNU gettext.
71744
71745 2004-01-20  Bruno Haible  <bruno@clisp.org>
71746
71747         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71748
71749 2004-01-20  Bruno Haible  <bruno@clisp.org>
71750
71751         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71752         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71753         specially.
71754
71755 2004-01-20  Bruno Haible  <bruno@clisp.org>
71756
71757         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71758         patch.
71759
71760 2004-01-20  Bruno Haible  <bruno@clisp.org>
71761
71762         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71763
71764 2004-01-20  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/eealloc.h: New file.
71767
71768 2004-01-20  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/binary-io.h: Avoid warnings on Cygwin.
71771
71772 2004-01-20  Bruno Haible  <bruno@clisp.org>
71773
71774         * lib/allocsa.h: New file, from GNU gettext.
71775         * lib/allocsa.c: New file, from GNU gettext.
71776
71777 2004-01-18  Karl Berry  <karl@gnu.org>
71778
71779         * doc/gpl.texi, doc/lgpl.texi: new files.
71780
71781 2004-01-18  Karl Berry  <karl@gnu.org>
71782
71783         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71784         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71785
71786 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71787
71788         Merge from coreutils.
71789
71790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71791         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71792         (gl_DEFAULT_POSIX2_VERSION): Move
71793         the documentation from 'configure' into 'config.hin',
71794         so that 'configure --help' isn't burdened by it and
71795         we don't have to worry about its formatting there.
71796         Reword the documentation so that it's more succinct
71797         and can be run together into a single paragraph.
71798         * m4/same.m4 (gl_SAME): Check for pathconf.
71799
71800 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71801
71802         Merge from coreutils.
71803
71804         * lib/posixver.c: Include posixver.h.
71805
71806         * lib/same.c: Include <stdbool.h>, <limits.h>.
71807         (_POSIX_NAME_MAX): Define if not defined.
71808         (MIN): New macro.
71809         (same_name): If file names are silently truncated, report
71810         that the file names are the same if they are the same after
71811         the silent truncation.
71812
71813         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71814         conversion function.
71815         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71816         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71817         longer needed.
71818
71819 2004-01-15  Jim Meyering  <jim@meyering.net>
71820
71821         Merge from coreutils.
71822
71823         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71824         if no library is required.
71825         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71826         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71827         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71828         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71829         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71830         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71831         value, $ac_cv_search_crypt, if it's "none required".
71832         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71833         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71834         not gl_FUNC_GETLOADAVG.
71835         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71836         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71837
71838 2004-01-15  Jim Meyering  <jim@meyering.net>
71839
71840         Merge from coreutils.
71841
71842         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71843         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71844         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71845
71846         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71847         optional configure-time default.
71848
71849         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71850
71851         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71852
71853 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71854
71855         Merge from coreutils.
71856
71857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71858         value, $ac_cv_search_nanosleep, if it's "none required".
71859
71860 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71861
71862         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71863         with like-named macro in fnmatch.c.
71864         (EXT): Use an internal constant instead.
71865
71866         Merge fnmatch patches from glibc.
71867         * lib/fnmatch.c (mbsinit): Remove define.
71868         Add libc_hidden_ver (__fnmatch, fnmatch).
71869         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71870         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71871
71872 2004-01-14  Karl Berry  <karl@gnu.org>
71873
71874         * config/install-sh: update from automake.
71875
71876 2004-01-13  Karl Berry  <karl@gnu.org>
71877
71878         * config/install-sh: update from automake.
71879
71880 2004-01-09  Karl Berry  <karl@gnu.org>
71881
71882         * config/install-sh: update from automake.
71883
71884 2004-01-05  Karl Berry  <karl@gnu.org>
71885
71886         * config/config.{sub,guess}: update from config.
71887
71888 2003-12-31  Karl Berry  <karl@gnu.org>
71889
71890         * config/depcomp: update from automake.
71891
71892 2003-12-14  Karl Berry  <karl@gnu.org>
71893
71894         * lib/config.charset: update from gettext-runtime.
71895
71896 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71897
71898         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71899         Bug reported by Alfred M. Szmidt.
71900
71901 2003-12-03  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/gettext.m4: Upgrade from gettext-0.13.
71904         * m4/po.m4: Upgrade from gettext-0.13.
71905         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71906         * m4/intmax.m4: New file, from gettext-0.13.
71907         * m4/printf-posix.m4: New file, from gettext-0.13.
71908
71909 2003-11-29  Karl Berry  <karl@gnu.org>
71910
71911         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71912
71913 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71914             Bruno Haible  <bruno@clisp.org>
71915
71916         * lib/printf-parse.h: Don't include sys/types.h.
71917         (ARG_NONE): New macro.
71918         (char_directive): Change type of *arg_index fields to size_t.
71919         * lib/printf-parse.c: Don't include sys/types.h.
71920         (SSIZE_MAX): Remove macro.
71921         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71922         Remove unnecessary overflow check.
71923         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71924         fields.
71925
71926 2003-11-25  Bruno Haible  <bruno@clisp.org>
71927
71928         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71929
71930 2003-11-25  Bruno Haible  <bruno@clisp.org>
71931
71932         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71933         gt_TYPE_SSIZE_T.
71934
71935 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71936
71937         * modules/alloca: Remove dependency on xalloc.
71938
71939 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71940
71941         * lib/alloca.c: Remove dependency on xalloc module.
71942         (xalloc_die): Remove.
71943         (memory_full) [!defined emacs]: New macro.
71944         [!defined emacs]: Don't include xalloc.h.
71945         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71946         address arithmetic overflows.  Change datatypes a bit to avoid
71947         unnecessary casts.
71948
71949 2003-11-22  Jim Meyering  <jim@meyering.net>
71950
71951         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71952         s/size/size_t/.
71953
71954 2003-11-21  Karl Berry  <karl@gnu.org>
71955
71956         * config/config.{sub,guess}: update from config.
71957
71958 2003-11-18  Karl Berry  <karl@gnu.org>
71959
71960         * config/config.{sub,guess}: update from config.
71961
71962         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71963
71964 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71965
71966         * README: Mention that S+T cannot overflow if S is the size of
71967         an existing object and T is sufficiently small.
71968
71969 2003-11-17  Jim Meyering  <jim@meyering.net>
71970
71971         On systems without utime and without a utimes function capable of
71972         dealing with a NULL struct utimbuf* argument, this utime replacement
71973         could -- in unusual circumstances -- leak a file descriptor.
71974         * lib/utime.c: Include <unistd.h> and <errno.h>.
71975         (utime_null): Be sure to close `fd' and to preserve errno.
71976         Reported by Geoff Collyer via Arnold Robbins.
71977
71978 2003-11-17  Bruno Haible  <bruno@clisp.org>
71979
71980         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71981         (Depends-on): Add xsize.
71982
71983 2003-11-17  Bruno Haible  <bruno@clisp.org>
71984
71985         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71986
71987 2003-11-17  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/vasnprintf.c (alloca): Remove fallback definition.
71990         (freea): Remove definition.
71991         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71992         Reported by Paul Eggert.
71993
71994 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71995             Bruno Haible  <bruno@clisp.org>
71996
71997         Protect against address arithmetic overflow.
71998         * lib/printf-args.h: Include stddef.h.
71999         (arguments): Change type of field 'count' to size_t.
72000         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72001         'unsigned int' where appropriate.
72002         * lib/printf-parse.h: Include sys/types.h.
72003         (char_directive): Change type of *arg_index fields to ssize_t.
72004         (char_directives): Change type of fields 'count', max_*_length to
72005         size_t.
72006         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72007         (SSIZE_MAX): Define fallback value.
72008         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72009         instead of 'int' where appropriate. Check a_allocated, d_allocated
72010         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72011         * lib/vasnprintf.c: Include xsize.h.
72012         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72013         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72014         overflow. Avoid wraparound when converting a width or precision from
72015         decimal to binary.
72016
72017 2003-11-16  Bruno Haible  <bruno@clisp.org>
72018
72019         Update from GNU gettext.
72020         * lib/printf-parse.c: Generalize to it can be compiled for wide
72021         strings.
72022         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72023         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72024         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72025         SNPRINTF): New macros.
72026         Don't include <alloca.h> if the file is used inside libintl.
72027         (local_wcslen): New function, for Solaris 2.5.1.
72028         (VASNPRINTF): Use it instead of wcslen.
72029
72030 2003-11-16  Bruno Haible  <bruno@clisp.org>
72031
72032         * lib/xsize.h (xmax): New function.
72033         (xsum, xsum3, xsum4): Declare as "pure" functions.
72034
72035 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72036
72037         * modules/xalloc (Files): Undo latest change, since xalloc.h
72038         no longer needs SIZE_MAX or PTRDIFF_MAX.
72039
72040 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72041
72042         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72043         gl_PTRDIFF_MAX.
72044
72045 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72046
72047         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72048         "return", to pacify some unknown compiler.  Problem reported
72049         by Joerg Schilling.
72050
72051 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72052
72053         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72054         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72055         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72056         heuristic is just as accurate as far as we know, and it removes a
72057         dependency on size_max.m4 and ptrdiff_max.m4.
72058
72059 2003-11-11  Bruno Haible  <bruno@clisp.org>
72060
72061         * modules/xsize (Files): Add m4/size_max.m4.
72062         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72063
72064 2003-11-11  Bruno Haible  <bruno@clisp.org>
72065
72066         * m4/size_max.m4: New file.
72067         * m4/ptrdiff_max.m4: New file.
72068         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72069         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72070         (gl_XALLOC): Invoke it.
72071
72072 2003-11-11  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72075         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72076         defined.
72077
72078 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72079
72080         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72081         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72082         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72083         From Bruno Haible.
72084         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72085         not (size_t) -1, since it's defined here.
72086
72087 2003-11-09  Karl Berry  <karl@gnu.org>
72088
72089         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72090
72091 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72092
72093         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72094         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72095         Reject sizes of exactly SIZE_MAX bytes.
72096         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72097         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72098
72099 2003-11-05  Bruno Haible  <bruno@clisp.org>
72100
72101         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72102         SIZE_MAX defined in <limits.h> on Solaris.
72103
72104 2003-11-04  Jim Meyering  <jim@meyering.net>
72105
72106         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72107         variable names, rather than @VAR@.
72108         * modules/poll: Likewise.
72109
72110 2003-11-04  Bruno Haible  <bruno@clisp.org>
72111
72112         * modules/xsize: New file.
72113         * modules/linebreak: Depend on xsize.
72114         * MODULES.html.sh (func_all_modules): Add xsize.
72115
72116 2003-11-04  Bruno Haible  <bruno@clisp.org>
72117
72118         * m4/xsize.m4: New file.
72119
72120 2003-11-04  Bruno Haible  <bruno@clisp.org>
72121
72122         * lib/xsize.h: New file.
72123         * lib/linebreak.c: Include xsize.h.
72124         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72125         argument for overflow.
72126         Suggested by Paul Eggert.
72127
72128 2003-11-03  Karl Berry  <karl@gnu.org>
72129
72130         * config/config.{guess,sub}: update from config.
72131
72132 2003-11-03  Jim Meyering  <jim@meyering.net>
72133
72134         * modules/userspec (lib_SOURCES): Add userspec.h.
72135         (Include): Add "userspec.h".
72136         Improve description.
72137
72138 2003-11-03  Jim Meyering  <jim@meyering.net>
72139
72140         * lib/userspec.c: Include "userspec.h".
72141         * lib/userspec.h: New file.
72142
72143 2003-11-03  Bruno Haible  <bruno@clisp.org>
72144
72145         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72146
72147 2003-11-03  Bruno Haible  <bruno@clisp.org>
72148
72149         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72150         available, to avoid (extremely rare) race condition.
72151         Suggested by Paul Eggert.
72152
72153 2003-11-02  Karl Berry  <karl@gnu.org>
72154
72155         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72156
72157 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72158
72159         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72160         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72161         (read_filesystem_list): Set and use me_type_malloced.
72162         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72163         whatever the type happens to be), for brevity and consistency.
72164         Check for size calculation overflow on Alphas running OSF/1.
72165
72166 2003-10-31  Jim Meyering  <jim@meyering.net>
72167
72168         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72169
72170         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72171
72172 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72173             Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72176         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72177
72178 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72181         netbsd*-gnu*.  Suggested by Robert Millan.
72182
72183 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72184
72185         * modules/group-member: Depend on stdbool.
72186
72187 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72188
72189         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72190
72191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72192
72193         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72194         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72195         after the 'gnu' in these cases.  This fixes some bugs in the
72196         previous change, and is based on suggestions by Robert Millan.
72197
72198 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72199
72200         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72201         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72202         no longer needed.
72203         * lib/quotearg.c (quotearg_n_options): Use it.
72204         * lib/group-member.c: Include <stdbool.h>.
72205         (free_group_info): Arg is now const *; don't free arg.
72206         (get_group_info): Now returns bool and accepts struct group_info *,
72207         rather than returning a malloc'ed struct group_info *.
72208         All uses changed.  Check for overflow in internal size calculation.
72209
72210         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72211         rather than xmalloc/xrealloc.
72212         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72213         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72214         conformance bug: the old code used a pointer after freeing the
72215         storage that it addressed.
72216         * lib/hash.c (hash_initialize): Simplify the code by using
72217         xalloc_oversized rather than doing it by hand.
72218         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72219         the buffer preserved.  Use free and xmalloc instead.
72220         * lib/quotearg.c (quotearg_n_options): Likewise.
72221         Use a simpler test for size overflow.  Don't use xalloc_oversized
72222         because unsigned int might be wider than size_t (!); this suggests
72223         that we should switch from unsigned int to size_t for slot numbers.
72224
72225 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72226
72227         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72228         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72229         NetBSD kernels.  Requested by Richard Stallman.
72230
72231 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72232
72233         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72234         to allocate the returned structure.  Do not allocate a subarray,
72235         as x2nrealloc will do that.
72236         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72237         instead of xnrealloc.
72238         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72239
72240 2003-10-27  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/stdbool_.h: Better support for BeOS.
72243
72244 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72245
72246         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72247         now uses inline.
72248
72249 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72250
72251         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72252         callers that want to do their own size-overflow checking.  Include
72253         <stdbool.h>, since xalloc_oversized returns bool.
72254         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72255         to use xalloc_oversized.
72256
72257         Add two functions x2realloc, x2nrealloc, for programs that grow
72258         arrays dynamically by doubling their sizes.
72259         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72260         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72261         New functions.
72262
72263         Port to C99 semantics for 'inline' of external functions.
72264         Bug reported by Bruno Haible.
72265         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72266         with the old contents of xnmalloc.
72267         (xnmalloc, xmalloc): Use it.
72268         (xnrealloc_inline): New static inline function,
72269         with the old contents of xnrealloc.
72270         (xnrealloc, xrealloc): Use it.
72271
72272         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72273         that.
72274
72275 2003-10-26  Karl Berry  <karl@gnu.org>
72276
72277         * config/srclist.txt (COPYING.DOC): no longer available from
72278         /gd/gnuorg; don't know where the ultimate source is.
72279
72280 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72281
72282         Fix several address-calculation bugs in the hash modules,
72283         plus some minor code cleanup.
72284
72285         * lib/hash.h: Include <stdbool.h>, for bool.
72286         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72287         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72288         hash_get_n_entries, hash_get_max_bucket_length,
72289         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72290         hash_rehash): Use size_t rather than unsigned.
72291         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72292         hash_get_n_buckets_used, hash_get_n_entries,
72293         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72294         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72295         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72296         Likewise.
72297         (SIZE_MAX): Define if not defined.
72298         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72299         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72300         hash_print):
72301         Use const * when possible.
72302         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72303         (check_tuning): Fix bug: if tuning parameters were very close to
72304         0 or 1, rounding errors could have caused subscript violations.
72305         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72306         (hash_initialize): Add 'fail:' label
72307         to free table and return NULL, and use it to simplify code.
72308         Use calloc rather than clearing the storage ourself.
72309         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72310         buffer size calculations.
72311         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72312         Include <stddef.h>, for size_t.
72313         * lib/hash-pjw.c (hash_pjw): Likewise.
72314         Switch to method described by Bruno Haible.
72315         Include <limits.h>, for CHAR_BIT.
72316         (SIZE_BITS): New macro.
72317
72318 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72319
72320         * m4/getline.m4 (AM_FUNC_GETLINE):
72321         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72322         hosts.  Problem reported by Derek Robert Price in
72323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72324         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72325         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72326
72327 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72328
72329         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72330         ceiling the allocation at NMAX bytes rather than silently
72331         discarding input bytes before NMAX is reached.  This makes
72332         a difference only if NMAX exceeds SIZE_MAX / 2.
72333
72334         * lib/obstack.c: Merge from glibc.
72335         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72336         Add libc_hidden_def (_obstack_newchunk).
72337         (_obstack_free) [! defined _LIBC]: Remove.
72338         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72339         a clone of the function body.
72340         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72341         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72342
72343         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72344         glibc.
72345         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72346         arg to memcpy.
72347
72348         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72349         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72350         Don't use lvalue casts, as GCC plans to remove support for them
72351         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72352         was also present in the non-GCC version, indicating that this
72353         code had always been buggy and had never been widely used.
72354         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72355         Use the fast variant of each macro, rather than copying the
72356         definiens of the fast variant; that way, we'll be more likely to
72357         catch future bugs in the fast variants.
72358
72359 2003-10-20  Bruno Haible  <bruno@clisp.org>
72360
72361         * modules/wait-process: New file.
72362         * MODULES.html.sh (func_all_modules): Add wait-process.
72363
72364 2003-10-20  Bruno Haible  <bruno@clisp.org>
72365
72366         * m4/wait-process.m4: New file.
72367
72368 2003-10-20  Bruno Haible  <bruno@clisp.org>
72369
72370         * lib/wait-process.h: New file, from GNU gettext.
72371         * lib/wait-process.c: New file, from GNU gettext.
72372
72373 2003-10-19  Jim Meyering  <jim@meyering.net>
72374
72375         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72376         HPUX 10.20.
72377
72378 2003-10-18  Karl Berry  <karl@gnu.org>
72379
72380         * config/config.guess: update from config.
72381
72382 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72383
72384         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72385         (getgroups): First arg is int, not size_t.
72386         Don't let 'free' mangle errno.
72387
72388 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72389
72390         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72391
72392 2003-10-16  Karl Berry  <karl@gnu.org>
72393
72394         * config/config.{guess,sub}: update from config.
72395
72396 2003-10-16  Jim Meyering  <jim@meyering.net>
72397
72398         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72399         memcpy.
72400
72401 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72402
72403         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72404         (SIZE_MAX): Remove.
72405         (new_exclude, add_exclude_file): Initial size no longer needs to
72406         be a power of 2.
72407         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72408         our own address arithmetic overflow checking.
72409
72410         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72411         (fnmatch): Do not alloca more than 2000 wide characters;
72412         instead, use malloc for large buffers.
72413         Check for address arithmetic overflow, and return -1
72414         with errno set to ENOMEM in that case.
72415         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72416         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72417         instead, return -1.  Check for address arithmetic overflow.
72418
72419 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72420
72421         Handle invalid suffixes and overflow independently, so that
72422         callers can treat them independently as needed.  Fix some bugs in
72423         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72424         suffix for a human-readable blocksize.  The major caller-visible
72425         change is the addition of a new
72426         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72427         that both overflow and suffix chars were found.
72428
72429         * lib/human.c (humblock): Don't check separately for invalid suffix
72430         char; that is xstrtoumax's job (now that its bug is fixed).
72431         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72432         INTMAX_MAX]: New macros.
72433         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72434         TYPE_MAXIMUM): New macros.
72435         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72436         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72437         if overflow occurs, as it's what __strtol does and it's more useful
72438         in practice.
72439         (__xstrtol): If __strtol reports some error other than ERANGE,
72440         reflect it to the caller as LONGINT_INVALID.  If it reports
72441         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72442         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72443         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72444         value.
72445         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72446         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72447         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72448         [defined UINTMAX_MAX]: New macros.
72449
72450 2003-10-14  Bruno Haible  <bruno@clisp.org>
72451
72452         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72453
72454 2003-10-14  Bruno Haible  <bruno@clisp.org>
72455
72456         * m4/sig_atomic_t: New file, from GNU gettext.
72457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72458
72459 2003-10-14  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72462         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72463         Also use volatile where needed.
72464
72465 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72466
72467         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72468         Change maintainer from Bruno Haible to 'all'.
72469
72470 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72471
72472         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72473
72474 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72475
72476         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72477         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72478         and define in terms of the other primitives.
72479         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72480         (SIZE_MAX): Define if not already defined.
72481         (array_size_overflow): New function.
72482         (xalloc_die): Abort instead of exiting if 'error' returns.
72483         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72484         (xmalloc, xrealloc): Use them.
72485         (xcalloc): Check for address arithmetic overflow.
72486         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72487         a bit faster than strcpy.
72488
72489 2003-10-10  Simon Josefsson  <jas@extundo.com>
72490
72491         * modules/argp (Depends-on): Add restrict and strcase.
72492
72493 2003-10-10  Simon Josefsson  <jas@extundo.com>
72494
72495         * m4/argp.m4: Add AC_C_INLINE.
72496
72497 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72498
72499         Merge getpass from libc, plus a few fixes.
72500
72501         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72502         Include <stdbool.h>.
72503         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72504         __fsetlocking to empty.
72505         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72506         do include <bits/libc-lock.h>.
72507         Do not include <fcntl.h>; not needed.
72508         [_LIBC]: Include <wchar.h>.
72509         (NOTCANCEL_MODE): New macro.
72510         (flockfile, funlockfile) [_LIBC]: New macros.
72511         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72512         [!_LIBC]: New macros.
72513         (call_fclose): New function.
72514         (getpass): Use it.  Save tty stream separately; this simplifies the
72515         code and makes it more reliable if stdin happens to equal stdout.
72516         Invoke __fsetlocking on tty.
72517         Handle thread cancellation if needed.
72518         Namespace cleanup (use __tcgetattr, __getline).
72519         Use bool for Booleans.
72520         [USE_IN_LIBIO]: Handle wide streams.
72521         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72522         stream might go where.
72523
72524         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72525         doesn't have to include <stdio.h> before us.
72526         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72527         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72528         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72529         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72530         if not declared, so that we can use getpass.c code from libc without
72531         rewriting it.
72532         (flockfile, ftrylockfile, funlockfile): New macros.
72533
72534 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72535
72536         * modules/getpass: Depend on stdbool.
72537
72538 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72539
72540         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72541
72542 2003-10-07  Karl Berry  <karl@gnu.org>
72543
72544         * config/config.{guess,sub}: update from config.
72545
72546 2003-10-06  Jim Meyering  <jim@meyering.net>
72547             Bruno Haible  <bruno@clisp.org>
72548
72549         This lets translators provide better translations for the
72550         "Written by ..." part of --version output.
72551         * lib/version-etc.h: Include stdarg.h.
72552         (version_etc_copyright): Declare as readonly.
72553         (version_etc): Make this function variadic with a NULL-terminated list
72554         of author name strings.
72555         (version_etc_va): New declaration.
72556         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72557         (version_etc_copyright): Declare as readonly.
72558         (version_etc_va): New function. Provide a different translatable string
72559         for each possible number of authors < 10. Abbreviate when there are 10
72560         authors or more.
72561         (version_etc): Make this function variadic. Call version_etc_va.
72562         Suggestion from Gary V. Vaughan.
72563
72564         * lib/long-options.h (parse_long_options): Change prototype: the
72565         authors string is moved to the end and becomes variadic.
72566         * lib/long-options.c: Include stdarg.h.
72567         (parse_long_options): Make this function variadic, too.
72568         Call version_etc_va, not version_etc.
72569
72570 2003-10-06  Bruno Haible  <bruno@clisp.org>
72571
72572         * modules/version-etc-2: Remove file.
72573         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72574
72575 2003-10-06  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/fatal-signal: New file.
72578         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72579
72580 2003-10-06  Bruno Haible  <bruno@clisp.org>
72581
72582         * m4/fatal-signal.m4: New file.
72583         * m4/signalblocking.m4: New file, from GNU gettext.
72584
72585 2003-10-06  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/version-etc-2.h: Remove file.
72588         * lib/version-etc-2.c: Remove file.
72589
72590 2003-10-06  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/fatal-signal.h: New file, from GNU gettext.
72593         * lib/fatal-signal.c: New file, from GNU gettext.
72594
72595 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72596
72597         * README: Rework advice for preventing empty .o files.
72598         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72599         not <sys/types.h>.
72600
72601 2003-10-04  Karl Berry  <karl@gnu.org>
72602
72603         * lib/argp*: update from libc.
72604
72605 2003-10-04  Karl Berry  <karl@gnu.org>
72606
72607         * config/config.{guess,sub}: update from config.
72608
72609 2003-10-02  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/lchown (Include): Add lchown.h.
72612         * modules/time_r (Include): Use "..." syntax.
72613         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72614
72615 2003-10-01  Simon Josefsson  <jas@extundo.com>
72616
72617         * MODULES.html.sh (func_all_modules): Move gethostname from section
72618         'based on' to section 'lacking' POSIX:2001.
72619
72620 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72621
72622         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72623         to output mode on the same stream.
72624
72625 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72626
72627         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72628         Fix arg typo in previous patch.
72629
72630 2003-09-28  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/error.c: Correct cpp indentation.
72633
72634 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72635
72636         * modules/free: New file.
72637
72638 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72639
72640         * m4/free.m4: New file.
72641
72642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72643
72644         * lib/minmax.h (MIN, MAX)
72645         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72646         Omit the special code that used __typeof__, since we worry that
72647         it could be more trouble than it's worth.  See:
72648         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72649         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72650
72651         * lib/free.c: New file.
72652
72653 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72654
72655         Trivial fixes to Makefile.am parts of module listings.
72656         * modules/strstr: Append strstr.h to lib_SOURCES.
72657         * modules/strcase: Likewise, for strcase.h.
72658
72659 2003-09-27  Karl Berry  <karl@gnu.org>
72660
72661         * config/mkinstalldirs: update from automake.
72662
72663 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72664
72665         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72666         (error_tail): Do not loop, reallocating temporary buffer, since
72667         the output cannot contain more wide characters than the input
72668         contains bytes, the size must be big enough already.  This avoids
72669         one potential size overflow calculation.  Check for size overflow
72670         when calculating temporary buffer size.  Free temporary buffer
72671         when done, if it was allocated with malloc; this plugs a memory
72672         leak.  Remove casts from void * to pointers, that are no longer
72673         needed now that we're assuming C89 or better.
72674
72675         Merge error changes from glibc.
72676
72677         * lib/error.c, error.h: Update copyright notice header to match glibc.
72678         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72679         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72680         Disable cancellation while printing error.
72681         * lib/error.h: Prepend __ to parameter names.
72682
72683 2003-09-26  Jim Meyering  <jim@meyering.net>
72684
72685         * lib/error.c (error_tail): Move some declarations
72686         into inner scope where the local variables are used.
72687
72688 2003-09-26  Bruno Haible  <bruno@clisp.org>
72689
72690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72691         stpncpy().
72692         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72693
72694 2003-09-26  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72697         (stpncpy): Define as alias for gnu_stpncpy.
72698         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72699
72700 2003-09-25  Simon Josefsson  <jas@extundo.com>
72701
72702         * lib/xgetdomainname.h: New file.
72703         * lib/xgetdomainname.c: New file.
72704
72705 2003-09-25  Simon Josefsson  <jas@extundo.com>
72706             Bruno Haible  <bruno@clisp.org>
72707
72708         * modules/getdomainname: New file.
72709         * modules/xgetdomainname: New file.
72710         * MODULES.html.sh (func_all_modules): Add getdomainname,
72711         xgetdomainname.
72712
72713 2003-09-25  Simon Josefsson  <jas@extundo.com>
72714             Bruno Haible  <bruno@clisp.org>
72715
72716         * m4/getdomainname.m4: New file.
72717
72718 2003-09-25  Simon Josefsson  <jas@extundo.com>
72719             Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/getdomainname.h: New file.
72722         * lib/getdomainname.c: New file.
72723
72724 2003-09-25  Karl Berry  <karl@gnu.org>
72725
72726         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72727
72728 2003-09-25  Karl Berry  <karl@gnu.org>
72729
72730         * config/install-sh: update from automake.
72731
72732 2003-09-25  Bruno Haible  <bruno@clisp.org>
72733
72734         * modules/version-etc-2: New file, from modules/version-etc with
72735         modifications.
72736         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72737
72738 2003-09-25  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72741         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72742
72743 2003-09-24  Simon Josefsson  <jas@extundo.com>
72744
72745         * modules/xgethostname: Add xgethostname.h.
72746
72747 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72748
72749         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72750         the buffer associated with the argument.  Bug reported by
72751         Simon Josefsson.
72752
72753 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72754
72755         * README: Document assumptions that 'int' is at least 32 bits
72756         wide, that integer arithmetic is 2's complement without overflow,
72757         that there are no holes in integer values, that adding sizes of
72758         two nonoverlapping objects can't overflow, and that all-bits-zero
72759         yields scalar zero.  Fix spelling and capitalization typos.
72760
72761 2003-09-19  Karl Berry  <karl@gnu.org>
72762
72763         * lib/argp.h: update from libc.
72764
72765 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72766
72767         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72768         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72769         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72770
72771 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72772
72773         * gnulib-tool: Use "test -h", not "test -L", for portability
72774         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72775         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72776         (sed_extract_prog): Issue s commands one-by-one, rather than
72777         using \| in one s command.
72778
72779 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72780
72781         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72782         input error, instead of returning NULL the next time we are called
72783         (and therefore losing track of errno).
72784
72785 2003-09-16  Bruno Haible  <bruno@clisp.org>
72786
72787         * gnulib-tool (func_create_testdir): Warn about duplicated
72788         dependencies.
72789
72790 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72791
72792         * modules/argmatch, modules/fatal, modules/obstack,
72793         modules/xalloc, modules/xgethostname: Sort dependencies by
72794         importance, not alphabetically.
72795
72796 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72797
72798         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72799         fails, so that the caller gets the proper errno.
72800
72801         * lib/readutmp.c (read_utmp): Likewise.
72802         Check for fstat error.  Close stream and free storage
72803         when failing.
72804
72805 2003-09-14  Karl Berry  <karl@gnu.org>
72806
72807         * config/srclist.txt (strdup.c): disable for c89 changes.
72808
72809 2003-09-14  Jim Meyering  <jim@meyering.net>
72810
72811         * lib/getloadavg.c: Correct cpp indentation.
72812         * lib/strdup.c: Likewise.
72813         * lib/vasnprintf.c: Likewise.
72814
72815 2003-09-14  Bruno Haible  <bruno@clisp.org>
72816
72817         * modules/fwriteerror: New file.
72818         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72819
72820 2003-09-14  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/fwriteerror.h: New file.
72823         * lib/fwriteerror.c: New file.
72824
72825 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72826
72827         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72828         modules/xgethostname, modules/xalloc: Depend on exit.
72829
72830 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72831
72832         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72833
72834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72835         and AC_MINIX, too, so that their extensions are available.
72836
72837         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72838         This macro has been superseded by gl_BACKUPFILE.
72839
72840         More patches to assume C89 or better.
72841
72842         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72843
72844         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72845         unconditionally.
72846         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72847         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72848         Include <string.h>, <stdlib.h> unconditionally.
72849         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72850         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72851         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72852         headers or for string.h.
72853         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72854         or strtoul.
72855
72856         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72857         headers.
72858         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72859         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72860         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72861         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72863         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72864         memcpy, memset.
72865         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72866         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72867         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72868         strtol.
72869         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72870         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72871         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72872         strtoul.
72873
72874 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72875
72876         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72877         * lib/obstack.c [!defined _LIBC]: Likewise.
72878         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72879         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72880         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72881
72882         More changes to assume C89 or better.
72883
72884         * lib/error.c (error_tail): Assume vprintf.
72885
72886         * lib/argmatch.c (getenv): Remove decl.
72887         * lib/progreloc.c (get_full_program_name): Define via prototype.
72888         * lib/setenv.c (clearenv): Likewise.
72889         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72890         needed.
72891         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72892         (malloc, memcpy): Remove decls.
72893         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72894         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72895         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72896         (memcpy): Remove macro.
72897         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72898         (__P): Remove.  All uses removed.
72899         (PTR): Remove.  All uses changed to void *.
72900         (CHAR_BIT, NULL): Remove.
72901         (spaces, zeros, memset_space, memset_zero)
72902         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72903         Remove.
72904         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72905         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72906         Define with prototype.
72907         Remove now-unnecessary prototype decl.
72908         (extra_args_spec): Assume ANSI C.  All uses changed.
72909         (extra_args_spec_iso): Remove.
72910         (my_strftime, emacs_strftimeu): Define via prototype.
72911         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72912         unconditionally.
72913         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72914         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72915         (strtoul, strtol): Remove decls.
72916         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72917         LONG_MAX): Remove.
72918         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72919         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72920         (LOCALE_PARAM_PROTO): New macro.
72921         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72922         (INTERNAL (strtol), strtol): Define with a prototype.
72923         (PARAMS): Remove.  All uses removed.
72924         * lib/tempname.c: Include <string.h> unconditionally.
72925         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72926         * lib/xgethostname.c (main): Define with a prototype.
72927         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72928         Include <stdlib.h> unconditionally.
72929         (calloc, malloc, realloc, free): Remove decls.
72930         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72931         Include <stdlib.h> unconditionally.  Sort include file names.
72932         (strtod): Remove.
72933         (xstrtod): Define with a prototype.
72934         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72935         (strtol, strtoul): Remove decls.
72936
72937 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72938
72939         More patches to assume C89 or better.
72940         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72941         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72942         string.h, memchr, STDC_HEADERS.
72943
72944 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72945
72946         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72947         Include <stdlib.h>, <string.h> unconditionally.
72948         Remove now-unnecessary cast to char *.
72949         * lib/strnlen.c: Include <string.h> unconditionally.
72950         * lib/yesno.c (yesno): Define with a prototype.
72951
72952 2003-09-11  Bruno Haible  <bruno@clisp.org>
72953
72954         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72955
72956 2003-09-10  Jim Meyering  <jim@meyering.net>
72957
72958         * lib/error.c: Correct indentation of cpp directives.
72959
72960 2003-09-10  Bruno Haible  <bruno@clisp.org>
72961
72962         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72963         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72964         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72965         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72966         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72967         <stdlib.h> and <string.h> checks.
72968         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72969         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72970
72971 2003-09-10  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/strcspn.c: Include <string.h> unconditionally.
72974         * lib/strpbrk.c: Include <string.h> unconditionally.
72975         * lib/strstr.c: Include <string.h> unconditionally.
72976         * lib/unicodeio.c: Include <string.h> unconditionally.
72977         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72978         * lib/unsetenv.c: Likewise.
72979         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72980         * lib/yesno.c: Include <stdlib.h> unconditionally.
72981         (rpmatch): Add prototype.
72982
72983 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72984
72985         More patches to assume C89 or better.
72986         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72987         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72988         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72989         or for string.h.
72990         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72991         stdlib.h.
72992         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72993         C headers.
72994         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72995         string.h.
72996         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72997         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72998         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72999         or for string.h.
73000         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73001         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73002         C headers.
73003         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73004         memcpy.
73005         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73006         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73007         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73008         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73009         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73010         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73011         string.h, free.
73012         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73013         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73014         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73015         C headers, or for string.h.
73016         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73017         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73018         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73019         headers, memory.h, stdlib.h, string.h, strings.h.
73020         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73021         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73022         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73023         strchr.
73024         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73025         headers, memory.h, string.h.
73026         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73027         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73028         free.
73029         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73030         headers.
73031         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73032         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73033         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73034         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73035         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73036
73037 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73038
73039         More K&R removal.
73040
73041         * lib/acosl.c (main): Use a prototype.
73042         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73043         tanl.c: Likewise.
73044
73045         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73046
73047         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73048         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73049         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73050         with a prototype.
73051         * lib/getopt.c (const): Remove macro.
73052         Include <string.h> unconditionally.
73053         (my_index): Remove; all uses changed to strchr.
73054         (strlen): Remove decl.
73055         (exchange): Remove forward decl; no longer needed.
73056         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73057         Define with prototype.
73058         * lib/getopt1.c (const): Remove macro.
73059         (getopt_long, getopt_long_only, main): Define with prototype.
73060
73061         * lib/getugroups.c: Include <string.h> unconditionally.
73062
73063         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73064         (getusershell, setusershell, endusershell, readname, main):
73065         Define with prototypes.
73066
73067         * lib/group-member.c: Include group-member.h first.
73068         Include <stdlib.h> unconditionally.
73069
73070         * lib/hard-locale.c: Include hard-locale.h first.
73071         Include <stdlib.h>, <string.h> unconditionally.
73072
73073         * lib/hash.c (free, malloc): Remove decls.
73074         Include <stdlib.h> unconditionally.
73075
73076         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73077         (getenv): Do not declare.
73078
73079         * lib/idcache.c: Include <string.h> unconditionally.
73080
73081         * lib/long-options.c: Include long-options.h first, to test interface.
73082         Include <stdlib.h> unconditionally.
73083
73084         * lib/makepath.c: Include makepath.h first, to test interface.
73085         Include <stdlib.h> and <string.h> unconditionally.
73086
73087         * lib/linebuffer.c: Include <stdlib.h>.
73088         (free): Remove decl.
73089
73090         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73091         stddef.h. rpl_malloc returns void *, not char *.
73092         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73093         prototype.
73094
73095         * lib/md5.h: Include <limits.h> unconditionally.
73096         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73097         (__P): Remove; all uses removed.
73098         * lib/md5.c: Include "md5.h" first.
73099         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73100         md5_buffer, md5_process_bytes, md5_process_block):
73101         Define with prototypes.
73102         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73103         * lib/sha.c: Include "sha.h" first.
73104         Include <stdlib.h>, <string.h> unconditionally.
73105
73106         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73107         * lib/memcmp.c (__ptr_t): Likewise.
73108         * lib/memrchr.c (__ptr_t): Likewise.
73109         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73110         Include <string.h> unconditionally.
73111         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73112         * lib/memchr.c: Include <stdlib.h> unconditionally.
73113         * lib/memchr.c (LONG_MAX): Remove.
73114         * lib/memrchr.c (LONG_MAX): Likewise.
73115         * lib/memchr.c (__memchr): Define via a prototype.
73116         * lib/memrchr.c (__memrchr): Likewise.
73117         * lib/memcmp.c (__P): Remove, and remove all uses.
73118         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73119         Remove forward decls; no longer needed.
73120         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73121         Use types required by C89 in prototype.
73122
73123         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73124         * lib/savedir.c: Likewise.
73125         * lib/mkdir.c (free): Remove decl.
73126         * lib/rmdir.c (rmdir): Define with a prototype.
73127         * lib/savedir.c: Include savedir.h first, to test interface.
73128
73129         * lib/mktime.c (STDC_HEADERS): Remove.
73130         Include <stdlib.h>, <string.h> unconditionally.
73131
73132         * lib/modechange.c: Include <stdlib.h> unconditionally.
73133         (malloc): Remove decl.
73134
73135         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73136         (free): Remove decl.
73137
73138         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73139         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73140         (This type really should be intptr_t, but that's a C99ism.)
73141         (_obstack_memcpy): Remove: all uses changed to memcpy.
73142         Include <string.h> unconditionally.
73143         (struct obstack): Assume __STDC__ for types of members
73144         chunkfun, freefun, extra_arg.
73145         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73146         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73147         obstack_begin, obstack_specify_allocation,
73148         obstack_specify_allocation_with_arg, obstack_chunkfun,
73149         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73150         Remove unprototyped decls and the macros that use them.
73151         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73152         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73153         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73154         (defined __STDC__ && __STDC__)]:
73155         Remove nonprototyped code.
73156         Include <stdlib.h> unconditionally.
73157         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73158         _obstack_allocated_p, _obstack_free, obstack_free,
73159         _obstack_memory_used, print_and_abort):
73160         Define using prototypes.
73161         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73162         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73163         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73164         obstack_next_free, obstack_object_size, obstack_room) [0]:
73165         Remove unused, unprototyped code.
73166
73167         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73168
73169         * lib/physmem.c (physmem_total, physmem_available, main): Define
73170         with prototypes.
73171
73172         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73173         (main): Define with a prototype.
73174
73175         * lib/posixver.c (getenv): Remove decl.
73176
73177         * lib/putenv.c (malloc): Returns void *, not char *.
73178         Include <string.h> unconditionally.
73179         (strchr, memcpy, NULL): Do not define.
73180
73181         * lib/readtokens.c: Include readtokens.h first, to test interface.
73182         Include <stdlib.h>, <string.h> unconditionally.
73183         (init_tokenbuffer): Define with a prototype.
73184
73185         * lib/regex.c (PARAMS): Remove.  All uses removed.
73186         All uses of _RE_ARGS removed, too.
73187         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73188         unconditionally.
73189         (bzero): Assume memset exists.
73190         (memcmp, memcpy, NULL): Remove.
73191         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73192         char, or assignments to local vars of type signed char.
73193         (init_syntax_once, PREFIX(extract_number_and_incr),
73194         PREFIX(print_partial_compiled_pattern),
73195         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73196         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73197         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73198         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73199         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73200         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73201         wcs_compile_range, byte_compile_range, truncate_wchar,
73202         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73203         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73204         count_mbs_length, wcs_re_match_2_internal,
73205         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73206         PREFIX(alt_match_null_string_p),
73207         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73208         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73209         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73210         now-unnecessary declaration, if any.
73211         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73212         regcomp, regexec):
73213         Remove now-unnecessary casts among pointer types.
73214         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73215
73216         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73217         (free): Remove decl.
73218
73219         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73220
73221         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73222         (free): Remove decl.
73223
73224         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73225         * lib/xgetcwd.c: Likewise.
73226
73227         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73228         (free): Remove decl.
73229
73230         * lib/strchrnul.c (strchrnul): Define with a prototype.
73231         Fix bug: c_in was not converted to char before searching.
73232
73233         The following changes are not K&R related:
73234
73235         * lib/group-member.h: Include <sys/types.h>, so that this file is
73236         self-contained.
73237         * lib/makepath.h: Likewise.
73238
73239         * lib/getusershell.c (readname, default_index, line_size, readname):
73240         Use size_t, not int, for sizes.
73241         (readname): If the size overflows, report an error instead of
73242         looping forever.
73243
73244 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73245
73246         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73247         libc.
73248
73249 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73250
73251         * README: New section: portability guidelines.
73252
73253 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73254
73255         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73256         C89 spec.
73257
73258 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73259
73260         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73261
73262 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73263
73264         Assume C89 or better; remove K&R cruft.
73265         A few of these changes were first proposed by Derek Robert Price
73266         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73267
73268         * lib/addext.c: Include <string.h> unconditionally.
73269         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73270         Don't declare getenv or malloc.
73271
73272         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73273         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73274         (NULL): Remove.
73275         (find_stack_direction, alloca): Use prototypes.
73276
73277         * lib/atexit.c (atexit): Define using a prototype.
73278
73279         * lib/basename.c, dirname.c, stripslash.c:
73280         Include <string.h> unconditionally.
73281
73282         * lib/bcopy.c: Include <stddef.h>.
73283         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73284
73285         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73286
73287         * lib/error.h (error, error_at_line, error_print_progname)
73288         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73289         * lib/error.c: Include error.h first, to check interface.
73290         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73291         (VA_START): Remove; all uses changeed to va_start.
73292         (exit, strerror): Remove decls.
73293         (error_print_progname): Prototype uncondionally.
73294         Don't include <errno.h>; no longer needed.
73295         (private_strerror): Remove.
73296         (error_tail): Always define.
73297         (error, error_at_line): Assume C89 or better; always use prototypes.
73298         * lib/fatal.c: Include "fatal.h" first, to test interface.
73299         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73300         (VA_START): Remove; all uses changed to va_start.
73301         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73302         this case.
73303         (exit): Remove decl.
73304         (fatal): Prototype unconditionally.  Assume va_start works.
73305         Abort at end, to pacify gcc.
73306
73307         * lib/euidaccess.c (main): Define with a prototype.
73308
73309         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73310
73311         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73312
73313         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73314         prototypes.
73315         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73316         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73317         (getenv): Remove decl.
73318         (fnmatch): Define using a prototype.
73319         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73320         (FCT): Define using a prototype.
73321
73322         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73323
73324         * lib/gethostname.c: Include <stddef.h>.
73325         (gethostname): Define with prototype.  Length is size_t, not int.
73326
73327 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73328
73329         Assume C89 or better; remove K&R cruft.
73330         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73331         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73332         string.h, getenv, malloc.
73333         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73334         headers.
73335         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73336         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73337         do not check for strerror.
73338         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73339         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73340         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73341         do not check for doprnt or vprintf.
73342         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73343         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73344
73345 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73346
73347         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73348         getversion.c should have been removed then, but was accidentally
73349         preserved.
73350
73351         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73352         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73353
73354 2003-09-08  Karl Berry  <karl@gnu.org>
73355
73356         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73357                 config, forget about prep.
73358
73359         * config/depcomp, missing: update from automake.
73360
73361 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73362
73363         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73365
73366 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73367
73368         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73369         copy_tm_result.  Bug reported by Simon Josefsson in
73370         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73371
73372 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73373
73374         * m4/time_r.m4: New file.
73375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73376         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73377         is. Check for timegm declaration.
73378         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73379         Do not check for gmtime_r.
73380         Replace mktime if __mktime_internal does not exist and if mktime
73381         hasn't been replaced already.
73382
73383 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73384
73385         * lib/time_r.c, lib/time_r.h: New files.
73386
73387         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73388         __localtime_r.
73389         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73390         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73391
73392         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73393         __gmtime_r.
73394         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73395         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73396         Include <time_r.h>.
73397
73398         * lib/timegm.c: Switch to glibc implementation, with the following
73399         changes:
73400         [defined HAVE_CONFIG_H]: Include <config.h>.
73401         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73402         (__mktime_internal) [!defined _LIBC]: New decl.
73403         (__gmtime_r) [!defined _LIBC]: New macro and function.
73404         (timegm): Use a prototype, since gnulib assumes C89.
73405         Do not bother declaring tmp to be const, as it's not really usefu.
73406         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73407         (timegm): Declare only if HAVE_DECL_TIMEGM.
73408
73409 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73410
73411         * MODULES.html.sh (func_all_modules): Add time_r.
73412         * modules/time_r: New file.
73413         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73414         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73415
73416 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73417
73418         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73419         Bug reported by Lute Kamstra in
73420         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73421
73422         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73423         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73424         course with correspondingly smaller numbers for tomorrow and
73425         yesterday.  From Tadayoshi Funaba.  Originally installed into
73426         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73427         coreutils merge?).
73428
73429 2003-08-31  Simon Josefsson  <jas@extundo.com>
73430
73431         * modules/timegm: New file.
73432         * MODULES.html.sh (func_all_modules): Add timegm.
73433
73434 2003-08-31  Simon Josefsson  <jas@extundo.com>
73435
73436         * m4/timegm.m4: New file.
73437
73438 2003-08-31  Simon Josefsson  <jas@extundo.com>
73439
73440         * lib/timegm.h: New file.
73441         * lib/timegm.c: New file.  Based on
73442         wget-1.8.2/src/http.c:mktime_from_utc.
73443
73444 2003-08-31  Karl Berry  <karl@gnu.org>
73445
73446         * lib/argp.h: update from libc.
73447
73448 2003-08-28  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73451         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73452         followed by '#define fnmatch fnmatch_posix' gives an error.
73453
73454 2003-08-28  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73457         warning on QNX, which defines O_BINARY to 000000.
73458
73459 2003-08-27  Jim Meyering  <jim@meyering.net>
73460
73461         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73462         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73463         would fail after 32.  Reported by Danny Levinson.  Details here:
73464         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73465
73466 2003-08-24  Bruno Haible  <bruno@clisp.org>
73467
73468         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73469         MSVC7 <stdio.h> is included later.
73470
73471 2003-08-22  Simon Josefsson  <jas@extundo.com>
73472
73473         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73474
73475 2003-08-20  Karl Berry  <karl@gnu.org>
73476
73477         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73478
73479 2003-08-20  Bruno Haible  <bruno@clisp.org>
73480
73481         * modules/progname: New file.
73482         * MODULES.html.sh (func_all_modules): Add progname.
73483
73484 2003-08-20  Bruno Haible  <bruno@clisp.org>
73485
73486         * lib/progname.h: New file, from GNU gettext.
73487         * lib/progname.c: New file, from GNU gettext.
73488         * lib/progreloc.c: New file, from GNU gettext.
73489
73490 2003-08-19  Jim Meyering  <jim@meyering.net>
73491
73492         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73493         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73494
73495 2003-08-19  Bruno Haible  <bruno@clisp.org>
73496
73497         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73498         more.
73499
73500 2003-08-19  Bruno Haible  <bruno@clisp.org>
73501
73502         * lib/xstrdup.c: Assume <string.h> exists.
73503
73504 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73505
73506         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73507         in makefile rules.
73508
73509 2003-08-18  Jim Meyering  <jim@meyering.net>
73510
73511         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73512         * m4/lib-ld.m4: Likewise.
73513
73514 2003-08-18  Jim Meyering  <jim@meyering.net>
73515
73516         * lib/setenv.h: Indent nested cpp directive.
73517         * lib/vasnprintf.c: Remove trailing blanks.
73518
73519 2003-08-17  Simon Josefsson  <jas@extundo.com>
73520
73521         * modules/xstrndup: New file.
73522         * MODULES.html.sh (func_all_modules): Add xstrndup.
73523
73524 2003-08-17  Simon Josefsson  <jas@extundo.com>
73525
73526         * modules/argp: Fix autoconf macro name. Add more dependencies.
73527
73528 2003-08-17  Simon Josefsson  <jas@extundo.com>
73529
73530         * m4/xstrndup.m4: New file.
73531
73532 2003-08-17  Simon Josefsson  <jas@extundo.com>
73533
73534         * m4/argp.m4: New file.
73535
73536 2003-08-17  Simon Josefsson  <jas@extundo.com>
73537             Bruno Haible  <bruno@clisp.org>
73538
73539         * lib/xstrndup.h: New file.
73540         * lib/xstrndup.c: New file.
73541
73542 2003-08-17  Bruno Haible  <bruno@clisp.org>
73543
73544         * modules/strndup (Files, Include): Add lib/strndup.h.
73545
73546 2003-08-17  Bruno Haible  <bruno@clisp.org>
73547
73548         * modules/euidaccess (Files): Add lib/euidaccess.h.
73549
73550 2003-08-17  Bruno Haible  <bruno@clisp.org>
73551
73552         * lib/strndup.h: New file.
73553
73554 2003-08-17  Bruno Haible  <bruno@clisp.org>
73555
73556         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73557         like AC_GNU_SOURCE.
73558         * modules/extensions (configure.ac): Comment out the invocation of
73559         gl_USE_SYSTEM_EXTENSIONS.
73560
73561 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73562
73563         Merges from coreutils, etc.
73564         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73565         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73566         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73567         fixing a typo.
73568         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73569         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73570
73571 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73572
73573         Document merge from coreutils.
73574         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73575         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73576         * modules/utime: Add m4/utimes-null.m4.
73577
73578 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73579
73580         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73581         space, undoing this 2003-08-12 change:
73582         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73583
73584 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73585
73586         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73587         strtoul.c from libc, undoing this 2003-08-12 change:
73588         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73589
73590 2003-08-16  Jim Meyering  <jim@meyering.net>
73591
73592         Merges from coreutils.
73593         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73594         prefix.  Adjust cache variables similarly.  Create 500 rather than
73595         just 300 files, to exercise bug on Darwin6.5, too.
73596         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73597         $missing_dir.
73598         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73599         AM_SYS_POSIX_TERMIOS.
73600         Reported by mkc@mathdogs.com.
73601         Also change use of $am_cv_sys_posix_termios
73602         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73603         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73604         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73605         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73606         in /proc/mounts until it finds one with matching device number.  This
73607         is unnecessary when the FILE argument *is* a mount point.  No stat call
73608         is necessary in that case.  So, disable the statvfs-testing code on
73609         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73610         as RedHat bug# 84846.
73611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73612         to 1MB, so as not to render systems with no stack size limit (e.g.,
73613         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73614         Include <unistd.h>.  On some systems,
73615         it is required for the definition of _SC_PAGESIZE.
73616
73617 2003-08-16  Jim Meyering  <jim@meyering.net>
73618
73619         Merge from coreutils.
73620         * lib/xstrtoimax.c: #else #if -> #elif.
73621         * lib/xstrtoumax.c: Likewise.
73622
73623 2003-08-16  Jim Meyering  <jim@meyering.net>
73624
73625         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73626         * m4/utimes.m4: Removed.
73627         * m4/utimes-null.m4: Renamed from utimes.m4.
73628
73629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73630         to 1MB, so as not to render systems with no stack size limit (e.g.,
73631         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73632         Include <unistd.h>.  On some systems,
73633         it is required for the definition of _SC_PAGESIZE.
73634
73635 2003-08-16  Jim Meyering  <jim@meyering.net>
73636         and Paul Eggert  <eggert@cs.ucla.edu>
73637
73638         Merges from coreutils, etc.
73639
73640         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73641         using the latest version from cvs.  This avoids problems with #line
73642         directives using a vendor (Sun) compiler.
73643         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73644         Don't set GETGROUPS_LIB here; now it's
73645         done via getgroups.m4's wrapper function.
73646         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73647         rather than just in sh-util/configure.in, so that the
73648         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73649         same.
73650         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73651         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73652         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73653         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73654         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73655         Remove code that is now done by the newly-required macros.
73656         Append $(EXEEXT) to DF_PROG.
73657         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73658         Do not invoke or require the following here,
73659         since prereq.m4 or some gnulib .m4 now does this for us:
73660         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73661         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73662         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73663         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73664         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73665         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73666         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73667         AC_FUNC_OBSTACK.
73668         Do not replace the following functions, as this is now the job
73669         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73670         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73671         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73672         atexit getpass, strdup, getpagesize.
73673         Replace 'raise'.
73674         Do not check for the following functions, as this is now the job
73675         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73676         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73677         setregid.
73678         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73679         Check for sys/sysctl.h.
73680         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73681         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73682         of checking for ssize_t ourselves.
73683
73684         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73685         Require every macro that gnulib/modules/* suggests for us.
73686         (jm_PREREQ_ADDEXT): New macro.
73687         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73688         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73689
73690         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73691         (gl_PHYSMEM): Use it.
73692         Also check for `table' function.
73693         Check for new headers and functions.
73694         Add check for sys/sysmp.h.
73695         With suggestions from Kaveh Ghazi.
73696         Ignore headers that are present but cannot be compiled.  This
73697         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73698         C 5.4.
73699
73700 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73701
73702         Document merge from coreutils.
73703         * modules/userspec: Depend on posixver.
73704         * modules/strftime: Depend on tzset.
73705
73706 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73707
73708         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73709         rather than tab, after '#' in shell-script copyright notices.
73710         Suggested by Bruno Haible.
73711
73712 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73713
73714         * config/srclist-update: Use three spaces, rather than tab, after '#'
73715         in shell-script copyright notices.  Suggested by Bruno Haible.
73716         Remove unnecessary parenthesization in regular expression.
73717
73718 2003-08-15  Jim Meyering  <jim@meyering.net>
73719
73720         Merge from coreutils.
73721         * lib/xgethostname.c: Include <stdlib.h>.
73722         (xghostname): Don't exit for anything other than memory-related
73723         failure; just return NULL.
73724         * lib/userspec.c: Include "posixver.h".
73725         (parse_user_spec): Accept `.' as a separator only
73726         in pre-POSIX-200112 mode.
73727         * lib/strtoimax.c: Use #elif rather than #else #if.
73728         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73729         Remove function, now that we can rely on a working tzset function.
73730         [!_LIBC]: Ensure that the required autoconf test has been run.
73731         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73732         Use underlying_strftime for %r.
73733         * lib/sha.c: Merge in some clean-up and optimization changes from
73734         glibc.
73735         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73736         Ensure that it is a multiple of 64.
73737         Rearrange loop exit tests so as to avoid performing an
73738         additional fread after encountering an error or EOF.
73739         * lib/realloc.c: Update copyright date.
73740
73741 2003-08-15  Jim Meyering  <jim@meyering.net>
73742         and Paul Eggert  <eggert@twinsun.com>
73743
73744         Merge from coreutils.
73745         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73746         member but strut utmpx does not.  Needed for AIX 4.3.3.
73747         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73748
73749 2003-08-15  Jim Meyering  <jim@meyering.net>
73750         and Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         Merges from coreutils, etc.
73753         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73754         Require gl_FUNC_TZSET_CLOBBER.
73755         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73756         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73757         members.
73758
73759 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73760
73761         Help the merge from coreutils.
73762         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73763         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73764         * m4/tzset.m4: Use it too.
73765
73766 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73767
73768         * modules/tzset: New file.
73769
73770 2003-08-14  Jim Meyering  <jim@meyering.net>
73771
73772         Merges from coreutils.
73773         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73774         variable names, rather than @FNMATCH_H@.
73775         * modules/alloca: Likewise for $(ALLOCA_H).
73776
73777         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73778         the three copies of the literal target, `fnmatch.h'.
73779         * modules/alloca (alloca.h): Likewise.
73780
73781 2003-08-14  Jim Meyering  <jim@meyering.net>
73782
73783         Merge from coreutils.
73784         * m4/tzset.m4: New file.
73785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73786         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73787         otherwise, AIX 5.1 systems would end up using the latter.
73788         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73789         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73790         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73791         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73792
73793 2003-08-14  Jim Meyering  <jim@meyering.net>
73794
73795         Merge from coreutils.
73796         * lib/obstack.h: Whitespace changes.
73797         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73798         and xcalloc return values.
73799         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73800         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73801         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73802         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73803         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73804         error from mntctl.
73805         Use mntctl's return value to drive the entry-processing loop, since
73806         we can't rely on the value of the vmt_length member in the last
73807         entry.  On some systems doing so could result in exhausting
73808         virtual memory.  Based in part on a patch from Mike Jetzer.
73809
73810 2003-08-14  Jim Meyering  <jim@meyering.net>
73811         and Paul Eggert  <eggert@twinsun.com>
73812
73813         Merges from coreutils, plus other fixes.
73814         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73815         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73816         for credits and details.  Thanks to Kaveh Ghazi for helping
73817         to keep these files in sync.
73818         (ARRAY_SIZE): Define it.
73819         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73820         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73821         (memcasecmp): Don't assume size_t fits in unsigned int.
73822         Remove casts and duplicate code.
73823         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73824         (memcpy): Remove definition.
73825         Merge in some clean-up and optimization changes from glibc.
73826         [BLOCKSIZE]: Move definition to top of file.
73827         Ensure that it is a multiple of 64.
73828         Rearrange loop exit tests so as to avoid performing an
73829         additional fread after encountering an error or EOF.
73830         * lib/md5.h (md5_uintptr): Define.
73831         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73832         return to the initial working directory.  Preserve errno
73833         for caller.
73834         * lib/idcache.c: Include "xalloc.h".
73835         (xmalloc, xrealloc): Remove decls.
73836         (getuser): Remove casts no longer required in C89.
73837         * lib/human.c: Include stdio.h, for sprintf.
73838         * lib/group-member.c: Include "xalloc.h".
73839         (xmalloc, xrealloc): Remove decls.
73840         (get_group_info): Remove casts no longer required in C89.
73841         * lib/getusershell.c (readname): Remove casts no longer required in
73842         C89.
73843         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73844         * lib/getline.c: Whitespace fix, from coreutils.
73845
73846 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73847
73848         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73849         Check for isascii.
73850
73851         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73852         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73853         Undo previous (whitespace-only) change.
73854
73855 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73856
73857         * lib/exclude.c: Include <ctype.h>
73858         (IN_CTYPE_DOMAIN): New macro.
73859         (is_space): New fn.
73860         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73861         and empty lines.
73862
73863         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73864         Undo previous (whitespace-only) change.
73865
73866 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73867
73868         * config/srclist-update: Change update back to the old behavior,
73869         leaving whitespace alone.  Use one 'sed' command rather than a
73870         pipeline.
73871         (fixlicense): Now a variable, not a function.
73872         (remove_trailing_blanks): Remove.
73873         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73874         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73875         Undo previous (whitespace-only) change.
73876
73877 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73878
73879         Merge from coreutils.
73880         * modules/euidaccess: Add lib_SOURCES, include for new
73881         file euidaccess.h
73882
73883 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73884
73885         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73886         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73887         Normalize leading white space and remove trailing white space.
73888
73889         Merge from coreutils
73890         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73891
73892         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73893         0.12.1.  These files are now being upgraded automatically by
73894         ../config/srclist-update.
73895
73896 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73897
73898         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73899         Normalize leading white space and remove trailing white space.
73900         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73901         notice, as per ../config/srclist-update.
73902
73903         Merge from coreutils.
73904         * lib/euidaccess.h: New file.
73905         * lib/euidaccess.c: Include it.
73906         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73907         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73908         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73909
73910 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73911
73912         * config/srclist-update: Add copyright notice.
73913         (remove_id_lines, remove_trailing_blanks): New constants.
73914         (fixfile): Use them to normalize spacing a bit in copied files.
73915         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73916         Normalize leading white space and remove trailing white space.
73917
73918         * config/texinfo.tex: Sync with texinfo.
73919
73920         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73921         strtoul.c from libc, to merge coreutils whitespace changes.
73922
73923         * config/srclist.txt: Get the following m4 files from gettext:
73924         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73925         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73926         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73927         wint_t.m4.
73928
73929 2003-08-12  Karl Berry  <karl@gnu.org>
73930
73931         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73932         been made.
73933
73934 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73935
73936         * modules/gnu-source, m4/gnu-source.m4:
73937         Remove; we're assuming Autoconf 2.54 or later now.
73938         Suggested by Bruno Haible.
73939         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73940
73941 2003-08-11  Bruno Haible  <bruno@clisp.org>
73942
73943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73944
73945 2003-08-11  Bruno Haible  <bruno@clisp.org>
73946
73947         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73948         (vasnprintf): Use it instead of wcslen.
73949
73950 2003-08-11  Bruno Haible  <bruno@clisp.org>
73951
73952         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73953         value to ensure that _Bool promotes to int. Use #define for _Bool when
73954         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73955
73956 2003-08-10  Karl Berry  <karl@gnu.org>
73957
73958         * lib/regex.h: update from libc (whitespace fix).
73959
73960 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73961
73962         Merge some files from coreutils.  These changes were
73963         originally made by Jim Meyering.
73964         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73965         many older Unixes require this.
73966         * lib/alloca.c (alloca): Remove cast to argument of free;
73967         no longer needed in C89.
73968         * lib/alloca_.h, regex.h: Fix white space to match
73969         what GNU indent does.
73970
73971 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73972
73973         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73974         apparently Emacs's Unicode mode got confused before my 2003-08-05
73975         checkin.
73976
73977 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73978
73979         * m4/extensions.m4: New file.
73980         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73981         Require gl_USE_SYSTEM_EXTENSIONS.
73982         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73983         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73984
73985 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73986
73987         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73988         * modules/extensions, modules/gnu-source: New files.
73989         * modules/timespec, modules/unlocked-io: Depend on extensions.
73990
73991 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73992
73993         * modules/restrict: New file.
73994         * MODULES.html.sh (func_all_modules): Add restrict.
73995         * modules/regex: Depend on restrict.
73996
73997 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73998
73999         * m4/restrict.m4: New file.
74000         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74001
74002 2003-08-07  Bruno Haible  <bruno@clisp.org>
74003
74004         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74005         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74006
74007 2003-08-07  Bruno Haible  <bruno@clisp.org>
74008
74009         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74010         makes the module 'getndelim2' compatible with the module 'getline'.
74011
74012 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74013
74014         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74015         byte with "\201" to avoid glitches when editing that source file
74016         with multi-gnome-terminal.
74017
74018 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74019
74020         * lib/bumpalloc.h: Remove.
74021
74022 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74023
74024         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74025         * modules/bumpalloc: Remove.
74026
74027 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74028
74029         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74030         GNU coding style.
74031
74032         Merge from coreutils.
74033         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74034         1. From glibc.
74035         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74036         from Karl Berry, implemented by Jim Meyering.
74037         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74038         from Dmitry V. Levin.
74039         Remove anachronistic cast of xrealloc.
74040         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74041         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74042         type. Otherwise, it wouldn't compile with at least /bin/cc on
74043         ymp-cray-unicos9.0.2.X.
74044         Combine two mostly-identical uses of alloca into one.
74045         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74046
74047 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74048
74049         [From Emacs.]
74050
74051         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74052         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74053         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74054         obsolete NLIST_NAME_UNION.
74055         [__GNU__]: Undef BSD and FSCALE.
74056         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74057
74058 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74059
74060         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74061         an enum type, so that it's guaranteed to promote to int.  See:
74062         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74063
74064 2003-08-03  Karl Berry  <karl@gnu.org>
74065
74066         * config/depcomp: update from automake.
74067
74068 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74071         (strerror): Don't assume that a printable int fits in 14 bytes.
74072
74073 2003-07-31  Bruno Haible  <bruno@clisp.org>
74074
74075         * modules/getpass-gnu: New file.
74076         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74077
74078 2003-07-31  Bruno Haible  <bruno@clisp.org>
74079
74080         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74081
74082 2003-07-24  Karl Berry  <karl@gnu.org>
74083
74084         * config/missing: update from automake.
74085
74086 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74087             Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74090         * lib/getline.c (getline, getdelim): Likewise.
74091         Remove _GNU_SOURCE define; now it's defined in config.h through
74092         m4/getline.m4.
74093
74094 2003-07-23  Karl Berry  <karl@gnu.org>
74095
74096         * config/config.sub: update from prep.
74097
74098 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74099
74100         * modules/xalloc (Depends-on): Add exitfail.
74101         * modules/xmemcoll: Likewise.
74102
74103 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74104
74105         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74106         over-parenthesization in macros.
74107
74108         Sync with coreutils.
74109
74110         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74111         required by C99.
74112
74113         Use `exit_failure' for xalloc and xmemcoll instead of their own
74114         private exit-failure variables.
74115         * lib/xalloc.h (xalloc_exit_failure): Remove.
74116         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74117         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74118         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74119         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74120         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74121
74122 2003-07-20  Jim Meyering  <jim@meyering.net>
74123
74124         * modules/closeout (Depends-on): Add exitfail.
74125         Suggestion from Bruno Haible.
74126
74127 2003-07-19  Karl Berry  <karl@gnu.org>
74128
74129         * config/config.sub: update from prep.
74130
74131 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74132
74133         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74134         Remove.
74135         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74136         to test that it can stand by itself.  Include "exitfail.h".
74137         Clients should set exit_failure instead.
74138         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74139
74140 2003-07-18  Bruno Haible  <bruno@clisp.org>
74141
74142         * modules/getndelim2: New file.
74143         * modules/getline: Share files with module getndelim2.
74144         * modules/getnline: Depend on getndelim2 instead of sharing files with
74145         it. Add getnline.c to lib_SOURCES.
74146         * MODULES.html.sh (func_all_modules): Add getndelim2.
74147
74148 2003-07-18  Bruno Haible  <bruno@clisp.org>
74149
74150         * m4/getndelim2.m4: New file.
74151         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74152         invoke gl_PREREQ_GETNDELIM2.
74153         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74154         gl_PREREQ_GETNDELIM2.
74155         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74156         gl_GETNDELIM2.
74157
74158 2003-07-18  Bruno Haible  <bruno@clisp.org>
74159
74160         * lib/getndelim2.h: New file.
74161         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74162         getndelim2.h.
74163         (getndelim2): Make non-static. Change return type to ssize_t.
74164         * lib/getline.h: Change argument names.
74165         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74166         * lib/getnline.c: Include getndelim2.h.
74167
74168 2003-07-18  Andreas Schwab  <schwab@suse.de>
74169
74170         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74171
74172 2003-07-17  Karl Berry  <karl@gnu.org>
74173
74174         * config/config.sub: update from prep.
74175
74176 2003-07-17  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/getnline: New file.
74179         * modules/getline: Add lib/getndelim2.c to source file list.
74180         * MODULES.html.sh (func_all_modules): Add getnline.
74181
74182 2003-07-17  Bruno Haible  <bruno@clisp.org>
74183
74184         * m4/getnline.m4: New file.
74185
74186 2003-07-17  Bruno Haible  <bruno@clisp.org>
74187
74188         * m4/Makefile.am.in: Remove file.
74189         * m4/Makefile.am: Remove file.
74190         * m4/Makefile.in: Remove file.
74191
74192 2003-07-17  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/getnline.h: New file.
74195         * lib/getnline.c: New file.
74196         * lib/getndelim2.c: New file, extracted from getline.c.
74197         (getndelim2): Renamed from getdelim2, with added nmax argument.
74198         * lib/getline.c: Include getndelim2.c.
74199         (getdelim2): Moved out to getndelim2.c.
74200         (getline, getdelim): Update.
74201
74202 2003-07-17  Bruno Haible  <bruno@clisp.org>
74203
74204         * lib/Makefile.am: Remove file.
74205         * lib/Makefile.in: Remove file.
74206
74207 2003-07-17  Bruno Haible  <bruno@clisp.org>
74208
74209         * configure.in: Remove file.
74210         * Makefile.in: Remove file.
74211
74212 2003-07-17  Bruno Haible  <bruno@clisp.org>
74213
74214         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74215
74216 2003-07-16  Karl Berry  <karl@gnu.org>
74217
74218         * config/srclist-update: was running fixlicense twice, which caused
74219                 texinfo.tex to be nullified for some reason.  Simplify,
74220                 $gplsrc is no longer needed as far as I can see?
74221
74222 2003-07-16  Jim Meyering  <jim@meyering.net>
74223
74224         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74225
74226 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74227
74228         * config/srclist.txt: Get the following files from gettext-runtime/intl
74229         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74230         ref-del.sin.  From Bruno Haible.
74231         * config/srclist-update (fixfile): Change grep pattern again, since the
74232         previous fix didn't work (there was another trailing $).  Use
74233         '[$]' to escape the $s.
74234
74235 2003-07-15  Karl Berry  <karl@gnu.org>
74236
74237         * lib/vasnprintf.c: update from gettext.
74238
74239 2003-07-15  Karl Berry  <karl@gnu.org>
74240
74241         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74242         gets expanded when surrounded by '$'.
74243
74244 2003-07-15  Jim Meyering  <jim@meyering.net>
74245
74246         * modules/save-cwd: Don't depend on error.  From Derek Price.
74247
74248 2003-07-15  Jim Meyering  <jim@meyering.net>
74249
74250         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74251
74252 2003-07-14  Simon Josefsson  <jas@extundo.com>
74253
74254         * modules/mempcpy: New file.
74255         * MODULES.html.sh (func_all_modules): Add mempcpy.
74256
74257 2003-07-14  Simon Josefsson  <jas@extundo.com>
74258
74259         * m4/mempcpy.m4: New file.
74260
74261 2003-07-14  Simon Josefsson  <jas@extundo.com>
74262
74263         * lib/mempcpy.h: New file.
74264         * lib/mempcpy.c: New file.
74265
74266 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74267
74268         * modules/getdate, modules/posixtm: Depend on mktime.
74269
74270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74271
74272         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74273         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74274         unicodeio.c, unicodeio.h, unlocked-io.h:
74275         Switch from LGPL to GPL.
74276
74277 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74278
74279         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74280         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74281         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74282         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74283         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74284         updated automatically by ../config/srclist-update.  This changes
74285         their license from LPGL to GPL.
74286
74287 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74288
74289         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74290         assumed to refer to the root of the most recent stable gettext version.
74291         * config/srclistvars.sh: Add defaults for eggert.
74292         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74293         Match "This program" as well as "The program".  This is needed
74294         for gettext.
74295
74296 2003-07-14  Jim Meyering  <jim@meyering.net>
74297
74298         Don't emit diagnostics.  Let callers do that.
74299         * lib/save-cwd.c: Don't include "error.h".
74300         (save_cwd): Don't call error.  Ensure that errno is valid
74301         when returning nonzero.
74302
74303         * lib/save-cwd.h (restore_cwd): Update prototype.
74304         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74305         Simplify.  Don't call error upon failure.  Let callers do that.
74306         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74307         when auditing is enabled.  But don't bother updating the #if.
74308
74309 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74310
74311         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74312         it breaks C++ compilation.
74313         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74314
74315 2003-07-10  Simon Josefsson  <jas@extundo.com>
74316
74317         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74318
74319 2003-07-10  Jim Meyering  <jim@meyering.net>
74320
74321         * m4/clock_time.m4: Remove trailing blank.
74322         * m4/intmax_t.m4: Likewise.
74323
74324 2003-07-10  Jim Meyering  <jim@meyering.net>
74325
74326         * lib/vasnprintf.c: Remove trailing blanks.
74327         Make cpp indentation consistent.
74328
74329 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74330
74331         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74332         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74333         Switch from LGPL to GPL.
74334
74335 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74336
74337         * config/srclist.txt: Sort sublists.  Add
74338         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74339         that differ from gnulib for one reason or another; we'd like this list
74340         to be smaller but for now let's document what we have.
74341
74342 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74343
74344         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74345         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74346         and sweeter "eval x=$x".
74347         * config/srclist.txt: Get lib/argp* from glibc.
74348
74349 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74350
74351         * lib/mktime.c: Fix some boundary cases and remove need for floating
74352         point.
74353
74354         Issue a compile-time diagnostic if time_t is floating point, or if
74355         two's complement arithmetic is not in effect, or if arithmetic
74356         right shift does not propagate the sign.  These assumptions were
74357         all in the original code but they weren't checked.
74358
74359         (TIME_T_MIDPOINT, verify): New macros.
74360         (__isleap): Remove; it has integer overflow problems.
74361         (leapyear): New function, without those problems.
74362         (ydhms_tm_diff): Remove; splitting into two parts.
74363         (ydhms_diff): New function, containing the arithmetic part of
74364         the old ydhms_tm_diff function.  Issue a compile-time
74365         diagnostic if we are not using C99 integer division.
74366         Avoid casts when possible.
74367         (guess_time_tm): New function, containing the checking part of
74368         the old ydhms_tm_diff function.  Return the new value, rather than
74369         the difference between it and the old.  Accept a new argument T
74370         so that *T specifies the old value.  Check for overflow in the result.
74371
74372         (__mktime_internal): Use a time_t offset, not a long int offset.
74373         This undoes the 2003-06-04 change, which is no longer needed now
74374         that we have better overflow checking.
74375         (localtime_offset): Likewise.
74376
74377         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74378         and long are 64-bit but int is only 32-bit.
74379         (ydhms_diff): Use long int to store year1 and yday1.
74380         Issue a compile-time diagnostic if long int is not wide enough.
74381
74382         (__mktime_internal): Use long int to store adjusted year and yday.
74383         Use plain C rather than preprocessor commands, if that doesn't
74384         affect efficiency.
74385         Check for overflow (and try to repair) after each probe
74386         rather than checking only at the very end.  This avoids some bugs
74387         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74388         does not equal GMT offset at maximum time).
74389         Use integer to check for overflow rather than floating point; this
74390         is more portable to non-IEEE hosts, and is a tad faster.
74391         When we detect that we are oscillating between two values,
74392         don't check whether tm_isdst has the requested value, since
74393         we already know the answer.  When tm_isdst has the wrong value,
74394         use a different heuristic to find the right one, based on the
74395         extreme values actually observed in practice in tz2003a,
74396         rather than the (overly optimistic) "previous 3 calendar quarters".
74397
74398         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74399         "T const" to accommodate glibc style.
74400         (check_result): Use less-confusing report format.  "long" -> "long int.
74401         (main): Likewise.
74402         Don't loop if the iteration overflows time_t.
74403         Allow a negative step in the iteration.
74404
74405 2003-07-06  Karl Berry  <karl@gnu.org>
74406
74407         * config/depcomp: update from automake.
74408         * config/config.sub: update from prep.
74409
74410 2003-07-03  Karl Berry  <karl@gnu.org>
74411
74412         * config/config.guess: update from prep.
74413
74414 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74415
74416         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74417         xreadlink.c now includes it unconditionally.
74418
74419 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74420
74421         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74422         having it depend on HAVE_SYS_TYPES_H.
74423
74424 2003-07-01  Bruno Haible  <bruno@clisp.org>
74425
74426         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74427         <sys/types.h> should be sufficient.
74428         Reported by Paul Eggert.
74429
74430 2003-06-26  Karl Berry  <karl@gnu.org>
74431
74432         * config/depcomp: update from automake.
74433
74434 2003-06-26  Bruno Haible  <bruno@clisp.org>
74435
74436         * modules/human: Depend on module stdbool.
74437
74438 2003-06-25  Bruno Haible  <bruno@clisp.org>
74439
74440         * modules/readlink: New file.
74441         * modules/xreadlink: Depend on it.
74442         * MODULES.html.sh (func_all_modules): Add readlink.
74443
74444 2003-06-25  Bruno Haible  <bruno@clisp.org>
74445
74446         * m4/readlink.m4: New file.
74447
74448 2003-06-25  Bruno Haible  <bruno@clisp.org>
74449
74450         * lib/readlink.c: New file.
74451
74452 2003-06-22  Karl Berry  <karl@gnu.org>
74453
74454         * config/srclist.txt: update mkinstalldirs from automake.
74455         * config/mkinstalldirs: update.
74456
74457 2003-06-22  Bruno Haible  <bruno@clisp.org>
74458
74459         Portability to mingw32.
74460         * m4/ssize_t.m4: New file, from GNU gettext.
74461         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74462         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74463
74464 2003-06-22  Bruno Haible  <bruno@clisp.org>
74465
74466         * modules/safe-read: Add m4/ssize_t.m4.
74467         * modules/xreadlink: Add m4/ssize_t.m4.
74468
74469 2003-06-20  Bruno Haible  <bruno@clisp.org>
74470
74471         Assume C89, so PARAMS isn't needed.
74472         * lib/unicodeio.h (PARAMS): Remove.
74473         * lib/unicodeio.c: Don't use PARAMS.
74474
74475 2003-06-18  Karl Berry  <karl@gnu.org>
74476
74477         * config/config.{guess,sub}: update from prep.
74478
74479 2003-06-18  Jim Meyering  <jim@meyering.net>
74480
74481         Merge changes from coreutils.
74482         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74483         Remove explicit declarations of xmalloc and realloc.
74484         Include xalloc.h.
74485         (read_utmp): Remove anachronistic cast of xmalloc.
74486
74487 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74488
74489         Assume C89, so PARAMS isn't needed.
74490         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74491         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74492         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74493         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74494         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74495         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74496         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74497         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74498         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74499         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74500         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74501         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74502         no longer needed. Anyway, config.h should always be included before any
74503         other file.
74504
74505 2003-06-11  Simon Josefsson  <jas@extundo.com>
74506
74507         * modules/sysexits: New file.
74508         * MODULES.html.sh (func_all_modules): Add sysexits.
74509
74510 2003-06-11  Simon Josefsson  <jas@extundo.com>
74511
74512         * lib/sysexit_.h: New file.
74513
74514 2003-06-11  Derek Price  <derek@ximbiot.com>
74515
74516         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74517         necessary.
74518
74519 2003-06-11  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/sysexits.m4: New file.
74522
74523 2003-06-10  Simon Josefsson  <jas@extundo.com>
74524
74525         * lib/argp.h: New file, from glibc.
74526         * lib/argp-ba.c: New file, from glibc.
74527         * lib/argp-eexst.c: New file, from glibc.
74528         * lib/argp-fmtstream.c: New file, from glibc.
74529         * lib/argp-fmtstream.h: New file, from glibc.
74530         * lib/argp-fs-xinl.c: New file, from glibc.
74531         * lib/argp-help.c: New file, from glibc.
74532         * lib/argp-namefrob.h: New file, from glibc.
74533         * lib/argp-parse.c: New file, from glibc.
74534         * lib/argp-pv.c: New file, from glibc.
74535         * lib/argp-pvh.c: New file, from glibc.
74536         * lib/argp-xinl.c: New file, from glibc.
74537
74538 2003-06-10  Simon Josefsson  <jas@extundo.com>
74539
74540         * modules/strchrnul: New file.
74541
74542 2003-06-10  Simon Josefsson  <jas@extundo.com>
74543
74544         * modules/argp: New file.
74545
74546 2003-06-10  Simon Josefsson  <jas@extundo.com>
74547
74548         * m4/strchrnul.m4: New file.
74549
74550 2003-06-10  Simon Josefsson  <jas@extundo.com>
74551
74552         * lib/strchrnul.h: New file.
74553         * lib/strchrnul.c: New file.
74554
74555 2003-06-10  Bruno Haible  <bruno@clisp.org>
74556
74557         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74558
74559 2003-06-07  Karl Berry  <karl@gnu.org>
74560
74561         * config/config.{guess,sub}: update from prep.
74562
74563 2003-06-07  Jim Meyering  <jim@meyering.net>
74564
74565         * modules/strtod: Use $(...) notation, not @...@ for
74566         AC_REPLACE'd variables.
74567         * modules/localcharset: Likewise.
74568
74569 2003-06-07  Jim Meyering  <jim@meyering.net>
74570
74571         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74572         in place of my name in the copyright comment.
74573         Remove definition and uses of __P.
74574
74575         From coreutils.
74576         * lib/stat.c: Don't declare xmalloc explicitly.
74577         Instead, include "xalloc.h".
74578         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74579         xrealloc, and xcalloc return values.
74580         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74581         Improve comment.
74582         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74583
74584 2003-06-07  Bruno Haible  <bruno@clisp.org>
74585
74586         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74587         avoid AC_CONFIG_LINKS.
74588         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74589         fnmatch.h, to avoid AC_CONFIG_LINKS.
74590         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74591
74592 2003-06-07  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74595         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74596         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74597         directory.
74598         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74599         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74600         directory.
74601
74602 2003-06-06  Jim Meyering  <jim@meyering.net>
74603
74604         Merge from coreutils.
74605         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74606         Consolidate declarations and initializations of *_base* locals.
74607
74608         Merge from coreutils.
74609         This avoids a core dump on systems without GNU putenv,
74610         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74611         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74612         (unsetenv): New static function, from GNU libc.
74613         (rpl_putenv): Use it.
74614
74615         * lib/modechange.c: Remove trailing blanks.
74616
74617         Merge from coreutils.
74618         * lib/fsusage.c: Remove declaration of statfs.
74619         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74620
74621         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74622
74623 2003-06-06  Jim Meyering  <jim@meyering.net>
74624
74625         * lib/stdbool_.h: Renamed from stdbool.h.in.
74626
74627 2003-06-06  Jim Meyering  <jim@meyering.net>
74628             Bruno Haible  <bruno@clisp.org>
74629
74630         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74631         Adjust Makefile.am snippet not to redirect directly to target.
74632         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74633
74634 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74635
74636         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74637         mismatch, look in future quarters as well as past.  This fixes a
74638         bug when processing fall-backwards gaps immediately after a long
74639         period of daylight-saving time.
74640
74641         * lib/mktime.c: Assume freestanding C89 or better.
74642         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74643         (__P): Remove; not used.
74644         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74645         (mktime, not_equal_tm, print_tm, check_result,
74646         main): Use prototypes.  Use const * where appropriate.
74647         (main): Fix typo in testing code that uncovered by above changes.
74648         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74649
74650 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74651
74652         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74653         locale.h, localeconv.  This merges changes from coreutils.
74654
74655         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74656         It can be removed after the next Autoconf is released.
74657         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74658         needed.
74659
74660 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74661
74662         * lib/mktime.c: Fix Debian bug 177940
74663         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74664         (localtime_offset): Now long int, not time_t, because we want it
74665         to be guaranteed to be signed.  All uses changed.
74666         (__mktime_internal): If overflow would occur when adding offset,
74667         don't add it.
74668
74669         Merge 'human' changes from coreutils.  Rewrite to support
74670         locale-specific notations like thousands separators.
74671         * lib/human.c: Simplify authorship notice.
74672         Include human.h immediately after config.h.
74673         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74674         <limits.h>: Do not include, since human.h does.
74675         (SIZE_MAX, UINTMAX_MAX): New macros.
74676         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74677         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74678         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74679         (power_letter): Renamed from suffixes.
74680         (generate_suffix_backwards): Remove.
74681         (adjust_value): Now takes int style (because of human.h changes)
74682         and long double value (for greater precision on some platforms).
74683         (group_number): New function.
74684         (human_readable): Use it.  Use integer options, not enum.
74685         Put the options before the sizes in the arg list.
74686         Support all the new options.
74687         The old human_readable function has been removed;
74688         use inttostr.h instead.
74689         (human_readable, default_block_size, humblock):
74690         Use uintmax_t, not int, for block sizes.
74691         (human_readable_inexact, block_size_types): Remove.
74692         (block_size_opts): New constant.
74693         (human_options): Renamed from human_block_size, with new signature
74694         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74695         * lib/human.h: Add copyright and authorship notice.
74696         Include <limits.h> and <stdbool.h> unconditionally.
74697         (PARAMS): Remove.  All uses removed.
74698         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74699         (enum human_inexact_style): Remove tag; now a nameless enum.
74700         (human_floor, human_ceiling, human_round_to_even): Now have
74701         values 2, 0, 1 rather than -1, 1, 0.
74702         (human_group_digits, human_suppress_point_zero, human_autoscale,
74703         human_base_1024, human_SI, human_B): New constants.
74704         (human_readable_inexact, human_block_size): Remove.
74705         (human_readable): Size args are now uintmax_t, not int.
74706         (human_options): New decl.
74707
74708         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74709         unnecessary now that we assume C89 or better.  This change
74710         imported from coreutils.
74711
74712         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74713         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74714         in the 2003-05-30 sync from glibc.
74715
74716         .h files should stand alone, but we shouldn't include <sys/types.h>
74717         if we can get away with just <stddef.h>.
74718
74719         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74720         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74721         rather than <sys/types.h>, as we merely need size_t.
74722         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74723         to get size_t.
74724         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74725         Include <stdio.h>, to get FILE.
74726         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74727         memcasecmp.h has included <stddef.h> and all we need is size_t.
74728         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74729         our interface, instead of including <sys/types.h>
74730
74731 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74732
74733         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74734         now, as glibc mktime is buggy on non-glibc systems.
74735
74736 2003-06-03  Karl Berry  <karl@gnu.org>
74737
74738         * config/config.sub: update from prep.
74739
74740 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74741
74742         [from coreutils]
74743         Fix some minor time-related bugs with POSIX time arguments.
74744         Some valid time stamps were being rejected (notably -1, and
74745         time stamps before 1900 on 64-bit hosts).  And some invalid
74746         time stamps were being accepted, e.g. September 31.
74747
74748         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74749         that we can return (time_t) -1 successfully.
74750         * lib/posixtm.c: Likewise.
74751         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74752         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74753         (t): Remove static var.
74754         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74755         of static var.  All uses changed.
74756         (year): Do not reject years before 1900; they can occur with
74757         64-bit time_t.
74758         (posix_time_parse): Do not check for out-of-range components;
74759         that is now the caller's responsibility, since our checks were
74760         only approximations.
74761         (posixtime): Use mktime to check for out-of-range components,
74762         since it knows them exactly.
74763         If mktime returns (time_t) -1, check whether an error actually occurred
74764         by invoking localtime on -1.
74765         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74766         posixtime failures better.
74767         Improve the test data (in comments only).
74768
74769 2003-06-02  Karl Berry  <karl@gnu.org>
74770
74771         * config/mkinstalldirs (version): new variable.
74772         (--version): new option.
74773         (usage): improve message.
74774
74775 2003-05-30  Karl Berry  <karl@gnu.org>
74776
74777         * lib/mktime.c: update from libc.
74778
74779 2003-05-30  Bruno Haible  <bruno@clisp.org>
74780
74781         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74782         * config/config.rpath: Upgrade to gettext-0.12.1.
74783
74784 2003-05-30  Bruno Haible  <bruno@clisp.org>
74785
74786         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74787         * m4/nls.m4: New file, from gettext-0.12.1.
74788         * m4/po.m4: New file, from gettext-0.12.1.
74789         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74790
74791 2003-05-30  Bruno Haible  <bruno@clisp.org>
74792
74793         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74794         * lib/localcharset.h: Likewise.
74795         * lib/localcharset.c: Likewise.
74796
74797 2003-05-29  Karl Berry  <karl@gnu.org>
74798
74799         * config/config.rpath: update from gettext.
74800
74801 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74802
74803         Assume the headers required for C89 freestanding compilers.
74804         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74805         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74806         * m4/human.m4 (gl_HUMAN): Likewise.
74807         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74808         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74809         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74810         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74811         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74812         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74813
74814 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74815
74816         Assume the headers required for C89 freestanding compilers.
74817         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74818         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74819         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74820         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74821         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74822         define, since <limits.h> is guaranteed to do that.
74823         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74824         * lib/exclude.c: Include <stdbool.h> unconditionally.
74825         * lib/tempname.c: Include <stddef.h> unconditionally.
74826         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74827         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74828         <stddef.h> does that.
74829         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74830         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74831         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74832         needed.
74833         * lib/xstrtol.c: Likewise.
74834         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74835         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74836
74837         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74838         warnings on some platforms.
74839
74840         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74841         arbitrarily.
74842
74843 2003-05-26  Jim Meyering  <jim@meyering.net>
74844
74845         Merge in a change from coreutils:
74846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74847         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74848         that condition, rather than `-1' which is slightly misleading.
74849         Change the name of the cache variable to have the gl_ prefix.
74850         Prompted by a patch from Richard Dawe for DJGPP.
74851
74852 2003-05-24  Karl Berry  <karl@gnu.org>
74853
74854         * config/config.guess: update from prep.
74855
74856 2003-05-22  Karl Berry  <karl@gnu.org>
74857
74858         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74859
74860 2003-05-20  Karl Berry  <karl@gnu.org>
74861
74862         * config/config.guess: update from prep.
74863
74864 2003-05-18  Karl Berry  <karl@gnu.org>
74865
74866         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74867         might actually be set by the user.
74868
74869         * config/depcomp, install-sh, mdate-sh: update from automake.
74870
74871 2003-05-17  Bruno Haible  <bruno@clisp.org>
74872
74873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74874         invalid expansion for AC_EGREP_CPP.
74875         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74876         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74877         Suggested by Akim Demaille <akim@epita.fr> in
74878         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74879
74880 2003-05-12  Jim Meyering  <jim@meyering.net>
74881
74882         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74883         the space-padded-by-default conversion specifiers, %e, %k, %l.
74884
74885 2003-05-12  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74888         the string is longer than 4 KB.
74889
74890 2003-05-11  Karl Berry  <karl@gnu.org>
74891
74892         * config/config.{guess,sub}: update from prep.
74893
74894 2003-05-09  Bruno Haible  <bruno@clisp.org>
74895
74896         * modules/error: Add m4/strerror_r.m4 to file list.
74897
74898 2003-05-03  Bruno Haible  <bruno@clisp.org>
74899
74900         Upgrade to Unicode-4.0.
74901         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74902         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74903         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74904         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74905         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74906         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74907         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74908         Change width of U+E0100..U+E01EF from 1 to 0.
74909
74910 2003-04-25  Jim Meyering  <jim@meyering.net>
74911
74912         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74913         of type size_t, not int.
74914
74915 2003-04-25  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/copy-file.c: Include <stddef.h>, for size_t.
74918
74919 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74920
74921         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74922         code which expansion is under static control.  Patch imported from
74923         Akim Demaille's patch to Bison; see
74924         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74925
74926 2003-04-14  Bruno Haible  <bruno@clisp.org>
74927
74928         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74929
74930 2003-04-11  Jim Meyering  <jim@meyering.net>
74931
74932         Merge changes from Coreutils.
74933
74934         2003-03-22  Jim Meyering  <jim@meyering.net>
74935
74936         * lib/strftime.c (widen): Cast alloca return value to proper type.
74937
74938         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74939
74940         From GNU libc.
74941         * lib/strftime.c (my_strftime): Handle very large width
74942         specifications for numeric values correctly.  Improve checks for
74943         overflow.
74944
74945         2003-01-19  Jim Meyering  <jim@meyering.net>
74946
74947         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74948         definitions.
74949         (nl_get_alt_digit) [! defined my_strftime]: Define.
74950         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74951         _nl_get_alt_digit and _nl_get_walt_digit.
74952
74953         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74954         libc. These changes have no effect outside of _LIBC.
74955
74956 2003-04-10  Bruno Haible  <bruno@clisp.org>
74957
74958         * modules/findprog: New file.
74959         * MODULES.html.sh (func_all_modules): Add it.
74960
74961 2003-04-10  Bruno Haible  <bruno@clisp.org>
74962
74963         * m4/findprog.m4: New file.
74964         * m4/eaccess.m4: New file.
74965
74966 2003-04-10  Bruno Haible  <bruno@clisp.org>
74967
74968         * lib/findprog.h: New file, from GNU gettext.
74969         * lib/findprog.c: New file, from GNU gettext.
74970
74971 2003-04-05  Jim Meyering  <jim@meyering.net>
74972
74973         Merge changes from Coreutils.
74974
74975         * lib/exclude.h (PARAMS): Remove definition and uses.
74976         * lib/exclude.c: Remove uses of `PARAMS'.
74977
74978         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74979         Add test-cases for DOS filenames. Declare program_name.
74980         (main): Set up program_name.  Patch by Rich Dawe.
74981
74982         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74983         error from mntctl.
74984         Use mntctl's return value to drive the entry-processing loop, since
74985         we can't rely on the value of the vmt_length member in the last
74986         entry.  On some systems doing so could result in exhausting
74987         virtual memory.  Based in part on a patch from Mike Jetzer.
74988
74989 2003-04-04  Bruno Haible  <bruno@clisp.org>
74990
74991         * modules/linebreak: New file.
74992         * MODULES.html.sh (func_all_modules): Add it.
74993
74994 2003-04-04  Bruno Haible  <bruno@clisp.org>
74995
74996         * m4/linebreak.m4: New file.
74997
74998 2003-04-04  Bruno Haible  <bruno@clisp.org>
74999
75000         * lib/linebreak.h: New file, from GNU gettext.
75001         * lib/linebreak.c: New file, from GNU gettext with slight
75002         modifications.
75003         * lib/lbrkprop.h: New file, from GNU gettext.
75004
75005 2003-04-03  Bruno Haible  <bruno@clisp.org>
75006
75007         * modules/utf8-ucs4: New file.
75008         * modules/utf16-ucs4: New file.
75009         * modules/ucs4-utf8: New file.
75010         * modules/ucs4-utf16: New file.
75011         * MODULES.html.sh (func_all_modules): Add them.
75012
75013 2003-04-03  Bruno Haible  <bruno@clisp.org>
75014
75015         * m4/utf-ucs4.m4: New file.
75016         * m4/ucs4-utf.m4: New file.
75017
75018 2003-04-03  Bruno Haible  <bruno@clisp.org>
75019
75020         * lib/utf8-ucs4.h: New file, from GNU gettext.
75021         * lib/utf16-ucs4.h: New file, from GNU gettext.
75022         * lib/ucs4-utf8.h: New file, from GNU gettext.
75023         * lib/ucs4-utf16.h: New file, from GNU gettext.
75024
75025 2003-04-02  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/binary-io: New file.
75028         * MODULES.html.sh (func_all_modules): Add it.
75029
75030 2003-04-02  Bruno Haible  <bruno@clisp.org>
75031
75032         * lib/binary-io.h: New file, from GNU gettext.
75033
75034 2003-04-01  Bruno Haible  <bruno@clisp.org>
75035
75036         * modules/pathname: New file.
75037         * MODULES.html.sh (func_all_modules): Add it.
75038
75039 2003-04-01  Bruno Haible  <bruno@clisp.org>
75040
75041         * lib/pathname.h: New file, from GNU gettext.
75042         * lib/concatpath.c: New file, from GNU gettext.
75043
75044 2003-03-30  Bruno Haible  <bruno@clisp.org>
75045
75046         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75047
75048 2003-03-30  Bruno Haible  <bruno@clisp.org>
75049
75050         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75051         function chown() doesn't exist.
75052
75053 2003-03-28  Bruno Haible  <bruno@clisp.org>
75054
75055         * modules/copy-file: New file.
75056         * MODULES.html.sh (func_all_modules): Add it.
75057
75058 2003-03-28  Bruno Haible  <bruno@clisp.org>
75059
75060         * m4/copy-file.m4: New file.
75061
75062 2003-03-28  Bruno Haible  <bruno@clisp.org>
75063
75064         * lib/copy-file.h: New file, from GNU gettext.
75065         * lib/copy-file.c: New file, from GNU gettext.
75066
75067 2003-03-18  Jim Meyering  <jim@meyering.net>
75068
75069         * lib/quote.c (quote_n): Fix typo in comment.
75070
75071 2003-03-18  Bruno Haible  <bruno@clisp.org>
75072
75073         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75074         checking.
75075         * m4/onceonly_2_57.m4: Likewise.
75076
75077 2003-03-17  Bruno Haible  <bruno@clisp.org>
75078
75079         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75080         (m4_quote): Remove macro.
75081         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75082
75083 2003-03-14  Jim Meyering  <jim@meyering.net>
75084
75085         Merge changes from Coreutils.
75086         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75087         to be const, in order to avoid warnings.
75088         (obstack_room): Likewise.
75089         (obstack_empty_p): Likewise.
75090
75091 2003-03-14  Bruno Haible  <bruno@clisp.org>
75092
75093         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75094         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75095
75096 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75097
75098         Merge changes from Bison.
75099         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75100         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75101         when compiling Bison 1.875's `bitset bset = obstack_alloc
75102         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75103         * lib/hash.c: Include <stdbool.h> unconditionally.
75104
75105 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75106
75107         * m4/onceonly.m4 (m4_quote): New macro.
75108         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75109         Quote AC_FOREACH variable-expansions properly.
75110
75111 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75112
75113         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75114
75115 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75116
75117         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75118         Reported by Bruce Becker; see:
75119         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75120
75121 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75122             Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75125         Reported by John Hughes, see
75126         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75127
75128 2003-02-20  Bruno Haible  <bruno@clisp.org>
75129
75130         * MODULES.html.sh (func_all_modules): Add poll.
75131
75132 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75133
75134         * modules/poll: New file.
75135
75136 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75137
75138         * lib/poll_.h: New file.
75139         * lib/poll.c: New file.
75140
75141 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75142
75143         * m4/poll.m4: New file.
75144
75145 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75146
75147         * modules/mathl: New file.
75148
75149 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75150
75151         * lib/mathl.h: New file.
75152         * lib/acosl.c: New file.
75153         * lib/asinl.c: New file.
75154         * lib/atanl.c: New file.
75155         * lib/ceill.c: New file.
75156         * lib/cosl.c: New file.
75157         * lib/expl.c: New file.
75158         * lib/floorl.c: New file.
75159         * lib/frexpl.c: New file.
75160         * lib/ldexpl.c: New file.
75161         * lib/logl.c: New file.
75162         * lib/sincosl.c: New file.
75163         * lib/sinl.c: New file.
75164         * lib/sqrtl.c: New file.
75165         * lib/tanl.c: New file.
75166         * lib/trigl.c: New file.
75167         * lib/trigl.h: New file.
75168
75169 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75170
75171         * m4/mathl.m4: New file.
75172
75173 2003-02-18  Bruno Haible  <bruno@clisp.org>
75174
75175         * MODULES.html.sh (func_all_modules): Add mathl.
75176
75177 2003-02-17  Bruno Haible  <bruno@clisp.org>
75178
75179         * modules/mkdtemp: New module.
75180         * MODULES.html.sh (func_all_modules): Add it.
75181
75182 2003-02-17  Bruno Haible  <bruno@clisp.org>
75183
75184         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75185
75186 2003-02-17  Bruno Haible  <bruno@clisp.org>
75187
75188         * lib/mkdtemp.h: New file, from GNU gettext.
75189         * lib/mkdtemp.c: New file, from GNU gettext.
75190
75191 2003-02-02  Jim Meyering  <jim@meyering.net>
75192
75193         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75194         e.g. glibc-2.2.93.
75195
75196 2003-01-31  Bruno Haible  <bruno@clisp.org>
75197
75198         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75199         'rpl_rename'.
75200         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75201         'rpl_strnlen'.
75202         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75203         'rpl_strtod'.
75204         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75205         'rpl_utime'.
75206
75207 2003-01-31  Bruno Haible  <bruno@clisp.org>
75208
75209         * lib/rename.c: #undef rename before defining rpl_rename.
75210         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75211
75212 2003-01-30  Bruno Haible  <bruno@clisp.org>
75213
75214         * modules/vasnprintf, modules/vasprintf: New modules.
75215         * MODULES.html.sh (func_all_modules): Add them.
75216
75217 2003-01-30  Bruno Haible  <bruno@clisp.org>
75218
75219         * m4/signed.m4: New file, from GNU gettext.
75220         * m4/longdouble.m4: New file, from GNU gettext.
75221         * m4/wchar_t.m4: New file, from GNU gettext.
75222         * m4/wint_t.m4: New file, from GNU gettext.
75223         * m4/vasnprintf.m4: New file.
75224         * m4/vasprintf.m4: New file.
75225
75226 2003-01-30  Bruno Haible  <bruno@clisp.org>
75227
75228         * lib/printf-args.h: New file, from GNU gettext.
75229         * lib/printf-args.c: New file, from GNU gettext.
75230         * lib/printf-parse.h: New file, from GNU gettext.
75231         * lib/printf-parse.c: New file, from GNU gettext.
75232         * lib/vasnprintf.h: New file, from GNU gettext.
75233         * lib/vasnprintf.c: New file, from GNU gettext.
75234         * lib/asnprintf.c: New file, from GNU gettext.
75235         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75236         * lib/vasprintf.c: New file, from GNU gettext.
75237         * lib/asprintf.c: New file, from GNU gettext.
75238
75239 2003-01-29  Bruno Haible  <bruno@clisp.org>
75240
75241         * modules/stpncpy: New module.
75242         * MODULES.html.sh (func_all_modules): Add it.
75243
75244 2003-01-29  Bruno Haible  <bruno@clisp.org>
75245
75246         * m4/stpncpy.m4: New file.
75247
75248 2003-01-29  Bruno Haible  <bruno@clisp.org>
75249
75250         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75251         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75252
75253 2003-01-28  Bruno Haible  <bruno@clisp.org>
75254
75255         * modules/c-ctype: New module.
75256         * MODULES.html.sh (func_all_modules): Add it.
75257
75258 2003-01-28  Bruno Haible  <bruno@clisp.org>
75259
75260         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75261         Paul Eggert.
75262         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75263         Paul Eggert.
75264
75265 2003-01-27  Bruno Haible  <bruno@clisp.org>
75266
75267         * modules/xsetenv: New module.
75268         * MODULES.html.sh (func_all_modules): Add it.
75269
75270 2003-01-27  Bruno Haible  <bruno@clisp.org>
75271
75272         * lib/xsetenv.h: New file, from GNU gettext.
75273         * lib/xsetenv.c: New file, from GNU gettext.
75274
75275 2003-01-23  Jim Meyering  <jim@meyering.net>
75276
75277         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75278         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75279
75280 2003-01-23  Bruno Haible  <bruno@clisp.org>
75281
75282         * modules/minmax: New module.
75283         * MODULES.html.sh (func_all_modules): Add it.
75284
75285 2003-01-23  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75288         Eggert.
75289
75290 2003-01-22  Bruno Haible  <bruno@clisp.org>
75291
75292         * modules/exit: New module.
75293         * MODULES.html.sh (func_all_modules): Add it.
75294
75295 2003-01-22  Bruno Haible  <bruno@clisp.org>
75296
75297         * lib/exit.h: New file, from GNU gettext.
75298
75299 2003-01-19  Bruno Haible  <bruno@clisp.org>
75300
75301         * gnulib-tool: Recognize option --extract-maintainer.
75302         (func_get_maintainer): New function.
75303         * modules/*: Add Maintainer entry.
75304
75305 2003-01-16  Jim Meyering  <jim@meyering.net>
75306
75307         * m4/regex.m4: The `regex' struct is both input and output.
75308         Initialize it before each use.  Patch by Tim Waugh.
75309
75310 2003-01-16  Bruno Haible  <bruno@clisp.org>
75311
75312         * MODULES.html.sh: Add a table of contents. Add the module name as
75313         leftmost column. Add hyperlinks.
75314
75315 2003-01-15  Bruno Haible  <bruno@clisp.org>
75316
75317         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75318
75319 2003-01-15  Bruno Haible  <bruno@clisp.org>
75320
75321         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75322         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75323         suffix.
75324
75325 2003-01-15  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75328
75329 2003-01-15  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75332         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75333
75334 2003-01-14  Jim Meyering  <jim@meyering.net>
75335
75336         * lib/same.c (same_name): Tweak a comment.
75337
75338 2003-01-14  Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75341         when a string comparison is sufficient.
75342
75343 2003-01-14  Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75346         'unsigned int'.
75347
75348 2003-01-14  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/hash-pjw.c: Add comment about low quality of this function.
75351
75352 2003-01-13  Bruno Haible  <bruno@clisp.org>
75353
75354         * modules/stpcpy: Distribute lib/stpcpy.h.
75355         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75356
75357 2003-01-13  Bruno Haible  <bruno@clisp.org>
75358
75359         * modules/*: Add a description.
75360         * modules/strpbrk: Fix Makefile.am snippet.
75361         * modules/strtoimax: Fix dependencies.
75362         * modules/strtoumax: Likewise.
75363
75364 2003-01-13  Bruno Haible  <bruno@clisp.org>
75365
75366         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75367         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75368         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75369
75370 2003-01-13  Bruno Haible  <bruno@clisp.org>
75371
75372         * gnulib-tool (func_create_testdir): Store config/* files in the main
75373         directory.
75374         * config.rpath: Move to ...
75375         * config/config.rpath: ... here.
75376         * modules/gettext: Contains config/config.rpath, not config.rpath.
75377         * modules/iconv: Likewise.
75378
75379 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75380
75381         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75382         to avoid collisions with libcurses and libreadline.
75383
75384         * m4/getstr.m4: Remove.
75385         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75386
75387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75388
75389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75390         to avoid collisions with libcurses and libreadline.
75391
75392         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75393         * lib/getstr.h, getstr.c: Remove.
75394         * lib/getline.c: Include "getline.h", to check interface.
75395         Move body of old getstr.c here: this defines MIN_CHUNK and
75396         declares getdelim2, which is renamed from getstr.
75397         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75398
75399         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75400         All uses changed.
75401         * lib/linebuffer.h: Likewise.
75402         (readline): Remove backward-compatibility macro.
75403
75404 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75405
75406         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75407         to avoid collisions with libcurses and libreadline.
75408         * getstr: Remove.
75409         * MODULES.html.sh: Remove getstr.
75410         * modules/getline: Depend on unlocked-io, not getstr.
75411
75412 2003-01-12  Jim Meyering  <jim@meyering.net>
75413
75414         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75415
75416 2003-01-10  Bruno Haible  <bruno@clisp.org>
75417
75418         * modules/alloca: Change Makefile.am requirements. Simplify Include
75419         requirements. Add lib/alloca_.h to file list.
75420
75421 2003-01-10  Bruno Haible  <bruno@clisp.org>
75422
75423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75424
75425 2003-01-10  Bruno Haible  <bruno@clisp.org>
75426
75427         * lib/alloca_.h: New file.
75428         * lib/getdate.y: Unconditionally include alloca.h.
75429         * lib/makepath.c: Likewise.
75430         * lib/setenv.c: Likewise.
75431         * lib/userspec.c: Likewise.
75432
75433 2003-01-09  Karl Berry  <karl@gnu.org>
75434
75435         * MODULES.html.sh: include `dirname $0` in PATH, to find
75436         gnulib-tool.
75437
75438 2003-01-09  Bruno Haible  <bruno@clisp.org>
75439
75440         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75441         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75442
75443 2003-01-09  Bruno Haible  <bruno@clisp.org>
75444
75445         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75446
75447 2003-01-09  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/stdbool.h.in: New file.
75450
75451 2003-01-09  Bruno Haible  <bruno@clisp.org>
75452
75453         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75454         * MODULES.html.sh: Likewise.
75455
75456 2003-01-08  Jim Meyering  <jim@meyering.net>
75457
75458         * lib/full-write.c: Undefine and define-away `const' after inclusion
75459         of errno.h, not before.  Suggestion from Bruno Haible.
75460
75461 2003-01-08  Bruno Haible  <bruno@clisp.org>
75462
75463         * modules/full-read: Depend on full-write.
75464
75465 2003-01-08  Bruno Haible  <bruno@clisp.org>
75466
75467         * lib/safe-read.c: Include specification header first, to ensure its
75468         selfcontainedness.
75469         * lib/full-write.c: Likewise.
75470
75471 2003-01-07  Jim Meyering  <jim@meyering.net>
75472
75473         * lib/full-write.c: Rework so that it may serve to define full_read,
75474         too.
75475         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75476
75477 2003-01-07  Bruno Haible  <bruno@clisp.org>
75478
75479         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75480         <inttypes.h>.
75481         * lib/xstrtol.h: Likewise.
75482         * lib/xstrtoimax.c: Likewise.
75483         * lib/xstrtoumax.c: Likewise.
75484         * lib/human.h: Likewise.
75485
75486         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75487         on systems that have <inttypes.h> but not <stdint.h>.
75488
75489 2003-01-07  Bruno Haible  <bruno@clisp.org>
75490
75491         * MODULES.html.sh: Add copyright notice.
75492         (missed_files): Omit CVS directory entries.
75493         (func_module): Make it work with sed-3.02.
75494         * MODULES.txt: Remove file.
75495
75496 2003-01-06  Jim Meyering  <jim@meyering.net>
75497
75498         * lib/version-etc.c: Update year in translatable copyright string.
75499
75500 2003-01-03  Karl Berry  <karl@gnu.org>
75501
75502         * config/config.{guess,sub}: update from prep.
75503
75504 2003-01-02  Karl Berry  <karl@gnu.org>
75505
75506         * doc/COPYING.DOC: belatedly updated to 1.2.
75507
75508 2003-01-01  Karl Berry  <karl@gnu.org>
75509
75510         * gnulib-tool (func_verify_module): report module name $module in
75511         error message, not $1.
75512         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75513         be created, only if it doesn't exist.
75514         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75515
75516 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75517
75518         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75519
75520 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75521
75522         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75523         memcmp if strcoll doesn't work.
75524
75525 2002-12-31  Bruno Haible  <bruno@clisp.org>
75526
75527         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75528         nonempty.
75529
75530 2002-12-31  Bruno Haible  <bruno@clisp.org>
75531
75532         * lib/memcoll.c (STRCOLL): New macro.
75533         (memcoll): Use it.
75534
75535 2002-12-31  Bruno Haible  <bruno@clisp.org>
75536
75537         * lib/localcharset.h: New file.
75538         * lib/localcharset.c: Include it.
75539         * lib/unicodeio.c: Likewise.
75540
75541 2002-12-31  Bruno Haible  <bruno@clisp.org>
75542
75543         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75544         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75545
75546 2002-12-31  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/getline.h: Include <stddef.h>, for size_t.
75549
75550         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75551         * lib/unicodeio.c: Don't include <stddef.h>.
75552
75553 2002-12-31  Bruno Haible  <bruno@clisp.org>
75554
75555         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75556         HAVE_TM_ZONE.
75557
75558 2002-12-24  Karl Berry  <karl@gnu.org>
75559
75560         * config/config.guess: update from prep.
75561
75562 2002-12-24  Bruno Haible  <bruno@clisp.org>
75563
75564         General infrasructure.
75565         * m4/README: Rewritten.
75566         * m4/onceonly.m4: New file.
75567         * m4/onceonly_2_57.m4: New file.
75568
75569         Module atexit.
75570         * m4/atexit.m4: New file.
75571
75572         Module strtod.
75573         * m4/strtod.m4: New file.
75574
75575         Module strtol.
75576         * m4/strtol.m4: New file.
75577
75578         Module strtoul.
75579         * m4/strtoul.m4: New file.
75580
75581         Module memchr.
75582         * m4/memchr.m4: New file.
75583
75584         Module memcmp.
75585         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75586         (jm_FUNC_MEMCMP): Invoke it.
75587
75588         Module memcpy.
75589         * m4/memcpy.m4: New file.
75590
75591         Module memmove.
75592         * m4/memmove.m4: New file.
75593
75594         Module memset.
75595         * m4/memset.m4: New file.
75596
75597         Module strcspn.
75598         * m4/strcspn.m4: New file.
75599
75600         Module strpbrk.
75601         * m4/strpbrk.m4: New file.
75602
75603         Module strstr.
75604         * m4/strstr.m4: New file.
75605
75606         Module strerror.
75607         * m4/strerror.m4: New file.
75608
75609         Module mktime.
75610         * m4/mktime.m4: Renamed from jm-mktime.m4.
75611         (gl_PREREQ_MKTIME): New macro.
75612         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75613
75614         Module malloc.
75615         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75616         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75617         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75618
75619         Module realloc.
75620         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75621         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75622         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75623
75624         Module strftime.
75625         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75627         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75628         gl_TM_GMTOFF.
75629         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75630
75631         Module xalloc.
75632         * m4/xalloc.m4: New file.
75633
75634         Module alloca.
75635         * m4/alloca.m4: New file.
75636
75637         Module putenv.
75638         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75639         (jm_FUNC_PUTENV): Invoke it.
75640
75641         Module setenv.
75642         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75643         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75644         when invoked twice.
75645         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75646         gt_FUNC_SETENV.
75647
75648         Module memrchr.
75649         * m4/memrchr.m4: New file.
75650
75651         Module stpcpy.
75652         * m4/stpcpy.m4: New file.
75653
75654         Module strcase.
75655         * m4/strcase.m4: New file.
75656
75657         Module strdup.
75658         * m4/strdup.m4: New file.
75659
75660         Module strnlen.
75661         * m4/strnlen.m4: New file.
75662
75663         Module strndup.
75664         * m4/strndup.m4: New file.
75665
75666         Module xstrtod.
75667         * m4/xstrtod.m4: New file.
75668
75669         Module xstrtol.
75670         * m4/xstrtol.m4: New file.
75671
75672         Module getdate.
75673         * m4/getdate.m4: New file.
75674
75675         Module unlocked-io.
75676         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75677         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75678         * m4/jm-glibc-io.m4n: Remove file.
75679
75680         Module long-options.
75681         * m4/long-options.m4: New file.
75682
75683         Module md5.
75684         * m4/md5.m4: New file.
75685
75686         Module sha.
75687         * m4/sha.m4: New file.
75688
75689         Module getstr.
75690         * m4/getstr.m4: New file.
75691
75692         Module getline.
75693         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75694         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75695         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75696         simply getline. Infoke gl_PREREQ_GETLINE.
75697
75698         Module obstack.
75699         * m4/obstack.m4: New file.
75700
75701         Module hash.
75702         * m4/hash.m4: New file.
75703
75704         Module readtokens.
75705         * m4/readtokens.m4: New file.
75706
75707         Module strverscmp.
75708         * m4/strverscmp.m4: New file.
75709
75710         Module stdbool.
75711         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75712         OSF/1.
75713
75714         Module strtoll.
75715         * m4/strtoll.m4: New file.
75716
75717         Module strtoull.
75718         * m4/strtoull.m4: New file.
75719
75720         Module strtoimax.
75721         * m4/strtoimax.m4: New file.
75722
75723         Module strtoumax.
75724         * m4/strtoumax.m4: New file.
75725
75726         Module xstrtoimax.
75727         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75728         jm_AC_PREREQ_XSTRTOIMAX.
75729         Moved the strtol prerequisites to strtol.m4.
75730         Moved the strtoll prerequisites to strtoll.m4.
75731         Moved the strtoimax prerequisites to strtoimax.m4.
75732
75733         Module xstrtoumax.
75734         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75735         jm_AC_PREREQ_XSTRTOUMAX.
75736         Moved the strtoul prerequisites to strtoul.m4.
75737         Moved the strtoull prerequisites to strtoull.m4.
75738         Moved the strtoumax prerequisites to strtoumax.m4.
75739
75740         Module chown.
75741         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75742         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75743
75744         Module dup2.
75745         * m4/dup2.m4: New file.
75746
75747         Module ftruncate.
75748         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75749         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75750
75751         Module getgroups.
75752         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75753         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75754
75755         Module gettimeofday.
75756         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75757         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75758         gl_PREREQ_GETTIMEOFDAY.
75759
75760         Module mkdir.
75761         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75762         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75763
75764         Module mkstemp.
75765         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75766         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75767         jm_AC_TYPE_UINTMAX_T.
75768         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75769
75770         Module stat.
75771         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75772         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75773
75774         Module lstat.
75775         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75776         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75777
75778         Module timespec.
75779         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75780         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75781         * m4/st_mtim.m4: Indentation.
75782
75783         Module nanosleep.
75784         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75785         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75786         gl_PREREQ_NANOSLEEP.
75787
75788         Module regex.
75789         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75790         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75791         (gl_REGEX): New macro.
75792
75793         Module rename.
75794         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75795         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75796
75797         Module rmdir.
75798         * m4/rmdir.m4: New file.
75799
75800         Module utime.
75801         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75802         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75803         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75804
75805         Module dirname.
75806         * m4/dirname.m4: New file.
75807
75808         Module getopt.
75809         * m4/getopt.m4: New file.
75810
75811         Module unistd-safer.
75812         * m4/unistd-safer.m4: New file.
75813
75814         Module fnmatch.
75815         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75816         declaration.
75817         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75818         (gl_FUNC_FNMATCH_POSIX): New macro.
75819         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75820         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75821         simply fnmatch.
75822
75823         Module exclude.
75824         * m4/exclude.m4: New file.
75825
75826         Module human.
75827         * m4/human.m4: New file.
75828
75829         Module acl.
75830         * m4/acl.m4: Nop.
75831
75832         Module backupfile.
75833         * m4/backupfile.m4: New file.
75834         * m4/d-ino.m4: Indentation.
75835
75836         Module fsusage.
75837         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75838         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75839         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75840
75841         Module dirfd.
75842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75843         requirements.
75844
75845         Module euidaccess.
75846         * m4/euidaccess.m4: New file.
75847
75848         Module file-type.
75849         * m4/file-type.m4: New file.
75850
75851         Module fileblocks.
75852         * m4/fileblocks.m4: New file.
75853
75854         Module filemode.
75855         * m4/filemode.m4: New file.
75856
75857         Module isdir.
75858         * m4/isdir.m4: New file.
75859
75860         Module lchown.
75861         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75862         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75863
75864         Module makepath.
75865         * m4/makepath.m4: New file.
75866
75867         Module modechange.
75868         * m4/modechange.m4: New file.
75869
75870         Module mountlist.
75871         * m4/mountlist.m4: New file.
75872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75873         Indentation.
75874
75875         Module path-concat.
75876         * m4/path-concat.m4: New file.
75877
75878         Module pathmax.
75879         * m4/pathmax.m4: New file.
75880
75881         Module same.
75882         * m4/same.m4: New file.
75883
75884         Module save-cwd.
75885         * m4/save-cwd.m4: New file.
75886
75887         Module savedir.
75888         * m4/savedir.m4: New file.
75889
75890         Module xgetcwd.
75891         * m4/xgetcwd.m4: New file.
75892         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75893
75894         Module xreadlink.
75895         * m4/xreadlink.m4: New file.
75896
75897         Module safe-read.
75898         * m4/safe-read.m4: New file.
75899
75900         Module safe-write.
75901         * m4/safe-write.m4: New file.
75902
75903         Module closeout.
75904         * m4/closeout.m4: New file.
75905
75906         Module stdio-safer.
75907         * m4/stdio-safer.m4: New file.
75908
75909         Module getpass.
75910         * m4/getpass.m4: New file.
75911
75912         Module getugroups.
75913         * m4/getugroups.m4: New file.
75914
75915         Module group-member.
75916         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75917         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75918
75919         Module idcache.
75920         * m4/idcache.m4: New file.
75921
75922         Module userspec.
75923         * m4/userspec.m4: New file.
75924
75925         Module gettime.
75926         * m4/clock_time.m4: New file.
75927         * m4/gettime.m4: New file.
75928
75929         Module settime.
75930         * m4/settime.m4: New file.
75931
75932         Module posixtm.
75933         * m4/posixtm.m4: New file.
75934
75935         Module gethostname.
75936         * m4/gethostname.m4: New file.
75937
75938         Module canon-host.
75939         * m4/canon-host.m4: New file.
75940
75941         Module gettext.
75942         * m4/codeset.m4: New file, from gettext-0.11.5.
75943         * m4/gettext.m4: New file, from gettext-0.11.5.
75944         * m4/glibc21.m4: New file, from gettext-0.11.5.
75945         * m4/iconv.m4: New file, from gettext-0.11.5.
75946         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75947         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75948         * m4/inttypes.m4: New file, from gettext-0.11.5.
75949         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75950         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75951         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75952         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75953         * m4/lib-link.m4: New file, from gettext-0.11.5.
75954         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75955         * m4/progtest.m4: New file, from gettext-0.11.5.
75956         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75957         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75958         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75959
75960         Module localcharset.
75961         * m4/localcharset.m4: New file.
75962
75963         Module hard-locale.
75964         * m4/hard-locale.m4: New file.
75965
75966         Module mbswidth.
75967         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75968         onceonly macros.
75969         * m4/mbrtowc.m4: Add comment.
75970
75971         Module memcasecmp.
75972         * m4/memcasecmp.m4: New file.
75973
75974         Module memcoll.
75975         * m4/memcoll.m4: New file.
75976
75977         Module unicodeio.
75978         * m4/unicodeio.m4: New file.
75979
75980         Module rpmatch.
75981         * m4/rpmatch.m4: New file.
75982
75983         Module yesno.
75984         * m4/yesno.m4: New file.
75985
75986         Module exitfail.
75987         * m4/exitfail.m4: New file.
75988
75989         Module c-stack.
75990         * m4/c-stack.m4 (gl_C_STACK): New macro.
75991         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75992
75993         Module error.
75994         * m4/error.m4 (gl_ERROR): New macro.
75995         (jm_PREREQ_ERROR): Use onceonly macros.
75996
75997         Module fatal.
75998         * m4/fatal.m4: New file.
75999
76000         Module getloadavg.
76001         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76002         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76003
76004         Module getpagesize.
76005         * m4/getpagesize.m4: New file.
76006
76007         Module getusershell.
76008         * m4/getusershell.m4: New file.
76009
76010         Module physmem.
76011         * m4/physmem.m4: New file.
76012
76013         Module posixver.
76014         * m4/posixver.m4: New file.
76015
76016         Module quotearg.
76017         * m4/quotearg.m4: New file.
76018
76019         Module quote.
76020         * m4/quote.m4: New file.
76021
76022         Module readutmp.
76023         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76024
76025         Module sig2str.
76026         * m4/sig2str.m4: New file.
76027
76028         Other.
76029         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76030         ulonglong.m4.
76031         * m4/intmax_t.m4: New file.
76032         * m4/d-type.m4: Indentation.
76033         * m4/jm-macros.m4: Update.
76034         * m4/prereq.m4 (jm_PREREQ): Update.
76035         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76036         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76037         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76038         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76039         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76040         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76041         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76042         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76043         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76044         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76045         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76046         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76047         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76048         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76049         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76050         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76051         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76052         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76053         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76054
76055 2002-12-24  Bruno Haible  <bruno@clisp.org>
76056
76057         * MODULES.txt: Update according to m4/ changes.
76058
76059         Module gettext.
76060         * config.rpath: New file, from gettext-0.11.5.
76061
76062         * modules/*: New module descriptions.
76063         * gnulib-tool: New file.
76064         * MODULES.html.sh: New file.
76065
76066 2002-12-21  Karl Berry  <karl@gnu.org>
76067
76068         * doc/fdl.texi: update to version 1.2.
76069
76070 2002-12-19  Karl Berry  <karl@gnu.org>
76071
76072         * config/config.guess: update from prep.
76073
76074 2002-12-18  Bruno Haible  <bruno@clisp.org>
76075
76076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76077         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76078
76079 2002-12-17  Bruno Haible  <bruno@clisp.org>
76080
76081         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76082         stdlib.h, string.h.
76083
76084 2002-12-17  Bruno Haible  <bruno@clisp.org>
76085
76086         * lib/canon-host.c (strdup): Remove unused declaration.
76087
76088         * lib/fsusage.c: Include full_read.h.
76089         (get_fs_usage): Use full_read instead of safe_read.
76090
76091         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76092
76093 2002-12-12  Karl Berry  <karl@gnu.org>
76094
76095         * config/config.guess: update from prep.
76096
76097 2002-12-11  Bruno Haible  <bruno@clisp.org>
76098
76099         * m4/setenv.m4: New file, from gettext-0.11.5.
76100
76101 2002-12-11  Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76104         not unsetenv().
76105         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76106         modifications:
76107
76108         2002-12-11  Bruno Haible  <bruno@clisp.org>
76109
76110                 * setenv.c (alloca): Fall back to malloc.
76111                 (freea): New macro.
76112                 (setenv): Use freea() to free memory allocated with alloca().
76113
76114         2002-11-13  Bruno Haible  <bruno@clisp.org>
76115
76116                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76117                 function declarations.
76118                 * unsetenv.c (unsetenv): Likewise.
76119
76120         2002-03-04  Bruno Haible  <bruno@clisp.org>
76121
76122                 Portability to AIX 4.3.3.
76123                 * unsetenv.c: New file, extracted from setenv.c.
76124                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76125
76126         2001-12-20  Bruno Haible  <bruno@clisp.org>
76127
76128                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76129                 use malloc instead. For SunOS 4.
76130
76131         2001-12-11  Bruno Haible  <bruno@clisp.org>
76132
76133                 * setenv.c: Declare alloca.
76134                 (compar_fn_t): New typedef.
76135                 (KNOWN_VALUE, STORE_VALUE): Use it.
76136
76137         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76138         setenv.h.
76139
76140 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76141
76142         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76143         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76144         Choose values that are less likely to collide with system fnmatch
76145         options.
76146         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76147         defined (e.g., a pure POSIX system).
76148         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76149         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76150
76151 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76152
76153         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76154         a pain in practice to deal with generated m4 files.  This change
76155         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76156
76157         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76158         and jm-glibc-io.m4, as they are no longer a special case.
76159         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76160         kludge and the auto-generation stuff.  Check only whether the
76161         functions are declared, not whether they exist, since older hosts
76162         that don't declare the functions can't use the optimization anyway.
76163
76164 2002-12-06  Jim Meyering  <jim@meyering.net>
76165
76166         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76167
76168         Merge in changes from libc's misc/error.c, in preparation
76169         for the merge of gnulib's changes back into libc.
76170
76171         * lib/error.c (_): Define only if not already defined.
76172         Move definition to follow all #include directives.
76173         Include unlocked-io.h only if !_LIBC.
76174         [_LIBC]: Include <libio/libioP.h>.
76175         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76176         (fflush): Tweak definition to use INTUSE.
76177         (putc): Define.
76178
76179 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76180
76181         * lib/alloca.c [defined emacs]: Include "lisp.h".
76182         (xalloc_die) [defined emacs]: New macro.
76183         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76184         [! defined emacs]: Include <xalloc.h>.
76185         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76186         (pointer): Typedef to POINTER_TYPE *.
76187         (malloc): Remove decl; we now always use xmalloc.
76188         (alloca): Use old-style definition, since Emacs needs this.
76189         Check for arithmetic overflow when computing combined size.
76190
76191 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76192
76193         Do not generate unlocked-io.h automatically, since it's easier to
76194         maintain it by hand.
76195
76196         * lib/unlocked-io.h: New file, from GNU diffutils,
76197         but with proper copyright notice and attribution.
76198         * lib/gen-uio: Remove.
76199         * lib/Makefile.am: Add copyright notice.
76200         (libfetish_a_SOURCES): Add unlocked-io.h.
76201         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76202         (DISTCLEANFILES, io_functions): Remove macros.
76203         (EXTRA_DIST): Remove gen_uio.
76204         (unlocked-io.h): Remove rule.
76205
76206 2002-12-04  Jim Meyering  <jim@meyering.net>
76207
76208         Reflect the fact that stat.c and lstat.c are no longer generated.
76209         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76210         (DISTCLEANFILES): Likewise.
76211         (EXTRA_DIST): Likewise.
76212         (all_local): Don't depend on stat.c or lstat.c.
76213         (stat.c, lstat.c): Remove rules.
76214         (EXTRA_DIST): Remove xstat.in.
76215
76216         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76217         * lib/stat.c: New file.  Contents mostly from xstat.in.
76218         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76219         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76220
76221         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76222         too.
76223         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76224
76225 2002-12-03  Jim Meyering  <jim@meyering.net>
76226
76227         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76228         but not semantics, to minimize the differences between these two files.
76229         (safe_read): Change comment to mention SAFE_READ_ERROR.
76230
76231         * lib/safe-read.c (IS_EINTR): Define.
76232         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76233
76234 2002-12-02  Jim Meyering  <jim@meyering.net>
76235
76236         * lib/safe-read.c (EINTR): Define.
76237         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76238         (INT_MAX): Provide fallback.
76239         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76240
76241         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76242
76243 2002-12-02  Bruno Haible  <bruno@clisp.org>
76244
76245         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76246         Define, taken from safe-read.c.
76247         (INT_MAX): Provide fallback.
76248         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76249         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76250
76251         * lib/safe-read.c (EINTR): Remove definition.
76252         (safe_read): Don't use EINTR if it is absent.
76253
76254 2002-12-01  Jim Meyering  <jim@meyering.net>
76255
76256         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76257         zero.
76258         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76259
76260 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76261
76262         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76263         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76264         with `if (! (value < limit)) abort ();', for readability.
76265
76266 2002-11-26  Karl Berry  <karl@gnu.org>
76267
76268         * lib/strdup.c: copy from libc again, with jim's ok.
76269         * lib/.cppi-disable: re-add strdup.c
76270
76271 2002-11-25  Karl Berry  <karl@gnu.org>
76272
76273         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76274         instead of "strtol.c".
76275
76276 2002-11-25  Karl Berry  <karl@gnu.org>
76277
76278         * config/install-sh: update from automake for variable quoting, $0 in
76279         error msgs, etc.
76280
76281         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76282         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76283         entry.
76284
76285 2002-11-25  Jim Meyering  <jim@meyering.net>
76286
76287         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76288
76289 2002-11-24  Karl Berry  <karl@gnu.org>
76290
76291         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76292         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76293
76294 2002-11-24  Jim Meyering  <jim@meyering.net>
76295
76296         Update from coreutils:
76297
76298         * lib/mktime.c: Merge in changes from libc.
76299
76300         Avoid a link-time failure on some Linux systems.
76301         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76302         (otherwise).
76303         (__mon_yday): Declare with the STATIC attribute.
76304         (__mktime_internal): Likewise.
76305         Based on a report from Greg Schafer.
76306
76307 2002-11-23  Jim Meyering  <jim@meyering.net>
76308
76309         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76310         Use `unsigned', not `int', as type of index.
76311
76312         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76313
76314         * lib/fsusage.c: Remove unneeded parentheses around operands of
76315         `defined'.
76316
76317 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76318
76319         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76320         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76321         so that we can be included first.
76322         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76323         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76324         No need to include stddef.h or sys/types.h any more.
76325         Surround local include files with "", not "<>".
76326         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76327         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76328         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76329         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76330         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76331         (ISPRINT): Remove; no longer needed now that we assume C89.
76332
76333         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76334         Preserve errno.
76335
76336         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76337         quotearg_char): Use SIZE_MAX rather than
76338         (size_t) -1 when we are talking about "infinity".
76339
76340         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76341
76342 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76343
76344         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76345         hint that one should use `if (! x) abort ();' rather than `assert
76346         (x);', and anyway it's one less thing to worry about configuring.
76347         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76348         hash_rehash, hash_insert): Use abort rather than assert.
76349
76350 2002-11-22  Bruno Haible  <bruno@clisp.org>
76351
76352         * lib/safe-read.h: Assume C89. Add comments.
76353         (safe_read): Change return type to size_t.
76354         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76355         byte counts > SSIZE_MAX correctly.
76356         * lib/safe-write.h: New file.
76357         * lib/safe-write.c: New file.
76358         * lib/full-read.h: New file.
76359         * lib/full-read.c: New file.
76360         * lib/full-write.h: Assume C89. Add comments.
76361         * lib/full-write.c: Include safe-write.h.
76362         (full_write): Rewritten to use safe_write.
76363         Suggested by Jim Meyering and Paul Eggert.
76364
76365 2002-11-21  Jim Meyering  <jim@meyering.net>
76366
76367         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76368
76369         Merge in changes from the coreutils.
76370
76371         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76372         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76373         <stdint.h>.
76374         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76375         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76376         int.  Work more efficiently if X is the same width as uintmax_t.
76377         Do not compare X to -1, to avoid bogus compiler warning.
76378         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76379         Don't assume that f_frsize and f_bsize are the same type.
76380
76381         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76382         warning on FreeBSD.
76383
76384         * lib/makepath.c (make_path): Restore umask *before* creating the final
76385         component.
76386         (make_path): Minor reformatting.
76387
76388         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76389         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76390         HAVE_MALLOC/HAVE_REALLOC.
76391
76392         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76393         dummy ones.  At least on GNU/Linux systems, `auto' means something
76394         else.
76395         From Michael Stone.
76396
76397 2002-11-21  Bruno Haible  <bruno@clisp.org>
76398
76399         Remove case insensitive option matching.
76400         * lib/argmatch.h (argcasematch): Remove declaration.
76401         (ARGCASEMATCH): Remove macro.
76402         (__xargmatch_internal): Remove case_sensitive argument.
76403         (XARGMATCH): Update.
76404         (XARGCASEMATCH): Remove macro.
76405         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76406         case_sensitive argument.
76407         (argcasematch): Remove function.
76408         (__xargmatch_internal): Remove case_sensitive argument.
76409         (main): Use XARGMATCH instead of XARGCASEMATCH.
76410
76411         * lib/xmalloc.c: Change compile-time error message. Add comment about
76412         required autoconf version.
76413
76414 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76415
76416         Merge argmatch cleanups from Bison.  Assume C89.
76417
76418         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76419         Include stdlib.h, for EXIT_FAILURE.
76420         Always include <string.h>, since we assume C89.
76421         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76422         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76423         Include <stddef.h> instead, since it's all we need for size_t.
76424         (PARAMS): Remove.  All uses removed.
76425         (ARRAY_CARDINALITY): Do not bother to #undef.
76426         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76427         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76428         Remove unnecessary parentheses.
76429         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76430         Insert necessary parentheses.
76431         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76432         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76433
76434 2002-11-19  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76437         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76438
76439         * lib/mbswidth.h (PARAMS): Remove macro.
76440         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76441         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76442
76443         * lib/gcd.h (PARAMS): Remove macro.
76444         (gcd): Use ANSI C function declarations.
76445         * lib/gcd.c (gcd): Likewise.
76446
76447 2002-11-15  Bruno Haible  <bruno@clisp.org>
76448
76449         * lib/strcspn.c: Include <stddef.h>.
76450         (strcspn): Use ANSI C function declaration. Change return type to
76451         size_t. Use NULL.
76452         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76453         (strpbrk): Use NULL.
76454         * lib/strpbrk.h (PARAMS): Remove macro.
76455         (strpbrk): Use ANSI C function declaration.
76456         * lib/strstr.c: Don't include <sys/types.h>.
76457         * lib/strstr.h (PARAMS): Remove macro.
76458         (strstr): Use ANSI C function declarations.
76459
76460 2002-11-14  Karl Berry  <karl@gnu.org>
76461
76462         * config/mkinstalldirs: `do' on separate line, instead of
76463         `for var; do'.
76464
76465 2002-11-06  Bruno Haible  <bruno@clisp.org>
76466
76467         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76468         * lib/gcd.c (gcd): Likewise.
76469
76470 2002-11-05  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/gcd.h: New file, from gettext-0.11.5.
76473         * lib/gcd.c: New file, from gettext-0.11.5.
76474
76475 2002-11-05  Bruno Haible  <bruno@clisp.org>
76476
76477         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76478         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76479         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76480         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76481
76482         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76483         <libintl.h>.
76484         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76485         <libintl.h>.
76486
76487         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76488         * lib/human.c: Include gettext.h instead of <libintl.h>.
76489         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76490         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76491         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76492         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76493         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76494         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76495         (textdomain): Remove definition.
76496         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76497
76498         * lib/long-options.c: Remove include of <libintl.h> and definition of
76499         _.
76500         * lib/same.c: Remove include of <libintl.h> and definition of _.
76501
76502 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76503
76504         * lib/config.charset: A few additions for Solaris.
76505
76506 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76507
76508         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76509         * lib/localcharset.c (locale_charset): Declare as extern "C".
76510
76511 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76512
76513         * lib/config.charset: msdos in uk_UA uses CP1125.
76514
76515 2002-11-04  Bruno Haible  <bruno@clisp.org>
76516
76517         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76518         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76519         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76520         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76521         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76522
76523 2002-11-04  Bruno Haible  <bruno@clisp.org>
76524
76525         * lib/localcharset.c (locale_charset): Don't return an empty string.
76526
76527 2002-11-04  Bruno Haible  <bruno@clisp.org>
76528
76529         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76530         aliases.
76531
76532 2002-11-04  Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/config.charset: Update for newest glibc. Add canonical names
76535         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76536
76537 2002-11-04  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/config.charset: Add support for NetBSD.
76540
76541 2002-11-04  Bruno Haible  <bruno@clisp.org>
76542
76543         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76544
76545 2002-11-01  Bruno Haible  <bruno@clisp.org>
76546
76547         * configure.in: Add AC_CONFIG_AUX_DIR call.
76548         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76549         test/Makefile.
76550         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76551
76552 2002-09-28  Karl Berry  <karl@gnu.org>
76553
76554         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76555         installed automake until the next release, since changes have been
76556         made.
76557
76558 2002-09-25  Karl Berry  <karl@gnu.org>
76559
76560         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76561         * lib/getopt*: copy from libc/posix.
76562         * lib/gettext.h: copy from gettext.
76563         * lib/.cppi-disable: add strdup.c, gettext.h.
76564
76565 2002-09-25  Karl Berry  <karl@gnu.org>
76566
76567         * config/srclist.txt: enable gettext.h check.
76568         * config/config.{guess,sub}: update from prep.
76569         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76570                 from automake 1.6.3.
76571         See srclist*.
76572
76573 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76574
76575         * regex.c (PATFETCH): Remove the translating fetch.
76576         (PATFETCH_RAW): Rename to PATFETCH.
76577         (set_image_of_range): New fun.
76578         (SET_RANGE_TABLE_WORK_AREA): Use it.
76579         (regex_compile): Don't translate the pattern chars so eagerly.
76580         Only do it when inserting an `exactn' bytecode or when handling
76581         a char-range.
76582         (mutually_exclusive_p): Avoid empty statement.
76583
76584 2002-07-06  Jim Meyering  <meyering@lucent.com>
76585
76586         * m4/README: Don't mention Makefile.am.in.
76587         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76588
76589 2002-07-01  Jim Meyering  <meyering@lucent.com>
76590
76591         * lib/c-stack.c: Include sys/time.h.
76592         From Volker Borchert.
76593
76594 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76595
76596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76597
76598 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76599
76600         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76601         New macro.  Use it uniformly instead of
76602         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76603         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76604         reported by Vin Shelton.
76605
76606 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76607
76608         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76609         Do not assume SA_SIGINFO behavior.
76610         Bug reported by Jim Meyering on NetBSD 1.5.2.
76611
76612 2002-06-22  Jim Meyering  <meyering@lucent.com>
76613
76614         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76615         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76616
76617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76618         now that configure.ac uses AC_GNU_SOURCE.
76619         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76620         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76621
76622         Update to latest tools.  Suggestions from Paul Eggert.
76623         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76624         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76625         * m4/fnmatch.m4: Likewise.
76626         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76627         to AC_HEADER_STDBOOL
76628
76629 2002-06-22  Jim Meyering  <meyering@lucent.com>
76630
76631         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76632         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76633
76634 2002-06-22  Jim Meyering  <meyering@lucent.com>
76635
76636         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76637
76638         * lib/exitfail.c, exitfail.h: Likewise.
76639         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76640
76641         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76642         of fnmatch.h.
76643         (EXTRA_DIST): Add fnmatch_loop.c.
76644         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76645
76646         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76647         * lib/fnmatch.c: Update from diffutils-2.8.2.
76648         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76649         * lib/fnmatch.h: Remove file.
76650
76651 2002-06-21  Jim Meyering  <meyering@lucent.com>
76652
76653         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76654         * m4/mbrtowc.m4: Likewise.
76655
76656         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76657         * m4/mbswidth.m4: Reflect name change:
76658         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76659         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76660
76661         * m4/lib-link.m4: Update from gettext-0.11.2.
76662         * m4/gettext.m4: Likewise.
76663
76664         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76665         From Alfred M. Szmidt.
76666
76667 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76668
76669         * lib/file-type.h: Report an error if neither S_ISREG nor
76670         S_IFREG is defined, instead of using a test specific to glibc
76671         2.2.  This should be safe, since POSIX requires S_ISREG and
76672         Unix Version 7 had S_IFREG.  We don't need to check for
76673         <sys/types.h> since we don't use any symbols that it defines.
76674
76675 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76676
76677         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76678         $@-t, so that each temporary file name is unique and valid in the first
76679         8 characters, for operation under DOS.
76680
76681 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76682
76683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76684
76685 2002-06-15  Jim Meyering  <meyering@lucent.com>
76686
76687         Work even with DJGPP 2.03, which lacks support for symlinks.
76688         From Richard Dawe.
76689         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76690         is defined.
76691         * lib/lchown.c (S_ISLNK): Likewise.
76692
76693 2002-06-15  Jim Meyering  <meyering@lucent.com>
76694
76695         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76696         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76697         have been included before this file.
76698
76699 2002-06-14  Jim Meyering  <meyering@lucent.com>
76700
76701         * lib/file-type.h: Use the version from diffutils-2.8.2.
76702         * lib/file-type.c: Likewise.
76703
76704 2002-06-07  Jim Meyering  <meyering@lucent.com>
76705
76706         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76707         They're needed at least for NetBSD 1.5.2.
76708         ($statxfs_includes): Include those same headers.
76709         ($statxfs_includes): Include sys/vfs.h if available.
76710         ($statxfs_includes): Likewise for sys/statvfs.h.
76711         Check for the following members in both structs statfs and statvfs:
76712         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76713
76714 2002-06-01  Jim Meyering  <meyering@lucent.com>
76715
76716         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76717         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76718
76719 2002-05-28  Jim Meyering  <meyering@lucent.com>
76720
76721         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76722         Reported by Volker Borchert.
76723
76724 2002-05-27  Jim Meyering  <meyering@lucent.com>
76725
76726         Fix a problem seen only on nonconforming systems whereby ls.c's
76727         use of localtime, and then of gettimeofday would cause trouble:
76728         the localtime call used to initialize rpl_gettimeofday's save
76729         mechanism would clobber ls's current local time information so
76730         that in any long listing the first file would always be listed
76731         with date 1970-01-01.  Analysis by Volker Borchert.
76732
76733         * lib/gettimeofday.c (localtime): Undefine.
76734         (rpl_localtime): New function.
76735
76736 2002-05-27  Jim Meyering  <meyering@lucent.com>
76737
76738         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76739         localtime.
76740
76741         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76742         use the replacement function; it wouldn't resolve at link time.
76743         Reported by Volker Borchert.
76744
76745 2002-05-22  Jim Meyering  <meyering@lucent.com>
76746
76747         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76748         file-type.h.
76749         * lib/file-type.h: New file.
76750         * lib/file-type.c (file_type): New file/function.  Extracted from
76751         diffutils.
76752
76753 2002-04-30  Jim Meyering  <meyering@lucent.com>
76754
76755         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76756
76757 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76758
76759         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76760
76761 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76762
76763         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76764         Do not check for alloca.h (no longer used) or stdbool.h (was never
76765         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76766
76767 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76768
76769         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76770
76771 2002-04-29  Jim Meyering  <meyering@lucent.com>
76772
76773         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76774         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76775         Use AC_FUNC_STRNLEN here instead.
76776
76777         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76778         With autoconf-2.53a, it's part of AC_PROG_CC.
76779
76780 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76781
76782         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76783         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76784
76785 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76786
76787         * lib/sig2str.h, lib/sig2str.c: New files.
76788         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76789
76790 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76791
76792         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76793         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76794         of 127, since 64 is the largest conceivable number for ancient
76795         nonstandard hosts.
76796         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76797
76798 2002-04-28  Jim Meyering  <meyering@lucent.com>
76799
76800         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76801
76802 2002-04-24  Jim Meyering  <meyering@lucent.com>
76803
76804         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76805         (jm_PREREQ): Use it.
76806
76807         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76808         mach/mach.h fcntl.h.
76809         Check for this function: setlocale.
76810
76811 2002-04-24  Jim Meyering  <meyering@lucent.com>
76812
76813         * lib/gettext.h: New file, from Gettext.
76814         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76815         (libfetish_a_SOURCES): Add gettext.h.
76816
76817 2002-04-16  Jim Meyering  <meyering@lucent.com>
76818
76819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76820         ut_pid, ut_id, ut_exit.
76821
76822 2002-04-16  Jim Meyering  <meyering@lucent.com>
76823
76824         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76825         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76826         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76827
76828 2002-04-12  Jim Meyering  <meyering@lucent.com>
76829
76830         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76831         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76832         existence of the getmntinfo function.  Needed for Darwin 5.3.
76833
76834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76835         This is necessary at least on Darwin 5.3.
76836
76837         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76838         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76839         strnlen.o in the library, and that makes some versions of ranlib
76840         object.
76841
76842 2002-04-12  Jim Meyering  <meyering@lucent.com>
76843
76844         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76845
76846 2002-04-09  Jim Meyering  <meyering@lucent.com>
76847
76848         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76849         to be more precise.  Rather than saying we're checking whether the
76850         function `works', say what we're testing.
76851         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76852         Reported by Bruno Haible.
76853
76854 2002-03-10  Jim Meyering  <meyering@lucent.com>
76855
76856         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76857         Suggestion from Santiago Vila.
76858
76859 2002-03-08  Jim Meyering  <meyering@lucent.com>
76860
76861         * lib/rename.c: Mention that this wrapper is needed also on
76862         mips-dec-ultrix4.4 systems.
76863
76864 2002-03-02  Jim Meyering  <meyering@lucent.com>
76865
76866         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76867         not HAVE_CLOCK_SETTIME.
76868
76869 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76870
76871         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76872         Check for clock_settime.
76873
76874 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76875
76876         * lib/nanosleep.h: Rename to....
76877         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76878
76879         * lib/gettime.c: New file.
76880         * lib/settime.c: New file.
76881         * lib/stime.c: Remove.
76882
76883         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76884         timespec.h.  Remove nanosleep.h.
76885
76886 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76887
76888         * m4/acl.m4: New file.
76889         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76890         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76891
76892 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76893
76894         * lib/acl.c, lib/acl.h: New files.
76895         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76896
76897 2002-02-24  Jim Meyering  <meyering@lucent.com>
76898
76899         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76900         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76901         cause trouble.  Reported by Nelson Beebe.
76902
76903 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76904
76905         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76906         compilers that don't know that xalloc_die never returns.
76907
76908 2002-02-20  Jim Meyering  <meyering@lucent.com>
76909
76910         * lib/getdate.c: Regenerate using bison-1.33.
76911
76912 2002-02-17  Jim Meyering  <meyering@lucent.com>
76913
76914         * config/config.guess (main): Don't use `head -1'; it's no longer
76915         portable. Use `sed 1q' instead.
76916
76917 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76918
76919         * m4/codeset.m4: Upgrade to gettext-0.11.
76920         * m4/gettext.m4: Upgrade to gettext-0.11.
76921         * m4/glibc21.m4: Upgrade to gettext-0.11.
76922         * m4/iconv.m4: Upgrade to gettext-0.11.
76923         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76924         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76925         * m4/lib-ld.m4: New file, from gettext-0.11.
76926         * m4/lib-link.m4: New file, from gettext-0.11.
76927         * m4/lib-prefix.m4: New file, from gettext-0.11.
76928         * m4/progtest.m4: Upgrade to gettext-0.11.
76929
76930 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76931
76932         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76933         (jm_PREREQ): Use it.
76934
76935 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76936
76937         * lib/posixver.c, lib/posixver.h: New files.
76938         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76939
76940 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76941             Bruno Haible  <bruno@clisp.org>
76942
76943         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76944         (fwrite_success_callback): New declaration.
76945         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76946         print_unicode_char. Call failure callback instead of error.
76947         (fwrite_success_callback): New function.
76948         (exit_failure_callback): New function.
76949         (fallback_failure_callback): New function.
76950         (print_unicode_char): Call unicode_to_mb.
76951
76952 2002-01-26  Jim Meyering  <meyering@lucent.com>
76953
76954         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76955         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76956
76957 2002-01-26  Jim Meyering  <meyering@lucent.com>
76958
76959         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76960
76961 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76962
76963         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76964
76965 2002-01-22  Jim Meyering  <meyering@lucent.com>
76966
76967         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76968         Otherwise, some versions of automake would omit the rule that makes
76969         Makefile from Makefile.in.
76970
76971 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76972
76973         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76974         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76975         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76976         (memcoll): Set errno to zero if there is no error.
76977
76978         * lib/quotearg.c (quotearg_buffer_restyled):
76979         Fix bug with quoting buffers containing NUL when backslashing escapes.
76980         This bug was exposed by the other changes in this patch.
76981         (quotearg_n_options): New arg ARGSIZE.
76982         All callers changed.
76983         (quoting_options_from_style): New function.
76984         (quotearg_n_style): Use it.
76985         (quotearg_n_style_mem): New function.
76986
76987         * lib/quotearg.h (quotearg_n_style_mem): New function.
76988
76989 2002-01-19  Jim Meyering  <meyering@lucent.com>
76990
76991         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76992         Remove useless quotes: DF_PROG="df".
76993         * m4/strnlen.m4: New file.
76994
76995 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76996
76997         * lib/backupfile.c (ISDIGIT): Comment fix.
76998         * lib/getdate.y (ISDIGIT): Likewise.
76999         * lib/posixtm.c (ISDIGIT, year): Likewise.
77000         * lib/strverscmp.c (ISDIGIT): Likewise.
77001         * lib/userspec.c (ISDIGIT): Likewise.
77002
77003 2002-01-16  Jim Meyering  <meyering@lucent.com>
77004
77005         * lib/getdate.y: Add three semicolons, each just before a closing
77006         brace. Bison (as of version 1.31) no longer papers over that mistake.
77007
77008 2002-01-05  Jim Meyering  <meyering@lucent.com>
77009
77010         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77011
77012 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77013
77014         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77015         not silently exit merely because the output buffer happens to
77016         have nothing pending.
77017
77018 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77019
77020         See the big note in ../ChangeLog.
77021         * lib/human.c (suffixes): Prefer K to k for 1024.
77022         (generate_suffix_backwards): New function.
77023         (human_readable_inexact): Use it.
77024         * lib/xstrtol.c (__xstrtol): If there is no number but there
77025         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77026         Accept 'K' as well as 'k'.
77027
77028 2001-12-15  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/regex.h (__restrict_arr): Update from libc.
77031
77032         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77033         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77034         (STREQ): Define.
77035
77036 2001-12-14  Jim Meyering  <meyering@lucent.com>
77037
77038         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77039         Suggestion from Bruno Haible.
77040
77041 2001-12-10  Jim Meyering  <meyering@lucent.com>
77042
77043         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77044         xrealloc, Instead, include "xalloc.h".
77045         (initbuffer): Don't cast xmalloc return value to char*.
77046         (readline): Reword comment.
77047         Don't cast xrealloc return value to char*
77048         Return NULL, not 0.
77049
77050 2001-12-09  Jim Meyering  <meyering@lucent.com>
77051
77052         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77053         about `signed and unsigned type in conditional expression'.
77054         * lib/posixtm.c (posix_time_parse): Likewise.
77055
77056         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77057
77058         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77059         to avoid a pedantic warning.
77060
77061         * lib/getstr.c: Don't include assert.h.
77062         (getstr): Remove warning-evoking assertions.
77063         Return -1 if offset parameter is out of bounds.
77064         Change the type of a local from int to size_t.
77065
77066         * lib/strftime.c (my_strftime_localtime_r): Include this function
77067         definition in the `#if ! HAVE_TM_GMTOFF' block.
77068
77069         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77070         Include xalloc.h instead.
77071
77072 2001-12-02  Jim Meyering  <meyering@lucent.com>
77073
77074         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77075         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77076         included.
77077
77078         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77079         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77080
77081 2001-11-30  Akim Demaille  <akim@epita.fr>
77082
77083         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77084         before being defined.
77085
77086 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77087
77088         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77089         First arg is int, not unsigned.
77090         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77091         (SIZE_MAX, UINT_MAX): New macros.
77092         (quotearg_n_options): Abort if N is negative.
77093         Avoid overflow check on hosts where size_t is 64 bits and int
77094         is 32 bits, as overflow is impossible there.
77095         Fix off-by-one typo that caused unnecessary reallocation.
77096
77097 2001-11-27  Jim Meyering  <meyering@lucent.com>
77098
77099         * lib/tempname.c: Merge with version from libc.
77100         * lib/regex.c: Likewise.
77101
77102         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77103         systems for which STDC_HEADERS is 0, it was not included, resulting in
77104         a warning about an integer-to-pointer conversion problem with getenv.
77105         Reported by Volker Borchert.
77106
77107 2001-11-26  Jim Meyering  <meyering@lucent.com>
77108
77109         * lib/gtod.h: Remove file.
77110         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77111         * lib/gettimeofday.c: Don't include gtod.h.
77112         (GTOD_init): Remove function.
77113         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77114         Suggestion from Volker Borchert.
77115
77116 2001-11-23  Jim Meyering  <meyering@lucent.com>
77117
77118         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77119         it.
77120         * lib/hash.c (struct hash_table): Define it here instead.
77121
77122 2001-11-22  Jim Meyering  <meyering@lucent.com>
77123
77124         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77125
77126 2001-11-20  Jim Meyering  <meyering@lucent.com>
77127
77128         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77129         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77130
77131 2001-11-19  Jim Meyering  <meyering@lucent.com>
77132
77133         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77134         directory.  Use "conftestXXXXXX" as the template.
77135         Suggestion from Paul Eggert.
77136
77137         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77138         immediately, so the test doesn't mistakenly hit the max-open-files
77139         limit.
77140
77141 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77142
77143         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77144         (TEMPORARIES): New macro.
77145         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77146         removes an artificial limitation (e.g. HP-UX 10.20, where
77147         TMP_MAX is 17576).
77148
77149 2001-11-18  Jim Meyering  <meyering@lucent.com>
77150
77151         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77152
77153 2001-11-18  Jim Meyering  <meyering@lucent.com>
77154
77155         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77156         on SunOS 4.
77157
77158         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77159         files will be created before anything else.
77160
77161 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77162
77163         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77164         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77165
77166 2001-11-17  Jim Meyering  <meyering@lucent.com>
77167
77168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77169         Prompted by a report from Bob Proulx.
77170
77171         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77172         Instead, require UTILS_FUNC_MKSTEMP.
77173
77174 2001-11-17  Jim Meyering  <meyering@lucent.com>
77175
77176         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77177         Now, that's done as part of AC_FUNC_STRTOD.
77178
77179 2001-11-17  Jim Meyering  <meyering@lucent.com>
77180
77181         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77182         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77183         rather than group writable.  Patch by Juan F. Codagnone.
77184
77185         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77186         xrealloc, Instead, include "xalloc.h".
77187
77188         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77189         Remove explicit declarations of xmalloc, xrealloc,
77190         and xstrdup.  Instead, include "xalloc.h".
77191
77192         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77193         unlocked-io.h.
77194         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77195         Likewise.
77196         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77197
77198         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77199         Reported by Padraig Brady.
77200
77201         * lib/mkstemp.c: #undef mkstemp.
77202         Include config.h.
77203         (rpl_mkstemp): Rename from mkstemp.
77204         Protoize.
77205
77206 2001-11-16  Jim Meyering  <meyering@lucent.com>
77207
77208         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77209         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77210         determine the amount of total physical memory, use pstat_getstatic.
77211         HPUX-11 doesn't define _SC_PHYS_PAGES.
77212         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77213         If sysconf couldn't be used to determine the amount of available
77214         physical memory, use both pstat_getstatic and pstat_getdynamic.
77215         Based on a patch from Bob Proulx.
77216
77217 2001-11-10  Jim Meyering  <meyering@lucent.com>
77218
77219         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77220         (jm_PREREQ): Use it.
77221
77222 2001-11-09  Jim Meyering  <meyering@lucent.com>
77223
77224         * m4/jm-macros.m4: Require autoconf-2.52f.
77225         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77226         Use these AC_-prefixed names, not the AM_-prefixed ones.
77227
77228         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77229
77230 2001-11-05  Jim Meyering  <meyering@lucent.com>
77231
77232         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77233
77234 2001-11-04  Jim Meyering  <meyering@lucent.com>
77235
77236         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77237         $DEFS.
77238
77239 2001-11-03  Jim Meyering  <meyering@lucent.com>
77240
77241         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77242         of AC_DEFUN.
77243
77244         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77245         know the name of the variable in the macro definition.
77246
77247 2001-11-03  Jim Meyering  <meyering@lucent.com>
77248
77249         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77250         in argmatch_to_argument call.
77251
77252         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77253         argument.
77254
77255         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77256         e.g., a fault due to an attempt to free a NULL pointer.
77257
77258 2001-11-01  Jim Meyering  <meyering@lucent.com>
77259
77260         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77261         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77262
77263 2001-11-01  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/dirfd.c, lib/dirfd.h: New files.
77266         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77267
77268         * lib/hash.c (hash_print) [TESTING]: Clean up.
77269
77270 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77271
77272         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77273         to avoid a warning if -Wall.
77274
77275 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77276
77277         * README: New file
77278         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77279         (per RMS's instructions, this is now the canonical source)
77280         * lgpl/, gpl/: New directories.
77281
77282 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77283
77284         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77285
77286 2001-10-21  Jim Meyering  <meyering@lucent.com>
77287
77288         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77289         this code would end up calling gettext even in packages built
77290         with --disable-nls.
77291         * lib/getopt.c (_): Likewise.
77292         * lib/regex.c (_): Likewise.
77293
77294 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77295
77296         * m4/error.m4 (jm_PREREQ_ERROR):
77297         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77298         AC_FUNC_STRERROR_R does that.
77299         Check for strerror declaration.
77300
77301         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77302         are supposed to have them these days.
77303         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77304         Merge changes from latest Autoconf CVS.
77305         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77306         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77307         POSIX decided to standardize on the int flavor of strerror_r.
77308
77309 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77310
77311         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77312         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77313         Use strerror_r that is only a macro, even if it is not a function.
77314         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77315         (private_strerror): Use prototypes, not old-style function definition.
77316         (print_errno_message): New function.
77317         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77318         char*-flavored one.
77319         (error_tail, error, error_at_line): Use it.
77320
77321 2001-10-11  Jim Meyering  <meyering@lucent.com>
77322
77323         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77324         and quote_n (1, ... to avoid clobbering a buffer.
77325
77326 2001-10-05  Jim Meyering  <meyering@lucent.com>
77327
77328         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77329         hash-pjw.h.
77330         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77331         * lib/hash-pjw.h: New file.
77332
77333 2001-09-30  Jim Meyering  <meyering@lucent.com>
77334
77335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77336         `struct fsstat' has the `f_fstypename' member.
77337         Use that to define FS_TYPE, which is now used to make
77338         the getfsstat link test tighter.
77339
77340 2001-09-30  Jim Meyering  <meyering@lucent.com>
77341
77342         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77343         Include <sys/ucred.h>, for Apple Darwin.
77344         Include sys/mount.h and sys/fs_types.h only if available.
77345         (FS_TYPE): Define.
77346         (read_filesystem_list): Use FS_TYPE.
77347
77348 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77349
77350         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77351         a boolean context.
77352
77353 2001-09-29  Jim Meyering  <meyering@lucent.com>
77354
77355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77356         [one-argument getmntent function]): Include stdio.h before mntent.h.
77357         SunOS 4.1.x needs it for the declaration of `FILE'.
77358         Patch by Volker Borchert.
77359
77360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77361         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77362         sys/fs_types.h, and make the link-test for getfsstat guard #include
77363         directives with appropriate #if HAVE_*_H tests so that we can
77364         detect getfsstat on Apple Darwin1.3.7 systems.
77365         Reported by Nelson Beebe.
77366         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77367
77368 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77369
77370         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77371         #defines strtoimax.  Also treat the other strto* functions
77372         like strtoimax.
77373
77374         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77375         Check for strtoul and strtoumax,
77376         as those declarations are made even in the signed case.
77377         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77378         Likewise, for strtol and strtoimax.
77379
77380 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77381
77382         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77383         #defines strtoimax.  Also treat the other strto* functions
77384         like strtoimax.
77385
77386         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77387         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77388         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77389
77390 2001-09-26  Jim Meyering  <meyering@lucent.com>
77391
77392         Most macros in unlocked-io.h had the wrong number of arguments.
77393         * lib/gen-uio: New script.
77394         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77395         * lib/unlocked-io.hin: Remove file.
77396         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77397         rather than trying to embed it here.
77398         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77399         Reported by Padraig Brady.
77400
77401 2001-09-25  Volker Borchert  <bt@teknon.de>
77402
77403         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77404         `result'.
77405
77406 2001-09-24  Jim Meyering  <meyering@lucent.com>
77407
77408         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77409
77410 2001-09-23  Jim Meyering  <meyering@lucent.com>
77411
77412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77413         instead of the mere test for existence of mntent.h.  The latter
77414         would get a false-positive on AIX 3.4 systems.
77415         In the outer getmntent if-block, don't die if neither of the getmntent
77416         tests succeeds.  Instead, just fall through and continue with the
77417         remaining tests.
77418
77419 2001-09-23  Jim Meyering  <meyering@lucent.com>
77420
77421         * lib/mountlist.c: Remove useless parentheses in #if directives.
77422         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77423         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77424
77425 2001-09-22  Jim Meyering  <meyering@lucent.com>
77426
77427         * m4/gettext.m4: New file.  From gettext.
77428         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77429         * m4/progtest.m4: Likewise
77430         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77431         * m4/glibc21.m4: Likewise.
77432
77433         * m4/libintl.m4: Remove.  No longer used.
77434
77435 2001-09-22  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/localcharset.c: Update from latest gettext.
77438         * lib/config.charset: Likewise.
77439
77440 2001-09-20  Jim Meyering  <meyering@lucent.com>
77441
77442         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77443         strtoimax.
77444         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77445         strtoumax.
77446
77447 2001-09-20  Jim Meyering  <meyering@lucent.com>
77448
77449         * lib/xstrtol.c (strtoimax): Guard declaration with
77450         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77451         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77452         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77453         (strtoumax): Likewise, for completeness (it wasn't necessary).
77454
77455 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77456
77457         * lib/strtoimax.c (HAVE_LONG_LONG):
77458         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77459         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77460         to work around bug in IBM C compiler.
77461
77462 2001-09-17  Jim Meyering  <meyering@lucent.com>
77463
77464         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77465         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77466         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77467         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77468         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77469         whenever the right hand side need not be expanded by the shell.
77470
77471 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77472
77473         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77474         library.  It's not correct, as some older glibcs are buggy.
77475         fnmatch wasn't fixed until glibc 2.2.
77476
77477         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77478         special shell magic here.
77479
77480 2001-09-16  Jim Meyering  <meyering@lucent.com>
77481
77482         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77483         * m4/jm-macros.m4: Require it.
77484
77485 2001-09-16  Jim Meyering  <meyering@lucent.com>
77486
77487         * lib/mkdir.c: New file.
77488
77489 2001-09-15  Jim Meyering  <meyering@lucent.com>
77490
77491         * m4/jm-macros.m4: Check for help2man.
77492
77493 2001-09-11  Jim Meyering  <meyering@lucent.com>
77494
77495         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77496         The body, by Paul Eggert, was moved here from configure.in.
77497         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77498
77499 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77500
77501         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77502         (jm_PREREQ): Use it.
77503
77504 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77505
77506         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77507         Use ssize_t, not int, to store result of readlink.
77508         Check for ssize_t overflow as well as size_t overflow,
77509         as POSIX says the result of readlink is implementation-defined
77510         when ssize_t overflows.
77511         Remove unnecessary cast to char*.
77512         Use free+malloc instead of realloc, as the storage doesn't need
77513         to be preserved and it's clearer and can be more efficient that way.
77514         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77515         * lib/xreadlink.h (xreadlink): Update prototype.
77516
77517 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77518
77519         * lib/xgetcwd.c: Revert some of the previous change; intead,
77520         fix the HAVE_GETCWD_NULL code to behave more like the
77521         !HAVE_GETCWD_NULL code used to.
77522
77523         Include "xalloc.h".
77524         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77525         invoke xalloc_die.
77526
77527 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77528
77529         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77530         sys/param.h, as pathmax.h includes them.
77531
77532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77533
77534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77535         (jm_PREREQ_XGETCWD): New macro.
77536
77537         * m4/getcwd.m4: New file.
77538
77539 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77540
77541         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77542         like the HAVE_GETCWD_NULL code.
77543         Include pathmax.h if not HAVE_GETCWD.
77544         Do not include xalloc.h.
77545         (INITIAL_BUFFER_SIZE): New symbol.
77546         Do not use xmalloc / xrealloc, since the caller is responsible for
77547         handling errors.  Preserve errno around `free' during failure.
77548         Do not overrun buffer when using getwd.
77549
77550 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77551
77552         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77553         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77554         getcwd (NULL, 0).
77555
77556 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77557
77558         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77559         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77560         spotted by Jim Meyering.
77561
77562 2001-09-03  Jim Meyering  <meyering@lucent.com>
77563
77564         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77565         failure.
77566
77567 2001-09-02  Jim Meyering  <meyering@lucent.com>
77568
77569         * lib/error.c: Update from GNU libc.
77570
77571 2001-09-01  Jim Meyering  <meyering@lucent.com>
77572
77573         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77574         Used by df.
77575
77576 2001-09-01  Jim Meyering  <meyering@lucent.com>
77577
77578         * lib/xreadlink.c: New file.
77579         * lib/xreadlink.h: New file.
77580         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77581         xreadlink.h.
77582
77583         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77584         doesn't conflict with sparc Solaris 7's definition in
77585         /usr/include/sys/int_types.h.
77586
77587         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77588         files.
77589         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77590         and strncasecmp as r-values.  Unixware didn't have declarations.
77591
77592 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77593
77594         * lib/xstrtol.h: Add copyright notice.
77595         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77596         LONGINT_INVALID_SUFFIX_CHAR.
77597
77598 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77599
77600         * lib/xstrtol.c (strtoimax): New decl.
77601
77602 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77603
77604         * lib/xgetcwd.c: Don't include pathmax.h.
77605         Include stdlib.h and unistd.h if available.
77606         Include xalloc.h.
77607         (xmalloc, xstrdup, free): Remove decls.
77608         (xgetcwd): Don't assume sizes fit in unsigned.
77609         Check for overflow when computing sizes.
77610         Simplify reallocation code.
77611
77612 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77613
77614         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77615         a directory's st_size can have an arbitrary value, so the old
77616         usage could waste an arbitrary amount of memory.  All uses
77617         changed.
77618         * lib/savedir.h: Update prototype.
77619
77620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77621
77622         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77623
77624         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77625         old strtoimax.c.
77626
77627         Also, make the following further changes to make this file's
77628         configuration more similar to that of strtol.c:
77629         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77630         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77631         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77632         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77633         changed to signed values.
77634
77635         And make the following changes as well:
77636         Fix copyright notice, as 1999 was missing.
77637         (verify): New macro.
77638         (strtoimax): Check sizes at compile-time, not run-time.
77639         Prefer strtol to strtoll if both work.
77640         (main): Remove; it was not that useful and was a pain to maintain.
77641
77642         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77643
77644 2001-08-31  Jim Meyering  <meyering@lucent.com>
77645
77646         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77647         Use an initial, malloc'd, buffer of length 128 rather than
77648         a statically allocated one of length 1024.
77649
77650 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77651
77652         Simplify code, partly by assuming autoconf 2.52 semantics.
77653
77654         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77655
77656         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77657         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77658         All uses removed.
77659         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77660         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77661         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77662         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77663         jm_AC_HEADER_INTTYPES_H.
77664         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77665
77666         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77667
77668         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77669         Quote first arg of AC_DEFUN.
77670         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77671         since they are needed to parse the include file even if we need
77672         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77673         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77674         but with opposite signedness.
77675
77676 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77677
77678         Merge 'exclude' changes from tar 1.13.22.
77679         This fixes one or two unlikely storage allocation overflow bugs,
77680         but doesn't change user-visible behavior otherwise.
77681
77682 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77683
77684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77685         (jm_PREREQ_EXCLUDE): New macro.
77686
77687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77688
77689         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77690         tm to be declared.
77691
77692 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77693
77694         * lib/hash.c: Remove '2001' from copyright notice.
77695
77696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77697
77698         * lib/full-write.h: New file.
77699         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77700         * lib/full-write.c: Correct credits, as cccp.c no longer
77701         exists and anyway it was so heavily changed from the old cccp
77702         code as to be unrecognizable.  Include full-write.h.
77703         (full_write): Return size_t, with short writes meaning failure.
77704         All callers changed.  This fixes a bug with large buffers
77705         on 64-bit hosts.
77706         * lib/utime.c: Include full-write.h.
77707
77708 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77709
77710         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77711         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77712         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77713         Include if available.
77714         (<xalloc.h>): Include
77715         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77716         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77717         collide with FNM macros.
77718         (struct patopts): New struct.
77719         (struct exclude): Use it, as exclude patterns now come with options.
77720         (new_exclude): Support above changes.
77721         (new_exclude, add_exclude_file):
77722         Initial size must now be a power of two to simplify overflow checking.
77723         (free_exclude, fnmatch_no_wildcards): New function.
77724         (excluded_filename): No longer requires options arg, as the options
77725         are determined by add_exclude.  Now returns bool, not int.
77726         (excluded_filename, add_exclude):
77727         Add support for the fancy new exclusion options.
77728         (add_exclude, add_exclude_file): Now takes int options arg.
77729         Check for arithmetic overflow when computing sizes.
77730         (add_exclude_file): xrealloc might modify errno, so don't
77731         realloc until after errno might be used.
77732
77733         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77734         New macros.
77735         (free_exclude): New decl.
77736         (add_exclude, add_exclude_file): Now takes int options arg.
77737         (excluded_filename): No longer requires options arg, as the options
77738         are determined by add_exclude.  Now returns bool, not int.
77739
77740 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77741
77742         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77743
77744 2001-08-27  Jim Meyering  <meyering@lucent.com>
77745
77746         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77747
77748         * lib/version-etc.c (N_): Remove definition.
77749         Revert most of last change.
77750         Instead, simply don't mark the `Copyright...' string for translation.
77751         Based on advice from Paul Eggert.
77752
77753         * lib/strtoxmax.c: Tweak comment.
77754
77755 2001-08-26  Jim Meyering  <meyering@lucent.com>
77756
77757         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77758
77759         * m4/xstrtoimax.m4: New file.
77760         * m4/xstrtoumax.m4: Add comments explaining why we
77761         AC_REPLACE_FUNCS(strtol).
77762
77763 2001-08-26  Jim Meyering  <meyering@lucent.com>
77764
77765         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77766         of copyright with `%s' so translators don't get an untranslated
77767         message in 2002.
77768         (COPYRIGHT_YEAR): Define.
77769         (version_etc): Use fprintf rather than fputs.
77770         Suggestion from Ulrich Drepper.
77771
77772         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77773
77774         * lib/strtoll.c: New file, from GNU libc.
77775         * lib/xstrtoimax.c: New file.
77776
77777         * lib/xstrtol.h: Add xstrtoimax.
77778         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77779         * lib/strtoimax.c: New file.  Likewise, but first define
77780         STRTOUXMAX_SIGNED.
77781
77782         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77783         ...
77784         * lib/strtoxmax.c: ... then renamed to this.
77785
77786 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77787
77788         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77789         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77790         (jm_AC_TYPE_INTMAX_T): New macro.
77791         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77792
77793         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77794
77795         * m4/longlong.m4: Renamed from ulonglong.m4.
77796         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77797         * m4/uintmax_t.m4: Removed.
77798
77799 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77800
77801         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77802         Port to Solaris 8, where 'sed' requires a space after the 'r'
77803         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77804         Redirect output to $tmp just once.
77805
77806 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77807
77808         * lib/addext.c (<errno.h>): Include.
77809         (errno): Declare if not defined.
77810         (addext): Work correctly when pathconf returns -1 and leaves
77811         errno alone because there is no limit.  Also, work even if
77812         pathconf returns a value greater than SIZE_MAX.
77813
77814 2001-08-12  Jim Meyering  <meyering@lucent.com>
77815
77816         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77817         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77818         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77819         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77820         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77821         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77822         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77823         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77824         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77825         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77826         utime.m4, utimes.m4, xstrtoumax.m4:
77827         Quote the first argument in each use of AC_DEFUN.
77828
77829 2001-08-12  Jim Meyering  <meyering@lucent.com>
77830
77831         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77832         Simply `return getcwd (NULL, 0);'.
77833         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77834         Use 1300 as initial value for length, not PATH_MAX.
77835
77836         * lib/pathmax.h: Clean up cpp syntax.
77837
77838 2001-08-12  Jim Meyering  <meyering@lucent.com>
77839
77840         * lib/gettimeofday.c: New file.
77841         * lib/gtod.h: New file.
77842         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77843
77844 2001-08-05  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/jm-macros.m4: Require autoconf-2.52.
77847
77848 2001-08-04  Jim Meyering  <meyering@lucent.com>
77849
77850         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77851         stmt, to get in sync with glibc.
77852
77853 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77854
77855         The following changes are from gettext 0.10.39 as maintained by
77856         Bruno Haible.
77857
77858         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77859         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77860         with inverted sense.  All uses changed.
77861
77862         * lib/mbswidth.c: Don't include <limits.h>.
77863         Include <stdlib.h> and <string.h> unconditionally.
77864         (iswcntrl, mbsinit, ISCNTRL): New macros.
77865         (mbsnwidth): Use K&R style function declarations.
77866         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77867         can optimize it when MB_CUR_MAX == 1.
77868         The width of control characters is zero, not 1.
77869
77870 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77871
77872         The following changes are from gettext 0.10.39 as maintained by
77873         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77874
77875         * m4/codeset.m4: Upgrade to serial AM1.
77876         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77877         all uses changed.  Quote first arg of AC_DEFUN.
77878         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77879
77880         * m4/iconv.m4: Upgrade to serial AM2.
77881         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77882         Add --with-libconv-prefix.
77883         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77884         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77885         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77886         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77887         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77888
77889         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77890         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77891         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77892         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77893         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77894         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77895         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77896         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77897         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77898
77899         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77900         string.h any more.
77901
77902         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77903         not the default value.
77904
77905         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77906         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77907         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77908         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77909         Also check for iswcntrl, used for wcwidth fallback.
77910         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77911         to Autoconf 2.13.
77912
77913 2001-08-03  Jim Meyering  <meyering@lucent.com>
77914
77915         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77916         as it was in the original.  Reported by Paul Eggert.
77917
77918 2001-07-16  Jim Meyering  <meyering@lucent.com>
77919
77920         * m4/gettimeofday.m4: New file.
77921         Prompted by a report from Bernhard Baehr.
77922
77923 2001-07-15  Jim Meyering  <meyering@lucent.com>
77924
77925         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77926         stuff. Now it's in ../Makefile.cfg.
77927
77928 2001-07-15  Jim Meyering  <meyering@lucent.com>
77929
77930         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77931         (BUILT_SOURCES): Add unlocked-io.h.
77932         (io_functions): Define.
77933         (unlocked-io.h): New rule.
77934         (DISTCLEANFILES): Add unlocked-io.h.
77935         (all-local): Depend on unlocked-io.h, to ensure it is created.
77936
77937         * lib/unlocked-io.hin: New file
77938
77939         * lib/regex.c: Update from glibc.
77940
77941 2001-07-05  Jim Meyering  <meyering@lucent.com>
77942
77943         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77944         recommendation.
77945         (libfetish_a_SOURCES): Put all .h files here instead.
77946         Remove a thus-exposed (better checks in automake) duplicate and
77947         two unnecessary .h files.
77948
77949 2001-07-04  Jim Meyering  <meyering@lucent.com>
77950
77951         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77952         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77953         distcheck failure.
77954
77955 2001-07-02  Jim Meyering  <meyering@lucent.com>
77956
77957         The following changes were prompted by suggestions from Bruno Haible.
77958
77959         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77960         is now generated.
77961         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77962         definition of EXTRA_DIST.
77963         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77964         ensure that the generated file is created/updated whenever the list
77965         of $(unlocked_functions) is changed.
77966         (jm-glibc-io.m4): New rule.
77967         (unlocked-io.h): New rule -- currently unused.
77968
77969 2001-06-24  Jim Meyering  <meyering@lucent.com>
77970
77971         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77972         unmatched right bracket, rather than kludging it with an extra,
77973         falsely-matching quote in a comment.  Patch by Akim Demaille.
77974
77975 2001-06-11  Jim Meyering  <meyering@lucent.com>
77976
77977         * lib/regex.c: Update from GNU libc.
77978
77979 2001-05-27  Jim Meyering  <meyering@lucent.com>
77980
77981         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77982         Check for ut_type in struct utmp.
77983
77984 2001-05-27  Jim Meyering  <meyering@lucent.com>
77985
77986         * lib/readutmp.h (UT_TYPE): Define.
77987
77988 2001-05-24  Jim Meyering  <meyering@lucent.com>
77989
77990         * lib/argmatch.c: Include "quote.h".
77991         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77992         quote function.  Reported by Göran Uddeborg.
77993
77994 2001-05-22  Jim Meyering  <meyering@lucent.com>
77995
77996         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77997         now that we use the package-supplied version unconditionally.
77998         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77999
78000 2001-05-21  Jim Meyering  <meyering@lucent.com>
78001
78002         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78003         shell syntax errors.
78004
78005 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78006
78007         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78008
78009 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78010
78011         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78012         Don't bother to check library strftime, since
78013         we'll be using our own my_strftime function anyway.
78014         Define my_strftime instead of strftime.
78015
78016 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78017
78018         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78019         which is not yet declared.
78020
78021 2001-05-15  Jim Meyering  <meyering@lucent.com>
78022
78023         * m4/regex.m4: Use proper quoting so brackets appear in the test
78024         program.
78025         Reported by, and with help from, Bruno Haible.
78026
78027 2001-05-13  Jim Meyering  <meyering@lucent.com>
78028
78029         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78030         undefined.
78031
78032 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78033
78034         dirname code cleanup.  base_name now behaves more compatibly
78035         with POSIX basename when given file names that have trailing
78036         slashes, and similarly for dir_name.  Add new primitives
78037         base_len and dir_len.  Put the directory-name-related decls
78038         into dirname.h.
78039
78040         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78041         * lib/backupfile.c (base_name): Likewise.
78042         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78043         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78044         * lib/makepath.c (strip_trailing_slashes): Likewise.
78045         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78046         ISSLASH): Likewise.
78047         * lib/rename.c (strip_trailing_slashes): Likewise.
78048         * lib/same.c (base_name): Likewise.
78049         * lib/stripslash.c (ISSLASH): Likewise.
78050
78051         * lib/addext.c: Include <dirname.h> after size_t is defined.
78052         * lib/backupfile.c: Likewise.
78053
78054         * lib/addext.c (addext): Use base_len to trim redundant
78055         trailing slashes instead of doing it ourselves.
78056         But do not trim the last slash if it is not redundant.
78057
78058         * lib/backupfile.c (find_backup_file_name,
78059         max_backup_version): Use base_len instead of rolling it ourselves.
78060         Handle the case of "" and (on DOS) "C:" correctly.
78061
78062         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78063         needed. Include <string.h>, <dirname.h>.
78064         (base_name): Allow file names ending in slashes, other than names
78065         that are all slashes.  In this case, return the basename followed
78066         by the slashes.  This is more general, and can be used in places
78067         where the original base_name purposely had an assertion failure.
78068         (base_len): New function.
78069
78070         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78071         Do not include <assert.h>; no longer needed.
78072         Include xalloc.h.
78073         (memrchr): Remove decl.
78074         (dir_name_r): Remove.
78075         (dir_len): Renamed from dirlen.  All callers changed.
78076         Rewrite in terms of base_name, for simplicity and consistency.
78077         (dir_name): Never return NULL.  All callers changed.
78078         Do not include <stdlib.h> in test program; no longer needed.
78079         return 0; is fine for test program.
78080
78081         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78082         New macros.
78083         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78084
78085         * lib/path-concat.c (path_concat): Use base_len to compute
78086         base length, not strlen; this means we cannot rely on memcpy
78087         to null-terminate.
78088
78089         * lib/same.c (STREQ): Remove.
78090         (same_name): Handle the case where the basename ends in trailing '/'.
78091
78092         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78093         a slash was stripped.  Do not strip the last slash after a
78094         file system prefix.
78095
78096 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78097
78098         * lib/Makefile.am (libfetish_a_SOURCES):
78099         Add strftime.c, since we now compile it on all hosts.
78100
78101         * lib/strftime.c (my_strftime):
78102         Define to nstrftime if emacs, but only if my_strftime is not defined.
78103         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78104         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78105         Add one more extra argument: a nanoseconds value.
78106         All uses changed.
78107         (ns): New macro.
78108         (my_strftime function): Add %N format.
78109         (emacs_strftimeu): Renamed from emacs_strftime,
78110         with extra ut argument.
78111
78112 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78115
78116 2001-04-21  Jim Meyering  <meyering@lucent.com>
78117
78118         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78119         doesn't interfere.
78120
78121 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78122
78123         * m4/ftruncate.m4: Check for chsize.
78124         Link with ftruncate.o unconditionally if ftruncate is missing.
78125         This was required when cross-compiling to i586-mingw32msvc.
78126
78127 2001-04-08  Jim Meyering  <meyering@lucent.com>
78128
78129         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78130         recomputed; that's necessary when the offset spans a DST transition.
78131         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78132
78133 2001-04-02  Jim Meyering  <meyering@lucent.com>
78134
78135         * lib/regex.h, regex.c: Update from GNU libc.
78136
78137 2001-03-24  Jim Meyering  <meyering@lucent.com>
78138
78139         * m4/jm-macros.m4: Require autoconf-2.49d.
78140
78141 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78142
78143         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78144
78145 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78146
78147         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78148
78149 2001-03-17  Jim Meyering  <meyering@lucent.com>
78150
78151         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78152         now that the version in autoconf is equivalent.
78153         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78154
78155         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78156         Suggestion from Akim Demaille.
78157
78158         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78159         (jm_PREREQ_TEMPNAME): New function.
78160
78161 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78162
78163         * lib/tempname.c (uint64_t): Define to uintmax_t if
78164         not defined, and if UINT64_MAX is not defined.
78165         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78166         Reported by John David Anglin.
78167
78168 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78169
78170         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78171         resolve alias if codeset is empty.
78172         * lib/config.charset (BeOS): Use wildcard syntax.
78173
78174 2001-03-13  Jim Meyering  <meyering@lucent.com>
78175
78176         * lib/path-concat.c (path_concat)
78177         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78178         concatenating e.g., `C:' and `foo'.
78179         From Bruno Haible.
78180
78181 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78182
78183         * lib/localcharset.c (locale_charset): Don't use
78184         setlocale(LC_CTYPE,NULL). Don't return NULL.
78185         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78186
78187 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78188
78189         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78190         support for DOS/DJGPP.
78191
78192 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78193
78194         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78195         lacks mkstemp.  Compile our own tempname.c if we compile our own
78196         mkstemp.c, as mkstemp relies on tempname.
78197
78198 2001-03-01  Jim Meyering  <meyering@lucent.com>
78199
78200         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78201         AH_VERBATIM really does output its argument verbatim.
78202
78203 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78204
78205         * lib/Makefile.am (libfetish_a_SOURCES):
78206         Add dup-safer.c, fopen-safer.c.
78207         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78208
78209         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78210         * lib/unistd-safer.h: New files.
78211
78212 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78213
78214         The mkstemp replacement is taken from glibc 2.2.2, with some
78215         portability fixes for use outside glibc, as follows:
78216
78217         * lib/tempname.c (struct_stat64): New macro.
78218         (direxists, __gen_tempname): Use it.
78219         This avoids a portability problem with Solaris 8.
78220
78221         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78222         (<stddef.h>, <stdint.h>, <string.h>):
78223         Include only if STDC_HEADERS || _LIBC.
78224         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78225         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78226         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78227         (__set_errno): Define this macro if <errno.h> doesn't.
78228         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78229         Define these macros if <stdio.h> doesn't.
78230         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78231         Define these macros if <sys/stat.h>
78232         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78233         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78234         __xstat64): Define if not _LIBC.
78235         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78236         (__gen_tempname): Invoke gettimeofday only if
78237         HAVE_GETTIMEOFDAY || _LIBC;
78238         otherwise, fall back on plain "time".
78239         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78240
78241         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78242
78243         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78244
78245 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78246
78247         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78248
78249 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78250
78251         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78252         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78253         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78255
78256 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78257
78258         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78259         Remove workaround macros for hosts that have mbrtowc but not
78260         mbstate_t, as we now insist on proper declarations for both
78261         before using mbrtowc.
78262
78263 2001-02-17  Jim Meyering  <meyering@lucent.com>
78264
78265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78266         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78267         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78268         UnixWare 7.1.1.
78269
78270         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78271         rather than AC_CACHE_VAL.
78272
78273 2001-02-17  Jim Meyering  <meyering@lucent.com>
78274
78275         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78276         around included file name.
78277
78278         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78279
78280         * lib/strftime.c: Update from GNU libc (the only changes were to
78281         comments).
78282
78283 2001-02-17  Jim Meyering  <meyering@lucent.com>
78284
78285         * lib/regex.c: Update from libc.
78286
78287 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78288
78289         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78290         clash.
78291
78292 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78293
78294         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78295         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78296         Reported by Mark Hounschell via Paul Eggert.
78297
78298 2001-02-07  Jim Meyering  <meyering@lucent.com>
78299
78300         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78301
78302 2001-02-05  Jim Meyering  <meyering@lucent.com>
78303
78304         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78305         it includes the patch required for `large file' support with at least
78306         HP-UX's 10.20 /bin/cc.
78307
78308 2001-02-03  Jim Meyering  <meyering@lucent.com>
78309
78310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78311         AS_IF, now that it works once again (mysteriously).
78312         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78313
78314 2001-01-30  Jim Meyering  <meyering@lucent.com>
78315
78316         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78317         * m4/chown.m4: Rename conftestchown to conftest.chown.
78318         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78319         s/conftestdir2/conftest.d2/.
78320         * m4/utimes.m4: s/conftestdata/conftest.data/
78321         Inspired by Pavel Roskin's change in autoconf.
78322
78323 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78324
78325         * lib/config.charset: Update for FreeBSD 4.2.
78326
78327 2001-01-27  Jim Meyering  <meyering@lucent.com>
78328
78329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78330         a use of AS_IF.
78331         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78332
78333 2001-01-26  Jim Meyering  <meyering@lucent.com>
78334
78335         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78336         quotearg.c includes it.
78337
78338 2001-01-26  Jim Meyering  <meyering@lucent.com>
78339
78340         * lib/quotearg.c: Include stddef.h.
78341         * lib/quote.c: Include stddef.h.
78342         Reported by Axel Kittenberger.
78343
78344         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78345         line in double quotes so that it evokes a better diagnostic.
78346         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78347         Reported by Axel Kittenberger.
78348
78349 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78350
78351         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78352         as if it was a `charset'.
78353
78354 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78355
78356         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78357         has const.
78358
78359 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78360
78361         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78362         to avoid a warning.  Add back 'const' to inptr.
78363
78364 2001-01-20  Jim Meyering  <meyering@lucent.com>
78365
78366         Be sure that headers are checked before used in code compiled
78367         for the type checks.
78368         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78369         In place of that, invoke jm_CHECK_ALL_TYPES.
78370         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78371         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78372         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78373         The check for ssize_t was mistakenly run before the test for unistd.h.
78374
78375         The configure-time check for stdbool.h was missing.
78376         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78377         (jm_PREREQ_HASH): New function.
78378
78379 2001-01-17  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78382         for autoconf-2.49c.
78383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78384
78385 2001-01-16  Jim Meyering  <meyering@lucent.com>
78386
78387         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78388         From Bruno Haible.
78389
78390 2001-01-14  Jim Meyering  <meyering@lucent.com>
78391
78392         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78393         foo and bar.  Create conftestdir/ in the script, not in the C code.
78394         Remove directories in the script, not in the C code.
78395         Remove conftestdir{,2} before trying to create the directory.
78396         Make the entire configure script fail if the mkdir fails.
78397
78398 2001-01-14  Jim Meyering  <meyering@lucent.com>
78399
78400         * lib/rename.c: New file.  From Volker Borchert.
78401         Include stdlib.h, string.h or strings.h, and xalloc.h.
78402         Use strip_trailing_slashes rather than open-coding it.
78403
78404 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78405
78406         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78407
78408 2001-01-03  Jim Meyering  <meyering@lucent.com>
78409
78410         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78411         of local `inptr' to avoid warning with some system declarations of
78412         iconv.
78413
78414 2001-01-02  Volker Borchert  <bt@teknon.de>
78415
78416         * m4/rename.m4: New file.
78417         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78418
78419 2001-01-01  Jim Meyering  <meyering@lucent.com>
78420
78421         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78422         even on systems with utmpx.h.  It's necessary for the declaration of
78423         utmp's ut_user member.  Reported by Andreas Jaeger.
78424
78425         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78426         available. They are required for the declarations of getgrgid and
78427         getpwuid resp.
78428         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78429         Reported by Andreas Jaeger.
78430
78431 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78432
78433         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78434         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78435         so `make install' also works in VPATH builds.
78436
78437 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78438
78439         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78440         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78441         can be used in subdirectories.
78442
78443 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78444
78445         * lib/modechange.c: Do not assume that mode_t uses the
78446         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78447         the other-execute bit of FOO even if S_IXOTH != 1.
78448
78449         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78450         WOTH, XOTH, ALLM): New macros.
78451         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78452          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78453         Use them.
78454         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78455         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78456         (mode_compile):
78457         No need to use uintmax_t; unsigned long is long enough.
78458         Don't bother to get suffix since we don't use it.
78459
78460 2000-12-26  Jim Meyering  <meyering@lucent.com>
78461
78462         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78463         better with autoheader.
78464
78465 2000-12-24  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/hash.c (is_prime): Return explicit boolean values.
78468         (hash_get_first): Return NULL to appease Irix5.6's 89.
78469         Reported by Nelson Beebe.
78470
78471 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78472
78473         * lib/localcharset.c (locale_charset): Add support for Win32.
78474
78475 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78476
78477         * lib/physmem.h, lib/physmem.c: New files.
78478
78479         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78480         (noinst_HEADERS): Add physmem.h.
78481
78482         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78483         't' for compatibility with Solaris 8 sort.
78484
78485 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78486
78487         * lib/config.charset: Add support for BeOS.
78488
78489 2000-12-17  Jim Meyering  <meyering@lucent.com>
78490
78491         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78492         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78493
78494 2000-12-16  Jim Meyering  <meyering@lucent.com>
78495
78496         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78497         N and M) would have treated it like `chown N:N FILE'.
78498
78499         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78500
78501 2000-12-16  Jim Meyering  <meyering@lucent.com>
78502
78503         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78504         SHELLS_FILE to a file name that's useful on djgpp systems.
78505         Include stdlib.h.
78506         (ADDITIONAL_DEFAULT_SHELLS): Define.
78507         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78508         Based mostly on a patch from Prashant TR.
78509
78510 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78511
78512         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78513         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78514         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78515
78516 2000-12-08  Andreas Schwab  <schwab@suse.de>
78517
78518         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78519         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78520
78521 2000-12-07  Jim Meyering  <meyering@lucent.com>
78522
78523         * lib/stripslash.c (ISSLASH): Define.
78524         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78525         `/'.
78526         From Prashant TR.
78527
78528         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78529         (dir_name_r): Declare this function as static.
78530         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78531         manifest itself on a name containing a mix of slashes and
78532         backslashes.
78533         Make this function work with names starting with a DOS-style
78534         drive letter and colon prefix.
78535         (dir_name): Append `.' if necessary.
78536         Based mostly on patches from Prashant TR and Eli Zaretskii.
78537
78538         * lib/dirname.h (dir_name_r): Remove prototype.
78539
78540 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78541
78542         * m4/off_t-format.m4: Remove this file.
78543         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78544
78545 2000-12-06  Jim Meyering  <meyering@lucent.com>
78546
78547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78548         replacement strtoull, we may well need the replacement strtoul, too.
78549         Check for declarations of strtoul and strtoull.
78550         Check for strtol.  Mainly as a cue to cause automake to include
78551         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78552         Check for limits.h -- strtol.c needs it.
78553
78554 2000-12-05  Jim Meyering  <meyering@lucent.com>
78555
78556         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78557
78558 2000-12-04  Jim Meyering  <meyering@lucent.com>
78559
78560         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78561         Also include memory.h, stdlib.h, unistd.h if appropriate.
78562         Reported by Andreas Jaeger (conflicting declaration of malloc).
78563
78564 2000-12-02  Jim Meyering  <meyering@lucent.com>
78565
78566         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78567         * m4/jm-macros.m4 (jm_MACROS): require it.
78568
78569 2000-12-02  Jim Meyering  <meyering@lucent.com>
78570
78571         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78572
78573 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78574
78575         * lib/memrchr.c: Include <config.h> before any system include file.
78576
78577 2000-11-30  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78580
78581 2000-11-30  Jim Meyering  <meyering@lucent.com>
78582
78583         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78584
78585 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78586
78587         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78588
78589 2000-11-26  Jim Meyering  <meyering@lucent.com>
78590
78591         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78592
78593 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78594
78595         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78596         size of (size_t) -1; it's not portable.
78597
78598 2000-11-17  Jim Meyering  <meyering@lucent.com>
78599
78600         * lib/strstr.c: Update from GNU libc.
78601
78602 2000-11-17  Akim Demaille  <akim@epita.fr>
78603
78604         * lib/obstack.h: Formatting changes.
78605         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78606         prevent type checking.
78607         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78608         cast the value to (void *): assigning a `foo *' to a `void *'
78609         variable is valid.
78610         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78611
78612 2000-11-16  Jim Meyering  <meyering@lucent.com>
78613
78614         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78615
78616 2000-11-11  Jim Meyering  <meyering@lucent.com>
78617
78618         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78619
78620 2000-11-10  Jim Meyering  <meyering@lucent.com>
78621
78622         * lib/obstack.h: Update from GNU libc.
78623         * lib/obstack.c: Likewise.
78624
78625 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78626
78627         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78628
78629 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78630
78631         * lib/getusershell.c (setusershell): Use rewind rather than
78632         fseek/fseeko, to avoid configuration hassles with fseeko.
78633         Don't bother opening SHELLS_FILE if shellstream is NULL;
78634         it's not necessary.
78635
78636 2000-11-05  Jim Meyering  <meyering@lucent.com>
78637
78638         * lib/makepath.h (make_dir): Declare.
78639         * lib/makepath.c (make_dir): Remove `static' attribute.
78640         Tweak a comment.
78641
78642 2000-11-04  Jim Meyering  <meyering@lucent.com>
78643
78644         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78645
78646 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78647
78648         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78649         last one in a bucket, advance to the next bucket.
78650
78651 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78652
78653         * lib/fnmatch.c: Do not comment out all the code if we are using
78654         the GNU C library, because in some cases we are replacing buggy
78655         code in the GNU C library itself.
78656
78657 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78658
78659         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78660         (regex_compile): Catch bogus \(\1\).
78661
78662 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78663
78664         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78665         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78666         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78667
78668 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78669
78670         * lib/error.h, getline.h, modechange.h:
78671         Remove "2000" from Copyright line, as the file hasn't been
78672         changed this year other than in the copyright notice.
78673
78674         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78675         was changed this year.
78676
78677 2000-10-29  Jim Meyering  <meyering@lucent.com>
78678
78679         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78680         renaming.
78681         * m4/ls-mntd-fs.m4: Likewise
78682
78683 2000-10-29  Jim Meyering  <meyering@lucent.com>
78684
78685         * lib/xstat.in: Fix grammar in comment.
78686
78687 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78688
78689         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78690         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78691         doesn't define __restrict_arr.
78692
78693 2000-10-28  Jim Meyering  <meyering@lucent.com>
78694
78695         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78696         (jm_PREREQ_MEMCHR): New function.
78697
78698 2000-10-28  Jim Meyering  <meyering@lucent.com>
78699
78700         * lib/memchr.c: Update from libc.
78701         Adjust for portability:
78702         [HAVE_STDLIB_H]: Include stdlib.h.
78703         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78704         Undef __memchr, too.
78705         [!weak_alias]: Define __memchr to memchr.
78706
78707         * lib/regex.c: Update from libc.
78708         * lib/regex.h: Likewise.
78709         * lib/getopt1.c: Likewise.
78710         * lib/memcmp.c: Likewise.
78711
78712         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78713         Avoid using fseek, when possible -- it's broken by design.
78714         Patch by Ulrich Drepper.
78715
78716 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78717
78718         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78719         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78720         Giving in to popular pressure to shut up the compiler with casts.
78721
78722 2000-10-26  Jim Meyering  <meyering@lucent.com>
78723
78724         * lib/strftime.c: Update from libc.
78725
78726 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78727
78728         * regex.c: More `unsigned char' -> `re_char' changes.
78729         Also change several `int' into `re_wchar_t'.
78730         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78731         (PUSH_FAILURE_POINTER): Don't cast any more.
78732         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78733         We want GCC to complain, since this piece of code makes
78734         re_match non-reentrant, which *should* be fixed.
78735         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78736         (EXTEND_BUFFER): Use RETALLOC.
78737         (SET_LIST_BIT): Don't cast.
78738         (re_wchar_t): New type.
78739         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78740         that those two functions will always properly return.
78741         (IMMEDIATE_QUIT_CHECK): Cast to void.
78742         (analyse_first): Use recursion rather than an explicit stack.
78743         (re_compile_fastmap): Can't fail anymore.
78744         (re_search_2): Don't check re_compile_fastmap for failure.
78745         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78746         Now also sets the new value (passed in a new argument).
78747         (re_match_2_internal): Use it.
78748         Also, use a new var `reg' of type size_t when looping through regs
78749         rather than reuse the inappropriate `mcnt'.
78750
78751 2000-10-25  Jim Meyering  <meyering@lucent.com>
78752
78753         * lib/obstack.c: Update from libc.
78754
78755 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78756
78757         * regex.c (regex_compile): Change the way of handling a range from
78758         a char less than 256 to a char not less than 256.
78759
78760 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78761
78762         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78763         NT-Emacs only.
78764         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78765         so that re_search functions only quit when callers expect them to.
78766
78767 2000-10-23  Jim Meyering  <meyering@lucent.com>
78768
78769         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78770         wrong.  That set_locale call must not have any side effects.
78771         From Paul Eggert.
78772
78773 2000-10-22  Jim Meyering  <meyering@lucent.com>
78774
78775         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78776         [CYCLIC]: Remove now-unused definition.
78777
78778         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78779         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78780         Suggestion from Ulrich Drepper.
78781
78782 2000-10-21  Jim Meyering  <meyering@lucent.com>
78783
78784         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78785         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78786         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78787
78788 2000-10-21  Jim Meyering  <meyering@lucent.com>
78789
78790         * lib/dirname.c (memrchr): Declare if necessary.
78791         (dir_name): Remove the restriction that there be no
78792         trailing slashes.  Now, this code skips past them, effectively
78793         ignoring them.
78794         [TEST_DIRNAME] (main): New unit tests.
78795
78796         * lib/memrchr.c: New file from GNU libc.
78797         Undef __memrchr, too.
78798         [!weak_alias]: Define __memrchr to memrchr.
78799         Guard weak_alias use with `#ifdef weak_alias'.
78800
78801 2000-10-21  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78804         (dir_name): Use dir_name_r.
78805         * lib/dirname.h (dir_name_r): Declare it.
78806
78807 2000-10-17  Jim Meyering  <meyering@lucent.com>
78808
78809         * lib/quote.h (PARAMS): Define and use.
78810         Reported by Akim Demaille.
78811
78812         * lib/getopt.c: Update from libc.
78813
78814 2000-10-16  Jim Meyering  <meyering@lucent.com>
78815
78816         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78817         setlocale.
78818         From Jan Fedak.
78819
78820 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78821
78822         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78823
78824 2000-09-25  Jim Meyering  <meyering@lucent.com>
78825
78826         * lib/md5.h (rol): Define (from GnuPG).
78827
78828         * lib/sha.c: Give credit (GnuPG) where due.
78829         (M): Use rol rather than open-coding it.
78830         Add a FIXME comment.
78831
78832 2000-09-21  Jim Meyering  <meyering@lucent.com>
78833
78834         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78835         Reported by Michael Stone.
78836
78837 2000-09-20  Jim Meyering  <meyering@lucent.com>
78838
78839         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78840         (noinst_HEADERS): Add sha.h.
78841         Based on code from Scott G. Miller and from GnuPG.
78842
78843 2000-09-18  Jim Meyering  <meyering@lucent.com>
78844
78845         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78846         LIBS. Otherwise, everyone ends up linking with -lelf for some
78847         configurations.
78848         Reported by Mike Stone.
78849
78850 2000-09-15  Jim Meyering  <meyering@lucent.com>
78851
78852         * lib/regex.c: Update from libc.
78853
78854 2000-09-10  Jim Meyering  <meyering@lucent.com>
78855
78856         * lib/getopt.c (_getopt_internal): Update from glibc.
78857
78858 2000-09-09  Jim Meyering  <meyering@lucent.com>
78859
78860         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78861         think it should be used as a general replacement for isascii.
78862         * lib/fnmatch.c: Likewise.
78863         * lib/mbswidth.c: Likewise
78864         * lib/regex.c: Likewise.
78865
78866         Don't use atoi.
78867         * lib/userspec.c: Include sys/param.h and limits.h.
78868         Include xstrtol.h.
78869         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78870         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78871         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78872         UID, GID.  Check range.
78873
78874 2000-09-06  Jim Meyering  <meyering@lucent.com>
78875
78876         * lib/getopt.c (_getopt_internal): Update from glibc.
78877
78878 2000-08-30  Jim Meyering  <meyering@lucent.com>
78879
78880         * lib/strftime.c: Merge in changes from GNU libc.
78881
78882 2000-08-26  Jim Meyering  <meyering@lucent.com>
78883
78884         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78885         * m4/fpending.m4: New file.
78886
78887 2000-08-26  Jim Meyering  <meyering@lucent.com>
78888
78889         * lib/closeout.c: Include "__fpending.h".
78890         (close_stdout_status): Return right away if there's nothing to flush.
78891
78892         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78893         * lib/__fpending.c: New file.
78894         * lib/__fpending.h: New file.
78895
78896 2000-08-20  Jim Meyering  <meyering@lucent.com>
78897
78898         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78899         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78900         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78901
78902 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78903
78904         Improve fileutils installation on systems where running
78905         programs (like install) can't be unlinked.
78906         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78907         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78908
78909 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78910
78911         Standardize on "memory exhausted" instead of "Memory exhausted"
78912         or "virtual memory exhausted".
78913         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78914         "virtual memory exhausted".
78915         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78916         our own message.
78917         * lib/userspec.c (parse_user_spec): Likewise.
78918         * lib/bumpalloc.h: comment fix
78919         * lib/same.c, userspec.c: Include xalloc.h.
78920
78921         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78922         not char *const and pointing to a constant array.
78923         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78924         (xrealloc): Comment fix.
78925
78926         * lib/userspec.c (parse_user_spec):
78927         Don't translate a message until just before returning,
78928         to avoid unnecessary translation.
78929
78930 2000-08-07  Jim Meyering  <meyering@lucent.com>
78931
78932         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78933         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78934         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78935         getgroups.c, gethostname.c, getopt.h, group-member.c,
78936         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78937         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78938         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78939         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78940         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78941         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78942         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78943         yesno.c: Back out Copyright date changes for each file with no change
78944         this year.  This eases coordination with other programs using the same
78945         source code modules.  From Paul Eggert.
78946
78947 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78948
78949         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78950         not char, for compatibility with glibc 2.1.3 strftime.c.
78951
78952 2000-08-03  Greg McGary  <greg@mcgary.org>
78953
78954         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78955         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78956         (EXTEND_BUFFER): Use them.
78957
78958 2000-08-01  Jim Meyering  <meyering@lucent.com>
78959
78960         * lib/dirname.c (ISSLASH): Define.
78961         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78962         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78963         both `\' and `/' may be use as path separators.
78964         Based on a patch from Prashant TR.
78965
78966 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78967
78968         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78969         slot vector a constant, since it might get modified.
78970
78971 2000-07-31  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/xmalloc.c: Use `virtual memory exhausted', not
78974         `Memory exhausted'.
78975         * lib/obstack.c (print_and_abort): Likewise.
78976
78977 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78978
78979         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78980         buffer, so that the caller can always quote one small
78981         component of a "memory exhausted" message in slot 0.
78982         From a suggestion by Jim Meyering.
78983
78984 2000-07-30  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/makepath.c (make_path): Quote the other instance, too.
78987
78988         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78989         (STATIC_BUF_SIZE): Define.
78990         (quotearg_n_options): Use only statically allocated storage when
78991         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78992         than STATIC_BUF_SIZE.
78993
78994 2000-07-29  Jim Meyering  <meyering@lucent.com>
78995
78996         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78997         * lib/dirname.c (dir_name): Likewise.
78998
78999         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79000         `/'.
79001
79002         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79003         (dir_name): Assert that there are no trailing slashes.
79004
79005 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79006
79007         * lib/mbswidth.h (mbswidth): Add a flags argument.
79008         (mbswidth): New declaration.
79009         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79010         * lib/mbswidth.c (mbswidth): Add a flags argument.
79011         (mbsnwidth): New function.
79012
79013 2000-07-24  Jim Meyering  <meyering@lucent.com>
79014
79015         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79016
79017 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79018
79019         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79020
79021 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79022
79023         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79024         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79025         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79026         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79027         invoke multibyte primitives.
79028
79029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79030
79031         * lib/quotearg.c:
79032         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79033         so that mbstate_t is always defined.
79034
79035         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79036         be 1 in at least one GCC installation, and this configuration
79037         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79038         performance on hosts that have mbrtowc but have only unibyte
79039         locales, but I assume these hosts are rare.
79040
79041 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79042
79043         * lib/mbswidth.c (_XOPEN_SOURCE):
79044         Don't define; this causes problems on Solaris 7.
79045         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79046
79047 2000-07-23  Jim Meyering  <meyering@lucent.com>
79048
79049         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79050         too: getgrgid, getpwuid, getuid.
79051
79052 2000-07-23  Jim Meyering  <meyering@lucent.com>
79053
79054         * lib/basename.c (base_name): Add an assertion.
79055
79056 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79057
79058         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79059         shadow its mbsinit function.
79060
79061 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79062
79063         * lib/mbswidth.h: New file.
79064         * lib/mbswidth.c: New file.
79065         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79066         (noinst_HEADERS): Add mbswidth.h.
79067
79068 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79069
79070         * lib/config.charset: Add support for FreeBSD. Improve support for
79071         HP-UX and IRIX 6.
79072
79073 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79074
79075         * m4/mbswidth.m4: New file.
79076         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79077
79078 2000-07-15  Jim Meyering  <meyering@lucent.com>
79079
79080         * lib/makepath.c: Include quote.h.
79081         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79082         corresponding argument in a `quote (...)' call.
79083         Give better diagnostics.
79084
79085         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79086         (noinst_HEADERS): Add quote.h.
79087
79088         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79089         from tar's src/misc.c.
79090         * lib/quote.h: New file.  Prototypes for same.
79091
79092 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79093
79094         From a suggestion by Bruno Haible.
79095         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79096         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79097         to decide whether to define the BeOS workaround macro;
79098         this adjusts to the change to AC_MBSTATE_T.
79099
79100 2000-07-14  Jim Meyering  <meyering@lucent.com>
79101
79102         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79103         jm_AC_TYPE_UINTMAX_T.
79104
79105 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79106
79107         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79108
79109         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79110         quotearg_buffer_restyled): Add support for
79111         clocale_quoting_style.  Undo previous change to
79112         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79113         and "{RIGHT QUOTATION MARK}" msgids.
79114
79115 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79116
79117         From a suggestion by Bruno Haible.
79118         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79119         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79120         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79121         and mbstate_t, to a single-part test that simply defines mbstate_t.
79122         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79123         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79124
79125 2000-07-10  Jim Meyering  <meyering@lucent.com>
79126
79127         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79128
79129         * m4/gnu-source.m4: Output to confdefs.h directly.
79130         Suggestion from Akim Demaille.
79131
79132 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79133
79134         The old behavior of quoting `like this' doesn't look good with
79135         newer, ISO-style fonts.  See:
79136         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79137
79138         Instead, quote "like this" by default.  Let the translator
79139         tailor the locale-specific quoting behavior by providing
79140         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79141
79142         * lib/quotearg.c (N_): New macro.
79143         (gettext_default): New function.
79144         (quotearg_buffer_restyled): Use
79145         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79146         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79147
79148 2000-07-09  Jim Meyering  <meyering@lucent.com>
79149
79150         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79151         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79152
79153         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79155
79156 2000-07-09  Jim Meyering  <meyering@lucent.com>
79157
79158         * lib/Most files: Update copyright dates to include 2000.
79159
79160 2000-07-08  Jim Meyering  <meyering@lucent.com>
79161
79162         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79163         if not defined.
79164         (xgethostname): Remove now-unnecessary #ifdef.
79165         Move declaration of `err' into loop where it's used.
79166
79167 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79168         and Bruno Haible  <haible@clisp.cons.org>
79169
79170         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79171         only if the test for an object-type mbstate_t fails.  This
79172         prevents us from mistakenly reporting that mbstate_t is a
79173         system object type after we "#define mbstate_t int" to work
79174         around its lack.
79175
79176 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79177         and Bruno Haible  <haible@clisp.cons.org>
79178
79179         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79180
79181 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79182
79183         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79184         to strerror_r.
79185         Include <ctype.h> for use of isalpha.
79186
79187 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79188
79189         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79190         by allocating a larger buffer. Test the gethostname return value for
79191         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79192         returns an error and ENAMETOOLONG isn't defined.
79193
79194 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79195
79196         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79197         dimension.
79198
79199 2000-07-04  Jim Meyering  <meyering@lucent.com>
79200
79201         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79202         of the deprecated AC_CHECKING.
79203
79204 2000-07-04  Jim Meyering  <meyering@lucent.com>
79205
79206         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79207         Reported by Bruno Haible.
79208
79209 2000-07-04  Jim Meyering  <meyering@lucent.com>
79210
79211         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79212         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79213         lacks mbrtowc.
79214
79215 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79216
79217         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79218         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79219
79220 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79221         and Bruno Haible  <haible@clisp.cons.org>
79222
79223         * lib/quotearg.c (mbrtowc):
79224         Assign to *pwc, and return 1 only if result is nonzero.
79225         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79226
79227 2000-07-03  Jim Meyering  <meyering@lucent.com>
79228
79229         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79230
79231 2000-07-03  Jim Meyering  <meyering@lucent.com>
79232
79233         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79234         This is necessary to get a definition of e.g., UTMP_FILE on
79235         HP-UX 10.20.
79236         From Bob Proulx.
79237
79238 2000-07-02  Jim Meyering  <meyering@lucent.com>
79239
79240         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79241
79242         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79243         AC_LIBOBJ(function_name).
79244         * m4/chown.m4: Likewise.
79245         * m4/fnmatch.m4: Likewise.
79246         * m4/ftruncate.m4: Likewise.
79247         * m4/getgroups.m4: Likewise.
79248         * m4/getline.m4: Likewise.
79249         * m4/group-member.m4: Likewise.
79250         * m4/jm-macros.m4: Likewise.
79251         * m4/lstat.m4: Likewise.
79252         * m4/malloc.m4: Likewise.
79253         * m4/memcmp.m4: Likewise.
79254         * m4/nanosleep.m4: Likewise.
79255         * m4/putenv.m4: Likewise.
79256         * m4/realloc.m4: Likewise.
79257         * m4/regex.m4: Likewise.
79258         * m4/stat.m4: Likewise.
79259         * m4/strftime.m4: Likewise.
79260
79261 2000-07-02  Jim Meyering  <meyering@lucent.com>
79262
79263         * lib/quotearg.c (mbstate_t): Don't define here.
79264
79265 2000-07-02  Jim Meyering  <meyering@lucent.com>
79266
79267         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79268
79269 2000-07-01  Jim Meyering  <meyering@lucent.com>
79270
79271         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79272
79273 2000-07-01  Jim Meyering  <meyering@lucent.com>
79274
79275         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79276         problem.
79277
79278 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79279
79280         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79281         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79282
79283 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79284
79285         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79286         per change in ../m4/ls-mntd-fs.m4.
79287         (read_filesystem_list): Ignore symbolic links.
79288
79289 2000-06-29  Jim Meyering  <meyering@lucent.com>
79290
79291         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79292         for declaration of strcmp.
79293
79294         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79295
79296         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79297         Avoid warning by casting result to `char *' to remove `const'.
79298
79299 2000-06-28  Jim Meyering  <meyering@lucent.com>
79300
79301         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79302         included by quotearg.c, for which we perform this test.  From
79303         Bruno Haible.
79304
79305 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79306
79307         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79309         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79310
79311 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79312
79313         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79314
79315 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79316
79317         savedir now sets errno on failure and invokes xmalloc to get memory.
79318         Fix a couple of other minor bugs while we're at it.
79319
79320         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79321         (NAMLEN): Remove macro.
79322         (malloc, realloc): Remove decls.
79323         (stpcpy): Likewise.
79324         ("xalloc.h"): Include.
79325         (NAME_SIZE_DEFAULT): New macro.
79326         (savedir): Use xmalloc / xrealloc to allocate memory.
79327         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79328         Skip "" directory entries.
79329         Use strlen to calculate directory entry length, since the old method
79330         is rarely used these days and isn't worth supporting.
79331         Don't use a pointer after freeing it.
79332         Check for integer overflow when calculating allocation size.
79333         Use memcpy to copy entries, instead of stpcpy.
79334         Set errno properly when returning NULL.
79335         Check for readdir error.
79336
79337 2000-06-26  Jim Meyering  <meyering@lucent.com>
79338
79339         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79340
79341 2000-06-25  Jim Meyering  <meyering@lucent.com>
79342
79343         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79344         Linux header bug when _XOPEN_SOURCE is defined to 500.
79345
79346 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79347
79348         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79349         deficiency.
79350
79351 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79352
79353         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79354         Include xalloc.h.
79355         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79356
79357 2000-06-24  Jim Meyering  <meyering@lucent.com>
79358
79359         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79360         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79361         for which strerror does return char*, but which lacks a conveniently
79362         accessible declaration of the function.  If the compile-test says
79363         strerror_r doesn't work, then resort to a `run'-test that works on
79364         BeOS and segfaults on DEC Unix.
79365
79366 2000-06-24  Jim Meyering  <meyering@lucent.com>
79367
79368         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79369
79370 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79371
79372         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79374
79375 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79376
79377         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79378         (mbrtowc, mbstate_t): Define substitutes if
79379         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79380         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79381         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79382
79383 2000-06-23  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/afs.m4: Add missing AC_MSG_RESULT.
79386         Reported by Bruno Haible.
79387
79388         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79389         Suggestion from Bruno Haible.
79390
79391 2000-06-23  Jim Meyering  <meyering@lucent.com>
79392
79393         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79394
79395 2000-06-21  Jim Meyering  <meyering@lucent.com>
79396
79397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79398
79399 2000-06-21  Jim Meyering  <meyering@lucent.com>
79400
79401         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79402         (noinst_HEADERS): Add getstr.h.
79403
79404         * lib/getline.c (getstr): Move into a separate file.
79405         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79406         the following changes: new parameter, delim2; both delim[12]
79407         parameters have type `int', not `char'.  The latter would lose
79408         with 8-bit delimiters.
79409         * lib/getstr.h: New file.
79410
79411 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79412
79413         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79414         than 1024, return a memory chunk of least possible size, instead
79415         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79416         Use free/xmalloc instead of xrealloc to avoid copying for very long
79417         paths.
79418
79419 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79420
79421         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79422         the empty string.
79423
79424 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79425
79426         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79427         address, not strdup.  Include <stdlib.h> and don't declare free().
79428
79429 2000-06-19  Jim Meyering  <meyering@lucent.com>
79430
79431         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79432
79433 2000-06-18  Jim Meyering  <meyering@lucent.com>
79434
79435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79436
79437         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79438         `checking whether...' message to be consistent with that of the
79439         lstat test.
79440
79441 2000-06-18  Jim Meyering  <meyering@lucent.com>
79442
79443         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79444         Besides, these days every porting target provides a mkdir function.
79445
79446         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79447         needed. (this snippet comes from src/system.h).
79448
79449 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79450
79451         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79452
79453 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79454
79455         * lib/human.c (adjust_value): New function.
79456         (human_readable_inexact): Apply rounding style even when
79457         printing approximate values.
79458
79459 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79460
79461         * lib/human.c (human_readable_inexact): Allow an input block
79462         size that is not a multiple of the output block size, and vice versa.
79463         Reported by Piergiorgio Sartor.
79464
79465 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79466
79467         * lib/getdate.y (get_date): Apply relative times after time
79468         zone indicator, not before.  Reported by Todd A. Jacobs.
79469
79470 2000-06-13  Jim Meyering  <meyering@lucent.com>
79471
79472         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79473
79474         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79475
79476 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79477
79478         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79479
79480 2000-06-12  Jim Meyering  <meyering@lucent.com>
79481
79482         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79483         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79484         optional argument.
79485         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79486         the optional argument, `lib'.
79487
79488 2000-06-08  Jim Meyering  <meyering@lucent.com>
79489
79490         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79491
79492 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79493
79494         Rewrite largefile configuration so that we don't need to run
79495         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79496         AC_CANONICAL_HOST in configure.in -- jmm]
79497
79498         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79499         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79500         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79501         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79502         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79503         All uses changed.
79504         Instead of inspecting the output of getconf, try to compile the
79505         test program without and with the macro definition.
79506         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79507         for getconf.  Instead, check for the needed flags by compiling
79508         test programs.
79509
79510 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79511
79512         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79513
79514 2000-06-04  Jim Meyering  <meyering@lucent.com>
79515
79516         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79517         SunOS 4.1.4 for which gid_t is an unsigned type.
79518
79519 2000-06-03  Jim Meyering  <meyering@lucent.com>
79520
79521         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79522         now that autoconf requires that.
79523
79524         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79525         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79526         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79527
79528 2000-06-03  Jim Meyering  <meyering@lucent.com>
79529
79530         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79531
79532 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79533
79534         * m4/glibc21.m4: New file.
79535         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79536
79537 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79538
79539         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79540         newer, don't install charset.alias.
79541         * lib/config.charset: Change the Linux/glibc rules so they become empty
79542         on glibc-2.1 or newer.
79543
79544 2000-06-02  Jim Meyering  <meyering@lucent.com>
79545
79546         * lib/mountlist.c: Back out last change.  Instead, do this...
79547         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79548         me_dummy member using the same `ignore'-testing code.
79549         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79550         fs_type strings.
79551         From Mark D. Roth.
79552
79553 2000-05-29  Jim Meyering  <meyering@lucent.com>
79554
79555         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79556         mounts with the `ignore' attribute.  Based on a patch from
79557         Mark D. Roth.
79558
79559 2000-05-28  Jim Meyering  <meyering@lucent.com>
79560
79561         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79562         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79563         * m4/stat.m4: Likewise.
79564         * m4/lstat.m4: Likewise.
79565         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79566
79567         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79568         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79569
79570 2000-05-26  Jim Meyering  <meyering@lucent.com>
79571
79572         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79573
79574 2000-05-24  Jim Meyering  <meyering@lucent.com>
79575
79576         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79577         autoconf requires that.
79578         * m4/lib-check.m4: Likewise.
79579         * m4/jm-macros.m4: Likewise.
79580         * m4/strftime.m4: Likewise.
79581
79582         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79583         AC_CHECK_DECLS, now that autoconf requires that.
79584
79585 2000-05-22  Jim Meyering  <meyering@lucent.com>
79586
79587         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79588         * m4/lstat.m4: Likewise.
79589
79590 2000-05-22  Jim Meyering  <meyering@lucent.com>
79591
79592         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79593
79594 2000-05-20  Jim Meyering  <meyering@lucent.com>
79595
79596         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79597         (jm_PREREQ): Use it.
79598
79599 2000-05-18  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79602         back, too, since it may have been modified by allocate_entry.
79603         (hash_delete): Rewrite to use neither the assignment operator
79604         nor the comma operator in an if-expression.
79605
79606 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79607
79608         * lib/closeout.c:
79609         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79610         Remove; no longer needed.
79611         "quotearg.h": Add include.
79612         (file_name): Do not bother to explicitly initialize to NULL; it's less
79613         efficient on some hosts.
79614         (close_stdout_status): Remove test as to whether stdout was already
79615         closed; it breaks for the case "echo x | sort >&-".
79616         Quote file name colons.
79617         Do not assume that _("write error") lacks format strings.
79618
79619 2000-05-15  Jim Meyering  <meyering@lucent.com>
79620
79621         * lib/version-etc.c (version_etc_copyright): Update the copyright
79622         string used in all --version output.
79623
79624 2000-05-14  Jim Meyering  <meyering@lucent.com>
79625
79626         * lib/closeout.c (close_stdout_set_file_name): New function.
79627         (close_stdout_status): Use new file-scoped global.
79628         Return right away if fstat says the stdout file descriptor is invalid.
79629         * lib/closeout.h (close_stdout_set_file_name): Declare.
79630
79631 2000-05-10  Jim Meyering  <meyering@lucent.com>
79632
79633         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79634         (close_stdout_set_status): New function.
79635         * lib/closeout.h (close_stdout_set_status): Declare.
79636
79637 2000-05-09  Jim Meyering  <meyering@lucent.com>
79638
79639         * m4/gettext.m4: Rename this...
79640         * m4/libintl.m4: ...to this.
79641
79642 2000-05-08  Jim Meyering  <meyering@lucent.com>
79643
79644         * lib/long-options.c: Don't include closeout.h.
79645         (parse_long_options): Don't call close_stdout for --version.
79646
79647 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79648
79649         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79650         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79651         2.1.3 bug.  This avoids a clash when files like regex.c define
79652         _GNU_SOURCE.
79653
79654 2000-05-06  Jim Meyering  <meyering@lucent.com>
79655
79656         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79657         (AC_REPLACE_FUNCS): Add strnlen.
79658
79659         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79660         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79661
79662         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79663         AC_SEARCH_LIBS call for nanosleep.
79664         (LIB_NANOSLEEP): Set and AC_SUBST.
79665
79666 2000-05-06  Jim Meyering  <meyering@lucent.com>
79667
79668         * lib/strnlen.c: Undefine __strnlen and strnlen.
79669         [!weak_alias]: Define __strnlen to strnlen.
79670
79671         * lib/atexit.c: New file, from libiberty.
79672
79673 2000-05-06  Jim Meyering  <meyering@lucent.com>
79674
79675         * lib/closeout.c (close_stdout_status): Also check for errors on the
79676         stderr stream.
79677
79678 2000-05-05  Jim Meyering  <meyering@lucent.com>
79679
79680         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79681         AC_SEARCH_LIBS call for clock_gettime.
79682         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79683
79684         * m4/search-libs.m4: Update from autoconf.
79685
79686         su doesn't work on Solaris 2.6.
79687         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79688         <shadow.h>.  Reported by Dragos Harabor.
79689
79690 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79691
79692         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79693         memcpy instead of xmalloc, xrealloc, path_concat.
79694         (locale_charset): Treat empty environment variables as absent.
79695         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79696
79697 2000-05-04  Jim Meyering  <meyering@lucent.com>
79698
79699         * lib/getopt.c: Update from glibc.
79700         * lib/obstack.c: Likewise.
79701         * lib/obstack.h: Likewise.
79702         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79703         file
79704
79705         * lib/regex.h: Likewise.
79706         * lib/strndup.c: Likewise.
79707         * lib/strnlen.c: New file, from glibc.
79708
79709 2000-05-03  Jim Meyering  <meyering@lucent.com>
79710
79711         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79712
79713 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79714
79715         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79716         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79717         compile-time test, rather than inspecting host and OS, to
79718         decide whether to define _LARGEFILE_SOURCE.
79719
79720 2000-05-01  Jim Meyering  <meyering@lucent.com>
79721
79722         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79723
79724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79725         Based on a patch from Bruno Haible.
79726
79727 2000-05-01  Jim Meyering  <meyering@lucent.com>
79728
79729         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79730
79731 2000-04-29  Jim Meyering  <meyering@lucent.com>
79732
79733         * lib/path-concat.c: Declare strdup only if it's not defined.
79734         * lib/canon-host.c: Likewise.
79735
79736 2000-04-28  Jim Meyering  <meyering@lucent.com>
79737
79738         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79739         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79740         is included first, then limits.h is included by locale.h by libintl.h.
79741         From John David Anglin.
79742
79743 2000-04-25  Jim Meyering  <meyering@lucent.com>
79744
79745         * lib/makepath.c (S_IRWXUGO): Define.
79746         (make_path): Always perform explicit chmod if MODE specifies any
79747         of the `special' permission bits.  Prompted by a bug report against
79748         install from Mate Wierdl and Joost van Baal.
79749
79750 2000-04-18  Jim Meyering  <meyering@lucent.com>
79751
79752         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79753         (jm_PREREQ): Use it.
79754
79755 2000-04-18  Jim Meyering  <meyering@lucent.com>
79756
79757         * lib/README: New file.
79758
79759         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79760         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79761
79762 2000-04-17  Jim Meyering  <meyering@lucent.com>
79763
79764         Get it right :-)
79765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79766         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79767         Suggestion from Akim Demaille.
79768
79769 2000-04-17  Jim Meyering  <meyering@lucent.com>
79770
79771         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79772         the definition of it to rpl_strftime also defined-away the system's
79773         declaration.
79774
79775 2000-04-15  Jim Meyering  <meyering@lucent.com>
79776
79777         Use `C' to denote so-called `contiguous' files, the same way
79778         that tar does.
79779         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79780         (ftypelet): Use S_ISCTG.
79781         From Michael Deutschmann.
79782
79783 2000-04-14  Jim Meyering  <meyering@lucent.com>
79784
79785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79786         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79787         clobbered.
79788
79789 2000-04-14  Jim Meyering  <meyering@lucent.com>
79790
79791         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79792
79793 2000-04-13  Jim Meyering  <meyering@lucent.com>
79794
79795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79796         AH_VERBATIM to insert required #ifndef into config.h.in.
79797         Suggestion from Akim Demaille.
79798
79799 2000-04-12  Jim Meyering  <meyering@lucent.com>
79800
79801         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79802         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79803         Christian Krackowizer.
79804
79805         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79806         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79807         (AC_SYS_LARGEFILE): Require.
79808         (AM_C_PROTOTYPES): Require.
79809
79810 2000-04-08  Jim Meyering  <meyering@lucent.com>
79811
79812         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79813         names don't conflict.  Reported by Eli Zaretskii.
79814
79815 2000-04-07  Jim Meyering  <meyering@lucent.com>
79816
79817         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79818         sys/types.h, to work around system header problems on AIX 3.2.5.
79819         From Bruno Haible.
79820
79821 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79822
79823         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79824         bug.  Deal with the different error behavior of Irix iconv.
79825
79826 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79827
79828         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79829         IRIX if the installer said otherwise.
79830
79831 2000-04-05  Jim Meyering  <meyering@lucent.com>
79832
79833         Portability tweaks required for ultrix4.3.
79834         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79835         (jm_CHECK_DECLS): Add getutent to the list of functions.
79836         (_jm_DECL_HEADERS): Add utmpx.h.
79837         From John David Anglin.
79838
79839         * m4/strftime.m4: Back out the 2000-04-02 change.
79840         Instead of that change, simply undefine putenv in the test program.
79841
79842 2000-04-05  Jim Meyering  <meyering@lucent.com>
79843
79844         Portability tweaks required for ultrix4.3.
79845         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79846         getutent.
79847         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79848         * lib/canon-host.c: Declare strdup.
79849         * lib/path-concat.c: Likewise.
79850         From John David Anglin.
79851
79852 2000-04-04  Jim Meyering  <meyering@lucent.com>
79853
79854         Be more DOS 8.3-friendly.
79855         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79856         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79857         * lib/Makefile.am: Reflect renaming.
79858         Reported by Eli Zaretskii.
79859
79860         Use a temporary file name that won't clash with `charset.alias'
79861         in the DOS 8.3 name space.
79862         * lib/Makefile.am (charset_tmp): Define.
79863         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79864         (uninstall-local): Likewise.
79865         Reported by Eli Zaretskii.
79866
79867 2000-04-03  Jim Meyering  <meyering@lucent.com>
79868
79869         * m4/gettext.m4: Fix typo in comment.
79870
79871         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79872         textutils/configure.in).  Suggestion from Paul Eggert.
79873         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79874
79875 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79876
79877         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79878         variable in the shell rather than using putenv, which isn't
79879         portable.  This avoids the configure-time inter-test dependency
79880         on the potentially-renamed putenv function.
79881
79882 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79883
79884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79885         before checking struct stat.st_blksize, so that
79886         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79887
79888 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79889
79890         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79891         since strftime.c uses HAVE_STRFTIME to decide whether to use
79892         the underlying strftime.
79893
79894 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79895
79896         * lib/time/strftime.c (my_strftime): Make sure we call the system
79897         strftime, not ourselves, when invoking the underlying strftime.
79898
79899 2000-03-24  Jim Meyering  <meyering@lucent.com>
79900
79901         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79902         (charset_alias): Define.
79903         (install-exec-local): Factor out common code.
79904         (uninstall-local): Split lines longer than 80.
79905         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79906         (SUFFIXES): Define.
79907         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79908         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79909
79910 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79911
79912         * lib/config.charset: Output a line containing "Packages using this
79913         file".
79914         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79915         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79916         ref-del.sed): New rules.
79917
79918 2000-03-17  Jim Meyering  <meyering@lucent.com>
79919
79920         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79921         Otherwise, include <strings.h>
79922
79923 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79924
79925         * lib/unicodeio.c (utf8_wctomb): New function.
79926         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79927         format instead of in UCS-4 with platform dependent endianness.
79928
79929 2000-03-10  Jim Meyering  <meyering@lucent.com>
79930
79931         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79932         From Marco Franzen.
79933
79934 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79935
79936         * lib/savedir.c (savedir): Work even if directory size is
79937         negative; this can happen with some screwy NFS configurations.
79938
79939 2000-03-06  Jim Meyering  <meyering@lucent.com>
79940
79941         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79942         if it's NULL (because we ran out of memory).  From Bruno Haible.
79943
79944 2000-03-05  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/localcharset.c ("path-concat.h"): Include.
79947         (get_charset_aliases): Use path_concat instead of ANSI string
79948         concatenation.
79949
79950         * lib/unicodeio.h (PARAMS): Define.
79951         Use it to guard prototype.
79952
79953 2000-03-04  Jim Meyering  <meyering@lucent.com>
79954
79955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79956         for lib/localcharset.c.
79957
79958 2000-03-04  Jim Meyering  <meyering@lucent.com>
79959
79960         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79961         installing into it.
79962         (uninstall-local): Uncomment this rule so `make distcheck' works
79963         once again.
79964
79965         * lib/unicodeio.c (<errno.h>): Include it.
79966         (errno): Declare if not defined.
79967
79968         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79969
79970         * lib/config.charset: New version, incorporating remarks from a linux
79971         i18n mailing list.  From Bruno Haible.
79972
79973 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79974
79975         * m4/codeset.m4: New file.
79976         * m4/iconv.m4: New file.
79977         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79978
79979 2000-03-03  Jim Meyering  <meyering@lucent.com>
79980
79981         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79982
79983 2000-03-02  Jim Meyering  <meyering@lucent.com>
79984
79985         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79986         the messages come out on separate lines.
79987
79988         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79989         rather than jm_CHECK_DECLARATIONS.
79990         * m4/decl.m4: Remove now-unused file.
79991
79992         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79993         geteuid.
79994
79995 2000-03-02  Jim Meyering  <meyering@lucent.com>
79996
79997         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79998
79999 2000-03-01  Jim Meyering  <meyering@lucent.com>
80000
80001         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80002         * lib/unicodeio.c: Likewise.
80003
80004 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80005
80006         * lib/config.charset: New file.
80007         * lib/localcharset.c: New file.
80008         * lib/unicodeio.h, lib/unicodeio.c: New files.
80009         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80010         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80011         (noinst_HEADERS): Add unicodeio.h.
80012         (all-local, install-exec-local, charset.alias): New targets.
80013
80014 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80015
80016         * lib/quotearg.c (ALERT_CHAR): New macro.
80017         (quotearg_buffer_restyled): Use it.
80018
80019 2000-02-27  Jim Meyering  <meyering@lucent.com>
80020
80021         * m4/check-decl.m4: Add getenv to the list.
80022
80023 2000-02-27  Jim Meyering  <meyering@lucent.com>
80024
80025         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80026         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80027
80028         * lib/backupfile.c: Guard inclusion of stdlib.h with
80029         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80030         Declare malloc if needed.
80031
80032         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80033         `#ifndef HAVE_DECL..'
80034         now that autoconf always defines the HAVE_DECL_ symbols.
80035         * lib/human.c: Likewise.
80036         * lib/same.c: Likewise.
80037         * lib/strtoumax.c: Likewise.
80038
80039         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80040         declaration check was not run.
80041         * lib/hash.c: Likewise.
80042         * lib/human.c: Likewise.
80043         * lib/same.c: Likewise.
80044         * lib/strtoumax.c: Likewise.
80045
80046         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80047         `.', then first look up the entire `.'-containing string as a login
80048         name.
80049
80050 2000-02-23  Jim Meyering  <meyering@lucent.com>
80051
80052         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80053         in place of my hack.
80054
80055 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80056
80057         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80058         (textint): New typedef.
80059         (parser_control): Member year changed from int to textint.
80060         All uses changed.
80061         (YYSTYPE): Removed; replaced by %union with int and textint members.
80062         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80063         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80064         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80065         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80066         (date, number, to_year): Use width of number in digits, not its value,
80067         to determine whether it's a 2-digit year, or a 2-digit time.
80068         (yylex): Store number of digits of numeric tokens.
80069         Reported by John Kendall.
80070
80071         (parser_control): Changed from struct parser_control to typedef (for
80072         consistency).  All uses changed.
80073
80074         (tID): Removed; not used.
80075         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80076
80077 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80078
80079         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80080         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80081
80082 2000-02-12  Jim Meyering  <meyering@lucent.com>
80083
80084         * lib/userspec.c (ISDIGIT): Define it.
80085         (isdigit): Remove definition.
80086         (is_number): Use ISDIGIT, not isdigit.
80087         <libintl.h>: Include.
80088         (_ and N_): Define.
80089         (parse_user_spec): Mark translatable strings.
80090
80091 2000-02-10  Jim Meyering  <meyering@lucent.com>
80092
80093         With these changes, nanosleep.[ch] are finally enough like the other
80094         lib/* replacement files to compile on a few more losing systems.
80095
80096         * lib/nanosleep.h: Don't include config.h.
80097         Remove prototype from declaration of nanosleep.
80098         (PARAMS): Remove now-unneeded definition.
80099         * lib/nanosleep.c: #undef nanosleep.
80100         (rpl_nanosleep): Rename from nanosleep.
80101
80102 2000-02-10  Jim Meyering  <meyering@lucent.com>
80103
80104         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80105         gnu_nanosleep to rpl_nanosleep.
80106
80107 2000-02-09  Jim Meyering  <meyering@lucent.com>
80108
80109         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80110         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80111
80112 2000-02-08  Akim Demaille  <akim@epita.fr>
80113
80114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80115         `[' and `]' and remove uses of `changequote'.
80116         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80117         (AC_SYS_LARGEFILE): Likewise.
80118         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80119         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80120         of changequote.
80121         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80122         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80123         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80124         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80125
80126 2000-02-05  Jim Meyering  <meyering@lucent.com>
80127
80128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80129         Remove explicit use of AC_HEADER_TIME.  It is required by
80130         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80131         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80132         in autoconf whereby the expansion of the latter ended up preceding
80133         the expansion of its prerequisite, AC_HEADER_TIME.
80134         Reported by Volker Borchert.
80135
80136 2000-02-03  Jim Meyering  <meyering@lucent.com>
80137
80138         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80139
80140 2000-02-03  Jim Meyering  <meyering@lucent.com>
80141
80142         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80143         rather than with `#if HAVE_UTMPNAME'.
80144
80145 2000-02-02  Jim Meyering  <meyering@lucent.com>
80146
80147         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80148         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80149         Reported by Eli Zaretskii.
80150
80151 2000-02-01  Jim Meyering  <meyering@lucent.com>
80152
80153         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80154
80155 2000-01-31  Jim Meyering  <meyering@lucent.com>
80156
80157         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80158         functions.  Add the time.h and sys/time.h headers along with the
80159         AC_REQUIRE'ment of AC_HEADER_TIME.
80160
80161 2000-01-31  Jim Meyering  <meyering@lucent.com>
80162
80163         * lib/nanosleep.h (nanosleep): Guard declaration with
80164         `#if ! HAVE_DECL_NANOSLEEP'.
80165         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80166         the declaration in that vendor's sys/timers.h.
80167         Reported by Christian Krackowizer.
80168
80169         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80170         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80171         (ISPRINT): Likewise.
80172         Reported by Tom Tromey.
80173
80174 2000-01-30  Jim Meyering  <meyering@lucent.com>
80175
80176         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80177
80178         * m4/prereq.m4 (utmp_includes): Define.
80179         Check for ut_user and ut_name members in both struct utmpx
80180         and struct utmp.
80181
80182 2000-01-30  Jim Meyering  <meyering@lucent.com>
80183
80184         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80185         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80186         header files where only utmpx.ut_user is declared.
80187
80188         * lib/readutmp.h (UT_USER): Define.
80189
80190 2000-01-29  Jim Meyering  <meyering@lucent.com>
80191
80192         * m4/lib-check.m4: New file containing library-related checks from
80193         fileutils and sh-utils (textutils had none).
80194
80195 2000-01-28  Jim Meyering  <meyering@lucent.com>
80196
80197         * m4/perl.m4: Change format of warning message to look more like that
80198         from the missing script.  Suggestion from François Pinard.
80199
80200 2000-01-25  Jim Meyering  <meyering@lucent.com>
80201
80202         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80203         well as time.h in the compile check.
80204         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80205         Fix typo in cross-compiling case: s/yes/no/.
80206
80207 2000-01-23  Jim Meyering  <meyering@lucent.com>
80208
80209         * m4/jm-macros.m4: Move df-related tests here from
80210         fileutils/configure.in
80211
80212         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80213         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80214
80215         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80216         s/space/ac_fsusage_space/.
80217         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80218
80219         * m4/ftruncate.m4: New file (derived from part of
80220         fileutils/configure.in).
80221         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80222         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80223
80224         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80225         AC_SUBST these here, rather than just in sh-util/configure.in, so
80226         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80227         all the same.
80228         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80229         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80230         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80231         (AC_SUBST(POW_LIBM)): Likewise.
80232         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80233
80234 2000-01-23  Jim Meyering  <meyering@lucent.com>
80235
80236         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80237         obstack.c.
80238
80239 2000-01-22  Jim Meyering  <meyering@lucent.com>
80240
80241         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80242
80243         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80244
80245         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80246         configure.in
80247         (AC_CHECK_HEADERS): Likewise for sh-utils.
80248         (AC_CHECK_HEADERS): Likewise for textutils.
80249         Merge the three lists of headers.
80250
80251         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80252         from fileutils' configure.in.
80253
80254         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80255         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80256         check-decl.m4.
80257
80258         * m4/check-decl.m4: Use #if rather than #ifdef.
80259         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80260         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80261         (_jm_DECL_HEADERS): Define new function.
80262         (jm_CHECK_DECLARATIONS): Require it.
80263
80264 2000-01-22  Jim Meyering  <meyering@lucent.com>
80265
80266         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80267         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80268         Required for some AIX systems.  Reported by Christian Krackowizer.
80269         [TESTING] (main): New function.
80270
80271         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80272         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80273         letters.
80274
80275         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80276         iswprint.
80277
80278         * lib/strverscmp.c (ISDIGIT): Define.
80279         (strverscmp): Use ISDIGIT, not isdigit.
80280
80281 2000-01-19  Jim Meyering  <meyering@lucent.com>
80282
80283         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80284         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80285         defines `struct timespec' in <sys/time.h>
80286
80287         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80288         Thanks to Akim for explaining.
80289
80290 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80291
80292         * lib/nanosleep.c (nanosleep):
80293         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80294         POSIX.1 doesn't require SA_INTERRUPT and some systems
80295         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80296         it's been part of POSIX.1 since day 1 (in 1988).
80297
80298 2000-01-17  Jim Meyering  <meyering@lucent.com>
80299
80300         * lib/interlock: Remove unused file.  Reported by François Pinard.
80301
80302 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80303
80304         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80305         alert, backslash, formfeed, and vertical tab unnecessarily in
80306         shell quoting style.
80307
80308 2000-01-16  Jim Meyering  <meyering@lucent.com>
80309
80310         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80311         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80312         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80313         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80314
80315 2000-01-16  Jim Meyering  <meyering@lucent.com>
80316
80317         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80318         because the latter didn't work.
80319
80320 2000-01-15  Jim Meyering  <meyering@lucent.com>
80321
80322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80323         (AC_REPLACE_FUNCS): Add memcpy and memset.
80324         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80325         Add strpbrk.
80326         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80327
80328 2000-01-12  Jim Meyering  <meyering@lucent.com>
80329
80330         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80331         (jm_PREREQ): Use it.
80332         (jm_PREREQ_READUTMP): New macro.
80333         (jm_PREREQ): Use it.
80334
80335 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80336
80337         Quote multibyte characters correctly.
80338         * m4/c-bs-a.m4: New file.
80339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80340         (jm_PREREQ): Use it.
80341
80342 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80343
80344         * m4/uintmax_t.m4: Port to autoconf 2.13.
80345
80346 2000-01-08  Jim Meyering  <meyering@ascend.com>
80347
80348         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80349         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80350
80351 2000-01-04  Jim Meyering  <meyering@ascend.com>
80352
80353         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80354         jm_STRUCT_DIRENT_D_TYPE.
80355         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80356         jm_STRUCT_DIRENT_D_INO.
80357         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80358         jm_STRUCT_UTIMBUF.
80359         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80360         renamings.
80361         * m4/utime.m4: Likewise.
80362
80363         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80364         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80365
80366 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80367
80368         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80369         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80370
80371 2000-01-02  Jim Meyering  <meyering@ascend.com>
80372
80373         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80374         remember if this is necessary.
80375
80376 1999-12-26  Jim Meyering  <meyering@ascend.com>
80377
80378         * m4/jm-macros.m4: Use it here.
80379         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80380
80381 1999-12-23  Jim Meyering  <meyering@ascend.com>
80382
80383         * m4/jm-macros.m4: Check for clock_gettime (moved from
80384         fileutils/configure.in)
80385         Check for gettimeofday.
80386
80387 1999-12-20  Jim Meyering  <meyering@ascend.com>
80388
80389         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80390         autoconf-2.14a-1999-12-20.
80391
80392 1999-12-19  Jim Meyering  <meyering@ascend.com>
80393
80394         * m4/lstat-slash.m4: New file.
80395         * m4/jm-macros.m4: Use the new macro:
80396         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80397
80398 1999-12-07  Jim Meyering  <meyering@ascend.com>
80399
80400         * m4/perl.m4: Require that File::Compare be available, too.
80401         Too many systems seem to lack it.
80402
80403         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80404         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80405
80406 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80407
80408         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80409         problem with the QNX 4.25 shell, which doesn't propagate exit
80410         status of failed commands inside shell assignments.
80411
80412 1999-11-17  Jim Meyering  <meyering@ascend.com>
80413
80414         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80415
80416 1999-11-07  Jim Meyering  <meyering@ascend.com>
80417
80418         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80419
80420 1999-11-06  Jim Meyering  <meyering@ascend.com>
80421
80422         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80423         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80424
80425 1999-11-05  Jim Meyering  <meyering@ascend.com>
80426
80427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80428         configure.in of textutils, fileutils, and sh-utils into this one
80429         (shared between those packages) file.
80430         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80431         AC_STRUCT_ST_BLKSIZE.
80432
80433 1999-11-03  Jim Meyering  <meyering@ascend.com>
80434
80435         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80436         of AC_CHECK_TYPE checks includes unistd.h.
80437         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80438         Suggestion from Akim Demaille.
80439
80440 1999-10-30  Jim Meyering  <meyering@ascend.com>
80441
80442         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80443         m4-quoted string.
80444         * m4/ls-mntd-fs.m4: Likewise.
80445         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80446         * m4/jm-winsz1.m4: Likewise.
80447
80448         * m4/const.m4: Remove file, since the fix made it into the experimental
80449         version of autoconf.
80450         * m4/mktime.m4: Likewise.
80451
80452         * m4/check-type.m4: Remove file, now that the latest version of
80453         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80454
80455         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80456         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80457         AC_CHECK_TYPE.
80458
80459 1999-10-04  Jim Meyering  <meyering@ascend.com>
80460
80461         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80462
80463 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80464
80465         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80466         2.95.1 bug with HP-UX 10.20.
80467
80468 1999-09-17  Jim Meyering  <meyering@ascend.com>
80469
80470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80471         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80472         due to missing strdup (against sh-utils-2.0).
80473
80474 1999-08-29  Jim Meyering  <meyering@ascend.com>
80475
80476         * m4/jm-macros.m4: Require jm_BISON.
80477         * m4/bison.m4: New file.
80478
80479 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80480
80481         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80482         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80483
80484 1999-08-05  Jim Meyering  <meyering@ascend.com>
80485
80486         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80487         to avoid conflicts with `conftest' on 8+3 filesystems.
80488         Suggestion from Eli Zaretskii.
80489
80490 1999-08-04  Jim Meyering  <meyering@ascend.com>
80491
80492         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80493         fileutils and sh-utils (textutils's getline test was inadequate).
80494         (AM_FUNC_GETLINE): Run this test.
80495         (AC_CHECK_FUNCS): Check for getdelim.
80496         Reported by Bob Proulx.
80497
80498 1999-08-02  Jim Meyering  <meyering@ascend.com>
80499
80500         * m4/jm-macros.m4: Add a comment.
80501
80502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80503
80504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80505         <inttypes.h> defines strtoumax as a macro (and not as a
80506         function).
80507
80508 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80509
80510         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80511         that we can shift, multiply and divide unsigned long long
80512         values; Ultrix cc can't do it.
80513
80514 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80515
80516         * m4/mktime.m4: New file, which is a preview of what should appear
80517         in the next public autoconf release.
80518
80519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80520
80521         * m4/lfs.m4: Remove this file.
80522         * m4/largefile.m4: New file.  It contains the old contents of
80523         lfs.m4, except that all names with prefix AC_LFS have been
80524         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80525         compatible with future autoconf versions.  Also, some minor m4
80526         quoting problems have been fixed.
80527
80528 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80529
80530         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80531         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80532         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80533         and simplify the shell code.
80534
80535 1999-08-01  Jim Meyering  <meyering@ascend.com>
80536
80537         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80538         m4.
80539
80540 1999-07-20  Jim Meyering  <meyering@ascend.com>
80541
80542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80543
80544 1999-07-15  Jim Meyering  <meyering@ascend.com>
80545
80546         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80547
80548 1999-05-22  Jim Meyering  <meyering@ascend.com>
80549
80550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80551
80552 1999-05-20  Jim Meyering  <meyering@ascend.com>
80553
80554         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80555         Add a colon after each `then' in case $4 is empty.
80556
80557 1999-05-16  Jim Meyering  <meyering@ascend.com>
80558
80559         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80560
80561 1999-05-10  Jim Meyering  <meyering@ascend.com>
80562
80563         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80564
80565         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80566         AC_FUNC_MKTIME.
80567
80568 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80569
80570         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80571
80572 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80573
80574         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80575         not CPPFLAGS, so that linking works correctly in IRIX.
80576
80577 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80578
80579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80580
80581 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80582
80583         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80584         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80586         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80587         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80588
80589         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80590
80591 1999-04-20  Jim Meyering  <meyering@ascend.com>
80592
80593         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80594         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80595         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80596
80597 1999-04-18  Jim Meyering  <meyering@ascend.com>
80598
80599         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80600         * m4/jm-macros.m4: Use it.
80601
80602 1999-04-06  Jim Meyering  <meyering@ascend.com>
80603
80604         * m4/strftime.m4: Remove test for %f.
80605
80606 1999-03-29  Jim Meyering  <meyering@ascend.com>
80607
80608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80609         superset of the AC_TYPE_* checks in the textutils, fileutils,
80610         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80611         AC_TYPE_PID_T.
80612
80613 1999-03-28  Jim Meyering  <meyering@ascend.com>
80614
80615         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80616         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80617         replaced e.g., in the *.sh files of the sh-utils.
80618
80619 1999-03-20  Jim Meyering  <meyering@ascend.com>
80620
80621         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80622         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80623         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80624
80625 1999-03-19  Jim Meyering  <meyering@ascend.com>
80626
80627         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80628
80629 1999-03-12  Jim Meyering  <meyering@ascend.com>
80630
80631         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80632
80633 1999-03-07  Jim Meyering  <meyering@ascend.com>
80634
80635         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80636         declared.
80637
80638 1999-02-17  Jim Meyering  <meyering@ascend.com>
80639
80640         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80641         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80642
80643 1999-02-07  Jim Meyering  <meyering@ascend.com>
80644
80645         * m4/group-member.m4: New file -- extracted from sh-utils'
80646         configure.in.
80647
80648         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80649         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80650
80651 1999-02-06  Jim Meyering  <meyering@ascend.com>
80652
80653         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80654         * m4/fnmatch.m4: Likewise.
80655         * m4/getgroups.m4: Likewise.
80656         * m4/lstat.m4: Likewise.
80657         * m4/malloc.m4: Likewise.
80658         * m4/putenv.m4: Likewise.
80659         * m4/realloc.m4: Likewise.
80660         * m4/regex.m4: Likewise.
80661         * m4/stat.m4: Likewise.
80662         * m4/strftime.m4: Likewise.
80663         Suggestion from Alain Magloire.
80664
80665         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80666         * m4/fnmatch.m4: Likewise.
80667         * m4/getgroups.m4: Likewise.
80668         * m4/getline.m4: Likewise.
80669         * m4/lstat.m4: Likewise.
80670         * m4/malloc.m4: Likewise.
80671         * m4/memcmp.m4: Likewise.
80672         * m4/putenv.m4: Likewise.
80673         * m4/realloc.m4: Likewise.
80674         * m4/regex.m4: Likewise.
80675         * m4/stat.m4: Likewise.
80676         * m4/strftime.m4: Likewise.
80677         Suggestion from Alain Magloire.
80678
80679         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80680         an argument.
80681
80682         * m4/regex.m4: Add a run-time Test for proper operation of
80683         re_compile_pattern.
80684
80685 1999-01-31  Jim Meyering  <meyering@ascend.com>
80686
80687         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80688
80689 1999-01-30  Jim Meyering  <meyering@ascend.com>
80690
80691         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80692
80693         * m4/jm-mktime.m4: Make this a wrapper around the official
80694         AM_FUNC_MKTIME rather than my private copy, now that the official one
80695         is up to date.
80696         * m4/mktime.m4: Remove file.
80697
80698         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80699         * m4/uptime.m4: Likewise.
80700         * m4/uintmax_t.m4: Likewise.
80701
80702 1999-01-28  Jim Meyering  <meyering@ascend.com>
80703
80704         * m4/jm-macros.m4: Use jm_AFS.
80705         * m4/afs.m4: New file (from fileutils' configure.in).
80706
80707         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80708         * m4/chown.m4: Likewise.
80709         * m4/d-ino.m4: Likewise.
80710         * m4/d-type.m4: Likewise.
80711         * m4/fnmatch.m4: Likewise.
80712         * m4/getgroups.m4: Likewise.
80713         * m4/gettext.m4: Likewise.
80714         * m4/jm-mktime.m4: Likewise.
80715         * m4/jm-winsz2.m4: Likewise.
80716         * m4/lcmessage.m4: Likewise.
80717         * m4/ls-mntd-fs.m4: Likewise.
80718         * m4/malloc.m4: Likewise.
80719         * m4/memcmp.m4: Likewise.
80720         * m4/putenv.m4: Likewise.
80721         * m4/realloc.m4: Likewise.
80722         * m4/st_mtim.m4: Likewise.
80723         * m4/strftime.m4: Likewise.
80724
80725 1999-01-16  Jim Meyering  <meyering@ascend.com>
80726
80727         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80728         (ARGMATCH_DIE_DECL): Define.
80729
80730 1999-01-12  Jim Meyering  <meyering@ascend.com>
80731
80732         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80733         Reported by Lars Hecking.
80734
80735 1999-01-10  Jim Meyering  <meyering@ascend.com>
80736
80737         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80738         gross kludge.
80739         * m4/inttypes_h.m4: Likewise.
80740         * m4/lstat.m4: Likewise.
80741         * m4/malloc.m4: Likewise.
80742         * m4/readdir.m4: Likewise.
80743         * m4/realloc.m4: Likewise.
80744         * m4/st_dm_mode.m4: Likewise.
80745         * m4/stat.m4: Likewise.
80746         * m4/utimbuf.m4: Likewise.
80747         * m4/utimes.m4: Likewise.
80748
80749         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80750         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80751         comments in config.h.in are meaningful.
80752
80753         * m4/jm-macros.m4: Require autoconf-2.13 here.
80754
80755         * m4/regex.m4: By default, don't use the included regex.c on systems
80756         with glibc 2.  Suggestion from Uli Drepper.
80757
80758 1999-01-02  Jim Meyering  <meyering@ascend.com>
80759
80760         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80761
80762 1998-12-18  Jim Meyering  <meyering@ascend.com>
80763
80764         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80765         Based on a suggestion from Lars Hecking.
80766
80767 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80768
80769         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80770
80771 1998-11-16  Jim Meyering  <meyering@ascend.com>
80772
80773         * m4/lfs.m4: Double-quote the `uname...` expression.
80774
80775 1998-11-14  Jim Meyering  <meyering@ascend.com>
80776
80777         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80778         * m4/stat.m4: Likewise.
80779
80780 1998-11-03  Jim Meyering  <meyering@ascend.com>
80781
80782         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80783         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80784
80785 1998-10-18  Jim Meyering  <meyering@ascend.com>
80786
80787         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80788
80789 1998-10-17  Jim Meyering  <meyering@ascend.com>
80790
80791         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80792         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80793         calls for those previously hard-coded headers.  Instead, take a new
80794         parameter.
80795         (jm_CHECK_DECLARATIONS): Reflect interface change.
80796         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80797         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80798
80799         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80800
80801 1998-10-14  Jim Meyering  <meyering@ascend.com>
80802
80803         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80804         instead of "TZ=America/Vancouver".  From Paul Eggert.
80805
80806 1998-10-11  Jim Meyering  <meyering@ascend.com>
80807
80808         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80809         This adds a test for a recently added compatibility fix for mktime.c.
80810         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80811
80812 1998-09-27  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80815
80816         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80817         ../configure.in, including a change from Gordon Matzigkeit to allow
80818         cross-compiling for the Hurd.
80819
80820         * m4/glibc.m4: New file/macro to test for the GNU C Library
80821         versions 1 and 2.  From Gordon Matzigkeit.
80822         Indent.
80823
80824 1998-09-21  Jim Meyering  <meyering@ascend.com>
80825
80826         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80827
80828 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80829
80830         Port nanosecond-resolution times to UnixWare 2.1.2 and
80831         pedantic Solaris 2.6.
80832
80833         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80834         AC_STRUCT_ST_MTIM.
80835         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80836         Generate name of ns member, instead of just 1 or undef.
80837         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80838
80839 1998-08-15  Jim Meyering  <meyering@ascend.com>
80840
80841         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80842         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80843         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80844         instead of jm_TYPE_SSIZE_T.
80845
80846 1998-08-12  Jim Meyering  <meyering@ascend.com>
80847
80848         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80849
80850 1998-08-02  Jim Meyering  <meyering@ascend.com>
80851
80852         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80853         in acconfig.h manually.
80854
80855 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80856
80857         * m4/st_mtim.m4: New file.
80858
80859 1998-07-28  Jim Meyering  <meyering@ascend.com>
80860
80861         * m4/utimes.m4: Undef stat.
80862
80863 1998-07-25  Jim Meyering  <meyering@ascend.com>
80864
80865         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80866         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80867
80868 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80869
80870         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80871         uid and gid actually remain unchanged.
80872
80873 1998-07-07  Jim Meyering  <meyering@ascend.com>
80874
80875         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80876
80877 1998-07-04  Jim Meyering  <meyering@ascend.com>
80878
80879         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80880         to prove that this macro can be used in packages without regex.c.
80881
80882 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80883
80884         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80885         is to be used.
80886
80887 1998-07-03  Jim Meyering  <meyering@ascend.com>
80888
80889         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80890
80891         * m4/gettext.m4: New file -- from gettext-0.10.35.
80892         * m4/lcmessage.m4: Likewise.
80893         * m4/progtest.m4: Likewise.
80894
80895         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80896         * m4/jm-macros.m4: Require the new macro.
80897
80898 1998-06-29  Jim Meyering  <meyering@ascend.com>
80899
80900         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80901         for the definition of NGROUPS (used in a system header included
80902         by sys/mount.h).
80903
80904 1998-06-28  Jim Meyering  <meyering@ascend.com>
80905
80906         * m4/ls-mntd-fs.m4: New file.
80907         * m4/fstypename.m4: New file.
80908
80909         * m4/jm-macros.m4: Require the new macro.
80910         * m4/jm-glibc-io.m4: New file.
80911
80912 1998-05-19  Jim Meyering  <meyering@ascend.com>
80913
80914         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80915         * m4/lchown.m4: New file.
80916
80917         * m4/Makefile.am.in: New file.
80918         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80919
80920 1998-05-14  Jim Meyering  <meyering@ascend.com>
80921
80922         * m4/Makefile.am (EXTRA_DIST): Add them.
80923         * m4/jm-macros.m4: New file.
80924         * m4/utimbuf.m4: New file.
80925
80926 1998-05-12  Jim Meyering  <meyering@ascend.com>
80927
80928         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80929
80930 1998-05-11  Jim Meyering  <meyering@ascend.com>
80931
80932         * m4/isc-posix.m4: New file.
80933
80934 1998-05-10  Jim Meyering  <meyering@ascend.com>
80935
80936         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80937
80938 1998-05-09  Jim Meyering  <meyering@ascend.com>
80939
80940         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80941         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80942         with automake.
80943
80944         * m4/ssize_t.m4: New file.
80945         * m4/mktime.m4: Remove file -- the new automake has this now.
80946
80947 1998-04-26  Jim Meyering  <meyering@ascend.com>
80948
80949         * m4/assert.m4: New file.
80950         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80951
80952 1998-04-05  Jim Meyering  <meyering@ascend.com>
80953
80954         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80955         (jm_PREREQ): Use it here.
80956
80957 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80958
80959         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80960         in acconfig.h.
80961
80962 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80963
80964         * m4/prereq.m4: New file.
80965         * m4/error.m4: New file.
80966         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80967
80968 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80969
80970         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80971         cache-check for the same variable -- that defeated the purpose of
80972         the test; the test program was never run.  This was a problem only
80973         on systems with losing getline functions -- HP-UX 10.20 is one.
80974         Reported by Bjorn Helgaas.
80975
80976 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80977
80978         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80979
80980 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80981
80982         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80983
80984         * m4/const.m4: New file.  Use an initializer in this declaration
80985         typedef int charset[2]; const charset x;
80986         Reported by Bob Glickstein.
80987
80988 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80989
80990         * m4/chown.m4: Fix reversed types on -1 args to chown.
80991         From Kaveh Ghazi.
80992
80993 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80994
80995         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80996         Add lseek and memchr.
80997
80998         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80999         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81000         have a 20-character limit on names.
81001
81002 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81003
81004         * m4/inttypes_h.m4: New file.
81005         * m4/uintmax_t.m4: New file.
81006         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81007
81008
81009         -----
81010
81011         Local Variables:
81012         coding: utf-8
81013         End:
81014
81015         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81016
81017         Copying and distribution of this file, with or without
81018         modification, are permitted provided the copyright notice
81019         and this notice are preserved.