520b5733982fe030fa7dc517150747db1cf3b0ff
[gnulib.git] / ChangeLog
1 2011-05-07  Bruno Haible  <bruno@clisp.org>
2
3         fpurge: Move AC_LIBOBJ invocations to module description.
4         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5         invocations from here...
6         * modules/fpurge (configure.ac): ... to here.
7
8 2011-05-07  Bruno Haible  <bruno@clisp.org>
9
10         fpending: Move AC_LIBOBJ invocations to module description.
11         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12         gl_FUNC_FPENDING.
13         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14         invocations from here...
15         * modules/fpending (configure.ac): ... to here.
16
17 2011-05-07  Bruno Haible  <bruno@clisp.org>
18
19         fopen: Move AC_LIBOBJ invocations to module description.
20         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
21         invocations from here...
22         * modules/fopen (configure.ac): ... to here.
23
24 2011-05-07  Bruno Haible  <bruno@clisp.org>
25
26         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
27         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
28         gl_FUNC_FNMATCH_POSIX.
29         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
30         invocations from here...
31         * modules/fnmatch (configure.ac): ... to here.
32         * modules/fnmatch-gnu (configure.ac): ... and here.
33
34 2011-05-07  Bruno Haible  <bruno@clisp.org>
35
36         flock: Move AC_LIBOBJ invocations to module description.
37         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38         invocations from here...
39         * modules/flock (configure.ac): ... to here.
40
41 2011-05-07  Bruno Haible  <bruno@clisp.org>
42
43         fileblocks: Move AC_LIBOBJ invocations to module description.
44         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
45         gl_PREREQ_FILEBLOCKS invocations from here...
46         * modules/fileblocks (configure.ac): ... to here.
47
48 2011-05-06  Bruno Haible  <bruno@clisp.org>
49
50         fflush: Move AC_LIBOBJ invocations to module description.
51         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
52         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53         invocations from here...
54         * modules/fflush (configure.ac): ... to here.
55
56 2011-05-06  Bruno Haible  <bruno@clisp.org>
57
58         fdopendir: Move AC_LIBOBJ invocations to module description.
59         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
60         here...
61         * modules/fdopendir (configure.ac): ... to here.
62         (Depends-on): Improve conditions.
63
64 2011-05-06  Bruno Haible  <bruno@clisp.org>
65
66         _Exit: Move AC_LIBOBJ invocations to module description.
67         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
68         invocations from here...
69         * modules/_Exit (configure.ac): ... to here.
70
71 2011-05-21  Bruno Haible  <bruno@clisp.org>
72
73         euidaccess: Respect rules for use of AC_LIBOBJ.
74         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
75         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
76         from here...
77         * modules/euidaccess (configure.ac): ... to here.
78
79 2011-05-06  Bruno Haible  <bruno@clisp.org>
80
81         error: Move AC_LIBOBJ invocations to module description.
82         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
83         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
84         invocations from here...
85         * modules/error (configure.ac): ... to here.
86
87 2011-05-06  Bruno Haible  <bruno@clisp.org>
88
89         duplocale: Move AC_LIBOBJ invocations to module description.
90         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
91         gl_PREREQ_DUPLOCALE invocations from here...
92         * modules/duplocale (configure.ac): ... to here.
93
94 2011-05-05  Bruno Haible  <bruno@clisp.org>
95
96         dirfd: Move AC_LIBOBJ invocations to module description.
97         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
98         gl_FUNC_DIRFD.
99         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
100         here...
101         * modules/dirfd (configure.ac): ... to here.
102         (Depends-on): Fix condition.
103
104 2011-05-05  Bruno Haible  <bruno@clisp.org>
105
106         chown: Respect rules for use of AC_LIBOBJ.
107         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
108         * modules/chown (configure.ac): ... to here.
109
110 2011-05-05  Bruno Haible  <bruno@clisp.org>
111
112         chdir-long: Move AC_LIBOBJ invocations to module description.
113         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
114         gl_PREREQ_CHDIR_LONG invocations from here...
115         * modules/chdir-long (configure.ac): ... to here.
116
117 2011-05-05  Bruno Haible  <bruno@clisp.org>
118
119         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
120         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
121         from here...
122         * modules/canonicalize-lgpl (configure.ac): ... to here.
123
124 2011-05-05  Bruno Haible  <bruno@clisp.org>
125
126         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
127         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
128         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
129         REPLACE_CALLOC.
130         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
131         * modules/calloc-gnu (configure.ac): Likewise.
132
133 2011-05-05  Bruno Haible  <bruno@clisp.org>
134
135         btowc: Move AC_LIBOBJ invocations to module description.
136         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
137         invocations from here...
138         * modules/btowc (configure.ac): ... to here.
139
140 2011-05-21  Bruno Haible  <bruno@clisp.org>
141
142         atexit: Move AC_LIBOBJ invocations to module description.
143         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
145         here...
146         * modules/atexit (configure.ac): ... to here.
147
148 2011-05-05  Bruno Haible  <bruno@clisp.org>
149
150         atoll: Move AC_LIBOBJ invocations to module description.
151         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
152         invocations from here...
153         * modules/atoll (configure.ac): ... to here.
154
155 2011-05-05  Bruno Haible  <bruno@clisp.org>
156
157         argz: Move AC_LIBOBJ invocations to module description.
158         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
159         * modules/argz (configure.ac): ... to here.
160
161 2011-05-05  Bruno Haible  <bruno@clisp.org>
162
163         alphasort: Move AC_LIBOBJ invocations to module description.
164         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
165         gl_PREREQ_ALPHASORT invocations from here...
166         * modules/alphasort (configure.ac): ... to here.
167
168 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
169
170         verify: new macro verify_expr; verify_true deprecated
171         * NEWS: Mention this.
172         * doc/verify.texi (Compile-time Assertions): Document this.
173         * lib/verify.h (verify_true): Deprecate.
174         (verify_expr): New macro.
175         * tests/test-verify.c (function): Test verify_expr.
176
177 2011-06-14  Jim Meyering  <meyering@redhat.com>
178
179         init.sh: give more portable redirection-related advice in a comment
180         * tests/init.sh (stderr_fileno_): Update the advice in comments.
181         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
182         for lots of discussion.  Stefano Lattarini suggested the solution
183         of putting "9>&2" after the command.  Reported by Bruno Haible.
184
185 2011-06-13  Bruno Haible  <bruno@clisp.org>
186
187         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
188         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
189         'none'.
190
191 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
192
193         ftoastr: use strtof only if HAVE_STRTOF
194         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
196         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
197         * modules/ftoastr (configure.ac): Check for strtof.
198
199 2011-06-13  Bruno Haible  <bruno@clisp.org>
200
201         gnulib-tool: Addendum to 2011-06-08 commit.
202         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
203         and --witness-c-macro have been given, augment AM_CPPFLAGS.
204
205 2011-06-13  Bruno Haible  <bruno@clisp.org>
206
207         fseeko: Provide a non-inline replacement of fseek().
208         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
209         * modules/fseeko (Depends-on): Add fseek.
210         * modules/fseek (License): Change to LGPLv2+.
211
212 2011-06-13  Bruno Haible  <bruno@clisp.org>
213
214         ftello: Provide a non-inline replacement of ftell().
215         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
216         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
217         not have ftello() (such as on mingw).
218         * modules/ftello (Depends-on): Add ftell.
219         * modules/ftell (License): Change to LGPLv2+.
220
221 2011-05-07  Bruno Haible  <bruno@clisp.org>
222
223         ftell: Move AC_LIBOBJ invocations to module description.
224         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
225         * modules/ftell (configure.ac): ... to here.
226
227 2011-05-07  Bruno Haible  <bruno@clisp.org>
228
229         ftello: Respect rules for use of AC_LIBOBJ.
230         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
231         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
232         here...
233         * modules/ftello (configure.ac): ... to here.
234
235 2011-05-07  Bruno Haible  <bruno@clisp.org>
236
237         fseeko: Simplify.
238         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
239         (gl_FUNC_FSEEKO): Inline it here.
240
241 2011-05-07  Bruno Haible  <bruno@clisp.org>
242
243         fseek: Move AC_LIBOBJ invocations to module description.
244         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
245         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
246         * modules/fseek (configure.ac): ... to here.
247
248 2011-05-07  Bruno Haible  <bruno@clisp.org>
249
250         fseek: Respect rules for use of AC_LIBOBJ.
251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
252         here...
253         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
254
255 2011-05-07  Bruno Haible  <bruno@clisp.org>
256
257         fseeko: Respect rules for use of AC_LIBOBJ.
258         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
259         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
260         here...
261         * modules/fseeko (configure.ac): ... to here.
262
263 2011-06-13  Bruno Haible  <bruno@clisp.org>
264
265         gnulib-tool: Allow comments in the 'Depends-on' section.
266         * doc/gnulib.texi (Module description): Mention comment syntax in the
267         Depends-on section.
268         * gnulib-tool (func_get_dependencies): Filter out comment lines.
269
270 2011-06-13  Bruno Haible  <bruno@clisp.org>
271
272         file-set.h: guard __attibute__ use, now that it's not always defined
273         * lib/file-set.h (record_file): Use __attribute__ only with compiler
274         versions that support it.  This fixes a coreutils build failure with
275         the vendor cc on HP-UX 11.31.
276
277 2011-06-12  Bruno Haible  <bruno@clisp.org>
278
279         acl: Add support for HP-UX >= 11.11 JFS ACLs.
280         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
281         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
282         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
283         (acl, aclsort): New declarations.
284         (aclv_nontrivial): New declaration.
285         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
286         (file_has_acl): Read also the second kind of HP-UX ACLs.
287         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
288         kind of HP-UX ACLs if the first kind fails.
289         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
290         second kind of HP-UX ACLs.
291         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
292         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
293         agree.
294         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
295         hpuxjfs.
296         Handle hpuxjfs.
297         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
298         hpuxjfs.
299         Handle hpuxjfs.
300         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
301         (func_test_same_acls): Use both lsacl and getacl.
302         Handle hpuxjfs.
303         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
304         (func_test_same_acls): Use both lsacl and getacl.
305         Handle hpuxjfs.
306
307 2011-06-12  Bruno Haible  <bruno@clisp.org>
308
309         acl: Complete the 2010-08-10 fix.
310         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
311         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
312         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
313         explicitly.
314         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
315         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
316
317 2011-06-12  Bruno Haible  <bruno@clisp.org>
318
319         spawn-pipe tests: Comments.
320         * tests/test-spawn-pipe-child.c (main): Update comment.
321         Reported by James Youngman <jay@gnu.org>.
322
323 2011-06-11  James Youngman  <jay@gnu.org>
324
325         New module 'stat-size'.
326         * modules/stat-size: New module.  Provides macros for accessing
327         file size information in instances of struct stat.  Depends on the
328         fileblocks module because it calls st_blocks.
329         * lib/stat-size.h: New file, adapted from coreutils' system.h.
330         * doc/gnulib.texi: Include stat-size.texi.
331         * doc/stat-size.texi: Documentation for this module.
332         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
333         * m4/fileblocks.m4: Mention that stat-size depends on the call to
334         AC_STRUCT_ST_BLOCKS.
335
336 2011-06-09  Bruno Haible  <bruno@clisp.org>
337
338         thread: Support pthreads-win32.
339         * lib/glthread/thread.h (gl_thread_self): Define differently on
340         pthreads-win32.
341         (gl_null_thread): New declaration.
342         (gl_thread_self_pointer): New macro.
343         * lib/glthread/thread.c (gl_null_thread): New constant.
344         * tests/test-lock.c: Use gl_thread_self_pointer instead of
345         gl_thread_self.
346         * tests/test-tls.c: Likewise.
347         Suggested by Paul Eggert. Reported by Eric Blake.
348
349 2011-06-09  Bruno Haible  <bruno@clisp.org>
350
351         thread: Fix confusion between NULL and 0.
352         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
353         Reported by Paul Eggert.
354
355 2011-06-09  Bruno Haible  <bruno@clisp.org>
356
357         spawn-pipe tests: Avoid test failure on HP-UX 11.
358         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
359         is closed.
360
361 2011-06-09  Bruno Haible  <bruno@clisp.org>
362
363         acl tests: Fix compilation error on HP-UX 11.
364         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
365
366 2011-06-09  Bruno Haible  <bruno@clisp.org>
367
368         rmdir: Avoid test failure on HP-UX 10.20.
369         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
370         EEXIST.
371
372 2011-06-08  Eric Blake  <eblake@redhat.com>
373
374         perror: fix test on mingw
375         * modules/perror-tests (Depends-on): Add dup2.
376
377         strerror_r-posix: fix on MacOS
378         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
380         logic bug.
381         * lib/strerror_r.c (strerror_r): Fix the bug.
382         * lib/strerror.c (strerror): Likewise.
383         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
384         problem.
385         * doc/posix-functions/strerror.texi (strerror): Likewise.
386         * doc/posix-functions/perror.texi (perror): Likewise.
387         * tests/test-strerror.c (main): Enhance test.
388         * tests/test-strerror_r.c (main): Likewise.
389
390 2011-06-08  Bruno Haible  <bruno@clisp.org>
391
392         gnulib-tool: Better isolation between different gnulib-tool invocations.
393         * gnulib-tool: New option --witness-c-macro.
394         (witness_c_macro): New variable.
395         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
396         AM_CPPFLAGS define it as a C macro.
397         (func_emit_tests_Makefile_am): Likewise.
398         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
399         read it from there.
400         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
401         m4_define, not AC_DEFUN.
402         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
403         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
404         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
405         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
406         s|...|...|, to substitute the values of the GNULIB_* module indicator
407         variables.
408         * modules/dirent (Makefile.am): Likewise.
409         * modules/fcntl-h (Makefile.am): Likewise.
410         * modules/iconv-h (Makefile.am): Likewise.
411         * modules/langinfo (Makefile.am): Likewise.
412         * modules/locale (Makefile.am): Likewise.
413         * modules/math (Makefile.am): Likewise.
414         * modules/netdb (Makefile.am): Likewise.
415         * modules/poll-h (Makefile.am): Likewise.
416         * modules/pty (Makefile.am): Likewise.
417         * modules/search (Makefile.am): Likewise.
418         * modules/signal (Makefile.am): Likewise.
419         * modules/spawn (Makefile.am): Likewise.
420         * modules/stdio (Makefile.am): Likewise.
421         * modules/stdlib (Makefile.am): Likewise.
422         * modules/string (Makefile.am): Likewise.
423         * modules/sys_ioctl (Makefile.am): Likewise.
424         * modules/sys_select (Makefile.am): Likewise.
425         * modules/sys_socket (Makefile.am): Likewise.
426         * modules/sys_stat (Makefile.am): Likewise.
427         * modules/sys_times (Makefile.am): Likewise.
428         * modules/sys_utsname (Makefile.am): Likewise.
429         * modules/sys_wait (Makefile.am): Likewise.
430         * modules/termios (Makefile.am): Likewise.
431         * modules/time (Makefile.am): Likewise.
432         * modules/unistd (Makefile.am): Likewise.
433         * modules/wchar (Makefile.am): Likewise.
434
435 2011-06-08  Eric Blake  <eblake@redhat.com>
436
437         strerror: simplify replacement
438         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
439         * modules/strerror (configure.ac): No prereqs needed here...
440         * modules/strerror-override (configure.ac): ...but this needs it.
441         (Files): Add file for needed prereq macro.
442
443 2011-06-08  Bruno Haible  <bruno@clisp.org>
444
445         strerror_r-posix: Tweaks.
446         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
447         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
449         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
450         (gl_FUNC_STRERROR_R): ... to here.
451         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
452
453 2011-06-07  Eric Blake  <eblake@redhat.com>
454
455         perror: document fixed bugs
456         * doc/posix-functions/perror.texi (perror): Document recent
457         patches.
458
459 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
460
461         stat-time: get_stat_birthtime failure is better-defined
462         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
463         return a timestamp whose tv_sec and tv_nsec values are both -1.
464         Previously, the spec said only that the tv_nsec value was negative.
465         This upward-compatible change simplifies GNU tar a bit.
466
467 2011-06-07  Eric Blake  <eblake@redhat.com>
468
469         strerror_r-posix: work around cygwin 1.7.9
470         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
471         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
472         bug without replacing strerror_r.
473         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
474         strerror_r is buggy, but without requiring strerror_r compilation.
475         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
476
477         test-perror: relax test to ignore cygwin bug
478         * tests/test-perror2.c (main): Relax test on requiring detection
479         of stream errors, and use unbuffered stream.
480         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
481         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
482         * doc/posix-functions/fputc.texi (fputc): Likewise.
483         * doc/posix-functions/fputs.texi (fputs): Likewise.
484         * doc/posix-functions/fputws.texi (fputws): Likewise.
485         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
486         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
487         * doc/posix-functions/getopt.texi (getopt): Likewise.
488         * doc/posix-functions/perror.texi (perror): Likewise.
489         * doc/posix-functions/printf.texi (printf): Likewise.
490         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
491         * doc/posix-functions/psignal.texi (psignal): Likewise.
492         * doc/posix-functions/putc.texi (putc): Likewise.
493         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
494         Likewise.
495         * doc/posix-functions/putchar.texi (putchar): Likewise.
496         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
497         Likewise.
498         * doc/posix-functions/puts.texi (puts): Likewise.
499         * doc/posix-functions/putwc.texi (putwc): Likewise.
500         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
501         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
502         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
503         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
504         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
505         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
506         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
507         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
508
509 2011-05-22  Bruno Haible  <bruno@clisp.org>
510
511         strerror: Move AC_LIBOBJ invocations to module description.
512         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
513         gl_PREREQ_STRERROR invocations from here...
514         * modules/strerror (configure.ac): ... to here.
515
516 2011-05-21  Bruno Haible  <bruno@clisp.org>
517
518         perror: Use common idiom.
519         * modules/perror (configure.ac): Reorder statements.
520
521 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
522
523         tests: fix usage message in 'mktempd_'
524         * tests/init.sh (mktempd_): In the usage message, use literal
525         'mktempd_', not '$ME' (which is even undefined), as the name of
526         the subroutine.
527
528 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
529
530         tests init: new function 'fatal_', for hard errors
531         Before this patch, the only way offered by tests/init.sh to
532         properly signal a hard error was the `framework_failure_'
533         function.  But the error message issued by that function,
534         as its name would suggest, refers to a set-up failure in the
535         testsuite, while hard errors can obviously also be due to
536         other reasons.  The best way to fix this inconsistency is to
537         introduce a new function with a more general error message.
538         * tests/init.sh (fatal_): New function.
539
540 2011-06-06  Eric Blake  <eblake@redhat.com>
541
542         canonicalize-lgpl: use common idiom
543         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
544         over newer POSIX -Rf.
545         Reported by Bruno Haible.
546
547         canonicalize-lgpl: work around AIX realpath bug
548         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
549         * doc/posix-functions/realpath.texi (realpath): Document it.
550         Reported by Bruno Haible.
551
552         strerror: work around FreeBSD bug
553         * lib/strerror.c (strerror): Special case 0.
554         Reported by Bruno Haible.
555
556         strerror-override: avoid bloating errno module
557         * modules/errno (Files, configure.ac): Move replacement strings...
558         * modules/strerror-override: ...to new module.
559         * modules/strerror (Depends-on): Add strerror-override.
560         * modules/strerror_r-posix (Depends-on): Likewise.
561         * MODULES.html.sh: Document new module.
562         Reported by Bruno Haible.
563
564 2011-06-06  Bruno Haible  <bruno@clisp.org>
565
566         spawn-pipe tests: Rename program.
567         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
568         * tests/test-spawn-pipe-child.c: Update comment.
569         * tests/test-spawn-pipe.sh: Update.
570         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
571
572         spawn-pipe tests: Link the child program only against libc.
573         * tests/test-spawn-pipe-child.c: New file, extracted from
574         tests/test-spawn-pipe.c.
575         (main): Expect only one argument.
576         (is_open): New function, copied from tests/test-pipe.c.
577         * tests/test-spawn-pipe.c: Don't include <errno.h>.
578         (child_main): Remove function.
579         (test_pipe): Pass only one argument to the child program.
580         (main): Remove child process code. Expect the child program's name as
581         first argument.
582         * tests/test-spawn-pipe.sh: Pass the child program's name as first
583         argument.
584         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
585         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
586         test-spawn-pipe-child against no libraries.
587
588 2011-06-06  Bruno Haible  <bruno@clisp.org>
589
590         careadlinkat: Avoid mismatch between ssize_t and int.
591         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
592         * lib/careadlinkat.c (careadlinkatcwd): Define always.
593
594 2011-06-06  Jim Meyering  <meyering@redhat.com>
595
596         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
597         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
598         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
599
600 2011-06-05  Bruno Haible  <bruno@clisp.org>
601
602         ansi-c++-opt: Interoperability with libtool.
603         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
604         set the variable to "no", not to ":".
605         * NEWS: Mention the change.
606
607 2011-06-05  Bruno Haible  <bruno@clisp.org>
608
609         acl: Fix test failure on AIX 7.
610         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
611         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
612
613 2011-06-05  Bruno Haible  <bruno@clisp.org>
614
615         pipe-filter-ii: Fix test failure on AIX and IRIX.
616         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
617         with EAGAIN, retry with a smaller buffer size.
618
619 2011-06-05  Bruno Haible  <bruno@clisp.org>
620
621         localename: Fix link dependencies.
622         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
623         * modules/localename-tests (Makefile.am): Link test-localename with
624         $(LIBTHREAD).
625
626 2011-06-05  Bruno Haible  <bruno@clisp.org>
627
628         error: Avoid gcc warning.
629         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
630
631 2011-06-05  Bruno Haible  <bruno@clisp.org>
632
633         unsetenv: Avoid gcc warning.
634         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
635
636 2011-06-05  Bruno Haible  <bruno@clisp.org>
637
638         setenv: Avoid gcc warning.
639         * lib/setenv.c (setenv): Provide declaration if system lacks it.
640
641 2011-06-05  Bruno Haible  <bruno@clisp.org>
642
643         sys_select: Ensure memset is declared also on AIX 7.
644         * lib/sys_select.in.h: Include <string.h> also on AIX.
645         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
646         self-contained also on AIX 7.1.
647
648 2011-06-04  Jim Meyering  <meyering@redhat.com>
649
650         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
651         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
652         function name, "error".
653         (_gl_translatable_diag_func_re): New configurable variable.
654
655 2011-06-04  Bruno Haible  <bruno@clisp.org>
656
657         getopt: Avoid gcc warning.
658         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
659
660 2011-06-04  Bruno Haible  <bruno@clisp.org>
661
662         strerror_r: Fix comments.
663         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
664         commit.
665
666 2011-06-04  Bruno Haible  <bruno@clisp.org>
667
668         perror: Fix compilation error.
669         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
670         Undefine fprintf, not sprintf.
671         * modules/perror (Depends-on): Remove intprops, verify.
672
673 2011-06-04  Bruno Haible  <bruno@clisp.org>
674
675         setlocale: Enable replacement on Cygwin 1.5.
676         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
677         Cygwin 1.5.x.
678         * doc/posix-functions/setlocale.texi: Mention that the problem with the
679         LC_CTYPE category also exists on Cygwin 1.5.x.
680
681 2011-06-04  Bruno Haible  <bruno@clisp.org>
682
683         strerror-override: Don't disable symbol renamings.
684         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
685         * lib/strerror-override.c: Include config.h.
686         (strerror_override): Don't undefine.
687
688 2011-06-03  Bruno Haible  <bruno@clisp.org>
689
690         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
691         * lib/localename.h: Update copyright header.
692         * lib/localename.c: Likewise.
693         * lib/relocatable.h: Likewise.
694         * lib/relocatable.c: Likewise.
695
696 2011-06-02  Bruno Haible  <bruno@clisp.org>
697
698         doc: Fix a module name.
699         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
700
701 2011-06-02  Bruno Haible  <bruno@clisp.org>
702
703         pipe2: Remove dependency on 'nonblocking' module.
704         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
705         O_NONBLOCK is defined by gnulib.
706         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
707         is zero.
708         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
709         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
710         defined by gnulib.
711         (get_nonblocking_flag): New function.
712         (main): Test O_NONBLOCK flag only if it is nonzero.
713         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
714
715 2011-06-03  Jim Meyering  <meyering@redhat.com>
716
717         maint: three new prohibit-header-without-use rules
718         Prohibit use of cloexec.h, posixver.h, same.h without use.
719         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
720         (sc_prohibit_posixver_without_use): Likewise.
721         (sc_prohibit_same_without_use): Likewise.
722
723 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
724
725         allocator: 'die' routine is now given requested size
726         * lib/allocator.h (struct allocator.die): New size arg.
727         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
728         If the actual problem is an ssize_t limitation, not a size_t or
729         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
730
731 2011-06-01  Eric Blake  <eblake@redhat.com>
732
733         strerror: drop strerror_r dependency
734         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
735         * lib/strerror-override.c (strerror_override): ...to new file.
736         * lib/strerror-override.h: Add prototype.
737         * lib/strerror-impl.h: Delete.
738         * lib/strerror.c (strerror): New implementation.
739         * modules/errno (Files): Add new files.
740         (configure.ac): Compile new file as appropriate.
741         * modules/strerror (Files): Drop unused file.
742         (Depends-on): Drop strerror_r-posix.
743         * MODULES.html.sh: Document strerror_r-posix.
744         Requested by Sam Steingold.
745
746         perror: call strerror_r directly
747         * modules/perror (Files): Drop strerror-impl.h.
748         * lib/perror.c (perror): Use our own stack buffer, rather than
749         calling a wrapper that uses static storage.
750         * doc/posix-functions/perror.texi (perror): Document a limitation
751         of our replacement.
752
753         strerror_r: fix includes for FreeBSD
754         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
755         since we use abort on some platforms.
756         Reported by Matthias Bolte.
757
758 2011-05-31  Bruno Haible  <bruno@clisp.org>
759
760         Fix link errors in tests: openat-die uses gettext-h.
761         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
762         against $(LIBINTL).
763         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
764         against $(LIBINTL).
765         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
766         $(LIBINTL).
767         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
768         against $(LIBINTL).
769         * modules/linkat-tests (Makefile.am): Link test-linkat against
770         $(LIBINTL).
771         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
772         $(LIBINTL).
773         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
774         against $(LIBINTL).
775         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
776         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
777         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
778         $(LIBINTL).
779         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
780         $(LIBINTL).
781         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
782         $(LIBINTL).
783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
784
785 2011-05-31  Bruno Haible  <bruno@clisp.org>
786
787         Fix link errors in tests: wait-process uses gettext-h.
788         * modules/nonblocking-pipe-tests (Makefile.am): Set
789         test_nonblocking_pipe_main_LDADD.
790         * modules/nonblocking-socket-tests (Makefile.am): Link
791         test-nonblocking-socket-main against $(LIBINTL).
792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
793
794 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
795
796         assert-h: work around 'verify' incompatibility
797         * lib/verify.h: Use @...@ directives, not ifdef.
798         * modules/assert-h (assert.h): Implement the directives.
799         (assert.h): Substitute the symbol-prefix more consistently.
800
801 2011-05-29  Jim Meyering  <meyering@redhat.com>
802
803         trim: remove three superfluous assignments
804         * lib/trim.c (trim2): Remove three superfluous assignments
805         and correct brace positioning.
806
807 2011-05-29  Bruno Haible  <bruno@clisp.org>
808
809         wctype-h: Avoid namespace pollution on Solaris 2.6.
810         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
811         identifiers.
812         * doc/posix-headers/wctype.texi: Mention the problem.
813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
814
815 2011-05-28  Jim Meyering  <meyering@redhat.com>
816
817         parse-datetime.y: accommodate -Wstrict-overflow
818         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
819         placate -Wstrict-overflow.
820
821         trim: avoid a warning from -O2 -Wstrict-overflow
822         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
823
824 2011-05-29  Bruno Haible  <bruno@clisp.org>
825
826         gnulib-tool: Fix bug in yesterday's commit.
827         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
828         twice.
829
830 2011-05-29  Bruno Haible  <bruno@clisp.org>
831
832         Allow multiple gnulib generated include files to be combined.
833         * gnulib-tool (func_compute_include_guard_prefix): New function.
834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
835         ${gl_include_guard_prefix} references.
836         (func_import, func_create_testdir): Invoke
837         func_compute_include_guard_prefix.
838         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
839         * lib/ctype.in.h: Likewise.
840         * lib/dirent.in.h: Likewise.
841         * lib/errno.in.h: Likewise.
842         * lib/fcntl.in.h: Likewise.
843         * lib/float.in.h: Likewise.
844         * lib/getopt.in.h: Likewise.
845         * lib/iconv.in.h: Likewise.
846         * lib/langinfo.in.h: Likewise.
847         * lib/locale.in.h: Likewise.
848         * lib/math.in.h: Likewise.
849         * lib/netdb.in.h: Likewise.
850         * lib/netinet_in.in.h: Likewise.
851         * lib/poll.in.h: Likewise.
852         * lib/pthread.in.h: Likewise.
853         * lib/pty.in.h: Likewise.
854         * lib/sched.in.h: Likewise.
855         * lib/se-selinux.in.h: Likewise.
856         * lib/search.in.h: Likewise.
857         * lib/signal.in.h: Likewise.
858         * lib/spawn.in.h: Likewise.
859         * lib/stdarg.in.h: Likewise.
860         * lib/stddef.in.h: Likewise.
861         * lib/stdint.in.h: Likewise.
862         * lib/stdio.in.h: Likewise.
863         * lib/stdlib.in.h: Likewise.
864         * lib/string.in.h: Likewise.
865         * lib/strings.in.h: Likewise.
866         * lib/sys_file.in.h: Likewise.
867         * lib/sys_ioctl.in.h: Likewise.
868         * lib/sys_select.in.h: Likewise.
869         * lib/sys_socket.in.h: Likewise.
870         * lib/sys_stat.in.h: Likewise.
871         * lib/sys_time.in.h: Likewise.
872         * lib/sys_times.in.h: Likewise.
873         * lib/sys_uio.in.h: Likewise.
874         * lib/sys_utsname.in.h: Likewise.
875         * lib/sys_wait.in.h: Likewise.
876         * lib/sysexits.in.h: Likewise.
877         * lib/termios.in.h: Likewise.
878         * lib/time.in.h: Likewise.
879         * lib/unistd.in.h: Likewise.
880         * lib/wchar.in.h: Likewise.
881         * lib/wctype.in.h: Likewise.
882         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
883         * modules/ctype (Makefile.am): Likewise.
884         * modules/dirent (Makefile.am): Likewise.
885         * modules/errno (Makefile.am): Likewise.
886         * modules/fcntl-h (Makefile.am): Likewise.
887         * modules/float (Makefile.am): Likewise.
888         * modules/getopt-posix (Makefile.am): Likewise.
889         * modules/iconv-h (Makefile.am): Likewise.
890         * modules/langinfo (Makefile.am): Likewise.
891         * modules/locale (Makefile.am): Likewise.
892         * modules/math (Makefile.am): Likewise.
893         * modules/netdb (Makefile.am): Likewise.
894         * modules/netinet_in (Makefile.am): Likewise.
895         * modules/poll-h (Makefile.am): Likewise.
896         * modules/pthread (Makefile.am): Likewise.
897         * modules/pty (Makefile.am): Likewise.
898         * modules/sched (Makefile.am): Likewise.
899         * modules/search (Makefile.am): Likewise.
900         * modules/selinux-h (Makefile.am): Likewise.
901         * modules/signal (Makefile.am): Likewise.
902         * modules/spawn (Makefile.am): Likewise.
903         * modules/stdarg (Makefile.am): Likewise.
904         * modules/stddef (Makefile.am): Likewise.
905         * modules/stdint (Makefile.am): Likewise.
906         * modules/stdio (Makefile.am): Likewise.
907         * modules/stdlib (Makefile.am): Likewise.
908         * modules/string (Makefile.am): Likewise.
909         * modules/strings (Makefile.am): Likewise.
910         * modules/sys_file (Makefile.am): Likewise.
911         * modules/sys_ioctl (Makefile.am): Likewise.
912         * modules/sys_select (Makefile.am): Likewise.
913         * modules/sys_socket (Makefile.am): Likewise.
914         * modules/sys_stat (Makefile.am): Likewise.
915         * modules/sys_time (Makefile.am): Likewise.
916         * modules/sys_times (Makefile.am): Likewise.
917         * modules/sys_uio (Makefile.am): Likewise.
918         * modules/sys_utsname (Makefile.am): Likewise.
919         * modules/sys_wait (Makefile.am): Likewise.
920         * modules/sysexits (Makefile.am): Likewise.
921         * modules/termios (Makefile.am): Likewise.
922         * modules/time (Makefile.am): Likewise.
923         * modules/unistd (Makefile.am): Likewise.
924         * modules/wchar (Makefile.am): Likewise.
925         * modules/wctype-h (Makefile.am): Likewise.
926         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
927
928 2011-05-29  Bruno Haible  <bruno@clisp.org>
929
930         assert-h: Allow multiple gnulib generated replacements to coexist.
931         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
932
933 2011-05-29  Bruno Haible  <bruno@clisp.org>
934
935         argp: Allow coexistence with strerror_r-posix module.
936         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
937         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
938         by gnulib's <string.h> replacement), assume it has the POSIX signature,
939         not the glibc signature.
940
941 2011-05-28  Bruno Haible  <bruno@clisp.org>
942
943         gnulib-tool: Alternative structure of testdirs, similar to --import.
944         * gnulib-tool: New option --single-configure.
945         (func_usage): Document it.
946         (single_configure): New variable.
947         (func_modules_transitive_closure_separately,
948         func_modules_transitive_closure_separately,
949         func_determine_use_libtests, func_modules_add_dummy_separately,
950         func_modules_to_filelist_separately): New functions, extracted from
951         func_import.
952         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
953         (func_import): Use the new functions.
954         (func_create_testdir): Set final_modules. Handle $single_configure =
955         true case.
956
957 2011-05-28  Bruno Haible  <bruno@clisp.org>
958
959         getloadavg: Remove an unreliable safety check.
960         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
961         getloadavg.c is in place.
962         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
963         Reported by Sam Steingold <sds@gnu.org>.
964
965 2011-05-28  Bruno Haible  <bruno@clisp.org>
966
967         doc: Cleanup yet another file produced by texinfo.tex.
968         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
969
970 2011-05-28  Bruno Haible  <bruno@clisp.org>
971
972         Finish the conditional dependencies mechanism.
973         * gnulib-tool: New option --no-conditional-dependencies.
974         (func_usage): Document it. Don't mark --conditional-dependencies as
975         experimental.
976         (cond_dependencies): The possible values can now be true, false, empty.
977         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
978         (func_import): Store setting in gnulib-cache.m4 and read it from there.
979         * doc/gnulib-tool.texi (Conditional dependencies): New section.
980
981 2011-05-28  Bruno Haible  <bruno@clisp.org>
982
983         doc: Use a recent texinfo.tex.
984         * doc/Makefile (tex_opts): New variable.
985         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
986
987 2011-05-28  Jim Meyering  <meyering@redhat.com>
988
989         intprops.h: adjust comment to match code change
990         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
991         only once, it *may* have side effects.  Also fix an unrelated typo.
992         (_GL_INT_SIGNED): Likewise.
993
994 2011-05-26  Simon Josefsson  <simon@josefsson.org>
995
996         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
997
998 2011-05-26  Bruno Haible  <bruno@clisp.org>
999
1000         mbsrchr: Avoid collision with system function on Interix.
1001         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1002         Reported by Markus Duft <mduft@gentoo.org>.
1003
1004 2011-05-15  James Youngman  <jay@gnu.org>
1005
1006         getopt: for ambiguous options, enumerate the possibilities.
1007         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1008         the ambiguous options when an ambiguous prefix is given. This was
1009         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1010         glibc change was
1011         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1012
1013 2011-05-25  Eric Blake  <eblake@redhat.com>
1014
1015         getcwd: work around mingw bug
1016         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1017         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1018         Reported by Matthias Bolte.
1019
1020 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         test-intprops: disable -Wtype-limits diagnostics
1023         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1024         diagnostics.  Otherwise, the integer overflow macros generate many
1025         diagnostics.  Reported by Jim Meyering in
1026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1027
1028         intprops: shorten, to pacify gcc -Woverlength-strings
1029         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1030         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1031         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1032         likely to run afoul of C compiler limits for string constant lengths.
1033         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1034
1035 2011-05-24  Eric Blake  <eblake@redhat.com>
1036
1037         docs: document recently fixed glibc printf bug
1038         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1039         * doc/posix-functions/printf.texi (printf): Likewise.
1040         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1041         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1042
1043         closein-tests: convert to init.sh
1044         * modules/closein-tests (Files): Add init.sh
1045         * tests/test-closein.sh Use it.
1046
1047         yesno-tests: convert to init.sh
1048         * modules/yesno-tests (Files): Add init.sh.
1049         * tests/test-yesno.sh: Use it.
1050
1051         atexit-tests: ensure reliable exit status
1052         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1053         Reported by Bruno Haible.
1054
1055 2011-05-24  Bruno Haible  <bruno@clisp.org>
1056
1057         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1059         gl_PREREQ_STRERROR_R invocations from here...
1060         * modules/strerror_r-posix (configure.ac): ... to here.
1061
1062 2011-05-24  Eric Blake  <eblake@redhat.com>
1063
1064         strerror_r: fix missing header
1065         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1066
1067         strerror_r: fix AIX test failures
1068         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1069         ERANGE failure.
1070
1071         strerror_r: fix Solaris test failures
1072         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1073         failures.
1074         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1075
1076         strerror_r: enforce POSIX recommendations
1077         * lib/strerror_r.c (safe_copy): New helper method.
1078         (strerror_r): Guarantee a non-empty string.
1079         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1080         recent POSIX rulings and to match our strerror guarantees.
1081         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1082
1083 2011-05-24  Jim Meyering  <meyering@redhat.com>
1084
1085         test-perror2.c: avoid warning about unused variable
1086         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1087
1088 2011-05-24  Eric Blake  <eblake@redhat.com>
1089
1090         perror: avoid spurious test failure on HP-UX
1091         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1092
1093         tests: fix logic bug in init.sh
1094         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1095         shell.
1096
1097 2011-05-24  Jim Meyering  <meyering@redhat.com>
1098
1099         utimensat: do not reference an out-of-scope buffer
1100         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1101         declared in an inner scope, yet "times" would be dereferenced outside
1102         the scope in which "ts" was valid.
1103         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1104         of ts[2] "out/up", so that the use of aliased "times" (via
1105         "times = ts;") does not end up referencing an out-of-scope "ts"
1106
1107         opendir-safer.c: don't clobber errno; don't close negative FD
1108         * lib/opendir-safer.c (opendir_safer):
1109         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1110         file descriptor, and more importantly, don't clobber the
1111         offending errno value with EINVAL.  Before, upon failure
1112         of dup_safer, we would pass the negative file descriptor to
1113         fdopendir, which would clobber errno.
1114
1115 2011-05-23  Bruno Haible  <bruno@clisp.org>
1116
1117         idcache: Fix module description.
1118         * modules/idcache (Include): Set to "idcache.h".
1119
1120 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1121
1122         gnulib-tool: fix portability problem with MacOS sed
1123         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1124         before the "}".  Problem reported by Leo in
1125         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1126         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1127         sed_extract_condition1, sed_extract_condition2.
1128
1129 2011-05-23  Bruno Haible  <bruno@clisp.org>
1130
1131         hash: Simplify autoconf macro.
1132         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1133
1134 2011-05-23  Bruno Haible  <bruno@clisp.org>
1135
1136         getugroups: Fix module description.
1137         * modules/getugroups (Include): Set to "getugroups.h".
1138
1139 2011-05-23  Bruno Haible  <bruno@clisp.org>
1140
1141         linkat: Simplify autoconf macro.
1142         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1143
1144 2011-05-23  Bruno Haible  <bruno@clisp.org>
1145             Eric Blake  <eblake@redhat.com>
1146
1147         linkat, renameat: Update dependencies.
1148         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1149         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1150         symlinkat.
1151
1152 2011-05-23  Jim Meyering  <meyering@redhat.com>
1153
1154         maint.mk: more tight_scope improvements
1155         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1156         (_gl_TS_headers): Define only in if-0'd block.
1157         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1158         sometimes we must *not* use it.  Adjust uses accordingly.
1159         (sc_tight_scope): Use much simpler grep-based test to determine
1160         whether we skip this rule.
1161
1162         maint.mk: generalize/improve the tight-scope rule
1163         * top/maint.mk: Emit a warning when the test is skipped.
1164         (_gl_TS_dir): Add $(srcdir)/ prefix.
1165         (_gl_TS_function_match): Simplify, rather than trying
1166         to enumerate common types.  Otherwise, it would fail to match an
1167         "extern unsigned char const *" declaration in idutils.
1168         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1169         a way to support use of that type of macro.
1170         (_gl_TS_var_match): Simplify regexp.
1171         (_gl_TS_obj_files): New configurable variable.
1172         (_gl_TS_headers): Likewise.
1173
1174 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1175
1176         verify: fix bug when gnulib <assert.h> is also included
1177         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1178         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1179         Perhaps there's a better way, but this fixes the immediate problem.
1180         Problem reported by Bruno Haible in
1181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1182
1183 2011-05-22  Bruno Haible  <bruno@clisp.org>
1184
1185         xgetcwd: Simplify autoconf macro.
1186         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1187
1188 2011-05-22  Bruno Haible  <bruno@clisp.org>
1189
1190         New module 'mktime-internal'.
1191         * modules/mktime-internal: New file.
1192         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1193         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1194         mktime_internal as a C macro if libc has __mktime_internal.
1195         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1196         conditions.
1197         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1198
1199 2011-05-22  Bruno Haible  <bruno@clisp.org>
1200
1201         timegm: Correct mktime replacement statements.
1202         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1203         defining mktime as a C macro. This completes a 2009-07-28 commit.
1204
1205 2011-05-22  Bruno Haible  <bruno@clisp.org>
1206
1207         timegm: Simplify autoconf macro.
1208         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1209
1210 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         clock-time: change to LGPLv2+.
1213         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1214         BSD-like but we have no mark for that; this is good enough for now.
1215
1216 2011-05-21  Bruno Haible  <bruno@clisp.org>
1217
1218         strerror_r: Fix comments.
1219         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1220
1221 2011-05-21  Bruno Haible  <bruno@clisp.org>
1222
1223         relocatable-prog-wrapper: Fix possible link error.
1224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1225         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1226         (gl_FUNC_SETENV): ... to here.
1227         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1228         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1229
1230 2011-05-21  Bruno Haible  <bruno@clisp.org>
1231
1232         relocatable-prog-wrapper: Assume strerror() exists.
1233         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1234         m4/strerror.m4.
1235         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1236         * lib/relocwrapper.c: Remove mention of strerror module.
1237         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1239         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1240         C macro.
1241
1242 2011-05-21  Bruno Haible  <bruno@clisp.org>
1243
1244         select: Simplify replacement idiom.
1245         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1246         Win32 platforms.
1247         * lib/sys_select.in.h (select): Simplify accordingly.
1248         * modules/select (Depends-on): Likewise.
1249
1250 2011-05-21  Bruno Haible  <bruno@clisp.org>
1251
1252         mkdir-p: Simplify autoconf macro.
1253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1254         gl_FUNC_LCHOWN.
1255
1256 2011-05-21  Eric Blake  <eblake@redhat.com>
1257
1258         strerror_r: avoid clobbering strerror on cygwin
1259         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1260         fall back instead to sys_errlist.
1261         * modules/strerror (configure.ac): Add witness.
1262         * tests/test-strerror_r.c (main): Enhance test.
1263         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1264         * tests/test-perror2.c (main): Free memory before exit.
1265
1266 2011-05-21  Bruno Haible  <bruno@clisp.org>
1267
1268         mkdtemp: Use gnulib naming conventions.
1269         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1270         * modules/mkdtemp (configure.ac): Update.
1271
1272 2011-05-20  Eric Blake  <eblake@redhat.com>
1273
1274         strerror_r: avoid corrupting errno on Solaris
1275         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1276         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1277
1278         strerror_r: avoid compiler warning
1279         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1280
1281         strerror_r: simplify AIX code
1282         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1283
1284         test-perror: avoid spurious failure on FreeBSD
1285         * modules/perror-tests (Depends-on): Add strerror, now that
1286         strerror_r no longer pulls it in.
1287
1288 2011-05-20  Bruno Haible  <bruno@clisp.org>
1289
1290         strerror_r-posix: Remove unused dependencies.
1291         * modules/strerror_r-posix (Depends-on): Remove strerror.
1292         Reported by Eric Blake.
1293
1294 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1295
1296         intprops: remove assumption about A|B representation
1297         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1298         is a valid integer if both A and B are.  Although this is true for
1299         all known practical hosts, the C standard doesn't guarantee it,
1300         and the code need not assume it.  Also, this change may work around
1301         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1303
1304 2011-05-20  Eric Blake  <eblake@redhat.com>
1305
1306         perror: work around FreeBSD bug
1307         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1308         is broken.  Move AC_LIBOBJ...
1309         * modules/perror (configure.ac): Here.
1310         * doc/posix-functions/perror.texi (perror): Document this.
1311         * tests/test-perror2.c (main): Enhance test.
1312
1313         test-perror: check for strerror interactions
1314         * tests/macros.h (STREQ): Add macro.
1315         * modules/perror-tests (Files): Add second test.
1316         * tests/test-perror2.c (main): New file.
1317         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1318
1319         test-perror: rewrite to use init script
1320         * modules/perror-tests (Files): Add init.sh.
1321         * tests/test-perror.sh: Use temporary directory.
1322
1323 2011-05-20  Jim Meyering  <meyering@redhat.com>
1324
1325         maint: replace misused "a" with "an"
1326         * doc/intprops.texi: "a integer"
1327         * doc/regex.texi: "a explanation"
1328         * lib/alignof.h: "a object"
1329         * lib/argmatch.h: "a explanation"
1330         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1331         * lib/stdint.in.h: "a integer"
1332         * lib/userspec.c: "a owner"
1333         * doc/gnulib.texi: Fix "a idea", and reword.
1334
1335 2011-05-19  Jim Meyering  <meyering@redhat.com>
1336
1337         maint: correct misuse of "a" and "an"
1338         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1339         * lib/argp-help.c: "an docum...": s/an/a/
1340         * lib/argp-parse.c: "An vector": s/An/A/
1341         * lib/execute.c: "an native": s/an/a/
1342         * lib/spawn-pipe.c: Likewise.
1343         * lib/gc.h: "an Gc_rc": s/an/a/
1344         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1345         * lib/fts.c: "an stat.st_dev": s/an/a/
1346
1347 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         intprops-tests: work around HP-UX 11.23 cc bug with constants
1350         * tests/test-intprops.c (VERIFY): New macro.
1351         (main): Use it, instead of verify, to work around the compiler bug; see
1352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1353
1354         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1355         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1356         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1357         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1358         (_GL_REMAINDER_OVERFLOW): Use it.
1359
1360         intprops-tests: revert unsigned part of previous change
1361         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1362         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1363         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1365
1366 2011-05-19  Bruno Haible  <bruno@clisp.org>
1367
1368         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1369         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1370         strerror_r() returned without filling the buffer.
1371         Reported by Eric Blake.
1372
1373 2011-05-19  Eric Blake  <eblake@redhat.com>
1374
1375         strerror_r: guarantee unchanged errno
1376         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1377         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1378         failure.
1379         * tests/test-strerror_r.c (main): Enhance test.
1380
1381 2011-05-19  Bruno Haible  <bruno@clisp.org>
1382
1383         strerror_r: Reorder #if blocks.
1384         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1385         for consistency with the previous commit.
1386
1387 2011-05-19  Bruno Haible  <bruno@clisp.org>
1388
1389         perror: Avoid clobbering the strerror buffer when possible.
1390         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1391         * lib/strerror.c: Include it.
1392         * modules/strerror (Files): Add lib/strerror-impl.h.
1393         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1394         (my_strerror): New function, defined through lib/strerror-impl.h.
1395         (perror): Use it instead of strerror.
1396         * modules/perror (Files): Add lib/strerror-impl.h.
1397         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1398
1399 2011-05-19  Eric Blake  <eblake@redhat.com>
1400
1401         strerror_r: fix on newer cygwin
1402         * lib/strerror_r.c (strerror_r): Cygwin now has
1403         __xpg_strerror_r, use it.
1404
1405 2011-05-19  Bruno Haible  <bruno@clisp.org>
1406
1407         strerror_r: Avoid clobbering the strerror buffer when possible.
1408         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1409         (sys_nerr, sys_errlist): New declarations.
1410         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1411         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1412         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1413
1414 2011-05-19  Bruno Haible  <bruno@clisp.org>
1415
1416         strerror_r: Fix test failure on mingw.
1417         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1418         EXTEND_STRERROR_R.
1419         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1420         macros from errno.in.h instead.
1421
1422 2011-05-19  Eric Blake  <eblake@redhat.com>
1423
1424         strerror: relax test for Solaris
1425         * tests/test-strerror.c (main): Permit Solaris behavior.
1426         * tests/test-strerror_r.c (main): Likewise.
1427
1428         strerror: enforce POSIX ruling on strerror(0)
1429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1431         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1432         * doc/posix-functions/strerror.texi (strerror): Document it.
1433         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1434         * tests/test-strerror.c (main): Strengthen test.
1435         * tests/test-strerror_r.c (main): Likewise.
1436
1437 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         intprop-tests: port to older and more-pedantic compilers
1440         * modules/intprops-tests (Files): Add tests/macros.h.
1441         * tests/test-intprops.c: Include macros.h.
1442         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1443         it's no longer documented to expand to an integer constant expression.
1444         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1445         argument is floating point, as it's no longer documented to expand
1446         to an integer constant expression in that case.
1447         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1448         compiler bugs reported by Bruno Haible.  See
1449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1450         (U0, U1): New constants, to work around the same bugs.  Also,
1451         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1452
1453         intprops: work around C compiler bugs
1454         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1455         bug in Sun C 5.11 2010/08/13 and other compilers; see
1456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1457
1458         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1459         * doc/intprops.texi (Integer Type Determination): Fix
1460         documentation for TYPE_IS_INTEGER: it returns an constant
1461         expression, not an integer constant expression.  Fix doc for
1462         TYPE_SIGNED: it returns an integer constant expression only if its
1463         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1464         hardly worth documented that way....)
1465
1466 2011-05-18  Bruno Haible  <bruno@clisp.org>
1467
1468         strerror_r: Avoid clobbering the strerror buffer when possible.
1469         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1470         Handle gnulib defined errno values here. When strerror() returns NULL
1471         or an empty string, return EINVAL.
1472         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1473         gnulib defined errno values here.
1474         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1475
1476 2011-05-18  Eric Blake  <eblake@redhat.com>
1477
1478         fnmatch: avoid compiler warning
1479         * lib/fnmatch_loop.c (FCT): Use correct type.
1480         Reported by Matthias Bolte.
1481
1482 2011-05-13  Jim Meyering  <meyering@redhat.com>
1483
1484         maint.mk: three new prohibit_<HDR>_without_use rules
1485         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1486         (sc_prohibit_stdio-safer_without_use): Likewise.
1487         (sc_prohibit_xfreopen_without_use): Likewise.
1488
1489 2011-05-17  Jim Meyering  <meyering@redhat.com>
1490
1491         announce-gen: fail if the NEWS delta is empty
1492         If there's nothing noteworthy in NEWS, then either you forgot
1493         or you shouldn't be releasing.
1494         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1495
1496 2011-05-17  Pádraig Brady <P@draigBrady.com>
1497
1498         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1499         reserved symbols starting with double underscore from the check.
1500
1501 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1502
1503         intprops: add doc
1504         * doc/intprops.texi: New file, documenting intprops.
1505         * doc/gnulib.texi (Particular Modules): Include it.
1506
1507         verify: add doc to gnulib manual and fix example
1508         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1509         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1510         (Compile-time Assertions): Fix example so it can't overflow.
1511
1512 2011-05-17  Jim Meyering  <meyering@redhat.com>
1513
1514         warnings.m4: don't usurp save_CPPFLAGS variable name
1515         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1516
1517         doc: fix typo
1518         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1519
1520 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1521             Bruno Haible  <bruno@clisp.org>
1522
1523         doc: Tweak recent change.
1524         * README (Portability guidelines): Tweak new text.
1525         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1526         Interix 6.1.
1527
1528 2011-05-16  Eric Blake  <eblake@redhat.com>
1529
1530         inttypes: avoid autoconf warning
1531         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1532         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1533
1534 2011-05-16  Sam Steingold <sds@gnu.org>
1535         and Eric Blake  <eblake@redhat.com>
1536
1537         vc-list-files: accept multiple directory operands
1538         * build-aux/vc-list-files: Iterate over all remaining operands.
1539
1540 2011-05-16  Bruno Haible  <bruno@clisp.org>
1541
1542         Fix confusion regarding deprecated modules.
1543         * modules/calloc (Status, Notice): Mark module as deprecated, not
1544         obsolete.
1545         * modules/fnmatch-posix (Status, Notice): Likewise.
1546         * modules/getdate (Status, Notice): Likewise.
1547         * modules/getopt (Status, Notice): Likewise.
1548         * modules/malloc (Status, Notice): Likewise.
1549         * modules/pipe (Status, Notice): Likewise.
1550         * modules/realloc (Status, Notice): Likewise.
1551         * modules/rename-dest-slash (Status, Notice): Likewise.
1552         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1553         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1554         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1555         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1556         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1557
1558 2011-05-16  Bruno Haible  <bruno@clisp.org>
1559
1560         doc: List the target platforms.
1561         * doc/gnulib-intro.texi (Target Platforms): New section.
1562         * doc/gnulib.texi (Introduction): Update menu.
1563         * README (Portability guidelines): Refer to the new section. Update
1564         statement about oldest supported environment. Remove rationale why
1565         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1566         unportable C89 function.
1567         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1568         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1569
1570 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1571
1572         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1573
1574 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         intprops-tests: new module
1577         * modules/intprops-tests, tests/test-intprops.c: New files.
1578
1579         intprops: add safe, portable integer overflow checking
1580         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1581         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1582         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1583         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1584         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1585         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1586         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1587         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1588         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1589         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1590         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1591
1592 2011-05-12  James Youngman  <jay@gnu.org>
1593
1594         Add a test for glibc's Bugzilla bug #12378.
1595         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1596         doesn't allow the literal matching of a lone "[" (which is
1597         required by POSIX).
1598         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1599
1600 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1601
1602         Sync glibc change fixing Bugzilla bug #12378.
1603         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1604         beginning and fall back to matching as normal character if the
1605         string ends before the matching ']' is found.  This is what POSIX
1606         requires.
1607
1608 2011-05-13  Eric Blake  <eblake@redhat.com>
1609
1610         getcwd-lgpl: relax test for FreeBSD
1611         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1612         issue.
1613         * tests/test-getcwd-lgpl.c (main): Relax test.
1614         Reported by Matthias Bolte.
1615
1616 2011-05-11  Eric Blake  <eblake@redhat.com>
1617
1618         test-fflush: silence compiler warning
1619         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1620
1621 2011-05-11  Bruno Haible  <bruno@clisp.org>
1622
1623         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1624         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1625         * modules/canonicalize (Depends-on): Add 'nocrash'.
1626         * modules/canonicalize-lgpl (Depends-on): Likewise.
1627         * doc/posix-functions/realpath.texi: Update platforms list.
1628         Reported by Ryan Schmidt <ryandesign@macports.org>.
1629
1630 2011-05-11  Bruno Haible  <bruno@clisp.org>
1631
1632         group-member: Declare function in <unistd.h>.
1633         * lib/unistd.in.h (group_member): New declaration.
1634         * lib/group-member.h: Remove file.
1635         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1636         * tests/test-unistd-c++.cc: Check signature of group_member.
1637         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1638         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1639         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1640         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1641         HAVE_GROUP_MEMBER.
1642         * modules/group-member (Files): Remove lib/group-member.h.
1643         (Depends-on): Add unistd. Specify conditions.
1644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1645         (Include): Change to <unistd.h>.
1646         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1647         HAVE_GROUP_MEMBER.
1648         * NEWS: Mention the change.
1649         * lib/euidaccess.c: Don't include group-member.h.
1650
1651 2011-05-11  Bruno Haible  <bruno@clisp.org>
1652
1653         group-member: Document module.
1654         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1655         module.
1656
1657 2011-05-11  Bruno Haible  <bruno@clisp.org>
1658
1659         fclose: Fix mistake earlier today.
1660         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1661
1662 2011-05-11  Eric Blake  <eblake@redhat.com>
1663
1664         fclose: preserve fflush errors
1665         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1666         Reported by Jim Meyering.
1667
1668         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1669         * build-aux/bootstrap (check_versions): When no specific version
1670         is required, merely check that the app produces an exit status
1671         that indicates its existence.
1672
1673         maint.mk: drop redundant check
1674         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1675         the same but better.
1676
1677 2011-05-11  Bruno Haible  <bruno@clisp.org>
1678
1679         fclose: Fix possible link error.
1680         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1681         unregister_shadow_fd. Improve comments.
1682         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1683         Eric Blake.
1684
1685 2011-05-11  Jim Meyering  <meyering@redhat.com>
1686
1687         maint.mk: improve "can not" detection and generalize rule name
1688         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1689         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1690         Use the same technique as in sc_prohibit_doubled_word, so that
1691         we recognize "can not" also when the words are separated by a newline.
1692         Suggested by Eric Blake.
1693         (perl_filename_lineno_text_): Define.  Factored out of...
1694         (prohibit_doubled_word_): ...here.  Use the new definition.
1695         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1696         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1697         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1698
1699 2011-05-10  Eric Blake  <eblake@redhat.com>
1700
1701         fclose: avoid double close race when possible
1702         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1703         all but WINDOWS_SOCKETS.
1704
1705 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1706
1707         openat: correct new comment
1708         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1709
1710 2011-05-10  Jim Meyering  <meyering@redhat.com>
1711
1712         openat: add comments
1713         * lib/openat-proc.c (openat_proc_name): Add comments,
1714         mostly from Eric Blake.
1715
1716 2011-05-09  Eric Blake  <eblake@redhat.com>
1717
1718         openat: reduce syscalls in first probe of /proc
1719         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1720         be a directory.  Simplify the probe for .. bugs.
1721         * modules/openat (Depends-on): Drop same-inode.
1722         Reported by Bastien ROUCARIES.
1723
1724 2011-05-09  Jim Meyering  <meyering@redhat.com>
1725
1726         maint.mk: change semantics/name of tight_scope variables
1727         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1728         Rename variables to align with semantics that make them more useful.
1729
1730         maint.mk: tweak new rule's name not to impinge
1731         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1732         (sc_tight_scope): Use new rule name rather than $@-0.
1733
1734         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1735         * top/maint.mk (sc_tight_scope): New rule.
1736         (sc_tight_scope-0): New rule, ifdef'd out.
1737         (_gl_TS_dir): Default.
1738         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1739         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1740
1741 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1742
1743         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1744         Haible <bruno@clisp.org>.
1745
1746 2011-05-08  Bruno Haible  <bruno@clisp.org>
1747
1748         Comments.
1749         * m4/isnanf.m4: Add comment.
1750         * m4/isnanl.m4: Likewise.
1751
1752 2011-05-08  Bruno Haible  <bruno@clisp.org>
1753
1754         glob: Remove obsolete macro.
1755         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1756
1757 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1758
1759         intprops: Sun C 5.11 supports __typeof__
1760         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1761         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1762         which is new.
1763         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1764
1765         intprops: switch to usual gnulib indenting and naming
1766         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1767         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1768
1769         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1770
1771 2011-05-08  Jim Meyering  <meyering@redhat.com>
1772
1773         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1774         * top/maint.mk (release-prep): Use make's --no-print-directory
1775         option when generating the announcement.  This eliminates the
1776         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1777         generated announcement template.
1778
1779 2011-05-08  Bruno Haible  <bruno@clisp.org>
1780
1781         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1783         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1784
1785 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1786
1787         ignore-value, verify: Omit include files from lib_SOURCES.
1788         * modules/ignore-value, modules/verify (Makefile.am):
1789         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1790         that leads Automake to duplicate use of am__objects_... variables
1791         in Makefile.in.  See
1792         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1793
1794 2011-05-07  Bruno Haible  <bruno@clisp.org>
1795
1796         fclose: Simplify autoconf macro.
1797         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1798         defined.
1799
1800 2011-05-07  Bruno Haible  <bruno@clisp.org>
1801
1802         canonicalize-lgpl: Fix autoconf macro ordering bug.
1803         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1804         gl_STDLIB_H_DEFAULTS.
1805
1806 2011-05-06  Eric Blake  <eblake@redhat.com>
1807
1808         maintainer-makefile: make sc_po_check easier to tune
1809         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1810         to probe for strings, such as an alternate location for gnulib.
1811
1812         fclose: guarantee behavior on seekable stdin
1813         * modules/fclose (Depends-on): Add fflush.
1814         * doc/posix-functions/fclose.texi (fclose): Document this.
1815         * tests/test-fclose.c (main): Make test for this unconditional.
1816
1817 2011-05-06  Bruno Haible  <bruno@clisp.org>
1818
1819         fflush, fpurge: Relicense under LGPLv2+.
1820         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1821         * modules/fpurge (License): Likewise.
1822         With permission from Eric Blake and Jim Meyering.
1823         Suggested by Eric Blake.
1824
1825 2011-05-06  Karl Berry  <karl@gnu.org>
1826
1827         * MODULES.html.sh (func_all_modules): remove exit.
1828
1829 2011-05-06  Jim Meyering  <meyering@redhat.com>
1830
1831         maint.mk: use info-gnu@ as the default only for a stable release
1832         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1833         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1834         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1836
1837 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         assert-h: new module, which supports C1X-style static_assert
1840         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1841         * lib/verify.h: Revamp so that this can be copied into assert.h,
1842         while retaining the ability to use it standalone as before.
1843         Rename private identifiers so as not to encroach on the
1844         standard C namespace, since this is now used by assert.h.
1845         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1846         the old verify_true.
1847         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1848         the old verify_true.  Use _GL_VERIFY_TYPE.
1849         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1850         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1851         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1852         defined when this file is copied into the replacement assert.h.
1853         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1854         and _Static_assert is not built in.
1855         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1856         defined, and use the new macros mentioned above.
1857         * doc/posix-headers/assert.texi: Document this.
1858
1859 2011-05-05  Bruno Haible  <bruno@clisp.org>
1860
1861         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1863         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1864         gl_REPLACE_FCLOSE here.
1865         * modules/fflush (Depends-on): Remove fclose.
1866         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1867         combination with module 'fclose'.
1868
1869 2011-05-05  Bruno Haible  <bruno@clisp.org>
1870
1871         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1872         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1873         gl_FUNC_FFLUSH.
1874         (gl_FUNC_FFLUSH): Use it.
1875         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1877         gl_REPLACE_FSEEKO here.
1878
1879 2011-05-05  Bruno Haible  <bruno@clisp.org>
1880
1881         tzset: Relicense under LGPL.
1882         * modules/tzset (License): Change to LGPL.
1883         No agreement needed; it's a no-op.
1884
1885         strtoimax, strtoumax: Relicense under LGPL.
1886         * modules/strtoimax (License): Change to LGPL.
1887         * modules/strtoumax (License): Likewise.
1888         With permission from Jim Meyering, Paul Eggert:
1889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1891
1892         getgroups: Relicense under LGPL.
1893         * modules/getgroups (License): Change to LGPL.
1894         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1898
1899         nanosleep: Relicense under LGPL.
1900         * modules/nanosleep (License): Change to LGPL.
1901         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1902         Haible:
1903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1907
1908         futimens: Relicense under LGPL.
1909         * modules/futimens (License): Change to LGPL.
1910         With permission from Eric Blake:
1911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1912
1913         fflush: Relicense under LGPL.
1914         * modules/fflush (License): Change to LGPL.
1915         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1919
1920         tmpfile: Relicense under LGPL.
1921         * modules/tmpfile (License): Change to LGPL.
1922         With permission from Ben Pfaff:
1923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1924
1925         isfinite: Relicense under LGPL.
1926         * modules/isfinite (License): Change to LGPL.
1927         With permission from Ben Pfaff, Bruno Haible:
1928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1930
1931         acosl..tanl: Relicense under LGPL.
1932         * modules/acosl (License): Change to LGPL.
1933         * modules/asinl (License): Likewise.
1934         * modules/atanl (License): Likewise.
1935         * modules/cosl (License): Likewise.
1936         * modules/expl (License): Likewise.
1937         * modules/logl (License): Likewise.
1938         * modules/sinl (License): Likewise.
1939         * modules/sqrtl (License): Likewise.
1940         * modules/tanl (License): Likewise.
1941         Source code originally from glibc and Paolo Bonzini. Agreements:
1942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1944
1945 2011-05-05  Bruno Haible  <bruno@clisp.org>
1946
1947         signal: Define sighandler_t.
1948         * lib/signal.in.h (sighandler_t): New type.
1949         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1950         whether sighandler_t is defined.
1951         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1952         * modules/signal (Depends-on): Add extensions.
1953         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1954         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1955         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1956
1957 2011-05-05  Eric Blake  <eblake@redhat.com>
1958
1959         maint: remove useless REPLACE_*_H macros
1960         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1961         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1962         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1963         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1964         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1965         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1966         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1967         * m4/btowc.m4: Update callers.
1968         * m4/dirfd.m4: Likewise.
1969         * m4/duplocale.m4: Likewise.
1970         * m4/fchdir.m4: Likewise.
1971         * m4/fdopendir.m4: Likewise.
1972         * m4/inet_ntop.m4: Likewise.
1973         * m4/inet_pton.m4: Likewise.
1974         * m4/ioctl.m4: Likewise.
1975         * m4/mbrlen.m4: Likewise.
1976         * m4/mbrtowc.m4: Likewise.
1977         * m4/mbsinit.m4: Likewise.
1978         * m4/mbsnrtowcs.m4: Likewise.
1979         * m4/mbsrtowcs.m4: Likewise.
1980         * m4/poll.m4: Likewise.
1981         * m4/setlocale.m4: Likewise.
1982         * m4/wcrtomb.m4: Likewise.
1983         * m4/wcsnrtombs.m4: Likewise.
1984         * m4/wcsrtombs.m4: Likewise.
1985         * m4/wctob.m4: Likewise.
1986         * m4/wcwidth.m4: Likewise.
1987         * modules/posix_spawn: Likewise.
1988         * modules/posix_spawn_file_actions_addclose: Likewise.
1989         * modules/posix_spawn_file_actions_adddup2: Likewise.
1990         * modules/posix_spawn_file_actions_addopen: Likewise.
1991         * modules/posix_spawn_file_actions_destroy: Likewise.
1992         * modules/posix_spawn_file_actions_init: Likewise.
1993         * modules/posix_spawnattr_destroy: Likewise.
1994         * modules/posix_spawnattr_getflags: Likewise.
1995         * modules/posix_spawnattr_getpgroup: Likewise.
1996         * modules/posix_spawnattr_getschedparam: Likewise.
1997         * modules/posix_spawnattr_getschedpolicy: Likewise.
1998         * modules/posix_spawnattr_getsigdefault: Likewise.
1999         * modules/posix_spawnattr_getsigmask: Likewise.
2000         * modules/posix_spawnattr_init: Likewise.
2001         * modules/posix_spawnattr_setflags: Likewise.
2002         * modules/posix_spawnattr_setpgroup: Likewise.
2003         * modules/posix_spawnattr_setschedparam: Likewise.
2004         * modules/posix_spawnattr_setschedpolicy: Likewise.
2005         * modules/posix_spawnattr_setsigdefault: Likewise.
2006         * modules/posix_spawnattr_setsigmask: Likewise.
2007         * modules/posix_spawnp: Likewise.
2008
2009 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2010
2011         Add option to do-release-commit-and-tag to specify branch.
2012         * build-aux/do-release-commit-and-tag: Add --branch.
2013
2014 2011-05-03  Bruno Haible  <bruno@clisp.org>
2015
2016         Avoid unnecessary compilation units, through conditional dependencies.
2017         * modules/accept (Depends-on): Add conditions to the dependencies.
2018         * modules/acosl (Depends-on): Likewise.
2019         * modules/argz (Depends-on): Likewise.
2020         * modules/asinl (Depends-on): Likewise.
2021         * modules/atanl (Depends-on): Likewise.
2022         * modules/atoll (Depends-on): Likewise.
2023         * modules/bind (Depends-on): Likewise.
2024         * modules/btowc (Depends-on): Likewise.
2025         * modules/canonicalize-lgpl (Depends-on): Likewise.
2026         * modules/ceil (Depends-on): Likewise.
2027         * modules/ceilf (Depends-on): Likewise.
2028         * modules/ceill (Depends-on): Likewise.
2029         * modules/chdir-long (Depends-on): Likewise.
2030         * modules/chown (Depends-on): Likewise.
2031         * modules/close (Depends-on): Likewise.
2032         * modules/connect (Depends-on): Likewise.
2033         * modules/cosl (Depends-on): Likewise.
2034         * modules/dirfd (Depends-on): Likewise.
2035         * modules/dprintf (Depends-on): Likewise.
2036         * modules/dprintf-posix (Depends-on): Likewise.
2037         * modules/error (Depends-on): Likewise.
2038         * modules/euidaccess (Depends-on): Likewise.
2039         * modules/expl (Depends-on): Likewise.
2040         * modules/faccessat (Depends-on): Likewise.
2041         * modules/fchdir (Depends-on): Likewise.
2042         * modules/fclose (Depends-on): Likewise.
2043         * modules/fcntl (Depends-on): Likewise.
2044         * modules/fdopendir (Depends-on): Likewise.
2045         * modules/fflush (Depends-on): Likewise.
2046         * modules/floor (Depends-on): Likewise.
2047         * modules/floorf (Depends-on): Likewise.
2048         * modules/floorl (Depends-on): Likewise.
2049         * modules/fnmatch (Depends-on): Likewise.
2050         * modules/fopen (Depends-on): Likewise.
2051         * modules/fprintf-posix (Depends-on): Likewise.
2052         * modules/frexp (Depends-on): Likewise.
2053         * modules/frexp-nolibm (Depends-on): Likewise.
2054         * modules/frexpl (Depends-on): Likewise.
2055         * modules/frexpl-nolibm (Depends-on): Likewise.
2056         * modules/fseek (Depends-on): Likewise.
2057         * modules/fsusage (Depends-on): Likewise.
2058         * modules/ftell (Depends-on): Likewise.
2059         * modules/ftello (Depends-on): Likewise.
2060         * modules/futimens (Depends-on): Likewise.
2061         * modules/getcwd (Depends-on): Likewise.
2062         * modules/getcwd-lgpl (Depends-on): Likewise.
2063         * modules/getdelim (Depends-on): Likewise.
2064         * modules/getdomainname (Depends-on): Likewise.
2065         * modules/getgroups (Depends-on): Likewise.
2066         * modules/gethostname (Depends-on): Likewise.
2067         * modules/getline (Depends-on): Likewise.
2068         * modules/getlogin_r (Depends-on): Likewise.
2069         * modules/getopt-posix (Depends-on): Likewise.
2070         * modules/getpeername (Depends-on): Likewise.
2071         * modules/getsockname (Depends-on): Likewise.
2072         * modules/getsockopt (Depends-on): Likewise.
2073         * modules/getsubopt (Depends-on): Likewise.
2074         * modules/getusershell (Depends-on): Likewise.
2075         * modules/glob (Depends-on): Likewise.
2076         * modules/grantpt (Depends-on): Likewise.
2077         * modules/iconv_open (Depends-on): Likewise.
2078         * modules/iconv_open-utf (Depends-on): Likewise.
2079         * modules/inet_ntop (Depends-on): Likewise.
2080         * modules/inet_pton (Depends-on): Likewise.
2081         * modules/ioctl (Depends-on): Likewise.
2082         * modules/isapipe (Depends-on): Likewise.
2083         * modules/isfinite (Depends-on): Likewise.
2084         * modules/isinf (Depends-on): Likewise.
2085         * modules/lchown (Depends-on): Likewise.
2086         * modules/ldexpl (Depends-on): Likewise.
2087         * modules/link (Depends-on): Likewise.
2088         * modules/linkat (Depends-on): Likewise.
2089         * modules/listen (Depends-on): Likewise.
2090         * modules/logl (Depends-on): Likewise.
2091         * modules/lstat (Depends-on): Likewise.
2092         * modules/mbrlen (Depends-on): Likewise.
2093         * modules/mbrtowc (Depends-on): Likewise.
2094         * modules/mbsinit (Depends-on): Likewise.
2095         * modules/mbsnrtowcs (Depends-on): Likewise.
2096         * modules/mbsrtowcs (Depends-on): Likewise.
2097         * modules/mbtowc (Depends-on): Likewise.
2098         * modules/memcmp (Depends-on): Likewise.
2099         * modules/mkdir (Depends-on): Likewise.
2100         * modules/mkdtemp (Depends-on): Likewise.
2101         * modules/mkfifo (Depends-on): Likewise.
2102         * modules/mkfifoat (Depends-on): Likewise.
2103         * modules/mknod (Depends-on): Likewise.
2104         * modules/mkostemp (Depends-on): Likewise.
2105         * modules/mkostemps (Depends-on): Likewise.
2106         * modules/mkstemp (Depends-on): Likewise.
2107         * modules/mkstemps (Depends-on): Likewise.
2108         * modules/mktime (Depends-on): Likewise.
2109         * modules/nanosleep (Depends-on): Likewise.
2110         * modules/open (Depends-on): Likewise.
2111         * modules/openat (Depends-on): Likewise.
2112         * modules/perror (Depends-on): Likewise.
2113         * modules/poll (Depends-on): Likewise.
2114         * modules/popen (Depends-on): Likewise.
2115         * modules/posix_spawn (Depends-on): Likewise.
2116         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2117         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2118         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2119         * modules/posix_spawnp (Depends-on): Likewise.
2120         * modules/pread (Depends-on): Likewise.
2121         * modules/printf-posix (Depends-on): Likewise.
2122         * modules/ptsname (Depends-on): Likewise.
2123         * modules/putenv (Depends-on): Likewise.
2124         * modules/pwrite (Depends-on): Likewise.
2125         * modules/readline (Depends-on): Likewise.
2126         * modules/readlink (Depends-on): Likewise.
2127         * modules/readlinkat (Depends-on): Likewise.
2128         * modules/recv (Depends-on): Likewise.
2129         * modules/recvfrom (Depends-on): Likewise.
2130         * modules/regex (Depends-on): Likewise.
2131         * modules/remove (Depends-on): Likewise.
2132         * modules/rename (Depends-on): Likewise.
2133         * modules/renameat (Depends-on): Likewise.
2134         * modules/rmdir (Depends-on): Likewise.
2135         * modules/round (Depends-on): Likewise.
2136         * modules/roundf (Depends-on): Likewise.
2137         * modules/roundl (Depends-on): Likewise.
2138         * modules/rpmatch (Depends-on): Likewise.
2139         * modules/select (Depends-on): Likewise.
2140         * modules/send (Depends-on): Likewise.
2141         * modules/sendto (Depends-on): Likewise.
2142         * modules/setenv (Depends-on): Likewise.
2143         * modules/setlocale (Depends-on): Likewise.
2144         * modules/setsockopt (Depends-on): Likewise.
2145         * modules/shutdown (Depends-on): Likewise.
2146         * modules/sigaction (Depends-on): Likewise.
2147         * modules/signbit (Depends-on): Likewise.
2148         * modules/sigprocmask (Depends-on): Likewise.
2149         * modules/sinl (Depends-on): Likewise.
2150         * modules/sleep (Depends-on): Likewise.
2151         * modules/snprintf (Depends-on): Likewise.
2152         * modules/snprintf-posix (Depends-on): Likewise.
2153         * modules/socket (Depends-on): Likewise.
2154         * modules/sprintf-posix (Depends-on): Likewise.
2155         * modules/sqrtl (Depends-on): Likewise.
2156         * modules/stat (Depends-on): Likewise.
2157         * modules/strchrnul (Depends-on): Likewise.
2158         * modules/strdup-posix (Depends-on): Likewise.
2159         * modules/strerror (Depends-on): Likewise.
2160         * modules/strerror_r-posix (Depends-on): Likewise.
2161         * modules/strndup (Depends-on): Likewise.
2162         * modules/strnlen (Depends-on): Likewise.
2163         * modules/strptime (Depends-on): Likewise.
2164         * modules/strsep (Depends-on): Likewise.
2165         * modules/strsignal (Depends-on): Likewise.
2166         * modules/strstr-simple (Depends-on): Likewise.
2167         * modules/strtod (Depends-on): Likewise.
2168         * modules/strtoimax (Depends-on): Likewise.
2169         * modules/strtok_r (Depends-on): Likewise.
2170         * modules/strtoumax (Depends-on): Likewise.
2171         * modules/symlink (Depends-on): Likewise.
2172         * modules/symlinkat (Depends-on): Likewise.
2173         * modules/tanl (Depends-on): Likewise.
2174         * modules/tcgetsid (Depends-on): Likewise.
2175         * modules/tmpfile (Depends-on): Likewise.
2176         * modules/trunc (Depends-on): Likewise.
2177         * modules/truncf (Depends-on): Likewise.
2178         * modules/truncl (Depends-on): Likewise.
2179         * modules/uname (Depends-on): Likewise.
2180         * modules/unlink (Depends-on): Likewise.
2181         * modules/unlockpt (Depends-on): Likewise.
2182         * modules/unsetenv (Depends-on): Likewise.
2183         * modules/usleep (Depends-on): Likewise.
2184         * modules/utimensat (Depends-on): Likewise.
2185         * modules/vasprintf (Depends-on): Likewise.
2186         * modules/vdprintf (Depends-on): Likewise.
2187         * modules/vdprintf-posix (Depends-on): Likewise.
2188         * modules/vfprintf-posix (Depends-on): Likewise.
2189         * modules/vprintf-posix (Depends-on): Likewise.
2190         * modules/vsnprintf (Depends-on): Likewise.
2191         * modules/vsnprintf-posix (Depends-on): Likewise.
2192         * modules/vsprintf-posix (Depends-on): Likewise.
2193         * modules/wcrtomb (Depends-on): Likewise.
2194         * modules/wcscasecmp (Depends-on): Likewise.
2195         * modules/wcscspn (Depends-on): Likewise.
2196         * modules/wcsdup (Depends-on): Likewise.
2197         * modules/wcsncasecmp (Depends-on): Likewise.
2198         * modules/wcsnrtombs (Depends-on): Likewise.
2199         * modules/wcspbrk (Depends-on): Likewise.
2200         * modules/wcsrtombs (Depends-on): Likewise.
2201         * modules/wcsspn (Depends-on): Likewise.
2202         * modules/wcsstr (Depends-on): Likewise.
2203         * modules/wcstok (Depends-on): Likewise.
2204         * modules/wcswidth (Depends-on): Likewise.
2205         * modules/wctob (Depends-on): Likewise.
2206         * modules/wctomb (Depends-on): Likewise.
2207         * modules/wctype (Depends-on): Likewise.
2208         * modules/wcwidth (Depends-on): Likewise.
2209         * modules/write (Depends-on): Likewise.
2210
2211 2011-05-03  Bruno Haible  <bruno@clisp.org>
2212
2213         Support for conditional dependencies.
2214         * doc/gnulib.texi (Module description): Document the syntax of
2215         conditional dependencies.
2216         * gnulib-tool: New option --conditional-dependencies.
2217         (func_usage): Document it.
2218         (cond_dependencies): New variable.
2219         (func_get_automake_snippet_conditional,
2220         func_get_automake_snippet_unconditional): New functions, extracted from
2221         func_get_automake_snippet.
2222         (func_get_automake_snippet): Use them.
2223         (sed_first_32_chars): New variable.
2224         (func_module_shellfunc_name): New function.
2225         (func_module_shellvar_name): New function.
2226         (func_module_conditional_name): New function.
2227         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2228         func_cond_module_condition): New functions.
2229         (func_modules_transitive_closure): Add support for conditional
2230         dependencies.
2231         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2232         conditional automake snippet in an automake conditional.
2233         (func_emit_autoconf_snippets): Emit shell functions that contain the
2234         code for conditional modules.
2235         (func_import, func_create_testdir): Update specification.
2236
2237 2011-05-03  Eric Blake  <eblake@redhat.com>
2238
2239         test-getaddrinfo: report error information
2240         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2241
2242 2011-05-03  Jim Meyering  <meyering@redhat.com>
2243
2244         bootstrap: avoid build failure when $GZIP is set
2245         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2246         program name.  If defined at all, it is supposed to list gzip options.
2247         Reported by Alan Curry in http://debbugs.gnu.org/8609
2248
2249 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2250
2251         readme-release: new module with release instructions
2252         * modules/readme-release: New module.
2253         * top/README-release: New file, from coreutils, grep, diffutils.
2254         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2255
2256 2011-05-02  Eric Blake  <eblake@redhat.com>
2257
2258         fflush: also replace fclose when fixing fflush
2259         * modules/fflush (Depends-on): Add fclose.
2260         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2261         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2262         memstreams with no backing fd.
2263         * doc/posix-functions/fclose.texi (fclose): Document the use of
2264         fflush module to fix the bug.
2265         * tests/test-fclose.c (main): Relax test when fclose is used in
2266         isolation.
2267
2268         fclose: add some tests
2269         * modules/fclose-tests: New test module.
2270         * tests/test-fclose.c: New file.
2271         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2272
2273         fclose: reduced dependencies
2274         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2275         simpler lseek.
2276         * lib/fclose.c (rpl_fclose): Likewise.
2277         Reported by Simon Josefsson.
2278
2279         exit: drop remaining clients
2280         * modules/argmatch (Depends-on): Replace exit with stdlib.
2281         * modules/copy-file (Depends-on): Likewise.
2282         * modules/execute (Depends-on): Likewise.
2283         * modules/exitfail (Depends-on): Likewise.
2284         * modules/obstack (Depends-on): Likewise.
2285         * modules/pagealign_alloc (Depends-on): Likewise.
2286         * modules/pipe-filter-gi (Depends-on): Likewise.
2287         * modules/pipe-filter-ii (Depends-on): Likewise.
2288         * modules/savewd (Depends-on): Likewise.
2289         * modules/spawn-pipe (Depends-on): Likewise.
2290         * modules/wait-process (Depends-on): Likewise.
2291         * modules/xsetenv (Depends-on): Likewise.
2292         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2293         * modules/git-merge-changelog (Depends-on): Likewise.
2294         * modules/long-options (Depends-on): Likewise.
2295         * modules/pt_chown (Depends-on): Likewise.
2296         * modules/sysexits (Depends-on): Likewise.
2297
2298         freading: relax license from LGPLv3+ to LGPLv2+
2299         * modules/freading (License): Relax LGPL version.
2300
2301 2011-05-02  Bruno Haible  <bruno@clisp.org>
2302
2303         fchdir: Remove unused dependencies.
2304         * modules/fchdir (Depends-on): Remove include_next.
2305
2306 2011-05-02  Bruno Haible  <bruno@clisp.org>
2307
2308         gnulib-tool: Refactor.
2309         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2310         from func_emit_autoconf_snippets.
2311         (func_emit_autoconf_snippets): Use it.
2312
2313 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2314
2315         * NEWS: Document removal of 'exit'.
2316         * modules/exit: Remove file.
2317
2318 2011-05-01  Bruno Haible  <bruno@clisp.org>
2319
2320         Update DEPENDENCIES.
2321         * DEPENDENCIES (gettext): Recommend the newest release.
2322         Reported by Simon Josefsson.
2323
2324 2011-05-01  Bruno Haible  <bruno@clisp.org>
2325
2326         gnulib-tool: Reduce code duplication.
2327         * gnulib-tool (func_emit_autoconf_snippets): New function.
2328         (func_import, func_create_testdir): Use it.
2329
2330 2011-04-30  Eric Blake  <eblake@redhat.com>
2331
2332         fclose: don't fail on non-seekable input stream
2333         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2334         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2335         since fflush is allowed to fail in that case.
2336
2337 2011-04-30  Bruno Haible  <bruno@clisp.org>
2338
2339         dup3: cleanup
2340         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2341
2342 2011-04-30  Bruno Haible  <bruno@clisp.org>
2343
2344         netdb: Make it work in C++ mode.
2345         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2346         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2347         module.
2348         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2349         gl_MODULE_INDICATOR_FOR_TESTS.
2350         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2351         * modules/netdb-c++-tests: New file.
2352         * tests/test-netdb-c++.cc: New file.
2353
2354 2011-04-30  Bruno Haible  <bruno@clisp.org>
2355
2356         New modules 'vfscanf', 'vscanf'.
2357         * modules/vfscanf: New file.
2358         * modules/vscanf: New file.
2359         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2360         here.
2361         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2362         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2363
2364 2011-04-30  Bruno Haible  <bruno@clisp.org>
2365
2366         passfd: Add comments.
2367         * lib/passfd.c: Add comments about platforms.
2368
2369 2011-04-30  Bruno Haible  <bruno@clisp.org>
2370
2371         sys_uio: Make <sys/uio.h> self-contained.
2372         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2373         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2374
2375 2011-04-30  Bruno Haible  <bruno@clisp.org>
2376
2377         sys_socket: Ensure 'struct iovec' definition.
2378         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2379         <sys/socket.h>.
2380         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2381
2382 2011-04-30  Bruno Haible  <bruno@clisp.org>
2383
2384         sys_uio: Protect definition of 'struct iovec'.
2385         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2386         it as a C struct.
2387
2388 2011-04-30  Bruno Haible  <bruno@clisp.org>
2389
2390         manywarnings: fix indentation
2391         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2392
2393 2011-04-30  Pádraig Brady <P@draigBrady.com>
2394
2395         manywarnings: add -Wno-missing-field-initializers if needed.
2396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2397         option if it's needed to allow initialization with { 0, }
2398
2399 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2400
2401         announce-gen: cosmetic improvement
2402         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2403
2404 2011-04-29  Jim Meyering  <meyering@redhat.com>
2405
2406         vc-list-files: indent with spaces, not TABs
2407         * build-aux/vc-list-files: Convert leading TABs to spaces,
2408         to match the style of most other files in gnulib.
2409
2410         announce-gen: indent with spaces, not TABs
2411         * build-aux/announce-gen: Convert all TABs to spaces, to match
2412         the style of most other files in gnulib.
2413
2414 2011-04-29  Eric Blake  <eblake@redhat.com>
2415
2416         quotearg: avoid uninitialized variable use
2417         * lib/quotearg.c (quoting_options_from_style): Initialize
2418         remaining fields, and ensure that custom styles are only used via
2419         quoting_options rather than quoting_style.
2420
2421 2011-04-29  Jim Meyering  <meyering@redhat.com>
2422
2423         maint.mk: remove unused VC-tag variable
2424         * top/maint.mk (VC-tag): Remove unused variable.
2425
2426 2011-04-29  Bruno Haible  <bruno@clisp.org>
2427
2428         netdb: fix gai_strerror replacements
2429         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2430         * modules/netdb: Substitute it.
2431
2432 2011-04-29  Jim Meyering  <meyering@redhat.com>
2433
2434         test-getcwd.c: avoid new set-but-not-used warning
2435         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2436         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2437         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2438         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2439
2440         test-hash.c: avoid a new shadowing warning
2441         * tests/test-hash.c (main): Don't shadow "dup".
2442
2443 2011-04-28  Eric Blake  <eblake@redhat.com>
2444
2445         getaddrinfo: fix gai_strerror signature
2446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2447         and work around mingw with UNICODE defined.
2448         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2449         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2450         * modules/netdb (Makefile.am): Substitute it.
2451         * lib/netdb.in.h (gai_strerror): Declare replacement.
2452         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2453         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2454         the fix.
2455
2456         getsockopt: avoid compiler warning
2457         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2458         Reported by Matthias Bolte.
2459
2460         tests: drop unused link dependency
2461         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2462         * modules/dirent-safer-tests (Makefile.am): Likewise.
2463         * modules/fdopendir-tests (Makefile.am): Likewise.
2464         * modules/mkfifoat-tests (Makefile.am): Likewise.
2465         * modules/openat-safer-tests (Makefile.am): Likewise.
2466         * modules/openat-tests (Makefile.am): Likewise.
2467         * modules/readlinkat-tests (Makefile.am): Likewise.
2468         * modules/symlinkat-tests (Makefile.am): Likewise.
2469         * modules/linkat-tests (Makefile.am): Likewise.
2470         (Depends-on): Switch to filenamecat-lgpl.
2471         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2472         LIBINTL.
2473         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2474         * tests/test-linkat.c (main): Don't require xalloc.
2475
2476         hash, mgetgroups: drop xalloc dependency
2477         * lib/hash.c (includes): Adjust includes.
2478         * lib/mgetgroups.c (includes): Likewise.
2479         (xgetgroups): Move...
2480         * lib/xgetgroups.c: ...to new file.
2481         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2482         * modules/xgetgroups: New file, split from...
2483         * modules/mgetgroups: ...here.
2484         (Depends-on): Add xalloc-oversized.
2485         * modules/hash (Depends-on): Likewise.
2486         * modules/hash-tests (Depends-on): Drop xalloc.
2487         (test_hash_LDADD): Drop unused library.
2488         * tests/test-hash.c (main): Break xalloc dependency.
2489         (includes): Drop unused include.
2490
2491         xalloc-oversized: new module
2492         * modules/xalloc-oversized: New module.
2493         * modules/xalloc (Depends-on): Add it.
2494         * lib/xalloc.h (xalloc_oversized): Move...
2495         * lib/xalloc-oversized.h: ...into new file.
2496
2497         utimecmp: drop dependency on xmalloc
2498         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2499         due to memory pressure.
2500         * modules/utimecmp (Depends-on): Drop xalloc.
2501
2502 2011-04-27  Eric Blake  <eblake@redhat.com>
2503
2504         getcwd: fix mingw bugs
2505         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2506         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2507         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2508
2509 2011-04-27  Bruno Haible  <bruno@clisp.org>
2510
2511         mkstemps: Ensure declaration on MacOS X 10.5.
2512         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2513         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2514         MacOS X.
2515
2516 2011-04-27  Bruno Haible  <bruno@clisp.org>
2517
2518         mkstemp: More documentation.
2519         * doc/posix-functions/mkstemp.texi: Document header file problem on
2520         MacOS X.
2521
2522 2011-04-27  Bruno Haible  <bruno@clisp.org>
2523
2524         mkstemp: Tweak configure message when cross-compiling.
2525         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2526         result as a guess.
2527
2528 2011-04-27  Bruno Haible  <bruno@clisp.org>
2529
2530         clean-temp: Clarify what it does.
2531         * lib/clean-temp.h: Add more comments.
2532         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2533         module.
2534         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2535         * doc/glibc-functions/mkstemps.texi: Likewise.
2536         * doc/glibc-functions/mkostemps.texi: Likewise.
2537
2538 2011-04-27  Eric Blake  <eblake@redhat.com>
2539
2540         fchdir: avoid extra chdir and fix test
2541         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2542         getcwd-lgpl.
2543         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2544         have to be canonical.
2545         (canonicalize_file_name): Drop unused macro.
2546         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2547
2548         filenamecat-lgpl: fix licence
2549         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2550         when it was first created.
2551
2552         linkat, renameat: add missing dependency
2553         * modules/linkat (Depends-on): Require getcwd-lgpl.
2554         * modules/renameat (Depends-on): Likewise.
2555
2556         tests: reduce dependencies
2557         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2558         * tests/test-renameat.c (main): Likewise.
2559         * modules/linkat-tests (Depends-on): Relax dependency.
2560         * modules/renameat-tests (Depends-on): Likewise.
2561         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2562         dependency explicit.
2563
2564         save-cwd: reduce default dependency
2565         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2566         * lib/save-cwd.c: Update comments.
2567         * NEWS: Document the semantic change.
2568
2569         getcwd: enhance tests
2570         * tests/test-getcwd-lgpl.c: New file, taken from...
2571         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2572         repeat long path stress tests from m4 probe.
2573         * modules/getcwd-lgpl-tests: New module.
2574         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2575         * m4/getcwd-abort-bug.m4: Update comment.
2576         * m4/getcwd-path-max.m4: Likewise.
2577
2578         getcwd-lgpl: new module
2579         * modules/getcwd-lgpl: New module.
2580         * lib/getcwd-lgpl.c: New file.
2581         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2582         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2583         * modules/getcwd (configure.ac): Set C witness.
2584         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2585
2586         getcwd: tweak comments
2587         * m4/getcwd-abort-bug.m4: Fix comments.
2588         * m4/getcwd-path-max.m4: Likewise.
2589         * m4/getcwd.m4: Likewise.
2590
2591 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2592         and Eric Blake  <eblake@redhat.com>
2593
2594         mkstemp: replace if system version uses wrong permissions
2595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2596         read/write mode bits set in file created by mkstemp.
2597         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2598
2599 2011-04-27  Eric Blake  <eblake@redhat.com>
2600
2601         passfd: avoid compiler warning
2602         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2603         Reported by Laine Stump.
2604
2605 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2606
2607         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2608         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2609
2610 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2611         and Eric Blake  <eblake@redhat.com>
2612
2613         mkstemp: mention clean-temp module
2614         * lib/mkstemp.c: Add comment.
2615         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2616
2617 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2618
2619         inttypes: also provide default values for 32-bit tests
2620         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2621         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2622
2623 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         strtoumax: remove dependency on strtoimax
2626         This is like the strtoull change of yesterday.
2627         * modules/strtoumax (Files): Add lib/strtoimax.c.
2628         (Depends-on): Remove strtoimax and add verify.
2629
2630         inttypes-incomplete: new module
2631         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2632         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2633         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2634         of gl_INTTYPES_H.
2635         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2636         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2637         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2638         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2639         * modules/strtoumax, modules/xstrtol (Depends-on):
2640         Depend on inttypes-incomplete, not inttypes.
2641         * modules/inttypes-incomplete: New module, containing the contents
2642         of the old modules/inttypes module, except that the Files: section
2643         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2644         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2645         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2646         (Depends-on): Depend only on inttypes-incomplete.
2647         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2648
2649         inttypes: omit now-redundant strtoimax and strtoumax work
2650         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2651         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2652
2653         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2654         This supports apps that need pointers to strtoimax and strtoumax,
2655         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2656         nonexistent functions.  See
2657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2658         et seq.
2659         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2660         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2661         a macro.
2662         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2663
2664 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2665
2666         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2667
2668 2011-04-25  Bruno Haible  <bruno@clisp.org>
2669
2670         strtol, strtoul: Mark modules as obsolete.
2671         * modules/strtol (Status, Notice): New sections.
2672         * modules/strtoul (Status, Notice): New sections.
2673
2674 2011-04-25  Bruno Haible  <bruno@clisp.org>
2675
2676         strtod: Remove check for strtod, unless supporting old platforms.
2677         * modules/strtod-obsolete: New file.
2678         * m4/strtod-obsolete.m4: New file.
2679         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2680         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2681         * modules/strtod (Depends-on): Add strtod-obsolete.
2682         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2683
2684 2011-04-25  Bruno Haible  <bruno@clisp.org>
2685
2686         strcase: Make module obsolete.
2687         * modules/strcase (Status, Notice): New sections.
2688
2689 2011-04-25  Bruno Haible  <bruno@clisp.org>
2690
2691         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2692         * modules/dup2-obsolete: New file.
2693         * m4/dup2-obsolete.m4: New file.
2694         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2695         gl_FUNC_DUP2_OBSOLETE is not also defined.
2696         * modules/dup2 (Depends-on): Add dup2-obsolete.
2697         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2698
2699 2011-04-25  Bruno Haible  <bruno@clisp.org>
2700
2701         strnlen: Avoid memchr related link error on old obsolete platforms.
2702         * modules/memchr-obsolete: New file.
2703         * m4/memchr-obsolete.m4: New file.
2704         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2705         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2706         * modules/memchr (Depends-on): Add memchr-obsolete.
2707         * modules/strnlen (Depends-on): Likewise.
2708         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2709
2710 2011-04-25  Jim Meyering  <meyering@redhat.com>
2711
2712         maint.mk: makefile_at_at_check extend and clean up
2713         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2714         in addition to */Makefile.am.
2715         Exempt legitimate uses of @VAR@ notation, e.g.,
2716         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2717         Remove obsolete coreutils-specific comment.
2718         Prompted by discussion here:
2719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2720
2721 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         strtoul: remove dependency on strtol
2724         This is so that 'configure' need not check for strtol merely because
2725         the application needs strtoul.
2726         * modules/strtoul (Files): Add lib/strtol.c.
2727         (Depends-on): Remove strtol.
2728
2729         strtoull: remove dependency on strtoul
2730         This is like the strtoll change.
2731         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2732         (Depends-on): Remove strtoul.
2733
2734         strtoll: remove dependency on strtol
2735         This is so that 'configure' need not check for strtol merely because
2736         the application needs strtoll.
2737         * modules/strtoll (Files): Add lib/strtol.c.
2738         (Depends-on): Remove strtol.
2739
2740 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         inttypes: Move some configure check to module 'imaxdiv'.
2743         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2744         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2745         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2746
2747 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2748
2749         inttypes: Move some configure check to module 'imaxabs'.
2750         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2751         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2752         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2753
2754 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2755
2756         inttypes: Remove configure tests that are not needed since 2009-12-31.
2757         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2758         gl_cv_header_working_inttypes_h.
2759
2760 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2761
2762         * modules/strnlen (Depends-on): Remove memchr.
2763         The strnlen implementation doesn't need the memchr module's fixes; see
2764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2765
2766         strtol: remove dependency on wchar
2767         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2768         * modules/strtol (Depends-on): Remove wchar.
2769
2770 2011-04-21  Eric Blake  <eblake@redhat.com>
2771
2772         passfd: fix test regression on Linux
2773         * modules/passfd-tests (configure.ac): Correct socketpair check.
2774
2775         passfd: speed up configure and drop unused code
2776         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2777         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2778         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2779         Instead of probing at configure for unix_scm_rights_bsd44_way,
2780         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2781         check to a struct member probe.
2782         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2783         (sendfd, recvfd): Update preprocessor checks.
2784         * modules/passfd (Files): Reflect rename, and drop unused file.
2785         (Depends-on): Drop unused dependency.
2786
2787         passfd: allow compilation on mingw
2788         * modules/sys_socket (Depends-on): Add sys_uio.
2789         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2790         iovec and a minimal struct msghdr.
2791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2792         * tests/test-sys_socket.c (main): Enhance test.
2793         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2794         guaranteed to provide what we need.
2795         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2796         * modules/passfd-tests (Depends-on): Add sys_wait.
2797         * tests/test-passfd.c (main): Skip test on mingw, for now.
2798         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2799         partial 'struct msghdr' implementation.
2800
2801         sys_uio: new module
2802         * modules/sys_uio: New module.
2803         * modules/sys_uio-tests: Likewise.
2804         * lib/sys_uio.in.h: New file.
2805         * m4/sys_uio_h.m4: Likewise.
2806         * tests/test-sys_uio.c: Likewise.
2807         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2808         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2809
2810 2011-04-20  Jim Meyering  <meyering@redhat.com>
2811
2812         useless-if-before-free: avoid false-positive
2813         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2814         disjunct so that it too requires a terminating ";".  Without that,
2815         this script would identify as useless one statement from gcc that
2816         was not:
2817           if (aligned_ptr)
2818             free (((void **) aligned_ptr) [-1]);
2819
2820 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2821
2822         doc: update users.txt.
2823         * users.txt: Add barcode.
2824
2825 2011-04-19  Bruno Haible  <bruno@clisp.org>
2826
2827         ioctl: Remove link dependency on native Windows.
2828         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2829         (gl_close_fn, gl_ioctl_fn): New types.
2830         (struct fd_hook): Renamed from struct close_hook. Change type of
2831         private_close_fn field. Add private_ioctl_fn field.
2832         (close_hook_fn): Add parameter for primary close method.
2833         (execute_close_hooks, execute_all_close_hooks): Likewise.
2834         (ioctl_hook_fn): New type.
2835         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2836         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2837         argument.
2838         (unregister_fd_hook): Renamed from unregister_close_hook.
2839         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2840         Don't include <unistd.h>.
2841         (close): Remove undef.
2842         (anchor): Update.
2843         (execute_close_hooks): Add argument for primary close method.
2844         (execute_all_close_hooks): Likewise.
2845         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2846         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2847         argument. Allow each argument to be NULL.
2848         (unregister_fd_hook): Renamed from unregister_close_hook.
2849         * lib/close.c (rpl_close): Pass 'close' function pointer to
2850         execute_all_close_hooks.
2851         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2852         (primary_ioctl): New function.
2853         (ioctl): Don't call ioctlsocket here. Instead, call
2854         execute_all_ioctl_hooks.
2855         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2856         close method.
2857         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2858         (fd_sockets_hook): Renamed from close_sockets_hook.
2859         (gl_sockets_startup, gl_sockets_cleanup): Update.
2860         * modules/fd-hook: Renamed from modules/close-hook. Update.
2861         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2862         * modules/sockets (Depends-on): Likewise.
2863         * modules/ioctl (Depends-on): Add fd-hook.
2864         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2865         GNULIB_SOCKET.
2866
2867 2011-04-19  Bruno Haible  <bruno@clisp.org>
2868
2869         Move the support of O_NONBLOCK in open() to the 'open' module.
2870         * modules/nonblocking (Depends-on): Remove 'open'.
2871         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2872         gl_cv_have_open_O_NONBLOCK.
2873         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2874         O_NONBLOCK support.
2875         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2876
2877 2011-04-17  Bruno Haible  <bruno@clisp.org>
2878
2879         pipe2: Simplify code.
2880         * lib/pipe2.c (pipe2): Reduce code duplication.
2881
2882 2011-04-17  Bruno Haible  <bruno@clisp.org>
2883
2884         nonblocking: Add comment.
2885         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2886
2887 2011-04-17  Bruno Haible  <bruno@clisp.org>
2888
2889         nonblocking: Add tests for sockets.
2890         * tests/test-nonblocking-socket.sh: New file.
2891         * tests/test-nonblocking-socket-main.c: New file.
2892         * tests/test-nonblocking-socket-child.c: New file.
2893         * tests/test-nonblocking-socket.h: New file.
2894         * tests/socket-server.h: New file.
2895         * tests/socket-client.h: New file.
2896         * modules/nonblocking-socket-tests: New file.
2897         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2898
2899 2011-04-17  Bruno Haible  <bruno@clisp.org>
2900
2901         nonblocking: Add tests for pipes.
2902         * tests/test-nonblocking-pipe.sh: New file.
2903         * tests/test-nonblocking-pipe-main.c: New file.
2904         * tests/test-nonblocking-pipe-child.c: New file.
2905         * tests/test-nonblocking-pipe.h: New file.
2906         * tests/test-nonblocking-writer.h: New file.
2907         * tests/test-nonblocking-reader.h: New file.
2908         * tests/test-nonblocking-misc.h: New file.
2909         * modules/nonblocking-pipe-tests: New file.
2910         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2911
2912 2011-04-16  Bruno Haible  <bruno@clisp.org>
2913
2914         gettext: Clarify the needed programmer actions.
2915         * modules/gettext (Notice): New field.
2916         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2917
2918 2011-04-16  Bruno Haible  <bruno@clisp.org>
2919
2920         strchrnul: Tweak last commit.
2921         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2922         bug.
2923         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2924         as in _GL_FUNCDECL_SYS.
2925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2926         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2927
2928 2011-04-15  Eric Blake  <eblake@redhat.com>
2929
2930         strchrnul: work around cygwin bug
2931         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2934         * modules/string (Makefile.am): Substitute it.
2935         * lib/string.in.h (strchrnul): Use it.
2936
2937 2011-04-15  Bruno Haible  <bruno@clisp.org>
2938
2939         Don't require lib/stdio-write.c when only module 'stdio' is used.
2940         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2941         invocation.
2942         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2943
2944 2011-04-14  Bruno Haible  <bruno@clisp.org>
2945
2946         Support non-blocking pipe I/O in read() on native Windows.
2947         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2948         (read): New declaration.
2949         * lib/read.c: New file.
2950         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2951         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2952         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2953         vscanf): New declarations.
2954         * lib/stdio-read.c: New file.
2955         * m4/read.m4: New file.
2956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2957         REPLACE_READ.
2958         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2959         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2960         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2961         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2962         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2963         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2964         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2965         * modules/read: New file.
2966         * modules/nonblocking (Files): Add lib/stdio-read.c.
2967         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2968         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2969         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2970         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2971         * modules/pread (Depends-on): Add read.
2972         * modules/safe-read (Depends-on): Likewise.
2973         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2974         gets, scanf, vfscanf, vscanf): Verify signatures.
2975         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2976         problem with non-blocking pipes.
2977         * doc/posix-functions/fgetc.texi: Likewise.
2978         * doc/posix-functions/fgets.texi: Likewise.
2979         * doc/posix-functions/fread.texi: Likewise.
2980         * doc/posix-functions/fscanf.texi: Likewise.
2981         * doc/posix-functions/getc.texi: Likewise.
2982         * doc/posix-functions/getchar.texi: Likewise.
2983         * doc/posix-functions/gets.texi: Likewise.
2984         * doc/posix-functions/scanf.texi: Likewise.
2985         * doc/posix-functions/vfscanf.texi: Likewise.
2986         * doc/posix-functions/vscanf.texi: Likewise.
2987
2988 2011-04-14  Bruno Haible  <bruno@clisp.org>
2989
2990         Support non-blocking pipe I/O in write() on native Windows.
2991         * lib/write.c (rpl_write): Split a write request that failed merely
2992         because the byte count was larger than the pipe buffer's size.
2993         * doc/posix-functions/write.texi: Mention the problem with large byte
2994         counts.
2995
2996 2011-04-14  Bruno Haible  <bruno@clisp.org>
2997
2998         wchar: Ensure that wchar_t gets defined on uClibc.
2999         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3000         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3001
3002 2011-04-13  Bruno Haible  <bruno@clisp.org>
3003
3004         safe-write, full-read: Avoid unnecessary compilation units.
3005         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3006         (Depends-on): Remove safe-read. Add ssize_t.
3007         * modules/full-read (Files): Add lib/full-write.c.
3008         (Depends-on): Add full-write.
3009
3010 2011-04-13  Bruno Haible  <bruno@clisp.org>
3011
3012         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3013         * modules/pwrite (Depends-on): Add 'write'.
3014
3015 2011-04-13  Bruno Haible  <bruno@clisp.org>
3016
3017         Support non-blocking pipe I/O in write() on native Windows.
3018         * lib/unistd.in.h (write): Enable replacement also if
3019         GNULIB_UNISTD_H_NONBLOCKING is 1.
3020         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3021         (rpl_write): When failing to write on a non-blocking pipe, change
3022         errno from ENOSPC to EAGAIN.
3023         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3024         putchar, puts, vfprintf, vprintf): Enable replacement also if
3025         GNULIB_STDIO_H_NONBLOCKING is 1.
3026         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3027         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3028         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3029         CALL_WITH_SIGPIPE_EMULATION.
3030         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3031         * m4/nonblocking.m4: New file.
3032         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3033         for non-blocking I/O support.
3034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3035         GNULIB_UNISTD_H_NONBLOCKING.
3036         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3037         required for non-blocking I/O support.
3038         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3039         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3040         lib/stdio-write.c, m4/asm-underscore.m4.
3041         (Depends-on): Add stdio, unistd.
3042         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3043         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3044         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3045         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3046         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3047         problem with non-blocking pipes.
3048         * doc/posix-functions/fputc.texi: Likewise.
3049         * doc/posix-functions/fputs.texi: Likewise.
3050         * doc/posix-functions/fwrite.texi: Likewise.
3051         * doc/posix-functions/printf.texi: Likewise.
3052         * doc/posix-functions/putc.texi: Likewise.
3053         * doc/posix-functions/putchar.texi: Likewise.
3054         * doc/posix-functions/puts.texi: Likewise.
3055         * doc/posix-functions/vfprintf.texi: Likewise.
3056         * doc/posix-functions/vprintf.texi: Likewise.
3057         * doc/posix-functions/write.texi: Likewise.
3058
3059 2011-04-10  Jim Meyering  <meyering@redhat.com>
3060
3061         maint.mk: prohibit doubled words
3062         Detect them also when they're separated by a newline.
3063         There are 3 ways to customize it:
3064           - disable the test on a per file basis, as usual with rules using
3065             $(VC_LIST_EXCEPT)
3066           - replace the default doubled-word-selecting regexp (affects all files)
3067           - ignore a particular file-vs-doubled-word match
3068         I nearly used that last one to ignore the "is is" match in
3069         coreutils' NEWS file, since the text was "ls -is is ..."
3070         To do that, I would have added this line to cfg.mk:
3071           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3072         but it would have ignored any "is is" match in NEWS.
3073         Low probability, but still...
3074         Instead, I changed the text, slightly:
3075           -  ls -is is now consistent with ls -lis in ignoring values returned
3076           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3077         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3078         (prohibit_doubled_word_): Define.
3079         (sc_prohibit_doubled_word): New rule.
3080         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3081
3082 2011-04-10  Jim Meyering  <meyering@redhat.com>
3083
3084         maint: fix doubled-word typo in comment
3085         * m4/gethostname.m4: s/is is/it is/
3086         * m4/getdomainname.m4: Likewise.
3087
3088 2011-04-10  Jim Meyering  <meyering@redhat.com>
3089
3090         maint: remove doubled word: s/it it/it/
3091         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3092
3093 2011-04-10  Jim Meyering  <meyering@redhat.com>
3094
3095         maint.mk: remove useless semicolon and backslash
3096         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3097         semicolon and backslash.
3098
3099 2011-04-10  Bruno Haible  <bruno@clisp.org>
3100
3101         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3102         * modules/stdint-tests (Depends-on): Add wchar.
3103
3104 2011-04-10  Jim Meyering  <meyering@redhat.com>
3105
3106         maint: remove doubled words in comments, e.g., s/a a/a/
3107         * lib/strptime.c (day_of_the_week): s/the the/the/
3108         * tests/test-chown.h (test_chown): s/a a/a/
3109
3110         test-chown.h: correct a cast
3111         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3112         when the destination is a stat.st_gid.
3113
3114 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3115
3116         getaddrinfo: Fix test for sa_len member.
3117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3118         include <sys/types.h> before <sys/socket.h>.
3119
3120 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3121
3122         maint: change "can not" to "cannot"
3123         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3124         boundaries.
3125
3126 2011-04-09  Jim Meyering  <meyering@redhat.com>
3127
3128         maint: change "a a" to "a"
3129         * tests/test-lchown.h (test_lchown): s/a a/a/
3130
3131         maint.mk: prohibit \<the the\>
3132         * top/maint.mk (sc_prohibit_the_the): New rule.
3133
3134         maint: fix "the the" in comment
3135         * lib/count-one-bits.h: s/the the/the/
3136
3137         maint: change "can not" to "cannot"
3138         But do not change the occurrences in maintain.texi or in
3139         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3140         * doc/gnulib-tool.texi: s/can not/cannot/
3141         * doc/posix-functions/accept.texi (accept): Likewise.
3142         * doc/posix-functions/socket.texi (socket): Likewise.
3143         * lib/mbrtowc.c: Likewise.
3144
3145         maint.mk: prohibit use of "can not"
3146         * top/maint.mk (sc_prohibit_can_not): New rule.
3147         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3148
3149 2011-04-09  Bruno Haible  <bruno@clisp.org>
3150
3151         careadlinkat: Guard against misuse of careadlinkatcwd.
3152         * lib/careadlinkat.c: Include <stdlib.h>.
3153         (careadlinkatcwd): Check that the fd argument is as expected.
3154
3155 2011-04-09  Bruno Haible  <bruno@clisp.org>
3156
3157         careadlinkat: Use common coding style.
3158         * lib/careadlinkat.c: Move gnulib includes after system includes.
3159
3160 2011-04-09  Bruno Haible  <bruno@clisp.org>
3161
3162         careadlinkat: Clarify specification.
3163         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3164         (careadlinkatcwd): Add comment.
3165         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3166
3167 2011-04-09  Bruno Haible  <bruno@clisp.org>
3168
3169         areadlinkat: Avoid link error on many platforms.
3170         * modules/areadlinkat (Depends-on): Add areadlink.
3171
3172 2011-04-09  Bruno Haible  <bruno@clisp.org>
3173
3174         allocator, careadlinkat: Fix double-inclusion guard.
3175         * lib/allocator.h: Fix double-inclusion guard.
3176         * lib/careadlinkat.h: Likewise.
3177
3178 2011-04-09  Bruno Haible  <bruno@clisp.org>
3179
3180         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3181         * lib/relocwrapper.c: Update dependencies hierarchy.
3182         * build-aux/install-reloc: Update list of files to be compiled.
3183         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3184         lib/allocator.[hc].
3185
3186 2011-04-08  Eric Blake  <eblake@redhat.com>
3187
3188         strftime: silence gnulib-tool warning
3189         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3190
3191 2011-04-08  Bruno Haible  <bruno@clisp.org>
3192
3193         verify: Fix syntax error with GCC 4.6 in C++ mode.
3194         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3195         (HAVE_STATIC_ASSERT): New macro.
3196         (verify_true, verify): Use 'static_assert' if it is supported and
3197         '_Static_assert' is not supported.
3198
3199 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3200
3201         allocator: New module.
3202         * modules/allocator, lib/allocator.c: New files.
3203         * lib/allocator.h (stdlib_allocator): New decl.
3204         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3205         Remove.  Do not include <stdlib.h>.
3206         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3207         * modules/careadlinkat (Files): Remove lib/allocator.h.
3208         (Depends-on): Add allocator.
3209
3210         stdlib: let modules use system malloc, realloc
3211         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3212         if !_GL_USE_STDLIB_ALLOC.
3213         (malloc, realloc): Limit this change to a smaller scope.
3214
3215         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3216         (malloc, realloc): Don't #undef; no longer needed.
3217         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3218         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3219         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3220         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3221         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3222         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3223         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3224         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3225
3226         careadlinkat: rename members to avoid problem
3227         * lib/allocator.h (struct allocator): Rename members from
3228         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3229         and realloc are #define'd.  Reported by Eric Blake in
3230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3231         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3232
3233 2011-04-08  Eric Blake  <eblake@redhat.com>
3234
3235         nonblocking: reduce dependency
3236         * tests/test-nonblocking.c: Only test sockets when in use.
3237         * modules/nonblocking-tests (Depends-on): Drop socket.
3238         (Makefile.am): Link even if sockets are not present.
3239         * modules/pipe2-tests (Makefile.am): Likewise.
3240         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3241
3242         pipe2: fix O_NONBLOCK support on mingw
3243         * modules/pipe2 (Depends-on): Add nonblocking.
3244         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3245         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3246         * tests/test-nonblocking.c (main): Likewise.
3247         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3248
3249         fcntl-h: fix O_ACCMODE on cygwin
3250         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3251         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3252
3253         pipe-filter: drop O_NONBLOCK workarounds
3254         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3255         * modules/pipe-filter-ii (Depends-on): Likewise.
3256         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3257
3258         nonblocking: provide O_NONBLOCK for mingw
3259         * modules/nonblocking (Depends-on): Add open.
3260         (configure.ac): Set new witness macro.
3261         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3262         * modules/fcntl-h (Makefile.am): Substitute it.
3263         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3264         nonblocking module is in use.
3265         * lib/nonblocking.c: Adjust portability test.
3266         * lib/open.c (open): Don't let native open see gnulib flag.
3267         * tests/test-fcntl-h.c (main): Enhance test.
3268         * tests/test-open.h (test_open): Likewise.
3269         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3270
3271         careadlinkat: fix compilation error on mingw
3272         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3273         within struct allocator.
3274
3275 2011-04-06  Eric Blake  <eblake@redhat.com>
3276
3277         binary-io: relicense under LGPLv2+
3278         * modules/binary-io (License): Relax to LGPLv2+.
3279         Requested for libvirt, and required by pipe2.
3280
3281 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3282
3283         verify: use _Static_assert if available
3284         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3285         (verify_true, verify): Use it if available.  This generates better
3286         diagnostics with GCC 4.6.0 and later.
3287
3288 2011-04-05  Bruno Haible  <bruno@clisp.org>
3289
3290         Remove leftover generated .h files after config.status changed.
3291
3292         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3293         GL_GENERATE_ALLOCA_H.
3294         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3295         GL_GENERATE_ALLOCA_H evaluates to false.
3296
3297         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3298         GL_GENERATE_ARGZ_H.
3299         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3300         evaluates to false.
3301
3302         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3303         GL_GENERATE_BYTESWAP_H.
3304         * modules/byteswap (Makefile.am): Remove byteswap.h if
3305         GL_GENERATE_BYTESWAP_H evaluates to false.
3306
3307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3308         GL_GENERATE_ERRNO_H.
3309         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3310         evaluates to false.
3311
3312         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3313         GL_GENERATE_FLOAT_H.
3314         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3315         evaluates to false.
3316
3317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3318         GL_GENERATE_FNMATCH_H.
3319         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3320         GL_GENERATE_FNMATCH_H evaluates to false.
3321
3322         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3323         GL_GENERATE_GLOB_H.
3324         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3325         evaluates to false.
3326
3327         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3328         automake conditional GL_GENERATE_ICONV_H.
3329         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3330         evaluates to false.
3331
3332         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3333         GL_GENERATE_NETINET_IN_H.
3334         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3335         GL_GENERATE_NETINET_IN_H evaluates to false.
3336
3337         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3338         conditional GL_GENERATE_PTHREAD_H.
3339         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3340         * modules/pthread (Makefile.am): Remove pthread.h if
3341         GL_GENERATE_PTHREAD_H evaluates to false.
3342
3343         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3344         GL_GENERATE_SCHED_H.
3345         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3346         evaluates to false.
3347
3348         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3349         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3350         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3351         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3352
3353         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3354         GL_GENERATE_STDARG_H.
3355         * modules/stdarg (Makefile.am): Remove stdarg.h if
3356         GL_GENERATE_STDARG_H evaluates to false.
3357
3358         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3359         GL_GENERATE_STDBOOL_H.
3360         * modules/stdbool (Makefile.am): Remove stdbool.h if
3361         GL_GENERATE_STDBOOL_H evaluates to false.
3362
3363         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3364         conditional GL_GENERATE_STDDEF_H.
3365         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3366         * modules/stddef (Makefile.am): Remove stddef.h if
3367         GL_GENERATE_STDDEF_H evaluates to false.
3368
3369         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3370         GL_GENERATE_STDINT_H.
3371         * modules/stdint (Makefile.am): Remove stdint.h if
3372         GL_GENERATE_STDINT_H evaluates to false.
3373
3374         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3375         GL_GENERATE_SYSEXITS_H.
3376         * modules/sysexits (Makefile.am): Remove sysexits.h if
3377         GL_GENERATE_SYSEXITS_H evaluates to false.
3378
3379         Reported by Karl Berry and Ralf Wildenhues.
3380
3381 2011-04-05  Bruno Haible  <bruno@clisp.org>
3382
3383         Ensure to rebuild generated .h files when config.status has changed.
3384         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3385         config.status.
3386         * modules/ctype (Makefile.am): Likewise.
3387         * modules/dirent (Makefile.am): Likewise.
3388         * modules/errno (Makefile.am): Likewise.
3389         * modules/fcntl-h (Makefile.am): Likewise.
3390         * modules/float (Makefile.am): Likewise.
3391         * modules/getopt-posix (Makefile.am): Likewise.
3392         * modules/glob (Makefile.am): Likewise.
3393         * modules/iconv-h (Makefile.am): Likewise.
3394         * modules/inttypes (Makefile.am): Likewise.
3395         * modules/langinfo (Makefile.am): Likewise.
3396         * modules/locale (Makefile.am): Likewise.
3397         * modules/math (Makefile.am): Likewise.
3398         * modules/netdb (Makefile.am): Likewise.
3399         * modules/netinet_in (Makefile.am): Likewise.
3400         * modules/poll-h (Makefile.am): Likewise.
3401         * modules/pthread (Makefile.am): Likewise.
3402         * modules/pty (Makefile.am): Likewise.
3403         * modules/sched (Makefile.am): Likewise.
3404         * modules/search (Makefile.am): Likewise.
3405         * modules/selinux-h (Makefile.am): Likewise.
3406         * modules/signal (Makefile.am): Likewise.
3407         * modules/spawn (Makefile.am): Likewise.
3408         * modules/stdarg (Makefile.am): Likewise.
3409         * modules/stdbool (Makefile.am): Likewise.
3410         * modules/stddef (Makefile.am): Likewise.
3411         * modules/stdint (Makefile.am): Likewise.
3412         * modules/stdio (Makefile.am): Likewise.
3413         * modules/stdlib (Makefile.am): Likewise.
3414         * modules/string (Makefile.am): Likewise.
3415         * modules/strings (Makefile.am): Likewise.
3416         * modules/sys_file (Makefile.am): Likewise.
3417         * modules/sys_ioctl (Makefile.am): Likewise.
3418         * modules/sys_select (Makefile.am): Likewise.
3419         * modules/sys_socket (Makefile.am): Likewise.
3420         * modules/sys_stat (Makefile.am): Likewise.
3421         * modules/sys_time (Makefile.am): Likewise.
3422         * modules/sys_times (Makefile.am): Likewise.
3423         * modules/sys_utsname (Makefile.am): Likewise.
3424         * modules/sys_wait (Makefile.am): Likewise.
3425         * modules/sysexits (Makefile.am): Likewise.
3426         * modules/termios (Makefile.am): Likewise.
3427         * modules/time (Makefile.am): Likewise.
3428         * modules/unistd (Makefile.am): Likewise.
3429         * modules/wchar (Makefile.am): Likewise.
3430         * modules/wctype-h (Makefile.am): Likewise.
3431         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3432
3433 2011-04-05  Bruno Haible  <bruno@clisp.org>
3434
3435         pipe2: Relicense under LGPLv2+.
3436         * modules/pipe2 (License): Change to LGPLv2+.
3437         Requested by Eric Blake, for libvirt.
3438
3439 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3440
3441         bootstrap: compute gnulib_extra_files after updating build_aux
3442         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3443         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3444
3445 2011-04-05  Eric Blake  <eblake@redhat.com>
3446
3447         bootstrap: preserve git whitelist item sorting
3448         * build-aux/bootstrap (sort_patterns): New function.
3449         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3450
3451 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3452
3453         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3454         sc_space_tab check.
3455
3456 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3457
3458         areadlink, areadlinkat: rewrite in terms of careadlinkat
3459         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3460         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3461         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3462         (malloc, realloc): Remove #undefs.
3463         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3464         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3465         readlink, ssize_t, stdint, unistd.
3466         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3467         areadlink, stdint.
3468
3469         careadlinkat: new module
3470         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3471         * modules/careadlinkat: New files, written by me with
3472         a review and feedback from Ben Pfaff in
3473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3474
3475 2011-04-01  Bruno Haible  <bruno@clisp.org>
3476
3477         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3478         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3479         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3480         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3481         Reported by Bruce Korb <bruce.korb@gmail.com>.
3482
3483 2011-04-01  Bruno Haible  <bruno@clisp.org>
3484
3485         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3486         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3487         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3488         * modules/wcpcpy (Depends-on): Add extensions.
3489         * modules/wcpncpy (Depends-on): Likewise.
3490         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3491         systems.
3492         * doc/posix-functions/wcpncpy.texi: Likewise.
3493         * doc/posix-functions/wcwidth.texi: Likewise.
3494
3495 2011-03-31  Eric Blake  <eblake@redhat.com>
3496
3497         nonblocking: fix mingw test failures
3498         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3499         non-blocking flag on regular file.
3500         (get_nonblocking_flag): Set errno on invalid fd.
3501         * tests/test-nonblocking.c (main): Avoid test failure on
3502         directories if fchdir is not active.
3503         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3504
3505 2011-03-31  Bruno Haible  <bruno@clisp.org>
3506
3507         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3508         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3509         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3510         Reported by Simon Josefsson <simon@josefsson.org>.
3511
3512 2011-03-31  Bruno Haible  <bruno@clisp.org>
3513         and Eric Blake  <eblake@redhat.com>
3514
3515         nonblocking: new module
3516         * modules/nonblocking: New module.
3517         * modules/nonblocking-tests: Likewise.
3518         * lib/nonblocking.h: New file.
3519         * lib/nonblocking.c: Likewise.
3520         * tests/test-nonblocking.c: New test.
3521         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3522
3523 2011-03-30  Bruno Haible  <bruno@clisp.org>
3524
3525         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3526         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3527         instead of 'printf' format for GCC >= 4.4.
3528         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3529         (fprintf, printf, vfprintf, vprintf): Declare with
3530         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3531         the system's vfprintf() function.
3532         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3533
3534 2011-03-30  Eric Blake  <eblake@redhat.com>
3535
3536         passfd: fix scoping bug
3537         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3538         before sendmsg/recvmsg.
3539
3540         passfd: standardize coding conventions
3541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3542         can be learned at compile time.
3543         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3544         ifdefs.
3545         (sendfd, recvfd): Follow gnulib code conventions.
3546
3547         passfd: fix incorrect sendmsg arguments
3548         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3549         incorrect msg_controllen value.
3550         * modules/passfd-tests (Depends-on): Check for alarm.
3551         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3552         Reported by Bastien ROUCARIES.
3553
3554 2011-03-30  Bruno Haible  <bruno@clisp.org>
3555
3556         c-strcasestr: Relicense under LGPLv2+.
3557         * modules/c-strcasestr (License): Change to LGPLv2+.
3558         Requested by Eric Blake, for libvirt.
3559
3560 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3561
3562         * users.txt: Add libidn2.  Fix libtasn1 link.
3563
3564 2011-03-30  Jim Meyering  <meyering@redhat.com>
3565
3566         tests: readlink* ("",... fails with EINVAL on newer kernels
3567         readlink and readlinkat have typically failed with ENOENT for
3568         the invalid, empty file name,  "".  However, with the advent
3569         of linux-2.6.39, they fail with EINVAL.
3570         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3571         when operating on the empty file name.
3572         * tests/test-readlink.h (test_readlink): Likewise.
3573
3574 2011-03-29  Bruno Haible  <bruno@clisp.org>
3575
3576         Relicense some modules under LGPLv2+, for libidn2.
3577         * modules/array-mergesort (License): Change to LGPLv2+.
3578         * modules/c-strcaseeq (License): Likewise.
3579         * modules/striconveh (License): Likewise.
3580         * modules/striconveha (License): Likewise.
3581         * modules/uniconv/base (License): Likewise.
3582         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3583         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3584         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3585         * modules/unictype/base (License): Likewise.
3586         * modules/unictype/bidiclass-of (License): Likewise.
3587         * modules/unictype/category-M (License): Likewise.
3588         * modules/unictype/category-none (License): Likewise.
3589         * modules/unictype/category-of (License): Likewise.
3590         * modules/unictype/category-test (License): Likewise.
3591         * modules/unictype/category-test-withtable (License): Likewise.
3592         * modules/unictype/combining-class (License): Likewise.
3593         * modules/unictype/joiningtype-of (License): Likewise.
3594         * modules/unictype/scripts (License): Likewise.
3595         * modules/uninorm/base (License): Likewise.
3596         * modules/uninorm/canonical-decomposition (License): Likewise.
3597         * modules/uninorm/composition (License): Likewise.
3598         * modules/uninorm/decompose-internal (License): Likewise.
3599         * modules/uninorm/decomposition-table (License): Likewise.
3600         * modules/uninorm/nfc (License): Likewise.
3601         * modules/uninorm/nfd (License): Likewise.
3602         * modules/uninorm/u32-normalize (License): Likewise.
3603         * modules/unistr/base (License): Likewise.
3604         * modules/unistr/u32-cpy (License): Likewise.
3605         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3606         * modules/unistr/u32-to-u8 (License): Likewise.
3607         * modules/unistr/u32-uctomb (License): Likewise.
3608         * modules/unistr/u8-check (License): Likewise.
3609         * modules/unistr/u8-mblen (License): Likewise.
3610         * modules/unistr/u8-mbtouc (License): Likewise.
3611         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3612         * modules/unistr/u8-mbtoucr (License): Likewise.
3613         * modules/unistr/u8-prev (License): Likewise.
3614         * modules/unistr/u8-strlen (License): Likewise.
3615         * modules/unistr/u8-to-u32 (License): Likewise.
3616         * modules/unistr/u8-uctomb (License): Likewise.
3617         * modules/unitypes (License): Likewise.
3618         Requested by Simon Josefsson.
3619
3620 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3621
3622         lib-symbol-visibility: Add a notice.
3623         * modules/lib-symbol-visibility (Notice): New field.
3624
3625 2011-03-29  Bruno Haible  <bruno@clisp.org>
3626
3627         getaddrinfo: Doc fix.
3628         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3629         section "fixed in Gnulib".
3630
3631 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3632
3633         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3634         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3635
3636 2011-03-26  Bruno Haible  <bruno@clisp.org>
3637
3638         unictype/property-byname: Reduce the number of load-time relocations.
3639         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3640         (UC_PROPERTY_INDEX_*): New enumeration values.
3641         (uc_property_byname): Convert an index from the lookup table to an
3642         uc_property_t.
3643         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3644         values.
3645
3646 2011-03-26  Bruno Haible  <bruno@clisp.org>
3647
3648         unictype/property-byname: Allow omitted word separators and aliases.
3649         * lib/unictype/pr_byname.gperf: Add property names without word
3650         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3651         for 'space'.
3652
3653 2011-03-26  Bruno Haible  <bruno@clisp.org>
3654
3655         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3656         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3657         also hyphens to space.
3658         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3659         without spaces.
3660         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3661
3662 2011-03-26  Bruno Haible  <bruno@clisp.org>
3663
3664         unictype/joiningtype-byname: Recognize long names as well.
3665         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3666         a long name.
3667         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3668         unictype/joiningtype_byname.h.
3669         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3670         * lib/unictype/joiningtype_byname.gperf: New file.
3671         * modules/unictype/joiningtype-byname (Files): Add
3672         lib/unictype/joiningtype_byname.gperf.
3673         (Depends-on): Add gperf.
3674         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3675         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3676         long names.
3677
3678         Tests for module 'unictype/joiningtype-longname'.
3679         * modules/unictype/joiningtype-longname-tests: New file.
3680         * tests/unictype/test-joiningtype_longname.c: New file.
3681
3682         New module 'unictype/joiningtype-longname'.
3683         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3684         * lib/unictype/joiningtype_longname.c: New file.
3685         * modules/unictype/joiningtype-longname: New file.
3686         * modules/unictype/joiningtype-all (Depends-on): Add
3687         unictype/joiningtype-longname.
3688
3689 2011-03-26  Bruno Haible  <bruno@clisp.org>
3690
3691         unictype/bidiclass-byname: Recognize long names as well.
3692         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3693         name.
3694         * lib/unictype/bidi_byname.c: Include <string.h>,
3695         unictype/bidi_byname.h.
3696         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3697         * lib/unictype/bidi_byname.gperf: New file.
3698         * modules/unictype/bidiclass-byname (Files): Add
3699         lib/unictype/bidi_byname.gperf.
3700         (Depends-on): Add gperf.
3701         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3702         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3703         long names.
3704
3705         Tests for module 'unictype/bidiclass-longname'.
3706         * modules/unictype/bidiclass-longname-tests: New file.
3707         * tests/unictype/test-bidi_longname.c: New file.
3708
3709         New module 'unictype/bidiclass-longname'.
3710         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3711         * lib/unictype/bidi_longname.c: New file.
3712         * modules/unictype/bidiclass-longname: New file.
3713         * modules/unictype/bidiclass-all (Depends-on): Add
3714         unictype/bidiclass-longname.
3715
3716 2011-03-26  Bruno Haible  <bruno@clisp.org>
3717
3718         unictype/bidi*: Rename modules.
3719         * modules/unictype/bidiclass-all: Renamed from
3720         modules/unictype/bidicategory-all.
3721         * modules/unictype/bidiclass-name: Renamed from
3722         modules/unictype/bidiclass-name.
3723         (Description): Update.
3724         * modules/unictype/bidiclass-name-tests: Renamed from
3725         modules/unictype/bidicategory-name-tests.
3726         * modules/unictype/bidiclass-byname: Renamed from
3727         modules/unictype/bidicategory-byname.
3728         (Description): Update.
3729         * modules/unictype/bidiclass-byname-tests: Renamed from
3730         modules/unictype/bidicategory-byname-tests.
3731         * modules/unictype/bidiclass-of: Renamed from
3732         modules/unictype/bidicategory-of.
3733         (Description): Update.
3734         * modules/unictype/bidiclass-of-tests: Renamed from
3735         modules/unictype/bidicategory-of-tests.
3736         * modules/unictype/bidiclass-test: Renamed from
3737         modules/unictype/bidicategory-test.
3738         (Description): Update.
3739         * modules/unictype/bidiclass-test-tests: Renamed from
3740         modules/unictype/bidicategory-test-tests.
3741         * modules/unictype/bidicategory-all: New file, a simple redirection.
3742         * modules/unictype/bidicategory-name: Likewise.
3743         * modules/unictype/bidicategory-byname: Likewise.
3744         * modules/unictype/bidicategory-of: Likewise.
3745         * modules/unictype/bidicategory-test: Likewise.
3746         * modules/unictype/property-bidi-* (Dependencies): Update.
3747         * lib/unictype/bidi_*.c: Update comment.
3748
3749 2011-03-26  Bruno Haible  <bruno@clisp.org>
3750
3751         unictype/bidi*: Rename functions, part 2.
3752         * modules/unictype/bidicategory-name (configure.ac): Update required
3753         libunistring version.
3754         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3755
3756 2011-03-25  Bruno Haible  <bruno@clisp.org>
3757
3758         New module 'unictype/combining-class-all'.
3759         * modules/unictype/combining-class-all: New file.
3760
3761         Tests for module 'unictype/combining-class-byname'.
3762         * modules/unictype/combining-class-byname-tests: New file.
3763         * tests/unictype/test-combiningclass_byname.c: New file.
3764
3765         New module 'unictype/combining-class-byname'.
3766         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3767         * lib/unictype/combiningclass_byname.c: New file.
3768         * lib/unictype/combiningclass_byname.gperf: New file.
3769         * modules/unictype/combining-class-byname: New file.
3770
3771         Tests for module 'unictype/combining-class-longname'.
3772         * modules/unictype/combining-class-longname-tests: New file.
3773         * tests/unictype/test-combiningclass_longname.c: New file.
3774
3775         New module 'unictype/combining-class-longname'.
3776         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3777         * lib/unictype/combiningclass_longname.c: New file.
3778         * modules/unictype/combining-class-longname: New file.
3779
3780         Tests for module 'unictype/combining-class-name'.
3781         * modules/unictype/combining-class-name-tests: New file.
3782         * tests/unictype/test-combiningclass_name.c: New file.
3783
3784         New module 'unictype/combining-class-name'.
3785         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3786         * lib/unictype/combiningclass_name.c: New file.
3787         * modules/unictype/combining-class-name: New file.
3788
3789 2011-03-25  Bruno Haible  <bruno@clisp.org>
3790
3791         unictype/combining-class: Rename source files.
3792         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3793         of unictype/combining.h.
3794         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3795         Update.
3796         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3797         * modules/unictype/combining-class (Description): Fix.
3798         (Files, Makefile.am): Update.
3799         * tests/unictype/test-combiningclass.c: Renamed from
3800         tests/unictype/test-combining.c.
3801         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3802
3803 2011-03-25  Bruno Haible  <bruno@clisp.org>
3804
3805         unictype: Update list of canonical combining classes.
3806         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3807
3808 2011-03-25  Bruno Haible  <bruno@clisp.org>
3809
3810         unictype/category-byname: Recognize long names as well.
3811         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3812         a long name.
3813         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3814         unictype/categ_byname.h.
3815         (UC_CATEGORY_INDEX_*): New enumeration values.
3816         (uc_general_category_byname): Use uc_general_category_lookup and
3817         convert from index to value.
3818         * lib/unictype/categ_byname.gperf: New file.
3819         * modules/unictype/category-byname (Files): Add
3820         lib/unictype/categ_byname.gperf.
3821         (Depends-on): Add gperf.
3822         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3823         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3824         long names.
3825
3826         Tests for module 'unictype/category-longname'.
3827         * modules/unictype/category-longname-tests: New file.
3828         * tests/unictype/test-categ_longname.c: New file.
3829
3830         New module 'unictype/category-longname'.
3831         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3832         * lib/unictype/categ_longname.c: New file.
3833         * modules/unictype/category-longname: New file.
3834         * modules/unictype/category-all (Depends-on): Add it.
3835
3836 2011-03-25  Bruno Haible  <bruno@clisp.org>
3837
3838         Tests for module 'unictype/category-LC'.
3839         * modules/unictype/category-LC-tests: New file.
3840         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3841
3842         New module 'unictype/category-LC'.
3843         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3844         (UC_CATEGORY_LC): New declaration.
3845         (UC_CASED_LETTER): New macro.
3846         * lib/gen-uni-tables.c (is_category_LC): New function.
3847         (output_categories): Also handle category LC.
3848         (UC_CATEGORY_MASK_LC): New enumeration value.
3849         (general_category_byname): Also handle category LC.
3850         * lib/unictype/categ_LC.c: New file.
3851         * lib/unictype/categ_LC.h: New file, automatically generated.
3852         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3853         category LC.
3854         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3855         * modules/unictype/category-LC: New file.
3856         * modules/unictype/category-byname (Depends-on): Add
3857         unictype/category-LC.
3858         * modules/unictype/category-all (Depends-on): Likewise.
3859
3860 2011-03-25  Eric Blake  <eblake@redhat.com>
3861
3862         xmalloc: revert yesterday's regression
3863         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3864         realloc's underlying behavior (allowing allocation of zero-size
3865         objects, especially if malloc-gnu is also in use).
3866
3867 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3868
3869         maint.mk: add missing version to VC-tag
3870         * top/maint.mk: git tag was missing actual tag name; add it.
3871
3872         valgrind: do leak checking, and exit with code 1 on error (not 0)
3873         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3874         to VALGRIND.
3875
3876 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3877
3878         posix-modules: say what it does.
3879         * posix-modules: Add a line to the --help output saying what it does.
3880
3881 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3882
3883         xmalloc: Do not leak if underlying realloc is C99 compatible.
3884         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3885         This avoids a leak on C99-based systems.  See
3886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3887
3888 2011-03-24  Eric Blake  <eblake@redhat.com>
3889
3890         realloc: document portability problem
3891         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3892         passing 0 size to realloc.
3893
3894 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3895
3896         doc: update users.txt
3897         * users.txt: Add cvsps, tmpwatch
3898
3899 2011-03-23  Matt Rice  <ratmice@gmail.com>
3900
3901         doc: update users.txt
3902         * users.txt: Add gdb.
3903
3904 2011-03-23  Jim Meyering  <meyering@redhat.com>
3905
3906         doc: update users.txt
3907         Looking through matches up to the following URL (there are still
3908         several more pages), I found several projects that use gnulib:
3909         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3910         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3911         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3912
3913 2011-03-22  Bruno Haible  <bruno@clisp.org>
3914
3915         unictype/bidi*: Rename functions.
3916         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3917         uc_bidi_class, uc_is_bidi_class): New declarations.
3918         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3919         uc_bidi_category_byname.
3920         (uc_bidi_category_byname): New function.
3921         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3922         u_bidi_category_name.
3923         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3924         (uc_bidi_category_name): New function.
3925         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3926         uc_bidi_category.
3927         (uc_bidi_category): New function.
3928         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3929         uc_is_bidi_category. Invoke uc_bidi_class.
3930         (uc_is_bidi_category): New function.
3931         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3932         instead of uc_bidi_category_byname.
3933         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3934         instead of uc_bidi_category_name.
3935         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3936         uc_bidi_category.
3937         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3938         instead of uc_is_bidi_category.
3939
3940 2011-03-21  Bruno Haible  <bruno@clisp.org>
3941
3942         New module 'unictype/joininggroup-all'.
3943         * modules/unictype/joininggroup-all: New file.
3944
3945         Tests for module 'unictype/joininggroup-of'.
3946         * modules/unictype/joininggroup-of-tests: New file.
3947         * tests/unictype/test-joininggroup_of.c: New file.
3948         * tests/unictype/test-joininggroup_of.h: New file, automatically
3949         generated by gen-uni-tables.
3950
3951         New module 'unictype/joininggroup-of'.
3952         * modules/unictype/joininggroup-of: New file.
3953         * lib/unictype/joininggroup_of.c: New file.
3954         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3955         gen-uni-tables.
3956
3957         Tests for module 'unictype/joininggroup-byname'.
3958         * modules/unictype/joininggroup-byname-tests: New file.
3959         * tests/unictype/test-joininggroup_byname.c: New file.
3960
3961         New module 'unictype/joininggroup-byname'.
3962         * modules/unictype/joininggroup-byname: New file.
3963         * lib/unictype/joininggroup_byname.c: New file.
3964         * lib/unictype/joininggroup_byname.gperf: New file.
3965
3966         Tests for module 'unictype/joininggroup-name'.
3967         * modules/unictype/joininggroup-name-tests: New file.
3968         * tests/unictype/test-joininggroup_name.c: New file.
3969
3970         New module 'unictype/joininggroup-name'.
3971         * modules/unictype/joininggroup-name: New file.
3972         * lib/unictype/joininggroup_name.c: New file.
3973         * lib/unictype/joininggroup_name.h: New file.
3974
3975         New module 'unictype/joiningtype-all'.
3976         * modules/unictype/joiningtype-all: New file.
3977
3978         Tests for module 'unictype/joiningtype-of'.
3979         * modules/unictype/joiningtype-of-tests: New file.
3980         * tests/unictype/test-joiningtype_of.c: New file.
3981         * tests/unictype/test-joiningtype_of.h: New file, automatically
3982         generated by gen-uni-tables.
3983
3984         New module 'unictype/joiningtype-of'.
3985         * modules/unictype/joiningtype-of: New file.
3986         * lib/unictype/joiningtype_of.c: New file.
3987         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3988         gen-uni-tables.
3989
3990         Tests for module 'unictype/joiningtype-byname'.
3991         * modules/unictype/joiningtype-byname-tests: New file.
3992         * tests/unictype/test-joiningtype_byname.c: New file.
3993
3994         New module 'unictype/joiningtype-byname'.
3995         * modules/unictype/joiningtype-byname: New file.
3996         * lib/unictype/joiningtype_byname.c: New file.
3997
3998         Tests for module 'unictype/joiningtype-name'.
3999         * modules/unictype/joiningtype-name-tests: New file.
4000         * tests/unictype/test-joiningtype_name.c: New file.
4001
4002         New module 'unictype/joiningtype-name'.
4003         * modules/unictype/joiningtype-name: New file.
4004         * lib/unictype/joiningtype_name.c: New file.
4005
4006         unictype: Add support for Arabic shaping properties.
4007         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4008         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4009         declarations.
4010         (UC_JOINING_GROUP_*): New enumeration values.
4011         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4012         declarations.
4013         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4014         (unicode_joining_type): New variable.
4015         (UC_JOINING_GROUP_*): New enumeration values.
4016         (unicode_joining_group): New variable.
4017         (fill_arabicshaping, joining_type_as_c_identifier,
4018         output_joining_type_test, output_joining_type,
4019         joining_group_as_c_identifier, output_joining_group_test,
4020         output_joining_group): New functions.
4021         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4022         fill_arabicshaping and output_joining_type_test, output_joining_type,
4023         output_joining_group_test, output_joining_group.
4024         Reported by Simon Josefsson.
4025
4026 2011-03-21  Jim Meyering  <meyering@redhat.com>
4027
4028         strftime: fix a bug in yesterday's change
4029         * lib/strftime.c (add): Accommodate width's initial value of -1.
4030         Otherwise, nstrftime would copy uninitialized data into
4031         the result buffer.
4032
4033 2011-03-21  Jim Meyering  <meyering@redhat.com>
4034
4035         tests: add strftime-tests module
4036         * tests/test-strftime.c: New file.
4037         * modules/strftime-tests: New module.
4038
4039 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4040
4041         strftime: don't assume a byte count fits in 'int'
4042         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4043         found this problem by static analysis, using gcc -Wstrict-overflow
4044         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4045         on an integer overflow having undefined behavior, but it turns out
4046         that the argument is a size, which might not fit in 'int' anyway,
4047
4048 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4049
4050         stdio: don't require ignore_value around fwrite
4051
4052         This patch works around libc bug 11959
4053         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4054         Without this patch, applications must often write
4055         ignore_value (fwrite (...)) even though the ignore_value is
4056         not helpful here.  It's common to write many objects, using
4057         fwrite/printf/etc., and then use ferror to detect output error.
4058
4059         I considered making this patch optional, but decided against it,
4060         because libc is obviously being inconsistent here: there is no
4061         reason libc should insist that user code must inspect fwrite
4062         return's value without also insisting that it inspect printf's,
4063         putchar's, etc.  If user code wants to have a strict style where
4064         all these functions' values are checked (so that ferror need not
4065         be checked), we could add support for that style in a new gnulib
4066         module, but in the meantime it's better to be consistent and to
4067         support common usage.
4068
4069         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4070         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4071         that we are compiling in checking mode, and if not C++, and
4072         if not already wrapping fwrite for some other reason.
4073         (fwrite): #define to rpl_fwrite if the latter is defined.
4074
4075 2011-03-20  Bruno Haible  <bruno@clisp.org>
4076
4077         verror: Fix compilation error introduced on 2011-02-13.
4078         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4079         instead of __attribute__.
4080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4081
4082 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4083             Bruno Haible  <bruno@clisp.org>
4084
4085         socklen: do not depend on sys_socket
4086         While trying to modify Emacs to use gnulib's socklen module,
4087         I discovered a circular dependency: socklen depends on sys_socket
4088         and vice versa.  Emacs can use socklen, but it does not need
4089         sys_socket because it has its own substitute for sys/socket.h.
4090         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4091         gl_TYPE_SOCKLEN_T.
4092         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4093         gl_PREREQ_SYS_H_SOCKET.
4094         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4095         gl_PREREQ_SYS_H_SOCKET.
4096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4097         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4098         * modules/socklen (Depends-on): Do not depend on sys_socket.
4099         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4100
4101 2011-03-20  Jim Meyering  <meyering@redhat.com>
4102
4103         maint.mk: sort file names *after* new transformation
4104         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4105         prefix would have led to an unwarranted failure in GNU parted.
4106         Sort after that transformation.
4107
4108 2011-03-19  Jim Meyering  <meyering@redhat.com>
4109
4110         maint.mk: fix po-file syntax-check rule
4111         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4112         Patch by Bruno Haible.
4113
4114 2011-03-19  Bruno Haible  <bruno@clisp.org>
4115
4116         socklen: Update comment.
4117         * m4/socklen.m4: Update comment about platforms.
4118
4119 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4120             Bruno Haible  <bruno@clisp.org>
4121
4122         inet_ntop, inet_pton: Simplify.
4123         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4124         documented to provide socklen_t and we already depend on sys_socket.
4125         * modules/inet_pton (Depends-on): Likewise.
4126         * lib/arpa_inet.in.h: Adjust comment.
4127
4128 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4129             Bruno Haible  <bruno@clisp.org>
4130
4131         netdb: Simplify.
4132         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4133         documented to provide socklen_t and we already depend on sys_socket.
4134         * lib/netdb.in.h: Adjust comment.
4135
4136 2011-03-19  Bruno Haible  <bruno@clisp.org>
4137
4138         sys_socket, netdb: Document problem with socklen_t.
4139         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4140         platforms.
4141         * doc/posix-headers/netdb.texi: Likewise.
4142
4143 2011-03-18  Eric Blake  <eblake@redhat.com>
4144
4145         maint.mk: let po check work in VPATH build
4146         * top/maint.mk (po_file): Allow cfg.mk override.
4147         (sc_po_check): Allow VPATH use.
4148         Reported by Jiri Denemark.
4149
4150 2011-03-16  Jim Meyering  <meyering@redhat.com>
4151
4152         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4153         Before, you would have had to create one .x-sc_ file per rule in order
4154         to exempt offending files.  Now, you may instead use a Make variable --
4155         usually defined in cfg.mk -- whose name identifies the affected rule.
4156         * top/maint.mk (_sc_excl): Define.
4157         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4158         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4159
4160 2011-03-13  Bruno Haible  <bruno@clisp.org>
4161
4162         ignore-value tests: Avoid warnings.
4163         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4164         empty for gcc < 3.4.
4165
4166 2011-03-13  Bruno Haible  <bruno@clisp.org>
4167
4168         passfd: Fix link error on Solaris.
4169         * modules/passfd (Description): Correct.
4170         (Depends-on): Add socketlib.
4171         (Link): New section.
4172         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4173
4174 2011-03-13  Bruno Haible  <bruno@clisp.org>
4175
4176         passfd: Fix link error on AIX 5.2.
4177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4178
4179 2011-03-13  Bruno Haible  <bruno@clisp.org>
4180
4181         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4182         * lib/sys_socket.in.h: Include <stddef.h>.
4183         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4184         CMSG_FIRSTHDR. Remove unused variable.
4185
4186 2011-03-13  Bruno Haible  <bruno@clisp.org>
4187
4188         passfd: Fix compilation error on OpenBSD.
4189         * lib/passfd.c: Include <sys/uio.h>.
4190
4191 2011-03-13  Bruno Haible  <bruno@clisp.org>
4192
4193         passfd test: Fix warnings.
4194         * tests/test-passfd.c: Include <sys/wait.h>.
4195         (main): Fix typo.
4196
4197 2011-03-13  Bruno Haible  <bruno@clisp.org>
4198
4199         passfd module, part 4, tweaks.
4200         * tests/test-passfd.c: Reorder includes.
4201         (main): Fix perror and printf calls.
4202
4203 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4204
4205         passfd module, part 4.
4206         * modules/passfd-tests: New file.
4207         * tests/test-passfd.c: New file.
4208
4209 2011-03-13  Jim Meyering  <meyering@redhat.com>
4210
4211         Makefile: rely on GNU make; derive syntax-check rule names
4212         Rather than requiring that each sc_ rule be listed as a dependent
4213         of "check", use features of GNU make to derive the list.
4214         * Makefile (syntax-check-rules): Define.
4215         (check): Depend on the new variable, not the hard-coded list.
4216
4217 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4218             Bruno Haible  <bruno@clisp.org>
4219
4220         passfd module, part 3.
4221         * lib/passfd.h (recvfd): Add a flags argument.
4222         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4223         (recvfd): Add a flags argument.
4224         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4225         exists.
4226         * modules/passfd (Depends-on): Add cloexec.
4227         Suggested by Eric Blake.
4228
4229 2011-03-13  Bruno Haible  <bruno@clisp.org>
4230
4231         passfd module, part 2, tweaks.
4232         * modules/passfd (Files): Reorder.
4233         (Depends-on): Remove errno.
4234         (Include): Remove <sys/socket.h>, <sys/un.h>.
4235         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4236         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4237         specification header. Include <sys/socket.h> always. Don't include
4238         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4239         (sendfd): Clarify that it sets errno when it fails.
4240         (recvfd): Fix specification.
4241
4242 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4243
4244         passfd module, part 2.
4245         * modules/passfd: New file.
4246         * lib/passfd.h: New file.
4247         * lib/passfd.c: New file.
4248
4249 2011-03-12  Bruno Haible  <bruno@clisp.org>
4250
4251         wcswidth, mbswidth: Avoid integer overflow.
4252         * lib/wcswidth.c: Include <limits.h>.
4253         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4254         * lib/mbswidth.c: Include <limits.h>.
4255         (mbsnwidth): Avoid 'int' overflow.
4256         Reported by Jim Meyering.
4257
4258 2011-03-12  Bruno Haible  <bruno@clisp.org>
4259
4260         futimens, utimensat: Avoid endless recursion on Solaris 10.
4261         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4262         Solaris.
4263         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4264         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4265
4266 2011-03-11  Jim Meyering  <meyering@redhat.com>
4267
4268         maint.mk: relax a regexp to accommodate other formatting styles
4269         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4270         between "ngettext" and the following "(".
4271
4272 2011-03-11  Pádraig Brady <P@draigBrady.com>
4273
4274         maint.mk: suppress a false positive warning
4275         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4276         diagnostics are marked with ngettext.
4277
4278 2011-03-10  Eric Blake  <eblake@redhat.com>
4279
4280         wchar: add explicit dependencies, for Tru64
4281         * modules/mbmemcasecoll (Depends-on): Add wchar.
4282         * modules/mbtowc (Depends-on): Likewise.
4283         * modules/vasnprintf (Depends-on): Likewise.
4284         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4285         * modules/wctomb (Depends-on): Likewise.
4286         Reported by Peter O'Gorman.
4287
4288 2011-03-08  Bruno Haible  <bruno@clisp.org>
4289
4290         passfd module, part 1, tweaks.
4291         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4292         Improve indentation. Improve AC_MSG_CHECKING messages.
4293         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4294         gl_SOCKET_FAMILIES.
4295
4296 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4297
4298         passfd module, part 1.
4299         * m4/afunix.m4: New file.
4300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4301         sockets.
4302
4303 2011-03-08  Bruno Haible  <bruno@clisp.org>
4304
4305         regex-quote: New API.
4306         * lib/regex-quote.h: Include <stdbool.h>.
4307         (struct regex_quote_spec): New type.
4308         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4309         New declarations.
4310         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4311         'const struct regex_quote_spec *' argument.
4312         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4313         (pcre_special): New constant.
4314         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4315         New functions.
4316         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4317         'const struct regex_quote_spec *' argument.
4318         * modules/regex-quote (Depends-on): Add stdbool.
4319         * tests/test-regex-quote.c (check): Update for new API. Add test for
4320         anchored results.
4321         * NEWS: Mention the API change.
4322         Reported by Reuben Thomas and Eric Blake.
4323
4324 2011-03-06  Bruno Haible  <bruno@clisp.org>
4325
4326         regex-quote: Fix creation of POSIX extended regular expressions.
4327         * lib/regex-quote.c (ere_special): Add grouping and alternation
4328         operators.
4329
4330 2011-03-05  Bruno Haible  <bruno@clisp.org>
4331
4332         doc: Improve doc regarding autopoint vs. gnulib.
4333         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4334         disable autopoint while running autoreconf.
4335         Suggested by Ralf Wildenhues.
4336
4337 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4338
4339         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4340         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4341
4342 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4343
4344         parse-duration: remove xalloc.h dependency
4345         * lib/parse-duration.c (parse_period): handle NULL return from
4346         strdup instead of calling xstrdup().
4347         * modules/parse-duration: remove "xalloc" dependency
4348
4349 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4350
4351         bootstrap: honor m4_base when running aclocal
4352         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4353
4354 2011-03-02  Jim Meyering  <meyering@redhat.com>
4355
4356         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4357         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4358         on request from Matt Booth.
4359
4360 2011-03-01  Eric Blake  <eblake@redhat.com>
4361
4362         test-link: work on Hurd
4363         * tests/test-link.h (test_link): Hurd rejects linking directories
4364         with EISDIR instead of the POSIX-mandated EPERM.
4365
4366 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4367
4368         stdio: simplify by moving files to printf-posix, sigpipe
4369         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4370         since this symbol is needed only if printf is replaced.
4371         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4372         Require gl_ASM_SYMBOL_PREFIX.
4373         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4374         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4375         (Depends-on): Add 'raise'.
4376         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4377         * modules/stdio (Files): Remove lib/stdio-write.c,
4378         m4/asm-underscore.m4.
4379         (Depends-on): Remove 'raise'.
4380
4381         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4382         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4383         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4384         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4385
4386 2011-02-28  Bruno Haible  <bruno@clisp.org>
4387
4388         localcharset: Assume ANSI C behaviour of free().
4389         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4390         calling free().
4391         Suggested by Simon Josefsson <simon@josefsson.org>.
4392
4393 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4394             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4395             Bruno Haible  <bruno@clisp.org>  (tiny change)
4396
4397         On Cygwin, use /proc file system instead of win32 API.
4398         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4399         Win32 file names.
4400         (DllMain): Simplify by removing Cygwin specific code.
4401         (find_shared_library_fullname): Use Linux specific implementation also
4402         for Cygwin.
4403         (get_shared_library_fullname): Update accordingly.
4404         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4405         Win32 file names.
4406         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4407         Cygwin specific code.
4408
4409 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4410             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4411
4412         Fix OpenMP flag detection for various Fortran compilers.
4413         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4414         OpenMP-conditional compilation construct, to force compile
4415         failure with missing OpenMP flag.
4416         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4417
4418 2011-02-25  Eric Blake  <eblake@redhat.com>
4419
4420         strstr: expand test coverage
4421         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4422         compilation.
4423         * tests/test-memmem.c (main): Duplicate tests.
4424         * tests/test-strcasestr.c (main): Likewise.
4425         * tests/test-c-strcasestr.c (main): Likewise.
4426
4427 2011-02-25  Jim Meyering  <meyering@redhat.com>
4428
4429         maint.mk: detect missing-NL-at-EOF, too
4430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4431         it also detects when a file lacks a newline at EOF.
4432         (require_exactly_one_NL_at_EOF_): Renamed from
4433         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4434         since people may well have .x-sc_... file names tied to the
4435         existing name.  Suggested by Eric Blake.
4436
4437 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         dirname: move m4/dos.m4 functionality into lib/dosname.h
4440
4441         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4442         extracts symbols from it, puts them into config.h; but it's much
4443         easier to use the symbols directly.  filename.h already does this,
4444         but it disagrees with dos.m4 in some respects.  This patch
4445         introduces a different include file dosname.h that packages up
4446         dos.m4, and then later we can work on merging filename.h and
4447         dosname.h.  Applications that need only the easy-to-configure
4448         symbols should consider including dosname.h rather than dirname.h.
4449         * NEWS: Mention incompatible changes.
4450         * m4/dos.m4: Remove.
4451         * lib/dosname.h, modules/dosname: New files.
4452         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4453         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4454         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4455         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4456         Include dosname.h, not dirname.h.
4457         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4458         Include dosname.h, for definitions of symbols like ISSLASH
4459         that used to be in config.h.
4460         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4461         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4462         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4463         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4464         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4465         * modules/rmdir (Files): Likewise.
4466         * modules/stat (Files): Likewise.
4467         * modules/unlink (Files): Likewise.
4468         * modules/dirname-lgpl (Depends-on): Add dosname.
4469         * modules/lstat (Depends-on): Likewise.
4470         * modules/openat (Depends-on): Likewise.
4471         * modules/rmdir (Depends-on): Likewise.
4472         * modules/savewd (Depends-on): Likewise.
4473         * modules/stat (Depends-on): Likewise.
4474         * modules/unlink (Depends-on): Likewise.
4475         * modules/openat (Depends-on): Remove dirname-lgpl.
4476         * modules/savewd (Depends-on): Likewise.
4477         * tests/test-dirname.c: Do not use removed symbols like
4478         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4479         the remaining symbols, e.g., ISSLASH ('\\').
4480
4481 2011-02-25  Eric Blake  <eblake@redhat.com>
4482
4483         strstr: revert patches that introduced bug and pessimization
4484         * lib/str-two-way.h: Add another reference.
4485         (two_way_short_needle, two_way_long_needle): Revert changes from
4486         2011-02-24; they pessimize search speed.
4487         (critical_factorization): Partially revert changes from
4488         2010-06-22; they violate the requirement that the left half of the
4489         needle be smaller than the period of the needle.
4490
4491 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4492
4493         filenamecat: remove unnecessary dependency on dirname-lgpl
4494         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4495         is no direct dependency, just an indirect one via filenamecat-lgpl.
4496
4497         remove: remove unnecessary use of m4/dos.m4
4498         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4499         * modules/remove (FILES): Remove m4/dos.m4.
4500
4501         * lib/openat-proc.c: Don't include dirname.h; not needed.
4502
4503         backupfile: remove unnecessary use of m4/dos.m4
4504         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4505         of its symbols are used by the backupfile code.  backupfile.c does
4506         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4507         for the rare case of programs that want all their backup file
4508         names to live within 8+3 limits, and dos.m4 doesn't address that.
4509         * modules/backupfile (Files): Remove m4/dos.m4.
4510
4511 2011-02-24  Jim Meyering  <meyering@redhat.com>
4512
4513         strstr: fix a bug whereby strstr would mistakenly return NULL
4514         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4515         in period calculation.
4516         (two_way_long_needle): Likewise.
4517         The original problem was reported by Mike Stump in
4518         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4519         Ralf Wildenhues provided the short needle and haystack.
4520         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4521         Add a more involved test to trigger the bug in two_way_long_needle.
4522
4523 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4524
4525         gnulib-tool: remove use of bold display in help screen
4526         * gnulib-tool (func_usage): Do not use bold display anymore in the
4527         help screen.  That was just meant to be a temporary emphasis for a
4528         backward-incompatible change.
4529
4530 2011-02-23  Bruno Haible  <bruno@clisp.org>
4531
4532         Fix misindentation of preprocessor directives.
4533         * lib/argp-namefrob.h: Reindent preprocessor directives.
4534         * lib/getopt_int.h (struct _getopt_data): Likewise.
4535         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4536         * lib/vasnprintf.c (decode_long_double): Likewise.
4537         * tests/test-argmatch.c: Insert blank lines, for clarity.
4538         * tests/test-exclude.c: Likewise.
4539
4540 2011-02-22  Bruno Haible  <bruno@clisp.org>
4541
4542         ioctl: Fix for MacOS X in 64-bit mode.
4543         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4544         value.
4545         Suggested by Eric Blake.
4546         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4547
4548 2011-02-22  Jim Meyering  <meyering@redhat.com>
4549
4550         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4551         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4552         in lib/.
4553
4554 2011-02-22  Eric Blake  <eblake@redhat.com>
4555
4556         maint: avoid any CDPATH issue
4557         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4558
4559         maint: adjust cpp indentation for my modules, as well
4560         * Makefile (sc_cpp_indent_check): Add my name.
4561         * lib/fbufmode.c: Filter through cppi.
4562         * lib/fpurge.c: Likewise.
4563         * lib/freadable.c: Likewise.
4564         * lib/freading.c: Likewise.
4565         * lib/fwritable.c: Likewise.
4566         * lib/fwriting.c: Likewise.
4567         * lib/sigaction.c: Likewise.
4568
4569 2011-02-22  Jim Meyering  <meyering@redhat.com>
4570
4571         maint: adjust cpp indentation to reflect nesting depth
4572         I.e., in a block of code that begins with an unnested "#if",
4573         put one space between the "#" in column 1 and following token.
4574         For example,
4575         -#include <sys/vfs.h>
4576         +# include <sys/vfs.h>
4577         Do this only in .c files that are part of a module I maintain.
4578         * lib/linkat.c: Filter through cppi.
4579         * lib/nanosleep.c: Likewise.
4580         * lib/openat.c: Likewise.
4581         * lib/openat-die.c: Likewise.
4582         * lib/dup3.c: Likewise.
4583         * lib/fchownat.c: Likewise.
4584         * lib/flock.c: Likewise.
4585         * lib/fsync.c: Likewise.
4586         * lib/fts.c: Likewise.
4587         * lib/getpass.c: Likewise.
4588         * lib/gettimeofday.c: Likewise.
4589         * lib/userspec.c: Likewise.
4590         * Makefile (sc_cpp_indent_check): New rule, to check this.
4591
4592 2011-02-22  Bruno Haible  <bruno@clisp.org>
4593
4594         New module 'wctomb'.
4595         * lib/stdlib.in.h (wctomb): New declaration.
4596         * lib/wctomb.c: New file.
4597         * lib/wctomb-impl.h: New file.
4598         * m4/wctomb.m4: New file.
4599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4600         REPLACE_WCTOMB.
4601         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4602         REPLACE_WCTOMB.
4603         * modules/wctomb: New file.
4604         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4605         * doc/posix-functions/wctomb.texi: Mention the new module.
4606         * modules/wctob (Depends-on): Add wctomb.
4607
4608 2011-02-22  Bruno Haible  <bruno@clisp.org>
4609
4610         New module 'mbtowc'.
4611         * lib/stdlib.in.h (mbtowc): New declaration.
4612         * lib/mbtowc.c: New file.
4613         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4614         * m4/mbtowc.m4: New file.
4615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4616         REPLACE_MBTOWC.
4617         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4618         REPLACE_MBTOWC.
4619         * modules/mbtowc: New file.
4620         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4621         * doc/posix-functions/mbtowc.texi: Mention the new module.
4622         * modules/btowc (Depends-on): Add mbtowc.
4623
4624 2011-02-22  Bruno Haible  <bruno@clisp.org>
4625
4626         wcrtomb: Add more tests for native Windows platforms.
4627         * tests/test-wcrtomb-w32-1.sh: New file.
4628         * tests/test-wcrtomb-w32-2.sh: New file.
4629         * tests/test-wcrtomb-w32-3.sh: New file.
4630         * tests/test-wcrtomb-w32-4.sh: New file.
4631         * tests/test-wcrtomb-w32-5.sh: New file.
4632         * tests/test-wcrtomb-w32.c: New file.
4633         * modules/wcrtomb-tests (Files): Add them.
4634         (Makefile.am): Arrange to run these tests.
4635         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4636         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4637
4638 2011-02-20  Bruno Haible  <bruno@clisp.org>
4639
4640         wcrtomb: Enhance test.
4641         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4642
4643 2011-02-20  Bruno Haible  <bruno@clisp.org>
4644
4645         mbrtowc: Tiny optimization.
4646         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4647
4648 2011-02-20  Jim Meyering  <meyering@redhat.com>
4649
4650         test-exclude.c: remove unmatched #endif
4651         * tests/test-exclude.c: Remove stray #endif, left over from
4652         the change of a week ago.
4653
4654 2011-02-19  Jim Meyering  <meyering@redhat.com>
4655
4656         git-version-gen: skip "-dirty" check when appropriate
4657         * build-aux/git-version-gen: Don't run any git commands when the
4658         version string comes from .tarball-version.  Prior to this, we
4659         would run git update-index --refresh even from a just-unpacked
4660         tarball directory, and that could affect a .git/ directory in a
4661         parent of the build directory.  Reported by Mike Frysinger.
4662
4663 2011-02-19  Bruno Haible  <bruno@clisp.org>
4664
4665         unictype/property-byname: Reduce the size of the 'data' segment.
4666         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4667
4668 2011-02-19  Bruno Haible  <bruno@clisp.org>
4669
4670         unictype/scripts: Reduce the size of the 'data' segment.
4671         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4672         '%pic'.
4673         * lib/unictype/scripts_byname.gperf: Regenerated.
4674
4675 2011-02-19  Bruno Haible  <bruno@clisp.org>
4676
4677         stdint: Update documentation.
4678         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4679
4680 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4681
4682         stdint: omit redundant check for wchar.h
4683         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4684         always tests whether wchar.h exists, so remove the now-redundant test.
4685
4686 2011-02-18  Bruno Haible  <bruno@clisp.org>
4687
4688         stdint: Cut dependency to module 'wchar'.
4689         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4690         include the necessary prerequisites.
4691         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4692         * modules/stdint (Depends-on): Remove wchar.
4693         (Makefile.am): Substitute HAVE_WCHAR_H.
4694         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4695
4696 2011-02-18  Eric Blake  <eblake@redhat.com>
4697
4698         longlong: skip, rather than fail, on cross-compilation
4699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4700         when cross-compiling; regression from 2011-02-16.
4701
4702 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4703
4704         * NEWS: Mention 2011-02-08 change to stdlib.
4705
4706 2011-02-17  Bruno Haible  <bruno@clisp.org>
4707
4708         getloadavg: Add comments about platforms.
4709         * m4/getloadavg.m4: Add comment.
4710         * lib/getloadavg.c: Likewise.
4711
4712 2011-02-17  Bruno Haible  <bruno@clisp.org>
4713
4714         getloadavg: Fix link error on Solaris 2.6.
4715         * modules/getloadavg (Link): New section.
4716         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4717         linking test-getloadavg.
4718         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4719         getloadavg.
4720
4721 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4722
4723         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4724         It was 'int', but this doesn't match the IRIX 6.5 manual.
4725         Suggested by Bruno Haible in
4726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4727
4728 2011-02-17  Bruno Haible  <bruno@clisp.org>
4729
4730         havelib: Fix comments.
4731         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4732         change.
4733
4734 2011-02-17  Bruno Haible  <bruno@clisp.org>
4735
4736         havelib: Update config.rpath.
4737         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4738
4739 2011-02-17  Bruno Haible  <bruno@clisp.org>
4740
4741         getloadavg test: Add some plausibility checks.
4742         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4743         is improbable.
4744
4745 2011-02-16  Eric Blake  <eblake@redhat.com>
4746
4747         maintainer-makefile: make syntax-check a no-op from tarballs
4748         * top/maint.mk (no-vc-detected): New rule.
4749         (local-checks-available): Use it to avoid hanging if someone tries
4750         'make syntax-check' from a tarball.  Also append to any non-syntax
4751         checks already defined in cfg.mk.
4752
4753 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4754
4755         longlong: tune, particularly for common case of c99
4756
4757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4758         or running anything if c99, or if unsigned long long int does not
4759         work.  In either case, we know the answer without further tests.
4760         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4761         it at most once, and use its results for both long long int and
4762         unsigned long long int.  This is more likely to be efficient in
4763         the common case where the program wants to check for both long
4764         long int and unsigned long long int.
4765         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4766         since the answer is already known.
4767
4768 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         getloadavg: set errno
4771         * lib/getloadavg.c: Set errno when returning -1.  If no other
4772         error number looks appropriate, set it to ENOSYS if the getloadavg
4773         looks like it can't possibly ever work, ENOTSUP otherwise.
4774         Suggested by Bruno Haible in
4775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4776
4777         getloadavg: trim unused parts and speed up 'configure'
4778         * NEWS: Document this.
4779         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4780         always compiled if getloadavg is absent.
4781         Move test code to ...
4782         * tests/test-getloadavg.c: New file, containing previous
4783         contents of test from lib/getloadavg.c.  It also contains
4784         suggestions by Bruno Haible in
4785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4786         * modules/getloadavg-tests: New file.
4787         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4788         Do tests in the same order as they're needed for getloadavg.c.
4789         Omit setgid-related tests that generate symbols KMEM_GROUP,
4790         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4791         Do only the tests that are needed to see whether the system has
4792         getloadavg, moving the other tests into ...
4793         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4794         NLIST_NAME_UNION; nobody should be using it.  Do not define
4795         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4796         relevant, as the user of this module shouldn't care how getloadavg
4797         is implemented.
4798
4799         getloadavg: omit unused var
4800         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4801
4802 2011-02-15  Jim Meyering  <meyering@redhat.com>
4803
4804         doc: update users.txt
4805         * users.txt: Update iwhd's URL.
4806
4807 2011-02-13  Bruno Haible  <bruno@clisp.org>
4808
4809         Consistent macro naming for macros that use GCC __attribute__.
4810         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4811         _ATTRIBUTE_NONNULL_.
4812         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4813         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4814         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4815         ATTRIBUTE_DEPRECATED.
4816         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4817         ATTRIBUTE_NORETURN.
4818         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4819         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4820         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4821         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4822         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4823         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4824         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4825         ATTRIBUTE_SENTINEL.
4826         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4827         ATTRIBUTE_RETURN_CHECK.
4828         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4829         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4830         ATTRIBUTE_NORETURN.
4831         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4832         Reported by Paul Eggert.
4833
4834 2011-02-13  Bruno Haible  <bruno@clisp.org>
4835
4836         Don't interfere with a program's definition of __attribute__.
4837         * lib/argp.h (__attribute__): Remove definition.
4838         (_GL_ATTRIBUTE_FORMAT): New macro.
4839         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4840         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4841         (_GL_ATTRIBUTE_FORMAT): New macro.
4842         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4843         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4844         GCC 3 or newer.
4845         * lib/error.h (__attribute__): Remove definition.
4846         (_GL_ATTRIBUTE_FORMAT): New macro.
4847         (error, error_at_line): Use it.
4848         * lib/hash.h (__attribute__): Remove definition.
4849         (ATTRIBUTE_WUR): Update definition. Define always.
4850         * lib/openat.h (__attribute__): Remove definition.
4851         (ATTRIBUTE_NORETURN): Update definition. Define always.
4852         * lib/sigpipe-die.h (__attribute__): Remove definition.
4853         (ATTRIBUTE_NORETURN): Update definition. Define always.
4854         * lib/vasnprintf.h (__attribute__): Remove definition.
4855         (_GL_ATTRIBUTE_FORMAT): New macro.
4856         (asnprintf, vasnprintf): Use it.
4857         * lib/xalloc.h (__attribute__): Remove definition.
4858         (ATTRIBUTE_NORETURN): Update definition. Define always.
4859         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4860         * lib/xmemdup0.h (__attribute__): Remove definition.
4861         (ATTRIBUTE_NORETURN): Update definition. Define always.
4862         * lib/xprintf.h (__attribute__): Remove definition.
4863         (_GL_ATTRIBUTE_FORMAT): New macro.
4864         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4865         * lib/xstrtol.h (__attribute__): Remove definition.
4866         (ATTRIBUTE_NORETURN): Update definition. Define always.
4867         * lib/xvasprintf.h (__attribute__): Remove definition.
4868         (_GL_ATTRIBUTE_FORMAT): New macro.
4869         (xasprintf, xvasprintf): Use it.
4870         * tests/test-argmatch.c (__attribute__): Remove definition.
4871         (ATTRIBUTE_NORETURN): Update definition. Define always.
4872         * tests/test-exclude.c (__attribute__): Remove definition.
4873         (ATTRIBUTE_NORETURN): Update definition. Define always.
4874         Reported by Paul Eggert.
4875
4876 2011-02-13  Bruno Haible  <bruno@clisp.org>
4877
4878         mbrtowc: Add more tests for native Windows platforms.
4879         * tests/test-mbrtowc-w32-1.sh: New file.
4880         * tests/test-mbrtowc-w32-2.sh: New file.
4881         * tests/test-mbrtowc-w32-3.sh: New file.
4882         * tests/test-mbrtowc-w32-4.sh: New file.
4883         * tests/test-mbrtowc-w32-5.sh: New file.
4884         * tests/test-mbrtowc-w32.c: New file.
4885         * modules/mbrtowc-tests (Files): Add them.
4886         (Makefile.am): Arrange to run these tests.
4887         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4888         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4889
4890 2011-02-13  Bruno Haible  <bruno@clisp.org>
4891
4892         mbrtowc: Work around native Windows bug.
4893         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4894         guess when no suitable locale for testing was found.
4895         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4896
4897 2011-02-13  Bruno Haible  <bruno@clisp.org>
4898
4899         mbsinit: Work around mingw bug.
4900         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4901         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4902         Windows.
4903         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4904
4905 2011-02-13  Bruno Haible  <bruno@clisp.org>
4906
4907         mbsinit: Don't crash for a NULL argument.
4908         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4909         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4910
4911 2011-02-13  Bruno Haible  <bruno@clisp.org>
4912
4913         Don't interfere with a program's definition of __attribute__.
4914         * lib/stdio.in.h (__attribute__): Remove definition.
4915         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4916         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4917         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4918         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4919         * lib/string.in.h (__attribute__): Remove definition.
4920         Reported by Paul Eggert.
4921
4922 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4923
4924         stdlib: don't get in the way of non-GCC __attribute__
4925         See thread starting at
4926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4927         Revert previous stdlib change, installing the following instead:
4928         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4929         to get in the way of a non-GCC compiler that supports __attribute__.
4930         (_GL_ATTRIBUTE_RETURN): New macro.
4931         (_Exit): Use it instead of __attribute__.
4932
4933 2011-02-12  Bruno Haible  <bruno@clisp.org>
4934
4935         quotearg test: Avoid test failure on mingw.
4936         * tests/test-quotearg.sh: Convert the locale identifier from native
4937         Windows syntax to Unix syntax.
4938
4939 2011-02-12  Bruno Haible  <bruno@clisp.org>
4940
4941         setlocale: Prefer gnulib's override over libintl's override.
4942         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4943         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4944         GNULIB_defined_setlocale is set.
4945
4946 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4947
4948         stdlib: support non-GCC __attribute__
4949
4950         Fix a serious and tricky problem encountered when attempting to
4951         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4952         5.5, but it crashed due to memory corruption on Solaris 10 with
4953         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4954         bits that are otherwise zero.  This tagging is optional inside
4955         Emacs but is preferred and is used when __attribute__ ((__aligned
4956         (8))) works, as it does with both recent-enough GCC and with Sun C
4957         5.11.  However, Sun C 5.11 is not GCC and does not #define
4958         __GNUC__ and __GNUC_MINOR__.
4959
4960         When I added the getloadavg module to Emacs, it brought in
4961         stdlib.in.h, which contained this fragment:
4962
4963            #ifndef __attribute__
4964            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4965            #  define __attribute__(Spec)   /* empty */
4966            # endif
4967            #endif
4968
4969         When files that include <stdlib.h> were compiled with Sun C 5.11,
4970         the above code disabled __attribute__ ((__aligned (8))), which
4971         caused variables to not be properly aligned, which eventually led
4972         to the pointer corruption mentioned above.  (This was a bit hard
4973         to diagnose, unfortunately.)
4974
4975         Several "#define __attribute__(X) /* empty */" code snippets need
4976         to be eradicated from Gnulib to work with non-GCC compilers that
4977         support __attribute__.  The Autoconf way to do this is to test for
4978         each kind of attribute that we want support for, and selectively
4979         enable that in source code.
4980
4981         Fix this problem just for stdlib.h, by adding a test for the
4982         __noreturn__ attribute, and change stdlib.in.h to use that test
4983         when needed.  This technique can be easily generalized to the
4984         other *.in.h files and attributes, and a similar technique can be
4985         used for *.h and *.c files.  This patch is enough to solve the
4986         problem for Emacs + getloadavg, and I thought I'd publish it for
4987         feedback before undertaking further, similar fixes in other
4988         modules.
4989
4990         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4991         because it's not needed for stdlib.h.  It merely substitutes the
4992         value directly into stdlib.h.  We may well need to #define it, or
4993         similar symbols, for other modules, but it's nice to also have an
4994         option to not #define it for applications like Emacs that do not
4995         need it.
4996
4997         * lib/stdlib.in.h (__attribute__): Do not #define.
4998         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4999         be defined only if the _Exit module is also used.
5000         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5002         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5003         platforms.
5004         * modules/_Exit (Files): Add m4/attribute.m4.
5005         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5006         * m4/attribute.m4: New file.
5007
5008 2011-02-12  Bruno Haible  <bruno@clisp.org>
5009
5010         wcsrtombs: Work around bug on native Windows.
5011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5012         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5013         instead of len.
5014         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5015
5016 2011-02-12  Bruno Haible  <bruno@clisp.org>
5017
5018         mbsrtowcs: Work around bug on native Windows.
5019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5020         against mingw bug.
5021         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5022
5023 2011-02-12  Bruno Haible  <bruno@clisp.org>
5024
5025         Avoid setlocale bugs in tests.
5026         * modules/btowc (Dependencies): Add setlocale.
5027         * modules/c-strcase (Dependencies): Likewise.
5028         * modules/mbmemcasecmp (Dependencies): Likewise.
5029         * modules/mbmemcasecoll (Dependencies): Likewise.
5030         * modules/mbrtowc (Dependencies): Likewise.
5031         * modules/mbscasecmp (Dependencies): Likewise.
5032         * modules/mbscasestr (Dependencies): Likewise.
5033         * modules/mbschr (Dependencies): Likewise.
5034         * modules/mbscspn (Dependencies): Likewise.
5035         * modules/mbsinit (Dependencies): Likewise.
5036         * modules/mbsncasecmp (Dependencies): Likewise.
5037         * modules/mbsnrtowcs (Dependencies): Likewise.
5038         * modules/mbspbrk (Dependencies): Likewise.
5039         * modules/mbspcasecmp (Dependencies): Likewise.
5040         * modules/mbsrchr (Dependencies): Likewise.
5041         * modules/mbsrtowcs (Dependencies): Likewise.
5042         * modules/mbsspn (Dependencies): Likewise.
5043         * modules/mbsstr (Dependencies): Likewise.
5044         * modules/nl_langinfo (Dependencies): Likewise.
5045         * modules/quotearg (Dependencies): Likewise.
5046         * modules/unicase/locale-language (Dependencies): Likewise.
5047         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5048         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5049         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5050         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5051         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5052         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5053         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5054         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5055         * modules/vasnprintf-posix (Dependencies): Likewise.
5056         * modules/wcrtomb (Dependencies): Likewise.
5057         * modules/wcsnrtombs (Dependencies): Likewise.
5058         * modules/wcsrtombs (Dependencies): Likewise.
5059
5060 2011-02-12  Bruno Haible  <bruno@clisp.org>
5061
5062         setlocale: Workaround native Windows bug.
5063         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5064         succeeds but sets LC_CTYPE to "C", report a failure.
5065         * tests/test-setlocale2.sh: New file.
5066         * tests/test-setlocale2.c: New file.
5067         * modules/setlocale-tests (Files): Add the new files.
5068         (Makefile.am): Enable test-setlocale2.sh test.
5069         * doc/posix-functions/setlocale.texi: Mention workaround.
5070
5071 2011-02-11  Bruno Haible  <bruno@clisp.org>
5072
5073         Tests for module 'setlocale'.
5074         * modules/setlocale-tests: New file.
5075         * tests/test-setlocale1.sh: New file.
5076         * tests/test-setlocale1.c: New file.
5077
5078         New module 'setlocale'.
5079         * lib/locale.in.h (setlocale): New declaration.
5080         * lib/setlocale.c: New file, based on
5081         gettext/gettext-runtime/intl/setlocale.c.
5082         * m4/setlocale.m4: New file.
5083         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5084         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5085         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5086         REPLACE_SETLOCALE.
5087         * modules/setlocale: New file.
5088         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5089         * doc/posix-functions/setlocale.texi: Mention the new module.
5090
5091 2011-02-11  Bruno Haible  <bruno@clisp.org>
5092
5093         Prepare for locale dependent tests on mingw.
5094         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5095         because it has the wrong locale encoding.
5096         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5097         French_France.1252 instead of "fr".
5098         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5099         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5100         because it has the wrong locale encoding.
5101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5102         native Windows, try Turkish_Turkey.65001.
5103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5104         Chinese_China.54936.
5105
5106         Prepare for locale dependent tests on mingw.
5107         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5108         differently.
5109         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5110         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5113
5114 2011-02-11  Eric Blake  <eblake@redhat.com>
5115
5116         strptime: avoid compiler warnings
5117         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5118         compiler warnings about dead code.
5119         Reported by Daniel P. Berrange.
5120
5121 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5122
5123         doc: update users.txt
5124         * users.txt: Add rcs.
5125
5126 2011-02-10  John W. Eaton  <jwe@gnu.org>
5127
5128         doc: update users.txt
5129         * users.txt: Add octave.
5130
5131 2011-02-10  Jim Meyering  <meyering@redhat.com>
5132
5133         doc: update users.txt
5134         * users.txt: Add iwhd.
5135
5136 2011-02-09  Bruno Haible  <bruno@clisp.org>
5137
5138         gnulib-tool: Make copyright notice adjustment more robust.
5139         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5140         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5141         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5142         License".
5143         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5144
5145 2011-02-06  Bruno Haible  <bruno@clisp.org>
5146
5147         New module 'towctrans'.
5148         * modules/towctrans: New file.
5149         * lib/wctype.in.h (towctrans): New declaration.
5150         * lib/towctrans.c: New file.
5151         * lib/towctrans-impl.h: New file.
5152         * m4/towctrans.m4: New file.
5153         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5154         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5155         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5156         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5157         * doc/posix-functions/towctrans.texi: Mention the new module.
5158
5159 2011-02-06  Bruno Haible  <bruno@clisp.org>
5160
5161         New module 'wctrans'.
5162         * modules/wctrans: New file.
5163         * lib/wctype.in.h (wctrans): New declaration.
5164         * lib/wctrans.c: New file.
5165         * lib/wctrans-impl.h: New file.
5166         * m4/wctrans.m4: New file.
5167         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5168         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5169         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5170         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5171         * doc/posix-functions/wctrans.texi: Mention the new module.
5172
5173 2011-02-06  Bruno Haible  <bruno@clisp.org>
5174
5175         New module 'iswctype'.
5176         * modules/iswctype: New file.
5177         * lib/wctype.in.h (iswctype): New declaration.
5178         * lib/iswctype.c: New file.
5179         * lib/iswctype-impl.h: New file.
5180         * m4/iswctype.m4: New file.
5181         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5182         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5183         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5184         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5185         * doc/posix-functions/iswctype.texi: Mention the new module and the
5186         HP-UX 11.00 problem.
5187
5188 2011-02-06  Bruno Haible  <bruno@clisp.org>
5189
5190         New module 'wctype'.
5191         * modules/wctype: Change to represent the wctype() substitute.
5192         * lib/wctype.in.h (wctype): New declaration.
5193         * lib/wctype.c: New file.
5194         * lib/wctype-impl.h: New file.
5195         * m4/wctype.m4: New file.
5196         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5197         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5198         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5199         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5200         * doc/posix-functions/wctype.texi: Mention the new module and the
5201         HP-UX 11.00 problem.
5202
5203 2011-02-06  Bruno Haible  <bruno@clisp.org>
5204
5205         wctype-h: Ensure wctype_t and wctrans_t are defined.
5206         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5207         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5208         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5209         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5210         HAVE_WCTRANS_T.
5211         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5212
5213 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5214
5215         flock: fix license typo
5216
5217         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5218         omitted.
5219
5220 2011-02-08  Bruno Haible  <bruno@clisp.org>
5221
5222         Split large sed scripts, for HP-UX sed.
5223         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5224         to avoid HP-UX limit of 99 commands, in the near future.
5225         * modules/stdlib (Makefile.am): Likewise.
5226         * modules/unistd (Makefile.am): Likewise.
5227         * modules/wchar (Makefile.am): Likewise.
5228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5229         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5231
5232 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5233             Bruno Haible  <bruno@clisp.org>
5234
5235         stdlib: improve random_r modularization
5236         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5237         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5238         you also need the random_r module to get this material right.
5239         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5240         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5241         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5242
5243 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5244
5245         stdlib: don't depend on stdint
5246         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5247         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5248         be independent of whether stdint.h is needed.
5249         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5250         here, instead of ...
5251         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5252         struct random_data should be using the random_r module, not just
5253         the stdlib module (which wouldn't make sense: what package needs
5254         just struct random_data without also needing random_r?).
5255         * modules/stdlib (Depends-on): Remove stdint.
5256
5257         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5258         See the thread rooted at
5259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5260         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5261         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5262         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5263         __VMS)); previously it was always included (via fcntl--.h).
5264         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5265         hand; this is good enough for load averages.  Also, do not use
5266         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5267         flags directly if available and don't bother otherwise.  (Packages
5268         that need the extra reliability should use the modules that define
5269         these flags on older platforms that lack them.)
5270         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5271         fcntl-safer.
5272
5273 2011-02-08  Jim Meyering  <meyering@redhat.com>
5274
5275         di-set.h, ino-map.h: add multiple-inclusion guard
5276         Technically, the guard is required only for ino-map.h, due to its
5277         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5278         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5279         * lib/ino-map.h: Likewise.
5280
5281 2011-02-06  Bruno Haible  <bruno@clisp.org>
5282
5283         iswblank: Ensure declaration on glibc systems.
5284         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5285         * modules/iswblank (Dependencies): Add 'extensions'.
5286         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5287
5288 2011-02-06  Bruno Haible  <bruno@clisp.org>
5289
5290         New module 'iswblank'.
5291         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5292         * modules/iswblank: New file.
5293         * modules/wctype-h (Files): Remove lib/iswblank.c.
5294         (Makefile.am): Substitute GNULIB_ISWBLANK.
5295         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5296         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5297         (gl_WCTYPE_H_DEFAULTS): New macro.
5298         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5299         * modules/iswblank-tests: New file.
5300         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5301         * tests/test-wctype-h.c (main): Remove iswblank tests.
5302         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5303         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5304         of 'wctype-h'.
5305         * NEWS: Mention the change.
5306         * modules/mbchar (Depends-on): Add iswblank.
5307
5308 2011-02-08  Bruno Haible  <bruno@clisp.org>
5309
5310         di-set tests: Refactor.
5311         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5312         unnecessary includes.
5313         (ASSERT): Remove macro.
5314         (main): Make C90 compliant by avoiding variable declaration after
5315         statement.
5316         * modules/di-set-tests (Files): Add tests/macros.h.
5317
5318 2011-02-08  Bruno Haible  <bruno@clisp.org>
5319
5320         ino-map tests: Refactor.
5321         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5322         unnecessary includes.
5323         (ASSERT): Remove macro.
5324         (main): Make C90 compliant by avoiding variable declaration after
5325         statement.
5326         * modules/ino-map-tests (Files): Add tests/macros.h.
5327
5328 2011-02-08  Jim Meyering  <meyering@redhat.com>
5329
5330         di-set: add "const" to a cast
5331         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5332         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5333
5334 2011-02-06  Bruno Haible  <bruno@clisp.org>
5335
5336         Rename module 'wctype' to 'wctype-h'.
5337         * modules/wctype-h: Renamed from modules/wctype.
5338         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5339         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5340         (Files, Depends-on, Makefile.am): Update.
5341         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5342         (Files, Makefile.am): Update.
5343         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5344         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5345         * doc/posix-headers/wctype.texi: Update.
5346         * doc/posix-functions/iswalnum.texi: Update.
5347         * doc/posix-functions/iswalpha.texi: Update.
5348         * doc/posix-functions/iswblank.texi: Update.
5349         * doc/posix-functions/iswcntrl.texi: Update.
5350         * doc/posix-functions/iswdigit.texi: Update.
5351         * doc/posix-functions/iswgraph.texi: Update.
5352         * doc/posix-functions/iswlower.texi: Update.
5353         * doc/posix-functions/iswprint.texi: Update.
5354         * doc/posix-functions/iswpunct.texi: Update.
5355         * doc/posix-functions/iswspace.texi: Update.
5356         * doc/posix-functions/iswupper.texi: Update.
5357         * doc/posix-functions/iswxdigit.texi: Update.
5358         * doc/posix-functions/towlower.texi: Update.
5359         * doc/posix-functions/towupper.texi: Update.
5360         * NEWS: Mention the change.
5361         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5362         * modules/mbchar (Dependencies): Likewise.
5363         * modules/mbswidth (Dependencies): Likewise.
5364         * modules/quotearg (Dependencies): Likewise.
5365         * modules/regex (Dependencies): Likewise.
5366         * modules/wcscasecmp (Dependencies): Likewise.
5367         * modules/wcsncasecmp (Dependencies): Likewise.
5368         * modules/wcwidth (Dependencies): Likewise.
5369
5370 2011-02-06  Bruno Haible  <bruno@clisp.org>
5371
5372         New module 'wcswidth'.
5373         * modules/wcswidth: New file.
5374         * lib/wchar.in.h (wcswidth): New declaration.
5375         * lib/wcswidth.c: New file.
5376         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5377         * m4/wcswidth.m4: New file.
5378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5380         REPLACE_WCSWIDTH.
5381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5382         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5383         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5384         * doc/posix-functions/wcswidth.texi: Mention the new module.
5385
5386 2011-02-06  Bruno Haible  <bruno@clisp.org>
5387
5388         New module 'wcstok'.
5389         * modules/wcstok: New file.
5390         * lib/wchar.in.h (wcstok): New declaration.
5391         * lib/wcstok.c: New file.
5392         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5393         * m4/wcstok.m4: New file.
5394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5397         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5398         * doc/posix-functions/wcstok.texi: Mention the new module.
5399
5400 2011-02-06  Bruno Haible  <bruno@clisp.org>
5401
5402         New module 'wcsstr'.
5403         * modules/wcsstr: New file.
5404         * lib/wchar.in.h (wcsstr): New declaration.
5405         * lib/wcsstr.c: New file.
5406         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5407         * m4/wcsstr.m4: New file.
5408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5411         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5412         * doc/posix-functions/wcsstr.texi: Mention the new module.
5413
5414 2011-02-06  Bruno Haible  <bruno@clisp.org>
5415
5416         New module 'wcspbrk'.
5417         * modules/wcspbrk: New file.
5418         * lib/wchar.in.h (wcspbrk): New declaration.
5419         * lib/wcspbrk.c: New file.
5420         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5421         * m4/wcspbrk.m4: New file.
5422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5425         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5426         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5427
5428 2011-02-06  Bruno Haible  <bruno@clisp.org>
5429
5430         New module 'wcsspn'.
5431         * modules/wcsspn: New file.
5432         * lib/wchar.in.h (wcsspn): New declaration.
5433         * lib/wcsspn.c: New file.
5434         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5435         * m4/wcsspn.m4: New file.
5436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5439         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5440         * doc/posix-functions/wcsspn.texi: Mention the new module.
5441
5442 2011-02-06  Bruno Haible  <bruno@clisp.org>
5443
5444         New module 'wcscspn'.
5445         * modules/wcscspn: New file.
5446         * lib/wchar.in.h (wcscspn): New declaration.
5447         * lib/wcscspn.c: New file.
5448         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5449         * m4/wcscspn.m4: New file.
5450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5453         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5454         * doc/posix-functions/wcscspn.texi: Mention the new module.
5455
5456 2011-02-06  Bruno Haible  <bruno@clisp.org>
5457
5458         New module 'wcsrchr'.
5459         * modules/wcsrchr: New file.
5460         * lib/wchar.in.h (wcsrchr): New declaration.
5461         * lib/wcsrchr.c: New file.
5462         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5463         * m4/wcsrchr.m4: New file.
5464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5467         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5468         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5469
5470 2011-02-06  Bruno Haible  <bruno@clisp.org>
5471
5472         New module 'wcschr'.
5473         * modules/wcschr: New file.
5474         * lib/wchar.in.h (wcschr): New declaration.
5475         * lib/wcschr.c: New file.
5476         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5477         * m4/wcschr.m4: New file.
5478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5481         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5482         * doc/posix-functions/wcschr.texi: Mention the new module.
5483
5484 2011-02-06  Bruno Haible  <bruno@clisp.org>
5485
5486         New module 'wcsdup'.
5487         * modules/wcsdup: New file.
5488         * lib/wchar.in.h (wcsdup): New declaration.
5489         * lib/wcsdup.c: New file.
5490         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5491         * m4/wcsdup.m4: New file.
5492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5495         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5496         * doc/posix-functions/wcsdup.texi: Mention the new module.
5497
5498 2011-02-06  Bruno Haible  <bruno@clisp.org>
5499
5500         New module 'wcsxfrm'.
5501         * modules/wcsxfrm: New file.
5502         * lib/wchar.in.h (wcsxfrm): New declaration.
5503         * lib/wcsxfrm.c: New file.
5504         * lib/wcsxfrm-impl.h: New file.
5505         * m4/wcsxfrm.m4: New file.
5506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5509         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5510         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5511
5512 2011-02-06  Bruno Haible  <bruno@clisp.org>
5513
5514         New module 'wcscoll'.
5515         * modules/wcscoll: New file.
5516         * lib/wchar.in.h (wcscoll): New declaration.
5517         * lib/wcscoll.c: New file.
5518         * lib/wcscoll-impl.h: New file.
5519         * m4/wcscoll.m4: New file.
5520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5523         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5524         * doc/posix-functions/wcscoll.texi: Mention the new module.
5525
5526 2011-02-06  Bruno Haible  <bruno@clisp.org>
5527
5528         New module 'wcsncasecmp'.
5529         * modules/wcsncasecmp: New file.
5530         * lib/wchar.in.h (wcsncasecmp): New declaration.
5531         * lib/wcsncasecmp.c: New file.
5532         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5533         * m4/wcsncasecmp.m4: New file.
5534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5537         HAVE_WCSNCASECMP.
5538         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5539         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5540
5541 2011-02-06  Bruno Haible  <bruno@clisp.org>
5542
5543         New module 'wcscasecmp'.
5544         * modules/wcscasecmp: New file.
5545         * lib/wchar.in.h (wcscasecmp): New declaration.
5546         * lib/wcscasecmp.c: New file.
5547         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5548         * m4/wcscasecmp.m4: New file.
5549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5552         HAVE_WCSCASECMP.
5553         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5554         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5555
5556 2011-02-05  Bruno Haible  <bruno@clisp.org>
5557
5558         New module 'wcsncmp'.
5559         * modules/wcsncmp: New file.
5560         * lib/wchar.in.h (wcsncmp): New declaration.
5561         * lib/wcsncmp.c: New file.
5562         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5563         * m4/wcsncmp.m4: New file.
5564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5567         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5568         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5569
5570 2011-02-05  Bruno Haible  <bruno@clisp.org>
5571
5572         New module 'wcscmp'.
5573         * modules/wcscmp: New file.
5574         * lib/wchar.in.h (wcscmp): New declaration.
5575         * lib/wcscmp.c: New file.
5576         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5577         * m4/wcscmp.m4: New file.
5578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5581         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5582         * doc/posix-functions/wcscmp.texi: Mention the new module.
5583
5584 2011-02-05  Bruno Haible  <bruno@clisp.org>
5585
5586         New module 'wcsncat'.
5587         * modules/wcsncat: New file.
5588         * lib/wchar.in.h (wcsncat): New declaration.
5589         * lib/wcsncat.c: New file.
5590         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5591         * m4/wcsncat.m4: New file.
5592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5595         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5596         * doc/posix-functions/wcsncat.texi: Mention the new module.
5597
5598 2011-02-05  Bruno Haible  <bruno@clisp.org>
5599
5600         New module 'wcscat'.
5601         * modules/wcscat: New file.
5602         * lib/wchar.in.h (wcscat): New declaration.
5603         * lib/wcscat.c: New file.
5604         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5605         * m4/wcscat.m4: New file.
5606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5609         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5610         * doc/posix-functions/wcscat.texi: Mention the new module.
5611
5612 2011-02-05  Bruno Haible  <bruno@clisp.org>
5613
5614         New module 'wcpncpy'.
5615         * modules/wcpncpy: New file.
5616         * lib/wchar.in.h (wcpncpy): New declaration.
5617         * lib/wcpncpy.c: New file.
5618         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5619         * m4/wcpncpy.m4: New file.
5620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5622         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5623         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5624         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5625
5626 2011-02-05  Bruno Haible  <bruno@clisp.org>
5627
5628         New module 'wcsncpy'.
5629         * modules/wcsncpy: New file.
5630         * lib/wchar.in.h (wcsncpy): New declaration.
5631         * lib/wcsncpy.c: New file.
5632         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5633         * m4/wcsncpy.m4: New file.
5634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5637         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5638         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5639
5640 2011-02-05  Bruno Haible  <bruno@clisp.org>
5641
5642         New module 'wcpcpy'.
5643         * modules/wcpcpy: New file.
5644         * lib/wchar.in.h (wcpcpy): New declaration.
5645         * lib/wcpcpy.c: New file.
5646         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5647         * m4/wcpcpy.m4: New file.
5648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5650         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5651         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5652         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5653
5654 2011-02-05  Bruno Haible  <bruno@clisp.org>
5655
5656         New module 'wcscpy'.
5657         * modules/wcscpy: New file.
5658         * lib/wchar.in.h (wcscpy): New declaration.
5659         * lib/wcscpy.c: New file.
5660         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5661         * m4/wcscpy.m4: New file.
5662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5665         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5666         * doc/posix-functions/wcscpy.texi: Mention the new module.
5667
5668 2011-02-05  Bruno Haible  <bruno@clisp.org>
5669
5670         New module 'wcsnlen'.
5671         * modules/wcsnlen: New file.
5672         * lib/wchar.in.h (wcsnlen): New declaration.
5673         * lib/wcsnlen.c: New file.
5674         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5675         * m4/wcsnlen.m4: New file.
5676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5679         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5680         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5681
5682 2011-02-05  Bruno Haible  <bruno@clisp.org>
5683
5684         New module 'wcslen'.
5685         * modules/wcslen: New file.
5686         * lib/wchar.in.h (wcslen): New declaration.
5687         * lib/wcslen.c: New file.
5688         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5689         * m4/wcslen.m4: New file.
5690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5693         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5694         * doc/posix-functions/wcslen.texi: Mention the new module.
5695
5696 2011-02-05  Bruno Haible  <bruno@clisp.org>
5697
5698         New module 'wmemset'.
5699         * modules/wmemset: New file.
5700         * lib/wchar.in.h (wmemset): New declaration.
5701         * lib/wmemset.c: New file.
5702         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5703         * m4/wmemset.m4: New file.
5704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5706         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5707         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5708         * doc/posix-functions/wmemset.texi: Mention the new module.
5709
5710 2011-02-05  Bruno Haible  <bruno@clisp.org>
5711
5712         New module 'wmemmove'.
5713         * modules/wmemmove: New file.
5714         * lib/wchar.in.h (wmemmove): New declaration.
5715         * lib/wmemmove.c: New file.
5716         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5717         * m4/wmemmove.m4: New file.
5718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5720         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5721         HAVE_WMEMMOVE.
5722         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5723         * doc/posix-functions/wmemmove.texi: Mention the new module.
5724
5725 2011-02-05  Bruno Haible  <bruno@clisp.org>
5726
5727         New module 'wmemcpy'.
5728         * modules/wmemcpy: New file.
5729         * lib/wchar.in.h (wmemcpy): New declaration.
5730         * lib/wmemcpy.c: New file.
5731         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5732         * m4/wmemcpy.m4: New file.
5733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5735         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5736         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5737         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5738
5739 2011-02-05  Bruno Haible  <bruno@clisp.org>
5740
5741         New module 'wmemcmp'.
5742         * modules/wmemcmp: New file.
5743         * lib/wchar.in.h (wmemcmp): New declaration.
5744         * lib/wmemcmp.c: New file.
5745         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5746         * m4/wmemcmp.m4: New file.
5747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5749         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5750         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5751         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5752
5753 2011-02-07  Jim Meyering  <meyering@redhat.com>
5754
5755         di-set, ino-map: new modules, from coreutils
5756         * lib/di-set.c: New file.
5757         * lib/di-set.h: Likewise.
5758         * lib/ino-map.c: Likewise.
5759         * lib/ino-map.h: Likewise.
5760         * modules/di-set: Likewise.
5761         * modules/di-set-tests: Likewise.
5762         * modules/ino-map: Likewise.
5763         * modules/ino-map-tests: Likewise.
5764         * tests/test-di-set.c: Likewise.
5765         * tests/test-ino-map.c: Likewise.
5766
5767 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5768
5769         getloadavg: merge minor changes from Emacs
5770
5771         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5772         (getloadavg): Use memset, not bzero.
5773
5774         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5775         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5776         clash (bug#86).
5777
5778 2010-11-14  Bruno Haible  <bruno@clisp.org>
5779
5780         Allow multiple gnulib generated replacements to coexist.
5781         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5782         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5783         * lib/langinfo.in.h (nl_item): Likewise.
5784         * lib/math.in.h (_NaN, NAN): Likewise.
5785         * lib/netdb.in.h (struct addrinfo): Likewise.
5786         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5787         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5788         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5789         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5790         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5791         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5792         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5793         pthread_mutexattr_init, pthread_mutexattr_settype,
5794         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5795         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5796         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5797         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5798         * lib/sched.in.h (struct sched_param): Likewise.
5799         * lib/se-selinux.in.h (security_class_t, security_context_t,
5800         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5801         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5802         lsetfilecon, fsetfilecon, security_check_context,
5803         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5804         Likewise.
5805         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5806         Likewise.
5807         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5808         _gl_function_taking_int_returning_void_t, union sigval,
5809         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5810         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5811         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5812         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5813         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5814         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5815         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5816         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5817         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5818         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5819         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5820         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5821         socklen_t, rpl_fd_isset): Likewise.
5822         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5823         * lib/sys_time.in.h (struct timeval): Likewise.
5824         * lib/sys_times.in.h (struct tms): Likewise.
5825         * lib/sys_utsname.in.h (struct utsname):
5826         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5827         * lib/unistd.in.h (getpagesize): Likewise.
5828         * lib/wchar.in.h (mbstate_t): Likewise.
5829         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5830         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5831         towlower, towupper): Likewise.
5832         Reported by Sam Steingold <sds@gnu.org>.
5833
5834 2011-02-05  Eric Blake  <eblake@redhat.com>
5835
5836         unsetenv: work around Haiku issues
5837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5838         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5839
5840 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5841
5842         libposix: avoid calling error() within libposix
5843         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5844         is defined.
5845
5846 2011-02-05  Eric Blake  <eblake@redhat.com>
5847
5848         strerror_r-posix: port to cygwin
5849         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5850         implementation.
5851         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5852         * tests/test-strerror_r.c (main): Fix test.
5853         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5854         issue.
5855
5856 2011-02-05  Bruno Haible  <bruno@clisp.org>
5857
5858         New module 'wmemchr'.
5859         * modules/wmemchr: New file.
5860         * lib/wchar.in.h (wmemchr): New declaration.
5861         * lib/wmemchr.c: New file.
5862         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5863         * m4/wmemchr.m4: New file.
5864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5866         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5867         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5868         * doc/posix-functions/wmemchr.texi: Mention the new module.
5869
5870 2011-02-04  Eric Blake  <eblake@redhat.com>
5871
5872         fdopendir: detect FreeBSD bug
5873         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5874         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5875
5876 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5877
5878         stdbool: do not define HAVE_STDBOOL_H
5879         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5880         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5881         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5882         imported from the latest Autoconf git.  It was motivated by Emacs,
5883         which uses gnulib but does not need HAVE_STDBOOL_H.
5884
5885 2011-02-04  Bruno Haible  <bruno@clisp.org>
5886
5887         wcsnrtombs: Prepare for new module wwcsnrtombs.
5888         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5889         * lib/wcsnrtombs.c: Include it.
5890         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5891
5892         wcsrtombs: Prepare for new module wwcsrtombs.
5893         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5894         * lib/wcsrtombs.c: Include it.
5895         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5896
5897         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5898         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5899         * lib/mbsnrtowcs.c: Include it.
5900         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5901
5902         mbsrtowcs: Prepare for new module mbsrtowwcs.
5903         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5904         * lib/mbsrtowcs.c: Include it.
5905         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5906
5907 2011-02-04  Bruno Haible  <bruno@clisp.org>
5908
5909         vasnprintf: Reduce use of malloc for small format strings.
5910         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5911         (arguments): Add room for the first 7 arguments.
5912         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5913         (char_directives, u8_directives, u16_directives, u32_directives): Add
5914         room for the first 7 directives.
5915         * lib/printf-parse.c: Include <string.h>.
5916         (PRINTF_PARSE): Change memory handling code so that it uses the first
5917         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5918         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5919         Reported by Pádraig Brady <P@draigbrady.com>.
5920
5921 2011-01-31  Eric Blake  <eblake@redhat.com>
5922
5923         dup2: work around Haiku bug
5924         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5925         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5926         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5927         * tests/test-dup2.c (main): Enhance test.
5928
5929 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5930
5931         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5932         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5933         declared by eglibc 2.11.2.
5934         * lib/stdio.in.h: Likewise.
5935
5936 2011-01-31  Eric Blake  <eblake@redhat.com>
5937
5938         ignore-value: add missing test dependency
5939         * tests/test-ignore-value.c: Revert previous change; stdio.h
5940         provides off_t.
5941         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5942
5943 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5944
5945         mktime: clarify long_int width checking
5946         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5947         the top level, to make it clearer that the assumption about
5948         long_int width is being checked.  See
5949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5950
5951 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5952
5953         ignore-value: Fix self-test.
5954         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5955
5956 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         TYPE_MAXIMUM: avoid theoretically undefined behavior
5959         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5960         negative number, which the C Standard says has undefined behavior.
5961         In practice this is not a problem, but might as well do it by the book.
5962         Reported by Rich Felker and Eric Blake; see
5963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5964         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5965         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5967         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5968         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5969         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5970
5971         mktime: #undef mktime before #defining it
5972         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5973
5974         mktime: systematically normalize tm_isdst comparisons
5975         * lib/mktime.c (isdst_differ): New function.
5976         (__mktime_internal): Use it systematically for all isdst comparisons.
5977         This completes the fix for libc BZ #6723, and removes the need for
5978         normalizing tm_isdst.  See
5979         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5980         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5981
5982         mktime: fix some integer overflow issues and sidestep the rest
5983
5984         This was prompted by a bug report by Benjamin Lindner for MinGW
5985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5986         His bug is due to signed integer overflow (0 - INT_MIN), and I
5987         I scanned through mktime.c looking for other integer overflow
5988         problems, fixing all the bugs I found.
5989
5990         Although the C Standard says the resulting code is still not safe
5991         in the presence of integer overflow, in practice it should be good
5992         enough for all real-world two's-complement implementations, except
5993         for debugging environments that deliberately trap on integer
5994         overflow (e.g., gcc -ftrapv).
5995
5996         * lib/mktime.c (WRAPV): New macro.
5997         (SHR): Also check that long_int and time_t shift right in the
5998         usual way, before using the fast-but-unportable method.
5999         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6000         used.  The code already assumed two's complement, so there's
6001         no need to test for alternatives.  All uses removed.
6002         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6003         the C standard.  Problem reported by Rich Felker in
6004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6005         (twos_complement_arithmetic): Also check long_int and time_t.
6006         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6007         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6008         (__mktime_internal): Avoid integer overflow with unary subtraction
6009         in two instances where -1 - X is an adequate replacement for -X,
6010         since the calculations are approximate.
6011
6012 2011-01-29  Eric Blake  <eblake@redhat.com>
6013
6014         mktime: avoid infinite loop
6015         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6016         type; behavior is still undefined but portable to all known targets.
6017         Reported by Rich Felker.
6018
6019 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6020
6021         rename, unlink, same-inode: Relicense.
6022         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6023         * modules/unlink (License): Likewise.
6024         * modules/same-inode (License): Likewise.
6025
6026 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         mktime: avoid problems on NetBSD 5 / i386
6029         * lib/mktime.c (long_int): New type.  This works around a problem
6030         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6031         but time_t is 64 bits, and where I expect the existing code is
6032         wrong in some cases.
6033         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6034         (ydhms_diff): Bring back the compile-time check for wide-enough
6035         year and yday.
6036
6037         mktime: fix misspelling in comment
6038         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6039         This merges all recent glibc changes of importance.
6040
6041 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6042
6043         move-if-change: cope with concurrent mv of identical file.
6044         * build-aux/move-if-change (CMPPROG): Accept environment
6045         variable as an override for `cmp'.
6046         (usage): Document CMPPROG.
6047         Adjust comparison to drop stdout.  Cope with failure of mv if
6048         the target file exists and is identical to the source, for
6049         parallel builds.
6050         Report from H.J. Lu against binutils in PR binutils/12283.
6051
6052 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6053
6054         * users.txt: Mention sharutils.
6055
6056 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6057
6058         * users.txt: Mention OATH Toolkit.
6059
6060 2011-01-27  Bruno Haible  <bruno@clisp.org>
6061
6062         Prepare for supporting FreeBSD 10.
6063         * build-aux/config.libpath: Remove handling of freebsd1*.
6064
6065 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6066
6067         Prepare for supporting FreeBSD 10.
6068         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6069         match FreeBSD 10.0.
6070
6071 2011-01-27  Bruno Haible  <bruno@clisp.org>
6072
6073         vma-iter, get-rusage-as: Add OpenBSD support.
6074         * modules/vma-iter (configure.ac): Test for mquery.
6075         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6076         * lib/vma-iter.c: Include <sys/mman.h>.
6077         (vma_iterate): Add an implementation based on mquery().
6078         * lib/resource-ext.h (get_rusage_as): Update comments.
6079         * lib/get-rusage-as.c: Likewise.
6080         * lib/get-rusage-data.c: Likewise.
6081
6082 2011-01-26  Karl Berry  <karl@gnu.org>
6083
6084         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6085         variables to make it easier to override the makeinfo program used.
6086
6087 2011-01-26  Eric Blake  <eblake@redhat.com>
6088
6089         fcntl: work around Haiku F_DUPFD bugs
6090         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6091         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6092         cloexec bit on duplication.
6093         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6094
6095 2011-01-26  Bruno Haible  <bruno@clisp.org>
6096
6097         Enable memory leak tests on AIX.
6098         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6099         * tests/test-fprintf-posix3.c (main): Likewise.
6100
6101 2011-01-26  Bruno Haible  <bruno@clisp.org>
6102
6103         Tests for module 'get-rusage-data'.
6104         * modules/get-rusage-data-tests: New file.
6105         * tests/test-get-rusage-data.c: New file.
6106
6107         New module 'get-rusage-data'.
6108         * lib/resource-ext.h (get_rusage_data): New declaration.
6109         * lib/get-rusage-data.c: New file.
6110         * modules/get-rusage-data: New file.
6111
6112 2011-01-25  Bruno Haible  <bruno@clisp.org>
6113
6114         get-rusage-as: Allow for easier testing.
6115         * lib/resource-ext.h (get_rusage_as): Add comment.
6116         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6117         (main): New function for interactive testing.
6118
6119 2011-01-25  Bruno Haible  <bruno@clisp.org>
6120
6121         vma-iter: Treat Haiku like BeOS.
6122         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6123         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6124
6125 2011-01-25  Eric Blake  <eblake@redhat.com>
6126
6127         c-stack: fix regression on cygwin when libsigsegv is present
6128         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6129
6130 2011-01-24  Bruno Haible  <bruno@clisp.org>
6131
6132         vma-iter: Avoid empty intervals.
6133         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6134         on an empty interval.
6135
6136 2011-01-24  Jim Meyering  <meyering@redhat.com>
6137
6138         u64: remove unnecessary #include
6139         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6140
6141 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6142
6143         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6144         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6145
6146 2011-01-23  Bruno Haible  <bruno@clisp.org>
6147
6148         New module 'vma-iter'.
6149         * lib/vma-iter.h: New file.
6150         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6151         * modules/vma-iter: New file.
6152         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6153         for get_rusage_as_via_iterator.
6154         (vma_iterate_callback): New function.
6155         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6156         * modules/get-rusage-as (Depends-on): Add vma-iter.
6157
6158 2011-01-23  Bruno Haible  <bruno@clisp.org>
6159
6160         uninorm: Tweak includes.
6161         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6162         Reported by Jim Meyering.
6163
6164 2011-01-23  Bruno Haible  <bruno@clisp.org>
6165
6166         get-rusage-as: Improve on NetBSD.
6167         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6168         /proc, like on FreeBSD.
6169
6170 2011-01-23  Jim Meyering  <meyering@redhat.com>
6171
6172         xreadlink.h: remove unnecessary #include
6173         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6174
6175         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6176         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6177
6178 2011-01-23  Bruno Haible  <bruno@clisp.org>
6179
6180         get-rusage-as: Fix bug.
6181         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6182         original limit when aborting the first loop.
6183
6184 2011-01-23  Bruno Haible  <bruno@clisp.org>
6185
6186         wctype: Ensure valid C syntax.
6187         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6188         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6189
6190 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6191
6192         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6194         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6195         as they are needed only for configure's test case.
6196         This removes two unnecessary symbols from config.h.
6197
6198         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6199         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6201         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6202         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6203         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6204         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6205         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6206         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6208         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6209         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6210         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6211         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6212         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6214         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6215         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6216
6217 2011-01-21  Eric Blake  <eblake@redhat.com>
6218
6219         maintainer-makefile: work with older git for submodule check
6220         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6221         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6222         Reported by Matthias Bolte.
6223
6224         bootstrap: minor portability fixes
6225         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6226         (usage): Omit leading capital and trailing . on help phrases, per
6227         GNU Coding Standards.
6228         (check_versions, top level): Prefix messages with script name.
6229
6230 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6231
6232         bootstrap: support --no-git option
6233         * build-aux/bootstrap: Add --no-git option, to be used when
6234         --gnulib-srcdir points to the exact desired checkout.
6235
6236 2011-01-21  Eric Blake  <eblake@redhat.com>
6237
6238         strerror_r-posix: work with glibc 2.13
6239         * lib/strerror_r.c (strerror_r): Fix return type.
6240
6241 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6242             Bruno Haible  <bruno@clisp.org>
6243
6244         uN_strstr: New unit tests.
6245         * modules/unistr/u8-strstr-tests: New file.
6246         * modules/unistr/u16-strstr-tests: New file.
6247         * modules/unistr/u32-strstr-tests: New file.
6248         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6249         * tests/unistr/test-u8-strstr.c: New file.
6250         * tests/unistr/test-u16-strstr.c: New file.
6251         * tests/unistr/test-u32-strstr.c: New file.
6252
6253 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6254             Bruno Haible  <bruno@clisp.org>
6255
6256         Make uN_strstr functions O(n) worst-case.
6257         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6258         16-bit and 32-bit unit cases, use the unibyte algorithm from
6259         lib/mbsstr.c.
6260         * lib/unistr/u8-strstr.c: Include <string.h>.
6261         (UNIT_IS_UINT8_T): New macro.
6262         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6263         (U_STRLEN, U_STRNLEN): New macros.
6264         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6265         (U_STRLEN, U_STRNLEN): New macros.
6266         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6267         (configure.ac): Update required libunistring version.
6268         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6269         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6270         malloca.
6271         (configure.ac): Update required libunistring version.
6272         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6273         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6274         malloca.
6275         (configure.ac): Update required libunistring version.
6276
6277 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6278             Bruno Haible  <bruno@clisp.org>
6279
6280         Prepare for faster uN_strstr functions.
6281         * lib/str-kmp.h: Support definable UNITs.
6282         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6283         needle_len argument.
6284         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6285         * lib/mbscasestr.c (mbscasestr): Likewise.
6286
6287 2011-01-21  Pádraig Brady <P@draigBrady.com>
6288
6289         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6290         * tests/test-malloca.c (main): Unset the environment variable
6291         to greatly speed up the test.
6292         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6293         * modules/malloca-tests: Depend on unsetenv.
6294
6295 2011-01-21  Pádraig Brady <P@draigBrady.com>
6296
6297         ignore-value: remove stdint dependency
6298         * lib/ignore-value.h: Remove <stdint.h>
6299         * modules/ignore-value: Remove stdint dependency.
6300
6301 2011-01-21  Jim Meyering  <meyering@redhat.com>
6302
6303         maint.mk: adjust variable name to be consistent with other gl_ vars
6304         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6305         to be lower case.
6306
6307 2011-01-20  Jim Meyering  <meyering@redhat.com>
6308
6309         maint.mk: make "check" depend on public-submodule-commit by default
6310         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6311
6312 2011-01-20  Bruno Haible  <bruno@clisp.org>
6313
6314         mbfile, mbiter: Complete change from 2008-12-21.
6315         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6316         * m4/mbiter.m4 (gl_MBITER): Likewise.
6317
6318 2011-01-20  Jim Meyering  <meyering@redhat.com>
6319
6320         init.sh: insert space between each function name and "()"
6321         * tests/init.sh: Make it a little easier to see that a function's
6322         name is "warn_", and not "warn" when looking at the first part of
6323         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6324
6325 2011-01-20  Jim Meyering  <meyering@redhat.com>
6326
6327         mountlist: clean up code formatting
6328         * lib/mountlist.c (read_file_system_list): Split a long line,
6329         correct bracing style, use NULL in place of "(struct statfs *)0",
6330         don't parenthesize return value, add spaces around "=" and after
6331         ";-in-for-stmt".
6332
6333 2011-01-14  Markus Duft <mduft@gentoo.org>
6334
6335         mountlist: add support for Interix
6336         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6337         Apply statvfs to all entries of /dev/fs.
6338         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6339         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6340
6341 2011-01-20  Jim Meyering  <meyering@redhat.com>
6342
6343         maint.mk: improve the public-submodule-commit rule
6344         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6345         to suppress printing of its commands... unless V=1.
6346         Add git submodule's --quiet option to suppress printing of e.g.,
6347         "Entering gnulib" output.
6348         "cd" into $(srcdir) before running git submodule.
6349
6350 2011-01-20  Bruno Haible  <bruno@clisp.org>
6351
6352         include_next: Fix bug introduced on 2011-01-18.
6353         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6354         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6355         ac_cv_header_... variable if the second argument is not 'check'.
6356         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6357         gl_NEXT_HEADERS_INTERNAL.
6358
6359 2011-01-20  Bruno Haible  <bruno@clisp.org>
6360
6361         Allow the user to avoid the GNULIB_TEST_* macros.
6362         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6363         Suggested by Paul Eggert.
6364
6365 2011-01-14  Jim Meyering  <meyering@redhat.com>
6366
6367         bootstrap: avoid failure when there is no .gitmodules file
6368         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6369         has been assigned to, even when its value is the empty string.
6370         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6371         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6372         Reported by John W. Eaton <jwe@gnu.org>.
6373
6374 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6375
6376         assume <ctype.h>, ..., <time.h> exist
6377         For years gnulib has been assuming the existence of the headers
6378         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6379         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6380         them, since they don't appear to be needed.
6381         * README (Portability guidelines): Document this.
6382         * lib/flock.c: Assume <fcntl.h> exists.
6383         * lib/regex_internal.h: Assume <locale.h> exists.
6384         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6386         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6387         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6388         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6389         * m4/regex.m4 (gl_REGEX): Likewise.
6390         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6391         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6392         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6393         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6394         * tests/test-argp.c: Likewise.
6395         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6396
6397         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6398         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6399         AA_APPLE_UNIVERSAL_BUILD.  See
6400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6401         * NEWS: Document this.
6402
6403 2011-01-19  Eric Blake  <eblake@redhat.com>
6404
6405         c-stack: assume stack overflow if SA_SIGINFO unsupported
6406         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6407         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6408         sigaction will work.
6409         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6410         behavior match Linux.
6411         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6412
6413         stdbool-tests: accomodate Haiku
6414         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6415
6416         binary-io: fix O_TEXT on Haiku
6417         * modules/binary-io (Depends-on): Add fcntl-h.
6418         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6419         than blindly undefining O_TEXT.
6420         Reported by Scott McCreary.
6421
6422 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         include_next: do not check for standard headers like stddef.h
6425
6426         I found this problem when modifying Emacs to use gnulib.
6427         I noticed that it added HAVE_STDDEF_H to config.h, even though
6428         gnulib always assumes <stddef.h> exists as per README and this
6429         symbol is unnecessary.
6430         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6431         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6432         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6433         faster for headers like stddef.h that are known to exist.
6434         (gl_CHECK_NEXT_HEADERS): Use it.
6435         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6436         rather than gl_CHECK_NEXT_HEADERS.
6437         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6438         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6439
6440 2011-01-18  Eric Blake  <eblake@redhat.com>
6441
6442         ansi-c++-opt: skip C++ dependency style if C++ is unused
6443         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6444         tests when we know C++ compilation is not desired.
6445         Reported by Scott McCreary.
6446
6447 2011-01-18  Bruno Haible  <bruno@clisp.org>
6448
6449         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6450         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6451         (main): Perform test also when getrlimit and setrlimit don't exist or
6452         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6453         limiting the address space size using setrlimit, compare the address
6454         space size before and after the the test.
6455         * tests/test-dprintf-posix2.c: Likewise.
6456         * tests/test-fprintf-posix3.sh: Update skip messages.
6457         * tests/test-dprintf-posix2.sh: Likewise.
6458         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6459         * modules/dprintf-posix-tests (Depends-on): Likewise.
6460         Reported by Bruce Korb <bkorb@gnu.org> and
6461         Gary V. Vaughan <gary@gnu.org>.
6462
6463 2011-01-18  Bruno Haible  <bruno@clisp.org>
6464
6465         get-rusage-as: Improvement for Cygwin.
6466         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6467         areas that are merely reserved.
6468
6469 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6470
6471         strftime: remove dependencies on multibyte modules
6472
6473         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6474         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6475         only if __osf__ is defined, and I suspect OSF doesn't need these
6476         other modules.  If my guess is wrong, we'll need to come up with a
6477         variant of strftime that doesn't need the multibyte modules.
6478
6479         I discovered this problem when attempting modify Emacs to use the
6480         strftime module.  With the previous gnulib, this caused Emacs to
6481         need 31 new files, ranging from lib/config.charset to
6482         m4/wint_t.m4.  This was overkill and I expect would be offputting
6483         to the Emacs maintainers.  After this change, only 6 new files are
6484         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6485         stdbool.m4, and tm_gmtoff.m4.
6486
6487         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6488         Suggested by Bruno Haible in
6489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6490         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6491         and do not check for wchar.h.
6492         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6493         (Depends-on): Remove mbrlen, mbsinit, wchar.
6494
6495 2011-01-18  Bruno Haible  <bruno@clisp.org>
6496
6497         Tests for module 'get-rusage-as'.
6498         * modules/get-rusage-as-tests: New file.
6499         * tests/test-get-rusage-as.c: New file.
6500
6501         New module 'get-rusage-as'.
6502         * modules/get-rusage-as: New file.
6503         * lib/resource-ext.h: New file.
6504         * lib/get-rusage-as.c: New file.
6505
6506 2011-01-17  Eric Blake  <eblake@redhat.com>
6507
6508         sigaction: relax license from LGPLv3+ to LGPLv2+
6509         * modules/sigaction (License): Relax to LGPLv2+.
6510
6511 2011-01-14  Bruno Haible  <bruno@clisp.org>
6512
6513         filemode: Make function declarations usable in C++ mode.
6514         * lib/filemode.h: Enclose function declarations in extern "C" block.
6515         Reported by John W. Eaton <jwe@gnu.org>.
6516
6517 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6518
6519         save-cwd: no longer include "xgetcwd.h"
6520         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6521         This avoids a compilation failure in projects that use save-cwd
6522         without also using the xgetcwd module.
6523
6524 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6527         This is so that a program like Emacs, which needs only dtoastr,
6528         does not have to bother with distributing and compiling ftoastr
6529         and ldtoastr.
6530         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6531         * modules/dtoastr, modules/ldtoastr: New files.
6532         * modules/ftoastr: Now works just for 'float'.
6533         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6534         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6535         dtoastr.c, ldtoastr.c.
6536
6537 2011-01-11  Jim Meyering  <meyering@redhat.com>
6538
6539         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6540         There is no need to work around the lack of the fchdir function,
6541         since gnulib can now provide a replacement when required.
6542         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6543         * modules/save-cwd (Depends-on): Add fchdir.
6544
6545 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6546
6547         openat, save-cwd: avoid xmalloc
6548
6549         This removes a direct (but undocumented) dependency of openat on
6550         xalloc, along with an indirect dependency via save-cwd.  It also
6551         removes a dependency of save-cwd on xgetcwd, and thereby
6552         indirectly on xalloc.  This change causes the openat substitute
6553         to fall back on save_cwd when memory is tight, and for save_cwd to
6554         fail instead of dying when memory is tight, but that's good enough.
6555         Problem and initial idea for fix reported by Bastien Roucaries in
6556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6557
6558         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6559         xalloc.h (for xmalloc).
6560         (openat_proc_name): Use malloc, not xmalloc.
6561         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6562         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6563
6564         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6565         This avoids heap allocation for file names whose lengths are in
6566         the range 512..1023, with the upper bound increasing to at most
6567         4031 depending on the platform's PATH_MAX.  (We do not want
6568         pathmax.h here as it might supply a non-constant PATH_MAX.)
6569         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6570         Perhaps they should be moved to malloca.h?
6571         (OPENAT_BUFFER_SIZE): Use them.
6572
6573 2011-01-10  Bruno Haible  <bruno@clisp.org>
6574
6575         doc: Update users.txt.
6576         * users.txt: Add recutils.
6577
6578 2011-01-09  Karl Berry  <karl@gnu.org>
6579
6580         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6581
6582         * doc/configmake.texi: New file.
6583         * doc/gnulib.texi: Include it.
6584         * modules/configmake: Move documentation from here.
6585
6586 2011-01-09  Bruno Haible  <bruno@clisp.org>
6587
6588         Update to Unicode 6.0.0.
6589         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6590         (get_lbp): Update for Unicode 6.0.0.
6591         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6592         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6593         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6594         U+11001, U+11038..U+11046. Remove U+06DE.
6595         (uc_width): Fix bounds of planes.
6596         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6597         lib/uniwidth/width.c.
6598         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6599         trailing whitespace removed.
6600         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6601         without comments, but with the original copyright notice.
6602         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6603         * lib/unicase/ignorable.h: Likewise.
6604         * lib/unicase/tocasefold.h: Likewise.
6605         * lib/unicase/tolower.h: Likewise.
6606         * lib/unicase/totitle.h: Likewise.
6607         * lib/unicase/toupper.h: Likewise.
6608         * lib/unictype/bidi_of.h: Likewise.
6609         * lib/unictype/blocks.h: Likewise.
6610         * lib/unictype/categ_C.h: Likewise.
6611         * lib/unictype/categ_Cn.h: Likewise.
6612         * lib/unictype/categ_L.h: Likewise.
6613         * lib/unictype/categ_Ll.h: Likewise.
6614         * lib/unictype/categ_Lm.h: Likewise.
6615         * lib/unictype/categ_Lo.h: Likewise.
6616         * lib/unictype/categ_Lu.h: Likewise.
6617         * lib/unictype/categ_M.h: Likewise.
6618         * lib/unictype/categ_Mc.h: Likewise.
6619         * lib/unictype/categ_Me.h: Likewise.
6620         * lib/unictype/categ_Mn.h: Likewise.
6621         * lib/unictype/categ_N.h: Likewise.
6622         * lib/unictype/categ_Nd.h: Likewise.
6623         * lib/unictype/categ_No.h: Likewise.
6624         * lib/unictype/categ_P.h: Likewise.
6625         * lib/unictype/categ_Po.h: Likewise.
6626         * lib/unictype/categ_S.h: Likewise.
6627         * lib/unictype/categ_Sc.h: Likewise.
6628         * lib/unictype/categ_Sk.h: Likewise.
6629         * lib/unictype/categ_Sm.h: Likewise.
6630         * lib/unictype/categ_So.h: Likewise.
6631         * lib/unictype/categ_of.h: Likewise.
6632         * lib/unictype/combining.h: Likewise.
6633         * lib/unictype/ctype_alnum.h: Likewise.
6634         * lib/unictype/ctype_alpha.h: Likewise.
6635         * lib/unictype/ctype_graph.h: Likewise.
6636         * lib/unictype/ctype_lower.h: Likewise.
6637         * lib/unictype/ctype_print.h: Likewise.
6638         * lib/unictype/ctype_punct.h: Likewise.
6639         * lib/unictype/ctype_upper.h: Likewise.
6640         * lib/unictype/decdigit.h: Likewise.
6641         * lib/unictype/digit.h: Likewise.
6642         * lib/unictype/numeric.h: Likewise.
6643         * lib/unictype/pr_alphabetic.h: Likewise.
6644         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6645         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6646         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6647         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6648         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6649         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6650         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6651         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6652         * lib/unictype/pr_case_ignorable.h: Likewise.
6653         * lib/unictype/pr_cased.h: Likewise.
6654         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6655         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6656         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6657         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6658         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6659         * lib/unictype/pr_combining.h: Likewise.
6660         * lib/unictype/pr_composite.h: Likewise.
6661         * lib/unictype/pr_currency_symbol.h: Likewise.
6662         * lib/unictype/pr_decimal_digit.h: Likewise.
6663         * lib/unictype/pr_deprecated.h: Likewise.
6664         * lib/unictype/pr_format_control.h: Likewise.
6665         * lib/unictype/pr_grapheme_base.h: Likewise.
6666         * lib/unictype/pr_grapheme_extend.h: Likewise.
6667         * lib/unictype/pr_grapheme_link.h: Likewise.
6668         * lib/unictype/pr_id_continue.h: Likewise.
6669         * lib/unictype/pr_id_start.h: Likewise.
6670         * lib/unictype/pr_ideographic.h: Likewise.
6671         * lib/unictype/pr_lowercase.h: Likewise.
6672         * lib/unictype/pr_math.h: Likewise.
6673         * lib/unictype/pr_numeric.h: Likewise.
6674         * lib/unictype/pr_other_alphabetic.h: Likewise.
6675         * lib/unictype/pr_other_id_continue.h: Likewise.
6676         * lib/unictype/pr_other_math.h: Likewise.
6677         * lib/unictype/pr_punctuation.h: Likewise.
6678         * lib/unictype/pr_sentence_terminal.h: Likewise.
6679         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6680         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6681         * lib/unictype/pr_unified_ideograph.h: Likewise.
6682         * lib/unictype/pr_uppercase.h: Likewise.
6683         * lib/unictype/pr_xid_continue.h: Likewise.
6684         * lib/unictype/pr_xid_start.h: Likewise.
6685         * lib/unictype/scripts.h: Likewise.
6686         * lib/unictype/scripts_byname.gperf: Likewise.
6687         * lib/unictype/sy_java_ident.h: Likewise.
6688         * lib/unigbrk/gbrkprop.h: Likewise.
6689         * lib/unilbrk/lbrkprop1.h: Likewise.
6690         * lib/unilbrk/lbrkprop2.h: Likewise.
6691         * lib/uninorm/decomposition-table2.h: Likewise.
6692         * lib/uniwbrk/wbrkprop.h: Likewise.
6693         * tests/unicase/test-cased.c: Likewise.
6694         * tests/unicase/test-ignorable.c: Likewise.
6695         * tests/unicase/test-uc_tolower.c: Likewise.
6696         * tests/unicase/test-uc_totitle.c: Likewise.
6697         * tests/unicase/test-uc_toupper.c: Likewise.
6698         * tests/unictype/test-categ_C.c: Likewise.
6699         * tests/unictype/test-categ_Cn.c: Likewise.
6700         * tests/unictype/test-categ_L.c: Likewise.
6701         * tests/unictype/test-categ_Ll.c: Likewise.
6702         * tests/unictype/test-categ_Lm.c: Likewise.
6703         * tests/unictype/test-categ_Lo.c: Likewise.
6704         * tests/unictype/test-categ_Lu.c: Likewise.
6705         * tests/unictype/test-categ_M.c: Likewise.
6706         * tests/unictype/test-categ_Mc.c: Likewise.
6707         * tests/unictype/test-categ_Me.c: Likewise.
6708         * tests/unictype/test-categ_Mn.c: Likewise.
6709         * tests/unictype/test-categ_N.c: Likewise.
6710         * tests/unictype/test-categ_Nd.c: Likewise.
6711         * tests/unictype/test-categ_No.c: Likewise.
6712         * tests/unictype/test-categ_P.c: Likewise.
6713         * tests/unictype/test-categ_Po.c: Likewise.
6714         * tests/unictype/test-categ_S.c: Likewise.
6715         * tests/unictype/test-categ_Sc.c: Likewise.
6716         * tests/unictype/test-categ_Sk.c: Likewise.
6717         * tests/unictype/test-categ_Sm.c: Likewise.
6718         * tests/unictype/test-categ_So.c: Likewise.
6719         * tests/unictype/test-ctype_alnum.c: Likewise.
6720         * tests/unictype/test-ctype_alpha.c: Likewise.
6721         * tests/unictype/test-ctype_graph.c: Likewise.
6722         * tests/unictype/test-ctype_lower.c: Likewise.
6723         * tests/unictype/test-ctype_print.c: Likewise.
6724         * tests/unictype/test-ctype_punct.c: Likewise.
6725         * tests/unictype/test-ctype_upper.c: Likewise.
6726         * tests/unictype/test-decdigit.h: Likewise.
6727         * tests/unictype/test-digit.h: Likewise.
6728         * tests/unictype/test-numeric.h: Likewise.
6729         * tests/unictype/test-pr_alphabetic.c: Likewise.
6730         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6731         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6732         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6733         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6734         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6735         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6736         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6737         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6738         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6739         * tests/unictype/test-pr_cased.c: Likewise.
6740         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6741         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6742         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6743         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6744         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6745         * tests/unictype/test-pr_combining.c: Likewise.
6746         * tests/unictype/test-pr_composite.c: Likewise.
6747         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6748         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6749         * tests/unictype/test-pr_deprecated.c: Likewise.
6750         * tests/unictype/test-pr_format_control.c: Likewise.
6751         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6752         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6753         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6754         * tests/unictype/test-pr_id_continue.c: Likewise.
6755         * tests/unictype/test-pr_id_start.c: Likewise.
6756         * tests/unictype/test-pr_ideographic.c: Likewise.
6757         * tests/unictype/test-pr_lowercase.c: Likewise.
6758         * tests/unictype/test-pr_math.c: Likewise.
6759         * tests/unictype/test-pr_numeric.c: Likewise.
6760         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6761         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6762         * tests/unictype/test-pr_other_math.c: Likewise.
6763         * tests/unictype/test-pr_punctuation.c: Likewise.
6764         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6765         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6766         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6767         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6768         * tests/unictype/test-pr_uppercase.c: Likewise.
6769         * tests/unictype/test-pr_xid_continue.c: Likewise.
6770         * tests/unictype/test-pr_xid_start.c: Likewise.
6771         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6772         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6773         changes.
6774         * lib/unictype/categ_Cc.h: Likewise.
6775         * lib/unictype/categ_Cf.h: Likewise.
6776         * lib/unictype/categ_Co.h: Likewise.
6777         * lib/unictype/categ_Cs.h: Likewise.
6778         * lib/unictype/categ_Lt.h: Likewise.
6779         * lib/unictype/categ_Nl.h: Likewise.
6780         * lib/unictype/categ_Pc.h: Likewise.
6781         * lib/unictype/categ_Pd.h: Likewise.
6782         * lib/unictype/categ_Pe.h: Likewise.
6783         * lib/unictype/categ_Pf.h: Likewise.
6784         * lib/unictype/categ_Pi.h: Likewise.
6785         * lib/unictype/categ_Ps.h: Likewise.
6786         * lib/unictype/categ_Z.h: Likewise.
6787         * lib/unictype/categ_Zl.h: Likewise.
6788         * lib/unictype/categ_Zp.h: Likewise.
6789         * lib/unictype/categ_Zs.h: Likewise.
6790         * lib/unictype/ctype_blank.h: Likewise.
6791         * lib/unictype/ctype_cntrl.h: Likewise.
6792         * lib/unictype/ctype_digit.h: Likewise.
6793         * lib/unictype/ctype_space.h: Likewise.
6794         * lib/unictype/ctype_xdigit.h: Likewise.
6795         * lib/unictype/mirror.h: Likewise.
6796         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6797         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6798         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6799         * lib/unictype/pr_bidi_control.h: Likewise.
6800         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6801         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6802         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6803         * lib/unictype/pr_bidi_pdf.h: Likewise.
6804         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6805         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6806         * lib/unictype/pr_dash.h: Likewise.
6807         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6808         * lib/unictype/pr_diacritic.h: Likewise.
6809         * lib/unictype/pr_extender.h: Likewise.
6810         * lib/unictype/pr_hex_digit.h: Likewise.
6811         * lib/unictype/pr_hyphen.h: Likewise.
6812         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6813         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6814         * lib/unictype/pr_ignorable_control.h: Likewise.
6815         * lib/unictype/pr_iso_control.h: Likewise.
6816         * lib/unictype/pr_join_control.h: Likewise.
6817         * lib/unictype/pr_left_of_pair.h: Likewise.
6818         * lib/unictype/pr_line_separator.h: Likewise.
6819         * lib/unictype/pr_logical_order_exception.h: Likewise.
6820         * lib/unictype/pr_non_break.h: Likewise.
6821         * lib/unictype/pr_not_a_character.h: Likewise.
6822         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6823         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6824         * lib/unictype/pr_other_id_start.h: Likewise.
6825         * lib/unictype/pr_other_lowercase.h: Likewise.
6826         * lib/unictype/pr_other_uppercase.h: Likewise.
6827         * lib/unictype/pr_paired_punctuation.h: Likewise.
6828         * lib/unictype/pr_paragraph_separator.h: Likewise.
6829         * lib/unictype/pr_pattern_syntax.h: Likewise.
6830         * lib/unictype/pr_pattern_white_space.h: Likewise.
6831         * lib/unictype/pr_private_use.h: Likewise.
6832         * lib/unictype/pr_quotation_mark.h: Likewise.
6833         * lib/unictype/pr_radical.h: Likewise.
6834         * lib/unictype/pr_soft_dotted.h: Likewise.
6835         * lib/unictype/pr_space.h: Likewise.
6836         * lib/unictype/pr_titlecase.h: Likewise.
6837         * lib/unictype/pr_variation_selector.h: Likewise.
6838         * lib/unictype/pr_white_space.h: Likewise.
6839         * lib/unictype/pr_zero_width.h: Likewise.
6840         * lib/unictype/sy_c_ident.h: Likewise.
6841         * lib/unictype/sy_c_whitespace.h: Likewise.
6842         * lib/unictype/sy_java_whitespace.h: Likewise.
6843         * lib/uninorm/composition-table.gperf: Likewise.
6844         * lib/uninorm/decomposition-table1.h: Likewise.
6845         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6846         LB8.
6847         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6848         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6849         * modules/unictype/*: Bump version number of expected libunistring
6850         version.
6851
6852 2011-01-09  Bruno Haible  <bruno@clisp.org>
6853
6854         Update to Unicode 5.2.0.
6855         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6856         trailing whitespace removed.
6857
6858 2011-01-09  Bruno Haible  <bruno@clisp.org>
6859
6860         New Unicode character properties, from Unicode 5.2.0.
6861         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6862         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6863         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6864         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6865         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6866         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6867         uc_is_property_cased, uc_is_property_case_ignorable,
6868         uc_is_property_changes_when_lowercased,
6869         uc_is_property_changes_when_uppercased,
6870         uc_is_property_changes_when_titlecased,
6871         uc_is_property_changes_when_casefolded,
6872         uc_is_property_changes_when_casemapped): New declarations.
6873         * lib/unictype/pr_byname.gperf: Add the new properties.
6874         * modules/unictype/property-byname (Depends-on): Depend on the new
6875         properties modules.
6876         * modules/unictype/property-all (Depends-on): Likewise.
6877         * MODULES.html.sh (Unicode string functions): Add
6878         unictype/property-case-ignorable, unictype/property-cased,
6879         unictype/property-changes-when-casefolded,
6880         unictype/property-changes-when-casemapped,
6881         unictype/property-changes-when-lowercased,
6882         unictype/property-changes-when-titlecased,
6883         unictype/property-changes-when-uppercased.
6884
6885         New module 'unictype/property-changes-when-casemapped'.
6886         * modules/unictype/property-changes-when-casemapped: New file.
6887         * lib/unictype/pr_changes_when_casemapped.c: New file.
6888         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6889         generated by gen-uni-tables.
6890         * modules/unictype/property-changes-when-casemapped-tests: New file.
6891         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6892         automatically generated by gen-uni-tables.
6893
6894         New module 'unictype/property-changes-when-casefolded'.
6895         * modules/unictype/property-changes-when-casefolded: New file.
6896         * lib/unictype/pr_changes_when_casefolded.c: New file.
6897         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6898         generated by gen-uni-tables.
6899         * modules/unictype/property-changes-when-casefolded-tests: New file.
6900         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6901         automatically generated by gen-uni-tables.
6902
6903         New module 'unictype/property-changes-when-titlecased'.
6904         * modules/unictype/property-changes-when-titlecased: New file.
6905         * lib/unictype/pr_changes_when_titlecased.c: New file.
6906         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6907         generated by gen-uni-tables.
6908         * modules/unictype/property-changes-when-titlecased-tests: New file.
6909         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6910         automatically generated by gen-uni-tables.
6911
6912         New module 'unictype/property-changes-when-uppercased'.
6913         * modules/unictype/property-changes-when-uppercased: New file.
6914         * lib/unictype/pr_changes_when_uppercased.c: New file.
6915         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6916         generated by gen-uni-tables.
6917         * modules/unictype/property-changes-when-uppercased-tests: New file.
6918         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6919         automatically generated by gen-uni-tables.
6920
6921         New module 'unictype/property-changes-when-lowercased'.
6922         * modules/unictype/property-changes-when-lowercased: New file.
6923         * lib/unictype/pr_changes_when_lowercased.c: New file.
6924         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6925         generated by gen-uni-tables.
6926         * modules/unictype/property-changes-when-lowercased-tests: New file.
6927         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6928         automatically generated by gen-uni-tables.
6929
6930         New module 'unictype/property-case-ignorable'.
6931         * modules/unictype/property-case-ignorable: New file.
6932         * lib/unictype/pr_case_ignorable.c: New file.
6933         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6934         by gen-uni-tables.
6935         * modules/unictype/property-case-ignorable-tests: New file.
6936         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6937         generated by gen-uni-tables.
6938
6939         New module 'unictype/property-cased'.
6940         * modules/unictype/property-cased: New file.
6941         * lib/unictype/pr_cased.c: New file.
6942         * lib/unictype/pr_cased.h: New file, automatically generated by
6943         gen-uni-tables.
6944         * modules/unictype/property-cased-tests: New file.
6945         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6946         gen-uni-tables.
6947
6948 2011-01-09  Bruno Haible  <bruno@clisp.org>
6949
6950         Update to Unicode 5.2.0.
6951         * lib/gen-uni-tables.c (output_predicate, output_category,
6952         output_combclass, output_bidi_category, output_decimal_digit_test,
6953         output_decimal_digit, output_digit_test, output_digit,
6954         output_numeric_test, output_numeric, output_mirror, output_scripts,
6955         output_scripts_byname, output_blocks, output_ident_category): Fix
6956         comment header.
6957         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6958         get_wbp.
6959         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6960         items.
6961         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6962         Changes_When_Lowercased, Changes_When_Uppercased,
6963         Changes_When_Titlecased, Changes_When_Casefolded,
6964         Changes_When_Casemapped.
6965         (is_property_alphabetic, is_property_default_ignorable_code_point):
6966         Update for Unicode 5.2.0.
6967         (is_property_cased, is_property_case_ignorable,
6968         is_property_changes_when_lowercased,
6969         is_property_changes_when_uppercased,
6970         is_property_changes_when_titlecased,
6971         is_property_changes_when_casefolded,
6972         is_property_changes_when_casemapped): New functions.
6973         (output_properties): Output also the properties cased, case_ignorable,
6974         changes_when_lowercased, changes_when_uppercased,
6975         changes_when_titlecased, changes_when_casefolded,
6976         changes_when_casemapped.
6977         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6978         Unicode TR#11 revision 17 -> 19.
6979         (LBP_CP): New enumeration value.
6980         (LBP_*): Adjust values accordingly.
6981         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6982         TR#14 revision 22 -> 24.
6983         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6984         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6985         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6986         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6987         is_WBP_MIDLETTER.
6988         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6989         the code1 and code2 of each composition rule.
6990         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6991         * lib/unicase/ignorable.h: Likewise.
6992         * lib/unicase/tocasefold.h: Likewise.
6993         * lib/unicase/tolower.h: Likewise.
6994         * lib/unicase/totitle.h: Likewise.
6995         * lib/unicase/toupper.h: Likewise.
6996         * lib/unictype/bidi_of.h: Likewise.
6997         * lib/unictype/blocks.h: Likewise.
6998         * lib/unictype/categ_C.h: Likewise.
6999         * lib/unictype/categ_Cf.h: Likewise.
7000         * lib/unictype/categ_Cn.h: Likewise.
7001         * lib/unictype/categ_L.h: Likewise.
7002         * lib/unictype/categ_Ll.h: Likewise.
7003         * lib/unictype/categ_Lm.h: Likewise.
7004         * lib/unictype/categ_Lo.h: Likewise.
7005         * lib/unictype/categ_Lu.h: Likewise.
7006         * lib/unictype/categ_M.h: Likewise.
7007         * lib/unictype/categ_Mc.h: Likewise.
7008         * lib/unictype/categ_Mn.h: Likewise.
7009         * lib/unictype/categ_N.h: Likewise.
7010         * lib/unictype/categ_Nd.h: Likewise.
7011         * lib/unictype/categ_Nl.h: Likewise.
7012         * lib/unictype/categ_No.h: Likewise.
7013         * lib/unictype/categ_P.h: Likewise.
7014         * lib/unictype/categ_Pd.h: Likewise.
7015         * lib/unictype/categ_Po.h: Likewise.
7016         * lib/unictype/categ_S.h: Likewise.
7017         * lib/unictype/categ_Sc.h: Likewise.
7018         * lib/unictype/categ_So.h: Likewise.
7019         * lib/unictype/categ_of.h: Likewise.
7020         * lib/unictype/combining.h: Likewise.
7021         * lib/unictype/ctype_alnum.h: Likewise.
7022         * lib/unictype/ctype_alpha.h: Likewise.
7023         * lib/unictype/ctype_graph.h: Likewise.
7024         * lib/unictype/ctype_lower.h: Likewise.
7025         * lib/unictype/ctype_print.h: Likewise.
7026         * lib/unictype/ctype_punct.h: Likewise.
7027         * lib/unictype/ctype_upper.h: Likewise.
7028         * lib/unictype/decdigit.h: Likewise.
7029         * lib/unictype/digit.h: Likewise.
7030         * lib/unictype/numeric.h: Likewise.
7031         * lib/unictype/pr_alphabetic.h: Likewise.
7032         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7033         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7034         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7035         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7036         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7037         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7038         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7039         * lib/unictype/pr_combining.h: Likewise.
7040         * lib/unictype/pr_composite.h: Likewise.
7041         * lib/unictype/pr_currency_symbol.h: Likewise.
7042         * lib/unictype/pr_dash.h: Likewise.
7043         * lib/unictype/pr_decimal_digit.h: Likewise.
7044         * lib/unictype/pr_deprecated.h: Likewise.
7045         * lib/unictype/pr_diacritic.h: Likewise.
7046         * lib/unictype/pr_extender.h: Likewise.
7047         * lib/unictype/pr_grapheme_base.h: Likewise.
7048         * lib/unictype/pr_grapheme_extend.h: Likewise.
7049         * lib/unictype/pr_grapheme_link.h: Likewise.
7050         * lib/unictype/pr_id_continue.h: Likewise.
7051         * lib/unictype/pr_id_start.h: Likewise.
7052         * lib/unictype/pr_ideographic.h: Likewise.
7053         * lib/unictype/pr_ignorable_control.h: Likewise.
7054         * lib/unictype/pr_logical_order_exception.h: Likewise.
7055         * lib/unictype/pr_lowercase.h: Likewise.
7056         * lib/unictype/pr_numeric.h: Likewise.
7057         * lib/unictype/pr_other_alphabetic.h: Likewise.
7058         * lib/unictype/pr_punctuation.h: Likewise.
7059         * lib/unictype/pr_sentence_terminal.h: Likewise.
7060         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7061         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7062         * lib/unictype/pr_unified_ideograph.h: Likewise.
7063         * lib/unictype/pr_uppercase.h: Likewise.
7064         * lib/unictype/pr_xid_continue.h: Likewise.
7065         * lib/unictype/pr_xid_start.h: Likewise.
7066         * lib/unictype/pr_zero_width.h: Likewise.
7067         * lib/unictype/scripts.h: Likewise.
7068         * lib/unictype/scripts_byname.gperf: Likewise.
7069         * lib/unictype/sy_java_ident.h: Likewise.
7070         * lib/unigbrk/gbrkprop.h: Likewise.
7071         * lib/unilbrk/lbrkprop1.h: Likewise.
7072         * lib/unilbrk/lbrkprop2.h: Likewise.
7073         * lib/unilbrk/lbrktables.h: Likewise.
7074         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7075         LBP_CP. Implement rule LB30.
7076         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7077         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7078         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7079         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7080         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7081         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7082         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7083         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7084         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7085         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7086         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7087         bits instead of 16 bits in the code1 and code2 of each composition
7088         rule.
7089         (uc_composition): Update for Unicode 5.2.0.
7090         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7091         * lib/uninorm/decomposition-table2.h: Likewise.
7092         * lib/uniwbrk/wbrkprop.h: Likewise.
7093         * tests/unicase/test-cased.c: Likewise.
7094         * tests/unicase/test-ignorable.c: Likewise.
7095         * tests/unicase/test-uc_tolower.c: Likewise.
7096         * tests/unicase/test-uc_totitle.c: Likewise.
7097         * tests/unicase/test-uc_toupper.c: Likewise.
7098         * tests/unictype/test-categ_C.c: Likewise.
7099         * tests/unictype/test-categ_Cf.c: Likewise.
7100         * tests/unictype/test-categ_Cn.c: Likewise.
7101         * tests/unictype/test-categ_L.c: Likewise.
7102         * tests/unictype/test-categ_Ll.c: Likewise.
7103         * tests/unictype/test-categ_Lm.c: Likewise.
7104         * tests/unictype/test-categ_Lo.c: Likewise.
7105         * tests/unictype/test-categ_Lu.c: Likewise.
7106         * tests/unictype/test-categ_M.c: Likewise.
7107         * tests/unictype/test-categ_Mc.c: Likewise.
7108         * tests/unictype/test-categ_Mn.c: Likewise.
7109         * tests/unictype/test-categ_N.c: Likewise.
7110         * tests/unictype/test-categ_Nd.c: Likewise.
7111         * tests/unictype/test-categ_Nl.c: Likewise.
7112         * tests/unictype/test-categ_No.c: Likewise.
7113         * tests/unictype/test-categ_P.c: Likewise.
7114         * tests/unictype/test-categ_Pd.c: Likewise.
7115         * tests/unictype/test-categ_Po.c: Likewise.
7116         * tests/unictype/test-categ_S.c: Likewise.
7117         * tests/unictype/test-categ_Sc.c: Likewise.
7118         * tests/unictype/test-categ_So.c: Likewise.
7119         * tests/unictype/test-ctype_alnum.c: Likewise.
7120         * tests/unictype/test-ctype_alpha.c: Likewise.
7121         * tests/unictype/test-ctype_graph.c: Likewise.
7122         * tests/unictype/test-ctype_lower.c: Likewise.
7123         * tests/unictype/test-ctype_print.c: Likewise.
7124         * tests/unictype/test-ctype_punct.c: Likewise.
7125         * tests/unictype/test-ctype_upper.c: Likewise.
7126         * tests/unictype/test-decdigit.h: Likewise.
7127         * tests/unictype/test-digit.h: Likewise.
7128         * tests/unictype/test-numeric.h: Likewise.
7129         * tests/unictype/test-pr_alphabetic.c: Likewise.
7130         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7131         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7132         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7133         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7134         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7135         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7136         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7137         * tests/unictype/test-pr_combining.c: Likewise.
7138         * tests/unictype/test-pr_composite.c: Likewise.
7139         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7140         * tests/unictype/test-pr_dash.c: Likewise.
7141         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7142         * tests/unictype/test-pr_deprecated.c: Likewise.
7143         * tests/unictype/test-pr_diacritic.c: Likewise.
7144         * tests/unictype/test-pr_extender.c: Likewise.
7145         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7146         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7147         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7148         * tests/unictype/test-pr_id_continue.c: Likewise.
7149         * tests/unictype/test-pr_id_start.c: Likewise.
7150         * tests/unictype/test-pr_ideographic.c: Likewise.
7151         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7152         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7153         * tests/unictype/test-pr_lowercase.c: Likewise.
7154         * tests/unictype/test-pr_numeric.c: Likewise.
7155         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7156         * tests/unictype/test-pr_punctuation.c: Likewise.
7157         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7158         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7159         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7160         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7161         * tests/unictype/test-pr_uppercase.c: Likewise.
7162         * tests/unictype/test-pr_xid_continue.c: Likewise.
7163         * tests/unictype/test-pr_xid_start.c: Likewise.
7164         * tests/unictype/test-pr_zero_width.c: Likewise.
7165         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7166         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7167         changed behaviour: line breaking is now disallowed between a letter
7168         or '=' and '('.
7169         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7170         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7171         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7172         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7173         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7174         lib/uniwidth/width.c.
7175         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7176         without comments, but with the original copyright notice.
7177         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7178         changes.
7179         * lib/unictype/categ_Cc.h: Likewise.
7180         * lib/unictype/categ_Co.h: Likewise.
7181         * lib/unictype/categ_Cs.h: Likewise.
7182         * lib/unictype/categ_Lt.h: Likewise.
7183         * lib/unictype/categ_Me.h: Likewise.
7184         * lib/unictype/categ_Pc.h: Likewise.
7185         * lib/unictype/categ_Pe.h: Likewise.
7186         * lib/unictype/categ_Pf.h: Likewise.
7187         * lib/unictype/categ_Pi.h: Likewise.
7188         * lib/unictype/categ_Ps.h: Likewise.
7189         * lib/unictype/categ_Sk.h: Likewise.
7190         * lib/unictype/categ_Sm.h: Likewise.
7191         * lib/unictype/categ_Z.h: Likewise.
7192         * lib/unictype/categ_Zl.h: Likewise.
7193         * lib/unictype/categ_Zp.h: Likewise.
7194         * lib/unictype/categ_Zs.h: Likewise.
7195         * lib/unictype/ctype_blank.h: Likewise.
7196         * lib/unictype/ctype_cntrl.h: Likewise.
7197         * lib/unictype/ctype_digit.h: Likewise.
7198         * lib/unictype/ctype_space.h: Likewise.
7199         * lib/unictype/ctype_xdigit.h: Likewise.
7200         * lib/unictype/mirror.h: Likewise.
7201         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7202         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7203         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7204         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7205         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7206         * lib/unictype/pr_bidi_control.h: Likewise.
7207         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7208         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7209         * lib/unictype/pr_bidi_pdf.h: Likewise.
7210         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7211         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7212         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7213         * lib/unictype/pr_format_control.h: Likewise.
7214         * lib/unictype/pr_hex_digit.h: Likewise.
7215         * lib/unictype/pr_hyphen.h: Likewise.
7216         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7217         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7218         * lib/unictype/pr_iso_control.h: Likewise.
7219         * lib/unictype/pr_join_control.h: Likewise.
7220         * lib/unictype/pr_left_of_pair.h: Likewise.
7221         * lib/unictype/pr_line_separator.h: Likewise.
7222         * lib/unictype/pr_math.h: Likewise.
7223         * lib/unictype/pr_non_break.h: Likewise.
7224         * lib/unictype/pr_not_a_character.h: Likewise.
7225         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7226         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7227         * lib/unictype/pr_other_id_continue.h: Likewise.
7228         * lib/unictype/pr_other_id_start.h: Likewise.
7229         * lib/unictype/pr_other_lowercase.h: Likewise.
7230         * lib/unictype/pr_other_math.h: Likewise.
7231         * lib/unictype/pr_other_uppercase.h: Likewise.
7232         * lib/unictype/pr_paired_punctuation.h: Likewise.
7233         * lib/unictype/pr_paragraph_separator.h: Likewise.
7234         * lib/unictype/pr_pattern_syntax.h: Likewise.
7235         * lib/unictype/pr_pattern_white_space.h: Likewise.
7236         * lib/unictype/pr_private_use.h: Likewise.
7237         * lib/unictype/pr_quotation_mark.h: Likewise.
7238         * lib/unictype/pr_radical.h: Likewise.
7239         * lib/unictype/pr_soft_dotted.h: Likewise.
7240         * lib/unictype/pr_space.h: Likewise.
7241         * lib/unictype/pr_titlecase.h: Likewise.
7242         * lib/unictype/pr_variation_selector.h: Likewise.
7243         * lib/unictype/pr_white_space.h: Likewise.
7244         * lib/unictype/sy_c_ident.h: Likewise.
7245         * lib/unictype/sy_c_whitespace.h: Likewise.
7246         * lib/unictype/sy_java_whitespace.h: Likewise.
7247         * modules/uni*/*: Bump version number of expected libunistring version.
7248         Reported by Simon Josefsson.
7249
7250 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7251
7252         useless-if-before-free: fix typo in --help and make the internal,
7253         automatic version date update process work once again.
7254         --help output contained a NUL character instead of the
7255         backslash-zero that was intended.  Also, the "must lie within
7256         the first 8 lines" line is on line 9, and hence not getting
7257         automatically updated.
7258         * build-aux/useless-if-before-free: Fix the former by adding a
7259         backslash, and the latter by condensing the three lines of what-it-does
7260         to a single line, leaving one line of slack for the future.
7261
7262 2011-01-09  Bruno Haible  <bruno@clisp.org>
7263
7264         uniwidth/width: Fix width of U+1D173..U+1D17A.
7265         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7266         symbolic_width, output_width_property_test): New functions.
7267         (main): Invoke output_nonspacing_property, output_width_property_test.
7268         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7269         U+1D173..U+1D17A.
7270         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7271         1.
7272         * modules/uniwidth/*: Bump version number of expected libunistring
7273         version.
7274         * modules/unilbrk/*: Likewise.
7275
7276 2011-01-08  Bruno Haible  <bruno@clisp.org>
7277
7278         uninorm tests: Preserve copyright of Unicode data file.
7279         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7280         Mention modifications.
7281
7282 2011-01-08  Bruno Haible  <bruno@clisp.org>
7283
7284         gen-uni-tables: Prepare for Unicode 5.2.0.
7285         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7286         (debug_output_lbp, output_lbp): Update.
7287
7288 2011-01-08  Bruno Haible  <bruno@clisp.org>
7289
7290         unilbrk: Clarify gen-uni-tables.c code.
7291         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7292         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7293         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7294
7295 2011-01-07  Bruno Haible  <bruno@clisp.org>
7296
7297         strtod: Restore errno when successfully parsing Infinity or NaN.
7298         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7299         restore the original errno.
7300
7301 2011-01-07  Bruno Haible  <bruno@clisp.org>
7302
7303         remove test: Avoid failure on HP-UX 11.
7304         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7305
7306 2011-01-07  Bruno Haible  <bruno@clisp.org>
7307
7308         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7309         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7310         error code.
7311
7312 2011-01-07  Pádraig Brady <P@draigBrady.com>
7313
7314         ignore-value: fixup comments, and add Eric Blake
7315         as an author since he rewrote the macros.
7316         * lib/ignore-value.h (ignore_value):  State that
7317         we now support aggregates.  Also specify exactly
7318         when the GCC warn_unused_result feature was added.
7319
7320 2011-01-06  Eric Blake  <eblake@redhat.com>
7321
7322         ignore-value: support aggregate types
7323         * lib/ignore-value.h (ignore_value): Provide separate gcc
7324         definition.
7325         * modules/ignore-value-tests: New test module.
7326         * tests/test-ignore-value.c: New test.
7327
7328         maint.mk: improve sc_prohibit_strcmp regex
7329         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7330         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7331         definition of STRNEQ.
7332
7333         signal: work around Haiku issue with SIGBUS
7334         * lib/siglist.h: Add comment.
7335         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7336         strsignal's favoring of SIGSEGV.
7337         * tests/test-signal.c (main): Avoid test failure.
7338         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7339         Reported by Scott McCreary.
7340
7341         maint.mk: add pre-release check to ensure submodule commits are public
7342         * top/maint.mk (public-submodule-commit): New rule.
7343         (submodule-checks): New variable.
7344         (alpha beta stable): Depend on the variable.
7345
7346 2011-01-05  Pádraig Brady <P@draigBrady.com>
7347         and Jim Meyering  <meyering@redhat.com>
7348
7349         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7350         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7351         (ATTRIBUTE_DEPRECATED): Define.
7352         (_ignore_case): New function.
7353         (ignore_value): New macro, to replace the old function.
7354         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7355         * modules/ignore-value (Depends-on): Add stdint.
7356
7357 2011-01-04  Eric Blake  <eblake@redhat.com>
7358
7359         doc: regenerate INSTALL
7360         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7361         @firstparagraphindent support, now that autoconf dropped it.
7362         (INSTALL_PRELUDE): Reinstate old macro.
7363         * doc/install.texi: Resync from autoconf.
7364         * doc/INSTALL: Reflect recent autoconf update.
7365         * doc/INSTALL.ISO: Likewise.
7366         * doc/INSTALL.UTF-8: Likewise.
7367         Reported by Karl Berry.
7368
7369 2011-01-04  Bruce Korb  <address@hidden>
7370
7371         git-version-gen: avoid a sub-shell
7372         * build-aux/git-version-gen: Redirect stderr in `...` via
7373         "exec 2>...", rather than via an added sub-shell.
7374
7375 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7376
7377         git-version-gen: use (...) rather than sh -c '...'
7378         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7379         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7380
7381 2011-01-03  Jim Meyering  <meyering@redhat.com>
7382
7383         git-version-gen: convert leading TABs to spaces
7384         * build-aux/git-version-gen: Expand leading TABs.
7385
7386         git-version-gen: handle failed "git rev-list"
7387         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7388         from git and proceeding as if it had succeeded but printed no SHA1
7389         checksums, suppress the diagnostic and handle the failure.
7390         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7391
7392         git-version-gen: include command name in one more diagnostic
7393         * build-aux/git-version-gen: When the required .tarball-version file
7394         was missing or unreadable, you might see the diagnostic from "cat",
7395         but no trace of the name of the invoking script.  Now, you still see
7396         the diagnostic from cat, but also get one from "git-version-gen: ".
7397         Inspired by a patch from Bruce Korb.
7398
7399         update-copyright: adjust test to match changed code
7400         * tests/test-update-copyright.sh: Change test's expected output
7401         to match new actual output.
7402
7403 2011-01-02  Bruno Haible  <bruno@clisp.org>
7404
7405         getlogin_r: Avoid test failure on HP-UX 11.
7406         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7407         ERANGE when the second argument is zero.
7408         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7409         portability problem.
7410
7411 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7412
7413         * build-aux/update-copyright: doc Simon's changes
7414
7415 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7416
7417         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7418         environment variable.
7419
7420 2011-01-02  Bruno Haible  <bruno@clisp.org>
7421
7422         unigbrk: Avoid gcc warnings.
7423         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7424         unused variable.
7425         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7426         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7427         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7428         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7429         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7430         Change type of first argument to 'const char *'.
7431         (main): Remove unused variable.
7432         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7433         type of first argument to 'const char *'.
7434         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7435         Likewise.
7436         (main): Change type of variable 's'.
7437         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7438         to 'int'.
7439
7440 2011-01-02  Bruno Haible  <bruno@clisp.org>
7441
7442         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7443         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7444         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7445         bug.
7446         * lib/pwrite.c: Undo 2010-12-31 patch.
7447         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7448
7449 2011-01-02  Bruno Haible  <bruno@clisp.org>
7450
7451         pread: Fix test whether it works.
7452         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7453
7454 2011-01-02  Bruno Haible  <bruno@clisp.org>
7455
7456         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7457         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7458         ends in "6". Don't require a specific month name. Try also the locale
7459         names found on HP-UX 11 and Solaris 7.
7460
7461 2011-01-02  Bruno Haible  <bruno@clisp.org>
7462
7463         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7464         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7465         C linkage.
7466         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7467
7468 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7469
7470         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7471         for consistency, since the "cluster" term is not used elsewhere.
7472         * lib/unigbrk.in.h: Update name.
7473         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7474         * lib/unigbrk/u16-grapheme-next.c: Update name.
7475         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7476         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7477         * lib/unigbrk/u32-grapheme-next.c: Update name.
7478         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7479         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7480         * lib/unigbrk/u8-grapheme-next.c: Update name.
7481         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7482         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7483         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7484         Suggested by Bruno Haible.
7485
7486 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7487
7488         Remove module 'u8-grapheme-len' as too redundant with
7489         'u8-grapheme-next'.
7490         * modules/unigbrk/u8-grapheme-len: Delete file.
7491         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7492         * lib/unigbrk.in.h: Remove prototype for deleted function.
7493         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7494         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7495
7496         Remove module 'u16-grapheme-len' as too redundant with
7497         'u16-grapheme-next'.
7498         * modules/unigbrk/u16-grapheme-len: Delete file.
7499         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7500         * lib/unigbrk.in.h: Remove prototype for deleted function.
7501         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7502         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7503
7504         Remove module 'u32-grapheme-len' as too redundant with
7505         'u32-grapheme-next'.
7506         * modules/unigbrk/u32-grapheme-len: Delete file.
7507         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7508         * lib/unigbrk.in.h: Remove prototype for deleted function.
7509         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7510         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7511
7512         Suggested by Bruno Haible.
7513
7514 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7515
7516         * unigbrk.in.h: Fix typo: "ben" => "been".
7517         Reported by Bruno Haible.
7518
7519 2011-01-01  Jim Meyering  <meyering@redhat.com>
7520
7521         maint: update almost all copyright ranges to include 2011
7522         Run the new "make update-copyright" rule.
7523
7524 2011-01-01  Jim Meyering  <meyering@redhat.com>
7525
7526         maint: update-copyright: exempt doc/INSTALL*
7527         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7528         since they are generated.  Suggested by Bruno Haible.
7529
7530 2011-01-01  Jim Meyering  <meyering@redhat.com>
7531
7532         maint: refine the update-copyright rule
7533         * Makefile (update-copyright): Also exclude any file that includes
7534         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7535         code that merely generates the comment.
7536
7537 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7538
7539         New module 'u8-grapheme-len'.
7540         * modules/unigbrk/u8-grapheme-len: New file.
7541         * modules/unigbrk/u8-grapheme-len-tests: New file.
7542         * lib/unigbrk.in.h: Add prototype for new function.
7543         * lib/unigbrk/u8-grapheme-len.c: New file.
7544         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7545
7546         New module 'u16-grapheme-len'.
7547         * modules/unigbrk/u16-grapheme-len: New file.
7548         * modules/unigbrk/u16-grapheme-len-tests: New file.
7549         * lib/unigbrk.in.h: Add prototype for new function.
7550         * lib/unigbrk/u16-grapheme-len.c: New file.
7551         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7552
7553         New module 'u32-grapheme-len'.
7554         * modules/unigbrk/u32-grapheme-len: New file.
7555         * modules/unigbrk/u32-grapheme-len-tests: New file.
7556         * lib/unigbrk.in.h: Add prototype for new function.
7557         * lib/unigbrk/u32-grapheme-len.c: New file.
7558         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7559
7560         New module 'u8-grapheme-next'.
7561         * modules/unigbrk/u8-grapheme-next: New file.
7562         * modules/unigbrk/u8-grapheme-next-tests: New file.
7563         * lib/unigbrk.in.h: Add prototype for new function.
7564         * lib/unigbrk/u8-grapheme-next.c: New file.
7565         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7566
7567         New module 'u16-grapheme-next'.
7568         * modules/unigbrk/u16-grapheme-next: New file.
7569         * modules/unigbrk/u16-grapheme-next-tests: New file.
7570         * lib/unigbrk.in.h: Add prototype for new function.
7571         * lib/unigbrk/u16-grapheme-next.c: New file.
7572         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7573
7574         New module 'u32-grapheme-next'.
7575         * modules/unigbrk/u32-grapheme-next: New file.
7576         * modules/unigbrk/u32-grapheme-next-tests: New file.
7577         * lib/unigbrk.in.h: Add prototype for new function.
7578         * lib/unigbrk/u32-grapheme-next.c: New file.
7579         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7580
7581         New module 'u8-grapheme-prev'.
7582         * modules/unigbrk/u8-grapheme-prev: New file.
7583         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7584         * lib/unigbrk.in.h: Add prototype for new function.
7585         * lib/unigbrk/u8-grapheme-prev.c: New file.
7586         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7587
7588         New module 'u16-grapheme-prev'.
7589         * modules/unigbrk/u16-grapheme-prev: New file.
7590         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7591         * lib/unigbrk.in.h: Add prototype for new function.
7592         * lib/unigbrk/u16-grapheme-prev.c: New file.
7593         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7594
7595         New module 'u32-grapheme-prev'.
7596         * modules/unigbrk/u32-grapheme-prev: New file.
7597         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7598         * lib/unigbrk.in.h: Add prototype for new function.
7599         * lib/unigbrk/u32-grapheme-prev.c: New file.
7600         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7601
7602         New module 'u8-grapheme-breaks'.
7603         * modules/unigbrk/u8-grapheme-breaks: New file.
7604         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7605         * lib/unigbrk.in.h: Add prototype for new function.
7606         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7607         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7608
7609         New module 'u16-grapheme-breaks'.
7610         * modules/unigbrk/u16-grapheme-breaks: New file.
7611         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7612         * lib/unigbrk.in.h: Add prototype for new function.
7613         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7614         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7615
7616         New module 'u32-grapheme-breaks'.
7617         * modules/unigbrk/u32-grapheme-breaks: New file.
7618         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7619         * lib/unigbrk.in.h: Add prototype for new function.
7620         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7621         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7622
7623         New module 'ulc-grapheme-breaks'.
7624         * modules/unigbrk/ulc-grapheme-breaks: New file.
7625         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7626         * m4/locale-ar.m4: New file.
7627         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7628         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7629         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7630
7631 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7632
7633         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7634         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7635         modified how this file was generated before I initially submitted
7636         the module, but failed to regenerate it.  This meant that several
7637         of the level2 entries were wrong.
7638         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7639         Remove the division-by-2 that is folded into the table now that
7640         gbrkprop.h has been regenerated properly.  Now -1 entries are
7641         handled correctly.
7642
7643         New module 'unigbrk/uc-gbrk-prop-tests'.
7644         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7645         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7646         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7647         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7648
7649 2011-01-01  Bruno Haible  <bruno@clisp.org>
7650
7651         Avoid use of hexadecimal escapes.
7652         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7653         instead of hexadecimal escapes.
7654
7655 2011-01-01  Jim Meyering  <meyering@redhat.com>
7656
7657         maint: new rule to update copyright year ranges
7658         * Makefile (update-copyright): New rule.
7659
7660         maint: indent with TABs in Makefile
7661         * Makefile: Expand leading sequences of spaces to TABs
7662
7663         version-etc: update the copyright year it reports
7664         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7665
7666 2010-12-31  Bruno Haible  <bruno@clisp.org>
7667
7668         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7669         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7670         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7671         zero.
7672
7673 2010-12-31  Bruno Haible  <bruno@clisp.org>
7674
7675         pwrite: Work around HP-UX 11.11 bug.
7676         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7677         works and set REPLACE_PWRITE if not.
7678         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7679         function.
7680         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7681
7682 2010-12-31  Bruno Haible  <bruno@clisp.org>
7683
7684         pread: Work around HP-UX 11 bugs.
7685         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7686         and set REPLACE_PREAD if not.
7687         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7688
7689 2010-12-31  Eric Blake  <eblake@redhat.com>
7690
7691         nl_langinfo: fix YESEXPR on Irix 6.5
7692         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7693         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7694         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7695         it.
7696
7697 2010-12-31  Bruno Haible  <bruno@clisp.org>
7698
7699         iconv: Document HP-UX 11 bug.
7700         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7701
7702 2010-12-31  Bruno Haible  <bruno@clisp.org>
7703
7704         ldexpl: Fix link error on HP-UX 11.
7705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7706         LDEXPL_LIBM, using $ISNANL_LIBM.
7707
7708 2010-12-31  Eric Blake  <eblake@redhat.com>
7709
7710         ftello: avoid compilation failure with SunStudio c89
7711         * lib/ftello.c (ftello): Use lseek, not llseek.
7712
7713         tests: avoid failing coreutils tests on cygwin
7714         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7715         (create_exe_shims_): Return 0 when skipping.
7716
7717 2010-12-31  Bruno Haible  <bruno@clisp.org>
7718
7719         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7720         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7721
7722 2010-12-31  Bruno Haible  <bruno@clisp.org>
7723
7724         waitpid: Fix link error in C++ mode.
7725         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7726
7727 2010-12-31  Bruno Haible  <bruno@clisp.org>
7728
7729         isnan: Use GCC built-ins when possible.
7730         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7731         __builtin_isnan.
7732         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7733         (isnan): Define using GCC built-ins for GCC >= 4.0.
7734
7735 2010-12-31  Bruno Haible  <bruno@clisp.org>
7736
7737         isnand: Fix mistake.
7738         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7739         __builtin_isnand.
7740
7741 2010-12-31  Bruno Haible  <bruno@clisp.org>
7742
7743         open: Avoid C++ error on HP-UX 11.
7744         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7745
7746 2010-12-31  Bruno Haible  <bruno@clisp.org>
7747
7748         time_r: Add missing declarations on HP-UX 11.
7749         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7750         instead of HAVE_LOCALTIME_R.
7751         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7752         HAVE_LOCALTIME_R always.
7753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7754         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7755         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7756         HAVE_LOCALTIME_R.
7757         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7758         * doc/posix-functions/localtime_r.texi: Likewise.
7759
7760 2010-12-29  Eric Blake  <eblake@redhat.com>
7761
7762         mountlist: tweak previous commit
7763         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7764         Reported by Paul Eggert.
7765
7766         mountlist: fix local drive detection on cygwin
7767         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7768         that works for cygwin.
7769
7770 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         ftoastr, snprintf: ftoastr + snprintf module
7773         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7774         since the snprintf module now should be good enough here.
7775         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7776         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7777         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7778         GNULIB_SNPRINTF only for the test directory, and the latter
7779         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7780         seems to suffice by itself.
7781
7782 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         alloca: one step towards thread-safety
7785         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7786         need for a static variable.  All callers changed.  This does not
7787         make the alloca replacement thread-safe, but it's one step.
7788
7789         tests: minor indenting change
7790         * tests/init.sh: Sync from coreutils housekeeping patch
7791         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7792         to keep lines within 80 columns.
7793
7794 2010-12-28  Jim Meyering  <meyering@redhat.com>
7795
7796         regex: don't infloop on persistent failing calloc
7797         * lib/regexec.c (build_trtable): Return failure indication upon
7798         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7799         In glibc, this was fixed for version 2.13:
7800         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7801
7802 2010-12-28  Bruno Haible  <bruno@clisp.org>
7803             Paul Eggert <eggert@cs.ucla.edu>
7804
7805         linkat: Make implementation robust against system behaviour variations.
7806         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7807         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7808         way, and to -2 if it needs a generic runtime test.
7809         * lib/linkat.c (solaris_optimized_link_immediate,
7810         solaris_optimized_link_follow): New functions.
7811         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7812         (check_same_link): Use it.
7813
7814 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7815
7816         New module 'unigbrk/base'.
7817         * modules/unigbrk/base: New file.
7818         * lib/unigbrk.in.h: New file.
7819
7820         New module 'unigbrk/uc-gbrk-prop'.
7821         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7822         * modules/unigbrk/uc-gbrk-prop: New file.
7823         * lib/unigbrk/gbrkprop.h: New file.
7824         * lib/unigbrk/uc-gbrk-prop.c: New file.
7825
7826         New module 'unigbrk/uc-is-grapheme-break'.
7827         * modules/unigbrk/uc-is-grapheme-break: New file.
7828         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7829         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7830         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7831         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7832         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7833
7834         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7835
7836 2010-12-27  Bruno Haible  <bruno@clisp.org>
7837
7838         linkat test: Avoid failure on Solaris 11 2010-11.
7839         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7840
7841 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7842
7843         utimens: work around glibc rounding bug on more platforms
7844         * lib/utimens.c (fdutimens): Work around rounding bug even if
7845         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7846         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7847
7848 2010-12-27  Bruno Haible  <bruno@clisp.org>
7849
7850         select tests: Improve comments.
7851         * tests/test-select.c (do_select): Add comments.
7852
7853 2010-12-27  Bruno Haible  <bruno@clisp.org>
7854
7855         select tests: Safer way of handling timeout.
7856         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7857         at every invocation.
7858
7859 2010-12-27  Bruno Haible  <bruno@clisp.org>
7860
7861         select tests: Use 'bool' where appropriate.
7862         * tests/test-select.c (connect_to_socket): Change argument type to
7863         'bool'.
7864
7865 2010-12-27  Bruno Haible  <bruno@clisp.org>
7866
7867         select tests: Use existing modules.
7868         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7869         (configure.ac): Don't test for unistd.h.
7870         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7871         declared in <unistd.h>.
7872
7873 2010-12-27  Bruno Haible  <bruno@clisp.org>
7874
7875         mbrtowc: Work around a Solaris 7 bug.
7876         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7877         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7878         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7879         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7880         MBRTOWC_NULL_ARG1_BUG.
7881         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7882         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7883         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7884         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7885
7886 2010-12-27  Jim Meyering  <meyering@redhat.com>
7887
7888         read-file.c: tweak syntax
7889         * lib/read-file.c (fread_file): Remove space after "*" in function
7890         definitions.
7891
7892 2010-12-27  Bruno Haible  <bruno@clisp.org>
7893
7894         times test: Avoid gcc warnings on OSF/1.
7895         * tests/test-times.c (main): Cast printf arguments from clock_t to
7896         'long int'.
7897
7898 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7899
7900         utimens: work around glibc rounding bug on older Linux kernels
7901         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7902         on Linux with a glibc whose utimes might not work, then work
7903         around a longstanding glibc bug involving rounding rather than
7904         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7906
7907 2010-12-26  Bruno Haible  <bruno@clisp.org>
7908
7909         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7910         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7911         _GL_CXXALIAS_SYS.
7912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7913
7914 2010-12-26  Bruno Haible  <bruno@clisp.org>
7915
7916         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7917         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7919         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7920         looking for the declaration.
7921         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7922         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7923         problem.
7924         * doc/posix-functions/inet_pton.texi: Likewise.
7925
7926 2010-12-26  Bruno Haible  <bruno@clisp.org>
7927
7928         arpa_inet: Use the common idioms with C++ support.
7929         * lib/arpa_inet.in.h: Include c++defs.h.
7930         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7931         support.
7932         * modules/arpa_inet (Depends-on): Add c++defs.
7933         (Makefile.am): Substitute the contents of c++defs.h.
7934         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7935         * modules/arpa_inet-c++-tests: New file.
7936         * tests/test-arpa_inet-c++.cc: New file.
7937
7938 2010-12-25  Bruno Haible  <bruno@clisp.org>
7939
7940         Fix more C++ link errors on Solaris 8.
7941         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7942         $(LIB_EACCESS).
7943         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7944         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7945         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7946         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7947         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7948
7949 2010-12-25  Bruno Haible  <bruno@clisp.org>
7950
7951         printf-posix: Fix link error when a non-GCC compiler is used.
7952         * lib/stdio.in.h (printf): When not using GCC, override printf
7953         correctly.
7954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7955
7956 2010-12-25  Bruno Haible  <bruno@clisp.org>
7957
7958         strerror_r-posix: Update doc.
7959         * doc/posix-functions/strerror_r.texi: Update doc about the return
7960         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7961
7962 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         utimens: simplify the logic of the previous change
7965         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7966         This should not affect whether the test succeeds or fails.
7967
7968         utimens: configure better on hosts with NFS clock skew
7969         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7970         uses the clock of the local host.  It might use the clock of the
7971         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7973
7974 2010-12-25  Bruno Haible  <bruno@clisp.org>
7975
7976         ptsname test: Avoid failure on Solaris.
7977         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7978         open a pseudo-terminal; don't use BSD-style ptys.
7979         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7980
7981 2010-12-25  Bruno Haible  <bruno@clisp.org>
7982
7983         ptsname: Avoid ERANGE failure on some systems.
7984         * lib/ptsname.c (buffer): Increase size.
7985
7986 2010-12-25  Bruno Haible  <bruno@clisp.org>
7987
7988         rename, renameat: Avoid test failures at NFS mounted locations.
7989         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7990         so that subsequent mkdir calls succeed.
7991
7992 2010-12-25  Bruno Haible  <bruno@clisp.org>
7993
7994         iswblank: Fix C++ link error on Solaris 8.
7995         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7996         _GL_FUNCDECL_SYS.
7997
7998 2010-12-25  Bruno Haible  <bruno@clisp.org>
7999
8000         unistd: Fix C++ link error on Solaris 8.
8001         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8002
8003 2010-12-25  Bruno Haible  <bruno@clisp.org>
8004
8005         readlink doc: Mention an old glibc bug.
8006         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8007
8008 2010-12-25  Bruno Haible  <bruno@clisp.org>
8009
8010         fcntl-h: Fix for use of C++ on glibc systems.
8011         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8012         also on glibc systems in C++ mode.
8013         Reported by Gary V. Vaughan <gary@gnu.org>.
8014
8015 2010-12-25  Bruno Haible  <bruno@clisp.org>
8016
8017         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8018         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8019
8020 2010-12-25  Bruno Haible  <bruno@clisp.org>
8021
8022         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8023         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8024         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8025         test whether truncl works according to ISO C 99 with IEC 60559.
8026         * m4/truncl-ieee.m4: New file.
8027         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8028         m4/signbit.m4.
8029         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8030
8031 2010-12-25  Bruno Haible  <bruno@clisp.org>
8032
8033         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8034         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8035         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8036         test whether ceill works according to ISO C 99 with IEC 60559.
8037         * m4/ceill-ieee.m4: New file.
8038         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8039         m4/signbit.m4.
8040         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8041
8042 2010-12-25  Bruno Haible  <bruno@clisp.org>
8043
8044         Ensure all prerequisites of <wchar.h> are included.
8045         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8046         before <wchar.h>.
8047         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8048         gl_MBRLEN_NUL_RETVAL): Likewise.
8049         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8050         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8051         AC_FUNC_MBRTOWC): Likewise.
8052         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8053         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8055         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8056         Likewise.
8057         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8058         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8059         (gl_WCHAR_H): Improve comments.
8060         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8061
8062 2010-12-25  Bruno Haible  <bruno@clisp.org>
8063
8064         strtok_r: Fix C syntax error in autoconf macro.
8065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8066         characters in test program.
8067
8068 2010-12-24  Bruno Haible  <bruno@clisp.org>
8069
8070         ceil, trunc, round: Fix gcc warnings.
8071         * lib/ceil.c (MIN): Undefine before redefining.
8072         * lib/trunc.c (MIN): Likewise.
8073         * lib/round.c (MIN): Likewise.
8074         Include <math.h> first.
8075
8076 2010-12-24  Bruno Haible  <bruno@clisp.org>
8077
8078         select tests: Avoid failures on OSF/1 5.1.
8079         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8080         failure of closing the last socket; it may fail with ECONNRESET.
8081
8082 2010-12-24  Eric Blake  <eblake@redhat.com>
8083
8084         stdint: avoid HP-UX 10.20 preprocessor bug
8085         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8086         than #if.
8087         * tests/test-floor2.c (main): Likewise.
8088         Reported by Peter O'Gorman.
8089
8090         pipe: make obsoletion transition easier
8091         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8092         * modules/pipe (Files): Include revived file.
8093         (Include): Drop reference, to mirror getdate's behavior.
8094
8095 2010-12-24  Bruno Haible  <bruno@clisp.org>
8096
8097         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8098         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8099         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8100         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8101
8102 2010-12-24  Bruno Haible  <bruno@clisp.org>
8103
8104         gethostname: Ensure declaration on NonStop Kernel.
8105         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8107
8108 2010-12-24  Bruno Haible  <bruno@clisp.org>
8109
8110         sys_select: Ensure all necessary types on NonStop Kernel.
8111         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8112         include <sys/time.h>.
8113         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8114         NonStop Kernel.
8115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8116
8117 2010-12-24  Bruno Haible  <bruno@clisp.org>
8118
8119         sys_select: Remove unneeded include.
8120         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8121         have <sys/select.h>.
8122
8123 2010-12-24  Bruno Haible  <bruno@clisp.org>
8124
8125         gethostname: Provide a fallback for HOST_NAME_MAX.
8126         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8127         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8128         instead.
8129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8130
8131 2010-12-24  Bruno Haible  <bruno@clisp.org>
8132
8133         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8134         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8135         (SA_RESTART): Likewise.
8136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8137
8138 2010-12-24  Bruno Haible  <bruno@clisp.org>
8139
8140         signal: Define NSIG.
8141         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8142         * tests/test-signal.c (nsig): New variable.
8143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8144
8145 2010-12-24  Bruno Haible  <bruno@clisp.org>
8146
8147         rename, renameat: Avoid test failures on OSF/1 5.1.
8148         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8149         alternative error codes.
8150         * tests/test-renameat.c (main): Likewise.
8151
8152 2010-12-24  Bruno Haible  <bruno@clisp.org>
8153
8154         *printf: Detect large precisions bug on Solaris 10/SPARC.
8155         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8156         by Paul Eggert.
8157         * tests/test-snprintf-posix.h (test_function): Add this test code here
8158         too.
8159         * tests/test-sprintf-posix.h (test_function): Likewise.
8160         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8161         * tests/test-vasprintf-posix.c (test_function): Likewise.
8162         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8163         around by gnulib.
8164         * doc/posix-functions/printf.texi: Likewise.
8165         * doc/posix-functions/snprintf.texi: Likewise.
8166         * doc/posix-functions/sprintf.texi: Likewise.
8167         * doc/posix-functions/vfprintf.texi: Likewise.
8168         * doc/posix-functions/vprintf.texi: Likewise.
8169         * doc/posix-functions/vsnprintf.texi: Likewise.
8170         * doc/posix-functions/vsprintf.texi: Likewise.
8171         * doc/posix-functions/dprintf.texi: Undo last commit.
8172         * doc/posix-functions/vdprintf.texi: Likewise.
8173
8174 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         tests: port test-fdutimensat.c to Solaris 8
8177         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8178         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8179         On Solaris 8, it fails with errno == ENOSYS, because there is no
8180         futimens (so it can't use the fd), and there is no lutimens (so it
8181         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8182
8183         vsnprintf: make more consistent with snprintf; doc fixes
8184
8185         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8186         the byte count return problem was promoted from the snprintf-posix
8187         to the snprintf module.
8188         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8189         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8190         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8191         * tests/test-snprintf.c (main): Check the byte count returned.
8192         * tests/test-vsnprintf.c (main): Likewise.
8193
8194 2010-12-23  Eric Blake  <eblake@redhat.com>
8195
8196         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8197         * modules/sigpipe (License): Relax license.
8198
8199 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8200
8201         doc: document Solaris printf bug with large float precisions
8202         * doc/posix-functions/dprintf.texi (dprintf):
8203         * doc/posix-functions/fprintf.texi (fprintf):
8204         * doc/posix-functions/printf.texi (printf):
8205         * doc/posix-functions/snprintf.texi (snprintf):
8206         * doc/posix-functions/sprintf.texi (sprintf):
8207         * doc/posix-functions/vdprintf.texi (vdprintf):
8208         * doc/posix-functions/vfprintf.texi (vfprintf):
8209         * doc/posix-functions/vprintf.texi (vprintf):
8210         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8211         * doc/posix-functions/vsprintf.texi (vsprintf):
8212         Mention that these functions mishandle large floating point
8213         precisions on Solaris 10.  The same bug is also present in Solaris
8214         8, and I assume earlier.  This causes "cd gnulib-tests; make
8215         check" to fail on Solaris 8 (and I assume, later) when building
8216         the latest coreutils, in test-vasprintf-posix's call to
8217         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8218         the wide flavors (e.g., wprintf) so this patch just updates the
8219         documentation for the narrow ones.
8220
8221         test-posixtm.c: add two tests
8222         * tests/test-posixtm.c: Add two tests, to highlight the
8223         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8224         around this bug; this is merely to document it.
8225
8226 2010-12-22  Bruno Haible  <bruno@clisp.org>
8227
8228         getlogin_r: Work around portability problem on OSF/1.
8229         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8230         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8231         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8232         test for a truncated result.
8233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8234         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8235         * modules/getlogin_r (Depends-on): Add memchr.
8236         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8237
8238 2010-12-22  Bruno Haible  <bruno@clisp.org>
8239
8240         ptsname: Avoid test failure on OSF/1 5.1.
8241         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8242         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8243         (same_slave): New function.
8244         (main): Use it to compare ptsname's result with the expected file name.
8245
8246 2010-12-22  Bruno Haible  <bruno@clisp.org>
8247
8248         Port extended stdio modules to HP NonStop Kernel.
8249         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8250         macros.
8251         * lib/fbufmode.c: Update comments.
8252         * lib/fflush.c: Likewise.
8253         * lib/fpurge.c: Likewise.
8254         * lib/freadable.c: Likewise.
8255         * lib/freadahead.c: Likewise.
8256         * lib/freading.c: Likewise.
8257         * lib/freadptr.c: Likewise.
8258         * lib/freadseek.c: Likewise.
8259         * lib/fseeko.c: Likewise.
8260         * lib/fseterr.c: Likewise.
8261         * lib/fwritable.c: Likewise.
8262         * lib/fwriting.c: Likewise.
8263         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8264
8265 2010-12-22  Bruno Haible  <bruno@clisp.org>
8266
8267         ttyname_r: Work around bug on OSF/1 5.1.
8268         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8269         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8270         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8271         present.
8272         * lib/ttyname_r.c (ttyname_r): Update comments.
8273
8274 2010-12-22  Bruno Haible  <bruno@clisp.org>
8275
8276         round: Implement result sign according to IEEE 754.
8277         * lib/round.c (MIN, MINUS_ZERO): New macros.
8278         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8279         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8280         * tests/test-round-ieee.c (main): Likewise.
8281         * tests/test-roundl-ieee.c (main): Likewise.
8282
8283         trunc: Implement result sign according to IEEE 754.
8284         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8285         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8286         * tests/test-trunc2.c: Include minus-zero.h.
8287         (MINUS_ZERO): New macro.
8288         (trunc_reference): Keep in sync with lib/trunc.c.
8289         * tests/test-truncf2.c: Include minus-zero.h.
8290         (MINUS_ZERO): New macro.
8291         (truncf_reference): Keep in sync with lib/trunc.c.
8292         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8293         * tests/test-trunc-ieee.c (main): Likewise.
8294         * tests/test-truncl-ieee.c (main): Likewise.
8295
8296         ceil: Implement result sign according to IEEE 754.
8297         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8298         (FUNC): Return -0.0 for -1 < x < 0.
8299         * tests/test-ceil2.c: Include minus-zero.h.
8300         (MINUS_ZERO): New macro.
8301         (ceil_reference): Keep in sync with lib/ceil.c.
8302         * tests/test-ceilf2.c: Include minus-zero.h.
8303         (MINUS_ZERO): New macro.
8304         (ceilf_reference): Keep in sync with lib/ceil.c.
8305         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8306         * tests/test-ceil-ieee.c (main): Likewise.
8307         * tests/test-ceill-ieee.c (main): Likewise.
8308
8309         floor: Implement result sign according to IEEE 754.
8310         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8311         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8312         * tests/test-floorf2.c (floorf_reference): Likewise.
8313         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8314         * tests/test-floor-ieee.c (main): Likewise.
8315         * tests/test-floorl-ieee.c (main): Likewise.
8316
8317 2010-12-22  Bruno Haible  <bruno@clisp.org>
8318
8319         getaddrinfo: Update doc.
8320         * doc/posix-functions/gai_strerror.texi: Return type is also different
8321         on AIX and HP-UX.
8322
8323 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8324
8325         getaddrinfo, inet_ntop: Update doc for Solaris.
8326         * doc/posix-functions/gai_strerror.texi: Return type is also an
8327         issue on Solaris 9 and earlier.
8328         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8329         on Solaris 10 and earlier.
8330
8331 2010-12-21  Bruno Haible  <bruno@clisp.org>
8332
8333         New module 'roundl-ieee'.
8334         * modules/roundl-ieee: New file.
8335         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8336         test whether roundl works according to ISO C 99 with IEC 60559.
8337         * m4/roundl-ieee.m4: New file.
8338         * modules/roundl-ieee-tests: New file.
8339         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8340         * tests/test-roundl.c (main): Remove signbit tests.
8341         * modules/roundl-tests (Depends-on): Remove signbit.
8342         * doc/posix-functions/roundl.texi: Mention the new module.
8343
8344 2010-12-21  Bruno Haible  <bruno@clisp.org>
8345
8346         New module 'truncl-ieee'.
8347         * modules/truncl-ieee: New file.
8348         * modules/truncl-ieee-tests: New file.
8349         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8350         * tests/test-truncl.c (main): Remove signbit tests.
8351         * modules/truncl-tests (Depends-on): Remove signbit.
8352         * doc/posix-functions/truncl.texi: Mention the new module.
8353
8354 2010-12-21  Bruno Haible  <bruno@clisp.org>
8355
8356         New module 'ceill-ieee'.
8357         * modules/ceill-ieee: New file.
8358         * modules/ceill-ieee-tests: New file.
8359         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8360         * tests/test-ceill.c (main): Remove signbit tests.
8361         * modules/ceill-tests (Depends-on): Remove signbit.
8362         * doc/posix-functions/ceill.texi: Mention the new module.
8363
8364 2010-12-21  Bruno Haible  <bruno@clisp.org>
8365
8366         New module 'floorl-ieee'.
8367         * modules/floorl-ieee: New file.
8368         * modules/floorl-ieee-tests: New file.
8369         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8370         * tests/test-floorl.c (main): Remove signbit tests.
8371         * modules/floorl-tests (Depends-on): Remove signbit.
8372         * doc/posix-functions/floorl.texi: Mention the new module.
8373
8374 2010-12-21  Bruno Haible  <bruno@clisp.org>
8375
8376         New module 'round-ieee'.
8377         * modules/round-ieee: New file.
8378         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8379         whether round works according to ISO C 99 with IEC 60559.
8380         * m4/round-ieee.m4: New file.
8381         * modules/round-ieee-tests: New file.
8382         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8383         * tests/test-round1.c (main): Remove signbit tests.
8384         * modules/round-tests (Depends-on): Remove 'signbit'.
8385         * doc/posix-functions/round.texi: Mention the new module.
8386
8387 2010-12-21  Bruno Haible  <bruno@clisp.org>
8388
8389         New module 'trunc-ieee'.
8390         * modules/trunc-ieee: New file.
8391         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8392         whether trunc works according to ISO C 99 with IEC 60559.
8393         * m4/trunc-ieee.m4: New file.
8394         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8396         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8397         * modules/trunc-ieee-tests: New file.
8398         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8399         * tests/test-trunc1.c (main): Remove signbit tests.
8400         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8401         * doc/posix-functions/trunc.texi: Mention the new module.
8402
8403 2010-12-21  Bruno Haible  <bruno@clisp.org>
8404
8405         New module 'ceil-ieee'.
8406         * modules/ceil-ieee: New file.
8407         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8408         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8409         ISO C 99 with IEC 60559.
8410         * m4/ceil-ieee.m4: New file.
8411         * modules/ceil (Files): Add lib/ceil.c.
8412         (Depends-on): Add 'float'.
8413         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8414         * lib/math.in.h (ceil): New declaration.
8415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8416         REPLACE_CEIL.
8417         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8418         * modules/ceil-ieee-tests: New file.
8419         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8420         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8421         * doc/posix-functions/ceil.texi: Mention the new module.
8422
8423 2010-12-21  Bruno Haible  <bruno@clisp.org>
8424
8425         New module 'floor-ieee'.
8426         * modules/floor-ieee: New file.
8427         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8428         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8429         ISO C 99 with IEC 60559.
8430         * m4/floor-ieee.m4: New file.
8431         * modules/floor (Files): Add lib/floor.c.
8432         (Depends-on): Add 'float'.
8433         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8434         * lib/math.in.h (floor): New declaration.
8435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8436         REPLACE_FLOOR.
8437         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8438         * modules/floor-ieee-tests: New file.
8439         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8440         * tests/test-math-c++.cc: Check the signature of 'floor'.
8441         * doc/posix-functions/floor.texi: Mention the new module.
8442
8443 2010-12-21  Bruno Haible  <bruno@clisp.org>
8444
8445         New module 'roundf-ieee'.
8446         * modules/roundf-ieee: New file.
8447         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8448         test whether roundf works according to ISO C 99 with IEC 60559.
8449         * m4/roundf-ieee.m4: New file.
8450         * modules/roundf-ieee-tests: New file.
8451         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8452         * tests/test-roundf1.c (main): Remove signbit tests.
8453         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8454         * doc/posix-functions/roundf.texi: Mention the new module.
8455
8456 2010-12-21  Bruno Haible  <bruno@clisp.org>
8457
8458         New module 'truncf-ieee'.
8459         * modules/truncf-ieee: New file.
8460         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8461         test whether truncf works according to ISO C 99 with IEC 60559.
8462         * m4/truncf-ieee.m4: New file.
8463         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8465         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8466         * modules/truncf-ieee-tests: New file.
8467         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8468         * tests/test-truncf1.c (main): Remove signbit tests.
8469         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8470         * doc/posix-functions/truncf.texi: Mention the new module.
8471
8472 2010-12-21  Bruno Haible  <bruno@clisp.org>
8473
8474         New module 'ceilf-ieee'.
8475         * modules/ceilf-ieee: New file.
8476         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8477         test whether ceilf works according to ISO C 99 with IEC 60559.
8478         * m4/ceilf-ieee.m4: New file.
8479         * modules/ceilf-ieee-tests: New file.
8480         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8481         * tests/test-ceilf1.c (main): Remove signbit tests.
8482         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8483         * doc/posix-functions/ceilf.texi: Mention the new module.
8484
8485 2010-12-21  Bruno Haible  <bruno@clisp.org>
8486
8487         New module 'floorf-ieee'.
8488         * modules/floorf-ieee: New file.
8489         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8490         test whether floorf works according to ISO C 99 with IEC 60559.
8491         * m4/floorf-ieee.m4: New file.
8492         * modules/floorf-ieee-tests: New file.
8493         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8494         * tests/test-floorf1.c (main): Remove signbit tests.
8495         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8496         * doc/posix-functions/floorf.texi: Mention the new module.
8497
8498 2010-12-21  Bruno Haible  <bruno@clisp.org>
8499
8500         Support for minus zero in autoconf macros.
8501         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8502         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8503         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8504         * tests/minus-zero.h: Update comments.
8505
8506 2010-12-21  Bruno Haible  <bruno@clisp.org>
8507
8508         Tests for module 'ceil'.
8509         * modules/ceil-tests: New file.
8510         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8511         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8512
8513 2010-12-21  Bruno Haible  <bruno@clisp.org>
8514
8515         Tests for module 'floor'.
8516         * modules/floor-tests: New file.
8517         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8518         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8519
8520 2010-12-21  Bruno Haible  <bruno@clisp.org>
8521
8522         math: Fix indentation.
8523         * lib/math.in.h (floorf): Fix indentation.
8524
8525 2010-12-21  Bruno Haible  <bruno@clisp.org>
8526
8527         Fix cross-compilation guesses on Solaris.
8528         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8529         not match "solaris2.10".
8530         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8531         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8532         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8533
8534 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8535
8536         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8537         This fixes a problem observed with the latest coreutils snapshot
8538         that caused a test to fail on Solaris 8.  src/csplit.c's call
8539         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8540         earlier, instead of returning the number of bytes that would have
8541         been generated; this causes csplit to incorrectly report memory
8542         exhaustion.
8543         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8544         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8545         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8546         comments to match.
8547         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8548         Fix typo in matching older versions of Solaris: "solaris2.10"
8549         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8550         only for guessing while cross-compiling.
8551         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8552
8553 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8554
8555         ftoastr: fix comment again
8556         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8558         Also, simplify example a bit by using flags = 0.
8559
8560 2010-12-20  Bruno Haible  <bruno@clisp.org>
8561
8562         round*, trunc*: Update documentation regarding glibc.
8563         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8564         * doc/posix-functions/round.texi: Likewise.
8565         * doc/posix-functions/roundl.texi: Likewise.
8566         * doc/posix-functions/truncf.texi: Likewise.
8567         * doc/posix-functions/trunc.texi: Likewise.
8568         * doc/posix-functions/truncl.texi: Likewise.
8569
8570 2010-12-20  Bruno Haible  <bruno@clisp.org>
8571
8572         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8573         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8574         * doc/posix-functions/round.texi: Likewise.
8575         * doc/posix-functions/roundl.texi: Likewise.
8576
8577 2010-12-20  Bruno Haible  <bruno@clisp.org>
8578
8579         ttyname_r: Add missing declaration on HP-UX 11.
8580         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8581         HAVE_TTYNAME_R.
8582         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8583         declared. Set HAVE_TTYNAME_R always.
8584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8585         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8586         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8587         HAVE_TTYNAME_R.
8588         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8589
8590 2010-12-20  Bruno Haible  <bruno@clisp.org>
8591
8592         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8593         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8594         * doc/posix-functions/getlogin_r.texi: Likewise.
8595         * tests/test-getlogin.c: Include <errno.h>.
8596         (main): Avoid test failure on HP-UX 11.11.
8597         * tests/test-getlogin_r.c (main): Likewise.
8598
8599 2010-12-20  Bruno Haible  <bruno@clisp.org>
8600
8601         getlogin_r: Add missing declaration on HP-UX 11.
8602         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8603         declared also when it exists as a function.
8604         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8605
8606 2010-12-20  Bruno Haible  <bruno@clisp.org>
8607
8608         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8609         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8610         through wcrtomb.
8611
8612 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8613
8614         ftoastr: fix comment
8615         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8617
8618 2010-12-19  Bruno Haible  <bruno@clisp.org>
8619
8620         isnan: Ensure it is a macro.
8621         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8622         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8623         Solaris.
8624
8625 2010-12-19  Bruno Haible  <bruno@clisp.org>
8626
8627         ldexpl test: Fix link error on OSF/1 5.1.
8628         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8629
8630 2010-12-19  Bruno Haible  <bruno@clisp.org>
8631
8632         wctype: Make it work in C++ mode on OSF/1 5.1.
8633         * lib/wctype.in.h (iswblank): Declare but not define here.
8634         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8635         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8636         * modules/wctype (Files): Add lib/iswblank.c.
8637
8638 2010-12-19  Bruno Haible  <bruno@clisp.org>
8639
8640         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8641         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8642         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8643
8644 2010-12-19  Bruno Haible  <bruno@clisp.org>
8645
8646         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8648         _POSIX_PII_SOCKET.
8649         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8650         * doc/posix-functions/recvfrom.texi: Likewise.
8651         * doc/posix-functions/send.texi: Likewise.
8652         * doc/posix-functions/sendto.texi: Likewise.
8653
8654 2010-12-19  Bruno Haible  <bruno@clisp.org>
8655
8656         tcgetsid: Add missing declaration on OSF/1 5.1.
8657         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8658         HAVE_TCGETSID.
8659         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8660         Don't set HAVE_TCGETSID.
8661         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8662         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8663         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8664         HAVE_TCGETSID.
8665         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8666
8667 2010-12-19  Bruno Haible  <bruno@clisp.org>
8668
8669         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8670         * lib/stdio.in.h: During the include_next statement, let recursive
8671         includes of this file include only the system header file.
8672
8673 2010-12-19  Bruno Haible  <bruno@clisp.org>
8674
8675         iconv_open: Fix regression from 2010-12-04.
8676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8677         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8678
8679 2010-12-19  Bruno Haible  <bruno@clisp.org>
8680
8681         stdbool test: Avoid a gcc warning.
8682         * tests/test-stdbool.c (main): Fail if e1 is false.
8683         Reported by Jim Meyering.
8684
8685 2010-12-19  Jim Meyering  <meyering@redhat.com>
8686
8687         setenv: restore to working order
8688         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8689         mistakenly removed.
8690         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8691         HAVE_SETENV.
8692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8693         HAVE_SETENV.
8694
8695 2010-12-19  Bruno Haible  <bruno@clisp.org>
8696
8697         Document some different function declarations on OSF/1 5.1.
8698         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8699         * doc/posix-functions/inet_ntop.texi: Likewise.
8700         * doc/posix-functions/gethostname.texi: Likewise.
8701         * lib/unistd.in.h (gethostname): Update comment.
8702
8703 2010-12-19  Bruno Haible  <bruno@clisp.org>
8704
8705         doc: Mention vasprintf-posix module.
8706         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8707         the 'vasprintf-posix' module.
8708         * doc/glibc-functions/vasprintf.texi: Likewise.
8709
8710 2010-12-19  Bruno Haible  <bruno@clisp.org>
8711
8712         unsetenv: Add missing declaration on OSF/1 5.1.
8713         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8715         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8717         not HAVE_UNSETENV.
8718         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8719         HAVE_UNSETENV.
8720         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8721
8722 2010-12-19  Bruno Haible  <bruno@clisp.org>
8723
8724         setenv: Add missing declaration on OSF/1 5.1.
8725         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8727         declared. Don't set HAVE_SETENV.
8728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8729         not HAVE_SETENV.
8730         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8731         HAVE_SETENV.
8732         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8733
8734 2010-12-19  Bruno Haible  <bruno@clisp.org>
8735
8736         nl_langinfo tests: Avoid gcc warning.
8737         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8738
8739 2010-12-19  Bruno Haible  <bruno@clisp.org>
8740
8741         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8742         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8743         _GL_CXXALIAS_SYS.
8744
8745 2010-12-19  Bruno Haible  <bruno@clisp.org>
8746
8747         stdbool: Relax test.
8748         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8749         address to 'bool' work in static initializer, for compilers other than
8750         GCC.
8751
8752 2010-12-19  Bruno Haible  <bruno@clisp.org>
8753
8754         ftello: Add missing declaration on OSF/1 5.1.
8755         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8756         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8758         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8759         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8760
8761 2010-12-19  Bruno Haible  <bruno@clisp.org>
8762
8763         fseeko: Add missing declaration on OSF/1 5.1.
8764         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8767         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8768         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8769
8770 2010-12-19  Bruno Haible  <bruno@clisp.org>
8771
8772         fchdir: Add missing declaration on OSF/1 5.1.
8773         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8776         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8777         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8778
8779 2010-12-19  Bruno Haible  <bruno@clisp.org>
8780
8781         relocatable-prog-wrapper: Separate from relocatable-prog.
8782         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8783         uninstall-relocwrapper rule here.
8784         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8785         Reported by Ian Beckwith <ianb@erislabs.net>.
8786
8787 2010-12-19  Bruno Haible  <bruno@clisp.org>
8788
8789         unistr/u8-mbsnlen: Add missing dependency.
8790         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8791         Reported by Ian Beckwith <ianb@erislabs.net>.
8792
8793 2010-12-19  Bruno Haible  <bruno@clisp.org>
8794
8795         iconv: Make it possible again to use this module without 'iconv-h'.
8796         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8797         if it is not defined.
8798         Reported by Ian Beckwith <ianb@erislabs.net>.
8799
8800 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         acl: port to Solaris 8 when copying from tmpfs to ufs
8803         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8804         error number.  Problem observed on Solaris 8 with latest
8805         coreutils, with "mv A B", where A is on a tmpfs file system and B
8806         is on a ufs file system.  This caused coreutils' mv/part-symlink
8807         test to fail.
8808
8809         tests: set fail=0 at start
8810         * tests/init.sh (setup_): Move fail=0 initialization here ...
8811         (mktempd_): ... from here, so that tests can rely on fail being
8812         set to 0 initially.  This fixes a problem in coreutils; see:
8813         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8814
8815 2010-12-18  Bruno Haible  <bruno@clisp.org>
8816
8817         memmem-simple: Stylistic changes.
8818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8819         Fix preprocessor directive indentation.
8820
8821 2010-12-15  Pádraig Brady <P@draigBrady.com>
8822
8823         memmem, memmem-simple: reorganize and expand empty needle check
8824         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8825         functional checks to memmem-simple so that one has a fully functional
8826         memmem by using just this module.
8827         Restrict the performance only check to the memmem module.
8828         Also expand the empty needle check to ensure the correct
8829         pointer is returned, not just a non NULL pointer.
8830         * doc/glibc-functions/memmem.texi: Rearrange the portability
8831         documentation to correlate with the rearranged checks.
8832         Clarify exactly how the memmem and memmem-simple modules
8833         relate to each other.
8834
8835 2010-12-15  Pádraig Brady <P@draigBrady.com>
8836             Bruno Haible  <bruno@clisp.org>
8837
8838         Improve cross-compilation guesses for uClibc.
8839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8840         that uClibc does not have the glibc bug.
8841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8842         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8843
8844 2010-12-14  Eric Blake  <eblake@redhat.com>
8845
8846         configmake: provide fallbacks for oldest supported autotools
8847         * m4/configmake.m4: New file.
8848         * modules/configmake (Files): Ship it.
8849         (configure.ac): Use it to guarantee fallbacks.
8850
8851 2010-12-13  Pádraig Brady <P@draigBrady.com>
8852
8853         read-file: Improve handling of large files
8854         * lib/read-file.c (fread_file): Minimize realloc()s
8855         for regular files, and better manage sizes around SIZE_MAX.
8856
8857 2010-12-13  Eric Blake  <eblake@redhat.com>
8858
8859         cloexec, fcntl: relax license
8860         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8861         consent from all contributors.
8862         * modules/fcntl (License): Likewise.
8863
8864 2010-12-10  Bruno Haible  <bruno@clisp.org>
8865
8866         Tests for module 'pipe-posix'.
8867         * modules/pipe-posix-tests: New file.
8868         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8869
8870 2010-12-10  Bruno Haible  <bruno@clisp.org>
8871
8872         pipe-posix: Make it work in C++ mode.
8873         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8874         (pipe): Use common idiom, not a macro definition.
8875         * lib/pipe.c: New file.
8876         * m4/pipe.m4: New file.
8877         * modules/pipe-posix (Description): Enhance.
8878         (Files): Add lib/pipe.c, m4/pipe.m4.
8879         (configure.ac): Invoke gl_FUNC_PIPE.
8880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8881         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8882         * tests/test-unistd-c++.cc: Check the signature of pipe.
8883
8884 2010-12-10  Bruno Haible  <bruno@clisp.org>
8885
8886         Rename module 'pipe' to 'spawn-pipe'.
8887         * modules/spawn-pipe: New file, renamed from modules/pipe.
8888         (Files, configure.ac, Makefile.am): Update.
8889         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8890         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8891         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8892         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8893         "spawn-pipe.h" instead of "pipe.h".
8894         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8895         to gl_SPAWN_PIPE.
8896         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8897         (Files, Makefile.am): Update.
8898         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8899         Update.
8900         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8901         Include "spawn-pipe.h" instead of "pipe.h".
8902         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8903         * lib/javacomp.c: Likewise.
8904         * lib/javaversion.c: Likewise.
8905         * lib/pipe-filter-gi.c: Likewise.
8906         * lib/pipe-filter-ii.c: Likewise.
8907         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8908         * modules/javacomp (Depends-on): Likewise.
8909         * modules/javaversion (Depends-on): Likewise.
8910         * modules/pipe-filter-gi (Depends-on): Likewise.
8911         * modules/pipe-filter-ii (Depends-on): Likewise.
8912         * MODULES.html.sh (Executing programs): Update.
8913         * NEWS: Mention the change.
8914
8915 2010-12-10  Eric Blake  <eblake@redhat.com>
8916
8917         pipe-posix: new module
8918         * modules/pipe-posix: New file.
8919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8920         (gl_UNISTD_H): Check for declaration.
8921         * modules/unistd (Makefile.am): Substitute it.
8922         * lib/unistd.in.h (pipe): Provide it for mingw.
8923         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8924         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8925
8926 2010-12-07  Bruno Haible  <bruno@clisp.org>
8927
8928         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8929         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8930         u8_strcmp_gnu.
8931         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8932
8933 2010-12-06  Bruno Haible  <bruno@clisp.org>
8934
8935         Update internal documentation.
8936         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8937
8938 2010-12-04  Bruno Haible  <bruno@clisp.org>
8939
8940         Put more information about failed tests into the test return codes.
8941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8942         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8945         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8946         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8947         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8948         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8949         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8952         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8953         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8954         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8955         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8956         returns a bit mask.
8957         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8958         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8959         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8960         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8965         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8967         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8971         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8972         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8973         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8974         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8975         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8976         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8978         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8980         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8981         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8982         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8983         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8984         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8985         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8986         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8987         gl_PRINTF_PRECISION): Likewise.
8988         * m4/regex.m4 (gl_REGEX): Likewise.
8989         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8992         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8995         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8996         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8997         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8998         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8999         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9000         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9001         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9002         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9003         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9004         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9005         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9008         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9009         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9010         enumerated value.
9011         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9012
9013 2010-12-04  Bruno Haible  <bruno@clisp.org>
9014
9015         Update for Solaris 11 2010-11.
9016         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9017         Express, released in November 2010.
9018
9019 2010-12-04  Bruno Haible  <bruno@clisp.org>
9020
9021         nproc: Relax license.
9022         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9023         and Paul Eggert.
9024         Requested by Ludovic Courtès <ludo@gnu.org>.
9025
9026 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9027
9028         utimecmp: fine-grained src to nearby coarse-grained dest
9029
9030         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9031         and the source is on a file system with higher-resolution time
9032         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9033         not work, and the time stamps are close together, the algorithm to
9034         determine the exact resolution from the read-back mtime was buggy:
9035         it had a "!=" where it should have had an "==".  This bug has been
9036         in the code ever since it was introduced to gnulib.
9037         Problem reported by Dan Jacobson in
9038         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9039
9040 2010-11-30  Bruno Haible  <bruno@clisp.org>
9041
9042         strerror_r-posix: Fix autoconf test.
9043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9044
9045 2010-11-28  Bruno Haible  <bruno@clisp.org>
9046             Paul Eggert  <eggert@cs.ucla.edu>
9047
9048         Tests for module 'getdomainname'.
9049         * modules/getdomainname-tests: New file.
9050         * tests/test-getdomainname.c: New file, based on
9051         tests/test-gethostname.c.
9052
9053 2010-11-28  Bruno Haible  <bruno@clisp.org>
9054             Paul Eggert  <eggert@cs.ucla.edu>
9055
9056         getdomainname: Use the system function when possible.
9057         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9058         (getdomainname): Replace if needed. Provide the declaration if it is
9059         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9060         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9061         (getdomainname): When the system has getdomainname, call the system
9062         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9063         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9064         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9065         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9066         the function if its second argument is of type 'int' or if it is found
9067         in libnsl.
9068         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9069         <sys/systeminfo.h> and sysinfo().
9070         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9072         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9073         HAVE_GETDOMAINNAME.
9074         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9075         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9076         * doc/glibc-functions/getdomainname.texi: Document the problems with
9077         the getdomainname declaration.
9078
9079 2010-11-28  Bruno Haible  <bruno@clisp.org>
9080
9081         sys_socket: Ensure ss_family field on AIX.
9082         * lib/sys_socket.in.h (ss_family): New macro definition.
9083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9084         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9085         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9086         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9087         * modules/sys_socket (Makefile.am): Substitute
9088         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9089         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9090
9091 2010-11-27  Bruno Haible  <bruno@clisp.org>
9092
9093         readline: Improve configure output.
9094         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9095         "checking for readline..." result understandable.
9096
9097 2010-11-27  Bruno Haible  <bruno@clisp.org>
9098
9099         *printf-posix: Detect a bug on Solaris 10/x86.
9100         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9101         for floating-point output.
9102         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9103         directive.
9104         * tests/test-snprintf-posix.h (test_function): Likewise.
9105         * tests/test-sprintf-posix.h (test_function): Likewise.
9106         * tests/test-vasprintf-posix.c (test_function): Likewise.
9107         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9108         * doc/posix-functions/printf.texi: Likewise.
9109         * doc/posix-functions/snprintf.texi: Likewise.
9110         * doc/posix-functions/sprintf.texi: Likewise.
9111         * doc/posix-functions/vfprintf.texi: Likewise.
9112         * doc/posix-functions/vprintf.texi: Likewise.
9113         * doc/posix-functions/vsnprintf.texi: Likewise.
9114         * doc/posix-functions/vsprintf.texi: Likewise.
9115         * doc/glibc-functions/obstack_printf.texi: Likewise.
9116         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9117
9118 2010-11-27  Bruno Haible  <bruno@clisp.org>
9119
9120         Fix link error when module libunistring-optional is in use.
9121         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9122         * modules/striconveha-tests (Makefile.am): Likewise.
9123
9124 2010-11-27  Bruno Haible  <bruno@clisp.org>
9125
9126         regex: Mention link dependencies.
9127         * modules/regex (Link): New section.
9128         * modules/rpmatch (Link): Likewise.
9129         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9130
9131 2010-11-27  Bruno Haible  <bruno@clisp.org>
9132
9133         ftoastr: Fix compilation error on Solaris.
9134         * lib/ftoastr.c: Include <config.h>.
9135
9136 2010-11-27  Bruno Haible  <bruno@clisp.org>
9137
9138         getloadavg: Update documentation.
9139         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9140
9141 2010-11-27  Bruno Haible  <bruno@clisp.org>
9142
9143         sys_socket: Fix test whether the functions are declared.
9144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9145         not <sys/select.h>.
9146
9147 2010-11-27  Bruno Haible  <bruno@clisp.org>
9148
9149         getpass: Make sure to get system declaration on some platforms.
9150         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9151         gl_USE_SYSTEM_EXTENSIONS.
9152         * modules/getpass (Depends-on): Add extensions.
9153
9154 2010-11-26  Bruno Haible  <bruno@clisp.org>
9155
9156         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9157         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9158         'iconv' module is present.
9159         (ICONV_CONST): New macro.
9160         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9161         ICONV_CONST.
9162         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9163         set ICONV_CONST.
9164         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9165         here.
9166         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9167         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9168         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9169         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9170         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9171         present.
9172
9173 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9174
9175         ftoastr: comment fix
9176         * lib/ftoastr.c: "little" -> "little or no" in comment
9177
9178 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9179
9180         stdint: port to GCC 4.3 + OSX + Octave
9181         On this platform, stdint.h is buggy and defines int64_t to long
9182         long int.  The replacement defined it to long int, causing
9183         problems with C++ style name mangling.  Instead, trust the system
9184         definition if INT64_MAX is defined, and likewise for the unsigned
9185         variant.   Problem reported by Jarno Rajahalme in
9186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9187         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9188         and don't mess with int64_t and INT64_MAX in this case.
9189         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9190
9191 2010-11-24  Bruno Haible  <bruno@clisp.org>
9192
9193         doc: Corrections regarding MacOS X 10.4 and 10.5.
9194         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9195         MacOS X.
9196         Reported by Simon Josefsson.
9197
9198 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9199
9200         Uninstall ".bin" files installed by relocwrapper.
9201         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9202         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9203         unless it is already there.
9204
9205 2010-11-21  Bruno Haible  <bruno@clisp.org>
9206
9207         Update for NetBSD 5.0.
9208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9209         NetBSD; the test fails on NetBSD 5.0.
9210         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9211         about NetBSD.
9212
9213 2010-11-21  Bruno Haible  <bruno@clisp.org>
9214
9215         Update for HP-UX 11.23 and HP-UX 11.31.
9216         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9217         HP-UX.
9218
9219 2010-11-21  Bruno Haible  <bruno@clisp.org>
9220
9221         Update for MacOS X 10.5.
9222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9223         MacOS X; the test fails on MacOS X 10.5.8.
9224         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9225         about MacOS X.
9226
9227 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9228
9229         bootstrap: add bootstrap_sync option.
9230         See discussion at
9231         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9233         * build-aux/bootstrap: Accept --bootstrap-sync to update
9234         bootstrap if it is not identical to the local gnulib's
9235         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9236         enable this by default.  Accept --no-bootstrap-sync to disable
9237         it.
9238
9239 2010-11-20  Bruno Haible  <bruno@clisp.org>
9240
9241         Ensure that <features.h> is included before __GLIBC__ is tested.
9242         * lib/printf-parse.h: Include <features.h>.
9243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9244         Reported by Mike Frysinger <vapier@gentoo.org>.
9245
9246         Ensure that <features.h> is included before __GLIBC__ is tested.
9247         * lib/wchar.in.h: Include <features.h>.
9248         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9249         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9250         Reported by Mike Frysinger <vapier@gentoo.org>.
9251
9252         Ensure that <features.h> is included before __GLIBC__ is tested.
9253         * lib/arpa_inet.in.h: Include <features.h>.
9254         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9255         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9256         Reported by Mike Frysinger <vapier@gentoo.org>.
9257
9258         Ensure that <features.h> is included before __GLIBC__ is tested.
9259         * build-aux/link-warning.h: Include <features.h>.
9260         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9261         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9262         Reported by Mike Frysinger <vapier@gentoo.org>.
9263
9264         Ensure that <features.h> is included before __GLIBC__ is tested.
9265         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9266         Reported by Mike Frysinger <vapier@gentoo.org>.
9267
9268 2010-11-20  Bruno Haible  <bruno@clisp.org>
9269
9270         memmem: Fix autoconf test.
9271         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9272
9273 2010-11-20  Bruno Haible  <bruno@clisp.org>
9274
9275         Port to uClibc.
9276         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9277         * lib/fcntl.in.h: Likewise.
9278         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9279         * lib/mbrtowc.c (mbrtowc): Likewise.
9280         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9281         * lib/strerror_r.c: Likewise.
9282         * lib/unistr/u8-strnlen.c: Likewise.
9283         * lib/vasnprintf.c (decimal_point_char): Likewise.
9284         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9285         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9287         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9288         * tests/test-sigaction.c (handler, main): Likewise.
9289         * lib/freading.h: Treat uClibc like a non-glibc platform.
9290         * lib/freading.c: Likewise.
9291         * lib/gettext.h: Likewise.
9292         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9293         Likewise.
9294         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9295         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9296         * lib/propername.c (proper_name_utf8): Likewise.
9297         * lib/spawn.in.h: Likewise.
9298         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9299         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9300         mem_cd_iconveh_internal): Likewise.
9301         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9302         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9303         strstr, strcasestr): Likewise.
9304         * lib/unicodeio.c (unicode_to_mb): Likewise.
9305         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9306         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9307         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9308         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9309         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9310         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9311         * lib/unistr/u8-stpncpy.c: Likewise.
9312         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9313         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9314         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9315         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9316         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9317         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9318         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9321         Likewise.
9322         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9323         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9324         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9326         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9328         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9329         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9330         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9331         * tests/test-striconveha.c (main): Likewise.
9332         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9333         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9334         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9335         * doc/posix-functions/getline.texi: Likewise.
9336         Reported by Mike Frysinger <vapier@gentoo.org>.
9337
9338 2010-11-20  Bruno Haible  <bruno@clisp.org>
9339
9340         nproc: Fix condition.
9341         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9342         HAVE_PTHREAD_AFFINITY_NP.
9343
9344 2010-11-20  Bruno Haible  <bruno@clisp.org>
9345
9346         Fix a comment.
9347         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9348
9349 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9350
9351         ftoastr: don't assume snprintf
9352         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9353         Implement a subset of snprintf here, by using sprintf safely.
9354         * modules/ftoastr (Depends-on): Remove snprintf.
9355
9356 2010-11-19  Jim Meyering  <meyering@redhat.com>
9357
9358         test-rename.h: fix compilation failure
9359         * tests/test-rename.h (test_rename): Add omitted "}".
9360
9361 2010-11-17  Jim Meyering  <meyering@redhat.com>
9362
9363         maint.mk: add a URL discussing the no-@acronym policy
9364         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9365
9366 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9367
9368         ftoastr: depend on snprintf, improve comments
9369         * lib/ftoastr.c: Also mention Loitsch's draft.
9370         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9371         needed in the current implementation, but it might simplify
9372         speeding up the code later.
9373         * modules/ftoastr: Depend on snprintf; this improves portability.
9374         Suggested by Bruno Haible in the same email.
9375
9376         ftoastr: port to hosts lacking strtof and strtold
9377         Problem reported by Bruno Haible in
9378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9379         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9380         environment and strtold (and presumably strtof) are not available.
9381         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9382         (configure.ac): Require gl_C99_STRTOLD.
9383
9384 2010-11-18  Bruno Haible  <bruno@clisp.org>
9385
9386         c-strtold: Avoid link error on AIX 7.
9387         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9388         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9389         (gl_C_STRTOLD): Test whether strtold_l exists.
9390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9391
9392 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9393
9394         intprops: new macro INT_BITS_STRLEN_BOUND
9395         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9396         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9397         not exposed.  Also, it uses a slightly tighter bound than before;
9398         though this makes no practical difference, we might as well be as
9399         tight as we easily can.
9400
9401         ftoastr: new module, for lossless conversion of floats to short strings
9402         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9403         * modules/ftoastr: New files.
9404
9405 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9406
9407         bootstrap: port to Solaris sed
9408         * build-aux/bootstrap (get_version): Port to Solaris sed.
9409         See Ralf Wildenhues's note in
9410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9411
9412 2010-11-14  Jim Meyering  <meyering@redhat.com>
9413
9414         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9415         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9416         and move definition closer to sole use.
9417
9418 2010-11-13  Jim Meyering  <meyering@redhat.com>
9419
9420         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9421         Now we require at least autoconf-2.59, which means the work-around
9422         is no longer needed.
9423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9426         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9427         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9428
9429 2010-11-13  Bruno Haible  <bruno@clisp.org>
9430
9431         rename, renameat: Avoid test failures at NFS mounted locations.
9432         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9433         functions.
9434         (test_rename): Use assert_nonexistent.
9435         * tests/test-rename.c: Include <dirent.h>.
9436         * tests/test-renameat.c: Likewise.
9437         Reported by Gary V. Vaughan <gary@gnu.org>.
9438
9439         rename, renameat: Document Linux bug with NFS
9440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9441         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9442         * doc/posix-functions/renameat.texi: Likewise.
9443         Suggested by Eric Blake.
9444
9445 2010-11-13  Bruno Haible  <bruno@clisp.org>
9446
9447         rename test: Add comments.
9448         * tests/test-rename.h (test_rename): Add structure and comments.
9449
9450 2010-11-13  Eric Blake  <eblake@redhat.com>
9451
9452         maintainer-makefile: cover a few more files
9453         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9454         scripts generated within C files, for libvirt.
9455
9456 2010-11-13  Bruno Haible  <bruno@clisp.org>
9457
9458         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9459         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9460         character, return the number of bytes that belong together, not always
9461         1.
9462         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9463         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9464         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9465         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9466         number of bytes of an invalid character.
9467         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9468         (main): Invoke it.
9469         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9470         results.
9471         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9472         malformed byte sequences.
9473         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9474         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9475         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9476         Reported by Ben Pfaff and Paolo Bonzini.
9477
9478 2010-11-13  Bruno Haible  <bruno@clisp.org>
9479
9480         openat: Work around glibc bug with fchownat() and empty file names.
9481         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9482         (gl_FUNC_FCHOWNAT): Invoke it.
9483         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9484         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9485         Reported by Gary V. Vaughan <gary@gnu.org>.
9486
9487 2010-11-13  Bruno Haible  <bruno@clisp.org>
9488
9489         openat: Ensure autoconf macro ordering.
9490         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9491         gl_USE_SYSTEM_EXTENSIONS.
9492         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9493
9494 2010-11-13  Bruno Haible  <bruno@clisp.org>
9495
9496         Update comments.
9497         * lib/unistr/u8-check.c: Update file name in comments.
9498         * lib/unistr/u8-mblen.c: Likewise.
9499         * lib/unistr/u8-prev.c: Likewise.
9500         * lib/unistr/u8-strmblen.c: Likewise.
9501         * lib/unistr/u8-strmbtouc.c: Likewise.
9502
9503 2010-11-13  Jim Meyering  <meyering@redhat.com>
9504
9505         tests: avoid test failure on Solaris 10 due to lack of PATH export
9506         * tests/test-update-copyright.sh: Don't forget to export PATH.
9507
9508         init.sh: ensure that IFS is defined, just in case...
9509         * tests/init.sh (setup_): Ensure that IFS is defined,
9510         so that saving and restoring it works as expected.  This
9511         appears to be useful at least for an old version of dash
9512         from a long time ago (RH 6).  See here for details:
9513         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9514
9515         maint.mk: tighten "test a == b" check
9516         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9517         test to files that contain something like #!/bin/sh.
9518         Without this, coreutils would get two false positives in
9519         the comments of C source files.
9520
9521 2010-11-12  Eric Blake  <eblake@redhat.com>
9522
9523         bootstrap: fix typo in previous attempt
9524         * build-aux/bootstrap (buildreq): Correct the grouping.
9525         Reported by Paul Eggert.
9526
9527         maintainer-makefile: prohibit test x == x
9528         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9529         Based on a report by Matthias Bolte.
9530
9531         bootstrap: allow FreeBSD gzip
9532         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9533         which has no '.' and goes to stderr.
9534         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9535         Reported by Matthias Bolte.
9536
9537         maintainer-makefile: check for i18n setup
9538         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9539         will likely work.
9540
9541 2010-11-12  Bruno Haible  <bruno@clisp.org>
9542
9543         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9544         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9545         * lib/nanosleep.c (nanosleep): Likewise.
9546
9547 2010-11-11  Bruno Haible  <bruno@clisp.org>
9548
9549         fcntl-h: Fix for use of C++ on glibc systems.
9550         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9551         also on glibc systems in C++ mode.
9552         Reported by Gary V. Vaughan <gary@gnu.org>.
9553
9554 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9555
9556         mknod: avoid false failure with dash
9557         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9558
9559 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9560
9561         unlink: Fix "is it should" typo in diagnostic.
9562         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9564
9565 2010-11-11  Bruno Haible  <bruno@clisp.org>
9566
9567         Tests for module 'strerror_r-posix'.
9568         * modules/strerror_r-posix-tests: New file.
9569         * tests/test-strerror_r.c: New file.
9570         * tests/test-string-c++.cc: Check the signature of strerror_r.
9571
9572         New module 'strerror_r-posix'.
9573         * lib/string.in.h (strerror_r): New declaration.
9574         * lib/strerror_r.c: New file.
9575         * m4/strerror_r.m4: New file.
9576         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9577         of strerror_r.
9578         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9579         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9580         * modules/strerror_r-posix: New file.
9581         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9582         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9583         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9584         portability problems.
9585
9586 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9587
9588         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9589         line is also considered for output. Quoted function name in shell
9590         command, so temporary files for functions like MyClass::operator()
9591         are removed correctly without errors.
9592
9593 2010-11-09  Bruno Haible  <bruno@clisp.org>
9594
9595         * doc/posix-functions/strerror.texi: List more failing platforms.
9596
9597         * doc/posix-functions/strerror.texi: Add a comment.
9598
9599 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9600
9601         fdopendir: fix bug on MacOS X when low on file descriptors
9602
9603         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9604         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9605         All callers changed.
9606         (fdopendir): Invoke save_cwd at the top level, not after using
9607         multiple dup() calls to use up file descriptors.  Then retry
9608         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9609         less than the maximum number of open file descriptors, because
9610         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9611         on Mac OS X 10.6.4 for tar 1.24
9612         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9613         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9614         and for tar 1.25
9615         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9616
9617 2010-11-07  Bruno Haible  <bruno@clisp.org>
9618
9619         vasnprintf: Support I flag on glibc systems.
9620         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9621         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9622         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9623         snprintf function.
9624         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9625         glibc systems.
9626         * tests/test-vasnprintf-posix3.c: New file.
9627         * modules/vasnprintf-posix-tests (Files): Add it.
9628         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9629
9630 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9631
9632         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9633         * MODULES.html.sh: For compiler warnings, use name
9634         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9635
9636 2010-11-05  Eric Blake  <eblake@redhat.com>
9637
9638         ceil, floor: avoid spurious failure with icc
9639         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9640         [denormals-as-zero] when optimizing without -mieee-fp option.
9641         * tests/test-floorf2.c (floorf_reference): Likewise.
9642         * tests/test-ceilf1.c (dummy): New function.
9643         (main): Use it to outsmart icc's optimization.
9644         * tests/test-floorf1.c (dummy, main): Likewise.
9645
9646         tests: require working signbit
9647         * modules/ceilf-tests (Depends-on): Add signbit.
9648         * modules/ceill-tests (Depends-on): Likewise.
9649         * modules/floorf-tests (Depends-on): Likewise.
9650         * modules/floorl-tests (Depends-on): Likewise.
9651         * modules/round-tests (Depends-on): Likewise.
9652         * modules/roundf-tests (Depends-on): Likewise.
9653         * modules/roundl-tests (Depends-on): Likewise.
9654         * modules/trunc-tests (Depends-on): Likewise.
9655         * modules/truncf-tests (Depends-on): Likewise.
9656         * modules/truncl-tests (Depends-on): Likewise.
9657
9658         strtod: work around icc bug
9659         * lib/strtod.c (minus_zero): Define to working value.
9660         (strtod): Use it to avoid icc bug.
9661
9662         copysign: enhance tests
9663         * modules/copysign-tests (Files): Add minus-zero.h.
9664         * tests/test-copysign.c (main): Also test zeros.
9665
9666 2010-11-04  Eric Blake  <eblake@redhat.com>
9667
9668         ceil, floor, round, trunc: enhance tests of -0
9669         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9670         * tests/test-ceill.c (main): Likewise.
9671         * tests/test-floorf1.c (main): Likewise.
9672         * tests/test-floorl.c (main): Likewise.
9673         * tests/test-round1.c (main): Likewise.
9674         * tests/test-roundf1.c (main): Likewise.
9675         * tests/test-roundl.c (main): Likewise.
9676         * tests/test-trunc1.c (main): Likewise.
9677         * tests/test-truncf1.c (main): Likewise.
9678         * tests/test-truncl.c (main): Likewise.
9679
9680 2010-11-04  Eric Blake  <eblake@redhat.com>
9681
9682         frexp, tests: work around ICC bug with -zero
9683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9684         works with more compilers.
9685         * tests/minus-zero.h: New file.
9686         * modules/ceilf-tests (Files): Include it.
9687         * modules/ceill-tests (Files): Likewise.
9688         * modules/floorf-tests (Files): Likewise.
9689         * modules/floorl-tests (Files): Likewise.
9690         * modules/frexp-nolibm-tests (Files): Likewise.
9691         * modules/frexp-tests (Files): Likewise.
9692         * modules/frexpl-nolibm-tests (Files): Likewise.
9693         * modules/frexpl-tests (Files): Likewise.
9694         * modules/isnan-tests (Files): Likewise.
9695         * modules/isnand-nolibm-tests (Files): Likewise.
9696         * modules/isnand-tests (Files): Likewise.
9697         * modules/isnanf-nolibm-tests (Files): Likewise.
9698         * modules/isnanf-tests (Files): Likewise.
9699         * modules/isnanl-nolibm-tests (Files): Likewise.
9700         * modules/isnanl-tests (Files): Likewise.
9701         * modules/round-tests (Files): Likewise.
9702         * modules/roundf-tests (Files): Likewise.
9703         * modules/roundl-tests (Files): Likewise.
9704         * modules/ldexpl-tests (Files): Likewise.
9705         * modules/signbit-tests (Files): Likewise.
9706         * modules/snprintf-posix-tests (Files): Likewise.
9707         * modules/sprintf-posix-tests (Files): Likewise.
9708         * modules/strtod-tests (Files): Likewise.
9709         * modules/trunc-tests (Files): Likewise.
9710         * modules/truncf-tests (Files): Likewise.
9711         * modules/truncl-tests (Files): Likewise.
9712         * modules/vsnprintf-posix-tests (Files): Likewise.
9713         * modules/vsprintf-posix-tests (Files): Likewise.
9714         * modules/vasnprintf-posix-tests (Files): Likewise.
9715         * modules/vasprintf-posix-tests (Files): Likewise.
9716         * tests/test-ceilf1.c (main): Use it.
9717         * tests/test-ceill.c (main): Likewise.
9718         * tests/test-floorf1.c (main): Likewise.
9719         * tests/test-floorl.c (main): Likewise.
9720         * tests/test-frexp.c (main): Likewise.
9721         * tests/test-frexpl.c (main): Likewise.
9722         * tests/test-isnan.c (main): Likewise.
9723         * tests/test-isnand.h (main): Likewise.
9724         * tests/test-isnanf.h (main): Likewise.
9725         * tests/test-isnanl.h (main): Likewise.
9726         * tests/test-ldexpl.c (main): Likewise.
9727         * tests/test-round.c (main): Likewise.
9728         * tests/test-roundf.c (main): Likewise.
9729         * tests/test-roundl.c (main): Likewise.
9730         * tests/test-signbit.c (test_signbitf, test_signbitd)
9731         (test_signbitl): Likewise.
9732         * tests/test-snprintf-posix.h (test_function): Likewise.
9733         * tests/test-sprintf-posix.h (test_function): Likewise.
9734         * tests/test-strtod.c (main): Likewise.
9735         * tests/test-trunc1.c (main): Likewise.
9736         * tests/test-truncf1.c (main): Likewise.
9737         * tests/test-truncl.c (main): Likewise.
9738
9739         isnanl: work around icc bug
9740         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9741
9742 2010-11-03  Eric Blake  <eblake@redhat.com>
9743
9744         tests: fix compiler warnings
9745         * tests/test-getopt.h (test_getopt): Fix condition.
9746         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9747         * tests/test-pipe2.c (main): Likewise.
9748         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9749
9750         utimens: fix broken m4 test
9751         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9752
9753 2010-10-28  Bruno Haible  <bruno@clisp.org>
9754
9755         posix_spawn*, getdtablesize: Relax license.
9756         * modules/posix_spawn (License): Change to LGPLv2+.
9757         * modules/posix_spawnp (License): Likewise.
9758         * modules/posix_spawn-internal (License): Likewise.
9759         * modules/posix_spawnattr_init (License): Likewise.
9760         * modules/posix_spawnattr_getflags (License): Likewise.
9761         * modules/posix_spawnattr_setflags (License): Likewise.
9762         * modules/posix_spawnattr_getpgroup (License): Likewise.
9763         * modules/posix_spawnattr_setpgroup (License): Likewise.
9764         * modules/posix_spawnattr_getschedparam (License): Likewise.
9765         * modules/posix_spawnattr_setschedparam (License): Likewise.
9766         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9767         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9768         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9769         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9770         * modules/posix_spawnattr_getsigmask (License): Likewise.
9771         * modules/posix_spawnattr_setsigmask (License): Likewise.
9772         * modules/posix_spawnattr_destroy (License): Likewise.
9773         * modules/posix_spawn_file_actions_init (License): Likewise.
9774         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9775         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9776         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9777         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9778         * modules/getdtablesize (License): Likewise.
9779         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9780
9781 2010-10-26  Bruno Haible  <bruno@clisp.org>
9782
9783         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9784         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9785         Cygwin and mingw.
9786         Suggested by Eric Blake.
9787
9788 2010-10-26  Bruno Haible  <bruno@clisp.org>
9789
9790         stdio: Work around compilation error due to renameat() on Solaris 10.
9791         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9792         * lib/renameat.c: Don't include <unistd.h> here.
9793         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9794         Reported by Paul Eggert and Eric Blake.
9795
9796 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9797
9798         renameat: port to Solaris 10, which declares renameat in unistd.h
9799
9800         * lib/renameat.c: Include unistd.h before stdio.h, because
9801         Solaris 10 declares renameat in unistd.h.  Problem encountered
9802         when building GNU tar 1.24 on Solaris 10.
9803
9804 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9805
9806         fdopendir: fix C89 compilation
9807         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9808         compilers.
9809
9810 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         inttostr: simplify by removing unnecessary redundancy
9813         * lib/anytostr.c: Don't include verify.h.
9814         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9815         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9816         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9817         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9818         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9819         Likewise.
9820         * modules/inttostr (Depends-on): Remove 'verify'.
9821
9822 2010-10-23  Bruno Haible  <bruno@clisp.org>
9823
9824         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9825         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9826         Reported by Eric Blake.
9827
9828 2010-10-23  Bruno Haible  <bruno@clisp.org>
9829
9830         Tests: Fix LOCALE_JA on MirBSD 10.
9831         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9832         to an UTF-8 locale.
9833         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9834         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9835         Reported by Eric Blake.
9836
9837 2010-10-21  Bruno Haible  <bruno@clisp.org>
9838
9839         nl_langinfo test: Avoid test failure on NetBSD 5.
9840         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9841         Reported by Eric Blake.
9842
9843 2010-10-21  Eric Blake  <eblake@redhat.com>
9844
9845         c-stack: work around libsigsegv 2.8 bug
9846         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9847         overflow on at least PowerPC64.
9848
9849 2010-10-17  Bruno Haible  <bruno@clisp.org>
9850
9851         userspec: Drop redundant file.
9852         * modules/userspec (Files): Remove lib/inttostr.h.
9853
9854 2010-10-17  Bruno Haible  <bruno@clisp.org>
9855
9856         nl_langinfo tests: Silence some warnings.
9857         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9858         Reported by Jim Meyering.
9859
9860 2010-10-17  Bruno Haible  <bruno@clisp.org>
9861
9862         Make use of GCC's attribute __alloc_size__.
9863         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9864         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9865         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9866         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9867         __alloc_size__.
9868         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9869         Suggested by Jim Meyering.
9870
9871 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9872
9873         bootstrap: anchor .gitignore entries.
9874         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9875         with...
9876         (insert_vc_ignore): ... this new function, which prepends `/' to
9877         all .gitignore entries before passing them to
9878         insert_sorted_if_absent.
9879
9880 2010-10-16  Bruno Haible  <bruno@clisp.org>
9881
9882         nextafter: Fix configure check.
9883         * modules/nextafter (configure.ac): Correct expected prototype.
9884
9885 2010-10-16  Bruno Haible  <bruno@clisp.org>
9886
9887         termios: Update documentation.
9888         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9889
9890 2010-10-16  Bruno Haible  <bruno@clisp.org>
9891
9892         tests: Make them compile with TinyCC.
9893         * tests/test-strstr.c (main): Remove parentheses around array
9894         initializer.
9895
9896 2010-10-15  Eric Blake  <eblake@redhat.com>
9897
9898         ignore-value: make header idempotent
9899         * lib/ignore-value.h: Add double-inclusion guards.
9900         Reported by Stefan Berger.
9901
9902 2010-10-15  Jim Meyering  <meyering@redhat.com>
9903
9904         GNUmakefile: handle "stable" target, not "major"
9905         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9906         lists in maint.mk and announce-gen.  Without this, "make stable"
9907         would fail to ensure that $(VERSION) is up to date.
9908
9909 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9910
9911         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9912         & co.
9913
9914 2010-10-14  Bruno Haible  <bruno@clisp.org>
9915
9916         vasnprintf: Don't set errno to 0.
9917         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9918         block that sets it to 0.
9919         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9920
9921 2010-10-14  Bruno Haible  <bruno@clisp.org>
9922
9923         socketlib: Fix.
9924         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9925         gl_PREREQ_SYS_H_WINSOCK2.
9926         Reported by Ian Beckwith <ianb@erislabs.net>.
9927
9928 2010-10-13  Jim Meyering  <meyering@redhat.com>
9929
9930         test-select-stdin.c: avoid warn_unused_result warnings
9931         * tests/test-select-stdin.c: Include "macros.h".
9932         ASSERT that read and fflush succeed.
9933
9934 2010-10-13  Jim Meyering  <meyering@redhat.com>
9935
9936         git-version-gen: do require git-VC'd files in cwd
9937         * build-aux/git-version-gen: Reject a git version string
9938         if there are no commits associated with the current directory.
9939         This avoids an unlikely false-positive (unrelated dir whose parent
9940         repository also contains a tag matching v*), as pointed out
9941         by Giuseppe Scrivano in
9942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9943
9944 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9945
9946         argv-iter: omit nonconforming declaration
9947         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9948         enum arg_iter_err declaration, which doesn't conform to C99.
9949         Solaris 10 cc warns about this.
9950
9951 2010-10-13  Eric Blake  <eblake@redhat.com>
9952
9953         termios: fix compilation on mingw
9954         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9955         (gl_TERMIOS_H): Adjust it on mingw.
9956         * modules/termios (Makefile.am): Substitute new key.
9957         * lib/termios.in.h (includes): Make include_next conditional.
9958         * doc/posix-headers/termios.texi (termios.h): Update
9959         documentation.
9960         Reported by Daniel P. Berrange.
9961
9962 2010-10-13  Jim Meyering  <meyering@redhat.com>
9963
9964         git-version-gen: don't require that .git/ be in the current dir
9965         * build-aux/git-version-gen: Adjust this script so that it works
9966         when run from any working directory beneath the top-level .git/-
9967         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9968         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9969
9970         test-select: avoid warn_unused_result warnings
9971         * tests/test-select.c: Include "macros.h".
9972         ASSERT that each call to read, write, and pipe succeeds.
9973         While not technically required, also check each "close".
9974         * modules/select-tests (Files): Add tests/macros.h.
9975
9976         test-symlinkat: remove declaration of unused local
9977         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9978
9979         test-inttostr: avoid shadowing warnings
9980         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9981         and use malloc rather than the stack for the same reason as
9982         mentioned in the comment justifying the other allocation.
9983
9984 2010-10-11  Bruno Haible  <bruno@clisp.org>
9985
9986         stdlib: Allow multiple gnulib generated replacements to coexist.
9987         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9988         Reported by Sam Steingold <sds@gnu.org>.
9989
9990 2010-10-11  Jim Meyering  <meyering@redhat.com>
9991
9992         fix a documentation typo
9993         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9994
9995 2010-10-11  Eric Blake  <eblake@redhat.com>
9996
9997         futimens: work around Solaris 11 bug
9998         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9999         * tests/test-futimens.h (test_futimens): Enhance, rather than
10000         weaken test.
10001         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10002
10003 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10004
10005         Indentation.
10006         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10007         higher-level operators more to the left.
10008
10009 2010-10-11  Jim Meyering  <meyering@redhat.com>
10010
10011         test-futimens: avoid unwarranted test failure on Solaris 5.11
10012         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10013         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10014         because it tries to dereference the NULL name argument.
10015
10016 2010-10-11  Bruno Haible  <bruno@clisp.org>
10017
10018         Indentation.
10019         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10020         indentation.
10021
10022 2010-10-11  Jim Meyering  <meyering@redhat.com>
10023
10024         spawn.in.h: make indentation consistent with parentheses
10025         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10026         Make indentation consistent with parentheses.
10027
10028 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10029
10030         Fix mismatched parens in previous commit
10031         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10032         parens.
10033
10034 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10035
10036         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10037
10038         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10039         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10040         * lib/malloca.c: Include "verify.h".
10041         (verify1): Remove, replacing with a verify call.
10042         * lib/relocwrapper.c (verify1): Likewise.
10043         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10044         Likewise.
10045         * modules/malloca (Depends-on): Add 'verify'.
10046         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10047         * modules/vasnprintf (Depends-on): Add 'verify'.
10048         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10050         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10051         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10053         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10054         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10055
10056         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10057
10058         Formerly the style was sometimes 2*X - 1, because the C standard
10059         was wrongly thought to disallow ?: in integral constant expressions.
10060         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10061         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10062         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10063         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10064         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10065         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10066         verify that time_t cannot be floating.
10067
10068 2010-10-08  Eric Blake  <eblake@redhat.com>
10069
10070         time: enforce recent POSIX ruling that time_t is integral
10071         * lib/time.in.h (__time_t_must_be_integral): Detect any
10072         problematic systems, allowing the rest of gnulib to assume POSIX.
10073
10074 2010-10-08  Jim Meyering  <meyering@redhat.com>
10075
10076         fdopendir: fix a bug on systems lacking openat and /proc support
10077         OpenBSD 4.7 is one such system.  The most noticeable effect was
10078         failure of any application making nontrivial use of fts: rm, du,
10079         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10080           ./rm: traversal failed: `a': Bad file descriptor
10081         Debugging that, you see that even though FD 6 was closed just
10082         prior to the opendir call in fd_clone_opendir, its resulting
10083         dir->dd_fd was 8, rather than the expected value of 6:
10084
10085         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10086         93                close (fd);
10087         (gdb) n
10088         94                dir = fd_clone_opendir (dupfd);
10089         (gdb) n
10090         95                saved_errno = errno;
10091         (gdb) p dir->dd_fd
10092         $11 = 8
10093
10094         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10095         The problem is that on OpenBSD, fd_clone_opendir has to resort
10096         to using the old-style save/restore CWD mechanism, due to its
10097         lack of openat/proc support, and *that* would steal the FD (6)
10098         that opendir was supposed to use.
10099
10100         The fix is to squirrel away the desired FD so that save_cwd uses a
10101         different one, and then free the dest FD right before calling opendir.
10102         That guarantees opendir will use the required file descriptor.
10103
10104         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10105
10106 2010-10-08  Bruno Haible  <bruno@clisp.org>
10107
10108         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10109         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10110
10111 2010-10-08  Bruno Haible  <bruno@clisp.org>
10112
10113         nanosleep: Make replacement POSIX compliant.
10114         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10115         is out of range.
10116         Reported by Jim Meyering.
10117
10118 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10119
10120         bootstrap: add hook for altering gnulib.mk, for Bison
10121         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10122         the Bison bootstrapping process can rewrite file names and variables
10123         in this file before later parts of 'bootstrap' use the file.
10124         Bison wants to include lib/gnulib.mk from the top-level makefile,
10125         so it needs the file names in this file to be relative to the top
10126         level, not relative to lib; plus it needs variable names to be
10127         rewritten.
10128         (slurp): Use the new function.
10129
10130         bootstrap: reformat for readability
10131         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10132
10133 2010-10-08  Eric Blake  <eblake@redhat.com>
10134
10135         docs: update cygwin progress
10136         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10137         1.7.7.
10138         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10139         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10140         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10141         * doc/posix-functions/carg.texi (carg): Likewise.
10142         * doc/posix-functions/cargf.texi (cargf): Likewise.
10143         * doc/posix-functions/casin.texi (casin): Likewise.
10144         * doc/posix-functions/casinf.texi (casinf): Likewise.
10145         * doc/posix-functions/casinh.texi (casinh): Likewise.
10146         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10147         * doc/posix-functions/catan.texi (catan): Likewise.
10148         * doc/posix-functions/catanf.texi (catanf): Likewise.
10149         * doc/posix-functions/catanh.texi (catanh): Likewise.
10150         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10151         * doc/posix-functions/ccos.texi (ccos): Likewise.
10152         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10153         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10154         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10155         * doc/posix-functions/cexp.texi (cexp): Likewise.
10156         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10157         * doc/posix-functions/cimag.texi (cimag): Likewise.
10158         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10159         * doc/posix-functions/clog.texi (clog): Likewise.
10160         * doc/posix-functions/clogf.texi (clogf): Likewise.
10161         * doc/posix-functions/conj.texi (conj): Likewise.
10162         * doc/posix-functions/conjf.texi (conjf): Likewise.
10163         * doc/posix-functions/cpow.texi (cpow): Likewise.
10164         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10165         * doc/posix-functions/cproj.texi (cproj): Likewise.
10166         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10167         * doc/posix-functions/creal.texi (creal): Likewise.
10168         * doc/posix-functions/crealf.texi (crealf): Likewise.
10169         * doc/posix-functions/csin.texi (csin): Likewise.
10170         * doc/posix-functions/csinf.texi (csinf): Likewise.
10171         * doc/posix-functions/csinh.texi (csinh): Likewise.
10172         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10173         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10174         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10175         * doc/posix-functions/ctan.texi (ctan): Likewise.
10176         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10177         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10178         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10179         * doc/posix-headers/complex.texi (complex.h): Likewise.
10180
10181 2010-10-07  Jim Meyering  <meyering@redhat.com>
10182
10183         parse-datetime: avoid compilation failure on OpenBSD 4.7
10184         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10185         This works around a compilation failure on OpenBSD 4.7:
10186         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10187
10188 2010-10-07  Eric Blake  <eblake@redhat.com>
10189
10190         docs: update cygwin progress
10191         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10192         1.7.6.
10193         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10194         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10195         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10196         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10197         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10198         Likewise.
10199         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10200         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10201         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10202         Likewise.
10203         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10204         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10205         Likewise.
10206         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10207         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10208         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10209         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10210         Likewise.
10211         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10212         Likewise.
10213         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10214
10215         docs: update parse-datetime history
10216         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10217         documentation of this function's history and alternatives.
10218
10219         cygwin: use more robust version check
10220         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10221         exclude an eventual cygwin 1.9.1.
10222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10224         (gl_FUNC_STRCASESTR): Likewise.
10225         Reported by Bruno Haible.
10226
10227 2010-10-06  Bruno Haible  <bruno@clisp.org>
10228
10229         string, sys_select: Avoid #including large headers unless necessary.
10230         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10231         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10232         OSF/1, BeOS, Haiku.
10233         Reported by Jim Meyering.
10234
10235 2010-10-05  Eric Blake  <eblake@redhat.com>
10236
10237         memmem, strstr, strcasestr: fix bug with long periodic needle
10238         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10239         periodic needle having false positive.
10240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10241         and cygwin 1.7.7.
10242         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10244         (gl_FUNC_STRCASESTR): Likewise.
10245         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10246         * tests/test-memmem.c (main): Expose the bug.
10247         * tests/test-strcasestr.c (main): Likewise.
10248         * tests/test-strstr.c (main): Likewise.
10249         * tests/test-c-strcasestr.c (main): Likewise.
10250         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10251         * doc/posix-functions/strstr.texi (strstr): Likewise.
10252         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10253         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10254
10255 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         parse-datetime: do some more renaming
10258         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10259         parse_datetime, not get_date.  Mention the renaming.
10260         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10261         in comments.
10262         * m4/bison.m4: Likewise.
10263
10264 2010-10-05  Eric Blake  <eblake@redhat.com>
10265
10266         parse-datetime: better name than get_date
10267         * NEWS: Reword the deprecation notice.
10268         * modules/get_date: Rename to modules/parse-datetime.
10269         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10270         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10271         * lib/get_date.y: Rename to lib/parse-datetime.y.
10272         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10273         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10274         * doc/getdate.texi: Provide fallback wrapper.
10275         * lib/getdate.h: Move guts, and wrap...
10276         * lib/parse-datetime.h: ...new file.
10277         * lib/parse-datetime.y (get_date): Rename...
10278         (parse_datetime): ...to this.
10279         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10280         (gl_PARSE_DATETIME): ...to this.
10281         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10282         documentation.
10283         * modules/getdate (Files): Provide fallback docs and header.
10284         (Notice, Depends-on): Update references.
10285         * tests/test-parse-datetime.c: Likewise.
10286         * DEPENDENCIES: Likewise.
10287         * MODULES.html.sh (Date and time <time.h>): Likewise.
10288         * doc/parse-datetime.texi (Date input formats)
10289         (Authors of parse_datetime): Likewise.
10290         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10291         (Include): Likewise.
10292         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10293         * gnulib-tool: Likewise.
10294         * m4/bison.m4 (gl_BISON): Likewise.
10295         Suggested by Bruno Haible.
10296
10297 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10298
10299         more ports to Solaris tr, which needs [] around ranges
10300         * gnulib-tool: Solaris tr needs [] around ranges.
10301         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10302         * tests/test-pipe-filter-gi1.c (main): Likewise.
10303         * tests/test-pipe-filter-ii1.c (main): Likewise.
10304
10305 2010-10-05  Eric Blake  <eblake@redhat.com>
10306
10307         bootstrap: fix Solaris regression
10308         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10309         around ranges.
10310         Reported by Pádraig Brady.
10311
10312         bootstrap: work with pkg-config
10313         * build-aux/bootstrap (check_versions): Also transliterate - in
10314         prerequisite name.
10315         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10316         prerequisites that were already found, to avoid confusion.
10317         Reported by Justin Clift.
10318
10319         faccessat: remove unused wrappers
10320         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10321         presence of these wrappers dragged in -lgen on Solaris.
10322         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10323
10324 2010-10-05  Jim Meyering  <meyering@redhat.com>
10325
10326         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10327         * Makefile (sc_pragma_columns): New syntax-check rule.
10328
10329 2010-10-04  Bruno Haible  <bruno@clisp.org>
10330
10331         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10332         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10333         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10334         Reported by Bruce Korb and Eric Blake.
10335
10336 2010-10-04  Bruno Haible  <bruno@clisp.org>
10337
10338         threadlib: Make option --with-libpth-prefix work.
10339         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10340         use $LIBPTH, not just -lpth.
10341
10342 2010-10-04  Bruno Haible  <bruno@clisp.org>
10343
10344         Avoid line length limitation from HP NonStop system header files.
10345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10346         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10347         * lib/ctype.in.h: Likewise.
10348         * lib/dirent.in.h: Likewise.
10349         * lib/errno.in.h: Likewise.
10350         * lib/fcntl.in.h: Likewise.
10351         * lib/float.in.h: Likewise.
10352         * lib/getopt.in.h: Likewise.
10353         * lib/iconv.in.h: Likewise.
10354         * lib/inttypes.in.h: Likewise.
10355         * lib/langinfo.in.h: Likewise.
10356         * lib/locale.in.h: Likewise.
10357         * lib/math.in.h: Likewise.
10358         * lib/netdb.in.h: Likewise.
10359         * lib/netinet_in.in.h: Likewise.
10360         * lib/poll.in.h: Likewise.
10361         * lib/pthread.in.h: Likewise.
10362         * lib/pty.in.h: Likewise.
10363         * lib/sched.in.h: Likewise.
10364         * lib/se-selinux.in.h: Likewise.
10365         * lib/search.in.h: Likewise.
10366         * lib/signal.in.h: Likewise.
10367         * lib/spawn.in.h: Likewise.
10368         * lib/stdarg.in.h: Likewise.
10369         * lib/stddef.in.h: Likewise.
10370         * lib/stdint.in.h: Likewise.
10371         * lib/stdio.in.h: Likewise.
10372         * lib/stdlib.in.h: Likewise.
10373         * lib/string.in.h: Likewise.
10374         * lib/strings.in.h: Likewise.
10375         * lib/sys_file.in.h: Likewise.
10376         * lib/sys_ioctl.in.h: Likewise.
10377         * lib/sys_select.in.h: Likewise.
10378         * lib/sys_socket.in.h: Likewise.
10379         * lib/sys_stat.in.h: Likewise.
10380         * lib/sys_time.in.h: Likewise.
10381         * lib/sys_times.in.h: Likewise.
10382         * lib/sys_utsname.in.h: Likewise.
10383         * lib/sys_wait.in.h: Likewise.
10384         * lib/sysexits.in.h: Likewise.
10385         * lib/termios.in.h: Likewise.
10386         * lib/time.in.h: Likewise.
10387         * lib/unistd.in.h: Likewise.
10388         * lib/wchar.in.h: Likewise.
10389         * lib/wctype.in.h: Likewise.
10390         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10391         * modules/ctype (Makefile.am): Likewise.
10392         * modules/dirent (Makefile.am): Likewise.
10393         * modules/errno (Makefile.am): Likewise.
10394         * modules/fcntl-h (Makefile.am): Likewise.
10395         * modules/float (Makefile.am): Likewise.
10396         * modules/getopt-posix (Makefile.am): Likewise.
10397         * modules/iconv-h (Makefile.am): Likewise.
10398         * modules/inttypes (Makefile.am): Likewise.
10399         * modules/langinfo (Makefile.am): Likewise.
10400         * modules/locale (Makefile.am): Likewise.
10401         * modules/math (Makefile.am): Likewise.
10402         * modules/netdb (Makefile.am): Likewise.
10403         * modules/netinet_in (Makefile.am): Likewise.
10404         * modules/poll-h (Makefile.am): Likewise.
10405         * modules/pthread (Makefile.am): Likewise.
10406         * modules/pty (Makefile.am): Likewise.
10407         * modules/sched (Makefile.am): Likewise.
10408         * modules/search (Makefile.am): Likewise.
10409         * modules/selinux-h (Makefile.am): Likewise.
10410         * modules/signal (Makefile.am): Likewise.
10411         * modules/spawn (Makefile.am): Likewise.
10412         * modules/stdarg (Makefile.am): Likewise.
10413         * modules/stddef (Makefile.am): Likewise.
10414         * modules/stdint (Makefile.am): Likewise.
10415         * modules/stdio (Makefile.am): Likewise.
10416         * modules/stdlib (Makefile.am): Likewise.
10417         * modules/string (Makefile.am): Likewise.
10418         * modules/strings (Makefile.am): Likewise.
10419         * modules/sys_file (Makefile.am): Likewise.
10420         * modules/sys_ioctl (Makefile.am): Likewise.
10421         * modules/sys_select (Makefile.am): Likewise.
10422         * modules/sys_socket (Makefile.am): Likewise.
10423         * modules/sys_stat (Makefile.am): Likewise.
10424         * modules/sys_time (Makefile.am): Likewise.
10425         * modules/sys_times (Makefile.am): Likewise.
10426         * modules/sys_utsname (Makefile.am): Likewise.
10427         * modules/sys_wait (Makefile.am): Likewise.
10428         * modules/sysexits (Makefile.am): Likewise.
10429         * modules/termios (Makefile.am): Likewise.
10430         * modules/time (Makefile.am): Likewise.
10431         * modules/unistd (Makefile.am): Likewise.
10432         * modules/wchar (Makefile.am): Likewise.
10433         * modules/wctype (Makefile.am): Likewise.
10434
10435 2010-10-04  Bruno Haible  <bruno@clisp.org>
10436
10437         read-file tests: Avoid a test failure on NonStop Kernel.
10438         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10439         a regular file.
10440         Reported by Joachim Schmitz <schmitz@hp.com>.
10441
10442 2010-10-03  Bruno Haible  <bruno@clisp.org>
10443
10444         gnulib-tool: Fixes for --create-testdir with --libtool.
10445         * gnulib-tool (func_get_automake_snippet): Don't augment
10446         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10447         an executable.
10448         (func_create_testdir): Handle module 'alloca' like func_import.
10449         Reported by Bruce Korb <bruce.korb@gmail.com>.
10450
10451 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10452
10453         Avoid some lines longer than 80 characters.
10454         * lib/stdint.in.h: Break long comment lines.
10455         * lib/math.in.h: Likewise.
10456         (_GL_NUM_UINT_WORDS): New macro, for readability.
10457         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10458         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10459         * lib/stdlib.in.h: Likewise.
10460         * lib/spawn.in.h: Likewise.
10461         * lib/sys_socket.in.h: Update an URL.
10462         * lib/sys_stat.in.h: Break long line.
10463
10464 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10465
10466         Improve pmccabe2html.
10467         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10468         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10469         when the sources change. Remove the line in the HTML about "Used
10470         ranges" (which implied that there might be other unused ranges),
10471         rename "Resume" to "Summary" (easier to understand for more users).
10472         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10473         styles, and some unnecessary blank lines.
10474
10475 2010-10-03  Bruno Haible  <bruno@clisp.org>
10476             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10477
10478         acl: Add support for ACLs on NonStop Kernel.
10479         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10480         Check whether the function aclsort() exists.
10481         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10482         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10483         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10484         (acl_nontrivial [HAVE_ACLSORT]: New function.
10485         (file_has_acl): Implement for NonStop Kernel.
10486         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10487         (qset_acl): Implement for NonStop Kernel.
10488         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10489         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10490         (main): Implement for NonStop Kernel.
10491         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10492         Kernel. Handle this flavor.
10493         * tests/test-set-mode-acl.sh: Likewise.
10494         * tests/test-copy-acl.sh: Likewise.
10495         * tests/test-copy-file.sh: Likewise.
10496
10497 2010-10-03  Bruno Haible  <bruno@clisp.org>
10498
10499         Info about ACLs on NonStop Kernel.
10500         * doc/acl-resources.txt: Add info about NonStop Kernel.
10501         References by Joachim Schmitz <schmitz@hp.com>.
10502
10503 2010-10-02  Bruno Haible  <bruno@clisp.org>
10504
10505         Define missing EDQUOT on NonStop Kernel.
10506         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10507         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10508         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10509         missing.
10510         * doc/posix-headers/errno.texi: Mention the NSK bug.
10511         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10512         Reported by Joachim Schmitz <schmitz@hp.com>.
10513
10514 2010-10-02  Bruno Haible  <bruno@clisp.org>
10515
10516         Update doc for POSIX:2008.
10517         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10518         Update URL of POSIX specification.
10519
10520 2010-10-02  Bruno Haible  <bruno@clisp.org>
10521
10522         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10523         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10524         from gnulib, not from Automake.
10525
10526 2010-10-02  Bruno Haible  <bruno@clisp.org>
10527
10528         New module 'system-posix'.
10529         * modules/system-posix: New file.
10530         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10531         module is present.
10532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10533         GNULIB_SYSTEM_POSIX.
10534         * modules/stdlib (Depends-on): Remove sys_wait.
10535         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10536         * doc/posix-functions/system.texi: Mention the new module.
10537         * doc/posix-headers/stdlib.texi: Likewise.
10538         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10539         define test_sys_wait_macros to a no-op.
10540         Reported by Sam Steingold <sds@gnu.org>.
10541
10542 2010-09-30  Bruno Haible  <bruno@clisp.org>
10543
10544         More renaming from 'getdate' to 'get_date'.
10545         * doc/get_date.texi: Renamed from doc/getdate.texi.
10546         * modules/get_date (Files): Update.
10547         * MODULES.html.sh (Date and time <time.h>): Update.
10548         * DEPENDENCIES: Update.
10549         * gnulib-tool: Update comment.
10550         * m4/bison.m4 (gl_BISON): Likewise.
10551         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10552
10553 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10554
10555         bootstrap: support ACLOCAL_FLAGS during aclocal
10556         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10557         can add additional -I dir for third-party .m4 files.
10558
10559 2010-09-30  Eric Blake  <eblake@redhat.com>
10560
10561         bootstrap: use glibtoolize on MacOS
10562         * build-aux/bootstrap (check_versions): Convert libtool into
10563         libtoolize.
10564         (tool search): Move libtool check earlier, and look for
10565         glibtoolize for MacOS.
10566         (gnulib_tool_options): Auto-add --libtool when appropriate.
10567         Reported by Justin Clift.
10568
10569         poll: fix typo that broke test on MacOS
10570         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10571         Reported by Justin Clift.
10572
10573         getdate: rename to get_date
10574         Note: getdate.h is not renamed, to minimize client impact.
10575         * modules/getdate: Mark obsolete.  Move old contents...
10576         * modules/get_date: ...to new module name.
10577         * modules/getdate-tests: Move...
10578         * modules/get_date-tests: ...here.
10579         * m4/getdate.m4: Move...
10580         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10581         * lib/getdate.y: Move...
10582         * lib/get_date.y: ...here.
10583         * tests/test-getdate.c: Move...
10584         * tests/test-get_date.c: ...here.
10585         * doc/posix-functions/getdate.texi (getdate): Update name.
10586         * NEWS: Mention the change.
10587
10588 2010-09-29  Bruno Haible  <bruno@clisp.org>
10589
10590         Separate the module 'waitpid' from the module 'sys_wait'.
10591         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10592         present.
10593         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10594         gl_MODULE_INDICATOR_FOR_TESTS.
10595         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10596         * modules/sys_wait (Depends-on): Remove waitpid.
10597         (Makefile.am): Substitute GNULIB_WAITPID.
10598         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10599         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10600         signature only if the 'waitpid' module is present.
10601         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10602         * NEWS: Mention the change.
10603         * modules/grantpt (Depends-on): Add waitpid.
10604         * modules/wait-process (Depends-on): Likewise.
10605
10606 2010-09-29  Bruno Haible  <bruno@clisp.org>
10607
10608         More tests for module 'sys_wait'.
10609         * modules/sys_wait-c++-tests: New file.
10610         * tests/test-sys_wait-c++.cc: New file.
10611         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10612         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10613
10614 2010-09-29  Bruno Haible  <bruno@clisp.org>
10615
10616         New module 'waitpid'.
10617         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10618         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10619         Don't include <process.h>.
10620         (waitpid): Declare only, using modern idiom.
10621         * m4/waitpid.m4: New file.
10622         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10623         * modules/waitpid: New file.
10624         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10625         (Makefile.am): Update.
10626         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10627
10628 2010-09-28  Bruno Haible  <bruno@clisp.org>
10629
10630         poll: Assume ANSI C.
10631         * lib/poll.c (poll): Use an ANSI C declaration.
10632
10633 2010-09-28  Bruno Haible  <bruno@clisp.org>
10634
10635         poll-h: Create poll.h on all platforms.
10636         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10637         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10638         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10639         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10640         (gl_REPLACE_POLL_H): Don't set POLL_H.
10641         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10642         * modules/poll-h (Depends-on): Add include_next.
10643         (Makefile.am): Create poll.h unconditionally. Substitute also
10644         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10645
10646 2010-09-28  Bruno Haible  <bruno@clisp.org>
10647
10648         Tests for module 'poll-h'.
10649         * modules/poll-h-c++-tests: New file.
10650         * tests/test-poll-h-c++.cc: New file.
10651
10652         Tests for module 'poll-h'.
10653         * modules/poll-h-tests: New file.
10654         * tests/test-poll-h.c: New file.
10655
10656 2010-09-28  Bruno Haible  <bruno@clisp.org>
10657
10658         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10659         * modules/poll-h (Depends-on): Add 'extensions'.
10660
10661 2010-09-28  Bruno Haible  <bruno@clisp.org>
10662
10663         New module 'poll-h'.
10664         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10665         (poll): Use modern idiom.
10666         * modules/poll-h: New file.
10667         * modules/poll (Files): Remove lib/poll.in.h.
10668         (Depends-on): Add poll-h.
10669         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10670         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10671         * m4/poll_h.m4: New file.
10672         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10673         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10674         and invoke gl_REPLACE_POLL_H.
10675         * lib/poll.c: Use common idiom.
10676         * tests/test-poll.c: Likewise.
10677         * doc/posix-headers/poll.texi: Mention the poll-h module.
10678         Suggested by Eric Blake.
10679
10680 2010-09-26  Bruno Haible  <bruno@clisp.org>
10681
10682         sys_wait: Implement WSTOPSIG.
10683         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10684         Reported by Simon Josefsson.
10685
10686 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10687
10688         stdlib, sys_wait: Avoid compilation error on mingw.
10689         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10690
10691 2010-09-26  Bruno Haible  <bruno@clisp.org>
10692
10693         stdlib tests: Avoid code duplication.
10694         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10695         * modules/sys_wait-tests (Files): Likewise.
10696         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10697         * tests/test-stdlib.c: Include test-sys_wait.h.
10698         (main): Invoke test_sys_wait_macros.
10699         * tests/test-sys_wait.c: Include test-sys_wait.h.
10700         (main): Invoke test_sys_wait_macros.
10701
10702 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10703
10704         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10705         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10706         sure Windows sockets are working before calling getaddrinfo.
10707         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10708         * doc/gnulib.texi (Windows sockets): Fix typo.
10709
10710 2010-09-25  Bruno Haible  <bruno@clisp.org>
10711
10712         Tests for module 'regex-quote'.
10713         * modules/regex-quote-tests: New file.
10714         * tests/test-regex-quote.c: New file.
10715
10716         New module 'regex-quote'.
10717         * lib/regex-quote.h: New file.
10718         * lib/regex-quote.c: New file.
10719         * modules/regex-quote: New file.
10720         Suggested by Reuben Thomas <rrt@sc3d.org>.
10721
10722 2010-09-24  Bruno Haible  <bruno@clisp.org>
10723
10724         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10725         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10726
10727 2010-09-23  Bruno Haible  <bruno@clisp.org>
10728
10729         setenv: Relax license.
10730         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10731         Blake.
10732         Requested by Eric Blake.
10733
10734 2010-09-22  Bruno Haible  <bruno@clisp.org>
10735
10736         termios: Relax license.
10737         * modules/termios (License): Change to LGPLv2+.
10738         Requested by Eric Blake.
10739
10740 2010-09-22  Bruno Haible  <bruno@clisp.org>
10741
10742         threadlib: Allow the package to change the default to 'no'.
10743         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10744         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10745         Reported by Paul Eggert.
10746
10747 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10748             Bruno Haible  <bruno@clisp.org>
10749
10750         Fix endless loop in mbmemcasecoll.
10751         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10752         byte.
10753         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10754
10755 2010-09-22  Bruno Haible  <bruno@clisp.org>
10756
10757         Tests for module 'memcoll'.
10758         * modules/memcoll-tests: New file.
10759         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10760
10761         memcoll, xmemcoll: Clarify size vs. length.
10762         * modules/memcoll.c (memcoll0): Clarify specification.
10763         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10764         passed to collate_error.
10765
10766 2010-09-22  Bruno Haible  <bruno@clisp.org>
10767
10768         Tests for module 'memcasecmp'.
10769         * modules/memcasecmp-tests: New file.
10770         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10771
10772 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10773
10774         * lib/pthread.in.h: Add split double-inclusion guard, and include
10775         system <pthread.h> if there is one.  Use @@-style as in other
10776         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10777         pthread.h doesn't.
10778         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10779         (pthread_mutexattr_settype, pthread_mutex_trylock):
10780         New static inline functions, if there's no system <pthread.h>.
10781         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10782         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10783         Approximate with mutexes if the system lacks spinlocks, as in
10784         MacOS.
10785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10786         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10787         @@-style.  Check for spinlocks separately.
10788         (gl_PTHREAD_DEFAULTS): New macro.
10789         * modules/pthread: Redo to use a more typical style for in.h files.
10790
10791 2010-09-21  Eric Blake  <eblake@redhat.com>
10792
10793         net_if: enhance tests
10794         * tests/test-net_if.c (main): Move signature checks earlier.
10795         Print failures to stderr.
10796         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10797         Document the bug that we do not yet fix.
10798
10799 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10800
10801         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10802         about gnulib, not GSS.
10803
10804 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10805
10806         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10807         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10808         for Emacs.
10809         * build-aux/pmccabe2html: Make Makefile.am example code more
10810         cut-and-paste friendly.
10811
10812 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10813
10814         * tests/test-net_if.c: New file.
10815         * modules/net_if-tests: New file.
10816
10817 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10818
10819         pthread: add pthread_spin_destroy
10820         * lib/pthread.in.h (pthread_spin_destroy): New function.
10821
10822 2010-09-19  Bruno Haible  <bruno@clisp.org>
10823
10824         gnulib-tool: Fix --help output.
10825         * gnulib-tool (func_usage): Fix help message.
10826         Reported by Reuben Thomas <rrt@sc3d.org>.
10827
10828 2010-09-18  Jim Meyering  <meyering@redhat.com>
10829
10830         maint.mk: avoid unexpanded \n in two diagnostics
10831         * top/maint.mk (sc_prohibit_always_true_header_tests):
10832         Don't use a literal \n in a halt=... assignment.  It would not be
10833         expanded, and the two \n bytes would appear in the diagnostic output
10834         rather than the desired newline.  Use halt=$$(printf ... instead.
10835         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10836
10837 2010-09-18  Bruno Haible  <bruno@clisp.org>
10838
10839         netinet_in: Doc tweak.
10840         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10841         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10842
10843 2010-09-18  Jim Meyering  <meyering@redhat.com>
10844
10845         init.sh: correct an outdated comment
10846         * tests/init.sh (create_exe_shims_):  s/function/alias/
10847
10848         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10849         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10850         a file named "*.exe" is removed between the glob expansion and the
10851         processing of that oddly named file.
10852
10853 2010-09-17  Eric Blake  <eblake@redhat.com>
10854
10855         mirbsd: add some more support
10856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10857         in BSD family.
10858         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10859         devices as OpenBSD.
10860         * m4/host-os.m4 (mirbsd): Add MirBSD.
10861
10862         tests: fix unportable assumption on sys/wait.h
10863         * tests/test-sys_wait.c (main): Relax test.
10864         * tests/test-stdlib.c (main): Likewise.
10865
10866         init.sh: accomodate directory with no .exes
10867         * tests/init.sh: Accomodate directory containing only scripts.
10868
10869         tests: avoid compiler warning
10870         * tests/test-stdlib.c (main): Use the variable.
10871
10872         fdutimens, fdutimensat: update signature, again
10873         * lib/utimens.h (gl_futimens): Delete, and move signature...
10874         (fdutimens): ...here.
10875         (fdutimensat): Rearrange signature.
10876         (lutimensat): Rename variable for clarity.
10877         * lib/fdutimensat.c (fdutimensat): Update signature.
10878         * lib/utimens.c (fdutimens): Likewise.
10879         (gl_futimens): Delete.
10880         (utimens, lutimens): Update callers.
10881         * lib/futimens.c (futimens): Likewise.
10882         * tests/test-fdutimensat.c: Likewise.
10883         * tests/test-utimens.c: Likewise.
10884         * tests/test-futimens.h: Update comment.
10885         * NEWS: Mention this.
10886         Suggested by Paul Eggert.
10887
10888 2010-09-17  Bruno Haible  <bruno@clisp.org>
10889
10890         Take over the maintenance of some older macros from Autoconf.
10891         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10892         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10893         GNU Autoconf.
10894         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10895         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10896
10897 2010-09-17  Eric Blake  <eblake@redhat.com>
10898
10899         fdutimensat: drop atflag validation
10900         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10901         with valid fd, to close a race scenario where futimens is
10902         unsupported and FILE was replaced by a symlink.
10903         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10904         accordingly.
10905         Suggested by Paul Eggert.
10906
10907 2010-09-16  Bruno Haible  <bruno@clisp.org>
10908
10909         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10910         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10911
10912 2010-09-16  Bruno Haible  <bruno@clisp.org>
10913
10914         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10915         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10916         login_tty exists.
10917         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10918
10919 2010-09-16  Bruno Haible  <bruno@clisp.org>
10920
10921         login_tty: Make the replacement code work on BSD systems.
10922         * lib/login_tty.c: Include <sys/ioctl.h>.
10923         (login_tty): Use ioctl TIOCSCTTY when available.
10924         * modules/login_tty (Depends-on): Add sys_ioctl.
10925         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10926
10927 2010-09-16  Bruno Haible  <bruno@clisp.org>
10928
10929         login_tty: Stricter unit test.
10930         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10931         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10932         and tcgetsid() after login_tty.
10933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10934
10935 2010-09-16  Bruno Haible  <bruno@clisp.org>
10936
10937         New module 'tcgetsid'.
10938         * lib/tcgetsid.c: New file.
10939         * m4/tcgetsid.m4: New file.
10940         * modules/tcgetsid: New file.
10941         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10942         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10943         GNULIB_TCGETSID, HAVE_TCGETSID.
10944         * lib/termios.in.h: Include <sys/types.h>.
10945         (tcgetsid): New declaration.
10946         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10947         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10948         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10949         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10950
10951 2010-09-16  Bruno Haible  <bruno@clisp.org>
10952
10953         Tests for module 'termios'.
10954         * modules/termios-c++-tests: New file.
10955         * modules/termios-tests: New file.
10956         * tests/test-termios-c++.cc: New file.
10957         * tests/test-termios.c: New file.
10958
10959         New module 'termios'.
10960         * modules/termios: New file.
10961         * lib/termios.in.h: New file.
10962         * m4/termios_h.m4: New file.
10963         * doc/posix-headers/termios.texi: Mention the new module.
10964
10965 2010-09-16  Eric Blake  <eblake@redhat.com>
10966
10967         fdutimensat: add an atflag parameter
10968         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10969         * lib/utimens.h (fdutimensat): Update prototype.
10970         * tests/test-fdutimensat.c: Adjust test to match.
10971         * NEWS: Document the change.
10972         Suggested by Paul Eggert.
10973
10974 2010-09-16  Bruno Haible  <bruno@clisp.org>
10975
10976         Fix typos in comments.
10977         * lib/striconveh.h: Fix typo in comment.
10978         * lib/login_tty.c (login_tty): Likewise.
10979
10980 2010-09-15  Bruno Haible  <bruno@clisp.org>
10981
10982         stdlib: clarify MirBSD WEXITSTATUS bug
10983         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10984         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10985
10986 2010-09-15  Eric Blake  <eblake@redhat.com>
10987
10988         stdlib: work around MirBSD WEXITSTATUS bug
10989         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10990         * modules/stdlib (Depends-on): Add sys_wait.
10991         * tests/test-sys_wait.c (main): Enhance test.
10992         * tests/test-stdlib.c (main): Likewise.
10993         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10994
10995         docs: mention MacOS issue with WEXITSTATUS(constant)
10996         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10997         issue.
10998         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10999
11000         strnlen: add tests
11001         * modules/strnlen-tests: New file.
11002         * tests/test-strnlen.c: Likewise.
11003
11004 2010-09-14  Bruno Haible  <bruno@clisp.org>
11005
11006         unistr/base: Avoid link errors when module 'libunistring' is also used.
11007         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11008         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11009         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11010         Declare also when HAVE_LIBUNISTRING is set.
11011         Reported by Pádraig Brady <P@draigbrady.com>.
11012
11013 2010-09-14  Eric Blake  <eblake@redhat.com>
11014
11015         test-rawmemchr: make more robust
11016         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11017         (Depends-on, configure.ac): Add needed prerequisites to use it.
11018         * modules/memchr-tests (Files, Depends-on, configure.ac):
11019         Likewise, to avoid implicit reliance on memchr module prereqs.
11020         * tests/test-memchr.c (main): Ensure proper masking.
11021         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11022         reads.
11023
11024         memchr: detect glibc Alpha bug
11025         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11027         Alpha.
11028         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11029         * tests/test-memchr.c (main): Enhance test.
11030         Reported by Nelson H. F. Beebe.
11031
11032 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11033
11034         fts, getcwd, glob: audit for dirfd returning -1
11035         * lib/fts.c (opendir): Remove #define; no longer used.
11036         (opendirat): New arg PDIR_FD.  All callers changed.
11037         (fts_build, _opendir2): Use new opendirat to avoid the need for
11038         dirfd, or for checking whether dirfd returns a negative value.
11039         Don't use opendir; always use openat followed by fdopendir.
11040         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11041         it.
11042         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11043         returns -1 here.
11044         * modules/fts (Depends-on): Remove dirfd.
11045         * modules/getcwd (Depends-on): Likewise.
11046
11047 2010-09-13  Eric Blake  <eblake@redhat.com>
11048
11049         float: fix broken MirBSD header
11050         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11051         * doc/posix-headers/float.texi (float.h): Document it.
11052
11053 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11054
11055         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11056         * lib/fts.c (opendirat): New arg extra_flags.
11057         (__opendir2): Use it to avoid following symlinks when opening
11058         a directory, if symlinks are not supposed to be followed.  See
11059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11060
11061         fdopendir: preserve argument fd before returning
11062         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11063         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11064         (fdopendir): Use them, arranging for FD to be open to the same
11065         directory that it was when it started.  (It might be temporarily
11066         closed while fdopendir is running, so this not thread- or
11067         signal-safe.)  Be careful to do the right thing even when file
11068         descriptors are scarce and dup fails with errno == EMFILE.  See
11069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11070
11071 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11072
11073         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11074         * NEWS: Document change.
11075         * m4/regex.m4: Disable test for regoff_t size.
11076
11077 2010-09-13  Jim Meyering  <meyering@redhat.com>
11078
11079         fts: don't operate on an invalid file descriptor after failed dup
11080         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11081         negative file descriptor.
11082
11083 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11084
11085         savedir: add streamsavedir, deprecate fdsavedir
11086         * NEWS: Mention deprecation of fdsavedir.
11087         * lib/savedir.c (streamsavedir): New extern function, whose name
11088         ends in "savedir" to be consistent with the others.  This differs
11089         from savedirstream in that it doesn't close its argument.  The
11090         next version of GNU tar will use this instead of fdsavedir, to
11091         avoid some race conditions and conserve file descriptors.
11092         (savedirstream): Reimplement as a wrapper around streamsavedir.
11093         (fdsavedir): Add a comment deprecating this function.  As far as
11094         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11095         * lib/savedir.h (streamsavedir): New decl.
11096         (fdsavedir): Add a comment deprecating this.
11097
11098 2010-09-10  Bruno Haible  <bruno@clisp.org>
11099
11100         langinfo: Fix last commit.
11101         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11102         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11104
11105 2010-09-10  Bruno Haible  <bruno@clisp.org>
11106
11107         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11108         * lib/progreloc.c (O_EXEC): Define fallback.
11109
11110 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11111
11112         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11113         * NEWS: Document recent changes to fcntl-h.
11114         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11115         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11116         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11117         Similarly for O_SEARCH; this last was already true, but not documented.
11118         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11119         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11120         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11121         Likewise.
11122         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11123         is zero, not whether it is defined.
11124         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11125         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11126         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11127
11128 2010-09-10  Bruno Haible  <bruno@clisp.org>
11129
11130         langinfo, nl_langinfo: Fix for IRIX 5.3.
11131         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11132         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11133         HAVE_LANGINFO_YESEXPR.
11134         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11135         HAVE_LANGINFO_YESEXPR.
11136         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11137         HAVE_LANGINFO_T_FMT_AMPM is 0.
11138         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11139         HAVE_LANGINFO_YESEXPR is 0.
11140         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11141         NOEXPR.
11142         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11143         * doc/posix-functions/nl_langinfo.texi: Likewise.
11144         Reported by Eric Blake.
11145
11146 2010-09-10  Bruno Haible  <bruno@clisp.org>
11147
11148         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11149         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11150         on FreeBSD 8.0 and OpenBSD 4.6.
11151         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11152         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11153         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11154         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11155         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11156         ac_includes_default.
11157         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11158
11159 2010-09-09  Eric Blake  <eblake@redhat.com>
11160
11161         strsignal: work around NetBSD bug
11162         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11163         * lib/string.in.h (includes): Likewise.
11164         * doc/posix-functions/strsignal.texi (strsignal): Document the
11165         bug.
11166         Reported by Nelson H. F. Beebe.
11167
11168         gnulib-tool: work with NetBSD /bin/sh
11169         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11170         (func_get_description, func_get_comment, func_get_status)
11171         (func_get_notice, func_get_applicability, func_get_filelist)
11172         (func_get_dependencies, func_get_autoconf_early_snippet)
11173         (func_get_autoconf_snippet, func_get_automake_snippet)
11174         (func_get_include_directive, func_get_link_directive)
11175         (func_get_license, func_get_maintainer, func_import): Avoid
11176         shell syntax errors from parsing syntax extensions.
11177
11178 2010-09-09  Bruno Haible  <bruno@clisp.org>
11179
11180         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11181         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11182         a reliable way to determine whether the 'alias' command works.
11183
11184 2010-09-08  Jim Meyering  <meyering@redhat.com>
11185
11186         init.sh: penalize a set-x-impaired shell; don't disqualify it
11187         * tests/init.sh: Too many shells corrupt application stderr when
11188         you set -x, so we can't afford to disqualify them, since at least
11189         on Irix-6.5, that would disqualify all bourne shells.
11190         Instead, use a two-pass approach.
11191         On the first pass, try to find a shell that meets the stricter
11192         condition that set -x does not corrupt stderr.
11193         If no shell meets the stricter condition, retest each candidate
11194         shell, but without that extra condition.  Finally, when
11195         VERBOSE=yes is requested and set -x might cause trouble, simply
11196         issue a warning and refrain from enabling debug output.
11197
11198 2010-09-08  Eric Blake  <eblake@redhat.com>
11199
11200         unsetenv: fix OpenBSD bug
11201         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11202         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11203         documentation.
11204         Reported by Jim Meyering.
11205
11206         strtod: work around IRIX 6.5 bug
11207         * lib/strtod.c (strtod): Reparse number on shorter string if
11208         exponent parse was invalid.
11209         * tests/test-strtod.c (main): Add check for "0x1p 2".
11210         Reported by Tom G. Christensen.
11211
11212         getopt: optimize previous patch
11213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11214         empty variable.  Speed up awk script.
11215         Reported by Paolo Bonzini.
11216
11217 2010-09-08  Jim Meyering  <meyering@redhat.com>
11218
11219         test.sh: disqualify shells for which set -x corrupts stderr
11220         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11221         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11222         appear in stderr output.  For example, this command:
11223             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11224         prints "P=1" on those two systems:
11225
11226 2010-09-08  Bruno Haible  <bruno@clisp.org>
11227
11228         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11229         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11230         commands, because some shells ignore redirections when there is an
11231         error in the command lookup.
11232         Reported by Eric Blake.
11233
11234 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11235
11236         * lib/regex.h: Fix a mention of `regex_compile' (should be
11237         `re_compile_pattern').
11238         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11239         (re_set_registers): Correct name of parameter in comment.
11240
11241         * doc/regex.texi: Add documentation for missing syntax flags.
11242         Remove commented-out documentation of defunct syntax option
11243         RE_NO_EMPTY_ALTS.
11244         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11245         Add documentation of re_set_registers.
11246         Document trick to re-use a pattern buffer by setting fastmap manually.
11247         Update documentation of struct re_pattern_buffer per public members.
11248         Uncomment documentation of equivalence class operators and
11249         collating symbol operators, since they are now implemented,
11250         Explain leftmost-longest matching in relation to alternatives.
11251         Tidy documentation of substring matching.
11252         Remove POSIX documentation, which is done better in
11253         glibc, and refer the reader there. Keep BSD API documentation, as
11254         that is not readily available elsewhere.
11255
11256 2010-09-07  Eric Blake  <eblake@redhat.com>
11257
11258         getopt: handle POSIXLY_CORRECT set but not exported
11259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11260         export state of POSIXLY_CORRECT, due to bash set -o posix.
11261         Reported by Dustin J. Mitchell.
11262
11263 2010-09-05  Bruno Haible  <bruno@clisp.org>
11264
11265         gnulib-tool: Highlight the changed options.
11266         * gnulib-tool (func_usage): Display the --import, --add-import,
11267         --remove-import explanations in bold font.
11268
11269 2010-09-06  Karl Berry  <karl@gnu.org>
11270
11271         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11272
11273 2010-09-05  Bruno Haible  <bruno@clisp.org>
11274
11275         uniwidth/width: Update comment.
11276         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11277         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11278
11279 2010-09-05  Bruno Haible  <bruno@clisp.org>
11280
11281         isinf, isnan: Relax license.
11282         * modules/isinf (License): Change from GPL to LGPL, with consent from
11283         Ben Pfaff.
11284         * modules/isnan (License): Likewise.
11285         Requested by Ludovic Courtès.
11286
11287 2010-09-04  Bruno Haible  <bruno@clisp.org>
11288
11289         gnulib-tool: Help migration from --import to --add-import or --update.
11290         * gnulib-tool: Emit a verbose error message when --import is used
11291         without any module name.
11292
11293 2010-09-04  Bruno Haible  <bruno@clisp.org>
11294
11295         Update doc about gnulib-tool.
11296         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11297         'gnulib-tool --update' in more detail.
11298         Reported by Eric Blake.
11299
11300 2010-09-04  Bruno Haible  <bruno@clisp.org>
11301
11302         gnulib-tool: Change --import. New options --add/remove-import.
11303         * gnulib-tool: New options --add-import, --remove-import.
11304         (func_usage): Document them.
11305         (have_associative): Define always.
11306         (func_import): In import mode, don't merge the specified settings with
11307         the cached settings. Implement remove-import mode.
11308         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11309         Explain when to use them versus --import.
11310         (Simple update): Use --add-import instead of --import.
11311         * NEWS: Mention the change.
11312
11313 2010-09-04  Bruno Haible  <bruno@clisp.org>
11314
11315         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11316         separate gnulib.mk.
11317
11318 2010-09-04  Bruno Haible  <bruno@clisp.org>
11319
11320         gnulib-tool: Don't talk about CVS any more.
11321         * gnulib-tool (func_usage, func_import): Write "version control"
11322         instead of CVS.
11323
11324 2010-09-04  Jim Meyering  <meyering@redhat.com>
11325
11326         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11327         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11328         false positives (whose names may be ill-chosen) when searching
11329         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11330         would cause a false-positive.
11331
11332         avoid coreutils "make distcheck" failure
11333         Coreutils tests with an absolute build directory name that contains
11334         a space.  Not quoting this directory name caused a failure.
11335         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11336         * tests/test-vc-list-files-cvs.sh: Likewise.
11337
11338 2010-09-04  Bruno Haible  <bruno@clisp.org>
11339
11340         gnulib-tool: Avoid error when run in a package without Makefile.am.
11341         * gnulib-tool: When collecting the m4dirs in a package that does not
11342         have a Makefile.am, eliminate those directories that contain no
11343         gnulib-cache.m4. Fix expression that counts these directories.
11344
11345 2010-09-04  Bruno Haible  <bruno@clisp.org>
11346
11347         update-copyright test: Improve output when perl is missing or too old.
11348         * tests/test-update-copyright.sh: Move test of Perl version down after
11349         the test whether Perl exists. Provide an explanation relating Perl's
11350         error message to Automake's SKIP: message.
11351
11352 2010-09-04  Bruno Haible  <bruno@clisp.org>
11353
11354         Don't augment PATH in TESTS_ENVIRONMENT.
11355         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11356         set abs_aux_dir instead of augmenting PATH.
11357         * modules/vc-list-files-tests (Makefile.am): Likewise.
11358         * tests/test-update-copyright.sh: Augment PATH here.
11359         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11360         path_prepend_.
11361         * tests/test-vc-list-files-git.sh: Likewise.
11362
11363 2010-09-04  Jim Meyering  <meyering@redhat.com>
11364
11365         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11366         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11367
11368 2010-09-04  Bruno Haible  <bruno@clisp.org>
11369
11370         strdup: Fix compilation error in C++ mode.
11371         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11372         the macro.
11373
11374 2010-09-04  Bruno Haible  <bruno@clisp.org>
11375
11376         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11377         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11378         macro into a function.
11379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11380
11381 2010-09-04  Bruno Haible  <bruno@clisp.org>
11382
11383         Set PATH_SEPARATOR the same way autoconf does.
11384         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11385         the value of PATH_SEPARATOR the same way autoconf-generated configure
11386         scripts do.
11387         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11388         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11389
11390 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11391
11392         Set PATH_SEPARATOR the same way autoconf does.
11393         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11394         the same way autoconf-generated configure scripts do.
11395         * posix-modules: Likewise.
11396
11397 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11398
11399         hash: fix safe_hasher const typo
11400         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11401         const; otherwise, there is a type error later.
11402
11403 2010-09-02  Jim Meyering  <meyering@redhat.com>
11404
11405         test-update-copyright.sh: require perl 5.8.0
11406         * tests/test-update-copyright.sh: Require 5.8.0,
11407         which Tom G. Christensen has confirmed is adequate,
11408         while 5.6.1 is not.
11409
11410 2010-09-02  Eric Blake  <eblake@redhat.com>
11411
11412         tests: init.sh improvements for re-exec'ing with zsh
11413         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11414         -vx through shell re-exec.
11415         Reported by Tom G. Christensen.
11416
11417         wctype: fix typo in previous commit
11418         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11419         Reported by Ludovic Courtès.
11420
11421 2010-09-02  Jim Meyering  <meyering@redhat.com>
11422
11423         test-update-copyright.sh: skip test if Perl is too old
11424         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11425         Reported by Tom G. Christensen.
11426
11427 2010-09-02  Bruno Haible  <bruno@clisp.org>
11428
11429         wctype: Avoid compilation error on IRIX 6.5.30.
11430         * lib/wctype.in.h (iswblank): Declare with a replacement if
11431         REPLACE_ISWBLANK is set.
11432         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11433         declared. Set REPLACE_ISWBLANK.
11434         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11435         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11436         * doc/posix-headers/wctype.texi: Likewise.
11437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11438
11439 2010-09-01  Bruno Haible  <bruno@clisp.org>
11440
11441         New module 'socketlib'.
11442         * modules/socketlib: New file.
11443         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11444         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11445         * modules/sockets (Depends-on): Add socketlib.
11446         Suggested by Sam Steingold <sds@gnu.org>.
11447
11448 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11451
11452         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11453         when one needs search access to a directory but not read access.
11454         On systems where it is available, it works in some cases where
11455         O_RDONLY does not, namely on directories that are searchable but
11456         not readable, and which need only to be searchable.  If O_SEARCH
11457         is not available, fall back to the traditional method of using
11458         O_RDONLY.
11459
11460         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11461         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11462         when opening a directory that needs only to be searchable.
11463         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11464         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11465         * lib/openat-proc.c (openat_proc_name): Likewise.
11466         * lib/openat.c (openat_needs_fchdir): Likewise.
11467         * lib/save-cwd.c (save_cwd): Likewise.
11468         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11469
11470 2010-08-28  Bruno Haible  <bruno@clisp.org>
11471
11472         New module 'host-cpu-c-abi'.
11473         * modules/host-cpu-c-abi: New file.
11474         * m4/host-cpu-c-abi.m4: New file, based on part of
11475         clisp/src/m4/general.m4.
11476         Requested by Sam Steingold <sds@gnu.org>.
11477
11478 2010-08-31  Eric Blake  <eblake@redhat.com>
11479         and Jim Meyering  <meyering@redhat.com>
11480
11481         hash: factor, and guard against misbehaving hasher function
11482         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11483         of table->hasher's return value.  Also protect against a hash value
11484         so large that adding it to table->bucket results in a NULL pointer.
11485         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11486         Use it in place of open-coded check-and-abort.
11487
11488 2010-08-30  Bruno Haible  <bruno@clisp.org>
11489
11490         hash: silence spurious clang warning
11491         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11492         Reported by Eric Blake.
11493
11494 2010-08-30  Eric Blake  <eblake@redhat.com>
11495
11496         strstr, memmem, strcasestr: avoid leaked shell message
11497         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11498         FreeBSD.
11499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11501
11502         tests: silence clang warning
11503         * tests/test-malloca.c (do_allocation): Avoid dead store.
11504
11505 2010-08-29  Bruno Haible  <bruno@clisp.org>
11506
11507         gettext: Fix recent mistake.
11508         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11509
11510 2010-08-29  Bruno Haible  <bruno@clisp.org>
11511
11512         selinux-h: Offer a --without-selinux option.
11513         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11514         --without-selinux was specified, skip all tests and define
11515         HAVE_SELINUX_SELINUX_H to 0.
11516         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11517         set LIB_SELINUX to empty.
11518         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11519         gl_LIBSELINUX. If --without-selinux was specified, replace
11520         selinux/context.h.
11521         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11522
11523 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11524             Bruno Haible  <bruno@clisp.org>
11525
11526         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11527         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11528         of HAVE_REALLOC.
11529         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11530         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11531         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11532         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11533
11534 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11535             Bruno Haible  <bruno@clisp.org>
11536
11537         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11538         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11539         HAVE_CALLOC.
11540         * lib/xmalloc.c: Update accordingly.
11541         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11542         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11543         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11544
11545 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11546             Bruno Haible  <bruno@clisp.org>
11547
11548         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11549         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11550         HAVE_MALLOC.
11551         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11552         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11553         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11554
11555 2010-08-29  Bruno Haible  <bruno@clisp.org>
11556
11557         Update modules list.
11558         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11559         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11560         (String handling <string.h>): Add astrxfrm.
11561         (File system functions): Add readlinkat.
11562
11563 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11564
11565         Tests for module 'realloc-gnu'.
11566         * modules/realloc-gnu-tests: New file.
11567         * tests/test-realloc-gnu.c: New file.
11568
11569         Tests for module 'calloc-gnu'.
11570         * modules/calloc-gnu-tests: New file.
11571         * tests/test-calloc-gnu.c: New file.
11572
11573         Tests for module 'malloc-gnu'.
11574         * modules/malloc-gnu-tests: New file.
11575         * tests/test-malloc-gnu.c: New file.
11576
11577 2010-08-28  Bruno Haible  <bruno@clisp.org>
11578
11579         Rename module 'realloc' -> 'realloc-gnu'.
11580         * modules/realloc-gnu: New file, copied from modules/realloc.
11581         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11582         obsolete.
11583         * modules/mgetgroups (Depends-on): Update.
11584         * doc/posix-functions/realloc.texi: Update.
11585         * NEWS: Mention the change.
11586
11587         Rename module 'calloc' -> 'calloc-gnu'.
11588         * modules/calloc-gnu: New file, copied from modules/calloc.
11589         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11590         obsolete.
11591         * doc/posix-functions/calloc.texi: Update.
11592         * NEWS: Mention the change.
11593
11594         Rename module 'malloc' -> 'malloc-gnu'.
11595         * modules/malloc-gnu: New file, copied from modules/malloc.
11596         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11597         obsolete.
11598         * modules/argp (Depends-on): Update.
11599         * modules/regex (Depends-on): Update.
11600         * doc/posix-functions/malloc.texi: Update.
11601         * NEWS: Mention the change.
11602
11603 2010-08-28  Eric Blake  <eblake@redhat.com>
11604
11605         pread, pwrite: add missing dependency
11606         * modules/pread (Depends-on): Add extensions.
11607         * modules/pwrite (Depends-on): Likewise.
11608
11609 2010-08-28  Bruno Haible  <bruno@clisp.org>
11610
11611         unistr/u*-strchr: Fix tests dependencies.
11612         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11613         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11614         Reported by Ian Beckwith <ianb@erislabs.net>.
11615
11616 2010-08-28  Bruno Haible  <bruno@clisp.org>
11617
11618         read-file: Don't occupy too much unused memory.
11619         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11620
11621 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11622             Eric Blake  <eblake@redhat.com>
11623             Bruno Haible  <bruno@clisp.org>
11624
11625         read-file: Avoid memory reallocations with regular files.
11626         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11627         (fread_file): With regular files, use the remaining length as the
11628         initial buffer size.  Check against overflow.
11629         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11630         sys_stat.
11631
11632 2010-08-28  Bruno Haible  <bruno@clisp.org>
11633
11634         ftello: Relax license.
11635         * modules/ftello (License): Relax to LGPLv2+.
11636         Reported by Eric Blake.
11637
11638 2010-08-28  Bruno Haible  <bruno@clisp.org>
11639
11640         Avoid relocwrapper link errors due to gnulib replacement functions.
11641         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11642         function.
11643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11644
11645 2010-08-28  Bruno Haible  <bruno@clisp.org>
11646
11647         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11648         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11649         defined.
11650         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11651         Suggested by Eric Blake.
11652
11653 2010-08-28  Bruno Haible  <bruno@clisp.org>
11654
11655         sys_socket, netdb: Ensure socklen_t gets defined.
11656         * modules/sys_socket (Depends-on): Add socklen.
11657         * modules/netdb (Depends-on): Likewise.
11658         * modules/getaddrinfo (Depends-on): Remove socklen.
11659         * modules/getsockopt (Depends-on): Likewise.
11660         * modules/setsockopt (Depends-on): Likewise.
11661         * tests/test-sys_socket.c: Check that socklen_t is defined.
11662         * tests/test-netdb.c: Likewise.
11663         * m4/socklen.m4: Update comments.
11664         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11665
11666 2010-08-27  Eric Blake  <eblake@redhat.com>
11667
11668         login_tty: add missing dependency
11669         * modules/login_tty (Depends-on): Add pty.
11670
11671 2010-08-26  Eric Blake  <eblake@redhat.com>
11672
11673         lib-symbol-versions: fix m4 quoting
11674         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11675         format for AC_LINK_IFELSE.
11676
11677         glob: fix compile test
11678         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11679
11680         btowc: fix missing file
11681         * modules/btowc (Files): Also ship locale-fr.m4.
11682
11683         lseek: fix link test
11684         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11685         AC_LINK_IFELSE.
11686
11687         include_next: silence autoconf 2.68 warning
11688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11689         AC_COMPILE_IFELSE as special.
11690         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11691         autoconf < 2.68.
11692
11693         acl: fix compilation test
11694         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11695         AC_COMPILE_IFELSE.
11696
11697 2010-08-26  Bruno Haible  <bruno@clisp.org>
11698
11699         Modernize AC_TRY_RUN invocations.
11700         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11701         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11702         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11703         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11704         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11705         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11708         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11709         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11710         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11711         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11712         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11715         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11716         gl_MBRLEN_NUL_RETVAL): Likewise.
11717         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11718         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11719         Likewise.
11720         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11721         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11722         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11723         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11724         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11725         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11726         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11727         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11728         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11729         Likewise.
11730         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11731         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11733         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11734         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11735         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11736         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11737         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11738         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11740
11741 2010-08-26  Bruno Haible  <bruno@clisp.org>
11742
11743         Modernize AC_TRY_LINK invocations.
11744         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11745         AC_TRY_LINK.
11746         * m4/argp.m4 (gl_ARGP): Likewise.
11747         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11748         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11749         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11750         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11751         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11752         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11753         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11754         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11755         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11757         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11758         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11759         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11760         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11761         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11762         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11763         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11764         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11765         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11766         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11767         Likewise.
11768         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11769         Likewise.
11770         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11771         Likewise.
11772         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11774         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11775         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11776         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11777         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11778         * m4/servent.m4 (gl_SERVENT): Likewise.
11779         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11780         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11781         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11782         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11784         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11785         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11787         * modules/tsearch-tests (configure.ac): Likewise.
11788
11789 2010-08-26  Bruno Haible  <bruno@clisp.org>
11790
11791         Modernize AC_TRY_COMPILE invocations.
11792         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11793         AC_TRY_COMPILE.
11794         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11795         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11796         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11797         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11798         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11799         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11800         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11801         * m4/lock.m4 (gl_LOCK): Likewise.
11802         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11804         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11806         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11807         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11808         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11810         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11811         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11812         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11813         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11814         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11815         extraneous semicolon.
11816
11817 2010-08-26  Jim Meyering  <meyering@redhat.com>
11818
11819         stat-time: relax license LGPL
11820         * modules/stat-time (License): Change from GPL to LGPL,
11821         with consent from all contributors, for use in libguile.
11822         Requested by Ludovic Courtès.
11823
11824 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11825
11826         poll: return immediately on POLLHUP.
11827         * lib/poll.c (poll): Always set timeout before wait_timeout is
11828         computed.
11829
11830 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11831
11832         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11833         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11834         rmdir ("dir/.//"), unlinkat.
11835
11836 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11837
11838         stdbool: avoid spurious failure with modern xlc
11839         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11840
11841 2010-08-24  Bruno Haible  <bruno@clisp.org>
11842
11843         getloadavg: simplify code
11844         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11845         gl_have_func. Update comments.
11846
11847 2010-08-24  Eric Blake  <eblake@redhat.com>
11848
11849         getloadavg: don't define SVR4 on cygwin
11850         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11851         only define SVR4 when -lkvm is required.
11852         Reported by Yaakov Selkowitz.
11853
11854 2010-08-24  Bruno Haible  <bruno@clisp.org>
11855
11856         priv-set: fix comment
11857         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11858
11859 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         priv-set: fix comments
11862         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11863         to match code, as suggested by David Bartley in:
11864         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11865
11866 2010-08-23  Eric Blake  <eblake@redhat.com>
11867
11868         stdbool: avoid rejecting clang
11869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11870         * tests/test-stdbool.c: Enable more tests if using the system
11871         <stdbool.h> instead of the gnulib replacement.
11872         (main): Move xlc bug test to a runtime test for all compilers.
11873         Reported by Anders Kaseorg.
11874
11875         argz: fix shell quoting issue
11876         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11877         Reported by Charles Wilson.
11878
11879 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11880             Erik Faye-Lund <kusmabite@gmail.com>
11881
11882         poll, select: handle ERROR_BROKEN_PIPE.
11883         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11884         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11885         * lib/select.c (win32_compute_revents): Do not mark a pipe
11886         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11887
11888 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11889
11890         fts: allow compilation with C++
11891         * lib/fts_.h: Specify extern "C" linkage with C++.
11892
11893 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11894
11895         Fix gnulib-tool sed script de-commentation for AIX sed.
11896         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11897         sed.
11898
11899 2010-08-17  Eric Blake  <eblake@redhat.com>
11900
11901         test-stddef: test for (some) offsetof bugs
11902         * tests/test-stddef.c: Enhance test to ensure correct type of
11903         offsetof.
11904         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11905         that we are not fixing at this time.
11906
11907 2010-08-15  Bruno Haible  <bruno@clisp.org>
11908
11909         stpncpy: Allow stpncpy to be defined as a macro.
11910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11911         if it's already correctly declared.
11912         * lib/string.in.h (stpncpy): Undefine before redefining.
11913         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11914
11915 2010-08-14  Bruno Haible  <bruno@clisp.org>
11916
11917         Rename module 'memxfrm' to 'amemxfrm'.
11918         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11919         (amemxfrm): Renamed from memxfrm.
11920         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11921         (amemxfrm): Renamed from memxfrm.
11922         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11923         * NEWS: Mention the change.
11924         * MODULES.html.sh (String handling <string.h>): Update.
11925         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11926         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11927         * lib/unicase/u16-casexfrm.c: Likewise.
11928         * lib/unicase/u32-casexfrm.c: Likewise.
11929         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11930         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11931         * lib/uninorm/u16-normxfrm.c: Likewise.
11932         * lib/uninorm/u32-normxfrm.c: Likewise.
11933         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11934         memxfrm.
11935         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11936         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11937         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11938         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11939         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11940         Suggested by Paul Eggert.
11941
11942 2010-08-14  Bruno Haible  <bruno@clisp.org>
11943
11944         Tests for module 'astrxfrm'.
11945         * modules/astrxfrm-tests: New file.
11946         * tests/test-astrxfrm.c: New file.
11947
11948         New module 'astrxfrm'.
11949         * lib/astrxfrm.h: New file.
11950         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11951         * modules/astrxfrm: New file.
11952
11953 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11954
11955         regex: Tweak doc.
11956         * doc/regex.texi (Overview): Don't mention regex.c.
11957         (GNU Regular Expression Compiling): Likewise.
11958         (Match-end-of-line Operator): Mention 'not_eol'.
11959
11960 2010-08-14  Brian Gough  <bjg@gnu.org>
11961             Bruno Haible  <bruno@clisp.org>
11962
11963         git-merge-changelog: add doc relating to use with bzr and hg.
11964         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11965
11966 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11967
11968         pthread: fix pthread.h creation for srcdir != builddir
11969         * modules/pthread (Makefile.am): Fix the rule to work also in a
11970         non-srcdir build.
11971
11972 2010-08-13  Karl Berry  <karl@gnu.org>
11973
11974         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11975         * doc/posix-*/*: force line break before @url of POSIX
11976         specifications.
11977         Suggested by Werner Lemberg.
11978
11979 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11980
11981         strtod: fix const diagnostic
11982         * lib/strtod.c (strtod): Don't assign const char * to char *,
11983         as this elicits a warning from GCC when warnings are enabled.
11984
11985 2010-08-10  Pádraig Brady <P@draigbrady.com>
11986         and Eric Blake  <eblake@redhat.com>
11987
11988         copy-acl: ignore ENOTSUP on HP-UX
11989         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11990         so that it is available for HP-UX.
11991         * lib/copy-acl.c (qcopy_acl): Use it.
11992         Reported by Patrick M. Callahan.
11993
11994 2010-08-10  Eric Blake  <eblake@redhat.com>
11995
11996         open, chown: relax license
11997         * modules/open (License): Change to LGPLv2+, with consent by all
11998         authors, for use in augeas.
11999         * modules/chown (License): Likewise.
12000         * modules/lchown (Likewise): Likewise.
12001         Requested by Adam Stokes.
12002
12003 2010-08-09  Karl Berry  <karl@gnu.org>
12004
12005         * build-aux/ar-lib: new file, import from Automake.
12006         * config/srclist.txt: autocheck for updates.
12007
12008 2010-08-09  Eric Blake  <eblake@redhat.com>
12009
12010         readlinkat: adjust client modules
12011         * modules/areadlinkat (Depends-on): Use readlinkat, not
12012         symlinkat.
12013         * modules/areadlinkat-with-size (Depends-on): Likewise.
12014
12015         mknod: be more vocal about danger of running tests as root
12016         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12017         root, since that is just asking for problems.
12018         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12019
12020         readlinkat: split into its own module
12021         * modules/symlinkat: Split readlinkat...
12022         * modules/readlinkat: ...into separate module.
12023         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12024         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12025         * lib/symlinkat.c (readlinkat): Move...
12026         * lib/readlinkat.c: ...into new file.
12027         * modules/symlinkat-tests: Split readlinkat test...
12028         * modules/readlinkat-tests: ...into separate module.
12029         * tests/test-symlinkat.c: Split...
12030         * tests/test-readlinkat.c: ...into new file.
12031         * NEWS: Document the split.
12032         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12033         * lib/unistd.in.h (readlinkat): Likewise.
12034         Suggested by Bruno Haible.
12035
12036 2010-08-08  Bruno Haible  <bruno@clisp.org>
12037
12038         memxfrm: Speed up.
12039         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12040         that usually only one call to strxfrm is necessary for each string
12041         part.
12042         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12043
12044 2010-08-07  Karl Berry  <karl@gnu.org>
12045
12046         * doc/posix-headers/limits.texi,
12047         * doc/posix-functions/malloc.texi,
12048         * doc/posix-functions/strsignal.texi: missing @item.
12049         * doc/ld-version-script.texi: spurious leading i.
12050         * doc/regex.texi (Interval Operators): no commas inside @var.
12051
12052 2010-08-01  Bruno Haible  <bruno@clisp.org>
12053
12054         Integrate the regex documentation.
12055         * doc/gnulib.texi: Define 'cn' index.
12056         (Regular expressions): New a chapter that includes regex.texi and
12057         regexprops-generic.texi.
12058         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12059         syntax.
12060
12061         Whitespace cleanup.
12062         * doc/regex.texi: Remove trailing spaces.
12063
12064         Add regex documentation.
12065         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12066         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12067         Written by Kathy A. Hargreaves and Karl Berry.
12068
12069 2010-08-01  Bruno Haible  <bruno@clisp.org>
12070
12071         link: Update documentation.
12072         * doc/posix-functions/link.texi: Update regarding Solaris.
12073
12074 2010-07-31  Bruno Haible  <bruno@clisp.org>
12075
12076         Update modules list.
12077         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12078         (String handling <string.h>): Add memcmp2, memxfrm.
12079         (Container data structures): Add xlist, xsublist, xoset.
12080         (Core language properties): Add alignof, unused-parameter.
12081         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12082         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12083         (Unibyte characters <ctype.h>): New section.
12084         (String handling <string.h>): New section.
12085         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12086         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12087         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12088         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12089         tan, tanh, tanl, y0, y1, yn.
12090         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12091         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12092         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12093         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12094         unlockpt, vdprintf, vdprintf-posix.
12095         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12096         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12097         xconcat-filename.
12098         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12099         getdtablesize, pipe2, pipe2-safer.
12100         (Security): New section.
12101         (Networking functions): Add accept4.
12102         (Signal handling): Add sigpipe.
12103         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12104         mbmemcasecoll.
12105         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12106         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12107         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12108         pipe-filter-ii.
12109         (Misc): Add argp-version-etc, login_tty, parse-duration.
12110
12111 2010-07-31  Bruno Haible  <bruno@clisp.org>
12112
12113         Improve doc in MODULES.html.
12114         * modules/linkat (Description): Add the word "function".
12115         * modules/mkfifo (Description): Likewise.
12116         * modules/mknod (Description): Likewise.
12117         * modules/remove (Description): Likewise.
12118         * modules/renameat (Description): Likewise.
12119         * modules/stat (Description): Likewise.
12120         * modules/symlink (Description): Likewise.
12121         * modules/unlink (Description): Likewise.
12122
12123 2010-07-31  Bruno Haible  <bruno@clisp.org>
12124
12125         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12126         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12127         option --enable/disable-c++ instead of --enable/disable-cxx.
12128         * NEWS: Mention the change.
12129
12130 2010-07-31  Bruno Haible  <bruno@clisp.org>
12131
12132         readlink, areadlink: Relax test a bit.
12133         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12134         alternative to ENOTDIR.
12135         * tests/test-areadlink.h (test_areadlink): Likewise.
12136         Reported by Rainer Tammer.
12137
12138 2010-07-31  Bruno Haible  <bruno@clisp.org>
12139
12140         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12141         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12142         character, perform the search using U_STRCHR.
12143         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12144         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12145         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12146         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12147         Suggested by Paolo Bonzini.
12148
12149 2010-07-31  Bruno Haible  <bruno@clisp.org>
12150
12151         unistr/u*-strstr: Fix dependencies.
12152         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12153         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12154         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12155
12156 2010-07-31  Bruno Haible  <bruno@clisp.org>
12157
12158         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12159         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12160         the beginning of the loop.
12161         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12162         cases in 'switch' statement.
12163
12164         unistr/u8-strchr: Fix several bugs.
12165         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12166         the string. When not found, return NULL, not a pointer near the end.
12167
12168         More tests for unistr/u8-strchr.
12169         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12170         that the function does not read past the first occurrence of the byte
12171         being searched.
12172         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12173         * tests/unistr/test-u16-strchr.c (main): New function.
12174         * tests/unistr/test-u32-strchr.c (main): New function.
12175
12176 2010-07-31  Bruno Haible  <bruno@clisp.org>
12177
12178         posix-modules: Ignore backup files of documentation files.
12179         * posix-modules: grep only through files named *.texi.
12180
12181 2010-07-31  Bruno Haible  <bruno@clisp.org>
12182
12183         symlinkat: Fix documentation.
12184         * doc/posix-functions/readlinkat.texi: Fix module name.
12185
12186 2010-07-31  Bruno Haible  <bruno@clisp.org>
12187
12188         fchownat: Replace also when chown has the trailing slash bug.
12189         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12190         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12191         introduced on 2010-04-10.
12192         Reported by Rainer Tammer.
12193
12194 2010-07-31  Bruno Haible  <bruno@clisp.org>
12195
12196         linkat: Work around AIX 7.1 bug.
12197         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12198         whether linkat handles trailing slash correctly. If not, replace linkat
12199         and define LINKAT_TRAILING_SLASH_BUG.
12200         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12201         check whether (fd1,file1) points to a directory if file1 or file2 ends
12202         in a slash. Code taken from lib/link.c.
12203         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12204         Reported by Rainer Tammer.
12205
12206 2010-07-31  Bruno Haible  <bruno@clisp.org>
12207
12208         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12209         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12210         This disables an xlc optimization that was causing wrong test results.
12211         Reported by Rainer Tammer.
12212
12213 2010-07-31  Bruno Haible  <bruno@clisp.org>
12214
12215         iconv: Work around AIX 6.1..7.1 bug.
12216         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12217         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12218         cross-compiling, guess no on all versions of AIX.
12219         Reported by Rainer Tammer.
12220
12221 2010-07-31  Bruno Haible  <bruno@clisp.org>
12222
12223         readlink: Relax test a bit.
12224         * tests/test-readlink.h (test_readlink): Allow different errno value
12225         when readlink is called with a file name that ends in / and refers to
12226         a file.
12227         Suggested by Eric Blake.
12228         Reported by Rainer Tammer.
12229
12230 2010-07-31  Bruno Haible  <bruno@clisp.org>
12231
12232         copysign: Does not require -lm on glibc systems.
12233         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12234         gl_COMMON_DOUBLE_MATHFUNC.
12235         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12236
12237 2010-07-31  Bruno Haible  <bruno@clisp.org>
12238
12239         duplocale: Work around AIX 7.1 bug.
12240         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12241         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12242         * lib/duplocale.c (rpl_duplocale): Update comment.
12243         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12244         Reported by Rainer Tammer.
12245
12246 2010-07-30  Bruno Haible  <bruno@clisp.org>
12247
12248         dirfd: Avoid link error on AIX 7.1.
12249         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12250         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12251         exist, set REPLACE_DIRFD.
12252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12253         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12254         * doc/posix-functions/dirfd.texi: Update.
12255         Reported by Rainer Tammer.
12256
12257 2010-07-30  Eric Blake  <eblake@redhat.com>
12258
12259         strtod: next round of AIX fixes
12260         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12261         exponent.
12262         * tests/test-strtod.c (main): Enhance tests.
12263         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12264         Reported by Rainer Tammer.
12265
12266         futimens: fix configure check
12267         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12268         Reported by Bruno Haible.
12269
12270 2010-07-30  Bruno Haible  <bruno@clisp.org>
12271
12272         getline: Update regarding AIX.
12273         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12274         Reported by Rainer Tammer.
12275
12276 2010-07-30  Bruno Haible  <bruno@clisp.org>
12277
12278         wcwidth: Drop replacement on AIX 7.
12279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12280         AIX 7.
12281         Reported by Rainer Tammer.
12282
12283 2010-07-30  Bruno Haible  <bruno@clisp.org>
12284
12285         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12287         a 'char *'.
12288         Reported by Rainer Tammer.
12289
12290 2010-07-30  Bruno Haible  <bruno@clisp.org>
12291
12292         unlink: Update regarding AIX.
12293         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12294         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12295         Reported by Rainer Tammer.
12296
12297 2010-07-30  Bruno Haible  <bruno@clisp.org>
12298
12299         symlink: Update regarding AIX.
12300         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12301         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12302         Reported by Rainer Tammer.
12303
12304 2010-07-30  Bruno Haible  <bruno@clisp.org>
12305
12306         strndup: Update regarding AIX.
12307         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12308         AIX 7.
12309         Reported by Rainer Tammer.
12310
12311 2010-07-30  Bruno Haible  <bruno@clisp.org>
12312
12313         stat: Update regarding AIX.
12314         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12315         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12316         Reported by Rainer Tammer.
12317
12318 2010-07-30  Bruno Haible  <bruno@clisp.org>
12319
12320         truncl: Fix autoconf test.
12321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12322         whether truncl works.
12323         Reported by Rainer Tammer.
12324
12325 2010-07-30  Bruno Haible  <bruno@clisp.org>
12326
12327         round: Update regarding AIX.
12328         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12329         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12330         Reported by Rainer Tammer.
12331
12332 2010-07-30  Bruno Haible  <bruno@clisp.org>
12333
12334         rename: Update regarding AIX.
12335         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12336         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12337         Reported by Rainer Tammer.
12338
12339 2010-07-30  Bruno Haible  <bruno@clisp.org>
12340
12341         printf.m4: Update regarding AIX.
12342         * m4/printf.m4: Update comments regarding AIX.
12343         Reported by Rainer Tammer.
12344
12345 2010-07-30  Bruno Haible  <bruno@clisp.org>
12346
12347         iconv: Update regarding AIX.
12348         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12349         AIX 7.
12350         Reported by Rainer Tammer.
12351
12352 2010-07-30  Bruno Haible  <bruno@clisp.org>
12353
12354         getopt: Update regarding AIX.
12355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12356         no on AIX.
12357         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12358         Reported by Rainer Tammer.
12359
12360 2010-07-30  Bruno Haible  <bruno@clisp.org>
12361
12362         ldexpl; Update regarding AIX.
12363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12364         on AIX 7.
12365         Reported by Rainer Tammer.
12366
12367 2010-07-30  Bruno Haible  <bruno@clisp.org>
12368
12369         frexpl: Update regarding AIX.
12370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12371         on AIX 7.
12372         Reported by Rainer Tammer.
12373
12374 2010-07-30  Bruno Haible  <bruno@clisp.org>
12375
12376         open, fopen: Update regarding AIX.
12377         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12378         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12379         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12380         * doc/posix-functions/fopen.texi: Likewise.
12381         Reported by Rainer Tammer.
12382
12383 2010-07-30  Bruno Haible  <bruno@clisp.org>
12384
12385         chown: Update doc regarding AIX.
12386         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12387         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12388         Reported by Rainer Tammer.
12389
12390 2010-07-30  Eric Blake  <eblake@redhat.com>
12391
12392         strtod: fix bug in replacement function on AIX
12393         * lib/strtod.c (strtod): Special case broken "0x" parse in
12394         underlying strtod.
12395         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12396         * doc/posix-functions/strtod.texi (strtod): Likewise.
12397         Reported by Rainer Tammer.
12398
12399 2010-07-30  Bruno Haible  <bruno@clisp.org>
12400
12401         mbrlen: Fix cross-compilation guess for AIX.
12402         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12403         guess. Leftover from 2008-12-22.
12404
12405 2010-07-30  Bruno Haible  <bruno@clisp.org>
12406
12407         mbrtowc: Fix cross-compilation guess for AIX.
12408         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12409         guess. Leftover from 2008-12-21.
12410
12411 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12412
12413         init.sh: work around trap limitation of some shells
12414         * tests/init.sh (setup_): Move exit trap outside of shell function.
12415
12416 2010-07-29  Eric Blake  <eblake@redhat.com>
12417
12418         strtod: aid debugging
12419         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12420         understanding why strtod is rejected.
12421
12422 2010-07-28  Bruno Haible  <bruno@clisp.org>
12423
12424         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12425         * lib/unistr/u8-chr.c: Include <string.h>.
12426         * tests/unistr/test-u8-chr.c: Likewise.
12427         * tests/unistr/test-u16-chr.c: Likewise.
12428         * tests/unistr/test-u32-chr.c: Likewise.
12429         * tests/unistr/test-u8-strchr.c: Likewise.
12430         * tests/unistr/test-u16-strchr.c: Likewise.
12431         * tests/unistr/test-u32-strchr.c: Likewise.
12432         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12433         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12434         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12435         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12436
12437 2010-07-28  Bruno Haible  <bruno@clisp.org>
12438
12439         Use spaces for indentation, not tabs.
12440         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12441
12442 2010-07-27  Bruno Haible  <bruno@clisp.org>
12443
12444         mbspcasecmp: Fix function specification.
12445         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12446         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12447         Reported by Eric Blake <eblake@redhat.com>.
12448
12449 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12450
12451         timespec: use cast and not conditional, as truncation isn't possible
12452         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12453         instead of a conditional.  Comment about the situation in more detail.
12454         This undoes most of the 2009-10-29 patch.
12455
12456 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12457
12458         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12459         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12460         * lib/unistr/u8-strchr.c: Likewise.
12461         * modules/unistr/u8-chr: Depend on memchr.
12462
12463         unistr/u*-strchr: add tests
12464         * modules/unistr/u8-strchr-tests: New file.
12465         * modules/unistr/u16-strchr-tests: New file.
12466         * modules/unistr/u32-strchr-tests: New file.
12467         * tests/unistr/test-strchr.h: New file.
12468         * tests/unistr/test-u8-strchr.c: New file.
12469         * tests/unistr/test-u16-strchr.c: New file.
12470         * tests/unistr/test-u32-strchr.c: New file.
12471
12472         unistr/u*-chr: test multibyte sequences more
12473         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12474         test vector.
12475         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12476         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12477         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12478
12479         unistr/u*-chr: test multibyte sequences
12480         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12481
12482         unistr/u*-chr: prepare for multibyte tests
12483         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12484         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12485         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12486         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12487         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12488         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12489
12490 2010-07-18  Bruno Haible  <bruno@clisp.org>
12491
12492         unistr/u8-strchr: Optimize non-ASCII argument case.
12493         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12494         because the first byte often matches anyway.
12495         Reported by Pádraig Brady <P@draigbrady.com>.
12496
12497 2010-07-15  Karl Berry  <karl@gnu.org>
12498
12499         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12500
12501 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12502
12503         getcwd: on Solaris, work better if ancestors are inaccessible
12504         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12505         buffer and size, try again with a large buffer.  This works better
12506         on Solaris, since its getcwd succeeds even if the path to the root
12507         is inaccessible, and this is helpful in common cases such as .zfs
12508         hidden directories.  Problem reported by J Chapman Flack in
12509         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12510         Use system getcwd if it's declared, not merely if it's partly
12511         working; use the partly-working test only to avoid needless effort
12512         if the system getcwd fails.
12513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12514         comment that was already obsolete and is now even more obsolete.
12515         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12516         now might call strdup.
12517
12518 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12519
12520         pthread: Add enough so that coreutils/src/sort.c compiles.
12521         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12522         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12523         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12524         Include <sys/types.h>, in case it defines pthread_t.
12525         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12526         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12527         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12528         (pthread_rwlockattr_t, pthread_spinlock_t):
12529         New typedefs, if HAVE_PTHREAD_T is not defined.
12530         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12531         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12532         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12533         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12534         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12535         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12536         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12537         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12538         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12539         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12540         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12541         New macros.
12542         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12543         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12544         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12545         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12546         (pthread_spin_unlock): New dummy functions.
12547         (pthread_create): Return EAGAIN; don't set errno.
12548         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12549         require AC_C_INLINE.
12550         * modules/pthread (Depends-on): Add sched, time.
12551         (pthread.h): Use AM_V_GEN.
12552
12553 2010-07-13  Bruno Haible  <bruno@clisp.org>
12554
12555         striconveh: Don't malloc memory if the result buffer is sufficient.
12556         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12557         buffer if its size is sufficient.
12558         Reported by Ludovic Courtès <ludo@gnu.org>.
12559
12560 2010-07-13  Bruno Haible  <bruno@clisp.org>
12561
12562         strtod: Add safety check.
12563         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12564
12565 2010-07-12  Bruno Haible  <bruno@clisp.org>
12566
12567         Unify tests that set gl_cv_func_ldexpl_no_libm.
12568         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12569         gl_FUNC_LDEXPL.
12570         (gl_FUNC_LDEXPL): Invoke it.
12571         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12572
12573 2010-07-12  Bruno Haible  <bruno@clisp.org>
12574
12575         Unify tests that set gl_cv_func_ldexp_no_libm.
12576         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12577         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12578         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12579         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12580         * modules/strtod (Files): Add m4/ldexp.m4.
12581
12582 2010-07-12  Bruno Haible  <bruno@clisp.org>
12583
12584         Unify tests that set gl_cv_func_frexpl_no_libm.
12585         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12586         gl_FUNC_FREXPL_NO_LIBM.
12587         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12588         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12589
12590 2010-07-12  Bruno Haible  <bruno@clisp.org>
12591
12592         Unify tests that set gl_cv_func_frexp_no_libm.
12593         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12594         gl_FUNC_FREXP_NO_LIBM.
12595         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12596         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12597
12598 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12599
12600         memcoll: clarify sizes versus lengths, document better, and tweak perf
12601         * lib/memcoll.c (strcoll_loop, memcoll0):
12602         Improve quality of descriptive comments.  Name variables
12603         consistently as to whether they are lengths (which do not include
12604         terminating null) versus sizes (which do).
12605         * lib/xmemcoll.c (xmemcoll0): Likewise.
12606         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12607         returned when s1size == 0; this is easier to compile and saves
12608         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12609
12610 2010-07-12  Bruno Haible  <bruno@clisp.org>
12611
12612         Tests for module '_Exit'.
12613         * modules/_Exit-tests: New file.
12614         * tests/test-_Exit.sh: New file.
12615         * tests/test-_Exit.c: New file.
12616
12617         New module '_Exit'.
12618         * lib/stdlib.in.h (__attribute__): New macro.
12619         (_Exit): New declaration.
12620         * lib/_Exit.c: New file.
12621         * m4/_Exit.m4: New file.
12622         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12623         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12624         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12625         * modules/_Exit: New file.
12626         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12627         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12628
12629 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12630
12631         strtod: make it more-accurate typically, and don't require libm
12632         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12633         Include limits.h.  Don't include string.h.
12634         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12635         (locale_isspace): New function, so that no casts are needed to
12636         check whether *s is a space.
12637         (ldexp): Provide an unused dummy if not available.
12638         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12639         (strtod): Use them.  This implementation prefers to use the
12640         underlying strtod if available, falling back on our own code
12641         only to fix known bugs.  This is more likely to produce an
12642         accurate result.  Also, it avoids the use of libm functions.
12643         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12644         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12645         was absent, but it caused a test failure with coreutils.
12646         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12647         with libm.
12648         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12649         * modules/strtod-tests (Makefile.am): Likewise.
12650
12651 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12652             Bruno Haible  <bruno@clisp.org>
12653
12654         unistr/u8-strchr: Optimize ASCII argument case.
12655         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12656
12657 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12658
12659         (x)memcoll: minor tweaks
12660         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12661         is after the type that it qualifies.
12662         (memcoll0): Likewise.
12663         * lib/memcoll.h (memcoll0): Likewise.
12664         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12665         * lib/xmemcoll.h (xmemcoll0): Likewise.
12666         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12667         differs from memcoll in that the NUL byte is part of the argument.
12668         Omit the abort-checks, as performance is a real issue here.  Plus,
12669         the checks were wrong anyway (an off-by-one error).  Omit local
12670         variable 'diff', as it's a bit clearer that way.
12671         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12672         no longer needed.
12673
12674 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12675
12676         (x)memcoll: speedup when input is known to be NUL delimited
12677         * lib/memcoll.c: Include stdlib.
12678         (memcoll0): New function.
12679         (strcoll_loop): New function, refactored for use in both memcoll
12680         and memcoll0.
12681         * lib/memcoll.h (memcoll0): Add prototype.
12682         * lib/xmemcoll.c (xmemcoll0): New function.
12683         (collate_error): New function, refactored for use in both xmemcoll
12684         and xmemcoll0.
12685         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12686         * m4/memcoll.m4: add inline invocation.
12687
12688 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12689
12690         * build-aux/bootstrap: Remove any local translations
12691         from the translation project synchronization directory,
12692         so that local only translations are not distributed.
12693
12694 2010-07-04  Bruno Haible  <bruno@clisp.org>
12695
12696         fsusage: Clarify which code applies to which platforms.
12697         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12698         platform.
12699         * lib/fsusage.c (get_fs_usage): Likewise.
12700
12701 2010-07-04  Bruno Haible  <bruno@clisp.org>
12702
12703         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12704         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12705         Reported by Martin Lambers <marlam@marlam.de>.
12706
12707 2010-07-04  Jim Meyering  <meyering@redhat.com>
12708
12709         hash: once again explicitly disallow insertion of NULL
12710         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12711         inserting a NULL pointer cannot work with these functions.
12712         Add a comment with details.
12713         This reverts part of the 2010-07-01 commit, 5bef1a35
12714         "hash: extend module to deal with non-pointer keys".
12715
12716 2010-07-01  Bruno Haible  <bruno@clisp.org>
12717
12718         stdbool: Update doc.
12719         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12720         Info from Christian Weisgerber <naddy@mips.inka.de>.
12721
12722 2010-07-01  Jim Meyering  <meyering@redhat.com>
12723
12724         hash: extend module to deal with non-pointer keys
12725         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12726         but that allows insertion of non-pointer entries.
12727         Do not disallow an ENTRY value of NULL.
12728         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12729         * lib/hash.h (hash_insert0): Declare.
12730
12731 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12732
12733         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12734         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12735         not present (i.e. with autoconf 2.59 and when using gettextize, not
12736         gnulib), require AC_GNU_SOURCE instead.
12737
12738 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12739
12740         idpriv-drop: Fix tests.
12741         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12742         not to the test-idpriv-droptemp program.
12743
12744 2010-06-29  Bruno Haible  <bruno@clisp.org>
12745
12746         string: Fix syntax error with g++ 2.96.
12747         * lib/string.in.h (__pure__): Remove definition.
12748         (_GL_ATTRIBUTE_PURE): New macro.
12749         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12750         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12751         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12752
12753 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12754
12755         unitypes: Fix bug introduced on 2010-05-18.
12756         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12757
12758 2010-06-22  Eric Blake  <eblake@redhat.com>
12759
12760         memmem: slight optimization
12761         * lib/str-two-way.h (critical_factorization): Update comments.
12762         Reduce work during factorization phase.
12763         Reported by Carlos Bueno <carlos@bueno.org>.
12764
12765 2010-06-21  Bruno Haible  <bruno@clisp.org>
12766
12767         Fix HAVE_CALLOC_POSIX misnomer.
12768         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12769         !HAVE_CALLOC_POSIX.
12770         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12771         HAVE_CALLOC_POSIX.
12772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12773         instead of HAVE_CALLOC_POSIX.
12774         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12775         HAVE_CALLOC_POSIX.
12776
12777         Use modern idiom for calloc() replacement.
12778         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12779         AC_FUNC_CALLOC.
12780         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12781         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12782         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12783         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12784         (gl_REPLACE_CALLOC): New macro.
12785
12786 2010-06-21  Bruno Haible  <bruno@clisp.org>
12787
12788         Fix HAVE_REALLOC_POSIX misnomer.
12789         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12790         !HAVE_REALLOC_POSIX.
12791         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12792         HAVE_REALLOC_POSIX.
12793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12794         instead of HAVE_REALLOC_POSIX.
12795         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12796         HAVE_REALLOC_POSIX.
12797
12798         Use modern idiom for realloc() replacement.
12799         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12800         AC_FUNC_REALLOC.
12801         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12802         Autoconf's AC_FUNC_REALLOC.
12803         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12804         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12805         (gl_REPLACE_REALLOC): New macro.
12806         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12807
12808 2010-06-21  Bruno Haible  <bruno@clisp.org>
12809
12810         Fix HAVE_MALLOC_POSIX misnomer.
12811         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12812         !HAVE_MALLOC_POSIX.
12813         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12814         HAVE_MALLOC_POSIX.
12815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12816         instead of HAVE_MALLOC_POSIX.
12817         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12818         HAVE_MALLOC_POSIX.
12819
12820         Use modern idiom for malloc() replacement.
12821         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12822         AC_FUNC_MALLOC.
12823         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12824         Autoconf's AC_FUNC_MALLOC.
12825         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12826         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12827         (gl_REPLACE_MALLOC): New macro.
12828         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12829
12830 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12831
12832         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12833         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12834         This macro takes 3 arguments, not 4.
12835
12836 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12837
12838         ipv6: fix detection under mingw
12839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12840         in6_addr.
12841
12842 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12843
12844         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12845         that strtod() works when cross-compiling to a glibc version known
12846         to work.
12847
12848 2010-06-15  Bruno Haible  <bruno@clisp.org>
12849
12850         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12851
12852 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12853
12854         select: Correct timeout.
12855         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12856
12857 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12858
12859         git-version-gen: init shell var to avoid env var influence
12860         * build-aux/git-version-gen (v): Init shell var to empty.
12861
12862 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12863
12864         priv-set: Don't assume that priv.h exists merely because getppriv does.
12865         See Jan Andersen's bug report about AIX 5L in
12866         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12867         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12868         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12869         * lib/priv-set.h: Likewise.
12870         * tests/test-priv-set.c: Likewise.
12871
12872 2010-06-13  Bruno Haible  <bruno@clisp.org>
12873
12874         relocatable: Make it easier to test whether to install wrappers.
12875         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12876         RELOCATABLE_VIA_WRAPPER.
12877
12878 2010-06-13  Bruno Haible  <bruno@clisp.org>
12879
12880         gnulib-tool: Display specified modules and dependencies differently.
12881         * gnulib-tool (func_show_module_list): New function.
12882         (func_import, func_create_testdir): Invoke it.
12883         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12884
12885 2010-06-13  Bruno Haible  <bruno@clisp.org>
12886
12887         gnulib-tool: Align code of func_import and func_create_testdir.
12888         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12889         specified_modules.
12890
12891 2010-06-12  Jim Meyering  <meyering@redhat.com>
12892
12893         test-inttostr: avoid spurious failure on Solaris 9
12894         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12895         to accept "%ju".  Reported by Bruno Haible.
12896
12897 2010-06-11  Jim Meyering  <meyering@redhat.com>
12898
12899         test-sys_socket: mark variables as used more readably
12900         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12901         as "used" explicitly via (void) statement casts.  This is more
12902         readable than using them in an artificial return expression.
12903         Suggestion from Bruno Haible.
12904
12905 2010-06-11  Bruno Haible  <bruno@clisp.org>
12906
12907         Avoid some more warnings from "gcc -Wwrite-strings".
12908         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12909         to 'const char *'.
12910         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12911         * tests/test-c-strcasestr.c (main): Likewise.
12912         * tests/test-mbscasestr1.c (main): Likewise.
12913         * tests/test-mbscasestr2.c (main): Likewise.
12914         * tests/test-memmem.c (main): Likewise.
12915         * tests/test-strstr.c (main): Likewise.
12916         * tests/test-strcasestr.c (main): Likewise.
12917
12918 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12919
12920         init.sh: change framework_failure_ to fail with status 99, not 1
12921         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12922         automake's parallel-tests rule that this is an unexpected failure,
12923         even if the test is listed in XFAIL_TESTS.
12924
12925 2010-06-11  Jim Meyering  <meyering@redhat.com>
12926
12927         test-inttostr: avoid warnings about 4-6KB literal strings
12928         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12929         Include "macros.h", for its definition of ASSERT.
12930         (CK): s/assert/ASSERT/
12931         * modules/inttostr-tests (Files): Add macros.h.
12932
12933         init.sh: don't use $ME_ or skip_ before they are defined
12934         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12935         their first uses.  Also hoist their companions: warn_, fail_,
12936         framework_failure_, $stderr_fileno.  Prompted by a patch from
12937         Stefano Lattarini.
12938
12939         test-sys_socket: avoid set-but-not-used warnings from gcc
12940         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12941         avoid warning about set-but-not-used variables.
12942
12943         test-xvasprintf: avoid 'const' discard warnings
12944         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12945         "const" when assigning from literal strings.
12946         (test_xasprintf): Add "void" in function argument list to placate
12947         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12948
12949         tests: avoid compilation warnings in argmatch and exclude tests...
12950         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12951         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12952         Since it always exits, declare with the "noreturn" attribute.
12953         * tests/test-argmatch.c: Likewise.
12954
12955         tests: avoid 'const' discard warnings in mbsstr tests
12956         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12957         * tests/test-mbsstr2.c (main): Likewise.
12958
12959         test-verify: avoid warning from gcc's -Wmissing-declarations
12960         * tests/test-verify.c (function): Declare to be static.
12961
12962         test-inttostr.c: include <string.h> for use of strcmp
12963         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12964
12965         test-linkat: avoid failed assertion on "other" architectures
12966         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12967         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12968         sparc: https://bugs.launchpad.net/bugs/591968
12969
12970 2010-06-11  Jim Meyering  <meyering@redhat.com>
12971
12972         printf.m4: avoid autoconf's "Expanded Before Required" warning
12973         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12974         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12975         autoconf warning.
12976
12977 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12978
12979         Replacement header templates are now named with ".in", not "_".
12980         * doc/gnulib-intro.texi: Correct.
12981
12982 2010-06-10  Jim Meyering  <meyering@redhat.com>
12983
12984         inttostr-tests: depend on snprintf, not snprintf-posix
12985         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12986         snprintf-posix, to avoid this aclocal failure:
12987           missing file gnulib-tests/vasnprintf.c
12988           configure.ac:45: error: expected source file, required through \
12989           AC_LIBSOURCES, not found
12990
12991 2010-06-10  Jim Meyering  <meyering@redhat.com>
12992
12993         inttostr: add a new function, inttostr, and tests
12994         The namesake function was not available.  The existence of the
12995         template file, inttostr.c makes its addition nontrivial.
12996         * lib/anytostr.c: Rename from inttostr.c.
12997         (anytostr): Rename from inttostr.
12998         * lib/inttostr.c: New file.
12999         * modules/inttostr (Files): Add anytostr.c.
13000         (Makefile.am): Set lib_SOURCES instead of ...
13001         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13002         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13003         * lib/offtostr.c: Likewise.
13004         * lib/uinttostr.c: Likewise.
13005         * lib/umaxtostr.c: Likewise.
13006         * modules/inttostr-tests: New file.
13007         * tests/test-inttostr.c: New file.  Test these functions.
13008
13009 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13010             Bruno Haible  <bruno@clisp.org>
13011
13012         Add "Extending Gnulib" chapter to manual.
13013         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13014         chapter.
13015         (Extending Gnulib): New chapter.
13016         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13017         chapter.
13018
13019 2010-06-09  Bruno Haible  <bruno@clisp.org>
13020
13021         Avoid relocwrapper link errors due to gnulib replacement functions.
13022         * lib/areadlink.c: Use the system's malloc, realloc functions.
13023         (areadlink): Set errno to ENOMEM explicitly.
13024         * modules/areadlink (Depends-on): Remove malloc-posix.
13025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13026
13027 2010-06-09  Bruno Haible  <bruno@clisp.org>
13028
13029         Avoid relocwrapper link errors due to gnulib replacement functions.
13030         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13031         * lib/malloca.c: Likewise.
13032         * lib/relocatable.c: Likewise.
13033         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13034         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13035         * lib/setenv.c: Use the system's malloc, realloc functions.
13036         * lib/strerror.c: Use the system's sprintf function.
13037         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13038
13039 2010-06-04  Bruno Haible  <bruno@clisp.org>
13040
13041         Prefer documented low-level autoconf macro names.
13042         * m4/lib-link.m4: Use m4_translit instead of translit.
13043         * m4/environ.m4: Likewise.
13044         * m4/mathfunc.m4: Likewise.
13045         * m4/onceonly.m4: Likewise.
13046         * m4/stdint.m4: Likewise.
13047         Suggested by Eric Blake.
13048
13049 2010-06-04  Martin Lambers  <marlam@marlam.de>
13050             Bruno Haible  <bruno@clisp.org>
13051
13052         havelib: Allow library names with '+' characters.
13053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13054         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13055
13056 2010-06-09  Bruno Haible  <bruno@clisp.org>
13057
13058         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13059         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13060         realloc failed.
13061
13062 2010-06-08  Peter Simons  <simons@cryp.to>
13063
13064         maint.mk: make the news-check rule more configurable
13065         * top/maint.mk (news-check-lines-spec): New variable.
13066         (news-check): Use "sed -n 1,10p" in place of "head".
13067
13068 2010-06-07  Jim Meyering  <meyering@redhat.com>
13069
13070         do-release-commit-and-tag: fix typo in --help
13071         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13072
13073         regex: avoid new dead-code warning with gcc-4.6.0
13074         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13075         if-block containing a while-loop.  It's been unused for at least
13076         5 years.
13077
13078 2010-06-05  Bruno Haible  <bruno@clisp.org>
13079
13080         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13081         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13082
13083 2010-06-04  Bruno Haible  <bruno@clisp.org>
13084
13085         Update to GNU gettext 0.18.1.
13086         * modules/gettext (configure.ac): Require gettext infrastructure from
13087         version 0.18.1.
13088
13089 2010-06-03  Bruno Haible  <bruno@clisp.org>
13090
13091         Don't use AC_LIBOBJ with file names in subdirectories.
13092         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13093         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13094         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13095         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13096         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13097         gl_LIBUNISTRING_LIBSOURCE.
13098         (Makefile.am): Augment lib_SOURCES here, conditionally.
13099         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13100
13101 2010-06-03  Bruno Haible  <bruno@clisp.org>
13102
13103         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13104         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13105         expansion does not end with a newline.
13106         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13107         unnecessary newline.
13108
13109 2010-06-03  Bruno Haible  <bruno@clisp.org>
13110
13111         Reduce dependencies.
13112         * tests/test-quotearg.h: New file, extracted from
13113         tests/test-quotearg.c.
13114         * tests/test-quotearg-simple.c: New file, extracted from
13115         tests/test-quotearg.c.
13116         * tests/test-quotearg.c: Don't include <ctype.h>.
13117         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13118         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13119         use_quote_double_quotes, use_quotearg_colon): Moved to
13120         tests/test-quotearg.h.
13121         (results_g, flag_results, custom_quotes, custom_results): Moved
13122         to tests/test-quotearg-simple.c.
13123         (main): Moved the part that does not depend on gettext to
13124         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13125         performed.
13126         * modules/quotearg-simple: New file.
13127         * modules/quotearg-simple-tests: New file.
13128         * modules/quotearg (Depends-on): Add quotearg-simple.
13129         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13130         (Files): Add tests/test-quotearg.h.
13131         Reported by Paolo Bonzini.
13132
13133 2010-06-03  Bruno Haible  <bruno@clisp.org>
13134
13135         Reduce dependencies.
13136         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13137
13138 2010-06-03  Bruno Haible  <bruno@clisp.org>
13139
13140         time: Undefine more broken macros.
13141         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13142         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13143         Reported by Eric Blake.
13144
13145 2010-06-03  Bruno Haible  <bruno@clisp.org>
13146
13147         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13148         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13149         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13150         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13151         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13152         Reported by Ludovic Courtès <ludo@gnu.org>.
13153
13154 2010-06-02  Eric Blake  <eblake@redhat.com>
13155
13156         time: work with mingw + pthreads-win32 library
13157         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13158         if timespec is defined only in pthread.h.
13159         * modules/time (Makefile.am): Substitute it.
13160         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13161         <pthread.h>, when needed.
13162         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13163         from the library.
13164
13165 2010-05-31  Bruno Haible  <bruno@clisp.org>
13166
13167         Avoid expanding two macros in the wrong order.
13168         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13169         gl_LIBUNISTRING if it is defined.
13170         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13171         autoconf >= 2.64.
13172         Reported by Ludovic Courtès <ludo@gnu.org>.
13173
13174 2010-05-27  Jim Meyering  <meyering@redhat.com>
13175
13176         maint.mk: also prohibit "#undef" of always-defined symbols
13177         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13178         Allow more than one space before the symbol name.
13179         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13180         the regexp uses alternation.
13181
13182 2010-05-26  Eric Blake  <eblake@redhat.com>
13183
13184         maint.mk: avoid echo -e
13185         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13186         Convert all uses of echo -* to printf.
13187         Reported by Matthias Bolte.
13188
13189 2010-05-25  Bruno Haible  <bruno@clisp.org>
13190
13191         Update to GNU gettext 0.18, part 2.
13192         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13193         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13194
13195 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13196
13197         Add missing include in test-pwrite.c.
13198         * tests/test-pwrite.c: Include string.h, for strcmp.
13199
13200 2010-05-24  Bruno Haible  <bruno@clisp.org>
13201
13202         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13203
13204 2010-05-24  Bruno Haible  <bruno@clisp.org>
13205
13206         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13207         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13208         iconveh_error argument.
13209         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13210         U_STRCONV_TO_LOCALE.
13211         * lib/unistr/u16-strcoll.c: Likewise.
13212         * lib/unistr/u32-strcoll.c: Likewise.
13213         * modules/unistr/u8-strcoll (Depends-on): Add
13214         uniconv/u8-strconv-to-enc, localcharset. Remove
13215         uniconv/u8-strconv-to-locale.
13216         (configure.ac): Bump version number.
13217         * modules/unistr/u16-strcoll (Depends-on): Add
13218         uniconv/u16-strconv-to-enc, localcharset. Remove
13219         uniconv/u16-strconv-to-locale.
13220         (configure.ac): Bump version number.
13221         * modules/unistr/u32-strcoll (Depends-on): Add
13222         uniconv/u32-strconv-to-enc, localcharset. Remove
13223         uniconv/u32-strconv-to-locale.
13224         (configure.ac): Bump version number.
13225
13226 2010-05-24  Bruno Haible  <bruno@clisp.org>
13227
13228         Avoid a test failure on NetBSD 5.0.
13229         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13230         an iconv() bug.
13231
13232 2010-05-24  Bruno Haible  <bruno@clisp.org>
13233
13234         Adjust #include directive style.
13235         * modules/regex (Includes): Recommend to write <regex.h>.
13236
13237 2010-05-24  Bruno Haible  <bruno@clisp.org>
13238
13239         regex: Don't require alloca.
13240         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13241         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13242         only inside if (0).
13243
13244 2010-05-23  Jim Meyering  <meyering@redhat.com>
13245
13246         test-renameat.c: include <sys/stat.h>
13247         * tests/test-renameat.c: Include <sys/stat.h>; required for
13248         definition of S_IS* macros.
13249
13250 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13251
13252         Update maintainer documentation for 'relocatable-prog' module.
13253         * doc/relocatable-maint.texi: Update.
13254         Comments by Bruno Haible.
13255
13256 2010-05-23  Bruno Haible  <bruno@clisp.org>
13257
13258         git-merge-changelog: Enable --split-merged-entry by default.
13259         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13260         (usage): Don't mention this option any more.
13261         Reported by Ralf Wildenhues.
13262
13263 2010-05-23  Jim Meyering  <meyering@redhat.com>
13264
13265         test-pwrite: do not leave behind a test file named "out"
13266         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13267         The trivial-looking use of init.sh is really necessary.
13268         It ensures that the temporary file, "out", is created in
13269         a temporary directory, and removed upon termination.
13270         * tests/test-pwrite.sh: Re-add file.
13271         * modules/pwrite-tests: Reference it.
13272
13273 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13274
13275         Fix output redirection buglet in init.sh.
13276         * tests/init.sh: Fix redirection of stderr.
13277
13278 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13279
13280         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13281
13282 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13283
13284         * modules/valgrind-tests: New file.
13285         * m4/valgrind-tests.m4: New file.
13286         * doc/valgrind-tests.texi: New file.
13287         * doc/gnulib.texi (Running self-tests under valgrind): New
13288         section.
13289
13290 2010-05-19  Bruno Haible  <bruno@clisp.org>
13291
13292         Clean up dead code in recent commit.
13293         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13294         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13295         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13296         Suggested by Paolo Bonzini.
13297
13298 2010-05-19  Bruno Haible  <bruno@clisp.org>
13299
13300         Avoid valgrind error reports from libunistring.
13301         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13302         * modules/libunistring (Files): Add it.
13303         * modules/libunistring-optional (Files): Likewise.
13304
13305 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13306             Bruno Haible  <bruno@clisp.org>
13307
13308         New module 'libunistring-optional'.
13309         * modules/libunistring-optional: New file.
13310         * m4/libunistring-base.m4: New file.
13311         * m4/libunistring-optional.m4: New file.
13312         * lib/unicase.in.h: Renamed from lib/unicase.h.
13313         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13314         * lib/unictype.in.h: Renamed from lib/unictype.h.
13315         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13316         * lib/uniname.in.h: Renamed from lib/uniname.h.
13317         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13318         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13319         * lib/unistr.in.h: Renamed from lib/unistr.h.
13320         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13321         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13322         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13323         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13324         gl_LIBUNISTRING. If the library was found, determine the installed
13325         version and set LIBUNISTRING_VERSION.
13326         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13327         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13328         handle a configuration option --with-included-libunistring.
13329         * modules/libunistring (Files): Add m4/absolute-header.m4.
13330         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13331         Add m4/libunistring-base.m4.
13332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13333         (Makefile.am): Build unicase.h from unicase.in.h.
13334         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13335         Add m4/libunistring-base.m4.
13336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13337         (Makefile.am): Build uniconv.h from uniconv.in.h.
13338         * modules/unictype/base (Files): Use unictype.in.h instead of
13339         unictype.h. Add m4/libunistring-base.m4.
13340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13341         (Makefile.am): Build unictype.h from unictype.in.h.
13342         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13343         Add m4/libunistring-base.m4.
13344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13345         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13346         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13347         Add m4/libunistring-base.m4.
13348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13349         (Makefile.am): Build uniname.h from uniname.in.h.
13350         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13351         Add m4/libunistring-base.m4.
13352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13353         (Makefile.am): Build uninorm.h from uninorm.in.h.
13354         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13355         unistdio.h. Add m4/libunistring-base.m4.
13356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13357         (Makefile.am): Build unistdio.h from unistdio.in.h.
13358         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13359         Add m4/libunistring-base.m4.
13360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13361         (Makefile.am): Build unistr.h from unistr.in.h.
13362         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13363         Add m4/libunistring-base.m4.
13364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13365         (Makefile.am): Build unitypes.h from unitypes.in.h.
13366         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13367         Add m4/libunistring-base.m4.
13368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13369         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13370         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13371         uniwidth.h. Add m4/libunistring-base.m4.
13372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13373         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13374         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13375         instead of augmenting lib_SOURCES.
13376         * modules/unicase/empty-suffix-context: Likewise.
13377         * modules/unicase/locale-language: Likewise.
13378         * modules/unicase/tolower: Likewise.
13379         * modules/unicase/totitle: Likewise.
13380         * modules/unicase/toupper: Likewise.
13381         * modules/unicase/u8-casecmp: Likewise.
13382         * modules/unicase/u8-casecoll: Likewise.
13383         * modules/unicase/u8-casefold: Likewise.
13384         * modules/unicase/u8-casexfrm: Likewise.
13385         * modules/unicase/u8-ct-casefold: Likewise.
13386         * modules/unicase/u8-ct-tolower: Likewise.
13387         * modules/unicase/u8-ct-totitle: Likewise.
13388         * modules/unicase/u8-ct-toupper: Likewise.
13389         * modules/unicase/u8-is-cased: Likewise.
13390         * modules/unicase/u8-is-casefolded: Likewise.
13391         * modules/unicase/u8-is-lowercase: Likewise.
13392         * modules/unicase/u8-is-titlecase: Likewise.
13393         * modules/unicase/u8-is-uppercase: Likewise.
13394         * modules/unicase/u8-prefix-context: Likewise.
13395         * modules/unicase/u8-suffix-context: Likewise.
13396         * modules/unicase/u8-tolower: Likewise.
13397         * modules/unicase/u8-totitle: Likewise.
13398         * modules/unicase/u8-toupper: Likewise.
13399         * modules/unicase/u16-casecmp: Likewise.
13400         * modules/unicase/u16-casecoll: Likewise.
13401         * modules/unicase/u16-casefold: Likewise.
13402         * modules/unicase/u16-casexfrm: Likewise.
13403         * modules/unicase/u16-ct-casefold: Likewise.
13404         * modules/unicase/u16-ct-tolower: Likewise.
13405         * modules/unicase/u16-ct-totitle: Likewise.
13406         * modules/unicase/u16-ct-toupper: Likewise.
13407         * modules/unicase/u16-is-cased: Likewise.
13408         * modules/unicase/u16-is-casefolded: Likewise.
13409         * modules/unicase/u16-is-lowercase: Likewise.
13410         * modules/unicase/u16-is-titlecase: Likewise.
13411         * modules/unicase/u16-is-uppercase: Likewise.
13412         * modules/unicase/u16-prefix-context: Likewise.
13413         * modules/unicase/u16-suffix-context: Likewise.
13414         * modules/unicase/u16-tolower: Likewise.
13415         * modules/unicase/u16-totitle: Likewise.
13416         * modules/unicase/u16-toupper: Likewise.
13417         * modules/unicase/u32-casecmp: Likewise.
13418         * modules/unicase/u32-casecoll: Likewise.
13419         * modules/unicase/u32-casefold: Likewise.
13420         * modules/unicase/u32-casexfrm: Likewise.
13421         * modules/unicase/u32-ct-casefold: Likewise.
13422         * modules/unicase/u32-ct-tolower: Likewise.
13423         * modules/unicase/u32-ct-totitle: Likewise.
13424         * modules/unicase/u32-ct-toupper: Likewise.
13425         * modules/unicase/u32-is-cased: Likewise.
13426         * modules/unicase/u32-is-casefolded: Likewise.
13427         * modules/unicase/u32-is-lowercase: Likewise.
13428         * modules/unicase/u32-is-titlecase: Likewise.
13429         * modules/unicase/u32-is-uppercase: Likewise.
13430         * modules/unicase/u32-prefix-context: Likewise.
13431         * modules/unicase/u32-suffix-context: Likewise.
13432         * modules/unicase/u32-tolower: Likewise.
13433         * modules/unicase/u32-totitle: Likewise.
13434         * modules/unicase/u32-toupper: Likewise.
13435         * modules/unicase/ulc-casecmp: Likewise.
13436         * modules/unicase/ulc-casecoll: Likewise.
13437         * modules/unicase/ulc-casexfrm: Likewise.
13438         * modules/uniconv/u8-conv-from-enc: Likewise.
13439         * modules/uniconv/u8-conv-to-enc: Likewise.
13440         * modules/uniconv/u8-strconv-from-enc: Likewise.
13441         * modules/uniconv/u8-strconv-from-locale: Likewise.
13442         * modules/uniconv/u8-strconv-to-enc: Likewise.
13443         * modules/uniconv/u8-strconv-to-locale: Likewise.
13444         * modules/uniconv/u16-conv-from-enc: Likewise.
13445         * modules/uniconv/u16-conv-to-enc: Likewise.
13446         * modules/uniconv/u16-strconv-from-enc: Likewise.
13447         * modules/uniconv/u16-strconv-from-locale: Likewise.
13448         * modules/uniconv/u16-strconv-to-enc: Likewise.
13449         * modules/uniconv/u16-strconv-to-locale: Likewise.
13450         * modules/uniconv/u32-conv-from-enc: Likewise.
13451         * modules/uniconv/u32-conv-to-enc: Likewise.
13452         * modules/uniconv/u32-strconv-from-enc: Likewise.
13453         * modules/uniconv/u32-strconv-from-locale: Likewise.
13454         * modules/uniconv/u32-strconv-to-enc: Likewise.
13455         * modules/uniconv/u32-strconv-to-locale: Likewise.
13456         * modules/unictype/bidicategory-byname: Likewise.
13457         * modules/unictype/bidicategory-name: Likewise.
13458         * modules/unictype/bidicategory-of: Likewise.
13459         * modules/unictype/bidicategory-test: Likewise.
13460         * modules/unictype/block-list: Likewise.
13461         * modules/unictype/block-test: Likewise.
13462         * modules/unictype/category-C: Likewise.
13463         * modules/unictype/category-Cc: Likewise.
13464         * modules/unictype/category-Cf: Likewise.
13465         * modules/unictype/category-Cn: Likewise.
13466         * modules/unictype/category-Co: Likewise.
13467         * modules/unictype/category-Cs: Likewise.
13468         * modules/unictype/category-L: Likewise.
13469         * modules/unictype/category-Ll: Likewise.
13470         * modules/unictype/category-Lm: Likewise.
13471         * modules/unictype/category-Lo: Likewise.
13472         * modules/unictype/category-Lt: Likewise.
13473         * modules/unictype/category-Lu: Likewise.
13474         * modules/unictype/category-M: Likewise.
13475         * modules/unictype/category-Mc: Likewise.
13476         * modules/unictype/category-Me: Likewise.
13477         * modules/unictype/category-Mn: Likewise.
13478         * modules/unictype/category-N: Likewise.
13479         * modules/unictype/category-Nd: Likewise.
13480         * modules/unictype/category-Nl: Likewise.
13481         * modules/unictype/category-No: Likewise.
13482         * modules/unictype/category-P: Likewise.
13483         * modules/unictype/category-Pc: Likewise.
13484         * modules/unictype/category-Pd: Likewise.
13485         * modules/unictype/category-Pe: Likewise.
13486         * modules/unictype/category-Pf: Likewise.
13487         * modules/unictype/category-Pi: Likewise.
13488         * modules/unictype/category-Po: Likewise.
13489         * modules/unictype/category-Ps: Likewise.
13490         * modules/unictype/category-S: Likewise.
13491         * modules/unictype/category-Sc: Likewise.
13492         * modules/unictype/category-Sk: Likewise.
13493         * modules/unictype/category-Sm: Likewise.
13494         * modules/unictype/category-So: Likewise.
13495         * modules/unictype/category-Z: Likewise.
13496         * modules/unictype/category-Zl: Likewise.
13497         * modules/unictype/category-Zp: Likewise.
13498         * modules/unictype/category-Zs: Likewise.
13499         * modules/unictype/category-and: Likewise.
13500         * modules/unictype/category-and-not: Likewise.
13501         * modules/unictype/category-byname: Likewise.
13502         * modules/unictype/category-name: Likewise.
13503         * modules/unictype/category-none: Likewise.
13504         * modules/unictype/category-of: Likewise.
13505         * modules/unictype/category-or: Likewise.
13506         * modules/unictype/category-test: Likewise.
13507         * modules/unictype/combining-class: Likewise.
13508         * modules/unictype/ctype-alnum: Likewise.
13509         * modules/unictype/ctype-alpha: Likewise.
13510         * modules/unictype/ctype-blank: Likewise.
13511         * modules/unictype/ctype-cntrl: Likewise.
13512         * modules/unictype/ctype-digit: Likewise.
13513         * modules/unictype/ctype-graph: Likewise.
13514         * modules/unictype/ctype-lower: Likewise.
13515         * modules/unictype/ctype-print: Likewise.
13516         * modules/unictype/ctype-punct: Likewise.
13517         * modules/unictype/ctype-space: Likewise.
13518         * modules/unictype/ctype-upper: Likewise.
13519         * modules/unictype/ctype-xdigit: Likewise.
13520         * modules/unictype/decimal-digit: Likewise.
13521         * modules/unictype/digit: Likewise.
13522         * modules/unictype/mirror: Likewise.
13523         * modules/unictype/numeric: Likewise.
13524         * modules/unictype/property-alphabetic: Likewise.
13525         * modules/unictype/property-ascii-hex-digit: Likewise.
13526         * modules/unictype/property-bidi-arabic-digit: Likewise.
13527         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13528         * modules/unictype/property-bidi-block-separator: Likewise.
13529         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13530         * modules/unictype/property-bidi-common-separator: Likewise.
13531         * modules/unictype/property-bidi-control: Likewise.
13532         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13533         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13534         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13535         * modules/unictype/property-bidi-european-digit: Likewise.
13536         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13537         * modules/unictype/property-bidi-left-to-right: Likewise.
13538         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13539         * modules/unictype/property-bidi-other-neutral: Likewise.
13540         * modules/unictype/property-bidi-pdf: Likewise.
13541         * modules/unictype/property-bidi-segment-separator: Likewise.
13542         * modules/unictype/property-bidi-whitespace: Likewise.
13543         * modules/unictype/property-byname: Likewise.
13544         * modules/unictype/property-combining: Likewise.
13545         * modules/unictype/property-composite: Likewise.
13546         * modules/unictype/property-currency-symbol: Likewise.
13547         * modules/unictype/property-dash: Likewise.
13548         * modules/unictype/property-decimal-digit: Likewise.
13549         * modules/unictype/property-default-ignorable-code-point: Likewise.
13550         * modules/unictype/property-deprecated: Likewise.
13551         * modules/unictype/property-diacritic: Likewise.
13552         * modules/unictype/property-extender: Likewise.
13553         * modules/unictype/property-format-control: Likewise.
13554         * modules/unictype/property-grapheme-base: Likewise.
13555         * modules/unictype/property-grapheme-extend: Likewise.
13556         * modules/unictype/property-grapheme-link: Likewise.
13557         * modules/unictype/property-hex-digit: Likewise.
13558         * modules/unictype/property-hyphen: Likewise.
13559         * modules/unictype/property-id-continue: Likewise.
13560         * modules/unictype/property-id-start: Likewise.
13561         * modules/unictype/property-ideographic: Likewise.
13562         * modules/unictype/property-ids-binary-operator: Likewise.
13563         * modules/unictype/property-ids-trinary-operator: Likewise.
13564         * modules/unictype/property-ignorable-control: Likewise.
13565         * modules/unictype/property-iso-control: Likewise.
13566         * modules/unictype/property-join-control: Likewise.
13567         * modules/unictype/property-left-of-pair: Likewise.
13568         * modules/unictype/property-line-separator: Likewise.
13569         * modules/unictype/property-logical-order-exception: Likewise.
13570         * modules/unictype/property-lowercase: Likewise.
13571         * modules/unictype/property-math: Likewise.
13572         * modules/unictype/property-non-break: Likewise.
13573         * modules/unictype/property-not-a-character: Likewise.
13574         * modules/unictype/property-numeric: Likewise.
13575         * modules/unictype/property-other-alphabetic: Likewise.
13576         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13577         * modules/unictype/property-other-grapheme-extend: Likewise.
13578         * modules/unictype/property-other-id-continue: Likewise.
13579         * modules/unictype/property-other-id-start: Likewise.
13580         * modules/unictype/property-other-lowercase: Likewise.
13581         * modules/unictype/property-other-math: Likewise.
13582         * modules/unictype/property-other-uppercase: Likewise.
13583         * modules/unictype/property-paired-punctuation: Likewise.
13584         * modules/unictype/property-paragraph-separator: Likewise.
13585         * modules/unictype/property-pattern-syntax: Likewise.
13586         * modules/unictype/property-pattern-white-space: Likewise.
13587         * modules/unictype/property-private-use: Likewise.
13588         * modules/unictype/property-punctuation: Likewise.
13589         * modules/unictype/property-quotation-mark: Likewise.
13590         * modules/unictype/property-radical: Likewise.
13591         * modules/unictype/property-sentence-terminal: Likewise.
13592         * modules/unictype/property-soft-dotted: Likewise.
13593         * modules/unictype/property-space: Likewise.
13594         * modules/unictype/property-terminal-punctuation: Likewise.
13595         * modules/unictype/property-test: Likewise.
13596         * modules/unictype/property-titlecase: Likewise.
13597         * modules/unictype/property-unassigned-code-value: Likewise.
13598         * modules/unictype/property-unified-ideograph: Likewise.
13599         * modules/unictype/property-uppercase: Likewise.
13600         * modules/unictype/property-variation-selector: Likewise.
13601         * modules/unictype/property-white-space: Likewise.
13602         * modules/unictype/property-xid-continue: Likewise.
13603         * modules/unictype/property-xid-start: Likewise.
13604         * modules/unictype/property-zero-width: Likewise.
13605         * modules/unictype/scripts: Likewise.
13606         * modules/unictype/syntax-c-ident: Likewise.
13607         * modules/unictype/syntax-c-whitespace: Likewise.
13608         * modules/unictype/syntax-java-ident: Likewise.
13609         * modules/unictype/syntax-java-whitespace: Likewise.
13610         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13611         * modules/unilbrk/u8-width-linebreaks: Likewise.
13612         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13613         * modules/unilbrk/u16-width-linebreaks: Likewise.
13614         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13615         * modules/unilbrk/u32-width-linebreaks: Likewise.
13616         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13617         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13618         * modules/uniname/uniname: Likewise.
13619         * modules/uninorm/canonical-decomposition: Likewise.
13620         * modules/uninorm/composition: Likewise.
13621         * modules/uninorm/decomposing-form: Likewise.
13622         * modules/uninorm/decomposition: Likewise.
13623         * modules/uninorm/filter: Likewise.
13624         * modules/uninorm/nfc: Likewise.
13625         * modules/uninorm/nfd: Likewise.
13626         * modules/uninorm/nfkc: Likewise.
13627         * modules/uninorm/nfkd: Likewise.
13628         * modules/uninorm/u8-normalize: Likewise.
13629         * modules/uninorm/u8-normcmp: Likewise.
13630         * modules/uninorm/u8-normcoll: Likewise.
13631         * modules/uninorm/u8-normxfrm: Likewise.
13632         * modules/uninorm/u16-normalize: Likewise.
13633         * modules/uninorm/u16-normcmp: Likewise.
13634         * modules/uninorm/u16-normcoll: Likewise.
13635         * modules/uninorm/u16-normxfrm: Likewise.
13636         * modules/uninorm/u32-normalize: Likewise.
13637         * modules/uninorm/u32-normcmp: Likewise.
13638         * modules/uninorm/u32-normcoll: Likewise.
13639         * modules/uninorm/u32-normxfrm: Likewise.
13640         * modules/unistdio/u8-asnprintf: Likewise.
13641         * modules/unistdio/u8-asprintf: Likewise.
13642         * modules/unistdio/u8-snprintf: Likewise.
13643         * modules/unistdio/u8-sprintf: Likewise.
13644         * modules/unistdio/u8-u8-asnprintf: Likewise.
13645         * modules/unistdio/u8-u8-asprintf: Likewise.
13646         * modules/unistdio/u8-u8-snprintf: Likewise.
13647         * modules/unistdio/u8-u8-sprintf: Likewise.
13648         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13649         * modules/unistdio/u8-u8-vasprintf: Likewise.
13650         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13651         * modules/unistdio/u8-u8-vsprintf: Likewise.
13652         * modules/unistdio/u8-vasnprintf: Likewise.
13653         * modules/unistdio/u8-vasprintf: Likewise.
13654         * modules/unistdio/u8-vsnprintf: Likewise.
13655         * modules/unistdio/u8-vsprintf: Likewise.
13656         * modules/unistdio/u16-asnprintf: Likewise.
13657         * modules/unistdio/u16-asprintf: Likewise.
13658         * modules/unistdio/u16-snprintf: Likewise.
13659         * modules/unistdio/u16-sprintf: Likewise.
13660         * modules/unistdio/u16-u16-asnprintf: Likewise.
13661         * modules/unistdio/u16-u16-asprintf: Likewise.
13662         * modules/unistdio/u16-u16-snprintf: Likewise.
13663         * modules/unistdio/u16-u16-sprintf: Likewise.
13664         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13665         * modules/unistdio/u16-u16-vasprintf: Likewise.
13666         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13667         * modules/unistdio/u16-u16-vsprintf: Likewise.
13668         * modules/unistdio/u16-vasnprintf: Likewise.
13669         * modules/unistdio/u16-vasprintf: Likewise.
13670         * modules/unistdio/u16-vsnprintf: Likewise.
13671         * modules/unistdio/u16-vsprintf: Likewise.
13672         * modules/unistdio/u32-asnprintf: Likewise.
13673         * modules/unistdio/u32-asprintf: Likewise.
13674         * modules/unistdio/u32-snprintf: Likewise.
13675         * modules/unistdio/u32-sprintf: Likewise.
13676         * modules/unistdio/u32-u32-asnprintf: Likewise.
13677         * modules/unistdio/u32-u32-asprintf: Likewise.
13678         * modules/unistdio/u32-u32-snprintf: Likewise.
13679         * modules/unistdio/u32-u32-sprintf: Likewise.
13680         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13681         * modules/unistdio/u32-u32-vasprintf: Likewise.
13682         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13683         * modules/unistdio/u32-u32-vsprintf: Likewise.
13684         * modules/unistdio/u32-vasnprintf: Likewise.
13685         * modules/unistdio/u32-vasprintf: Likewise.
13686         * modules/unistdio/u32-vsnprintf: Likewise.
13687         * modules/unistdio/u32-vsprintf: Likewise.
13688         * modules/unistdio/ulc-asnprintf: Likewise.
13689         * modules/unistdio/ulc-asprintf: Likewise.
13690         * modules/unistdio/ulc-fprintf: Likewise.
13691         * modules/unistdio/ulc-snprintf: Likewise.
13692         * modules/unistdio/ulc-sprintf: Likewise.
13693         * modules/unistdio/ulc-vasnprintf: Likewise.
13694         * modules/unistdio/ulc-vasprintf: Likewise.
13695         * modules/unistdio/ulc-vfprintf: Likewise.
13696         * modules/unistdio/ulc-vsnprintf: Likewise.
13697         * modules/unistdio/ulc-vsprintf: Likewise.
13698         * modules/unistr/u8-check: Likewise.
13699         * modules/unistr/u8-chr: Likewise.
13700         * modules/unistr/u8-cmp: Likewise.
13701         * modules/unistr/u8-cmp2: Likewise.
13702         * modules/unistr/u8-cpy: Likewise.
13703         * modules/unistr/u8-cpy-alloc: Likewise.
13704         * modules/unistr/u8-endswith: Likewise.
13705         * modules/unistr/u8-mblen: Likewise.
13706         * modules/unistr/u8-mbsnlen: Likewise.
13707         * modules/unistr/u8-mbtouc: Likewise.
13708         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13709         * modules/unistr/u8-mbtoucr: Likewise.
13710         * modules/unistr/u8-move: Likewise.
13711         * modules/unistr/u8-next: Likewise.
13712         * modules/unistr/u8-prev: Likewise.
13713         * modules/unistr/u8-set: Likewise.
13714         * modules/unistr/u8-startswith: Likewise.
13715         * modules/unistr/u8-stpcpy: Likewise.
13716         * modules/unistr/u8-stpncpy: Likewise.
13717         * modules/unistr/u8-strcat: Likewise.
13718         * modules/unistr/u8-strchr: Likewise.
13719         * modules/unistr/u8-strcmp: Likewise.
13720         * modules/unistr/u8-strcoll: Likewise.
13721         * modules/unistr/u8-strcpy: Likewise.
13722         * modules/unistr/u8-strcspn: Likewise.
13723         * modules/unistr/u8-strdup: Likewise.
13724         * modules/unistr/u8-strlen: Likewise.
13725         * modules/unistr/u8-strmblen: Likewise.
13726         * modules/unistr/u8-strmbtouc: Likewise.
13727         * modules/unistr/u8-strncat: Likewise.
13728         * modules/unistr/u8-strncmp: Likewise.
13729         * modules/unistr/u8-strncpy: Likewise.
13730         * modules/unistr/u8-strnlen: Likewise.
13731         * modules/unistr/u8-strpbrk: Likewise.
13732         * modules/unistr/u8-strrchr: Likewise.
13733         * modules/unistr/u8-strspn: Likewise.
13734         * modules/unistr/u8-strstr: Likewise.
13735         * modules/unistr/u8-strtok: Likewise.
13736         * modules/unistr/u8-to-u16: Likewise.
13737         * modules/unistr/u8-to-u32: Likewise.
13738         * modules/unistr/u8-uctomb: Likewise.
13739         * modules/unistr/u16-check: Likewise.
13740         * modules/unistr/u16-chr: Likewise.
13741         * modules/unistr/u16-cmp: Likewise.
13742         * modules/unistr/u16-cmp2: Likewise.
13743         * modules/unistr/u16-cpy: Likewise.
13744         * modules/unistr/u16-cpy-alloc: Likewise.
13745         * modules/unistr/u16-endswith: Likewise.
13746         * modules/unistr/u16-mblen: Likewise.
13747         * modules/unistr/u16-mbsnlen: Likewise.
13748         * modules/unistr/u16-mbtouc: Likewise.
13749         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13750         * modules/unistr/u16-mbtoucr: Likewise.
13751         * modules/unistr/u16-move: Likewise.
13752         * modules/unistr/u16-next: Likewise.
13753         * modules/unistr/u16-prev: Likewise.
13754         * modules/unistr/u16-set: Likewise.
13755         * modules/unistr/u16-startswith: Likewise.
13756         * modules/unistr/u16-stpcpy: Likewise.
13757         * modules/unistr/u16-stpncpy: Likewise.
13758         * modules/unistr/u16-strcat: Likewise.
13759         * modules/unistr/u16-strchr: Likewise.
13760         * modules/unistr/u16-strcmp: Likewise.
13761         * modules/unistr/u16-strcoll: Likewise.
13762         * modules/unistr/u16-strcpy: Likewise.
13763         * modules/unistr/u16-strcspn: Likewise.
13764         * modules/unistr/u16-strdup: Likewise.
13765         * modules/unistr/u16-strlen: Likewise.
13766         * modules/unistr/u16-strmblen: Likewise.
13767         * modules/unistr/u16-strmbtouc: Likewise.
13768         * modules/unistr/u16-strncat: Likewise.
13769         * modules/unistr/u16-strncmp: Likewise.
13770         * modules/unistr/u16-strncpy: Likewise.
13771         * modules/unistr/u16-strnlen: Likewise.
13772         * modules/unistr/u16-strpbrk: Likewise.
13773         * modules/unistr/u16-strrchr: Likewise.
13774         * modules/unistr/u16-strspn: Likewise.
13775         * modules/unistr/u16-strstr: Likewise.
13776         * modules/unistr/u16-strtok: Likewise.
13777         * modules/unistr/u16-to-u32: Likewise.
13778         * modules/unistr/u16-to-u8: Likewise.
13779         * modules/unistr/u16-uctomb: Likewise.
13780         * modules/unistr/u32-check: Likewise.
13781         * modules/unistr/u32-chr: Likewise.
13782         * modules/unistr/u32-cmp: Likewise.
13783         * modules/unistr/u32-cmp2: Likewise.
13784         * modules/unistr/u32-cpy: Likewise.
13785         * modules/unistr/u32-cpy-alloc: Likewise.
13786         * modules/unistr/u32-endswith: Likewise.
13787         * modules/unistr/u32-mblen: Likewise.
13788         * modules/unistr/u32-mbsnlen: Likewise.
13789         * modules/unistr/u32-mbtouc: Likewise.
13790         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13791         * modules/unistr/u32-mbtoucr: Likewise.
13792         * modules/unistr/u32-move: Likewise.
13793         * modules/unistr/u32-next: Likewise.
13794         * modules/unistr/u32-prev: Likewise.
13795         * modules/unistr/u32-set: Likewise.
13796         * modules/unistr/u32-startswith: Likewise.
13797         * modules/unistr/u32-stpcpy: Likewise.
13798         * modules/unistr/u32-stpncpy: Likewise.
13799         * modules/unistr/u32-strcat: Likewise.
13800         * modules/unistr/u32-strchr: Likewise.
13801         * modules/unistr/u32-strcmp: Likewise.
13802         * modules/unistr/u32-strcoll: Likewise.
13803         * modules/unistr/u32-strcpy: Likewise.
13804         * modules/unistr/u32-strcspn: Likewise.
13805         * modules/unistr/u32-strdup: Likewise.
13806         * modules/unistr/u32-strlen: Likewise.
13807         * modules/unistr/u32-strmblen: Likewise.
13808         * modules/unistr/u32-strmbtouc: Likewise.
13809         * modules/unistr/u32-strncat: Likewise.
13810         * modules/unistr/u32-strncmp: Likewise.
13811         * modules/unistr/u32-strncpy: Likewise.
13812         * modules/unistr/u32-strnlen: Likewise.
13813         * modules/unistr/u32-strpbrk: Likewise.
13814         * modules/unistr/u32-strrchr: Likewise.
13815         * modules/unistr/u32-strspn: Likewise.
13816         * modules/unistr/u32-strstr: Likewise.
13817         * modules/unistr/u32-strtok: Likewise.
13818         * modules/unistr/u32-to-u16: Likewise.
13819         * modules/unistr/u32-to-u8: Likewise.
13820         * modules/unistr/u32-uctomb: Likewise.
13821         * modules/uniwbrk/u8-wordbreaks: Likewise.
13822         * modules/uniwbrk/u16-wordbreaks: Likewise.
13823         * modules/uniwbrk/u32-wordbreaks: Likewise.
13824         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13825         * modules/uniwbrk/wordbreak-property: Likewise.
13826         * modules/uniwidth/u8-strwidth: Likewise.
13827         * modules/uniwidth/u8-width: Likewise.
13828         * modules/uniwidth/u16-strwidth: Likewise.
13829         * modules/uniwidth/u16-width: Likewise.
13830         * modules/uniwidth/u32-strwidth: Likewise.
13831         * modules/uniwidth/u32-width: Likewise.
13832         * modules/uniwidth/width: Likewise.
13833         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13834         with $(LIBUNISTRING).
13835         * modules/unicase/ignorable-tests: Likewise.
13836         * modules/unicase/locale-language-tests: Likewise.
13837         * modules/unicase/tolower-tests: Likewise.
13838         * modules/unicase/totitle-tests: Likewise.
13839         * modules/unicase/toupper-tests: Likewise.
13840         * modules/unicase/u8-casecmp-tests: Likewise.
13841         * modules/unicase/u8-casecoll-tests: Likewise.
13842         * modules/unicase/u8-casefold-tests: Likewise.
13843         * modules/unicase/u8-is-cased-tests: Likewise.
13844         * modules/unicase/u8-is-casefolded-tests: Likewise.
13845         * modules/unicase/u8-is-lowercase-tests: Likewise.
13846         * modules/unicase/u8-is-titlecase-tests: Likewise.
13847         * modules/unicase/u8-is-uppercase-tests: Likewise.
13848         * modules/unicase/u8-tolower-tests: Likewise.
13849         * modules/unicase/u8-totitle-tests: Likewise.
13850         * modules/unicase/u8-toupper-tests: Likewise.
13851         * modules/unicase/u16-casecmp-tests: Likewise.
13852         * modules/unicase/u16-casecoll-tests: Likewise.
13853         * modules/unicase/u16-casefold-tests: Likewise.
13854         * modules/unicase/u16-is-cased-tests: Likewise.
13855         * modules/unicase/u16-is-casefolded-tests: Likewise.
13856         * modules/unicase/u16-is-lowercase-tests: Likewise.
13857         * modules/unicase/u16-is-titlecase-tests: Likewise.
13858         * modules/unicase/u16-is-uppercase-tests: Likewise.
13859         * modules/unicase/u16-tolower-tests: Likewise.
13860         * modules/unicase/u16-totitle-tests: Likewise.
13861         * modules/unicase/u16-toupper-tests: Likewise.
13862         * modules/unicase/u32-casecmp-tests: Likewise.
13863         * modules/unicase/u32-casecoll-tests: Likewise.
13864         * modules/unicase/u32-casefold-tests: Likewise.
13865         * modules/unicase/u32-is-cased-tests: Likewise.
13866         * modules/unicase/u32-is-casefolded-tests: Likewise.
13867         * modules/unicase/u32-is-lowercase-tests: Likewise.
13868         * modules/unicase/u32-is-titlecase-tests: Likewise.
13869         * modules/unicase/u32-is-uppercase-tests: Likewise.
13870         * modules/unicase/u32-tolower-tests: Likewise.
13871         * modules/unicase/u32-totitle-tests: Likewise.
13872         * modules/unicase/u32-toupper-tests: Likewise.
13873         * modules/unicase/ulc-casecmp-tests: Likewise.
13874         * modules/unicase/ulc-casecoll-tests: Likewise.
13875         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13876         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13877         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13878         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13879         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13880         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13881         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13882         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13883         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13884         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13885         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13886         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13887         * modules/unictype/bidicategory-byname-tests: Likewise.
13888         * modules/unictype/bidicategory-name-tests: Likewise.
13889         * modules/unictype/bidicategory-of-tests: Likewise.
13890         * modules/unictype/bidicategory-test-tests: Likewise.
13891         * modules/unictype/block-list-tests: Likewise.
13892         * modules/unictype/block-of-tests: Likewise.
13893         * modules/unictype/block-test-tests: Likewise.
13894         * modules/unictype/category-C-tests: Likewise.
13895         * modules/unictype/category-Cc-tests: Likewise.
13896         * modules/unictype/category-Cf-tests: Likewise.
13897         * modules/unictype/category-Cn-tests: Likewise.
13898         * modules/unictype/category-Co-tests: Likewise.
13899         * modules/unictype/category-Cs-tests: Likewise.
13900         * modules/unictype/category-L-tests: Likewise.
13901         * modules/unictype/category-Ll-tests: Likewise.
13902         * modules/unictype/category-Lm-tests: Likewise.
13903         * modules/unictype/category-Lo-tests: Likewise.
13904         * modules/unictype/category-Lt-tests: Likewise.
13905         * modules/unictype/category-Lu-tests: Likewise.
13906         * modules/unictype/category-M-tests: Likewise.
13907         * modules/unictype/category-Mc-tests: Likewise.
13908         * modules/unictype/category-Me-tests: Likewise.
13909         * modules/unictype/category-Mn-tests: Likewise.
13910         * modules/unictype/category-N-tests: Likewise.
13911         * modules/unictype/category-Nd-tests: Likewise.
13912         * modules/unictype/category-Nl-tests: Likewise.
13913         * modules/unictype/category-No-tests: Likewise.
13914         * modules/unictype/category-P-tests: Likewise.
13915         * modules/unictype/category-Pc-tests: Likewise.
13916         * modules/unictype/category-Pd-tests: Likewise.
13917         * modules/unictype/category-Pe-tests: Likewise.
13918         * modules/unictype/category-Pf-tests: Likewise.
13919         * modules/unictype/category-Pi-tests: Likewise.
13920         * modules/unictype/category-Po-tests: Likewise.
13921         * modules/unictype/category-Ps-tests: Likewise.
13922         * modules/unictype/category-S-tests: Likewise.
13923         * modules/unictype/category-Sc-tests: Likewise.
13924         * modules/unictype/category-Sk-tests: Likewise.
13925         * modules/unictype/category-Sm-tests: Likewise.
13926         * modules/unictype/category-So-tests: Likewise.
13927         * modules/unictype/category-Z-tests: Likewise.
13928         * modules/unictype/category-Zl-tests: Likewise.
13929         * modules/unictype/category-Zp-tests: Likewise.
13930         * modules/unictype/category-Zs-tests: Likewise.
13931         * modules/unictype/category-and-not-tests: Likewise.
13932         * modules/unictype/category-and-tests: Likewise.
13933         * modules/unictype/category-byname-tests: Likewise.
13934         * modules/unictype/category-name-tests: Likewise.
13935         * modules/unictype/category-none-tests: Likewise.
13936         * modules/unictype/category-of-tests: Likewise.
13937         * modules/unictype/category-or-tests: Likewise.
13938         * modules/unictype/category-test-withtable-tests: Likewise.
13939         * modules/unictype/combining-class-tests: Likewise.
13940         * modules/unictype/ctype-alnum-tests: Likewise.
13941         * modules/unictype/ctype-alpha-tests: Likewise.
13942         * modules/unictype/ctype-blank-tests: Likewise.
13943         * modules/unictype/ctype-cntrl-tests: Likewise.
13944         * modules/unictype/ctype-digit-tests: Likewise.
13945         * modules/unictype/ctype-graph-tests: Likewise.
13946         * modules/unictype/ctype-lower-tests: Likewise.
13947         * modules/unictype/ctype-print-tests: Likewise.
13948         * modules/unictype/ctype-punct-tests: Likewise.
13949         * modules/unictype/ctype-space-tests: Likewise.
13950         * modules/unictype/ctype-upper-tests: Likewise.
13951         * modules/unictype/ctype-xdigit-tests: Likewise.
13952         * modules/unictype/decimal-digit-tests: Likewise.
13953         * modules/unictype/digit-tests: Likewise.
13954         * modules/unictype/mirror-tests: Likewise.
13955         * modules/unictype/numeric-tests: Likewise.
13956         * modules/unictype/property-alphabetic-tests: Likewise.
13957         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13958         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13959         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13960         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13961         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13962         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13963         * modules/unictype/property-bidi-control-tests: Likewise.
13964         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13965         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13966         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13967         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13968         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13969         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13970         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13971         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13972         * modules/unictype/property-bidi-pdf-tests: Likewise.
13973         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13974         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13975         * modules/unictype/property-byname-tests: Likewise.
13976         * modules/unictype/property-combining-tests: Likewise.
13977         * modules/unictype/property-composite-tests: Likewise.
13978         * modules/unictype/property-currency-symbol-tests: Likewise.
13979         * modules/unictype/property-dash-tests: Likewise.
13980         * modules/unictype/property-decimal-digit-tests: Likewise.
13981         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13982         * modules/unictype/property-deprecated-tests: Likewise.
13983         * modules/unictype/property-diacritic-tests: Likewise.
13984         * modules/unictype/property-extender-tests: Likewise.
13985         * modules/unictype/property-format-control-tests: Likewise.
13986         * modules/unictype/property-grapheme-base-tests: Likewise.
13987         * modules/unictype/property-grapheme-extend-tests: Likewise.
13988         * modules/unictype/property-grapheme-link-tests: Likewise.
13989         * modules/unictype/property-hex-digit-tests: Likewise.
13990         * modules/unictype/property-hyphen-tests: Likewise.
13991         * modules/unictype/property-id-continue-tests: Likewise.
13992         * modules/unictype/property-id-start-tests: Likewise.
13993         * modules/unictype/property-ideographic-tests: Likewise.
13994         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13995         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13996         * modules/unictype/property-ignorable-control-tests: Likewise.
13997         * modules/unictype/property-iso-control-tests: Likewise.
13998         * modules/unictype/property-join-control-tests: Likewise.
13999         * modules/unictype/property-left-of-pair-tests: Likewise.
14000         * modules/unictype/property-line-separator-tests: Likewise.
14001         * modules/unictype/property-logical-order-exception-tests: Likewise.
14002         * modules/unictype/property-lowercase-tests: Likewise.
14003         * modules/unictype/property-math-tests: Likewise.
14004         * modules/unictype/property-non-break-tests: Likewise.
14005         * modules/unictype/property-not-a-character-tests: Likewise.
14006         * modules/unictype/property-numeric-tests: Likewise.
14007         * modules/unictype/property-other-alphabetic-tests: Likewise.
14008         * modules/unictype/property-other-default-ignorable-code-point-tests:
14009         Likewise.
14010         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14011         * modules/unictype/property-other-id-continue-tests: Likewise.
14012         * modules/unictype/property-other-id-start-tests: Likewise.
14013         * modules/unictype/property-other-lowercase-tests: Likewise.
14014         * modules/unictype/property-other-math-tests: Likewise.
14015         * modules/unictype/property-other-uppercase-tests: Likewise.
14016         * modules/unictype/property-paired-punctuation-tests: Likewise.
14017         * modules/unictype/property-paragraph-separator-tests: Likewise.
14018         * modules/unictype/property-pattern-syntax-tests: Likewise.
14019         * modules/unictype/property-pattern-white-space-tests: Likewise.
14020         * modules/unictype/property-private-use-tests: Likewise.
14021         * modules/unictype/property-punctuation-tests: Likewise.
14022         * modules/unictype/property-quotation-mark-tests: Likewise.
14023         * modules/unictype/property-radical-tests: Likewise.
14024         * modules/unictype/property-sentence-terminal-tests: Likewise.
14025         * modules/unictype/property-soft-dotted-tests: Likewise.
14026         * modules/unictype/property-space-tests: Likewise.
14027         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14028         * modules/unictype/property-test-tests: Likewise.
14029         * modules/unictype/property-titlecase-tests: Likewise.
14030         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14031         * modules/unictype/property-unified-ideograph-tests: Likewise.
14032         * modules/unictype/property-uppercase-tests: Likewise.
14033         * modules/unictype/property-variation-selector-tests: Likewise.
14034         * modules/unictype/property-white-space-tests: Likewise.
14035         * modules/unictype/property-xid-continue-tests: Likewise.
14036         * modules/unictype/property-xid-start-tests: Likewise.
14037         * modules/unictype/property-zero-width-tests: Likewise.
14038         * modules/unictype/scripts-tests: Likewise.
14039         * modules/unictype/syntax-c-ident-tests: Likewise.
14040         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14041         * modules/unictype/syntax-java-ident-tests: Likewise.
14042         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14043         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14044         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14045         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14046         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14047         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14048         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14049         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14050         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14051         * modules/uniname/uniname-tests: Likewise.
14052         * modules/uninorm/canonical-decomposition-tests: Likewise.
14053         * modules/uninorm/compat-decomposition-tests: Likewise.
14054         * modules/uninorm/composition-tests: Likewise.
14055         * modules/uninorm/decomposing-form-tests: Likewise.
14056         * modules/uninorm/decomposition-tests: Likewise.
14057         * modules/uninorm/filter-tests: Likewise.
14058         * modules/uninorm/nfc-tests: Likewise.
14059         * modules/uninorm/nfd-tests: Likewise.
14060         * modules/uninorm/nfkc-tests: Likewise.
14061         * modules/uninorm/nfkd-tests: Likewise.
14062         * modules/uninorm/u8-normcmp-tests: Likewise.
14063         * modules/uninorm/u8-normcoll-tests: Likewise.
14064         * modules/uninorm/u16-normcmp-tests: Likewise.
14065         * modules/uninorm/u16-normcoll-tests: Likewise.
14066         * modules/uninorm/u32-normcmp-tests: Likewise.
14067         * modules/uninorm/u32-normcoll-tests: Likewise.
14068         * modules/unistdio/u8-asnprintf-tests: Likewise.
14069         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14070         * modules/unistdio/u8-vasprintf-tests: Likewise.
14071         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14072         * modules/unistdio/u8-vsprintf-tests: Likewise.
14073         * modules/unistdio/u16-asnprintf-tests: Likewise.
14074         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14075         * modules/unistdio/u16-vasprintf-tests: Likewise.
14076         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14077         * modules/unistdio/u16-vsprintf-tests: Likewise.
14078         * modules/unistdio/u32-asnprintf-tests: Likewise.
14079         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14080         * modules/unistdio/u32-vasprintf-tests: Likewise.
14081         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14082         * modules/unistdio/u32-vsprintf-tests: Likewise.
14083         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14084         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14085         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14086         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14087         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14088         * modules/unistr/u8-check-tests: Likewise.
14089         * modules/unistr/u8-chr-tests: Likewise.
14090         * modules/unistr/u8-cmp-tests: Likewise.
14091         * modules/unistr/u8-cmp2-tests: Likewise.
14092         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14093         * modules/unistr/u8-cpy-tests: Likewise.
14094         * modules/unistr/u8-mblen-tests: Likewise.
14095         * modules/unistr/u8-mbsnlen-tests: Likewise.
14096         * modules/unistr/u8-mbtouc-tests: Likewise.
14097         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14098         * modules/unistr/u8-mbtoucr-tests: Likewise.
14099         * modules/unistr/u8-move-tests: Likewise.
14100         * modules/unistr/u8-next-tests: Likewise.
14101         * modules/unistr/u8-prev-tests: Likewise.
14102         * modules/unistr/u8-set-tests: Likewise.
14103         * modules/unistr/u8-stpcpy-tests: Likewise.
14104         * modules/unistr/u8-stpncpy-tests: Likewise.
14105         * modules/unistr/u8-strcat-tests: Likewise.
14106         * modules/unistr/u8-strcmp-tests: Likewise.
14107         * modules/unistr/u8-strcoll-tests: Likewise.
14108         * modules/unistr/u8-strcpy-tests: Likewise.
14109         * modules/unistr/u8-strdup-tests: Likewise.
14110         * modules/unistr/u8-strlen-tests: Likewise.
14111         * modules/unistr/u8-strmblen-tests: Likewise.
14112         * modules/unistr/u8-strmbtouc-tests: Likewise.
14113         * modules/unistr/u8-strncat-tests: Likewise.
14114         * modules/unistr/u8-strncmp-tests: Likewise.
14115         * modules/unistr/u8-strncpy-tests: Likewise.
14116         * modules/unistr/u8-strnlen-tests: Likewise.
14117         * modules/unistr/u8-to-u16-tests: Likewise.
14118         * modules/unistr/u8-to-u32-tests: Likewise.
14119         * modules/unistr/u8-uctomb-tests: Likewise.
14120         * modules/unistr/u16-check-tests: Likewise.
14121         * modules/unistr/u16-chr-tests: Likewise.
14122         * modules/unistr/u16-cmp-tests: Likewise.
14123         * modules/unistr/u16-cmp2-tests: Likewise.
14124         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14125         * modules/unistr/u16-cpy-tests: Likewise.
14126         * modules/unistr/u16-mblen-tests: Likewise.
14127         * modules/unistr/u16-mbsnlen-tests: Likewise.
14128         * modules/unistr/u16-mbtouc-tests: Likewise.
14129         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14130         * modules/unistr/u16-mbtoucr-tests: Likewise.
14131         * modules/unistr/u16-move-tests: Likewise.
14132         * modules/unistr/u16-next-tests: Likewise.
14133         * modules/unistr/u16-prev-tests: Likewise.
14134         * modules/unistr/u16-set-tests: Likewise.
14135         * modules/unistr/u16-stpcpy-tests: Likewise.
14136         * modules/unistr/u16-stpncpy-tests: Likewise.
14137         * modules/unistr/u16-strcat-tests: Likewise.
14138         * modules/unistr/u16-strcmp-tests: Likewise.
14139         * modules/unistr/u16-strcoll-tests: Likewise.
14140         * modules/unistr/u16-strcpy-tests: Likewise.
14141         * modules/unistr/u16-strdup-tests: Likewise.
14142         * modules/unistr/u16-strlen-tests: Likewise.
14143         * modules/unistr/u16-strmblen-tests: Likewise.
14144         * modules/unistr/u16-strmbtouc-tests: Likewise.
14145         * modules/unistr/u16-strncat-tests: Likewise.
14146         * modules/unistr/u16-strncmp-tests: Likewise.
14147         * modules/unistr/u16-strncpy-tests: Likewise.
14148         * modules/unistr/u16-strnlen-tests: Likewise.
14149         * modules/unistr/u16-to-u32-tests: Likewise.
14150         * modules/unistr/u16-to-u8-tests: Likewise.
14151         * modules/unistr/u16-uctomb-tests: Likewise.
14152         * modules/unistr/u32-check-tests: Likewise.
14153         * modules/unistr/u32-chr-tests: Likewise.
14154         * modules/unistr/u32-cmp-tests: Likewise.
14155         * modules/unistr/u32-cmp2-tests: Likewise.
14156         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14157         * modules/unistr/u32-cpy-tests: Likewise.
14158         * modules/unistr/u32-mblen-tests: Likewise.
14159         * modules/unistr/u32-mbsnlen-tests: Likewise.
14160         * modules/unistr/u32-mbtouc-tests: Likewise.
14161         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14162         * modules/unistr/u32-mbtoucr-tests: Likewise.
14163         * modules/unistr/u32-move-tests: Likewise.
14164         * modules/unistr/u32-next-tests: Likewise.
14165         * modules/unistr/u32-prev-tests: Likewise.
14166         * modules/unistr/u32-set-tests: Likewise.
14167         * modules/unistr/u32-stpcpy-tests: Likewise.
14168         * modules/unistr/u32-stpncpy-tests: Likewise.
14169         * modules/unistr/u32-strcat-tests: Likewise.
14170         * modules/unistr/u32-strcmp-tests: Likewise.
14171         * modules/unistr/u32-strcoll-tests: Likewise.
14172         * modules/unistr/u32-strcpy-tests: Likewise.
14173         * modules/unistr/u32-strdup-tests: Likewise.
14174         * modules/unistr/u32-strlen-tests: Likewise.
14175         * modules/unistr/u32-strmblen-tests: Likewise.
14176         * modules/unistr/u32-strmbtouc-tests: Likewise.
14177         * modules/unistr/u32-strncat-tests: Likewise.
14178         * modules/unistr/u32-strncmp-tests: Likewise.
14179         * modules/unistr/u32-strncpy-tests: Likewise.
14180         * modules/unistr/u32-strnlen-tests: Likewise.
14181         * modules/unistr/u32-to-u16-tests: Likewise.
14182         * modules/unistr/u32-to-u8-tests: Likewise.
14183         * modules/unistr/u32-uctomb-tests: Likewise.
14184         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14185         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14186         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14187         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14188         * modules/uniwidth/u8-strwidth-tests: Likewise.
14189         * modules/uniwidth/u8-width-tests: Likewise.
14190         * modules/uniwidth/u16-strwidth-tests: Likewise.
14191         * modules/uniwidth/u16-width-tests: Likewise.
14192         * modules/uniwidth/u32-strwidth-tests: Likewise.
14193         * modules/uniwidth/u32-width-tests: Likewise.
14194         * modules/uniwidth/width-tests: Likewise.
14195
14196 2010-05-18  Richard Jones  <rjones@redhat.com>
14197
14198         doc: users.txt: list hivex
14199         * users.txt: Add hivex.
14200
14201 2010-05-18  Richard Jones  <rjones@redhat.com>
14202
14203         doc: users.txt: list febootstrap
14204         * users.txt: Add febootstrap.
14205
14206 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14207
14208         bootstrap: fix an error when gnulib is not used as a git submodule
14209         * build-aux/bootstrap (gnulib_path): If its length is zero then
14210         assign "gnulib" to it.
14211         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14212
14213 2010-05-16  Bruno Haible  <bruno@clisp.org>
14214
14215         Avoid autoconf warnings about AM_ICONV.
14216         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14217         2.64.
14218
14219 2010-05-16  Bruno Haible  <bruno@clisp.org>
14220
14221         absolute-header: Make the macro usable in more situations.
14222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14223         from gl_ABSOLUTE_HEADER.
14224         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14225
14226 2010-05-16  James Youngman  <jay@gnu.org>
14227
14228         doc: update users.txt
14229         * users.txt: Add CSSC.
14230
14231 2010-05-16  Jim Meyering  <meyering@redhat.com>
14232
14233         init.sh: fix an error in the previous change; add more comments
14234         * tests/init.sh: Compare exit code in loop against 9, not 2.
14235         Patch by Bruno Haible.
14236         Make the two tests more similar by adding an empty "then" clause.
14237         Add comments.
14238
14239         init.sh: avoid unnecessary shell re-exec
14240         * tests/init.sh: Improve the re-exec-required check to first test the
14241         current shell.  If it passes the test, do not search for a shell that
14242         does pass, and do not re-exec.  This test is particularly contorted to
14243         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14244         of $(...) evokes a syntax error and causes immediate shell exit with
14245         status 2.  Bruno Haible reported that the re-exec made it impossible
14246         to single-step through any init.sh-using script.
14247
14248 2010-05-16  Bruno Haible  <bruno@clisp.org>
14249
14250         Fix collision between gnulib's and libintl's printf replacements.
14251         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14252         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14253         (printf): When using GNU C, map the __printf__ function to rpl_printf
14254         via __asm__. When not using GNU C, define rpl_printf instead of
14255         __printf__.
14256         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14257         commit.
14258         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14259         commit.
14260         * m4/asm-underscore.m4: New file.
14261         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14262         * modules/stdio (Files): Add m4/asm-underscore.m4.
14263         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14264         Reported by Ben Pfaff.
14265
14266 2010-05-16  Bruno Haible  <bruno@clisp.org>
14267
14268         verify: Avoid skipping the test on openSUSE 11.0.
14269         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14270
14271 2010-05-13  Bruno Haible  <bruno@clisp.org>
14272
14273         Avoid useless warnings from G++.
14274         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14275         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14277
14278 2010-05-11  Jim Meyering  <meyering@redhat.com>
14279
14280         maint.mk: tweak preceding change
14281         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14282         regexps tighter by anchoring at EOL, and make the new group "shy"
14283         for slightly decreased overhead.
14284
14285 2010-05-11  Eric Blake  <eblake@redhat.com>
14286
14287         maint.mk: gnulib doesn't guarantee NSIG
14288         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14289
14290 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14291
14292         test-pwrite.c: Remove unused variable declaration.
14293         * tests/test-pwrite.c (main): Remove read_buf declaration.
14294
14295         Remove useless test-pwrite.sh file.
14296         * tests/test-pwrite.sh: Delete file.
14297         * modules/pwrite-tests: Remove references.
14298         Reported by Bruno Haible.
14299
14300 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14301
14302         init.sh: fix a typo
14303         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14304
14305 2010-05-10  Jim Meyering  <meyering@redhat.com>
14306
14307         maint.mk: avoid using a temporary file in the always-defined-macros check
14308         * top/maint.mk (.re-defmac): Remove rule.
14309         (gl_trap_): Remove definition.
14310         (sc_prohibit_always-defined_macros): Rewrite not to create and
14311         depend on a temporary file.  Instead, depend on GNU grep's ability
14312         to read a list of regular expressions from stdin when given "-f -".
14313
14314 2010-05-09  Bruno Haible  <bruno@clisp.org>
14315
14316         Update to GNU gettext 0.18, part 1.
14317         * m4/gettext.m4: Update to GNU gettext 0.18.
14318         * m4/intl.m4: Likewise.
14319         * m4/po.m4: Likewise.
14320         * modules/gettext (Files): Add m4/fcntl-o.m4.
14321         (configure.ac): Require gettext infrastructure from version 0.18.
14322
14323 2010-05-09  Jim Meyering  <meyering@redhat.com>
14324
14325         init.sh: enable MALLOC_PERTURB_
14326         * tests/init.sh: Enable glibc's malloc-perturbing option.
14327
14328         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14329         With my recent change in init.sh from the two-line form:
14330             -#   : ${srcdir=.}
14331             -#   . "$srcdir/init.sh"; path_prepend_ .
14332             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14333         I noticed that using the one-line form would cause this test
14334         to fail with a false-positive, or to stop working altogether,
14335         depending on whether help-version changed or all the tests did.
14336         * top/maint.mk (_hv_regex): Remove this definition.
14337         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14338         (_hv_regex_strong): Use a stronger regex to check for conformance.
14339         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14340         Give a separate diagnostic for lack of conforming use.
14341
14342         maint.mk: prohibit definition of symbols defined by gnulib
14343         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14344         definition of symbols defined by gnulib.
14345
14346 2010-05-09  Bruno Haible  <bruno@clisp.org>
14347
14348         acl: Avoid test failure on Cygwin-hosted mingw.
14349         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14350
14351 2010-05-09  Bruno Haible  <bruno@clisp.org>
14352
14353         error: Use system's fcntl function.
14354         * lib/error.c (fcntl): Undefine.
14355
14356 2010-05-09  Jim Meyering  <meyering@redhat.com>
14357
14358         verify: adjust formatting to be more consistent
14359         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14360         argument-list '('s, and after one comma.
14361
14362 2010-05-09  Bruno Haible  <bruno@clisp.org>
14363
14364         error: More reliable output on mingw.
14365         * lib/error.c: Include <windows.h>.
14366         (is_open): New function.
14367         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14368         defined.
14369
14370 2010-05-09  Bruno Haible  <bruno@clisp.org>
14371
14372         vasnprintf: Fix syntax errors in libintl build on mingw.
14373         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14374         pad_ourselves and prec_ourselves after use.
14375
14376 2010-05-08  Bruno Haible  <bruno@clisp.org>
14377
14378         * lib/config.charset: Update comments for Cygwin 1.7.
14379         * lib/localcharset.c: Likewise.
14380
14381 2010-05-07  Jim Meyering  <meyering@redhat.com>
14382
14383         init.sh: improve comments
14384         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14385         . "${srcdir=.}/init.sh"; path_prepend_ .
14386         Add a note about path_prepend_ and the alternative of using
14387         TESTS_ENVIRONMENT.
14388
14389 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14390
14391         exclude: Unescape hashed patterns in wildcard mode.
14392         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14393         to the hash list.
14394         * tests/test-exclude8.sh: New test case.
14395         * modules/exclude-tests: Add new test.
14396
14397 2010-05-05  Eric Blake  <eblake@redhat.com>
14398
14399         verify: automate tests
14400         * modules/verify-tests: New module.
14401         * tests/test-verify.sh: New file.
14402         * tests/test-verify.c: Guard each negative test with a unique id.
14403         Also avoid warning about unused left hand of comma expressions.
14404
14405 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14406
14407         Further improvements to verify.h, suggested by Eric Blake.
14408         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14409         the GL_* versions, to avoid collision with OpenGL.
14410         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14411         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14412         than testing merely whether it's defined.
14413
14414         Modify verify.h to pacify gcc -Wredundant_decls.
14415         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14416         These use the prefix "GL_" since they're likely to be useful elsewhere.
14417         We may need to break them out into a different .h file.
14418         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14419         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14420         of verify_function__.
14421
14422 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14423
14424         Tests for module pwrite.
14425         * modules/pwrite-tests: New file.
14426         * tests/test-pwrite.sh: New file.
14427         * tests/test-pwrite.c: New file.
14428
14429         New module pwrite.
14430         * lib/unistd.in.h (pwrite): New declaration.
14431         * lib/pwrite.c: New file, from glibc with modifications.
14432         * m4/pwrite.m4: New file.
14433         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14434         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14435         REPLACE_PWRITE.
14436         * modules/pwrite: New file.
14437         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14438         REPLACE_PWRITE.
14439         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14440         * doc/posix-functions/pwrite.texi: Mention the new module.
14441
14442 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14443
14444         pread: Update documentation.
14445         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14446
14447 2010-05-04  Eric Blake  <eblake@redhat.com>
14448
14449         docs: update cygwin progress
14450         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14451         this bug.
14452         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14453         Added in cygwin 1.7.2.
14454         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14455         Likewise.
14456         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14457         Likewise.
14458         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14459         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14460         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14461         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14462         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14463         Mention nproc module.
14464         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14465         bug in cygwin 1.7.5 addition.
14466         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14467         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14468         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14469         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14470         1.7.5.
14471         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14472         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14473         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14474         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14475         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14476         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14477         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14478         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14479         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14480         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14481         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14482         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14483         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14484         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14485         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14486         Likewise.
14487         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14488         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14489         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14490         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14491         Likewise.
14492         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14493         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14494         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14495         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14496         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14497         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14498         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14499         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14500         Likewise.
14501         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14502         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14503         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14504         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14505         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14506         Likewise.
14507         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14508         Likewise.
14509         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14510         Likewise.
14511         * doc/glibc-functions/xdrrec_endofrecord.texi
14512         (xdrrec_endofrecord): Likewise.
14513         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14514         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14515         Likewise.
14516         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14517         Likewise.
14518
14519 2010-05-04  Jim Meyering  <meyering@redhat.com>
14520
14521         gendocs.sh: make its "-s FILE" option more useful
14522         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14523         $PACKAGE to reflect the probably-different basename of "FILE".
14524
14525 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14526
14527         bootstrap: don't ignore download_po_files failure
14528         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14529         failure.
14530
14531 2010-05-03  Jim Meyering  <meyering@redhat.com>
14532
14533         maint.mk: allow to pass options to gendocs.sh
14534         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14535         (gendocs_options_): New overridable variable.
14536
14537         gnu-web-doc-update: don't ignore configure or build failure
14538         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14539
14540         announce-gen: backslash-escape '@'s in --help output
14541         * build-aux/announce-gen: Fix syntax errors.
14542
14543         maint.mk, announce-gen: allow project-specific announcement mail headers
14544         * top/maint.mk (translation_project_): Define default.
14545         (announcement_Cc_, announcement_mail_headers_): Likewise.
14546         (announcement): Invoke announce-gen with new --mail-headers option.
14547         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14548
14549         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14550         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14551         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14552         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14553         line in the "err2" output file when running "make check" in verbose
14554         mode (i.e., with set -x enabled).
14555
14556 2010-05-03  Bruno Haible  <bruno@clisp.org>
14557
14558         wctob: Fix for weird platforms.
14559         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14560         argument value.
14561
14562 2010-05-03  Jim Meyering  <meyering@redhat.com>
14563
14564         maint.mk: prohibit unwarranted use of <strings.h>
14565         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14566         strings.h in a file that does not also use strcasecmp, strncasecmp,
14567         ffs or ffsll.
14568
14569         maint.mk: remove obsolete comments
14570         * top/maint.mk: Remove stale, commented-out rules.
14571
14572 2010-05-02  Bruno Haible  <bruno@clisp.org>
14573
14574         wcwidth: Declare also when it's aliased.
14575         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14576         macro.
14577
14578 2010-05-02  Bruno Haible  <bruno@clisp.org>
14579
14580         Fix regression from 2010-04-25.
14581         * gnulib-tool (func_modules_transitive_closure): Check the status of
14582         all modules, not only of the tests that are of the form foo-tests where
14583         foo is a module.
14584
14585 2010-05-02  Bruno Haible  <bruno@clisp.org>
14586
14587         wctob: Work around nasty Cygwin 1.7.2 bug.
14588         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14589         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14590
14591 2010-05-01  Bruno Haible  <bruno@clisp.org>
14592
14593         fpurge: Sharper test.
14594         * tests/test-fpurge.c (main): Add one more ftell check.
14595         * modules/fpurge-tests (Depends-on): Add ftell.
14596         Suggested by Eric Blake.
14597
14598 2010-05-01  Bruno Haible  <bruno@clisp.org>
14599
14600         ftello: Another test.
14601         * tests/test-ftello3.c: New file.
14602         * modules/ftello-tests (Files): Add it.
14603         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14604         MOSTLYCLEANFILES.
14605
14606         ftell: Another test.
14607         * tests/test-ftell3.c: New file.
14608         * modules/ftell-tests (Files): Add it.
14609         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14610         MOSTLYCLEANFILES.
14611
14612 2010-05-01  Bruno Haible  <bruno@clisp.org>
14613
14614         ftell, ftello: Work around Solaris bug.
14615         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14616         * lib/ftello.c: Include stdio-impl.h.
14617         (ftello): On Solaris, when _IOWRT is set, compute the result without
14618         looking at _IOREAD.
14619         * modules/ftello (Files): Add lib/stdio-impl.h.
14620         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14621         * doc/posix-functions/ftello.texi: Likewise.
14622         Reported by Eric Blake.
14623
14624 2010-05-01  Bruno Haible  <bruno@clisp.org>
14625
14626         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14627         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14628         the _IOWRT flag is also set.
14629
14630 2010-05-01  Bruno Haible  <bruno@clisp.org>
14631
14632         Fix doc about a HP-UX stdio bug.
14633         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14634         * doc/posix-functions/ftello.texi: Likewise.
14635
14636 2010-05-01  Bruno Haible  <bruno@clisp.org>
14637
14638         lseek test: Fix failure on Solaris.
14639         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14640         output.
14641
14642 2010-04-30  Jim Meyering  <meyering@redhat.com>
14643
14644         bootstrap: don't ignore failure to generate po*/Makevars
14645         * build-aux/bootstrap (with_gettext): Don't ignore failure
14646         to create po/Makevars or runtime-po/Makevars.
14647
14648 2010-04-29  Eric Blake  <eblake@redhat.com>
14649
14650         headers: relax license to LGPLv2+
14651         * modules/fcntl-h (License): Relax license.
14652         * modules/getopt-posix (License): Likewise.
14653         * modules/locale (License): Likewise.
14654         * modules/math (License): Likewise.
14655         * modules/pty (License): Likewise.
14656         * modules/sched (License): Likewise.
14657         * modules/search (License): Likewise.
14658         * modules/spawn (License): Likewise.
14659         * modules/stdarg (License): Likewise.
14660         * modules/sysexits (License): Likewise.
14661
14662 2010-04-29  Jim Meyering  <meyering@redhat.com>
14663
14664         inttypes: relax license to LGPLv2+
14665         * modules/inttypes (License): Relax license.
14666
14667 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14668
14669         * top/maint.mk (indent): Run twice to produce idempotent results.
14670
14671 2010-04-28  Bruno Haible  <bruno@clisp.org>
14672
14673         getdate: Generate getdate.c in the source directory.
14674         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14675         MOSTLYCLEANFILES.
14676         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14677
14678 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14679
14680         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14681         is not declared as a const *; avoid warnings in that case.
14682
14683 2010-04-28  Eric Blake  <eblake@redhat.com>
14684
14685         canonicalize-lgpl: avoid compiler warning
14686         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14687         declaration' / 'extraneous semicolon' warning with some compilers.
14688         Reported by Andreas Gruenbacher.
14689
14690 2010-04-28  Jim Meyering  <meyering@redhat.com>
14691
14692         init.sh: ensure a more reliable exit status when exiting via trap
14693         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14694         Inspired by patches from Dmitry V. Levin.
14695         Also trap on signal 3 (SIGQUIT).
14696
14697 2010-04-27  Bruno Haible  <bruno@clisp.org>
14698
14699         Update doc about utimes().
14700         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14701         'utimens' module.
14702         Reported by Andreas Gruenbacher <agruen@suse.de>.
14703
14704 2010-04-27  Eric Blake  <eblake@redhat.com>
14705
14706         full-read, full-write: relax license
14707         * modules/full-read (License): Drop to LGPLv2+.
14708         * modules/full-write (License): Likewise.
14709         * modules/safe-read (License): Likewise.
14710         * modules/safe-write (License): Likewise.
14711
14712         pthread: mention library for linking
14713         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14714
14715 2010-04-27  Jim Meyering  <meyering@redhat.com>
14716
14717         maint.mk: fix a bug introduced in last change
14718         * top/maint.mk (gl_assured_headers_): Now that all names are on
14719         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14720         is not anchored to end of word, it should be adequate.
14721
14722         maint.mk: avoid side-effect in latest syntax-check
14723         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14724         to run commands via $(shell...), and hence to incur cost only when
14725         the new rule is actually run.
14726
14727         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14728         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14729         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14730         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14731         (gl_assured_headers_, az_, AZ_): Define.
14732         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14733
14734 2010-04-26  Jim Meyering  <jim@meyering.net>
14735             Bruno Haible  <bruno@clisp.org>
14736
14737         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14738         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14739         Prompted by an exchange with Gilles Espinasse.
14740
14741 2010-04-26  Jim Meyering  <meyering@redhat.com>
14742
14743         git-version-gen: aesthetic tweak
14744         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14745         so that the command remains on a single line.
14746
14747 2010-04-26  Eric Blake  <eblake@redhat.com>
14748
14749         git-version-gen: allow use on EBCDIC hosts
14750         * build-aux/git-version-gen (dirty): Use literal rather than tying
14751         ourselves to ascii.
14752         Reported by Steve Goetze.
14753
14754 2010-04-25  Bruno Haible  <bruno@clisp.org>
14755
14756         netdb: Add support for GNULIB_POSIXCHECK.
14757         * lib/netdb.in.h: Include warn-on-use.h.
14758         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14759         functions are used when GNULIB_POSIXCHECK is defined and the
14760         getaddrinfo module is not in use.
14761         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14762         freeaddrinfo, gai_strerror, getnameinfo are declared.
14763         * modules/netdb (Depends-on): Add warn-on-use.
14764         (Makefile.am): Include warn-on-use.h in netdb.h.
14765
14766 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14767
14768         build: avoid "make check" failure without .git/ directory
14769         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14770         there is no .git/ directory.
14771
14772 2010-04-25  Bruno Haible  <bruno@clisp.org>
14773
14774         ptsname: Fix misuse of ttyname_r.
14775         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14776         of errno.
14777
14778 2010-04-25  Bruno Haible  <bruno@clisp.org>
14779
14780         ttyname_r: Make it work on Solaris 10.
14781         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14782         if the system function has the POSIX declaration. Test whether the
14783         function fails if the buffer is less than 128 bytes large.
14784         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14785         system's ttyname_r function. Provide a reasonably large buffer.
14786         * modules/ttyname_r (Depends-on): Add extensions.
14787         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14788
14789 2010-04-25  Bruno Haible  <bruno@clisp.org>
14790
14791         Use the 'extensions' module for some more functions on Solaris.
14792         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14793         module.
14794         * doc/posix-functions/ctime_r.texi: Likewise.
14795         * doc/posix-functions/getgrgid_r.texi: Likewise.
14796         * doc/posix-functions/getgrnam_r.texi: Likewise.
14797         * doc/posix-functions/getpwnam_r.texi: Likewise.
14798         * doc/posix-functions/getpwuid_r.texi: Likewise.
14799         * doc/posix-functions/readdir_r.texi: Likewise.
14800         * doc/posix-functions/sigwait.texi: Likewise.
14801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14802         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14803
14804 2010-04-25  Bruno Haible  <bruno@clisp.org>
14805
14806         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14807         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14808         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14809         * lib/ttyname_r.c: Include <limits.h>.
14810         (ttyname_r): Define using the system's ttyname_r function, if it exists
14811         and not on Solaris.
14812         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14813         set.
14814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14815         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14816         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14817         Reported by Simon Josefsson.
14818
14819 2010-04-25  Bruno Haible  <bruno@clisp.org>
14820
14821         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14822         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14823         * doc/posix-functions/ctime_r.texi: Likewise.
14824         * doc/posix-functions/getgrgid_r.texi: Likewise.
14825         * doc/posix-functions/getgrnam_r.texi: Likewise.
14826         * doc/posix-functions/getlogin_r.texi: Likewise.
14827         * doc/posix-functions/getpwnam_r.texi: Likewise.
14828         * doc/posix-functions/getpwuid_r.texi: Likewise.
14829         * doc/posix-functions/readdir_r.texi: Likewise.
14830         * doc/posix-functions/sigwait.texi: Likewise.
14831         * doc/posix-functions/ttyname_r.texi: Likewise.
14832         Reported by Simon Josefsson.
14833
14834 2010-04-25  Bruno Haible  <bruno@clisp.org>
14835
14836         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14837         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14838         also to --create-testdir.
14839         (func_acceptable): Don't consider the status of *-tests modules here.
14840         (func_modules_transitive_closure): Consider it here, before including a
14841         test module.
14842         (func_import, func_create_testdir): Set inc_all_direct_tests,
14843         inc_all_indirect_tests.
14844         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14845         --create-testdir and --create-megatestdir.
14846
14847 2010-04-25  Bruno Haible  <bruno@clisp.org>
14848
14849         gnulib-tool: Add --without-*-tests options.
14850         * gnulib-tool (func_usage): Document the --without-*-tests options.
14851         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14852         excl_unportable_tests): New variables.
14853         Fail if they are specified with --import or --update.
14854         (func_acceptable): Respect the excl_*_tests variables.
14855         (func_import): Set the excl_*_tests variables to empty.
14856
14857 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14858             Bruno Haible  <bruno@clisp.org>
14859
14860         Work around a MacOS X 10.4 bug with openpty.
14861         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14862         * tests/test-openpty.c (main): Close the master side explicitly.
14863
14864 2010-04-25  Bruno Haible  <bruno@clisp.org>
14865
14866         strnlen: Fix a C++ test error on MacOS X and Solaris.
14867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14868         the function is not declared.
14869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14870         Simon Josefsson.
14871
14872 2010-04-24  Bruno Haible  <bruno@clisp.org>
14873
14874         Avoid a gcc warning.
14875         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14876         of correct type for %08lx directive.
14877         Reported by Eric Blake.
14878
14879 2010-04-24  Bruno Haible  <bruno@clisp.org>
14880
14881         vasnprintf: Correct errno value in case of out-of-memory.
14882         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14883         or sprintf. Use the errno value from SNPRINTF or sprintf.
14884         Reported by Ian Beckwith <ianb@erislabs.net>.
14885
14886 2010-04-24  Bruno Haible  <bruno@clisp.org>
14887
14888         ansi-c++-opt: Find correct compiler when cross-compiling.
14889         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14890         AC_CHECK_PROGS.
14891         Reported by Simon Josefsson.
14892
14893 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14894
14895         vc-list-files: Add support for subversion
14896         * build-aux/vc-list-files: Use "svn list" to generate the list of
14897         files controlled by subversion.
14898
14899 2010-04-23  Jim Meyering  <meyering@redhat.com>
14900
14901         vc-list-files tests: convert to use init.sh
14902         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14903         path_prepend_.
14904         Use Exit, not exit.
14905         Use skip_ rather than open coding it.
14906         Remove trap set-up and compare definitions.
14907         * tests/test-vc-list-files-git.sh: Likewise.
14908         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14909
14910 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14911
14912         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14913         backup files.
14914
14915 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14916
14917         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14918
14919 2010-04-20  Eric Blake  <eblake@redhat.com>
14920
14921         tests: be robust to ignored SIGPIPE
14922         * tests/test-select-in.sh: Consume all output.
14923         * tests/test-lseek.sh: Check correct exit status, while avoiding
14924         EPIPE.
14925
14926 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14927             Bruno Haible  <bruno@clisp.org>
14928
14929         visibility: Don't use -fvisibility if it leads to a warning.
14930         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14931         yes, don't pretend that visibility works if it leads to a warning.
14932         Reported by Mike Gran <spk121@yahoo.com>.
14933
14934 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14935
14936         * build-aux/bootstrap: Use "git -h" for testing for supported options
14937         instead of "git --help".  The short-form option only shows a summary,
14938         and doesn't layout the full man page.  Grep for the full option name
14939         in the summary, too.
14940
14941 2010-04-19  Bruno Haible  <bruno@clisp.org>
14942
14943         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14944         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14945         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14946         mention of RELOCATABLE_STRIP.
14947         Reported by Sylvain Beucler <beuc@beuc.net>.
14948
14949 2010-04-19  Bruno Haible  <bruno@clisp.org>
14950
14951         * lib/diffseq.h: Fix typo in comment.
14952         Reported by Eric Blake.
14953
14954 2010-04-19  Bruno Haible  <bruno@clisp.org>
14955
14956         ioctl: Move autoconf macro to a .m4 file.
14957         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14958         * modules/ioctl (Files): Add it.
14959         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14960         Reported by Ian Beckwith <ianb@erislabs.net>.
14961
14962 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14963             Bruno Haible  <bruno@clisp.org>
14964
14965         diffseq: Accommodate use-case with abstract arrays.
14966         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14967         is not defined.
14968         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14969         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14970
14971 2010-04-18  Bruno Haible  <bruno@clisp.org>
14972
14973         * doc/posix-headers/stdbool.texi: More precise wording.
14974
14975 2010-04-17  Jim Meyering  <meyering@redhat.com>
14976
14977         maint.mk: use gnu-style indentation in an embedded perl script
14978         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14979         Rename variable: s/two/last_two_bytes/
14980
14981 2010-04-16  Eric Blake  <eblake@redhat.com>
14982
14983         test-stdbool: skip test that fails with Solaris CC
14984         * tests/test-stdbool.c (f): Skip test that causes compilation
14985         error under buggy C++ compiler.
14986         * lib/stdbool.in.h: Document the limitation.
14987         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14988
14989         setenv: allow compilation with C++
14990         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14991         register keyword.
14992
14993         stdint: allow test to pass with C++
14994         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14995
14996         getopt: allow compilation with C++
14997         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14998         struct.
14999         * lib/getopt.c (_getopt_internal_r): Use correct type.
15000         Reported by Dagobert Michelson, via Joel E. Denny.
15001
15002 2010-04-16  Bruno Haible  <bruno@clisp.org>
15003
15004         Override netdb.h always.
15005         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15006         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15007         Reported by Ludovic Courtès <ludo@gnu.org>.
15008
15009 2010-04-15  Bruno Haible  <bruno@clisp.org>
15010
15011         openpty: Fix mistake from 2010-03-21.
15012         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15013         Reported by Simon Josefsson.
15014
15015 2010-04-15  Eric Blake  <eblake@redhat.com>
15016
15017         test-forkpty: fix expected signature
15018         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15019         Reported by Simon Josefsson.
15020
15021 2010-04-15  Jim Meyering  <meyering@redhat.com>
15022
15023         maint.mk: texinfo_suffix_re_: correct the default regexp
15024         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15025
15026         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15027         make it configurable via texinfo_suffix_re_.
15028
15029 2010-04-14  Eric Blake  <eblake@redhat.com>
15030
15031         strtok_r: relax license to LGPLv2+
15032         * modules/strtok_r (License): Relax license.
15033         Reported by Matthias Bolte.
15034
15035 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15036
15037         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15038         version 1.4.4 by default instead of requiring the libgcrypt
15039         version used during build.  This makes it possible to use the
15040         application with older but still binary compatible libgcrypt
15041         versions.
15042
15043 2010-04-13  Eric Blake  <eblake@redhat.com>
15044
15045         getopt-gnu: match recent glibc fixes and posix ruling
15046         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15047         '+' handling, when requesting extensions.
15048         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15049         'W;' handling.
15050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15051         * doc/posix-functions/getopt.texi (getopt): Document this.
15052         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15053         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15054         Likewise.
15055
15056         getopt: merge bug fixes from glibc
15057         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15058         diagnostics.  Honor '+:' correctly.  Reject ';'.
15059
15060         getopt-posix: detect MacOS bug
15061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15062         optind when missing a required argument.
15063         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15064         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15065         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15066         Likewise.
15067
15068         getopt-posix: avoid spurious failure on Solaris
15069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15070         an indicator that setting optind=1 is sufficient for reset.
15071
15072         getopt-posix: avoid spurious failure on FreeBSD
15073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15074         in POSIX mode, since the m4 test uses it.
15075
15076         gnulib-tool: silence warning on BSD sh
15077         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15078
15079 2010-04-13  Jim Meyering  <meyering@redhat.com>
15080
15081         doc: users.txt: GNU patch now uses gnulib
15082         * users.txt: Add patch.
15083
15084 2010-04-12  Jim Meyering  <meyering@redhat.com>
15085
15086         maint.mk: generate more concise timing data for syntax-check rules
15087         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15088         " done" from each line that reports a syntax-check test duration.
15089
15090 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15091
15092         git-version-gen: use "git update-index..." rather than "git status"
15093         * build-aux/git-version-gen: Use git update-index --refresh, not
15094         "git status".  With some versions of git, "git status" would fail
15095         to update the index and result in an unwarranted "-dirty" suffix.
15096
15097 2010-04-11  Jim Meyering  <meyering@redhat.com>
15098
15099         openat: correct formatting (no semantic change)
15100         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15101         Suggested by Bruno Haible.
15102
15103 2010-04-11  Bruno Haible  <bruno@clisp.org>
15104
15105         Stricter declaration checking in testdirs.
15106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15107         If for_tests is true, augment AM_CPPFLAGS to define
15108         GNULIB_STRICT_CHECKING.
15109         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15110         GNULIB_STRICT_CHECKING is defined, verify that the function is
15111         declared.
15112
15113 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15114             Bruno Haible  <bruno@clisp.org>
15115
15116         libunistring: Improve configure output.
15117         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15118         Don't say "consider installing GNU libunistring" when checking again
15119         with libiconv.
15120
15121 2010-04-11  Bruno Haible  <bruno@clisp.org>
15122
15123         libunistring: Correct value of $LTLIBUNISTRING.
15124         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15125         correct the value of $LTLIBUNISTRING.
15126
15127 2010-04-11  Bruno Haible  <bruno@clisp.org>
15128
15129         havelib: Add static libraries to LIBS in the right order.
15130         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15131         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15132
15133 2010-04-11  Bruno Haible  <bruno@clisp.org>
15134
15135         libunistring: Detect libunistring also when it depends on libiconv.
15136         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15137         the second AC_LIB_HAVE_LINKFLAGS invocation.
15138
15139 2010-04-11  James Youngman  <jay@gnu.org>
15140
15141         close-stream: declare local scalars to be "const"
15142         * lib/close-stream.c (close_stream): Make boolean variables const
15143         to document the fact that we set but do not change them.
15144
15145 2010-04-11  Bruno Haible  <bruno@clisp.org>
15146
15147         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15148
15149 2010-04-11  Jim Meyering  <meyering@redhat.com>
15150
15151         maint.mk: don't include dist-check.mk
15152         * top/maint.mk: Remove bogus include directive.
15153
15154         maint.mk: improve empty-line-at-EOF check
15155         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15156         solution, rather than tail+Perl-based one.  The latter would read
15157         a few kilobytes from the end of each file, and did not handle empty
15158         files properly.
15159
15160         maint.mk: print the elapsed time for each syntax-check rule
15161         * top/maint.mk (sc_m_rules_): Save start time in a file.
15162         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15163         (local-check): Interpose the .z rules
15164
15165 2010-04-11  Jim Meyering  <meyering@redhat.com>
15166
15167         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15168         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15169         empty file with one that ends in an empty line.
15170
15171 2010-04-10  Bruno Haible  <bruno@clisp.org>
15172
15173         mkdir: Make it work on mingw64.
15174         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15175         * lib/mkdir.c: Update comment.
15176         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15177
15178 2010-04-10  Bruno Haible  <bruno@clisp.org>
15179
15180         Don't override improved macro from newer autoconf.
15181         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15182         autoconf >= 2.62.
15183         Reported by Joel E. Denny <jdenny@clemson.edu>.
15184
15185 2010-04-10  Jim Meyering  <meyering@redhat.com>
15186
15187         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15188         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15189
15190         maint.mk: correct a diagnostic
15191         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15192         in diagnostic; now use $prohibit.
15193
15194 2010-04-10  Bruno Haible  <address@hidden>
15195
15196         fchownat: Fix a C++ test error on Solaris 8.
15197         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15198         the function does not exist.
15199
15200 2010-04-10  Bruno Haible  <bruno@clisp.org>
15201
15202         vasnprintf: Add more tests.
15203         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15204         (test_function): Test converting an invalid wide string.
15205
15206         vasnprintf: Correct handling of unconvertible wide string arguments.
15207         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15208         VASNPRINTF.
15209         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15210         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15211         smaller than the expected maximum need for the directive. Set errno to
15212         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15213         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15215         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15216         * modules/vasnprintf (Files): Add m4/printf.m4.
15217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15218
15219 2010-04-10  Bruno Haible  <bruno@clisp.org>
15220
15221         vasnprintf: Fix crash in %ls directive.
15222         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15223         string is passed as argument to %ls, with no precision and no width.
15224         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15225
15226 2010-04-10  Bruno Haible  <bruno@clisp.org>
15227
15228         vasnprintf: Fix multiple test failures on mingw.
15229         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15230         _snprintf, or snwprintf, not _snwprintf.
15231
15232 2010-04-10  Bruno Haible  <bruno@clisp.org>
15233
15234         write: Fix a C++ test error on mingw.
15235         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15236
15237 2010-04-10  Bruno Haible  <bruno@clisp.org>
15238
15239         vasnprintf test: Reduce code duplication.
15240         * tests/test-vasnprintf.c (test_function): New function, extracted from
15241         test_vasnprintf.
15242         (test_vasnprintf, test_asnprintf): Invoke it.
15243
15244 2010-04-10  Bruno Haible  <bruno@clisp.org>
15245
15246         strnlen: Fix warning in C++ mode on MacOS X.
15247         * lib/string.in.h (strnlen): Use the modern idiom.
15248         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15249         defining strnlen as a macro already in <config.h>.
15250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15251         REPLACE_STRNLEN.
15252         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15254
15255 2010-04-08  James Youngman  <jay@gnu.org>
15256
15257         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15258         the example.
15259
15260 2010-04-09  Jim Meyering  <meyering@redhat.com>
15261
15262         maint.mk: print better diagnostic when there is no $(_hv_file)
15263         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15264         announce that when $(_hv_file) (aka help-version) does not exist.
15265
15266         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15267         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15268         not try to interpret its random input bytes.  Jarno Rajahalme reported
15269         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15270         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15271         (mktempd_): Likewise, just in case.
15272
15273         ftruncate: add two years to projected module removal date: 2012
15274         * m4/ftruncate.m4: Adjust comments.
15275
15276         ftruncate: mark module as obsolete; even MinGW provides it, now
15277         * modules/ftruncate (Status): Obsolete.
15278         (Notice): Say that.
15279         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15281
15282 2010-04-08  Bruno Haible  <bruno@clisp.org>
15283
15284         Fix side effects from tests-related modules.
15285         * modules/dprintf-posix (Comment): New section.
15286         * modules/fprintf-posix (Comment): Likewise.
15287         * modules/obstack-printf-posix (Comment): Likewise.
15288         * modules/printf-posix (Comment): Likewise.
15289         * modules/snprintf-posix (Comment): Likewise.
15290         * modules/sprintf-posix (Comment): Likewise.
15291         * modules/vasnprintf-posix (Comment): Likewise.
15292         * modules/vasprintf-posix (Comment): Likewise.
15293         * modules/vdprintf-posix (Comment): Likewise.
15294         * modules/vfprintf-posix (Comment): Likewise.
15295         * modules/vprintf-posix (Comment): Likewise.
15296         * modules/vsnprintf-posix (Comment): Likewise.
15297         * modules/vsprintf-posix (Comment): Likewise.
15298         * modules/xprintf-posix (Comment): Likewise.
15299         * modules/xvasprintf-posix (Comment): Likewise.
15300         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15301         * modules/floorf-tests (Depends-on): Likewise.
15302         * modules/round-tests (Depends-on): Likewise.
15303         * modules/roundf-tests (Depends-on): Likewise.
15304         * modules/trunc-tests (Depends-on): Likewise.
15305         * modules/truncf-tests (Depends-on): Likewise.
15306         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15307         'fprintf-posix' module is not present.
15308         * tests/test-floorf2.c (check): Likewise.
15309         * tests/test-trunc2.c (check): Likewise.
15310         * tests/test-truncf2.c (check): Likewise.
15311         * tests/test-round2.c (equal): Likewise.
15312         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15313
15314 2010-04-07  Karl Berry  <karl@gnu.org>
15315
15316         * config/srclist.txt,
15317         * config/srclistvars.sh,
15318         * config/srclist-update: doc fixes.
15319
15320 2010-04-07  Jim Meyering  <meyering@redhat.com>
15321
15322         maint.mk: add a PATH crosschecking syntax-check rule
15323         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15324         Useful if you use a test like the one in help-version (coreutils,
15325         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15326         printed by prog --version.
15327
15328 2010-04-06  Bruno Haible  <bruno@clisp.org>
15329
15330         Fix link error on mingw.
15331         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15332         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15333
15334 2010-04-06  Bruno Haible  <bruno@clisp.org>
15335
15336         Assume rmdir exists.
15337         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15338
15339 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15340
15341         doc: update users.txt
15342         * users.txt: Add gcal.
15343
15344 2010-04-06  Jim Meyering  <meyering@redhat.com>
15345
15346         init.sh: simply unset TMPDIR rather than risking env -i
15347         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15348         although it probably works fine on all Unix-based systems, some
15349         systems (Cygwin?) cannot tolerate a totally cleared environment.
15350         Suggestion from Eric Blake.
15351
15352 2010-04-06  Jim Meyering  <meyering@redhat.com>
15353
15354         init.sh: portability fix: use env's POSIX-specified -i option not -u
15355         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15356         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15357
15358 2010-04-05  Bruno Haible  <bruno@clisp.org>
15359
15360         btowc: Work around Cygwin 1.7.2 bug.
15361         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15362         does not map NUL to 0.
15363         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15364
15365 2010-04-05  Bruno Haible  <bruno@clisp.org>
15366
15367         Make the multithread modules work on Cygwin 1.7.2.
15368         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15369         imported symbols can be declared weak, so that it returns "no" on
15370         Cygwin 1.7.2.
15371
15372 2010-04-05  Bruno Haible  <bruno@clisp.org>
15373
15374         Use the module 'strncat'.
15375         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15376
15377         Tests for module 'strncat'.
15378         * modules/strncat-tests: New file.
15379         * tests/test-strncat.c: New file.
15380
15381         New module 'strncat'.
15382         * lib/string.in.h (strncat): New declaration.
15383         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15384         * m4/strncat.m4: New file, based on m4/memchr.m4.
15385         * modules/strncat: New file.
15386         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15387         is declared.
15388         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15389         REPLACE_STRNCAT.
15390         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15391         REPLACE_STRNCAT.
15392         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15393         module.
15394         * tests/test-string-c++.cc: Check signature of strncat.
15395
15396 2010-04-05  Jim Meyering  <meyering@redhat.com>
15397
15398         xstrtoumax-tests: convert to use init.sh
15399         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15400         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15401         Use Exit, not exit.
15402         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15403
15404         xstrtoimax-tests: convert to use init.sh
15405         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15406         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15407         Use Exit, not exit.
15408         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15409
15410 2010-04-05  Bruno Haible  <bruno@clisp.org>
15411
15412         sys_socket: Avoid #define replacements in C++ mode.
15413         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15414         warning to the function if possible, rather than #defining the symbol
15415         to a dysfunctional alias.
15416
15417 2010-04-05  Bruno Haible  <bruno@clisp.org>
15418
15419         fseeko: Fix C++ test error on mingw.
15420         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15421         gl_FUNC_FSEEKO.
15422         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15423         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15424         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15425         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15426
15427 2010-04-05  Bruno Haible  <bruno@clisp.org>
15428
15429         duplocale: Improve test output.
15430         * tests/test-duplocale.c (main): Print reason for skipped test.
15431
15432 2010-04-05  Bruno Haible  <bruno@clisp.org>
15433
15434         Assume rmdir exists.
15435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15436         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15437
15438 2010-04-05  Bruno Haible  <bruno@clisp.org>
15439
15440         Fix link error on Solaris 8 with cc.
15441         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15442
15443 2010-04-05  Bruno Haible  <bruno@clisp.org>
15444
15445         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15446         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15447
15448 2010-04-05  Bruno Haible  <bruno@clisp.org>
15449
15450         vasprintf: Update documentation.
15451         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15452
15453 2010-04-05  Bruno Haible  <bruno@clisp.org>
15454
15455         ptsname: Improve test.
15456         * tests/test-ptsname.c (main): Also try the various master names of BSD
15457         systems.
15458
15459 2010-04-05  Bruno Haible  <bruno@clisp.org>
15460
15461         memchr: Avoid a possible C++ test error.
15462         * lib/string.in.h (memchr): Provide declaration if function is missing.
15463         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15464         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15466         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15467
15468 2010-04-05  Bruno Haible  <bruno@clisp.org>
15469
15470         strtok_r: Improve idiom.
15471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15472         AC_LIBOBJ is used.
15473
15474 2010-04-05  Bruno Haible  <bruno@clisp.org>
15475
15476         strdup: Improve idiom.
15477         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15478         AC_LIBOBJ is used.
15479         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15480         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15481         when AC_LIBOBJ is used.
15482
15483 2010-04-05  Bruno Haible  <bruno@clisp.org>
15484
15485         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15487         don't set REPLACE_MBSINIT to 1.
15488         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15489         don't set REPLACE_MBRTOWC to 1.
15490         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15491         exist, don't set REPLACE_MBSRTOWCS to 1.
15492         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15493         exist, don't set REPLACE_MBSNRTOWCS to 1.
15494         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15495         don't set REPLACE_WCRTOMB to 1.
15496         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15497         exist, don't set REPLACE_WCSRTOMBS to 1.
15498         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15499         exist, don't set REPLACE_WCSNRTOMBS to 1.
15500
15501 2010-04-05  Bruno Haible  <bruno@clisp.org>
15502
15503         ldexpl: Improve idiom.
15504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15505         make sure to set HAVE_DECL_LDEXPL to 0.
15506
15507 2010-04-05  Jim Meyering  <meyering@redhat.com>
15508
15509         xstrtol-tests: convert to use init.sh
15510         * modules/xstrtol-tests (Files): Add tests/init.sh.
15511         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15512         Use Exit, not exit.
15513         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15514
15515         atexit-tests: convert to use init.sh
15516         * modules/atexit-tests (Files): Add tests/init.sh.
15517         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15518         Use Exit, not exit.
15519         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15520
15521         init.sh: fix typo
15522         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15523
15524         init.sh: make it easier for a test script to write to the tty, ...
15525         when using automake's parallel-tests mode.
15526         * tests/init.sh (stderr_fileno_): Define overridable variable.
15527         (warn_): New function, to use it.
15528         (fail_, skip_, framework_failure_): Use warn_.
15529
15530 2010-04-04  Bruno Haible  <bruno@clisp.org>
15531
15532         btowc: Avoid warning.
15533         * lib/btowc.c: Include <stdlib.h>.
15534         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15535
15536 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15537             Bruno Haible  <bruno@clisp.org>
15538
15539         wchar: Port to NetBSD 1.5.
15540         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15541         * lib/wctype.in.h (WEOF): Likewise.
15542
15543 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15544             Bruno Haible  <bruno@clisp.org>
15545
15546         Port extended stdio to NetBSD 1.5.
15547         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15548         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15549         older.
15550
15551 2010-04-04  Bruno Haible  <bruno@clisp.org>
15552
15553         string: Remove unused substitution.
15554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15555         HAVE_DECL_STRERROR.
15556         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15557
15558 2010-04-04  Bruno Haible  <bruno@clisp.org>
15559
15560         strtod: Avoid a possible C++ test error.
15561         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15562         set REPLACE_STRTOD.
15563
15564 2010-04-04  Bruno Haible  <bruno@clisp.org>
15565
15566         strerror: Update documentation.
15567         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15568
15569 2010-04-04  Bruno Haible  <bruno@clisp.org>
15570
15571         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15572         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15573         _GL_CXXALIAS_SYS_CAST.
15574
15575 2010-04-04  Bruno Haible  <bruno@clisp.org>
15576
15577         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15578         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15579         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15580         REPLACE_FREXPL to 1.
15581         * doc/posix-functions/frexpl.texi: Update documentation.
15582
15583 2010-04-04  Bruno Haible  <bruno@clisp.org>
15584
15585         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15586         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15587
15588 2010-04-04  Bruno Haible  <bruno@clisp.org>
15589
15590         Implement nanosleep for native Windows.
15591         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15592
15593 2010-04-04  Bruno Haible  <bruno@clisp.org>
15594
15595         math: Fix some C++ test errors on Solaris 8.
15596         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15597
15598 2010-04-04  Bruno Haible  <bruno@clisp.org>
15599
15600         math: Fix some C++ test errors on Cygwin.
15601         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15602         truncl): Provide declaration if the system does not have it.
15603         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15604         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15605         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15606         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15607         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15608         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15609         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15610         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15611         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15612         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15613         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15614         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15615         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15616         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15617         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15618         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15620         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15621         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15622         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15623         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15624         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15625
15626 2010-04-04  Bruno Haible  <bruno@clisp.org>
15627
15628         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15629         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15630         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15631         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15632         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15633         * m4/isinf.m4 (gl_ISINF): Likewise.
15634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15635
15636 2010-04-04  Bruno Haible  <bruno@clisp.org>
15637
15638         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15639         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15640
15641 2010-04-04  Bruno Haible  <bruno@clisp.org>
15642
15643         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15644         * modules/tmpfile (configure.ac): Update.
15645
15646         tmpfile: Fix C++ test error on mingw.
15647         * lib/stdio.in.h (tmpfile): New declaration.
15648         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15649         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15650         * modules/tmpfile (Depends-on): Add stdio.
15651         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15652         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15653         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15654         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15655         REPLACE_TMPFILE.
15656         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15657
15658 2010-04-04  Bruno Haible  <bruno@clisp.org>
15659
15660         ioctl: Fix C++ test error on mingw.
15661         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15662         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15663         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15664
15665 2010-04-03  Bruno Haible  <bruno@clisp.org>
15666
15667         wcwidth: Fix C++ test error on mingw.
15668         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15670         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15671
15672 2010-04-03  Bruno Haible  <bruno@clisp.org>
15673
15674         nanosleep: Fix C++ test error on mingw.
15675         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15676         * lib/time.in.h (nanosleep): Use modern idiom.
15677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15678         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15679         REPLACE_NANOSLEEP to 1.
15680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15681         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15682
15683 2010-04-03  Bruno Haible  <bruno@clisp.org>
15684
15685         strptime: Fix C++ test error on mingw.
15686         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15687         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15688         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15689         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15690         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15691         not REPLACE_STRPTIME.
15692         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15693         REPLACE_STRPTIME.
15694
15695 2010-04-03  Bruno Haible  <bruno@clisp.org>
15696
15697         timegm: Fix C++ test error on mingw.
15698         * lib/time.in.h (timegm): Use modern idiom.
15699         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15700         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15701         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15702         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15703
15704 2010-04-03  Bruno Haible  <bruno@clisp.org>
15705
15706         timegm: Assume declaration if function exists.
15707         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15708         if it exists. Don't clobber ac_cv_func_timegm.
15709
15710 2010-04-03  Bruno Haible  <bruno@clisp.org>
15711
15712         time_r: Fix C++ test error on mingw.
15713         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15714         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15715         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15717         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15718
15719 2010-04-03  Bruno Haible  <bruno@clisp.org>
15720
15721         time_r: Minor updates.
15722         * modules/time_r (Description): Mention the provided functions.
15723         * lib/time_r.c: Don't include <string.h>.
15724         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15725         * doc/posix-functions/localtime_r.texi: Likewise.
15726
15727 2010-04-03  Bruno Haible  <bruno@clisp.org>
15728
15729         time: Fix regression introduced on 2010-03-08.
15730         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15731         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15732
15733 2010-04-03  Jim Meyering  <meyering@redhat.com>
15734
15735         maint.mk: don't silently disable project-specific syntax-check rules
15736         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15737         that they need to convert their project-specific syntax-check rules
15738         to use the new _sc_search_regexp.
15739
15740 2010-04-03  Bruno Haible  <bruno@clisp.org>
15741
15742         fchdir: Fix regression introduced on 2010-03-08.
15743         * lib/unistd.in.h (fchdir): Fix declaration.
15744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15746         REPLACE_FCHDIR.
15747         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15748         REPLACE_FCHDIR.
15749
15750 2010-04-03  Bruno Haible  <bruno@clisp.org>
15751
15752         getpagesize: Fix C++ test error on mingw.
15753         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15754         system does not declare the function.
15755         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15756         declared.
15757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15758         HAVE_DECL_GETPAGESIZE.
15759         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15760
15761 2010-04-03  Bruno Haible  <bruno@clisp.org>
15762
15763         stdio: Make C++ tests work on mingw.
15764         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15765         does not declare the function.
15766
15767 2010-04-03  Bruno Haible  <bruno@clisp.org>
15768
15769         ftello: Fix C++ test error on mingw.
15770         * lib/stdio.in.h (ftello): Use modern idiom.
15771         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15772         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15773         is missing and that it needs to be replaced.
15774         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15776         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15777
15778 2010-04-03  Bruno Haible  <bruno@clisp.org>
15779
15780         fseeko: Fix C++ test error on mingw.
15781         * lib/stdio.in.h (fseeko): Use modern idiom.
15782         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15784         is missing and that it needs to be replaced.
15785         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15787         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15788
15789 2010-04-03  Bruno Haible  <bruno@clisp.org>
15790
15791         mkstemp: Fix C++ test error on mingw.
15792         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15794         function is missing and that it needs to be replaced.
15795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15796         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15797
15798 2010-04-03  Bruno Haible  <bruno@clisp.org>
15799
15800         stpncpy: Fix C++ test error on mingw.
15801         * lib/string.in.h (stpncpy): Use modern idiom.
15802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15803         function is missing and that it needs to be replaced.
15804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15805         REPLACE_STPNCPY.
15806         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15807
15808 2010-04-03  Bruno Haible  <bruno@clisp.org>
15809
15810         sys_stat: Fix C++ test error on mingw.
15811         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15812         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15813
15814 2010-04-03  Bruno Haible  <bruno@clisp.org>
15815
15816         pty: Update doc.
15817         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15818
15819 2010-04-03  Bruno Haible  <bruno@clisp.org>
15820
15821         unistd: Fix C++ test error on mingw.
15822         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15823
15824 2010-04-03  Bruno Haible  <bruno@clisp.org>
15825
15826         Update doc regarding mingw.
15827         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15828         * doc/glibc-functions/login_tty.texi: Likewise.
15829         * doc/glibc-functions/forkpty.texi: Likewise.
15830
15831 2010-04-03  Bruno Haible  <bruno@clisp.org>
15832
15833         stdlib: Avoid compilation failure of c-strtold on mingw.
15834         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15835
15836 2010-04-03  Bruno Haible  <bruno@clisp.org>
15837
15838         locale: Make C++ tests work on Cygwin and mingw.
15839         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15840         cannot provide the function.
15841         Reported by Simon Josefsson.
15842
15843 2010-04-03  Bruno Haible  <bruno@clisp.org>
15844
15845         localename: Port to MacOS X 10.6.
15846         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15847         memory layout of the locales in MacOS X 10.6 as well.
15848         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15849
15850 2010-04-02  Bruno Haible  <bruno@clisp.org>
15851
15852         gnulib-tool: Ensure that long-running tests are executed last.
15853         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15854         running tests after the one for the other tests.
15855
15856 2010-04-02  Bruno Haible  <bruno@clisp.org>
15857
15858         gnulib-tool: Ensure the tests in the main directory are executed first.
15859         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15860         start with the current directory.
15861
15862 2010-04-02  Bruno Haible  <bruno@clisp.org>
15863
15864         Tests for module 'havelib', moved here from GNU gettext.
15865         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15866         modifications.
15867         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15868         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15869         with modifications.
15870         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15871         modifications.
15872         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15873         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15874         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15875         with modifications.
15876         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15877         with modifications.
15878         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15879         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15880         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15881         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15882         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15883         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15884         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15885         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15886         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15887         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15888         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15889         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15890         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15891         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15892         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15893         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15894         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15895         with modifications.
15896         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15897         with modifications.
15898         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15899         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15900         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15901         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15902         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15903         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15904         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15905         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15906         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15907         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15908         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15909         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15910         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15911         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15912         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15913         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15914         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15915         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15916         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15917         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15918         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15919         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15920         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15921         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15922         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15923         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15924         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15925         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15926         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15927         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15928         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15929         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15930         * tests/havelib/rpathx/rpathx.c: New file, from
15931         gettext/autoconf-lib-link.
15932         * tests/havelib/rpathx/Makefile.am: New file, from
15933         gettext/autoconf-lib-link.
15934         * tests/havelib/rpathx/configure.ac: New file, from
15935         gettext/autoconf-lib-link with modifications.
15936         * tests/havelib/rpathy/rpathy.c: New file, from
15937         gettext/autoconf-lib-link.
15938         * tests/havelib/rpathy/Makefile.am: New file, from
15939         gettext/autoconf-lib-link.
15940         * tests/havelib/rpathy/configure.ac: New file, from
15941         gettext/autoconf-lib-link with modifications.
15942         * tests/havelib/rpathz/rpathz.c: New file, from
15943         gettext/autoconf-lib-link.
15944         * tests/havelib/rpathz/Makefile.am: New file, from
15945         gettext/autoconf-lib-link.
15946         * tests/havelib/rpathz/configure.ac: New file, from
15947         gettext/autoconf-lib-link with modifications.
15948         * tests/havelib/rpathlx/usex.c: New file, from
15949         gettext/autoconf-lib-link.
15950         * tests/havelib/rpathlx/Makefile.am: New file, from
15951         gettext/autoconf-lib-link.
15952         * tests/havelib/rpathlx/configure.ac: New file, from
15953         gettext/autoconf-lib-link with modifications.
15954         * tests/havelib/rpathly/usey.c: New file, from
15955         gettext/autoconf-lib-link.
15956         * tests/havelib/rpathly/Makefile.am: New file, from
15957         gettext/autoconf-lib-link.
15958         * tests/havelib/rpathly/configure.ac: New file, from
15959         gettext/autoconf-lib-link with modifications.
15960         * tests/havelib/rpathlz/usez.c: New file, from
15961         gettext/autoconf-lib-link.
15962         * tests/havelib/rpathlz/Makefile.am: New file, from
15963         gettext/autoconf-lib-link.
15964         * tests/havelib/rpathlz/configure.ac: New file, from
15965         gettext/autoconf-lib-link with modifications.
15966         * tests/havelib/rpathlyx/usey.c: New file, from
15967         gettext/autoconf-lib-link.
15968         * tests/havelib/rpathlyx/Makefile.am: New file, from
15969         gettext/autoconf-lib-link.
15970         * tests/havelib/rpathlyx/configure.ac: New file, from
15971         gettext/autoconf-lib-link with modifications.
15972         * tests/havelib/rpathlzyx/usez.c: New file, from
15973         gettext/autoconf-lib-link.
15974         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15975         gettext/autoconf-lib-link.
15976         * tests/havelib/rpathlzyx/configure.ac: New file, from
15977         gettext/autoconf-lib-link with modifications.
15978         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15979         with modifications.
15980
15981 2010-04-02  Bruno Haible  <bruno@clisp.org>
15982
15983         gnulib-tool: Create distributed built sources also for the tests.
15984         * gnulib-tool (func_create_testdir): Also generate distributed built
15985         sources in the tests directory.
15986
15987 2010-04-02  Bruno Haible  <bruno@clisp.org>
15988
15989         gnulib-tool: Obey user's environment variables.
15990         * gnulib-tool (func_create_testdir): When creating built sources,
15991         respect the environment variables for autoconf, automake, etc. given by
15992         the user.
15993
15994 2010-04-02  Bruno Haible  <bruno@clisp.org>
15995
15996         gnulib-tool: Provide the value of --m4-base to modules.
15997         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15998         of gl_m4_base.
15999
16000 2010-04-02  Eric Blake  <eblake@redhat.com>
16001
16002         maint.mk: fix some fallout
16003         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16004         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16005
16006 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16007
16008         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16009         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16010         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16011         (sc_cast_of_x_alloc_return_value): Likewise.
16012         (sc_cast_of_alloca_return_value): Likewise.
16013         (sc_space_tab): Likewise.
16014         (sc_prohibit_atoi_atof): Likewise.
16015         (sc_prohibit_magic_number_exit): Likewise.
16016         (sc_error_exit_success): Likewise.
16017         (sc_file_system): Likewise.
16018         (sc_prohibit_have_config_h): Likewise.
16019         (sc_require_config_h): Likewise.
16020         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16021         (sc_obsolete_symbols): Likewise.
16022         (sc_changelog): Likewise.
16023         (sc_program_name): Likewise.
16024         (sc_the_the): Likewise.
16025         (sc_trailing_blank): Likewise.
16026         (sc_two_space_separator_in_usage): Likewise.
16027         (sc_useless_cpp_parens): Likewise.
16028         (sc_GPL_version): Likewise.
16029         (sc_GFDL_version): Likewise.
16030         (sc_texinfo_acronym): Likewise.
16031         (sc_prohibit_cvs_keyword): Likewise.
16032         (sc_prohibit_stat_st_blocks): Likewise.
16033         (sc_prohibit_S_IS_definition): Likewise.
16034         (sc_redundant_const): Likewise.
16035         (sc_makefile_TAB_only_indentation): Likewise.
16036         (sc_m4_quote_check): Likewise.
16037         (sc_makefile_path_separator_check): Likewise.
16038         (sc_copyright_check): Likewise.
16039         (sc_Wundef_boolean): Likewise.
16040         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16041
16042         maint.mk: match 0 or more whitespace-before-function-call '('
16043         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16044         that have zero or two-and-more spaces between the function name
16045         and the open parenthesis.
16046         (sc_error_message_warn_fatal): Likewise.
16047         (sc_error_message_uppercase): Likewise.
16048         (sc_error_message_period): Likewise.
16049
16050 2010-03-31  Eric Blake  <eblake@redhat.com>
16051
16052         maint.mk: check for [ as well as test
16053         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16054         Based on a libvirt report by Matthias Bolte.
16055
16056         gnumakefile: don't squelch _version output
16057         * top/GNUmakefile (_version): Create one-shot dependency rather
16058         than using $(shell) when version must be regenerated.
16059         (_autoreconf): Run verbosely, by default.
16060
16061         sys_time: avoid compiler warnings
16062         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16063         unconditional, fixing regression from 2010-03-29.
16064         Reported by Simon Josefsson.
16065
16066 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16067
16068         maint.mk: s/_header_without_use/_sc_header_without_use/
16069         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16070         (sc_prohibit_assert_without_use): Use the new name.
16071         (sc_prohibit_close_stream_without_use): Likewise.
16072         (sc_prohibit_getopt_without_use): Likewise.
16073         (sc_prohibit_quotearg_without_use): Likewise.
16074         (sc_prohibit_quote_without_use): Likewise.
16075         (sc_prohibit_long_options_without_use): Likewise.
16076         (sc_prohibit_inttostr_without_use): Likewise.
16077         (sc_prohibit_ignore_value_without_use): Likewise.
16078         (sc_prohibit_error_without_use): Likewise.
16079         (sc_prohibit_xalloc_without_use): Likewise.
16080         (sc_prohibit_hash_without_use): Likewise.
16081         (sc_prohibit_hash_pjw_without_use): Likewise.
16082         (sc_prohibit_safe_read_without_use): Likewise.
16083         (sc_prohibit_argmatch_without_use): Likewise.
16084         (sc_prohibit_canonicalize_without_use): Likewise.
16085         (sc_prohibit_root_dev_ino_without_use): Likewise.
16086         (sc_prohibit_openat_without_use): Likewise.
16087         (sc_prohibit_c_ctype_without_use): Likewise.
16088         (sc_prohibit_signal_without_use): Likewise.
16089         (sc_prohibit_intprops_without_use): Likewise.
16090
16091 2010-03-30  Eric Blake  <eblake@redhat.com>
16092
16093         maint: improve module indicators
16094         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16095         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16096         columns, and avoid extra macro expansion.
16097
16098         fdopendir: work around FreeBSD bug
16099         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16101         * modules/dirent (Makefile.am): Substitute it.
16102         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16103         declaration.
16104         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16105         fix.
16106         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16107
16108 2010-03-29  Bruno Haible  <bruno@clisp.org>
16109
16110         Emit #pragma system_header after the inclusion guard, not before.
16111         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16112         guard that spans the entire file, not before. This enables an
16113         optimization in GCC's preprocessor.
16114         * lib/ctype.in.h: Likewise.
16115         * lib/dirent.in.h: Likewise.
16116         * lib/errno.in.h: Likewise.
16117         * lib/float.in.h: Likewise.
16118         * lib/getopt.in.h: Likewise.
16119         * lib/iconv.in.h: Likewise.
16120         * lib/langinfo.in.h: Likewise.
16121         * lib/locale.in.h: Likewise.
16122         * lib/math.in.h: Likewise.
16123         * lib/netdb.in.h: Likewise.
16124         * lib/netinet_in.in.h: Likewise.
16125         * lib/pty.in.h: Likewise.
16126         * lib/sched.in.h: Likewise.
16127         * lib/se-selinux.in.h: Likewise.
16128         * lib/search.in.h: Likewise.
16129         * lib/spawn.in.h: Likewise.
16130         * lib/stdarg.in.h: Likewise.
16131         * lib/stdint.in.h: Likewise.
16132         * lib/string.in.h: Likewise.
16133         * lib/strings.in.h: Likewise.
16134         * lib/sys_file.in.h: Likewise.
16135         * lib/sys_ioctl.in.h: Likewise.
16136         * lib/sys_time.in.h: Likewise.
16137         * lib/sys_times.in.h: Likewise.
16138         * lib/sys_utsname.in.h: Likewise.
16139         * lib/sys_wait.in.h: Likewise.
16140         * lib/sysexits.in.h: Likewise.
16141         * lib/wctype.in.h: Likewise.
16142
16143 2010-03-28  James Youngman  <jay@gnu.org>
16144
16145         save-cwd: don't leak a file descriptor when the caller execs.
16146         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16147         saved file descriptor.
16148         * modules/save-cwd (Depends-on): Depend on cloexec.
16149
16150 2010-03-29  Bruno Haible  <bruno@clisp.org>
16151
16152         Remove vestiges of fts-lgpl module.
16153         * lib/fts_.h: Assume GNULIB_FTS is 1.
16154         * lib/fts.c: Likewise.
16155         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16156
16157 2010-03-28  Bruno Haible  <bruno@clisp.org>
16158
16159         Fix definition of tests witness macro.
16160         * gnulib-tool (func_import): Fix definition of witness macro.
16161
16162 2010-03-28  Bruno Haible  <bruno@clisp.org>
16163
16164         Fix ioctl's protoype on glibc systems.
16165         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16166         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16167         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16168         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16169         signature. If not, arrange to replace the ioctl function.
16170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16171         REPLACE_IOCTL.
16172         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16173         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16174         Reported by Ludovic Courtès <ludo@gnu.org>.
16175
16176 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16177
16178         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16179         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16180         made it so grep -r --include=GLOB* ... did not work.
16181
16182 2010-03-26  Jim Meyering  <meyering@redhat.com>
16183             Eric Blake  <eblake@redhat.com>
16184
16185         maint.mk: prohibit use of test's -o and -a operators
16186         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16187
16188 2010-03-28  Bruno Haible  <bruno@clisp.org>
16189
16190         Remove unused GNULIB_XYZ macro definitions.
16191         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16192         invocation.
16193
16194 2010-03-28  Bruno Haible  <bruno@clisp.org>
16195
16196         Mark privileged tests modules.
16197         * modules/idpriv-drop-tests (Status): New section.
16198         * modules/idpriv-droptemp-tests (Status): New section.
16199
16200 2010-03-28  Bruno Haible  <bruno@clisp.org>
16201
16202         Split C++ tests into separate tests modules.
16203         * modules/dirent-c++-tests: New file, extracted from
16204         modules/dirent-tests.
16205         * modules/dirent-tests: Depend on it.
16206         * modules/fcntl-h-c++-tests: New file, extracted from
16207         modules/fcntl-h-tests.
16208         * modules/fcntl-h-tests: Depend on it.
16209         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16210         * modules/glob-tests: Depend on it.
16211         * modules/iconv-h-c++-tests: New file, extracted from
16212         modules/iconv-h-tests.
16213         * modules/iconv-h-tests: Depend on it.
16214         * modules/langinfo-c++-tests: New file, extracted from
16215         modules/langinfo-tests.
16216         * modules/langinfo-tests: Depend on it.
16217         * modules/locale-c++-tests: New file, extracted from
16218         modules/locale-tests.
16219         * modules/locale-tests: Depend on it.
16220         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16221         * modules/math-tests: Depend on it.
16222         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16223         * modules/pty-tests: Depend on it.
16224         * modules/search-c++-tests: New file, extracted from
16225         modules/search-tests.
16226         * modules/search-tests: Depend on it.
16227         * modules/signal-c++-tests: New file, extracted from
16228         modules/signal-tests.
16229         * modules/signal-tests: Depend on it.
16230         * modules/spawn-c++-tests: New file, extracted from
16231         modules/spawn-tests.
16232         * modules/spawn-tests: Depend on it.
16233         * modules/stdio-c++-tests: New file, extracted from
16234         modules/stdio-tests.
16235         * modules/stdio-tests: Depend on it.
16236         * modules/stdlib-c++-tests: New file, extracted from
16237         modules/stdlib-tests.
16238         * modules/stdlib-tests: Depend on it.
16239         * modules/string-c++-tests: New file, extracted from
16240         modules/string-tests.
16241         * modules/string-tests: Depend on it.
16242         * modules/sys_ioctl-c++-tests: New file, extracted from
16243         modules/sys_ioctl-tests.
16244         * modules/sys_ioctl-tests: Depend on it.
16245         * modules/sys_select-c++-tests: New file, extracted from
16246         modules/sys_select-tests.
16247         * modules/sys_select-tests: Depend on it.
16248         * modules/sys_socket-c++-tests: New file, extracted from
16249         modules/sys_socket-tests.
16250         * modules/sys_socket-tests: Depend on it.
16251         * modules/sys_stat-c++-tests: New file, extracted from
16252         modules/sys_stat-tests.
16253         * modules/sys_stat-tests: Depend on it.
16254         * modules/sys_time-c++-tests: New file, extracted from
16255         modules/sys_time-tests.
16256         * modules/sys_time-tests: Depend on it.
16257         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16258         * modules/time-tests: Depend on it.
16259         * modules/unistd-c++-tests: New file, extracted from
16260         modules/unistd-tests.
16261         * modules/unistd-tests: Depend on it.
16262         * modules/wchar-c++-tests: New file, extracted from
16263         modules/wchar-tests.
16264         * modules/wchar-tests: Depend on it.
16265         * modules/wctype-c++-tests: New file, extracted from
16266         modules/wctype-tests.
16267         * modules/wctype-tests: Depend on it.
16268         Reported by Simon Josefsson.
16269
16270 2010-03-28  Bruno Haible  <bruno@clisp.org>
16271
16272         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16273         * gnulib-tool (func_exists_module): New function, extracted from
16274         func_verify_module.
16275         (func_verify_module): Use it.
16276         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16277         'foo' only if 'foo' exists.
16278         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16279         module.
16280
16281 2010-03-28  Bruno Haible  <bruno@clisp.org>
16282
16283         gnulib-tool: Add support for special categories of tests.
16284         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16285         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16286         (func_usage): Document them.
16287         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16288         inc_unportable_tests, inc_all_tests): New variables.
16289         (func_acceptable): Consider these variables.
16290         (func_modules_transitive_closure): Make it work when the 'Status' field
16291         consists of multiple words.
16292         (func_import): Store and restore the values of inc_cxx_tests,
16293         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16294         inc_all_tests in gnulib-comp.m4.
16295         (func_create_testdir): Set inc_all_tests to true.
16296         * doc/gnulib.texi (Extra tests modules): New section.
16297         Suggested by Jim Meyering.
16298
16299 2010-03-28  Bruno Haible  <bruno@clisp.org>
16300
16301         ansi-c++-opt: Allow turning off the C++ build by default.
16302         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16303         gl_CXX_CHOICE_DEFAULT_NO is defined.
16304         Requested by Eric Blake.
16305
16306 2010-03-28  Bruno Haible  <bruno@clisp.org>
16307
16308         unistd: Avoid #define replacements in C++ mode.
16309         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16310         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16311         setsockopt, shutdown, select): In C++, attach a warning to the function
16312         if possible, rather than #defining the symbol to a dysfunctional alias.
16313         Reported by John W. Eaton <jwe@gnu.org>.
16314
16315 2010-03-28  Bruno Haible  <bruno@clisp.org>
16316
16317         Fix link errors on mingw.
16318         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16319         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16320         $(LIBSOCKET).
16321         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16322         $(LIBSOCKET).
16323
16324 2010-03-28  Bruno Haible  <bruno@clisp.org>
16325             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16326
16327         lib-ignore: Determine different options for different compilers.
16328         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16329         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16330         Add comments.
16331         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16332         * NEWS: Mention the change.
16333
16334 2010-03-27  Bruno Haible  <bruno@clisp.org>
16335
16336         Remove unused GNULIB_XYZ macro definitions.
16337         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16338         * modules/fseek (configure.ac): Likewise.
16339         * modules/ioctl (configure.ac): Likewise.
16340         * modules/open (configure.ac): Likewise.
16341         * modules/stdlib-safer (configure.ac): Likewise.
16342
16343 2010-03-27  Bruno Haible  <bruno@clisp.org>
16344
16345         Add a remark about certain modules.
16346         * modules/malloc (Comment): New section.
16347         * modules/realloc (Comment): Likewise.
16348         * modules/sigpipe (Comment): Likewise.
16349
16350 2010-03-27  Bruno Haible  <bruno@clisp.org>
16351
16352         Resolve conflict between the two kinds of module indicators.
16353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16354         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16355         * modules/canonicalize (configure.ac): Invoke
16356         gl_MODULE_INDICATOR_FOR_TESTS.
16357         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16358         GNULIB_XYZ.
16359         * tests/test-dirent-c++.cc: Likewise.
16360         * tests/test-dirent-safer.c: Likewise.
16361         * tests/test-dup2.c: Likewise.
16362         * tests/test-fchdir.c: Likewise.
16363         * tests/test-fcntl-h-c++.cc: Likewise.
16364         * tests/test-getopt.c: Likewise.
16365         * tests/test-getopt.h: Likewise.
16366         * tests/test-langinfo-c++.cc: Likewise.
16367         * tests/test-locale-c++.cc: Likewise.
16368         * tests/test-math-c++.cc: Likewise.
16369         * tests/test-pty-c++.cc: Likewise.
16370         * tests/test-search-c++.cc: Likewise.
16371         * tests/test-signal-c++.cc: Likewise.
16372         * tests/test-spawn-c++.cc: Likewise.
16373         * tests/test-stdio-c++.cc: Likewise.
16374         * tests/test-stdlib-c++.cc: Likewise.
16375         * tests/test-string-c++.cc: Likewise.
16376         * tests/test-sys_ioctl-c++.cc: Likewise.
16377         * tests/test-sys_select-c++.cc: Likewise.
16378         * tests/test-sys_socket-c++.cc: Likewise.
16379         * tests/test-sys_stat-c++.cc: Likewise.
16380         * tests/test-sys_time-c++.cc: Likewise.
16381         * tests/test-time-c++.cc: Likewise.
16382         * tests/test-unistd-c++.cc: Likewise.
16383         * tests/test-wchar-c++.cc: Likewise.
16384         * tests/uninorm/test-u8-nfc.c: Likewise.
16385         * tests/uninorm/test-u8-nfd.c: Likewise.
16386         * tests/uninorm/test-u8-nfkc.c: Likewise.
16387         * tests/uninorm/test-u8-nfkd.c: Likewise.
16388         * tests/uninorm/test-u16-nfc.c: Likewise.
16389         * tests/uninorm/test-u16-nfd.c: Likewise.
16390         * tests/uninorm/test-u16-nfkc.c: Likewise.
16391         * tests/uninorm/test-u16-nfkd.c: Likewise.
16392         * tests/uninorm/test-u32-nfc.c: Likewise.
16393         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16394         * tests/uninorm/test-u32-nfd.c: Likewise.
16395         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16396         * tests/uninorm/test-u32-nfkc.c: Likewise.
16397         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16398         * tests/uninorm/test-u32-nfkd.c: Likewise.
16399         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16400         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16401
16402 2010-03-27  Bruno Haible  <bruno@clisp.org>
16403
16404         Distinguish two kinds of module indicators.
16405         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16406         gl_MODULE_INDICATOR.
16407         (gl_MODULE_INDICATOR): New macro.
16408         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16409         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16410         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16411         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16412         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16413         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16414         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16415         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16416         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16417         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16418         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16419         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16422         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16424         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16425         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16426         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16427         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16428         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16429         * modules/cloexec (configure.ac): Likewise.
16430         * modules/getopt-gnu (configure.ac): Likewise.
16431         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16432         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16433         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16434         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16435
16436 2010-03-27  Bruno Haible  <bruno@clisp.org>
16437
16438         New module description field 'Comment'.
16439         * gnulib-tool: New option --extract-comment.
16440         (func_usage): Document it.
16441         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16442         (func_get_comment): New function.
16443         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16444
16445 2010-03-27  Bruno Haible  <bruno@clisp.org>
16446
16447         Addendum to 2010-02-07 commit.
16448         * gnulib-tool (func_usage): Document --extract-applicability option.
16449
16450 2010-03-27  Bruno Haible  <bruno@clisp.org>
16451
16452         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16453         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16454         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16455         rather than link errors.
16456
16457 2010-03-27  Bruno Haible  <bruno@clisp.org>
16458
16459         Avoid side effects from tests-related modules on the compilation of lib.
16460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16461         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16462         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16463         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16464         macro.
16465         (func_import): Define a witness macro. Assign it a value that depends
16466         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16467         tests-related modules.
16468         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16469         Reported by Jim Meyering.
16470
16471 2010-03-27  Bruno Haible  <bruno@clisp.org>
16472
16473         Factorize common .m4 code.
16474         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16475         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16476         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16477         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16479         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16480         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16481         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16482         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16483         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16484         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16485         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16486         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16488         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16489         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16490         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16491         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16493         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16494         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16495         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16496         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16497         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16498         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16500         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16501         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16503         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16504         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16505         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16506
16507 2010-03-27  Bruno Haible  <bruno@clisp.org>
16508
16509         Fix a compilation error on Cygwin with g++ >= 4.3.
16510         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16511         if it is undefined or if we alias it to chmod.
16512         (lstat): Don't warn about the use of this function if it is undefined
16513         or if we alias it to stat.
16514         Reported by Simon Josefsson.
16515
16516 2010-03-27  Bruno Haible  <bruno@clisp.org>
16517
16518         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16519         * modules/getlogin (configure.ac): Update.
16520
16521         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16522         * modules/getlogin_r (configure.ac): Update.
16523
16524         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16526         * modules/inet_ntop (configure.ac): Update.
16527
16528         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16529         * modules/inet_pton (configure.ac): Update.
16530
16531         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16532         * modules/mbslen (configure.ac): Update.
16533
16534         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16535         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16536         * modules/forkpty (configure.ac): Update.
16537         * modules/openpty (configure.ac): Update.
16538
16539 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16540
16541         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16542         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16543
16544 2010-03-25  Eric Blake  <eblake@redhat.com>
16545
16546         maint: use pragma consistently across replacement headers
16547         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16548         * lib/dirent.in.h (system_header): Likewise.
16549         * lib/errno.in.h (system_header): Likewise.
16550         * lib/float.in.h (system_header): Likewise.
16551         * lib/getopt.in.h (system_header): Likewise.
16552         * lib/iconv.in.h (system_header): Likewise.
16553         * lib/inttypes.in.h (system_header): Likewise.
16554         * lib/langinfo.in.h (system_header): Likewise.
16555         * lib/locale.in.h (system_header): Likewise.
16556         * lib/math.in.h (system_header): Likewise.
16557         * lib/netdb.in.h (system_header): Likewise.
16558         * lib/netinet_in.in.h (system_header): Likewise.
16559         * lib/pty.in.h (system_header): Likewise.
16560         * lib/sched.in.h (system_header): Likewise.
16561         * lib/se-selinux.in.h (system_header): Likewise.
16562         * lib/search.in.h (system_header): Likewise.
16563         * lib/spawn.in.h (system_header): Likewise.
16564         * lib/stdarg.in.h (system_header): Likewise.
16565         * lib/stdint.in.h (system_header): Likewise.
16566         * lib/string.in.h (system_header): Likewise.
16567         * lib/strings.in.h (system_header): Likewise.
16568         * lib/sys_file.in.h (system_header): Likewise.
16569         * lib/sys_ioctl.in.h (system_header): Likewise.
16570         * lib/sys_socket.in.h (system_header): Likewise.
16571         * lib/sys_times.in.h (system_header): Likewise.
16572         * lib/sys_utsname.in.h (system_header): Likewise.
16573         * lib/sys_wait.in.h (system_header): Likewise.
16574         * lib/sysexits.in.h (system_header): Likewise.
16575         * lib/unistd.in.h (system_header): Likewise.
16576         * lib/wctype.in.h (system_header): Likewise.
16577
16578         arpa/inet: fix mingw compilation warning
16579         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16580         Reported by Matthew Bolte.
16581
16582 2010-03-25  Bruno Haible  <bruno@clisp.org>
16583
16584         Avoid collision between gnulib wrapper and libintl wrapper.
16585         * lib/printf.c (printf): Don't define if a printf wrapper is already
16586         defined in intl/printf.c.
16587         Reported by Michel Boaventura <michel@michelboaventura.com>.
16588
16589 2010-03-25  Bruno Haible  <bruno@clisp.org>
16590
16591         Use ANSI C.
16592         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16593
16594 2010-03-25  Bruno Haible  <bruno@clisp.org>
16595
16596         Minor formatting changes.
16597         * lib/acosl.c: Insert space before function argument list.
16598         * lib/argz.c: Likewise.
16599         * lib/asinl.c: Likewise.
16600         * lib/expl.c: Likewise.
16601         * lib/gen-uni-tables.c: Likewise.
16602         * lib/gettext.h: Likewise.
16603         * lib/glthread/lock.h: Likewise.
16604         * lib/tanl.c: Likewise.
16605         * lib/uniname/uniname.c: Likewise.
16606         * tests/test-idpriv-drop.c: Likewise.
16607         * tests/test-idpriv-droptemp.c: Likewise.
16608         * tests/test-lock.c: Likewise.
16609         * tests/test-tls.c: Likewise.
16610         * lib/argp-help.c: Insert space before function-like macro argument
16611         list.
16612         * lib/memcmp.c: Likewise.
16613         * tests/test-base64.c: Likewise.
16614         * lib/localename.c: Insert space before sizeof's argument list.
16615         * lib/safe-alloc.h: Likewise.
16616         * lib/file-set.h: Insert space before macro argument list.
16617         * tests/test-argp.c: Likewise.
16618         * lib/argp-namefrob.h: Insert space before function parameter list.
16619         * lib/getaddrinfo.c: Likewise.
16620         * lib/netdb.in.h: Likewise.
16621         * lib/parse-duration.h: Likewise.
16622         * lib/parse-duration.c: Likewise.
16623         * lib/poll.c: Likewise.
16624         * lib/select.c: Likewise.
16625         * lib/trim.h: Likewise.
16626         * tests/test-usleep.c: Likewise.
16627         * lib/ldexpl.c: Insert space before function parameter list and before
16628         function argument list.
16629         * lib/logl.c: Likewise.
16630         * lib/sqrtl.c: Likewise.
16631         * lib/trim.c: Likewise.
16632         * lib/cosl.c: Use GNU style indentation. Insert space before function
16633         argument list.
16634         * lib/sinl.c: Likewise.
16635         * lib/tsearch.c: Insert space after 'for'.
16636         Reported by Jim Meyering.
16637
16638 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16639
16640         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16641         config header before grepping, as it's not present before
16642         autoreconf/configure are run.  Reported by Simon Josefsson.
16643
16644 2010-03-23  Bruno Haible  <bruno@clisp.org>
16645
16646         pt_chown: Make it work with automake < 1.11.
16647         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16648         Reported by Simon Josefsson.
16649
16650 2010-03-23  Bruno Haible  <bruno@clisp.org>
16651
16652         pt_chown: Don't depend on GPLed modules.
16653         * lib/pt_chown.c: Don't include idpriv.h.
16654         (main): Don't drop privileges.
16655         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16656         Reported by Simon Josefsson.
16657
16658 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16659
16660         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16661         suggestions from karl@freefriends.org (Karl Berry).
16662
16663 2010-03-22  Eric Blake  <eblake@redhat.com>
16664
16665         gethostname: further tweaks
16666         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16667         are overriding gethostname.
16668         Suggested by Bruno Haible.
16669
16670 2010-03-21  Bruno Haible  <bruno@clisp.org>
16671
16672         Fix comments.
16673         * lib/forkpty.c (rpl_forkpty): Fix comment.
16674         * lib/openpty.c (rpl_openpty): Likewise.
16675         Reported by Eric Blake.
16676
16677 2010-03-22  Eric Blake  <eblake@redhat.com>
16678
16679         gethostname: fix build on mingw
16680         * lib/unistd.in.h (includes): Work around fact that mingw
16681         <winsock2.h> re-includes <unistd.h>, by avoiding any
16682         redeclarations if we are being included by <winsock2.h>.
16683         Reported by Matthias Bolte.
16684
16685 2010-03-21  Bruno Haible  <bruno@clisp.org>
16686
16687         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16688         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16689         modifications.
16690         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16691         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16692         provide the replacement.
16693         * modules/forkpty (Depends-on): Add openpty, login_tty.
16694         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16695         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16696         * doc/glibc-functions/forkpty.texi: More supported platforms.
16697         * config/srclist.txt: Add forkpty.c (commented).
16698
16699 2010-03-21  Bruno Haible  <bruno@clisp.org>
16700
16701         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16702         (Makefile.am): Verify that PTY_LIB is defined.
16703
16704         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16705
16706 2010-03-21  Bruno Haible  <bruno@clisp.org>
16707
16708         Tests for module 'login_tty'.
16709         * modules/login_tty-tests: New file.
16710         * tests/test-login_tty.c: New file.
16711
16712         New module 'login_tty'.
16713         * lib/login_tty.c: New file.
16714         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16715         * modules/login_tty: New file.
16716         * doc/glibc-functions/login_tty.texi: Mention the new module.
16717
16718 2010-03-21  Bruno Haible  <bruno@clisp.org>
16719
16720         login_tty: Documentation.
16721         * doc/glibc-functions/login_tty.texi: New file.
16722         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16723
16724 2010-03-21  Bruno Haible  <bruno@clisp.org>
16725
16726         pty: Consistent macro naming.
16727         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16728         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16729         * modules/pty (configure.ac): Update.
16730
16731 2010-03-21  Bruno Haible  <bruno@clisp.org>
16732
16733         Tests for openpty: Make stricter.
16734         * tests/test-openpty.c (main): Add test of canonical processing and
16735         erase.
16736         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16737
16738         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16739         * lib/openpty.c (openpty): New replacement function.
16740         * lib/pty.in.h: Include <termios.h>.
16741         (openpty): Update declaration. Add comments.
16742         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16743         is not declared, arrange to provide the replacement. Check for _getpty
16744         and posix_openpt.
16745         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16746         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16747         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16748         * modules/pty-tests (test_pty_c___LDADD): New variable.
16749         * doc/glibc-functions/openpty.texi: More supported platforms.
16750
16751 2010-03-21  Bruno Haible  <bruno@clisp.org>
16752
16753         setenv: Tweaks.
16754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16755         the test program.
16756         * doc/posix-functions/setenv.texi: Update platforms list.
16757
16758 2010-03-21  Bruno Haible  <bruno@clisp.org>
16759
16760         New module 'unlockpt'.
16761         * lib/unlockpt.c: New file, from glibc with modifications.
16762         * m4/unlockpt.m4: New file.
16763         * modules/unlockpt: New file.
16764         * lib/stdlib.in.h (unlockpt): New declaration.
16765         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16766         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16767         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16768         HAVE_UNLOCKPT.
16769         * doc/posix-functions/unlockpt.texi: Mention the new module.
16770         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16771         * config/srclist.txt: Add unlockpt.c (commented).
16772
16773 2010-03-21  Jim Meyering  <meyering@redhat.com>
16774
16775         maint.mk: prohibit inclusion of "intprops.h" without use
16776         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16777
16778 2010-03-21  Bruno Haible  <bruno@clisp.org>
16779
16780         New module 'grantpt'.
16781         * lib/grantpt.c: New file, from glibc with modifications.
16782         * m4/grantpt.m4: New file.
16783         * modules/grantpt: New file.
16784         * lib/stdlib.in.h (grantpt): New declaration.
16785         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16786         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16787         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16788         HAVE_GRANTPT.
16789         * doc/posix-functions/grantpt.texi: Mention the new module.
16790         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16791         * config/srclist.txt: Add grantpt.c (commented).
16792
16793 2010-03-21  Bruno Haible  <bruno@clisp.org>
16794
16795         New module 'pt_chown'.
16796         * lib/pt_chown.c: New file, from glibc with modifications.
16797         * lib/pty-private.h: New file, from glibc with modifications.
16798         * modules/pt_chown: New file.
16799         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16800
16801 2010-03-21  Bruno Haible  <bruno@clisp.org>
16802
16803         Tests for module 'ptsname'.
16804         * modules/ptsname-tests: New file.
16805         * tests/test-ptsname.c: New file.
16806
16807         New module 'ptsname'.
16808         * lib/ptsname.c: New file, from glibc with modifications.
16809         * m4/ptsname.m4: New file.
16810         * modules/ptsname: New file.
16811         * lib/stdlib.in.h (ptsname): New declaration.
16812         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16813         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16814         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16815         HAVE_PTSNAME.
16816         * doc/posix-functions/ptsname.texi: Mention the new module.
16817         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16818         * config/srclist.txt: Add ptsname.c (commented).
16819
16820 2010-03-21  Bruno Haible  <bruno@clisp.org>
16821
16822         Tests for module 'ttyname_r'.
16823         * modules/ttyname_r-tests: New file.
16824         * tests/test-ttyname_r.c: New file.
16825
16826         New module 'ttyname_r'.
16827         * lib/ttyname_r.c: New file.
16828         * m4/ttyname_r.m4: New file.
16829         * modules/ttyname_r: New file.
16830         * lib/unistd.in.h (ttyname_r): New declaration.
16831         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16832         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16833         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16834         HAVE_TTYNAME_R.
16835         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16836         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16837
16838 2010-03-20  Bruno Haible  <bruno@clisp.org>
16839
16840         signal: Undefine macro definitions in C++ mode.
16841         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16842         sigfillset): Undefine macro definitions from the system header in C++
16843         mode.
16844         Reported by John W. Eaton <jwe@gnu.org>.
16845
16846 2010-03-20  Bruno Haible  <bruno@clisp.org>
16847
16848         Ensure no #include statements inside extern "C" { ... }.
16849         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16850         contain #include statements.
16851         * lib/time.in.h: Likewise.
16852
16853 2010-03-20  Bruno Haible  <bruno@clisp.org>
16854
16855         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16856         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16857         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16858         Reported by John W. Eaton <jwe@gnu.org>.
16859
16860 2010-03-20  Bruno Haible  <bruno@clisp.org>
16861
16862         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16863         Reported by Jim Meyering.
16864
16865 2010-03-20  Bruno Haible  <bruno@clisp.org>
16866
16867         pipe: Set errno upon failure.
16868         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16869         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16870         errno value in error message.
16871
16872 2010-03-20  Bruno Haible  <bruno@clisp.org>
16873             Jim Meyering  <meyering@redhat.com>
16874
16875         lchown: Avoid "unused variable" warning.
16876         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16877
16878 2010-03-20  Bruno Haible  <bruno@clisp.org>
16879
16880         Work around unlink() bug on MacOS X 10.5.6.
16881         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16882         attempting to unlink a parent directory.
16883         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16884         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16885         activate for the replacement function.
16886         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16887
16888 2010-03-20  Bruno Haible  <bruno@clisp.org>
16889
16890         Fix link errors on Solaris 8.
16891         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16892         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16893
16894 2010-03-19  Jim Meyering  <meyering@redhat.com>
16895
16896         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16897         The _LIBC implementation of build_range_exp correctly honors the
16898         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16899         However, the non-_LIBC implementation would ignore that syntax-bit
16900         flag and return REG_ERANGE unconditionally.
16901         This change makes it honor that flag.
16902         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16903         Make two pointer parameters "const".
16904         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16905         (parse_bracket_exp): Update caller.
16906
16907         regex.m4: correct the reversed range endpoint ([b-a]) test
16908         * m4/regex.m4: When requiring that [b-a] evoke failure,
16909         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16910         test pass once again for x86-based systems.
16911
16912 2010-03-19  Bruno Haible  <bruno@clisp.org>
16913
16914         scandir: Fix link error on Solaris 8.
16915         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16916         macros.
16917
16918 2010-03-19  Bruno Haible  <bruno@clisp.org>
16919
16920         getusershell: Fix documentation.
16921         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16922         module.
16923         * doc/glibc-functions/setusershell.texi: Likewise.
16924
16925         getusershell: Provide declaration, missing on Solaris 9.
16926         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16927         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16928         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16929         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16931         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16932         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16933         HAVE_GETUSERSHELL.
16934         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16935
16936 2010-03-19  Bruno Haible  <bruno@clisp.org>
16937
16938         wctype: Provide iswblank function.
16939         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16940         exists and is fine.
16941         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16942         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16943         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16944         * doc/posix-functions/iswblank.texi: Update.
16945
16946 2010-03-19  Bruno Haible  <bruno@clisp.org>
16947
16948         Tests of module 'pty' in C++ mode.
16949         * modules/pty-tests: New file.
16950         * tests/test-pty-c++.cc: New file.
16951         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16952
16953 2010-03-19  Eric Blake  <eblake@redhat.com>
16954
16955         logb: fix documentation
16956         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16957         1.5 declaration bug.
16958
16959         forkpty, openpty: prefer glibc's const-safe prototype
16960         * lib/forkpty.c (rpl_forkpty): New file.
16961         * lib/openpty.c (rpl_openpty): Likewise.
16962         * modules/forkpty (Files): Distribute it.
16963         * modules/openpty (Files): Likewise.
16964         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16965         check...
16966         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16967         replacement for for non-const BSD signature.
16968         * modules/pty (Makefile.am): Substitute witnesses.
16969         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16970         * tests/test-forkpty.c: Update signature check.
16971         * tests/test-openpty.c: Likewise.
16972         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16973         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16974
16975         forkpty, openpty: split functions into new modules
16976         * modules/pty (Makefile.am): Substitute new witnesses.
16977         (Libraries): Move library detection...
16978         * modules/forkpty: ...into new module.
16979         * modules/openpty: Another new module.
16980         * modules/pty-tests: Rename and split...
16981         * modules/forkpty-tests: ...to this...
16982         * modules/openpty-tests: ...and this.
16983         * tests/test-pty.c: Rename and split...
16984         * tests/test-forkpty.c: ...to this...
16985         * tests/test-openpty.c: ...and this.
16986         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16987         (gl_PTY): Split library searching...
16988         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16989         (gl_FORKPTY, gl_OPENPTY): New macros.
16990         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16991         * NEWS: Mention the split.
16992         * MODULES.html.sh (Misc): Document the modules.
16993         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16994         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16995
16996         pty: improve replacement header
16997         * lib/pty.in.h: New file.
16998         * modules/pty (Files): Ship it.
16999         (Makefile.am): Always build replacement.
17000         * m4/pty.m4: Rename...
17001         * m4/pty_h.m4: ...to this.
17002         (gl_PTY): Modernize setting of witness macros; update check of
17003         forkpty to take proper advantage of cache.
17004         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17005
17006         getopt: avoid compiler warning
17007         * lib/getopt.c (attribute_hidden): Remove unused macro.
17008
17009 2010-03-18  Bruno Haible  <bruno@clisp.org>
17010
17011         Fix link errors on Solaris 8.
17012         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17013         * modules/search-tests (test_search_c___LDADD): Likewise.
17014         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17015         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17016         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17017         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17018         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17019         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17020         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17021
17022 2010-03-18  Bruno Haible  <bruno@clisp.org>
17023
17024         Fix bug introduced on 2010-03-14.
17025         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17026         (gl_SPAWN_H): Require it.
17027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17028         Reported by Simon Josefsson.
17029
17030 2010-03-18  Bruno Haible  <bruno@clisp.org>
17031
17032         Fix typo introduced on 2009-12-31.
17033         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17034         posix_spawn_file_actions_adddup2.
17035
17036 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17037         and Eric Blake  <eblake@redhat.com>
17038
17039         test-vc-list-files-git: make more robust
17040         * tests/test-vc-list-files-git.sh: Unset problematic environment
17041         variables.  Chain commands together.
17042
17043 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17044
17045         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17046         `AC_CHECK_DECL' invocation.
17047
17048 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17049
17050         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17051         appears before executable statements. Suggested by Petr Sumbera
17052         <Petr.Sumbera@Sun.COM>.
17053
17054 2010-03-14  Bruno Haible  <bruno@clisp.org>
17055
17056         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17057         portability problems. Instead use a simpler test.
17058         (main): Check that invalid arguments are rejected only on Linux.
17059
17060 2010-03-14  Bruno Haible  <bruno@clisp.org>
17061
17062         Fix bug introduced on 2009-12-31.
17063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17064         gl_PREREQ_SYS_H_WINSOCK2 always.
17065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17066         SYS_SOCKET_H variable.
17067         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17068         Update comments.
17069         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17070         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17071         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17073         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17074
17075 2010-03-14  Bruno Haible  <bruno@clisp.org>
17076
17077         Fix values returned by sinl, cosl.
17078         * lib/trigl.h: Add specification comments.
17079         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17080         that combines the values from the precomputed table with the values of
17081         the Chebyshev polynomials.
17082
17083 2010-03-14  Bruno Haible  <bruno@clisp.org>
17084
17085         Fix compilation error when modules 'posix_spawn[p]' are not used.
17086         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17088
17089 2010-03-14  Bruno Haible  <bruno@clisp.org>
17090
17091         Fix compilation error on mingw when module 'time_r' is not used.
17092         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17093         is 1.
17094         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17095         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17096         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17097         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17098
17099 2010-03-14  Bruno Haible  <bruno@clisp.org>
17100
17101         Fix compilation error with Sun C.
17102         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17103         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17104         instead of GCC specific ULONG_LONG_MAX.
17105         * lib/xstrtoll.c: Likewise.
17106         * lib/xstrtoull.c: Likewise.
17107
17108 2010-03-13  Bruno Haible  <bruno@clisp.org>
17109
17110         Allow the user to disable C++ code and tests.
17111         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17112         (gl_PROG_ANSI_CXX): Require it.
17113
17114 2010-03-13  Bruno Haible  <bruno@clisp.org>
17115
17116         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17117         cases.
17118
17119 2010-03-13  Bruno Haible  <bruno@clisp.org>
17120
17121         Test that gnulib does not break the standard C++ headers.
17122         * tests/test-locale-c++2.cc: New file.
17123         * modules/locale-tests (Files): Add it.
17124         (Makefile.am): Compile it for test-locale-c++.
17125         * tests/test-math-c++2.cc: New file.
17126         * modules/math-tests (Files): Add it.
17127         (Makefile.am): Compile it for test-math-c++.
17128         * tests/test-signal-c++2.cc: New file.
17129         * modules/signal-tests (Files): Add it.
17130         (Makefile.am): Compile it for test-signal-c++.
17131         * tests/test-stdio-c++2.cc: New file.
17132         * modules/stdio-tests (Files): Add it.
17133         (Makefile.am): Compile it for test-stdio-c++.
17134         * tests/test-stdlib-c++2.cc: New file.
17135         * modules/stdlib-tests (Files): Add it.
17136         (Makefile.am): Compile it for test-stdlib-c++.
17137         * tests/test-string-c++2.cc: New file.
17138         * modules/string-tests (Files): Add it.
17139         (Makefile.am): Compile it for test-string-c++.
17140         * tests/test-time-c++2.cc: New file.
17141         * modules/time-tests (Files): Add it.
17142         (Makefile.am): Compile it for test-time-c++.
17143         Reported by John W. Eaton <jwe@gnu.org>.
17144
17145 2010-03-13  Bruno Haible  <bruno@clisp.org>
17146
17147         * gnulib-tool (func_usage): Clarify which options are available for
17148         --create-testdir and --create-megatestdir.
17149
17150 2010-03-13  Bruno Haible  <bruno@clisp.org>
17151
17152         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17153         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17154         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17155         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17156         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17157         when appropriate.
17158         Reported by Jim Meyering.
17159
17160 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17161
17162         * gnulib-tool (func_import): Explain origin of code.
17163
17164 2010-03-12  Bruno Haible  <bruno@clisp.org>
17165
17166         Fix problem with automake's definition of CXXLINK.
17167         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17168         Reported by Simon Josefsson and Ludovic Courtès.
17169
17170 2010-03-12  Bruno Haible  <bruno@clisp.org>
17171
17172         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17173         stable releases.
17174
17175 2010-03-11  Bruno Haible  <bruno@clisp.org>
17176
17177         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17178         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17179         whether the system provides one variant or multiple variants of the
17180         function.
17181         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17182         C++ compilers.
17183         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17184         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17185         Reported by Jim Meyering.
17186
17187 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17188
17189         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17190
17191 2010-03-08  Bruno Haible  <bruno@clisp.org>
17192
17193         gnulib-tool: Add support for --libtool in --create-testdir.
17194         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17195         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17196
17197 2010-03-08  Eric Blake  <eblake@redhat.com>
17198
17199         gnulib-tool.texi: mention possibility of git submodule
17200         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17201         submodules.
17202         * doc/.gitignore: Ignore another generated file.
17203
17204 2010-03-08  Karl Berry  <karl@gnu.org>
17205
17206         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17207         of committing gnulib files while skipping others.
17208
17209 2010-03-07  Bruno Haible  <bruno@clisp.org>
17210
17211         Tests of module 'wctype' in C++ mode.
17212         * tests/test-wctype-c++.cc: New file.
17213         * modules/wctype-tests (Files): Add it and tests/signature.h.
17214         (Depends-on): Add ansi-c++-opt.
17215         (Makefile.am): Arrange to compile and run test-wctype-c++.
17216
17217         Tests of module 'wchar' in C++ mode.
17218         * tests/test-wchar-c++.cc: New file.
17219         * modules/wchar-tests (Files): Add it and tests/signature.h.
17220         (Depends-on): Add ansi-c++-opt.
17221         (Makefile.am): Arrange to compile and run test-wchar-c++.
17222         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17223         gl_MODULE_INDICATOR.
17224
17225         Tests of module 'unistd' in C++ mode.
17226         * tests/test-unistd-c++.cc: New file.
17227         * modules/unistd-tests (Files): Add it and tests/signature.h.
17228         (Depends-on): Add ansi-c++-opt.
17229         (Makefile.am): Arrange to compile and run test-unistd-c++.
17230         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17231         gl_MODULE_INDICATOR.
17232
17233         Tests of module 'time' in C++ mode.
17234         * tests/test-time-c++.cc: New file.
17235         * modules/time-tests (Files): Add it and tests/signature.h.
17236         (Depends-on): Add ansi-c++-opt.
17237         (Makefile.am): Arrange to compile and run test-time-c++.
17238         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17239
17240         Tests of module 'sys_time' in C++ mode.
17241         * tests/test-sys_time-c++.cc: New file.
17242         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17243         (Depends-on): Add ansi-c++-opt.
17244         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17245         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17246         gl_MODULE_INDICATOR.
17247
17248         Tests of module 'sys_stat' in C++ mode.
17249         * tests/test-sys_stat-c++.cc: New file.
17250         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17251         (Depends-on): Add ansi-c++-opt.
17252         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17253         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17254         gl_MODULE_INDICATOR.
17255
17256         Tests of module 'sys_socket' in C++ mode.
17257         * tests/test-sys_socket-c++.cc: New file.
17258         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17259         (Depends-on): Add ansi-c++-opt.
17260         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17261         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17262         gl_MODULE_INDICATOR.
17263
17264         Tests of module 'sys_select' in C++ mode.
17265         * tests/test-sys_select-c++.cc: New file.
17266         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17267         (Depends-on): Add ansi-c++-opt.
17268         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17269         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17270         gl_MODULE_INDICATOR.
17271
17272         Tests of module 'sys_ioctl' in C++ mode.
17273         * tests/test-sys_ioctl-c++.cc: New file.
17274         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17275         (Depends-on): Add ansi-c++-opt.
17276         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17278         gl_MODULE_INDICATOR.
17279
17280         Tests of module 'string' in C++ mode.
17281         * tests/test-string-c++.cc: New file.
17282         * modules/string-tests (Files): Add it and tests/signature.h.
17283         (Depends-on): Add ansi-c++-opt.
17284         (Makefile.am): Arrange to compile and run test-string-c++.
17285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17286         gl_MODULE_INDICATOR.
17287
17288         Tests of module 'stdlib' in C++ mode.
17289         * tests/test-stdlib-c++.cc: New file.
17290         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17291         (Depends-on): Add ansi-c++-opt.
17292         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17293         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17294         gl_MODULE_INDICATOR.
17295
17296         Tests of module 'stdio' in C++ mode.
17297         * tests/test-stdio-c++.cc: New file.
17298         * modules/stdio-tests (Files): Add it and tests/signature.h.
17299         (Depends-on): Add ansi-c++-opt.
17300         (Makefile.am): Arrange to compile and run test-stdio-c++.
17301         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17302         gl_MODULE_INDICATOR.
17303
17304         Tests of module 'spawn' in C++ mode.
17305         * tests/test-spawn-c++.cc: New file.
17306         * modules/spawn-tests (Files): Add it and tests/signature.h.
17307         (Depends-on): Add ansi-c++-opt.
17308         (Makefile.am): Arrange to compile and run test-spawn-c++.
17309         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17310         gl_MODULE_INDICATOR.
17311
17312         Tests of module 'signal' in C++ mode.
17313         * tests/test-signal-c++.cc: New file.
17314         * modules/signal-tests (Files): Add it and tests/signature.h.
17315         (Depends-on): Add ansi-c++-opt.
17316         (Makefile.am): Arrange to compile and run test-signal-c++.
17317         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17318         gl_MODULE_INDICATOR.
17319
17320         Tests of module 'search' in C++ mode.
17321         * tests/test-search-c++.cc: New file.
17322         * modules/search-tests (Files): Add it and tests/signature.h.
17323         (Depends-on): Add ansi-c++-opt.
17324         (Makefile.am): Arrange to compile and run test-search-c++.
17325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17326         gl_MODULE_INDICATOR.
17327
17328         Tests of module 'math' in C++ mode.
17329         * tests/test-math-c++.cc: New file.
17330         * modules/math-tests (Files): Add it and tests/signature.h.
17331         (Depends-on): Add ansi-c++-opt.
17332         (Makefile.am): Arrange to compile and run test-math-c++.
17333         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17334
17335         Tests of module 'locale' in C++ mode.
17336         * tests/test-locale-c++.cc: New file.
17337         * modules/locale-tests (Files): Add it and tests/signature.h.
17338         (Depends-on): Add ansi-c++-opt.
17339         (Makefile.am): Arrange to compile and run test-locale-c++.
17340         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17341         gl_MODULE_INDICATOR.
17342
17343         Tests of module 'langinfo' in C++ mode.
17344         * tests/test-langinfo-c++.cc: New file.
17345         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17346         (Depends-on): Add ansi-c++-opt.
17347         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17348         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17349         gl_MODULE_INDICATOR.
17350
17351         Tests of module 'iconv-h' in C++ mode.
17352         * tests/test-iconv-h-c++.cc: New file.
17353         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17354         (Depends-on): Add ansi-c++-opt.
17355         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17356
17357         Tests of module 'glob' in C++ mode.
17358         * tests/test-glob-c++.cc: New file.
17359         * modules/glob-tests (Files): Add it.
17360         (Depends-on): Add ansi-c++-opt.
17361         (Makefile.am): Arrange to compile and run test-glob-c++.
17362
17363         Tests of module 'fcntl-h' in C++ mode.
17364         * tests/test-fcntl-h-c++.cc: New file.
17365         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17366         (Depends-on): Add ansi-c++-opt.
17367         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17368         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17369         gl_MODULE_INDICATOR.
17370
17371         Tests of module 'dirent' in C++ mode.
17372         * tests/test-dirent-c++.cc: New file.
17373         * modules/dirent-tests (Files): Add it and tests/signature.h.
17374         (Depends-on): Add ansi-c++-opt.
17375         (Makefile.am): Arrange to compile and run test-dirent-c++.
17376         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17377         gl_MODULE_INDICATOR.
17378
17379         New module 'ansi-c++-opt'.
17380         * modules/ansi-c++-opt: New file.
17381         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17382
17383         Document C++ namespace mode.
17384         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17385
17386         wctype: Avoid #define replacements in C++ mode.
17387         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17388         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17389         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17390         In C++, define a namespaced alias symbol.
17391         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17392         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17393         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17394         rule.
17395
17396         wchar: Avoid #define replacements in C++ mode.
17397         * lib/wchar.in.h: Include c++defs.h.
17398         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17399         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17400         symbol.
17401         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17402         * modules/wchar (Depends-on): Add c++defs.
17403         (Makefile.am): Update wchar.h rule.
17404
17405         unistd: Avoid #define replacements in C++ mode.
17406         * lib/unistd.in.h: Include c++defs.h.
17407         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17408         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17409         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17410         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17411         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17412         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17413         symbol.
17414         (environ): Update.
17415         * modules/unistd (Depends-on): Add c++defs.
17416         (Makefile.am): Update unistd.h rule.
17417
17418         time: Avoid #define replacements in C++ mode.
17419         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17420         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17421         define a namespaced alias symbol.
17422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17423         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17424         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17425         * modules/time (Depends-on): Add c++defs, warn-on-use.
17426         (Makefile.am): Update time.h rule.
17427         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17428         * modules/nanosleep (configure.ac): Likewise.
17429         * modules/strptime (configure.ac): Likewise.
17430         * modules/timegm (configure.ac): Likewise.
17431
17432         sys_time: Avoid #define replacements in C++ mode.
17433         * lib/sys_time.in.h: Include c++defs.h.
17434         (gettimeofday): In C++, define a namespaced alias symbol.
17435         * modules/sys_time (Depends-on): Add c++defs.
17436         (Makefile.am): Update sys/time.h rule.
17437
17438         sys_stat: Avoid #define replacements in C++ mode.
17439         * lib/sys_stat.in.h: Include c++defs.h.
17440         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17441         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17442         namespaced alias symbol.
17443         In C++, define a namespaced alias symbol.
17444         * modules/sys_stat (Depends-on): Add c++defs.
17445         (Makefile.am): Update sys/stat.h rule.
17446
17447         sys_socket: Avoid #define replacements in C++ mode.
17448         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17449         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17450         definitions also when the system has a <sys/socket.h>.
17451         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17452         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17453         In C++, define a namespaced alias symbol.
17454         * modules/sys_socket (Depends-on): Add c++defs.
17455         (Makefile.am): Update sys/socket.h rule.
17456
17457         sys_select: Avoid #define replacements in C++ mode.
17458         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17459         definitions also when the system has a <sys/select.h>.
17460         (select): In C++, define a namespaced alias symbol.
17461         * modules/sys_select (Depends-on): Add c++defs.
17462         (Makefile.am): Update sys/select.h rule.
17463
17464         sys_ioctl: Avoid #define replacements in C++ mode.
17465         * lib/sys_ioctl.in.h: Include c++defs.h.
17466         (ioctl): In C++, define a namespaced alias symbol.
17467         * modules/sys_ioctl (Depends-on): Add c++defs.
17468         (Makefile.am): Update sys/ioctl.h rule.
17469
17470         string: Avoid #define replacements in C++ mode.
17471         * lib/string.in.h: Include c++defs.h.
17472         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17473         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17474         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17475         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17476         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17477         * modules/string (Depends-on): Add c++defs.
17478         (Makefile.am): Update string.h rule.
17479
17480         stdlib: Avoid #define replacements in C++ mode.
17481         * lib/stdlib.in.h: Include c++defs.h.
17482         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17483         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17484         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17485         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17486         symbol.
17487         * modules/stdlib (Depends-on): Add c++defs.
17488         (Makefile.am): Update stdlib.h rule.
17489
17490         stdio: Avoid #define replacements in C++ mode.
17491         * lib/stdio.in.h: Include c++defs.h.
17492         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17493         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17494         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17495         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17496         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17497         namespaced alias symbol.
17498         * modules/stdio (Depends-on): Add c++defs.
17499         (Makefile.am): Update stdio.h rule.
17500
17501         spawn: Avoid #define replacements in C++ mode.
17502         * lib/spawn.in.h: Include c++defs.h.
17503         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17504         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17505         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17506         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17507         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17508         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17509         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17510         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17511         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17512         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17513         In C++, define a namespaced alias symbol.
17514         * modules/spawn (Depends-on): Add c++defs.
17515         (Makefile.am): Update spawn.h rule.
17516
17517         signal: Avoid #define replacements in C++ mode.
17518         * lib/signal.in.h: Include c++defs.h.
17519         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17520         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17521         namespaced alias symbol.
17522         * modules/signal (Depends-on): Add c++defs.
17523         (Makefile.am): Update signal.h rule.
17524
17525         search: Avoid #define replacements in C++ mode.
17526         * lib/search.in.h: Include c++defs.h.
17527         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17528         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17529         symbol.
17530         * modules/search (Depends-on): Add c++defs.
17531         (Makefile.am): Update search.h rule.
17532
17533         math: Avoid #define replacements in C++ mode.
17534         * lib/math.in.h: Include c++defs.h.
17535         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17536         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17537         trunc, truncl): In C++, define a namespaced alias symbol.
17538         * modules/math (Depends-on): Add c++defs.
17539         (Makefile.am): Update math.h rule.
17540
17541         locale: Avoid #define replacements in C++ mode.
17542         * lib/locale.in.h: Include c++defs.h.
17543         (duplocale): In C++, define a namespaced alias symbol.
17544         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17545         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17546         * modules/locale (Depends-on): Add c++defs.
17547         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17548
17549         langinfo: Avoid #define replacements in C++ mode.
17550         * lib/langinfo.in.h: Include c++defs.h.
17551         (nl_langinfo): In C++, define a namespaced alias symbol.
17552         * modules/langinfo (Depends-on): Add c++defs.
17553         (Makefile.am): Update langinfo.h rule.
17554
17555         iconv-h: Avoid #define replacements in C++ mode.
17556         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17557         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17558         symbol.
17559         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17560         whenever iconv is present.
17561         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17562         (Makefile.am): Update iconv.h rule.
17563
17564         glob: Avoid #define replacements in C++ mode.
17565         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17566         (_gl_glob_errfunc_fn): New type.
17567         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17568         symbol.
17569         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17570         (Makefile.am): Update glob.h rule.
17571
17572         fcntl-h: Avoid #define replacements in C++ mode.
17573         * lib/fcntl.in.h: Include c++defs.h.
17574         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17575         * modules/fcntl-h (Depends-on): Add c++defs.
17576         (Makefile.am): Update fcntl.h rule.
17577
17578         dirent: Avoid #define replacements in C++ mode.
17579         * lib/dirent.in.h: Include c++defs.h.
17580         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17581         namespaced alias symbol.
17582         (dirfd): Update declaration.
17583         * modules/dirent (Depends-on): Add c++defs.
17584         (Makefile.am): Update dirent.h rule.
17585
17586         ctype: Make it usable in C++ code.
17587         * lib/ctype.in.h: Include c++defs.h.
17588         (isblank): Declare as extern "C".
17589         * modules/ctype (Depends-on): Add c++defs.
17590         (Makefile.am): Update ctype.h rule.
17591
17592         New module 'c++defs'.
17593         * modules/c++defs: New file.
17594         * build-aux/c++defs.h: New file.
17595         Reported by John W. Eaton <jwe@gnu.org>.
17596
17597 2010-03-07  Bruno Haible  <bruno@clisp.org>
17598
17599         logb: Provide missing declaration for Cygwin.
17600         * lib/math.in.h (logb): New declaration.
17601         * m4/logb.m4: New file.
17602         * modules/logb (Files): Add m4/logb.m4.
17603         (Depends-on): Add math.
17604         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17605         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17607         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17608         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17609
17610 2010-03-07  Bruno Haible  <bruno@clisp.org>
17611
17612         Fix test-cond link error.
17613         * tests/test-cond.c: Include <stdio.h>.
17614
17615 2010-03-07  Bruno Haible  <bruno@clisp.org>
17616
17617         Fix test-dirent-safer link error.
17618         * modules/dirent-safer-tests (Makefile.am): Define
17619         test_dirent_safer_LDADD.
17620
17621 2010-03-07  Bruno Haible  <bruno@clisp.org>
17622
17623         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17624         among default module list.
17625
17626 2010-03-07  Bruno Haible  <bruno@clisp.org>
17627
17628         Fix link error on platforms with GNU libiconv.
17629         * modules/unistr/u8-strcoll-tests (Makefile): Define
17630         test_u8_strcoll_LDADD.
17631         * modules/unistr/u16-strcoll-tests (Makefile): Define
17632         test_u16_strcoll_LDADD.
17633         * modules/unistr/u32-strcoll-tests (Makefile): Define
17634         test_u32_strcoll_LDADD.
17635
17636 2010-03-07  Bruno Haible  <bruno@clisp.org>
17637
17638         Use POSIX declarations for socket functions.
17639         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17640         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17641         rpl_sendto): Change declaration to match POSIX.
17642         * lib/connect.c (rpl_connect): Likewise.
17643         * lib/accept.c (rpl_accept): Likewise.
17644         * lib/bind.c (rpl_bind): Likewise.
17645         * lib/getpeername.c (rpl_getpeername): Likewise.
17646         * lib/getsockname.c (rpl_getsockname): Likewise.
17647         * lib/recv.c (rpl_recv): Likewise.
17648         * lib/send.c (rpl_send): Likewise.
17649         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17650         * lib/sendto.c (rpl_sendto): Likewise.
17651
17652 2010-03-06  Bruno Haible  <bruno@clisp.org>
17653
17654         Clarify access, euidaccess, faccessat.
17655         * doc/posix-functions/faccessat.texi: Mention security problem under
17656         "Other problems", not "Portability problems".
17657         * doc/posix-functions/access.texi: Likewise. Mention a related security
17658         problem.
17659         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17660         * lib/euidaccess.c: Add comments about platforms.
17661         * lib/unistd.in.h (access, euidaccess): Add warnings.
17662
17663 2010-03-07  Bruno Haible  <bruno@clisp.org>
17664
17665         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17666         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17667         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17668         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17669         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17670         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17671         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17672         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17673         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17674         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17675         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17676         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17677         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17678         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17679         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17680         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17681         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17682         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17683         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17684         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17685         Likewise.
17686         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17687         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17688         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17689         Likewise.
17690         * tests/test-spawn.c (main): Make it work when
17691         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17692
17693 2010-03-07  Bruno Haible  <bruno@clisp.org>
17694
17695         Fix incorrect Makefile.am generation in German locale.
17696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17697         Execute sed command with character range in C locale.
17698
17699 2010-03-06  Bruno Haible  <bruno@clisp.org>
17700
17701         Tests for module 'iconv-h'.
17702         * modules/iconv-h-tests: New file.
17703         * tests/test-iconv-h.c: New file.
17704
17705         New module 'iconv-h'.
17706         * modules/iconv-h: New file.
17707         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17708         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17709         (configure.ac): Remove gl_ICONV_H.
17710         (Makefile.am): Remove rule for iconv.h.
17711
17712 2010-03-06  Bruno Haible  <bruno@clisp.org>
17713
17714         More consistent naming of *.m4 files.
17715         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17716         * modules/wctype (Files): Update.
17717
17718         More consistent naming of *.m4 files.
17719         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17720         * modules/wchar (Files): Update.
17721
17722 2010-03-06  Jim Meyering  <meyering@redhat.com>
17723
17724         euidaccess: relax license to LGPLv2+
17725         * modules/euidaccess (License): Relax to LGPLv2+.
17726
17727 2010-03-06  Bruno Haible  <bruno@clisp.org>
17728
17729         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17730         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17731         (Makefile.am): Augment lib_SOURCES instead.
17732
17733 2010-03-04  Jim Meyering  <meyering@redhat.com>
17734
17735         utime: remove obsolete module
17736         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17737         unnecessary for years, and has been marked as obsolete for 10 months.
17738         * modules/utime: Remove file.
17739         * lib/utime.c: Remove file.
17740         * m4/utime.m4: Remove file.
17741         * m4/utimes-null.m4: Remove file.
17742         * doc/posix-functions/utime.texi (utime): Remove reference to
17743         the module.  Move the sole "fixed by gnulib" item into the
17744         "problems not fixed by Gnulib" list.
17745         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17746
17747 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17748
17749         * modules/exit (License): Relax license to LGPLv2+.
17750         (Status): Mark as obsolete.
17751         * NEWS: Mention deprecated 'exit' module.
17752         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17753         of now obsolete 'exit'.
17754
17755 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17756
17757         fts-lgpl: remove unused module
17758         * modules/fts-lgpl: Remove.
17759         * MODULES.html.sh (func_all_modules): Adjust.
17760         * check-module (find_included_lib_files): Adjust.
17761         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17762
17763 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17764
17765         copy-acl: enhance Solaris ACL error handling
17766         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17767         * lib/set-mode-acl.c (qset_acl): Likewise.
17768
17769 2010-03-02  Bruno Haible  <bruno@clisp.org>
17770
17771         spawn: Don't override the system defined values on FreeBSD 8.
17772         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17773         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17774         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17775         if HAVE_POSIX_SPAWN is 1.
17776         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17777
17778 2010-03-01  Bruno Haible  <bruno@clisp.org>
17779
17780         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17781         regarding Automake.
17782
17783 2010-02-25  Bruno Haible  <bruno@clisp.org>
17784
17785         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17786         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17787         setting, not afterwards.
17788         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17789
17790 2010-02-24  Eric Blake  <eblake@redhat.com>
17791
17792         bootstrap, git-version-gen: use timestamp
17793         * build-aux/git-version-gen (scriptversion): Force UTC.
17794         * build-aux/bootstrap (scriptversion): New variable.
17795
17796         bootstrap: allow older git
17797         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17798         older than 1.6.4.  Requested by the libvirt project.
17799
17800 2010-02-23  Eric Blake  <eblake@redhat.com>
17801
17802         warn-on-use: work with old autoconf
17803         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17804         AS_VAR semantics of autoconf 2.60.
17805         Reported by Bruno Haible.
17806
17807         bootstrap: improve some comments
17808         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17809         clarification comments.
17810
17811         gettimeofday: provide correct function
17812         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17813         when replacement is declared, otherwise provide gettimeofday.
17814         Reported by Michael Goffioul.
17815
17816 2010-02-23  Jim Meyering  <meyering@redhat.com>
17817
17818         lib-ignore: relax license to "unlimited", not LGPLv2+
17819         * modules/lib-ignore (License): Relax to "unlimited".
17820
17821 2010-02-23  Jim Meyering  <meyering@redhat.com>
17822
17823         lib-ignore: relax license to LGPLv2+
17824         * modules/lib-ignore (License): Relax to LGPLv2+.
17825
17826 2010-02-22  Eric Blake  <eblake@redhat.com>
17827
17828         lseek: avoid bash 3.2 broken pipe bug
17829         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17830         warning from bash 3.2.
17831         Reported by Ben Pfaff, with analysis from Bruno Haible.
17832
17833         bootstrap: support non-FSF copyright holder
17834         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17835         bootstrap.conf override of COPYRIGHT_HOLDER.
17836         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17837
17838         bootstrap: interoperate with gettext 0.14.1
17839         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17840
17841         bootstrap: allow for alternate submodule location
17842         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17843         hardcoding submodule location.
17844         (gnulib_mk): Allow direct use of Makefile.am.
17845
17846         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17847         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17848         rather than reconfiguring where the submodule points.
17849
17850         gettimeofday: restore support for platforms that lack function
17851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17852         replacement if function is missing.
17853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17854         * modules/sys_time (Makefile.am): Substitute it.
17855         * lib/sys_time.in.h (gettimeofday): Check it.
17856         Reported by Michael Goffioul.
17857
17858 2010-02-21  Bruno Haible  <bruno@clisp.org>
17859
17860         * lib/stdio.in.h (obstack_printf): Fix typo.
17861
17862 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17863
17864         vc-list-files: use bzr ls's -R option
17865         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17866         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17867
17868 2010-02-21  Jim Meyering  <meyering@redhat.com>
17869
17870         init.sh: fix EXEEXT shims to work also for names like test-prog
17871         * tests/init.sh: Re-exec a better shell, when needed.
17872         If the current shell lacks support for posix $(...), an init.sh-using
17873         test will now try to find a shell that supports that.  If EXEEXT is
17874         nonempty, we also require support for hyphen-in-alias-name and shell
17875         substitutions like ${var#glob}.  Failure to find such a shell results
17876         in a skipped test.
17877
17878 2010-02-21  Bruno Haible  <bruno@clisp.org>
17879
17880         Really work around around "broken pipe" error message from bash 3.2.
17881         * gnulib-tool (func_reset_sigpipe): Remove function.
17882         (echo): In bash 3.2, define to a function that uses printf.
17883         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17884
17885 2010-02-20  Bruno Haible  <bruno@clisp.org>
17886
17887         Restore support for automake 1.9.6 with autoconf 2.61.
17888         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17889         Reported by James Youngman <jay@gnu.org>.
17890
17891 2010-02-20  Bruno Haible  <bruno@clisp.org>
17892
17893         Improve *printf warning condition.
17894         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17895         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17896         and the function is overridden due to SIGPIPE emulation.
17897
17898 2010-02-20  Bruno Haible  <bruno@clisp.org>
17899
17900         * lib/stdio.in.h: Tweak comments.
17901
17902 2010-02-19  Bruno Haible  <bruno@clisp.org>
17903
17904         Make it easier to find modules. New gnulib-tool option '--find'.
17905         * gnulib-tool: New option --find.
17906         (func_usage): Document it.
17907         (func_sanitize_modulelist): New function, extracted from
17908         func_all_modules.
17909         (func_all_modules): Invoke it.
17910         * doc/gnulib-tool.texi (Which modules?): New node.
17911
17912 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17913
17914         * lib/sys_select.in.h: Provide select replacement even if
17915         sys/select.h exists on a system, for Interix.
17916
17917 2010-02-18  Jim Meyering  <meyering@redhat.com>
17918
17919         init.sh: don't use $(...) just yet
17920         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17921         to accommodate e.g., Solaris' /bin/sh.
17922
17923 2010-02-17  Bruno Haible  <bruno@clisp.org>
17924
17925         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17926         Reported by Ludovic Courtès <ludo@gnu.org>.
17927
17928 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17929
17930         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17931         linking with -lintl.
17932
17933 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17934
17935         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17936         if not provided by the system's netdb.h.  Reported by
17937         ludo@gnu.org (Ludovic Courtès).
17938
17939 2010-02-15  Jim Meyering  <meyering@redhat.com>
17940
17941         init.sh: improve portability and efficiency
17942         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17943         "dummy" in a for loop.
17944         Use '!', not '^' to select the complement of a character set used
17945         in a "case" statement.
17946         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17947         Suggestions from Eric Blake.
17948
17949         init.sh: automatically accommodate programs with the .exe suffix
17950         Automatically arrange for an invocation of "prog" to execute the
17951         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17952         may use the simpler "prog", yet still work when built on a system
17953         that requires specifying the added suffix.
17954         Do this by constructing a function named "prog" that invokes
17955         "prog.exe" for each .exe file in selected directories.
17956         * tests/init.sh (find_exe_basenames_): New function.
17957         (create_exe_shim_functions_): New function.
17958         (path_prepend_): Use it.
17959
17960         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17961         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17962         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17963
17964 2010-02-14  Jim Meyering  <meyering@redhat.com>
17965
17966         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17967         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17968         (sc_prohibit_hash_pjw_without_use): New rule.
17969
17970         maint.mk: allow the default upload destination dir to be overridden
17971         * top/maint.mk (upload_dest_dir_): Define with a default that
17972         preserves the status quo.
17973         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17974         Reported by Peter Simons.
17975
17976         maint.mk: prohibit inclusion of "hash.h" without_use
17977         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17978
17979 2010-02-10  Jim Meyering  <meyering@redhat.com>
17980
17981         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17982         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17983
17984 2010-02-09  Eric Blake  <ebb9@byu.net>
17985         and Bruno Haible  <bruno@clisp.org>
17986
17987         obstack-printf-posix: ensure declaration
17988         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17989         extracted from gl_FUNC_OBSTACK_PRINTF.
17990         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17991         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17992         Likewise.
17993         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17994         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17995         0.
17996
17997 2010-02-08  Bruno Haible  <bruno@clisp.org>
17998
17999         gnulib-tool: Fix typo in 2010-02-07 commit.
18000         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18001         Reported by Eric Blake.
18002
18003 2010-02-07  Bruno Haible  <bruno@clisp.org>
18004
18005         gnulib-tool: Fix up caching patches.
18006         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18007         option --no-cache. Use associative arrays when supported by the shell.
18008         (sed_comments): New variable.
18009         (modcache): Renamed from do_cache.
18010         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18011         abbreviate unnecessarily.
18012         (have_associative): New variable.
18013         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18014         way also for ksh and zsh.
18015         (func_init_sed_convert_to_cache_statements): New function, extracted
18016         from func_cache_lookup_module. Add support for associative arrays.
18017         Don't set the c_MODULE_cached variable here. Ignore all lines before
18018         the first field header. Remove only the final newline, not all trailing
18019         newlines. Support empty fields correctly. Limit the use of 'eval' to
18020         assignments.
18021         (func_get_description, func_get_status, func_get_notice,
18022         func_get_applicability, func_get_filelist, func_get_dependencies,
18023         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18024         func_get_automake_snippet, func_get_include_directive,
18025         func_get_link_directive, func_get_license, func_get_maintainer):
18026         Update documentation. List the unoptimized code first. Add support for
18027         associative arrays. Limit the use of 'eval' to assignments.
18028         (func_get_applicability): Undo stylistic pessimisations.
18029         (func_get_automake_snippet, func_get_include_directive): Reduce code
18030         duplication.
18031         (func_modules_transitive_closure, func_modules_add_dummy,
18032         func_modules_notice, func_modules_to_filelist, func_add_file,
18033         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18034         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18035         func_create_testdir, func_create_megatestdir): Update documentation.
18036
18037 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18038
18039         * gnulib-tool (func_cache_lookup_module): Store the module name
18040         belonging to the cache variable; error out if two different
18041         module names map to the same cache variable name.
18042
18043 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18044
18045         gnulib-tool: Make caching optional.
18046         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18047         Update matching short versions of --no-changelog.
18048         (func_usage): Update.
18049         (sed_extract_cache_prog): Renamed from ...
18050         (sed_extract_prog): ... this; revert to old extraction script.
18051         (func_get_description, func_get_status)
18052         (func_get_notice, func_get_applicability, func_get_filelist)
18053         (func_get_dependencies, func_get_autoconf_early_snippet)
18054         (func_get_autoconf_snippet, func_get_automake_snippet)
18055         (func_get_include_directive, func_get_link_directive)
18056         (func_get_license, func_get_maintainer): If $do_cache is false,
18057         use old, non-caching extraction scripts.
18058         Suggestion by Bruno Haible.
18059
18060 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18061
18062         gnulib-tool: cache module metainformation.
18063         * gnulib-tool (sed_extract_prog): Match newline before each
18064         header, and rewrite header to a shell variable suffix.
18065         (func_cache_var, func_cache_lookup_module): New functions,
18066         to turn a module name into a cache variable prefix, and to
18067         look up and cache module metainformation.
18068         (func_get_description, func_get_status)
18069         (func_get_notice, func_get_applicability, func_get_filelist)
18070         (func_get_dependencies, func_get_autoconf_early_snippet)
18071         (func_get_autoconf_snippet, func_get_automake_snippet)
18072         (func_get_include_directive, func_get_link_directive)
18073         (func_get_license, func_get_maintainer): Use
18074         func_cache_lookup_module.
18075
18076 2010-02-07  Bruno Haible  <bruno@clisp.org>
18077
18078         fnctl: Fix missing dependency.
18079         * modules/fcntl (Depends-on): Add getdtablesize.
18080         Reported by John W. Eaton <jwe@gnu.org>.
18081
18082 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18083
18084         Argp: fix recognition of short alias options.
18085
18086         * lib/argp-parse.c (convert_options): Fix improper use of
18087         `|' between character values.
18088         * tests/test-argp.c (group1_option): New alias option
18089         --read (-r).
18090         (group1_parser): Special handling for 'r'.
18091         (test15): New test case.
18092         (test_fun): Add test15.
18093         * tests/test-argp-2.sh: Update expected --help and --usage
18094         outputs.
18095
18096 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18097
18098         * tests/test-argp.c: Fix indentation.
18099
18100 2010-02-04  Eric Blake  <ebb9@byu.net>
18101
18102         gettimeofday: expose type of second argument
18103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18104         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18105         * tests/test-gettimeofday.c: Use it to silence warning.
18106         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18107         the issue.
18108
18109 2010-02-03  Jim Meyering  <meyering@redhat.com>
18110
18111         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18112         * lib/regcomp.c (TYPE_SIGNED): Define.
18113         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18114
18115         regcomp.c: avoid a new -Wshadow warning
18116         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18117
18118 2010-02-01  Jim Meyering  <meyering@redhat.com>
18119
18120         removing useless parentheses in cpp #define directives
18121         For motivation, see commit c0221df4, "define STREQ(a,b)
18122         consistently, removing useless parentheses"
18123         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18124         * lib/mountlist.c (MNT_IGNORE): Likewise.
18125         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18126
18127 2010-02-01  Eric Blake  <ebb9@byu.net>
18128
18129         sys_time: use link-warning
18130         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18131         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18132         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18133         * modules/sys_time (Depends-on): Add warn-on-use.
18134         (Makefile.am): Always build replacement.
18135         (configure.ac): Update substitutions.
18136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18137         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18138         bother with SYS_TIME_H.
18139         * modules/gettimeofday (configure.ac): Declare indicator.
18140         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18141         in use.
18142
18143         closein-tests: silence compiler warning
18144         * tests/test-closein.c (main): Ignore fread result.
18145         * modules/closein-tests (Depends-on): Add ignore-value.
18146
18147         tests: silence warning about system return
18148         * tests/test-areadlink-with-size.c (main): Ignore system result.
18149         * tests/test-areadlink.c (main): Likewise.
18150         * tests/test-areadlinkat-with-size.c (main): Likewise.
18151         * tests/test-areadlinkat.c (main): Likewise.
18152         * tests/test-canonicalize-lgpl.c (main): Likewise.
18153         * tests/test-canonicalize.c (main): Likewise.
18154         * tests/test-chown.c (main): Likewise.
18155         * tests/test-fchownat.c (main): Likewise.
18156         * tests/test-fdutimensat.c (main): Likewise.
18157         * tests/test-fstatat.c (main): Likewise.
18158         * tests/test-futimens.c (main): Likewise.
18159         * tests/test-lchown.c (main): Likewise.
18160         * tests/test-link.c (main): Likewise.
18161         * tests/test-linkat.c (main): Likewise.
18162         * tests/test-lstat.c (main): Likewise.
18163         * tests/test-mkdir.c (main): Likewise.
18164         * tests/test-mkdirat.c (main): Likewise.
18165         * tests/test-mkfifo.c (main): Likewise.
18166         * tests/test-mkfifoat.c (main): Likewise.
18167         * tests/test-mknod.c (main): Likewise.
18168         * tests/test-readlink.c (main): Likewise.
18169         * tests/test-remove.c (main): Likewise.
18170         * tests/test-rename.c (main): Likewise.
18171         * tests/test-renameat.c (main): Likewise.
18172         * tests/test-rmdir.c (main): Likewise.
18173         * tests/test-symlink.c (main): Likewise.
18174         * tests/test-symlinkat.c (main): Likewise.
18175         * tests/test-unlink.c (main): Likewise.
18176         * tests/test-unlinkat.c (main): Likewise.
18177         * tests/test-utimens.c (main): Likewise.
18178         * tests/test-utimensat.c (main): Likewise.
18179         * modules/areadlink-tests (Depends-on): Add ignore-value.
18180         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18181         * modules/areadlinkat-tests (Depends-on): Likewise.
18182         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18183         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18184         * modules/canonicalize-tests (Depends-on): Likewise.
18185         * modules/chown-tests (Depends-on): Likewise.
18186         * modules/fdutimensat-tests (Depends-on): Likewise.
18187         * modules/futimens-tests (Depends-on): Likewise.
18188         * modules/lchown-tests (Depends-on): Likewise.
18189         * modules/link-tests (Depends-on): Likewise.
18190         * modules/linkat-tests (Depends-on): Likewise.
18191         * modules/lstat-tests (Depends-on): Likewise.
18192         * modules/mkdir-tests (Depends-on): Likewise.
18193         * modules/mkfifo-tests (Depends-on): Likewise.
18194         * modules/mkfifoat-tests (Depends-on): Likewise.
18195         * modules/mknod-tests (Depends-on): Likewise.
18196         * modules/openat-tests (Depends-on): Likewise.
18197         * modules/readlink-tests (Depends-on): Likewise.
18198         * modules/remove-tests (Depends-on): Likewise.
18199         * modules/rename-tests (Depends-on): Likewise.
18200         * modules/renameat-tests (Depends-on): Likewise.
18201         * modules/rmdir-tests (Depends-on): Likewise.
18202         * modules/symlink-tests (Depends-on): Likewise.
18203         * modules/symlinkat-tests (Depends-on): Likewise.
18204         * modules/unlink-tests (Depends-on): Likewise.
18205         * modules/utimens-tests (Depends-on): Likewise.
18206         * modules/utimensat-tests (Depends-on): Likewise.
18207
18208 2010-01-31  Bruno Haible  <bruno@clisp.org>
18209
18210         Perform the same test for many <math.h> functions.
18211         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18212         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18213         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18214         of gl_MATHFUNC.
18215         * modules/acos (configure.ac): Likewise.
18216         * modules/asin (configure.ac): Likewise.
18217         * modules/atan (configure.ac): Likewise.
18218         * modules/atan2 (configure.ac): Likewise.
18219         * modules/cbrt (configure.ac): Likewise.
18220         * modules/copysign (configure.ac): Likewise.
18221         * modules/cos (configure.ac): Likewise.
18222         * modules/cosh (configure.ac): Likewise.
18223         * modules/erf (configure.ac): Likewise.
18224         * modules/erfc (configure.ac): Likewise.
18225         * modules/exp (configure.ac): Likewise.
18226         * modules/fmod (configure.ac): Likewise.
18227         * modules/hypot (configure.ac): Likewise.
18228         * modules/j0 (configure.ac): Likewise.
18229         * modules/j1 (configure.ac): Likewise.
18230         * modules/jn (configure.ac): Likewise.
18231         * modules/lgamma (configure.ac): Likewise.
18232         * modules/log (configure.ac): Likewise.
18233         * modules/log10 (configure.ac): Likewise.
18234         * modules/log1p (configure.ac): Likewise.
18235         * modules/pow (configure.ac): Likewise.
18236         * modules/remainder (configure.ac): Likewise.
18237         * modules/sin (configure.ac): Likewise.
18238         * modules/sinh (configure.ac): Likewise.
18239         * modules/tan (configure.ac): Likewise.
18240         * modules/tanh (configure.ac): Likewise.
18241         * modules/y0 (configure.ac): Likewise.
18242         * modules/y1 (configure.ac): Likewise.
18243         * modules/yn (configure.ac): Likewise.
18244         Suggested by Paolo Bonzini.
18245
18246 2010-01-31  Bruno Haible  <bruno@clisp.org>
18247
18248         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18249
18250 2010-01-31  Bruno Haible  <bruno@clisp.org>
18251
18252         Work around getdelim() bug on FreeBSD 8.0.
18253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18254         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18255         not work.
18256         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18257         is 1.
18258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18259         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18260         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18261         a non-zero size.
18262         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18263
18264 2010-01-31  Bruno Haible  <bruno@clisp.org>
18265
18266         Work around getline() bug on FreeBSD 8.0.
18267         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18268         and a non-zero size.
18269         * tests/test-getline.c (main): Likewise.
18270         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18271         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18272
18273 2010-01-28  Eric Blake  <ebb9@byu.net>
18274
18275         regex: fix build failure
18276         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18277         platforms.
18278
18279 2010-01-28  Jim Meyering  <meyering@redhat.com>
18280
18281         regex: do not ignore memory allocation failure
18282         * lib/regex_internal.c (create_cd_newstate): Detect
18283         re_node_set_init_copy failure.   Extracted from glibc commit
18284         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18285
18286         regex: sync more white-space changes from libc
18287         * lib/regex_internal.c: White-space only changes.
18288         * lib/regexec.c: Likewise.
18289
18290         regex: add many uses of __attribute_warn_unused_result__
18291         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18292         * lib/regexec.c: Likewise.
18293         Extracted from a messy glibc commit.
18294
18295         regcomp.c: spelling and merge-artifact from glibc
18296         * lib/regcomp.c: Merge remainder of glibc's
18297         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18298
18299         regcomp.c: sync white-space changes from glibc
18300         * lib/regcomp.c: Merge to accommodate white space
18301         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18302
18303         regcomp.c: do not ignore internal return values
18304         * lib/regcomp.c: Do not ignore internal return values.
18305         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18306         but without its white-space changes and spelling fixes.
18307
18308         regex_internal.h: define __attribute_warn_unused_result__
18309         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18310
18311         maint: add a syntax-check rule to check for vulnerable Makefile.in
18312         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18313
18314 2010-01-27  Jim Meyering  <meyering@redhat.com>
18315
18316         ncftpput-ftp: clean up spaces
18317         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18318         Remove trailing blanks.
18319
18320 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18321
18322         * build-aux/git-version-gen: Fix copyright statement.
18323         * build-aux/gnupload: Likewise.
18324         * tests/test-arcfour.c: Likewise.
18325         * tests/test-arctwo.c: Likewise.
18326         * tests/test-count-one-bits.c: Likewise.
18327         * tests/test-crc.c: Likewise.
18328         * tests/test-des.c: Likewise.
18329         * tests/test-gc-arcfour.c: Likewise.
18330         * tests/test-gc-arctwo.c: Likewise.
18331         * tests/test-gc-des.c: Likewise.
18332         * tests/test-gc-hmac-md5.c: Likewise.
18333         * tests/test-gc-hmac-sha1.c: Likewise.
18334         * tests/test-gc-md2.c: Likewise.
18335         * tests/test-gc-md4.c: Likewise.
18336         * tests/test-gc-md5.c: Likewise.
18337         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18338         * tests/test-gc-rijndael.c: Likewise.
18339         * tests/test-gc-sha1.c: Likewise.
18340         * tests/test-gc.c: Likewise.
18341         * tests/test-gethostname.c: Likewise.
18342         * tests/test-gettimeofday.c: Likewise.
18343         * tests/test-hash.c: Likewise.
18344         * tests/test-hmac-md5.c: Likewise.
18345         * tests/test-hmac-sha1.c: Likewise.
18346         * tests/test-md2.c: Likewise.
18347         * tests/test-md4.c: Likewise.
18348         * tests/test-md5.c: Likewise.
18349         * tests/test-memchr.c: Likewise.
18350         * tests/test-memchr2.c: Likewise.
18351         * tests/test-memcmp.c: Likewise.
18352         * tests/test-memmem.c: Likewise.
18353         * tests/test-memrchr.c: Likewise.
18354         * tests/test-rawmemchr.c: Likewise.
18355         * tests/test-read-file.c: Likewise.
18356         * tests/test-rijndael.c: Likewise.
18357         * tests/test-sockets.c: Likewise.
18358         * tests/test-strchrnul.c: Likewise.
18359         * tests/test-strstr.c: Likewise.
18360         * tests/test-strtod.c: Likewise.
18361         * build-aux/ncftpput-ftp: Likewise.
18362
18363 2010-01-26  Eric Blake  <ebb9@byu.net>
18364
18365         ignore-value: update recommended header name
18366         * modules/ignore-value (Include): Only use <> for headers that
18367         exist in glibc.
18368
18369 2010-01-26  Jim Meyering  <meyering@redhat.com>
18370
18371         test-userspec.c: avoid compiler warnings
18372         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18373         and "initialization discards qualifiers..." warnings.
18374         Put the first "uid" in its own scope, and make char* members "const".
18375
18376 2010-01-25  Bruno Haible  <bruno@clisp.org>
18377
18378         gnulib-tool: Make warning diagnostics consistent.
18379         * gnulib-tool (func_warning): New function.
18380         Use it everywhere where gnulib-tool produces output to stderr and it is
18381         not a fatal error.
18382
18383 2010-01-25  Bruno Haible  <bruno@clisp.org>
18384
18385         Fix test dependencies.
18386         * modules/xstrtol-tests (Depends-on): Add inttypes.
18387         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18388
18389 2010-01-25 Pádraig Brady <P@draigBrady.com>
18390
18391         syntax-check: detect incorrect boolean macro values in config.h
18392         * modules/maintainer-makefile (configure.ac): Parameterize the location
18393         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18394         The logic is from Eric Blake and the location indicated by Jim Meyering.
18395         Note the more natural CONFIG_HEADER name is prohibited by automake
18396         for backwards compatibility reasons.
18397         * top/maint.mk (sc_Wundef_boolean): New rule.
18398
18399 2010-01-25  Jim Meyering  <meyering@redhat.com>
18400
18401         bootstrap: detect MacOS 10.6's shasum, too
18402         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18403         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18404
18405 2010-01-23  Jim Meyering  <meyering@redhat.com>
18406
18407         xstrtoll: new module
18408         * modules/xstrtoll: New file.
18409         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18410         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18411         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18412         ./configure fails if you use this module and lack "long long".
18413         * modules/xstrtoll-tests: New module.
18414         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18415         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18416         new init.sh-based test framework.
18417
18418 2010-01-24  Bruno Haible  <bruno@clisp.org>
18419
18420         Tests for module 'yn'.
18421         * modules/yn-tests: New file.
18422         * tests/test-yn.c: New file.
18423
18424         Tests for module 'y1'.
18425         * modules/y1-tests: New file.
18426         * tests/test-y1.c: New file.
18427
18428         Tests for module 'y0'.
18429         * modules/y0-tests: New file.
18430         * tests/test-y0.c: New file.
18431
18432         Tests for module 'tanh'.
18433         * modules/tanh-tests: New file.
18434         * tests/test-tanh.c: New file.
18435
18436         Tests for module 'tan'.
18437         * modules/tan-tests: New file.
18438         * tests/test-tan.c: New file.
18439
18440         Tests for module 'sqrt'.
18441         * modules/sqrt-tests: New file.
18442         * tests/test-sqrt.c: New file.
18443
18444         Tests for module 'sinh'.
18445         * modules/sinh-tests: New file.
18446         * tests/test-sinh.c: New file.
18447
18448         Tests for module 'sin'.
18449         * modules/sin-tests: New file.
18450         * tests/test-sin.c: New file.
18451
18452         Tests for module 'rint'.
18453         * modules/rint-tests: New file.
18454         * tests/test-rint.c: New file.
18455
18456         Tests for module 'remainder'.
18457         * modules/remainder-tests: New file.
18458         * tests/test-remainder.c: New file.
18459
18460         Tests for module 'pow'.
18461         * modules/pow-tests: New file.
18462         * tests/test-pow.c: New file.
18463
18464         Tests for module 'nextafter'.
18465         * modules/nextafter-tests: New file.
18466         * tests/test-nextafter.c: New file.
18467
18468         Tests for module 'modf'.
18469         * modules/modf-tests: New file.
18470         * tests/test-modf.c: New file.
18471
18472         Tests for module 'logb'.
18473         * modules/logb-tests: New file.
18474         * tests/test-logb.c: New file.
18475
18476         Tests for module 'log1p'.
18477         * modules/log1p-tests: New file.
18478         * tests/test-log1p.c: New file.
18479
18480         Tests for module 'log10'.
18481         * modules/log10-tests: New file.
18482         * tests/test-log10.c: New file.
18483
18484         Tests for module 'log'.
18485         * modules/log-tests: New file.
18486         * tests/test-log.c: New file.
18487
18488         Tests for module 'lgamma'.
18489         * modules/lgamma-tests: New file.
18490         * tests/test-lgamma.c: New file.
18491
18492         Tests for module 'ldexp'.
18493         * modules/ldexp-tests: New file.
18494         * tests/test-ldexp.c: New file.
18495
18496         Tests for module 'jn'.
18497         * modules/jn-tests: New file.
18498         * tests/test-jn.c: New file.
18499
18500         Tests for module 'j1'.
18501         * modules/j1-tests: New file.
18502         * tests/test-j1.c: New file.
18503
18504         Tests for module 'j0'.
18505         * modules/j0-tests: New file.
18506         * tests/test-j0.c: New file.
18507
18508         Tests for module 'hypot'.
18509         * modules/hypot-tests: New file.
18510         * tests/test-hypot.c: New file.
18511
18512         Tests for module 'fmod'.
18513         * modules/fmod-tests: New file.
18514         * tests/test-fmod.c: New file.
18515
18516         Tests for module 'fabs'.
18517         * modules/fabs-tests: New file.
18518         * tests/test-fabs.c: New file.
18519
18520         Tests for module 'exp'.
18521         * modules/exp-tests: New file.
18522         * tests/test-exp.c: New file.
18523
18524         Tests for module 'erfc'.
18525         * modules/erfc-tests: New file.
18526         * tests/test-erfc.c: New file.
18527
18528         Tests for module 'erf'.
18529         * modules/erf-tests: New file.
18530         * tests/test-erf.c: New file.
18531
18532         Tests for module 'cosh'.
18533         * modules/cosh-tests: New file.
18534         * tests/test-cosh.c: New file.
18535
18536         Tests for module 'cos'.
18537         * modules/cos-tests: New file.
18538         * tests/test-cos.c: New file.
18539
18540         Tests for module 'copysign'.
18541         * modules/copysign-tests: New file.
18542         * tests/test-copysign.c: New file.
18543
18544         Tests for module 'cbrt'.
18545         * modules/cbrt-tests: New file.
18546         * tests/test-cbrt.c: New file.
18547
18548         Tests for module 'atan2'.
18549         * modules/atan2-tests: New file.
18550         * tests/test-atan2.c: New file.
18551
18552         Tests for module 'atan'.
18553         * modules/atan-tests: New file.
18554         * tests/test-atan.c: New file.
18555
18556         Tests for module 'asin'.
18557         * modules/asin-tests: New file.
18558         * tests/test-asin.c: New file.
18559
18560         Tests for module 'acos'.
18561         * modules/acos-tests: New file.
18562         * tests/test-acos.c: New file.
18563
18564 2010-01-24  Bruno Haible  <bruno@clisp.org>
18565
18566         Fix tests for common <math.h> functions.
18567         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18568         code snippet that references the function pointer, rather than merely
18569         calling the function. Substitute the FUNC_LIBM variable.
18570         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18571         * modules/acos (configure.ac): Likewise.
18572         * modules/asin (configure.ac): Likewise.
18573         * modules/atan (configure.ac): Likewise.
18574         * modules/atan2 (configure.ac): Likewise.
18575         * modules/cbrt (configure.ac): Likewise.
18576         * modules/copysign (configure.ac): Likewise.
18577         * modules/cos (configure.ac): Likewise.
18578         * modules/cosh (configure.ac): Likewise.
18579         * modules/erf (configure.ac): Likewise.
18580         * modules/erfc (configure.ac): Likewise.
18581         * modules/exp (configure.ac): Likewise.
18582         * modules/fabs (configure.ac): Likewise.
18583         * modules/fmod (configure.ac): Likewise.
18584         * modules/hypot (configure.ac): Likewise.
18585         * modules/j0 (configure.ac): Likewise.
18586         * modules/j1 (configure.ac): Likewise.
18587         * modules/jn (configure.ac): Likewise.
18588         * modules/ldexp (configure.ac): Likewise.
18589         * modules/lgamma (configure.ac): Likewise.
18590         * modules/log (configure.ac): Likewise.
18591         * modules/log10 (configure.ac): Likewise.
18592         * modules/log1p (configure.ac): Likewise.
18593         * modules/logb (configure.ac): Likewise.
18594         * modules/modf (configure.ac): Likewise.
18595         * modules/nextafter (configure.ac): Likewise.
18596         * modules/pow (configure.ac): Likewise.
18597         * modules/remainder (configure.ac): Likewise.
18598         * modules/rint (configure.ac): Likewise.
18599         * modules/sin (configure.ac): Likewise.
18600         * modules/sinh (configure.ac): Likewise.
18601         * modules/tan (configure.ac): Likewise.
18602         * modules/tanh (configure.ac): Likewise.
18603         * modules/y0 (configure.ac): Likewise.
18604         * modules/y1 (configure.ac): Likewise.
18605         * modules/yn (configure.ac): Likewise.
18606
18607 2010-01-24  Bruno Haible  <bruno@clisp.org>
18608
18609         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18610         * tests/test-acosl.c (x): New variable.
18611         (main): Store argument in x and fetch it from x.
18612         * tests/test-asinl.c (x): New variable.
18613         (main): Store argument in x and fetch it from x.
18614         * tests/test-atanl.c (x): New variable.
18615         (main): Store argument in x and fetch it from x.
18616         * tests/test-cosl.c (x): New variable.
18617         (main): Store argument in x and fetch it from x.
18618         * tests/test-expl.c (x): New variable.
18619         (main): Store argument in x and fetch it from x.
18620         * tests/test-logl.c (x): New variable.
18621         (main): Store argument in x and fetch it from x.
18622         * tests/test-sinl.c (x): New variable.
18623         (main): Store argument in x and fetch it from x.
18624         * tests/test-sqrtl.c (x): New variable.
18625         (main): Store argument in x and fetch it from x.
18626         * tests/test-tanl.c (x): New variable.
18627         (main): Store argument in x and fetch it from x.
18628
18629 2010-01-24  Bruno Haible  <bruno@clisp.org>
18630
18631         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18632         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18633         assignments to the initial TESTS_ENVIRONMENT.
18634         * doc/gnulib.texi (Unit test modules): Document it.
18635         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18636         TESTS_ENVIRONMENT.
18637         * modules/btowc-tests (Makefile.am): Likewise.
18638         * modules/c-stack-tests (Makefile.am): Likewise.
18639         * modules/c-strcase-tests (Makefile.am): Likewise.
18640         * modules/copy-file-tests (Makefile.am): Likewise.
18641         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18642         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18643         * modules/mbrtowc-tests (Makefile.am): Likewise.
18644         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18645         * modules/mbscasestr-tests (Makefile.am): Likewise.
18646         * modules/mbschr-tests (Makefile.am): Likewise.
18647         * modules/mbscspn-tests (Makefile.am): Likewise.
18648         * modules/mbsinit-tests (Makefile.am): Likewise.
18649         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18650         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18651         * modules/mbspbrk-tests (Makefile.am): Likewise.
18652         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18653         * modules/mbsrchr-tests (Makefile.am): Likewise.
18654         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18655         * modules/mbsspn-tests (Makefile.am): Likewise.
18656         * modules/mbsstr-tests (Makefile.am): Likewise.
18657         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18658         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18659         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18660         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18661         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18662         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18663         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18664         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18665         * modules/wcrtomb-tests (Makefile.am): Likewise.
18666         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18667         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18668         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18669         assignments from TESTS_ENVIRONMENT.
18670         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18671         augmentation.
18672         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18673         * modules/atexit-tests (Makefile.am): Likewise.
18674         * modules/binary-io-tests (Makefile.am): Likewise.
18675         * modules/closein-tests (Makefile.am): Likewise.
18676         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18677         * modules/exclude-tests (Makefile.am): Likewise.
18678         * modules/fflush-tests (Makefile.am): Likewise.
18679         * modules/fpending-tests (Makefile.am): Likewise.
18680         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18681         * modules/freadahead-tests (Makefile.am): Likewise.
18682         * modules/freadptr-tests (Makefile.am): Likewise.
18683         * modules/freadseek-tests (Makefile.am): Likewise.
18684         * modules/fseek-tests (Makefile.am): Likewise.
18685         * modules/fseeko-tests (Makefile.am): Likewise.
18686         * modules/ftell-tests (Makefile.am): Likewise.
18687         * modules/ftello-tests (Makefile.am): Likewise.
18688         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18689         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18690         * modules/lseek-tests (Makefile.am): Likewise.
18691         * modules/parse-duration-tests (Makefile.am): Likewise.
18692         * modules/perror-tests (Makefile.am): Likewise.
18693         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18694         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18695         * modules/pipe-tests (Makefile.am): Likewise.
18696         * modules/pread-tests (Makefile.am): Likewise.
18697         * modules/printf-posix-tests (Makefile.am): Likewise.
18698         * modules/select-tests (Makefile.am): Likewise.
18699         * modules/sigpipe-tests (Makefile.am): Likewise.
18700         * modules/tsearch-tests (Makefile.am): Likewise.
18701         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18702         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18703         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18704         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18705         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18706         * modules/version-etc-tests (Makefile.am): Likewise.
18707         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18708         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18709         * modules/xalloc-die-tests (Makefile.am): Likewise.
18710         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18711         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18712         * modules/xstrtol-tests (Makefile.am): Likewise.
18713         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18714         * modules/yesno-tests (Makefile.am): Likewise.
18715         Suggested by Jim Meyering.
18716
18717 2010-01-24  Bruno Haible  <bruno@clisp.org>
18718
18719         More documentation.
18720         * doc/gnulib.texi (Writing modules): New chapter.
18721         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18722         the new chapter.
18723
18724 2010-01-24  Jim Meyering  <meyering@redhat.com>
18725
18726         maint.mk: do not prepend "./" after filtering
18727         * top/maint.mk (_prepend_srcdir_prefix): New variable
18728         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18729         "./" when $(srcdir) is ".".
18730
18731         define STREQ(a,b) consistently, removing useless parentheses
18732         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18733         since the only risk is that "a" or "b" contains an unparenthesized
18734         comma, but if either did that, STREQ would have 3 or more arguments.
18735         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18736         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18737         * lib/hash-triple.c (STREQ): Likewise.
18738         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18739         * lib/getugroups.c (STREQ): Likewise.
18740
18741 2010-01-23  Jim Meyering  <meyering@redhat.com>
18742
18743         maint.mk: fix syntax-check in a non-srcdir build directory
18744         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18745         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18746
18747 2010-01-22  Jim Meyering  <meyering@redhat.com>
18748
18749         userspec: add unit tests
18750         * tests/test-userspec.c: New file.
18751         * modules/userspec-tests: Likewise.
18752
18753 2010-01-21  Jim Meyering  <meyering@redhat.com>
18754
18755         maint.mk: handle source file names containing "." robustly
18756         * top/maint.mk (_dot_escaped_srcdir): Define.
18757         (VC_LIST): Use it in LHS of sed substitution.
18758
18759 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18760
18761         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18762         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18763         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18764         from a non-srcdir build.
18765
18766 2010-01-20  Eric Blake  <ebb9@byu.net>
18767
18768         warn-on-use: use instead of link-warning
18769         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18770         * modules/unistd (Depends-on, Makefile.am): Likewise.
18771         * modules/arpa_inet (Depends-on): Replace link-warning with
18772         warn-on-use.
18773         (Makefile.am): Update rules accordingly.
18774         * modules/ctype (Depends-on, Makefile.am): Likewise.
18775         * modules/dirent (Depends-on, Makefile.am): Likewise.
18776         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18777         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18778         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18779         * modules/locale (Depends-on, Makefile.am): Likewise.
18780         * modules/math (Depends-on, Makefile.am): Likewise.
18781         * modules/search (Depends-on, Makefile.am): Likewise.
18782         * modules/signal (Depends-on, Makefile.am): Likewise.
18783         * modules/spawn (Depends-on, Makefile.am): Likewise.
18784         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18785         * modules/string (Depends-on, Makefile.am): Likewise.
18786         * modules/strings (Depends-on, Makefile.am): Likewise.
18787         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18788         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18789         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18790         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18791         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18792         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18793         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18794         * modules/wchar (Depends-on, Makefile.am): Likewise.
18795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18796         should be poisoned.
18797         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18798         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18799         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18801         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18802         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18803         * m4/math_h.m4 (gl_MATH_H): Likewise.
18804         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18805         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18806         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18807         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18808         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18810         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18818         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18819         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18820         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18821         GL_LINK_WARNING.
18822         * lib/ctype.in.h: Likewise.
18823         * lib/dirent.in.h: Likewise.
18824         * lib/fcntl.in.h: Likewise.
18825         * lib/inttypes.in.h: Likewise.
18826         * lib/langinfo.in.h: Likewise.
18827         * lib/locale.in.h: Likewise.
18828         * lib/math.in.h: Likewise.
18829         * lib/search.in.h: Likewise.
18830         * lib/signal.in.h: Likewise.
18831         * lib/spawn.in.h: Likewise.
18832         * lib/stdio.in.h: Likewise.
18833         * lib/stdlib.in.h: Likewise.
18834         * lib/string.in.h: Likewise.
18835         * lib/strings.in.h: Likewise.
18836         * lib/sys_file.in.h: Likewise.
18837         * lib/sys_ioctl.in.h: Likewise.
18838         * lib/sys_select.in.h: Likewise.
18839         * lib/sys_socket.in.h: Likewise.
18840         * lib/sys_stat.in.h: Likewise.
18841         * lib/sys_times.in.h: Likewise.
18842         * lib/sys_utsname.in.h: Likewise.
18843         * lib/unistd.in.h: Likewise.
18844         * lib/wchar.in.h: Likewise.
18845
18846 2010-01-20  Bruno Haible  <bruno@clisp.org>
18847
18848         Avoid duplicate -lm.
18849         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18850         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18852         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18853         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18854         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18855         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18856         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18857         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18858         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18859         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18860         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18861         Reported by Paolo Bonzini.
18862
18863 2010-01-19  Bruno Haible  <bruno@clisp.org>
18864
18865         langinfo, nl_langinfo: Relicense under LGPLv2+.
18866         * modules/langinfo (License): Change to LGPLv2+.
18867         * modules/nl_langinfo (License): Likewise.
18868         Patch by David Lutterkort <lutter@redhat.com>.
18869
18870 2010-01-19  Bruno Haible  <bruno@clisp.org>
18871
18872         Avoid compilation error with cc on OSF/1 5.1.
18873         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18874         statement, not before.
18875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18876
18877 2010-01-18  Bruno Haible  <bruno@clisp.org>
18878
18879         Avoid a link error due to the __printf__ symbol.
18880         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18881         and 2.6.x.
18882         (__format__, __printf__): Remove definitions.
18883         * lib/argp-fmtstream.h: Likewise.
18884         * lib/argp.h: Likewise.
18885         * lib/error.h: Likewise.
18886         * lib/vasnprintf.h: Likewise.
18887         * lib/xprintf.h: Likewise.
18888         * lib/xvasprintf.h: Likewise.
18889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18890
18891 2010-01-18  Bruno Haible  <bruno@clisp.org>
18892
18893         Tests for module 'tanl'.
18894         * modules/tanl-tests: New file.
18895         * tests/test-tanl.c: New file.
18896
18897         Tests for module 'sqrtl'.
18898         * modules/sqrtl-tests: New file.
18899         * tests/test-sqrtl.c: New file.
18900
18901         Tests for module 'sinl'.
18902         * modules/sinl-tests: New file.
18903         * tests/test-sinl.c: New file.
18904
18905         Tests for module 'logl'.
18906         * modules/logl-tests: New file.
18907         * tests/test-logl.c: New file.
18908
18909         Tests for module 'expl'.
18910         * modules/expl-tests: New file.
18911         * tests/test-expl.c: New file.
18912
18913         Tests for module 'cosl'.
18914         * modules/cosl-tests: New file.
18915         * tests/test-cosl.c: New file.
18916
18917         Tests for module 'atanl'.
18918         * modules/atanl-tests: New file.
18919         * tests/test-atanl.c: New file.
18920
18921         Tests for module 'asinl'.
18922         * modules/asinl-tests: New file.
18923         * tests/test-asinl.c: New file.
18924
18925         Tests for module 'acosl'.
18926         * modules/acosl-tests: New file.
18927         * tests/test-acosl.c: New file.
18928
18929         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18930         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18931         tanl): Use the standard gnulib idiom.
18932         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18933         * lib/sinl.c: Likewise.
18934         * lib/tanl.c: Don't include trigl.c.
18935         (kernel_tanl): Make static.
18936         * lib/sincosl.c: Include trigl.h first.
18937         * lib/trigl.c: Likewise.
18938         * m4/acosl.m4: New file.
18939         * m4/asinl.m4: New file.
18940         * m4/atanl.m4: New file.
18941         * m4/cosl.m4: New file.
18942         * m4/expl.m4: New file.
18943         * m4/logl.m4: New file.
18944         * m4/sinl.m4: New file.
18945         * m4/sqrtl.m4: New file.
18946         * m4/tanl.m4: New file.
18947         * m4/mathl.m4: Remove file.
18948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18949         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18950         Don't initialize GNULIB_MATHL.
18951         * modules/acosl: New file.
18952         * modules/asinl: New file.
18953         * modules/atanl: New file.
18954         * modules/cosl: New file.
18955         * modules/expl: New file.
18956         * modules/logl: New file.
18957         * modules/sinl: New file.
18958         * modules/sqrtl: New file.
18959         * modules/tanl: New file.
18960         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18961         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18962         substitute GNULIB_MATHL.
18963         * modules/mathl: Rewritten.
18964         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18965         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18966         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18967         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18968         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18969         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18970         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18971         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18972         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18973
18974 2010-01-18  Bruno Haible  <bruno@clisp.org>
18975
18976         sqrt: Make gl_FUNC_SQRT requirable.
18977         * m4/sqrt.m4: New file.
18978         * modules/sqrt (Files): Add it.
18979         (configure.ac): Invoke gl_FUNC_SQRT.
18980
18981 2010-01-18  Bruno Haible  <bruno@clisp.org>
18982
18983         New modules for common <math.h> functions.
18984         * m4/mathfunc.m4: New file.
18985         * modules/acos: New file.
18986         * modules/asin: New file.
18987         * modules/atan: New file.
18988         * modules/atan2: New file.
18989         * modules/cbrt: New file.
18990         * modules/copysign: New file.
18991         * modules/cos: New file.
18992         * modules/cosh: New file.
18993         * modules/erf: New file.
18994         * modules/erfc: New file.
18995         * modules/exp: New file.
18996         * modules/fabs: New file.
18997         * modules/fmod: New file.
18998         * modules/hypot: New file.
18999         * modules/j0: New file.
19000         * modules/j1: New file.
19001         * modules/jn: New file.
19002         * modules/ldexp: New file.
19003         * modules/lgamma: New file.
19004         * modules/log: New file.
19005         * modules/log10: New file.
19006         * modules/log1p: New file.
19007         * modules/logb: New file.
19008         * modules/modf: New file.
19009         * modules/nextafter: New file.
19010         * modules/pow: New file.
19011         * modules/remainder: New file.
19012         * modules/rint: New file.
19013         * modules/sin: New file.
19014         * modules/sinh: New file.
19015         * modules/sqrt: New file.
19016         * modules/tan: New file.
19017         * modules/tanh: New file.
19018         * modules/y0: New file.
19019         * modules/y1: New file.
19020         * modules/yn: New file.
19021         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19022         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19023         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19024         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19025         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19026         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19027         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19028         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19029         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19030         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19031         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19032         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19033         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19034         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19035         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19036         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19037         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19038         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19039         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19040         * doc/posix-functions/log.texi: Mention the 'log' module.
19041         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19042         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19043         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19044         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19045         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19046         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19047         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19048         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19049         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19050         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19051         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19052         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19053         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19054         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19055         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19056         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19057
19058 2010-01-18  Jim Meyering  <meyering@redhat.com>
19059
19060         ignore-value: relax license to LGPLv2+
19061         * modules/ignore-value (License): Relax to LGPLv2+.
19062
19063         getdate: don't leak when TZ contains two or more '"'s
19064         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19065         double quote in TZ after the first one.
19066
19067         readtokens: do not leak internal token_lengths buffer
19068         * lib/readtokens.c (readtokens): Free the local, lengths,
19069         when the supplied "token_lengths" parameter is NULL.
19070
19071 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19072
19073         Fix a couple of missing LIBTHREAD link failures on AIX.
19074         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19075         $(LIBTHREAD).
19076         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19077
19078         Link test-poll against INET_PTON_LIB.
19079         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19080         for inet_pton on Solaris 10.
19081
19082 2010-01-17  Bruno Haible  <bruno@clisp.org>
19083
19084         unistdio/*-sprintf: Fix typo in module description.
19085         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19086         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19087         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19088         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19089         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19090         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19091         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19093
19094 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19095
19096         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19097         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19098         variables in shell case patterns, for AIX and HP-UX ksh.
19099
19100         Split large sed scripts, for HP-UX sed.
19101         * modules/stdio: Split sed scripts around 50 sed commands,
19102         to avoid HP-UX limit of 99 commands, in the near future.
19103         * modules/string: Likewise.
19104         * modules/unistd: Likewise.
19105
19106         gnulib-tool: avoid writing in the current directory.
19107         * gnulib-tool (func_emit_lib_Makefile_am)
19108         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19109         not in the current directory, so concurrent gnulib-tool
19110         instances do not interfere.
19111
19112 2010-01-16  Jim Meyering  <meyering@redhat.com>
19113
19114         doc: update users.txt
19115         * users.txt: Add grep.
19116         (diffutils, gzip): Update URLs.
19117
19118 2010-01-12  Bruno Haible  <bruno@clisp.org>
19119
19120         posix_spawn: Avoid test failure on Cygwin.
19121         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19122         characters.
19123         Reported by Simon Josefsson.
19124
19125 2010-01-12  Bruno Haible  <bruno@clisp.org>
19126
19127         * tests/test-cond.c (main): When skipping the test, show the reason.
19128
19129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19130
19131         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19132
19133 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19134
19135         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19136         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19137
19138 2010-01-12  Eric Blake  <ebb9@byu.net>
19139
19140         build: guarantee AS_VAR_IF
19141         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19142         (gl_AS_VAR_IF): Move...
19143         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19144         Reported by Simon Josefsson.
19145
19146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19147
19148         * lib/stdio.in.h: Fix typo.
19149
19150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19151
19152         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19153         libgpg-error.
19154
19155 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19156
19157         * tests/test-xalloc-die.sh: Use $EXEEXT.
19158
19159 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19160             Bruno Haible  <bruno@clisp.org>
19161
19162         getlogin, getlogin_r: Avoid test failure.
19163         * tests/test-getlogin.c: Include <stdio.h>.
19164         (main): Skip the test when the function fails because stdin is not a
19165         tty.
19166         * tests/test-getlogin_r.c: Include <stdio.h>.
19167         (main): Skip the test when the function fails because stdin is not a
19168         tty.
19169
19170 2010-01-11  Eric Blake  <ebb9@byu.net>
19171
19172         tests: avoid more large file warnings
19173         * tests/test-fflush.c: Avoid warning about ftell use.
19174         * tests/test-fseek.c: Avoid warning about fseek use.
19175
19176 2010-01-10  Bruno Haible  <bruno@clisp.org>
19177
19178         nproc: Work better on Linux when /proc and /sys are not mounted.
19179         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19180         as lower bound when, on glibc/Linux systems,
19181         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19182         Suggested by Pádraig Brady <P@draigbrady.com>.
19183         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19184
19185         nproc: Refactor.
19186         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19187         extracted from num_processors.
19188         (num_processors): Call it.
19189
19190 2010-01-11  Jim Meyering  <meyering@redhat.com>
19191
19192         utimecmp: avoid new warning from upcoming gcc-4.5.0
19193         * lib/utimecmp.c (BILLION): Define using #define rather than an
19194         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19195
19196 2010-01-11  Eric Blake  <ebb9@byu.net>
19197
19198         math: add portability warnings for classification macros
19199         * modules/math (Depends-on): Add warn-on-use.
19200         (Makefile.am): Provide new substitutions.
19201         * m4/math_h.m4 (gl_MATH_H): Require inline.
19202         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19203         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19204         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19205         implement warnings.
19206
19207         unistd: warn on use of environ without module
19208         * modules/unistd (Depends-on): Add warn-on-use.
19209         (Makefile.am): Provide new substitutions.
19210         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19211         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19212
19213         stdio: warn on suspicious uses
19214         * modules/stdio (Depends-on): Add warn-on-use.
19215         (Makefile.am): Provide new substitutions.
19216         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19217         fseeko.
19218         * lib/stdio.in.h (gets): Always warn on use.
19219         (fseek, ftell): Adjust when warnings are issued, and honor
19220         _GL_NO_LARGE_FILES as a way to silence the warning.
19221         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19222         any warning about large file offsets.
19223         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19224         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19225         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19226         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19227         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19228         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19229         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19230         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19231
19232         warn-on-use: new module
19233         * modules/warn-on-use: New file.
19234         * build-aux/warn-on-use.h: Likewise.
19235         * m4/warn-on-use.m4: Likewise.
19236         * MODULES.html.sh (Support for building): Mention it.
19237
19238 2010-01-10  Bruno Haible  <bruno@clisp.org>
19239
19240         Tests for module 'unistr/u32-strdup'.
19241         * modules/unistr/u32-strdup-tests: New file.
19242         * tests/unistr/test-u32-strdup.c: New file.
19243
19244         Tests for module 'unistr/u16-strdup'.
19245         * modules/unistr/u16-strdup-tests: New file.
19246         * tests/unistr/test-u16-strdup.c: New file.
19247
19248         Tests for module 'unistr/u8-strdup'.
19249         * modules/unistr/u8-strdup-tests: New file.
19250         * tests/unistr/test-u8-strdup.c: New file.
19251         * tests/unistr/test-strdup.h: New file.
19252
19253         Tests for module 'unistr/u32-strncmp'.
19254         * modules/unistr/u32-strncmp-tests: New file.
19255         * tests/unistr/test-u32-strncmp.c: New file.
19256
19257         Tests for module 'unistr/u16-strncmp'.
19258         * modules/unistr/u16-strncmp-tests: New file.
19259         * tests/unistr/test-u16-strncmp.c: New file.
19260
19261         Tests for module 'unistr/u8-strncmp'.
19262         * modules/unistr/u8-strncmp-tests: New file.
19263         * tests/unistr/test-u8-strncmp.c: New file.
19264         * tests/unistr/test-strncmp.h: New file.
19265
19266         Tests for module 'unistr/u32-strcoll'.
19267         * modules/unistr/u32-strcoll-tests: New file.
19268         * tests/unistr/test-u32-strcoll.c: New file.
19269
19270         Tests for module 'unistr/u16-strcoll'.
19271         * modules/unistr/u16-strcoll-tests: New file.
19272         * tests/unistr/test-u16-strcoll.c: New file.
19273
19274         Tests for module 'unistr/u8-strcoll'.
19275         * modules/unistr/u8-strcoll-tests: New file.
19276         * tests/unistr/test-u8-strcoll.c: New file.
19277
19278         Tests for module 'unistr/u32-strcmp'.
19279         * modules/unistr/u32-strcmp-tests: New file.
19280         * tests/unistr/test-u32-strcmp.c: New file.
19281         * tests/unistr/test-u32-strcmp.h: New file.
19282
19283         Tests for module 'unistr/u16-strcmp'.
19284         * modules/unistr/u16-strcmp-tests: New file.
19285         * tests/unistr/test-u16-strcmp.c: New file.
19286         * tests/unistr/test-u16-strcmp.h: New file.
19287
19288         Tests for module 'unistr/u8-strcmp'.
19289         * modules/unistr/u8-strcmp-tests: New file.
19290         * tests/unistr/test-u8-strcmp.c: New file.
19291         * tests/unistr/test-u8-strcmp.h: New file.
19292         * tests/unistr/test-strcmp.h: New file.
19293
19294         Tests for module 'unistr/u32-strncat'.
19295         * modules/unistr/u32-strncat-tests: New file.
19296         * tests/unistr/test-u32-strncat.c: New file.
19297
19298         Tests for module 'unistr/u16-strncat'.
19299         * modules/unistr/u16-strncat-tests: New file.
19300         * tests/unistr/test-u16-strncat.c: New file.
19301
19302         Tests for module 'unistr/u8-strncat'.
19303         * modules/unistr/u8-strncat-tests: New file.
19304         * tests/unistr/test-u8-strncat.c: New file.
19305         * tests/unistr/test-strncat.h: New file.
19306
19307         Tests for module 'unistr/u32-strcat'.
19308         * modules/unistr/u32-strcat-tests: New file.
19309         * tests/unistr/test-u32-strcat.c: New file.
19310
19311         Tests for module 'unistr/u16-strcat'.
19312         * modules/unistr/u16-strcat-tests: New file.
19313         * tests/unistr/test-u16-strcat.c: New file.
19314
19315         Tests for module 'unistr/u8-strcat'.
19316         * modules/unistr/u8-strcat-tests: New file.
19317         * tests/unistr/test-u8-strcat.c: New file.
19318         * tests/unistr/test-strcat.h: New file.
19319
19320         Tests for module 'unistr/u32-stpncpy'.
19321         * modules/unistr/u32-stpncpy-tests: New file.
19322         * tests/unistr/test-u32-stpncpy.c: New file.
19323
19324         Tests for module 'unistr/u16-stpncpy'.
19325         * modules/unistr/u16-stpncpy-tests: New file.
19326         * tests/unistr/test-u16-stpncpy.c: New file.
19327
19328         Tests for module 'unistr/u8-stpncpy'.
19329         * modules/unistr/u8-stpncpy-tests: New file.
19330         * tests/unistr/test-u8-stpncpy.c: New file.
19331         * tests/unistr/test-stpncpy.h: New file.
19332
19333         Tests for module 'unistr/u32-strncpy'.
19334         * modules/unistr/u32-strncpy-tests: New file.
19335         * tests/unistr/test-u32-strncpy.c: New file.
19336
19337         Tests for module 'unistr/u16-strncpy'.
19338         * modules/unistr/u16-strncpy-tests: New file.
19339         * tests/unistr/test-u16-strncpy.c: New file.
19340
19341         Tests for module 'unistr/u8-strncpy'.
19342         * modules/unistr/u8-strncpy-tests: New file.
19343         * tests/unistr/test-u8-strncpy.c: New file.
19344         * tests/unistr/test-strncpy.h: New file.
19345
19346         Tests for module 'unistr/u32-stpcpy'.
19347         * modules/unistr/u32-stpcpy-tests: New file.
19348         * tests/unistr/test-u32-stpcpy.c: New file.
19349
19350         Tests for module 'unistr/u16-stpcpy'.
19351         * modules/unistr/u16-stpcpy-tests: New file.
19352         * tests/unistr/test-u16-stpcpy.c: New file.
19353
19354         Tests for module 'unistr/u8-stpcpy'.
19355         * modules/unistr/u8-stpcpy-tests: New file.
19356         * tests/unistr/test-u8-stpcpy.c: New file.
19357         * tests/unistr/test-stpcpy.h: New file.
19358
19359         Tests for module 'unistr/u32-strcpy'.
19360         * modules/unistr/u32-strcpy-tests: New file.
19361         * tests/unistr/test-u32-strcpy.c: New file.
19362
19363         Tests for module 'unistr/u16-strcpy'.
19364         * modules/unistr/u16-strcpy-tests: New file.
19365         * tests/unistr/test-u16-strcpy.c: New file.
19366
19367         Tests for module 'unistr/u8-strcpy'.
19368         * modules/unistr/u8-strcpy-tests: New file.
19369         * tests/unistr/test-u8-strcpy.c: New file.
19370         * tests/unistr/test-strcpy.h: New file.
19371
19372         Tests for module 'unistr/u32-strnlen'.
19373         * modules/unistr/u32-strnlen-tests: New file.
19374         * tests/unistr/test-u32-strnlen.c: New file.
19375
19376         Tests for module 'unistr/u16-strnlen'.
19377         * modules/unistr/u16-strnlen-tests: New file.
19378         * tests/unistr/test-u16-strnlen.c: New file.
19379
19380         Tests for module 'unistr/u8-strnlen'.
19381         * modules/unistr/u8-strnlen-tests: New file.
19382         * tests/unistr/test-u8-strnlen.c: New file.
19383         * tests/unistr/test-strnlen.h: New file.
19384
19385         Tests for module 'unistr/u32-strlen'.
19386         * modules/unistr/u32-strlen-tests: New file.
19387         * tests/unistr/test-u32-strlen.c: New file.
19388
19389         Tests for module 'unistr/u16-strlen'.
19390         * modules/unistr/u16-strlen-tests: New file.
19391         * tests/unistr/test-u16-strlen.c: New file.
19392
19393         Tests for module 'unistr/u8-strlen'.
19394         * modules/unistr/u8-strlen-tests: New file.
19395         * tests/unistr/test-u8-strlen.c: New file.
19396
19397         Tests for module 'unistr/u32-prev'.
19398         * modules/unistr/u32-prev-tests: New file.
19399         * tests/unistr/test-u32-prev.c: New file.
19400
19401         Tests for module 'unistr/u16-prev'.
19402         * modules/unistr/u16-prev-tests: New file.
19403         * tests/unistr/test-u16-prev.c: New file.
19404
19405         Tests for module 'unistr/u8-prev'.
19406         * modules/unistr/u8-prev-tests: New file.
19407         * tests/unistr/test-u8-prev.c: New file.
19408
19409         Tests for module 'unistr/u32-next'.
19410         * modules/unistr/u32-next-tests: New file.
19411         * tests/unistr/test-u32-next.c: New file.
19412
19413         Tests for module 'unistr/u16-next'.
19414         * modules/unistr/u16-next-tests: New file.
19415         * tests/unistr/test-u16-next.c: New file.
19416
19417         Tests for module 'unistr/u8-next'.
19418         * modules/unistr/u8-next-tests: New file.
19419         * tests/unistr/test-u8-next.c: New file.
19420
19421         Tests for module 'unistr/u32-strmbtouc'.
19422         * modules/unistr/u32-strmbtouc-tests: New file.
19423         * tests/unistr/test-u32-strmbtouc.c: New file.
19424
19425         Tests for module 'unistr/u16-strmbtouc'.
19426         * modules/unistr/u16-strmbtouc-tests: New file.
19427         * tests/unistr/test-u16-strmbtouc.c: New file.
19428
19429         Tests for module 'unistr/u8-strmbtouc'.
19430         * modules/unistr/u8-strmbtouc-tests: New file.
19431         * tests/unistr/test-u8-strmbtouc.c: New file.
19432
19433         Tests for module 'unistr/u32-strmblen'.
19434         * modules/unistr/u32-strmblen-tests: New file.
19435         * tests/unistr/test-u32-strmblen.c: New file.
19436
19437         Tests for module 'unistr/u16-strmblen'.
19438         * modules/unistr/u16-strmblen-tests: New file.
19439         * tests/unistr/test-u16-strmblen.c: New file.
19440
19441         Tests for module 'unistr/u8-strmblen'.
19442         * modules/unistr/u8-strmblen-tests: New file.
19443         * tests/unistr/test-u8-strmblen.c: New file.
19444
19445         Tests for module 'unistr/u32-cpy-alloc'.
19446         * modules/unistr/u32-cpy-alloc-tests: New file.
19447         * tests/unistr/test-u32-cpy-alloc.c: New file.
19448
19449         Tests for module 'unistr/u16-cpy-alloc'.
19450         * modules/unistr/u16-cpy-alloc-tests: New file.
19451         * tests/unistr/test-u16-cpy-alloc.c: New file.
19452
19453         Tests for module 'unistr/u8-cpy-alloc'.
19454         * modules/unistr/u8-cpy-alloc-tests: New file.
19455         * tests/unistr/test-u8-cpy-alloc.c: New file.
19456         * tests/unistr/test-cpy-alloc.h: New file.
19457
19458         Tests for module 'unistr/u32-mbsnlen'.
19459         * modules/unistr/u32-mbsnlen-tests: New file.
19460         * tests/unistr/test-u32-mbsnlen.c: New file.
19461
19462         Tests for module 'unistr/u16-mbsnlen'.
19463         * modules/unistr/u16-mbsnlen-tests: New file.
19464         * tests/unistr/test-u16-mbsnlen.c: New file.
19465
19466         Tests for module 'unistr/u8-mbsnlen'.
19467         * modules/unistr/u8-mbsnlen-tests: New file.
19468         * tests/unistr/test-u8-mbsnlen.c: New file.
19469
19470         Tests for module 'unistr/u32-chr'.
19471         * modules/unistr/u32-chr-tests: New file.
19472         * tests/unistr/test-u32-chr.c: New file.
19473
19474         Tests for module 'unistr/u16-chr'.
19475         * modules/unistr/u16-chr-tests: New file.
19476         * tests/unistr/test-u16-chr.c: New file.
19477
19478         Tests for module 'unistr/u8-chr'.
19479         * modules/unistr/u8-chr-tests: New file.
19480         * tests/unistr/test-u8-chr.c: New file.
19481         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19482
19483         Tests for module 'unistr/u32-cmp2'.
19484         * modules/unistr/u32-cmp2-tests: New file.
19485         * tests/unistr/test-u32-cmp2.c: New file.
19486
19487         Tests for module 'unistr/u16-cmp2'.
19488         * modules/unistr/u16-cmp2-tests: New file.
19489         * tests/unistr/test-u16-cmp2.c: New file.
19490
19491         Tests for module 'unistr/u8-cmp2'.
19492         * modules/unistr/u8-cmp2-tests: New file.
19493         * tests/unistr/test-u8-cmp2.c: New file.
19494         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19495
19496         Tests for module 'unistr/u32-cmp'.
19497         * modules/unistr/u32-cmp-tests: New file.
19498         * tests/unistr/test-u32-cmp.c: New file.
19499
19500         Tests for module 'unistr/u16-cmp'.
19501         * modules/unistr/u16-cmp-tests: New file.
19502         * tests/unistr/test-u16-cmp.c: New file.
19503
19504         Tests for module 'unistr/u8-cmp'.
19505         * modules/unistr/u8-cmp-tests: New file.
19506         * tests/unistr/test-u8-cmp.c: New file.
19507         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19508
19509         Tests for module 'unistr/u32-set'.
19510         * modules/unistr/u32-set-tests: New file.
19511         * tests/unistr/test-u32-set.c: New file.
19512
19513         Tests for module 'unistr/u16-set'.
19514         * modules/unistr/u16-set-tests: New file.
19515         * tests/unistr/test-u16-set.c: New file.
19516
19517         Tests for module 'unistr/u8-set'.
19518         * modules/unistr/u8-set-tests: New file.
19519         * tests/unistr/test-u8-set.c: New file.
19520         * tests/unistr/test-set.h: New file.
19521
19522         Tests for module 'unistr/u32-move'.
19523         * modules/unistr/u32-move-tests: New file.
19524         * tests/unistr/test-u32-move.c: New file.
19525
19526         Tests for module 'unistr/u16-move'.
19527         * modules/unistr/u16-move-tests: New file.
19528         * tests/unistr/test-u16-move.c: New file.
19529
19530         Tests for module 'unistr/u8-move'.
19531         * modules/unistr/u8-move-tests: New file.
19532         * tests/unistr/test-u8-move.c: New file.
19533         * tests/unistr/test-move.h: New file.
19534
19535         Tests for module 'unistr/u32-cpy'.
19536         * modules/unistr/u32-cpy-tests: New file.
19537         * tests/unistr/test-u32-cpy.c: New file.
19538
19539         Tests for module 'unistr/u16-cpy'.
19540         * modules/unistr/u16-cpy-tests: New file.
19541         * tests/unistr/test-u16-cpy.c: New file.
19542
19543         Tests for module 'unistr/u8-cpy'.
19544         * modules/unistr/u8-cpy-tests: New file.
19545         * tests/unistr/test-u8-cpy.c: New file.
19546         * tests/unistr/test-cpy.h: New file.
19547
19548 2010-01-09  Bruno Haible  <bruno@clisp.org>
19549
19550         Tests for module 'unistr/u32-uctomb'.
19551         * modules/unistr/u32-uctomb-tests: New file.
19552         * tests/unistr/test-u32-uctomb.c: New file.
19553
19554         Tests for module 'unistr/u16-uctomb'.
19555         * modules/unistr/u16-uctomb-tests: New file.
19556         * tests/unistr/test-u16-uctomb.c: New file.
19557
19558         Tests for module 'unistr/u8-uctomb'.
19559         * modules/unistr/u8-uctomb-tests: New file.
19560         * tests/unistr/test-u8-uctomb.c: New file.
19561
19562         Tests for module 'unistr/u32-mbtoucr'.
19563         * modules/unistr/u32-mbtoucr-tests: New file.
19564         * tests/unistr/test-u32-mbtoucr.c: New file.
19565
19566         Tests for module 'unistr/u16-mbtoucr'.
19567         * modules/unistr/u16-mbtoucr-tests: New file.
19568         * tests/unistr/test-u16-mbtoucr.c: New file.
19569
19570         Tests for module 'unistr/u8-mbtoucr'.
19571         * modules/unistr/u8-mbtoucr-tests: New file.
19572         * tests/unistr/test-u8-mbtoucr.c: New file.
19573
19574         Tests for module 'unistr/u32-mbtouc'.
19575         * modules/unistr/u32-mbtouc-tests: New file.
19576         * tests/unistr/test-u32-mbtouc.c: New file.
19577
19578         Tests for module 'unistr/u16-mbtouc'.
19579         * modules/unistr/u16-mbtouc-tests: New file.
19580         * tests/unistr/test-u16-mbtouc.c: New file.
19581
19582         Tests for module 'unistr/u8-mbtouc'.
19583         * modules/unistr/u8-mbtouc-tests: New file.
19584         * tests/unistr/test-u8-mbtouc.c: New file.
19585
19586         Tests for module 'unistr/u32-mbtouc-unsafe'.
19587         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19588         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19589         * tests/unistr/test-u32-mbtouc.h: New file.
19590
19591         Tests for module 'unistr/u16-mbtouc-unsafe'.
19592         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19593         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19594         * tests/unistr/test-u16-mbtouc.h: New file.
19595
19596         Tests for module 'unistr/u8-mbtouc-unsafe'.
19597         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19598         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19599         * tests/unistr/test-u8-mbtouc.h: New file.
19600
19601         Tests for module 'unistr/u32-mblen'.
19602         * modules/unistr/u32-mblen-tests: New file.
19603         * tests/unistr/test-u32-mblen.c: New file.
19604
19605         Tests for module 'unistr/u16-mblen'.
19606         * modules/unistr/u16-mblen-tests: New file.
19607         * tests/unistr/test-u16-mblen.c: New file.
19608
19609         Tests for module 'unistr/u8-mblen'.
19610         * modules/unistr/u8-mblen-tests: New file.
19611         * tests/unistr/test-u8-mblen.c: New file.
19612
19613         Tests for module 'unistr/u32-to-u16'.
19614         * modules/unistr/u32-to-u16-tests: New file.
19615         * tests/unistr/test-u32-to-u16.c: New file.
19616
19617         Tests for module 'unistr/u32-to-u8'.
19618         * modules/unistr/u32-to-u8-tests: New file.
19619         * tests/unistr/test-u32-to-u8.c: New file.
19620
19621         Tests for module 'unistr/u16-to-u32'.
19622         * modules/unistr/u16-to-u32-tests: New file.
19623         * tests/unistr/test-u16-to-u32.c: New file.
19624
19625         Tests for module 'unistr/u16-to-u8'.
19626         * modules/unistr/u16-to-u8-tests: New file.
19627         * tests/unistr/test-u16-to-u8.c: New file.
19628
19629         Tests for module 'unistr/u8-to-u32'.
19630         * modules/unistr/u8-to-u32-tests: New file.
19631         * tests/unistr/test-u8-to-u32.c: New file.
19632
19633         Tests for module 'unistr/u8-to-u16'.
19634         * modules/unistr/u8-to-u16-tests: New file.
19635         * tests/unistr/test-u8-to-u16.c: New file.
19636
19637         Tests for module 'unistr/u32-check'.
19638         * modules/unistr/u32-check-tests: New file.
19639         * tests/unistr/test-u32-check.c: New file.
19640
19641         Tests for module 'unistr/u16-check'.
19642         * modules/unistr/u16-check-tests: New file.
19643         * tests/unistr/test-u16-check.c: New file.
19644
19645         Tests for module 'unistr/u8-check'.
19646         * modules/unistr/u8-check-tests: New file.
19647         * tests/unistr/test-u8-check.c: New file.
19648
19649         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19650         (category_equals): New function.
19651         (main): Add more tests.
19652         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19653
19654         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19655
19656 2010-01-10  Bruno Haible  <bruno@clisp.org>
19657
19658         unistr/u*-strcoll: Try harder to distinguish different strings.
19659         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19660         compare s1 and s2 to see if they are different.
19661
19662 2010-01-10  Bruno Haible  <bruno@clisp.org>
19663
19664         unistr/u*-stpncpy: Fix the return value.
19665         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19666         description of the return value consistent with stpncpy in glibc.
19667         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19668         written non-NUL unit.
19669
19670 2010-01-10  Bruno Haible  <bruno@clisp.org>
19671
19672         unistr/u*-next: Add missing dependencies.
19673         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19674         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19675         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19676
19677 2010-01-10  Bruno Haible  <bruno@clisp.org>
19678
19679         unistr/u8-mbsnlen: Fix return value for incomplete character.
19680         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19681         u8_mblen.
19682         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19683         Remove unistr/u8-mblen.
19684         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19685         u16_mblen.
19686         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19687         Remove unistr/u16-mblen.
19688
19689 2010-01-10  Bruno Haible  <bruno@clisp.org>
19690
19691         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19692         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19693         Reported by Brian Gough <bjg@gnu.org> and
19694         Chris Clayton <chris2553@googlemail.com> via
19695         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19696
19697 2010-01-09  Bruno Haible  <bruno@clisp.org>
19698
19699         unistr/u16-to-u32: Reject invalid input.
19700         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19701         u16_mbtouc.
19702         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19703         Remove unistr/u16-mbtouc.
19704
19705         unistr/u16-to-u8: Reject invalid input.
19706         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19707         u16_mbtouc.
19708         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19709         Remove unistr/u16-mbtouc.
19710
19711         unistr/u8-to-u32: Reject invalid input.
19712         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19713         u8_mbtouc.
19714         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19715         Remove unistr/u8-mbtouc.
19716
19717         unistr/u8-to-u16: Reject invalid input.
19718         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19719         u8_mbtouc.
19720         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19721         Remove unistr/u8-mbtouc.
19722
19723 2010-01-09  Bruno Haible  <bruno@clisp.org>
19724
19725         Tests for module 'getlogin'.
19726         * modules/getlogin-tests: New file.
19727         * tests/test-getlogin.c: New file.
19728
19729         New module 'getlogin'.
19730         * lib/unistd.in.h (getlogin): New declaration.
19731         * lib/getlogin.c: New file.
19732         * m4/getlogin.m4: New file.
19733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19734         HAVE_GETLOGIN.
19735         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19736         HAVE_GETLOGIN.
19737         * modules/getlogin: New file.
19738         * doc/posix-functions/getlogin.texi: Mention the new module.
19739         Reported by John W. Eaton <jwe@gnu.org>.
19740
19741 2010-01-09  Bruno Haible  <bruno@clisp.org>
19742
19743         getlogin_r: Support for native Windows.
19744         * lib/getlogin_r.c: Include <windows.h>
19745         (getlogin_r): Implement for native Windows.
19746         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19747         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19748         via John W. Eaton <jwe@gnu.org>.
19749
19750 2010-01-09  Bruno Haible  <bruno@clisp.org>
19751
19752         getlogin_r: Small fixes.
19753         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19754         succeeds.
19755         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19756         before testing whether getlogin_r is declared. No need to set
19757         HAVE_DECL_GETLOGIN_R to 1.
19758         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19759
19760 2010-01-09  Bruno Haible  <bruno@clisp.org>
19761
19762         * lib/unistd.in.h (getlogin_r): Add comment.
19763
19764 2010-01-09  Bruno Haible  <bruno@clisp.org>
19765
19766         Tests for module 'getlogin_r'.
19767         * modules/getlogin_r-tests: New file.
19768         * tests/test-getlogin_r.c: New file.
19769
19770 2010-01-09  Jim Meyering  <meyering@redhat.com>
19771
19772         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19773         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19774         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19775
19776 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19777
19778         * lib/dup2.c (rpl_dup2): Improve comment.
19779
19780 2010-01-08  Eric Blake  <ebb9@byu.net>
19781
19782         maint.mk: allow packages to add makefile @@ exceptions
19783         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19784         (sc_makefile_check): Rename...
19785         (sc_makefile_at_at_check): ...to this, and use hook.
19786
19787         dup2: work around mingw bug
19788         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19789         Reported by Simon Josefsson.
19790
19791 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19792
19793         glob: Fix C++ compilation.
19794         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19795         C++.
19796
19797 2010-01-07  Bruno Haible  <bruno@clisp.org>
19798
19799         Fix indentation of wctype.in.h, broken since 2007-01-06.
19800         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19801
19802 2010-01-07  Bruno Haible  <bruno@clisp.org>
19803
19804         mbslen: Avoid collision with system function.
19805         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19806         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19807         * m4/mbslen.m4: New file.
19808         * modules/mbslen (Files): Add it.
19809         (configure.ac): Invoke gl_MBSLEN.
19810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19811         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19812         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19813         via Ian Beckwith <ianb@erislabs.net>.
19814
19815 2010-01-07  Bruno Haible  <bruno@clisp.org>
19816
19817         dirent: Document the last fix.
19818         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19819
19820 2010-01-07  Bruno Haible  <bruno@clisp.org>
19821
19822         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19823         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19824         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19825         va_list are defined.
19826         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19827         Reported by Eric Blake.
19828
19829 2010-01-07  Bruno Haible  <bruno@clisp.org>
19830
19831         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19832         * modules/xlist (Depends-on): Add 'list',
19833         * modules/xoset (Depends-on): Add 'oset'.
19834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19835
19836 2010-01-07  Bruno Haible  <bruno@clisp.org>
19837
19838         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19839         * doc/posix-functions/strncasecmp.texi: Likewise.
19840
19841 2010-01-07  Bruno Haible  <bruno@clisp.org>
19842
19843         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19844
19845 2010-01-07  John W. Eaton  <jwe@octave.org>
19846
19847         wctype: allow C++ use
19848         * lib/wctype.in.h: Add extern "C" block for C++.
19849
19850 2010-01-06  Eric Blake  <ebb9@byu.net>
19851
19852         maint.mk: detect incorrect GFDL usage
19853         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19854
19855 2010-01-06  Jim Meyering  <meyering@redhat.com>
19856         and Eric Blake  <ebb9@byu.net>
19857
19858         maint.mk: ignore multi-line copyright in NEWS
19859         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19860
19861 2010-01-06  Eric Blake  <ebb9@byu.net>
19862
19863         select: add missing dependency
19864         * modules/select-tests (Depends-on): Move sockets dependency...
19865         * modules/select (Depends-on): ...here.
19866         Reported by Ian Beckwith.
19867
19868         doc: regenerate INSTALL
19869         * doc/INSTALL: Reflect recent autoconf update.
19870         * doc/INSTALL.ISO: Likewise.
19871         * doc/INSTALL.UTF-8: Likewise.
19872
19873         pread: fix compilation on glibc
19874         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19875         Reported by Ralf Wildenhues.
19876
19877         dirent: fix test failure
19878         * lib/dirent.in.h (includes): Guarantee ino_t.
19879         Reported by Ralf Wildenhues.
19880
19881 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19882
19883         linkat, renameat: avoid bad free
19884         * lib/at-func2.c (at_func2): Fix typo.
19885         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19886
19887 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19888
19889         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19890         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19891         to avoid failure of symlink test later.
19892
19893 2010-01-06  Eric Blake  <ebb9@byu.net>
19894
19895         stdio, unistd: guarantee ssize_t
19896         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19897         2008 are exposed when needed.
19898         * lib/stdio.in.h (includes): Likewise.
19899         Reported by Ralf Wildenhues.
19900
19901 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19902
19903         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19904         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19905         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19906
19907 2010-01-06  Jim Meyering  <meyering@redhat.com>
19908
19909         readtokens: this module *does* require xalloc.h
19910         It uses only functions that were omitted by the old syntax-check rule.
19911         * lib/readtokens.c: Include "xalloc.h" once again.
19912         * modules/readtokens (Depends-on): Add xalloc.
19913         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19914
19915 2010-01-05  Eric Blake  <ebb9@byu.net>
19916
19917         maint: support 'make announcement' from a VPATH build
19918         * top/maint.mk (announcement): Look for correct NEWS file.
19919
19920 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19921
19922         utimens (fdutimens): ignore a negative FD, per contract
19923         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19924         when we have a valid file descriptor.  Otherwise, using a brand
19925         new glibc (with just-patched futimens that now fails with EBADF)
19926         would cause this function to fail with ENOSYS.
19927         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19928         See also http://bugzilla.redhat.com/552320.
19929
19930 2010-01-05  Eric Blake  <ebb9@byu.net>
19931
19932         strcase: document what it provides
19933         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19934         gnulib module.
19935         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19936         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19937
19938 2010-01-05  Jim Meyering  <meyering@redhat.com>
19939
19940         maint: remove useless inclusions of "xalloc.h"
19941         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19942         * lib/readtokens.c: Likewise.
19943         * lib/same.c: Likewise.
19944         * modules/getloadavg (Depends-on): Remove xalloc.
19945         * modules/readtokens: Likewise.
19946         * modules/same: Likewise.
19947
19948         maint.mk: include 4 more function names in alloca.h-checking regexp
19949         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19950         regexp.  Before, we would give a false-positive (saying alloca.h
19951         is included unnecessarily) when the only uses involved omitted symbols.
19952
19953         xalloc.h: use consistent formatting
19954         * lib/xalloc.h: Move declarations to start in the first column.
19955
19956 2010-01-05  Eric Blake  <ebb9@byu.net>
19957
19958         mkdir: avoid xalloc
19959         * lib/mkdir.c (includes): Drop unused header.
19960         Reported by John W. Eaton.
19961
19962 2010-01-04  Jim Meyering  <meyering@redhat.com>
19963
19964         nl_langinfo: avoid configure-time syntax error
19965         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19966         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19967         the empty string.  Don't let that provoke a shell syntax error.
19968
19969         regcomp, regexec, fnmatch: avoid array bounds read error
19970         * lib/regcomp.c (build_equiv_class): From glibc:
19971         Use only the low 24 bits of a findidx return value as an index
19972         into the weights array.  Patch by Ulrich Drepper:
19973         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19974         * lib/regexec.c (check_node_accept_bytes): Likewise.
19975         * lib/fnmatch_loop.c (FCT): Likewise.
19976
19977         regcomp: skip collseq lookup when there are no rules
19978         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19979         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19980
19981         regcomp: recognize ill-formed { } expressions
19982         * lib/regcomp.c (parse_dup_op): From glibc:
19983         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19984
19985         regcomp: fix typo in comment
19986         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19987         s/satisfy/satisfies/.
19988
19989         regcomp: sync from glibc: remove dead store
19990         * lib/regcomp.c (duplicate_node_closure): Remove useless
19991         search_duplicated_node call and dead store.
19992
19993         regcomp: sync from glibc; always use nl_langinfo
19994         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19995         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19996         * modules/regex (Depends-on): Add nl_langinfo.
19997
19998 2010-01-04  Eric Blake  <ebb9@byu.net>
19999
20000         fdopendir: fix configure test
20001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20002
20003 2010-01-01  Bruno Haible  <bruno@clisp.org>
20004
20005         wchar: Remove unused configure check.
20006         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20007
20008 2010-01-01  Eric Blake  <ebb9@byu.net>
20009
20010         headers: make check of system header explicit
20011         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20012         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20013         ourselves.
20014         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20016         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20017         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20018         internals.
20019         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20020         missing.
20021         Suggested by Bruno Haible.
20022
20023 2010-01-01  Jim Meyering  <meyering@redhat.com>
20024
20025         ChangeLog: tweak to eliminate unnecessary copyright line
20026         * ChangeLog: Remove a copyright line that was mistakenly updated
20027         by today's update-copyright run.  Reported by Eric Blake.
20028
20029         test-update-copyright: don't let envvar setting cause test failure
20030         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20031
20032 2010-01-01  Bruno Haible  <bruno@clisp.org>
20033
20034         localename: Avoid gcc warning.
20035         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20036         function if it is not used.
20037
20038 2010-01-01  Jim Meyering  <meyering@redhat.com>
20039
20040         update nearly all FSF copyright year lists to include 2010
20041         Use the same procedure as for 2009, outlined in
20042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20043
20044         version-etc: set COPYRIGHT_YEAR to 2010
20045         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20046
20047 2009-12-31  Eric Blake  <ebb9@byu.net>
20048
20049         doc: correct availability of cygwin 1.5.x getopt
20050         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20051         variables.
20052         * doc/posix-functions/opterr.texi (opterr): Likewise.
20053         * doc/posix-functions/optind.texi (optind): Likewise.
20054         * doc/posix-functions/optopt.texi (optopt): Likewise.
20055         * doc/posix-functions/tzname.texi (tzname): Likewise.
20056
20057         openat: update maintainer
20058         * modules/openat (Maintainer): Add myself.
20059
20060         utimens: avoid shadowing warning
20061         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20062         buffers into one, to avoid shadowing, as well as avoiding a
20063         redundant stat.
20064         Reported by Jim Meyering.
20065
20066         test-dup2: avoid compiler warning
20067         * tests/test-dup2.c (is_inheritable): Only define if used.
20068
20069 2010-01-01  Bruno Haible  <bruno@clisp.org>
20070
20071         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20072         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20073         defined, use wctomb instead of wcrtomb.
20074
20075 2010-01-01  Bruno Haible  <bruno@clisp.org>
20076
20077         iconv: Reject native Solaris iconv.
20078         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20079         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20080
20081 2009-12-31  Bruno Haible  <bruno@clisp.org>
20082
20083         * tests/test-signal.c (main): Remove test of 'SIG'.
20084
20085 2009-12-31  Bruno Haible  <bruno@clisp.org>
20086
20087         spawn: Fix incomplete fix.
20088         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20089         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20090         warnings for GNULIB_POSIXCHECK again.
20091         Reported by Eric Blake.
20092
20093 2009-12-31  Bruno Haible  <bruno@clisp.org>
20094
20095         Avoid namespace pollution on glibc systems.
20096         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20097         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20098         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20099         glibc systems.
20100
20101 2009-12-31  Bruno Haible  <bruno@clisp.org>
20102
20103         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20104         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20105         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20106         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20107         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20108         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20109         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20110
20111 2009-12-31  Bruno Haible  <bruno@clisp.org>
20112
20113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20114         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20115         afterwards.
20116
20117 2009-12-31  Bruno Haible  <bruno@clisp.org>
20118
20119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20120         SYS_UTSNAME_H.
20121
20122 2009-12-31  Bruno Haible  <bruno@clisp.org>
20123
20124         spawn: Fix misapplied patch.
20125         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20126         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20127         warnings for GNULIB_POSIXCHECK.
20128
20129 2009-12-31  Bruno Haible  <bruno@clisp.org>
20130
20131         times: Update after sys_times changed.
20132         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20133         * modules/times (Files): Add it.
20134         (configure.ac): Invoke gl_FUNC_TIMES.
20135
20136 2009-12-31  Bruno Haible  <bruno@clisp.org>
20137
20138         Use AC_C_INLINE where necessary.
20139         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20140         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20142         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20143         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20144         * m4/mbiter.m4 (gl_MBITER): Likewise.
20145         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20146         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20147         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20148         * modules/u64 (configure.ac): Likewise.
20149
20150 2009-12-31  Bruno Haible  <bruno@clisp.org>
20151
20152         Use AC_C_INLINE instead of module 'inline' where possible.
20153         * modules/inline (Description): Clarify purpose.
20154         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20155         * modules/count-one-bits (Depends-on): Remove inline.
20156         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20157         * modules/openat (Depends-on): Remove inline.
20158         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20159         instead of depending on module 'inline'.
20160         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20161         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20162         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20163         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20164         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20165         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20166         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20167         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20168         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20169         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20170         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20171         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20172         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20173         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20174         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20175         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20176         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20177         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20178         Likewise.
20179         * modules/unictype/property-ascii-hex-digit (Depends-on,
20180         configure.ac): Likewise.
20181         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20182         configure.ac): Likewise.
20183         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20184         configure.ac): Likewise.
20185         * modules/unictype/property-bidi-block-separator (Depends-on,
20186         configure.ac): Likewise.
20187         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20188         configure.ac): Likewise.
20189         * modules/unictype/property-bidi-common-separator (Depends-on,
20190         configure.ac): Likewise.
20191         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20192         Likewise.
20193         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20194         configure.ac): Likewise.
20195         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20196         configure.ac): Likewise.
20197         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20198         configure.ac): Likewise.
20199         * modules/unictype/property-bidi-european-digit (Depends-on,
20200         configure.ac): Likewise.
20201         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20202         configure.ac): Likewise.
20203         * modules/unictype/property-bidi-left-to-right (Depends-on,
20204         configure.ac): Likewise.
20205         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20206         configure.ac): Likewise.
20207         * modules/unictype/property-bidi-other-neutral (Depends-on,
20208         configure.ac): Likewise.
20209         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20210         Likewise.
20211         * modules/unictype/property-bidi-segment-separator (Depends-on,
20212         configure.ac): Likewise.
20213         * modules/unictype/property-bidi-whitespace (Depends-on,
20214         configure.ac): Likewise.
20215         * modules/unictype/property-combining (Depends-on, configure.ac):
20216         Likewise.
20217         * modules/unictype/property-composite (Depends-on, configure.ac):
20218         Likewise.
20219         * modules/unictype/property-currency-symbol (Depends-on,
20220         configure.ac): Likewise.
20221         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20222         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20223         Likewise.
20224         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20225         configure.ac): Likewise.
20226         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20227         Likewise.
20228         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20229         Likewise.
20230         * modules/unictype/property-extender (Depends-on, configure.ac):
20231         Likewise.
20232         * modules/unictype/property-format-control (Depends-on, configure.ac):
20233         Likewise.
20234         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20235         Likewise.
20236         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20237         Likewise.
20238         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20239         Likewise.
20240         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20241         Likewise.
20242         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20243         Likewise.
20244         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20245         Likewise.
20246         * modules/unictype/property-id-start (Depends-on, configure.ac):
20247         Likewise.
20248         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20249         Likewise.
20250         * modules/unictype/property-ids-binary-operator (Depends-on,
20251         configure.ac): Likewise.
20252         * modules/unictype/property-ids-trinary-operator (Depends-on,
20253         configure.ac): Likewise.
20254         * modules/unictype/property-ignorable-control (Depends-on,
20255         configure.ac): Likewise.
20256         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20257         Likewise.
20258         * modules/unictype/property-join-control (Depends-on, configure.ac):
20259         Likewise.
20260         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20261         Likewise.
20262         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20263         Likewise.
20264         * modules/unictype/property-logical-order-exception (Depends-on,
20265         configure.ac): Likewise.
20266         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20267         Likewise.
20268         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20269         * modules/unictype/property-non-break (Depends-on, configure.ac):
20270         Likewise.
20271         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20272         Likewise.
20273         * modules/unictype/property-numeric (Depends-on, configure.ac):
20274         Likewise.
20275         * modules/unictype/property-other-alphabetic (Depends-on,
20276         configure.ac): Likewise.
20277         * modules/unictype/property-other-default-ignorable-code-point
20278         (Depends-on, configure.ac): Likewise.
20279         * modules/unictype/property-other-grapheme-extend (Depends-on,
20280         configure.ac): Likewise.
20281         * modules/unictype/property-other-id-continue (Depends-on,
20282         configure.ac): Likewise.
20283         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20284         Likewise.
20285         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20286         Likewise.
20287         * modules/unictype/property-other-math (Depends-on, configure.ac):
20288         Likewise.
20289         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20290         Likewise.
20291         * modules/unictype/property-paired-punctuation (Depends-on,
20292         configure.ac): Likewise.
20293         * modules/unictype/property-paragraph-separator (Depends-on,
20294         configure.ac): Likewise.
20295         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20296         Likewise.
20297         * modules/unictype/property-pattern-white-space (Depends-on,
20298         configure.ac): Likewise.
20299         * modules/unictype/property-private-use (Depends-on, configure.ac):
20300         Likewise.
20301         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20302         Likewise.
20303         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20304         Likewise.
20305         * modules/unictype/property-radical (Depends-on, configure.ac):
20306         Likewise.
20307         * modules/unictype/property-sentence-terminal (Depends-on,
20308         configure.ac): Likewise.
20309         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20310         Likewise.
20311         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20312         * modules/unictype/property-terminal-punctuation (Depends-on,
20313         configure.ac): Likewise.
20314         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20315         Likewise.
20316         * modules/unictype/property-unassigned-code-value (Depends-on,
20317         configure.ac): Likewise.
20318         * modules/unictype/property-unified-ideograph (Depends-on,
20319         configure.ac): Likewise.
20320         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20321         Likewise.
20322         * modules/unictype/property-variation-selector (Depends-on,
20323         configure.ac): Likewise.
20324         * modules/unictype/property-white-space (Depends-on, configure.ac):
20325         Likewise.
20326         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20327         Likewise.
20328         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20329         Likewise.
20330         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20331         Likewise.
20332         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20333         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20334         Likewise.
20335
20336 2009-12-31  Bruno Haible  <bruno@clisp.org>
20337
20338         Remove unnecessary AC_C_INLINE invocation.
20339         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20340         since 2009-08-21.
20341
20342 2009-12-31  Jim Meyering  <meyering@redhat.com>
20343
20344         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20345         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20346         With this change, we can all remove the gpg_key_ID = ... definition
20347         from our respective cfg.mk files.
20348
20349         maint.mk: create announcement template in ~/, not in /tmp
20350         * top/maint.mk (emit_upload_commands): Adjust.
20351         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20352         Remove temporary file, .ci-msg.
20353
20354 2009-12-31  Eric Blake  <ebb9@byu.net>
20355
20356         link-warning: always build headers with link warnings
20357         * modules/arpa_inet (Makefile.am): Always build replacement
20358         header.
20359         * modules/ctype (Makefile.am): Likewise.
20360         * modules/dirent (Makefile.am): Likewise.
20361         * modules/inttypes (Makefile.am): Likewise.
20362         * modules/langinfo (Makefile.am): Likewise.
20363         * modules/locale (Makefile.am): Likewise.
20364         * modules/spawn (Makefile.am): Likewise.
20365         * modules/sys_file (Makefile.am): Likewise.
20366         * modules/sys_ioctl (Makefile.am): Likewise.
20367         * modules/sys_select (Makefile.am): Likewise.
20368         * modules/sys_socket (Makefile.am): Likewise.
20369         * modules/sys_times (Makefile.am): Likewise.
20370         * modules/sys_utsname (Makefile.am): Likewise.
20371         * modules/sys_wait (Makefile.am): Likewise.
20372         * modules/wchar (Makefile.am): Likewise.
20373         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20374         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20375         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20376         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20377         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20378         Likewise.
20379         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20380         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20382         Likewise.
20383         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20384         Likewise.
20385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20387         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20389         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20390         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20391         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20392         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20393         (gl_WCHAR_H_DEFAULTS): Likewise.
20394
20395 2009-12-31  Eric Blake  <ebb9@byu.net>
20396
20397         signal, spawn: use link warnings
20398         * lib/signal.in.h (sigset_t): Make unconditional.
20399         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20400         (sigpending, sigprocmask, sigaction): Add link warnings.
20401         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20402         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20403         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20404         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20405         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20406         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20407         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20408         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20409         (posix_spawn_file_actions_destroy)
20410         (posix_spawn_file_actions_addopen)
20411         (posix_spawn_file_actions_addclose)
20412         (posix_spawn_file_actions_adddup2): Likewise.
20413         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20414         * tests/test-signal.c (main): Enhance test.
20415
20416         spawn: improve wrapper support
20417         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20418         (gl_SPAWN_H_DEFAULTS): New defaults.
20419         * modules/spawn (Makefile.am): Substitute them.
20420         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20421         Only declare if missing or broken.
20422
20423         sys_times, sys_utsname: use include_next
20424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20425         header.
20426         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20427         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20428         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20429         * modules/sys_times (Depends-on): Add include_next.
20430         (Makefile.am): Substitute additional values.
20431         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20432         * lib/sys_times.in.h (includes): Include native header, if
20433         available.
20434         * lib/sys_utsname.in.h (includes): Likewise.
20435         * tests/test-sys_times.c (main): Enhance test.
20436
20437         fdutimensat: revert prior patch
20438         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20439         utimens.h.
20440         Reported by Bruno Haible.
20441
20442 2009-12-30  Eric Blake  <ebb9@byu.net>
20443
20444         sys_wait: drop link-warning dependency
20445         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20446         link-warning efforts.
20447         * lib/sys_wait.in.h: Likewise.
20448
20449         fdutimensat: remove bogus dependency
20450         * modules/fdutimensat (Depends-on): Drop inline.
20451
20452         unistd: fix typo
20453         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20454
20455 2009-12-30  Bruno Haible  <bruno@clisp.org>
20456
20457         Fix compilation error with Solaris cc.
20458         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20459         * lib/unicase/u16-is-invariant.c: Likewise.
20460         * lib/unicase/u32-is-invariant.c: Likewise.
20461         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20462
20463 2009-12-30  Bruno Haible  <bruno@clisp.org>
20464
20465         Fix test crash.
20466         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20467         locales.
20468         Reported by Simon Josefsson <simon@josefsson.org>.
20469
20470 2009-12-30  Bruno Haible  <bruno@clisp.org>
20471
20472         Fix compilation error on most platforms.
20473         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20474         Reported by Simon Josefsson <simon@josefsson.org>
20475         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20476
20477 2009-12-30  Eric Blake  <ebb9@byu.net>
20478
20479         futimens, utimensat: work around ntfs-3g bug
20480         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20481         a ctime bug is present, and expand workaround to cover ntfs-3g.
20482         * lib/utimens.c (fdutimens, lutimens): Likewise.
20483         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20484         (validate_timespec): Adjust return value.
20485         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20486         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20487         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20488
20489 2009-12-29  Eric Blake  <ebb9@byu.net>
20490
20491         link-warning: make usage consistent
20492         * modules/ctype (Depends-on): Add link-warning.
20493         (Makefile.am): Update rules accordingly.
20494         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20495         * modules/locale (Depends-on, Makefile.am): Likewise.
20496         * modules/sys_file (Makefile.am): Likewise.
20497         * modules/getopt-posix (Makefile.am): Delete unused link warning
20498         efforts.
20499         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20500         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20501         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20502         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20503
20504         stdio: remove unused variables
20505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20507         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20508
20509         tests: test more substitute headers
20510         * modules/ctype-tests: New file.
20511         * modules/dirent-tests: Likewise.
20512         * modules/spawn-tests: Likewise.
20513         * modules/sys_file-tests: Likewise.
20514         * modules/sys_ioctl-tests: Likewise.
20515         * modules/sys_wait-tests: Likewise.
20516         * tests/test-ctype.c: Likewise.
20517         * tests/test-dirent.c: Likewise.
20518         * tests/test-spawn.c: Likewise.
20519         * tests/test-sys_file.c: Likewise.
20520         * tests/test-sys_ioctl.c: Likewise.
20521         * tests/test-sys_wait.c: Likewise.
20522         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20523         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20524         whether or not flock is in use.
20525
20526         tests: remove License section from module
20527         * modules/arpa_inet-tests: Remove unneeded section.
20528         * modules/byteswap-tests: Likewise.
20529         * modules/ceilf-tests: Likewise.
20530         * modules/ceill-tests: Likewise.
20531         * modules/crypto/des-tests: Likewise.
20532         * modules/crypto/gc-arcfour-tests: Likewise.
20533         * modules/crypto/gc-arctwo-tests: Likewise.
20534         * modules/crypto/gc-des-tests: Likewise.
20535         * modules/crypto/gc-hmac-md5-tests: Likewise.
20536         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20537         * modules/crypto/gc-md2-tests: Likewise.
20538         * modules/crypto/gc-md4-tests: Likewise.
20539         * modules/crypto/gc-md5-tests: Likewise.
20540         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20541         * modules/crypto/gc-rijndael-tests: Likewise.
20542         * modules/crypto/gc-sha1-tests: Likewise.
20543         * modules/crypto/gc-tests: Likewise.
20544         * modules/crypto/md2-tests: Likewise.
20545         * modules/crypto/md4-tests: Likewise.
20546         * modules/fcntl-h-tests: Likewise.
20547         * modules/floorf-tests: Likewise.
20548         * modules/floorl-tests: Likewise.
20549         * modules/frexp-nolibm-tests: Likewise.
20550         * modules/frexp-tests: Likewise.
20551         * modules/frexpl-nolibm-tests: Likewise.
20552         * modules/frexpl-tests: Likewise.
20553         * modules/getaddrinfo-tests: Likewise.
20554         * modules/inttypes-tests: Likewise.
20555         * modules/isfinite-tests: Likewise.
20556         * modules/isinf-tests: Likewise.
20557         * modules/ldexpl-tests: Likewise.
20558         * modules/locale-tests: Likewise.
20559         * modules/math-tests: Likewise.
20560         * modules/netdb-tests: Likewise.
20561         * modules/netinet_in-tests: Likewise.
20562         * modules/printf-frexp-tests: Likewise.
20563         * modules/printf-frexpl-tests: Likewise.
20564         * modules/priv-set-tests: Likewise.
20565         * modules/random_r-tests: Likewise.
20566         * modules/round-tests: Likewise.
20567         * modules/roundf-tests: Likewise.
20568         * modules/roundl-tests: Likewise.
20569         * modules/search-tests: Likewise.
20570         * modules/select-tests: Likewise.
20571         * modules/signal-tests: Likewise.
20572         * modules/stdbool-tests: Likewise.
20573         * modules/stddef-tests: Likewise.
20574         * modules/stdint-tests: Likewise.
20575         * modules/stdio-tests: Likewise.
20576         * modules/stdlib-tests: Likewise.
20577         * modules/string-tests: Likewise.
20578         * modules/strings-tests: Likewise.
20579         * modules/sys_select-tests: Likewise.
20580         * modules/sys_socket-tests: Likewise.
20581         * modules/sys_stat-tests: Likewise.
20582         * modules/sys_time-tests: Likewise.
20583         * modules/sys_utsname-tests: Likewise.
20584         * modules/sysexits-tests: Likewise.
20585         * modules/time-tests: Likewise.
20586         * modules/trunc-tests: Likewise.
20587         * modules/truncf-tests: Likewise.
20588         * modules/truncl-tests: Likewise.
20589         * modules/tsearch-tests: Likewise.
20590         * modules/unistd-tests: Likewise.
20591         * modules/wchar-tests: Likewise.
20592         * modules/wctype-tests: Likewise.
20593
20594         tests: fix license on several tests
20595         * tests/test-des.c: Update to GPLv3+.
20596         * tests/test-flock.c: Likewise.
20597         * tests/test-fsync.c: Likewise.
20598         * tests/test-futimens.h: Likewise.
20599         * tests/test-gc-arcfour.c: Likewise.
20600         * tests/test-gc-arctwo.c: Likewise.
20601         * tests/test-gc-des.c: Likewise.
20602         * tests/test-gc-hmac-md5.c: Likewise.
20603         * tests/test-gc-hmac-sha1.c: Likewise.
20604         * tests/test-gc-md2.c: Likewise.
20605         * tests/test-gc-md4.c: Likewise.
20606         * tests/test-gc-md5.c: Likewise.
20607         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20608         * tests/test-gc-rijndael.c: Likewise.
20609         * tests/test-gc-sha1.c: Likewise.
20610         * tests/test-gc.c: Likewise.
20611         * tests/test-getcwd.c: Likewise.
20612         * tests/test-link.c: Likewise.
20613         * tests/test-link.h: Likewise.
20614         * tests/test-lutimens.h: Likewise.
20615         * tests/test-md2.c: Likewise.
20616         * tests/test-md4.c: Likewise.
20617         * tests/test-mkdir.h: Likewise.
20618         * tests/test-rename.c: Likewise.
20619         * tests/test-rename.h: Likewise.
20620         * tests/test-safe-alloc.c: Likewise.
20621         * tests/test-utimens-common.h: Likewise.
20622         * tests/test-utimens.h: Likewise.
20623
20624         maint: sync license texts
20625         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20626         * doc/gpl-3.0.texi: Revert copyright year update.
20627         * doc/lgpl-3.0.texi: Likewise.
20628
20629 2009-12-29  Jim Meyering  <meyering@redhat.com>
20630
20631         update nearly all FSF copyright year lists to include 2009
20632         The files named by the following are exempted:
20633             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20634               test -f "$dst" && { echo "$dst"; continue; }
20635               test -d "$dst" || continue
20636               echo "$dst"/$(basename "$src")
20637             done > exempt
20638             git ls-files tests/unictype >> exempt
20639         In the remaining files, convert to all-interval notation if
20640         - there is already at least one year interval like 2000-2003
20641         - the file is maintained by me
20642         - the file is in lib/uni*/, where that style already prevails
20643         Otherwise, use update-copyright's default.
20644
20645 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20646         and Eric Blake  <ebb9@byu.net>
20647
20648         tests: don't require debug system() to pass
20649         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20650         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20651         * tests/test-unlink.h (test_unlink_func): Likewise.
20652         * tests/test-fstatat.c (main): ...into callers.
20653         * tests/test-lstat.c (main): Likewise.
20654         * tests/test-rmdir.c (main): Likewise.
20655         * tests/test-unlink.c (main): Likewise.
20656         * tests/test-unlinkat.c (main): Likewise.
20657         * tests/test-areadlink-with-size.c (main): Don't require a
20658         debug-only system call to pass, aiding cross-testing to mingw.
20659         * tests/test-areadlink.c (main): Likewise.
20660         * tests/test-areadlinkat-with-size.c (main): Likewise.
20661         * tests/test-areadlinkat.c (main): Likewise.
20662         * tests/test-canonicalize-lgpl.c (main): Likewise.
20663         * tests/test-canonicalize.c (main): Likewise.
20664         * tests/test-chown.c (main): Likewise.
20665         * tests/test-fchownat.c (main): Likewise.
20666         * tests/test-lchown.c (main): Likewise.
20667         * tests/test-fdutimensat.c (main): Likewise.
20668         * tests/test-futimens.c (main): Likewise.
20669         * tests/test-link.c (main): Likewise.
20670         * tests/test-linkat.c (main): Likewise.
20671         * tests/test-mkdir.c (main): Likewise.
20672         * tests/test-mkdirat.c (main): Likewise.
20673         * tests/test-mkfifo.c (main): Likewise.
20674         * tests/test-mkfifoat.c (main): Likewise.
20675         * tests/test-mknod.c (main): Likewise.
20676         * tests/test-readlink.c (main): Likewise.
20677         * tests/test-remove.c (main): Likewise.
20678         * tests/test-rename.c (main): Likewise.
20679         * tests/test-renameat.c (main): Likewise.
20680         * tests/test-symlink.c (main): Likewise.
20681         * tests/test-symlinkat.c (main): Likewise.
20682         * tests/test-utimens.c (main): Likewise.
20683         * tests/test-utimensat.c (main): Likewise.
20684
20685 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20686
20687         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20688         on $(UNUSED_PARAMETER_H) to avoid build failure.
20689
20690 2009-12-28  Jim Meyering  <meyering@redhat.com>
20691
20692         update-copyright: you may specify a max. line length other than 72
20693         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20694
20695         maint: use consistent FSF copyright line syntax
20696         * lib/posixtm.c: Add missing comma in FSF copyright line.
20697         * lib/posixtm.h: Likewise.
20698         * lib/getugroups.c: Add missing ", Inc.".
20699
20700         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20701         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20702         FSF copyright line.  Remove trailing blanks.
20703
20704 2009-12-28  Eric Blake  <ebb9@byu.net>
20705
20706         test-dup2: reduce dependencies
20707         * modules/cloexec (Configure.ac): Set witness.
20708         * modules/dup2-tests (Depends-on): Drop cloexec.
20709         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20710         not present.
20711         Suggested by Bruno Haible.
20712
20713 2009-12-26  Bruno Haible  <bruno@clisp.org>
20714
20715         Remove an unneeded dependency.
20716         * modules/fseterr (Depends-on): Remove dup2.
20717
20718 2009-12-26  Eric Blake  <ebb9@byu.net>
20719
20720         tests: use macros.h in more places
20721         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20722         (ASSERT_STREAM): Provide default of stderr.
20723         * tests/test-dirent-safer.c: Include macros.h, using alternate
20724         stream for assertions.
20725         * tests/test-dup-safer.c: Likewise.
20726         * tests/test-freopen-safer.c: Likewise.
20727         * tests/test-getopt.c: Likewise.
20728         * tests/test-openat-safer.c: Likewise.
20729         * tests/test-pipe.c: Likewise.
20730         * tests/test-popen-safer.c: Likewise.
20731         * modules/dirent-safer-tests (Files): Include macros.h.
20732         * modules/unistd-safer-tests (Files): Likewise.
20733         * modules/freopen-safer-tests (Files): Likewise.
20734         * modules/getopt-posix-tests (Files): Likewise.
20735         * modules/openat-safer-tests (Files): Likewise.
20736         * modules/pipe-tests (Files): Likewise.
20737
20738 2009-12-26  Bruno Haible  <bruno@clisp.org>
20739
20740         javacomp: Portability fix.
20741         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20742         that it also works on Solaris.
20743
20744 2009-12-26  Bruno Haible  <bruno@clisp.org>
20745
20746         localename: Fix storage allocation of gl_locale_name_thread's result.
20747         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20748         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20749         all platforms that have 'uselocale'.
20750         (gl_locale_name_thread_unsafe): New function, extracted from
20751         gl_locale_name_thread.
20752         (gl_locale_name_thread): Call struniq on all platforms that have
20753         'uselocale'.
20754         * tests/test-localename.c (test_locale_name_thread): Check that the
20755         resulting strings are permanently allocated.
20756         * modules/localename-tests (Depends-on): Add strdup.
20757
20758 2009-12-26  Bruno Haible  <bruno@clisp.org>
20759
20760         * tests/test-localename.c (categories): Fill in the strings.
20761
20762 2009-12-26  Jim Meyering  <meyering@redhat.com>
20763
20764         isdir: complete the removal of m4/isdir.m4
20765         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20766
20767         isdir: clean up, since at least grep still uses it
20768         * lib/isdir.c: Include "isdir.h".
20769         (S_ISDIR): Remove now-unneeded definition.
20770         * modules/isdir (Files): Add lib/isdir.h.
20771         * lib/isdir.h: New file, with declaration.
20772         * m4/isdir.m4: Remove file -- unneeded.
20773
20774 2009-12-25  Bruno Haible  <bruno@clisp.org>
20775
20776         selinux-h: Make generated .h files standalone.
20777         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20778         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20779         * lib/se-selinux.in.h: Likewise.
20780         * modules/selinux-h (Depends-on): Add unused-parameter.
20781         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20782         selinux/selinux.h and selinux/context.h.
20783         Suggested by Eric Blake.
20784
20785 2009-12-25  Bruno Haible  <bruno@clisp.org>
20786
20787         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20788         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20789         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20790         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20791         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20792
20793 2009-12-24  Bruno Haible  <bruno@clisp.org>
20794
20795         openat: Fix warning.
20796         * lib/openat-proc.c: Include <unistd.h>.
20797
20798 2009-12-24  Bruno Haible  <bruno@clisp.org>
20799
20800         New module 'unused-parameter'.
20801         * build-aux/unused-parameter.h: New file, extracted from earlier
20802         gnulib-common.m4.
20803         * modules/unused-parameter: New file.
20804         * lib/unistr.h: Include unused-parameter.h.
20805         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20806         _GL_UNUSED.
20807         * modules/unistr/base (Depends-on): Add unused-parameter.
20808
20809 2009-12-24  Bruno Haible  <bruno@clisp.org>
20810
20811         Add missing dependencies to 'extensions' module.
20812         * m4/extensions.m4: Add comment.
20813         * modules/accept4 (Depends-on): Add extensions.
20814         * modules/dup3 (Depends-on): Likewise.
20815         * modules/fcntl (Depends-on): Likewise.
20816         * modules/futimens (Depends-on): Likewise.
20817         * modules/mknod (Depends-on): Likewise.
20818         * modules/pipe2 (Depends-on): Likewise.
20819         * modules/stat-time (Depends-on): Likewise.
20820         * modules/strcasestr-simple (Depends-on): Likewise.
20821         * modules/strsignal (Depends-on): Likewise.
20822         * modules/utimensat (Depends-on): Likewise.
20823         * modules/localcharset (Depends-on): Likewise. Needed because of
20824         gl_FCNTL_O_FLAGS.
20825         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20826         AC_TYPE_MBSTATE_T.
20827         * modules/wcsnrtombs (Depends-on): Likewise.
20828         * modules/wcsrtombs (Depends-on): Likewise.
20829
20830 2009-12-24  Bruno Haible  <bruno@clisp.org>
20831
20832         binary-io: Avoid gcc warning due to SET_BINARY.
20833         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20834         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20835
20836 2009-12-24  Bruno Haible  <bruno@clisp.org>
20837
20838         Avoid future namespace pollution on glibc systems.
20839         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20840         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20841         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20842         glibc systems.
20843
20844 2009-12-24  Bruno Haible  <bruno@clisp.org>
20845
20846         Refactor common macros used in tests.
20847         * tests/macros.h: New file.
20848         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20849         and/or <stdlib.h>, if appropriate.
20850         (ASSERT, SIZEOF): Remove macros.
20851         * tests/test-areadlink-with-size.c: Likewise.
20852         * tests/test-areadlinkat.c: Likewise.
20853         * tests/test-areadlinkat-with-size.c: Likewise.
20854         * tests/test-argmatch.c: Likewise.
20855         * tests/test-argv-iter.c: Likewise.
20856         * tests/test-array-mergesort.c: Likewise.
20857         * tests/test-array_list.c: Likewise.
20858         * tests/test-array_oset.c: Likewise.
20859         * tests/test-avltree_list.c: Likewise.
20860         * tests/test-avltree_oset.c: Likewise.
20861         * tests/test-avltreehash_list.c: Likewise.
20862         * tests/test-base64.c: Likewise.
20863         * tests/test-binary-io.c: Likewise.
20864         * tests/test-bitrotate.c: Likewise.
20865         * tests/test-btowc.c: Likewise.
20866         * tests/test-byteswap.c: Likewise.
20867         * tests/test-c-ctype.c: Likewise.
20868         * tests/test-c-stack.c: Likewise.
20869         * tests/test-c-strcasecmp.c: Likewise.
20870         * tests/test-c-strcasestr.c: Likewise.
20871         * tests/test-c-strncasecmp.c: Likewise.
20872         * tests/test-c-strstr.c: Likewise.
20873         * tests/test-canonicalize-lgpl.c: Likewise.
20874         * tests/test-canonicalize.c: Likewise.
20875         * tests/test-carray_list.c: Likewise.
20876         * tests/test-ceilf1.c: Likewise.
20877         * tests/test-ceilf2.c: Likewise.
20878         * tests/test-ceill.c: Likewise.
20879         * tests/test-chown.c: Likewise.
20880         * tests/test-cloexec.c: Likewise.
20881         * tests/test-copy-acl.c: Likewise.
20882         * tests/test-copy-file.c: Likewise.
20883         * tests/test-count-one-bits.c: Likewise.
20884         * tests/test-dprintf-posix.c: Likewise.
20885         * tests/test-dup2.c: Likewise.
20886         * tests/test-dup3.c: Likewise.
20887         * tests/test-duplocale.c: Likewise.
20888         * tests/test-fbufmode.c: Likewise.
20889         * tests/test-fchdir.c: Likewise.
20890         * tests/test-fchownat.c: Likewise.
20891         * tests/test-fcntl-safer.c: Likewise.
20892         * tests/test-fcntl.c: Likewise.
20893         * tests/test-fdopendir.c: Likewise.
20894         * tests/test-fdutimensat.c: Likewise.
20895         * tests/test-fflush2.c: Likewise.
20896         * tests/test-file-has-acl.c: Likewise.
20897         * tests/test-filevercmp.c: Likewise.
20898         * tests/test-flock.c: Likewise.
20899         * tests/test-floorf1.c: Likewise.
20900         * tests/test-floorf2.c: Likewise.
20901         * tests/test-floorl.c: Likewise.
20902         * tests/test-fnmatch.c: Likewise.
20903         * tests/test-fopen.h: Likewise.
20904         * tests/test-fpending.c: Likewise.
20905         * tests/test-fprintf-posix.c: Likewise.
20906         * tests/test-fpurge.c: Likewise.
20907         * tests/test-freadable.c: Likewise.
20908         * tests/test-freadahead.c: Likewise.
20909         * tests/test-freading.c: Likewise.
20910         * tests/test-freadptr.c: Likewise.
20911         * tests/test-freadptr2.c: Likewise.
20912         * tests/test-freadseek.c: Likewise.
20913         * tests/test-freopen.c: Likewise.
20914         * tests/test-frexp.c: Likewise.
20915         * tests/test-frexpl.c: Likewise.
20916         * tests/test-fseek.c: Likewise.
20917         * tests/test-fseeko.c: Likewise.
20918         * tests/test-fstatat.c: Likewise.
20919         * tests/test-fstrcmp.c: Likewise.
20920         * tests/test-fsync.c: Likewise.
20921         * tests/test-ftell.c: Likewise.
20922         * tests/test-ftello.c: Likewise.
20923         * tests/test-func.c: Likewise.
20924         * tests/test-futimens.c: Likewise.
20925         * tests/test-fwritable.c: Likewise.
20926         * tests/test-fwriting.c: Likewise.
20927         * tests/test-getcwd.c: Likewise.
20928         * tests/test-getdate.c: Likewise.
20929         * tests/test-getdelim.c: Likewise.
20930         * tests/test-getdtablesize.c: Likewise.
20931         * tests/test-getgroups.c: Likewise.
20932         * tests/test-getline.c: Likewise.
20933         * tests/test-getndelim2.c: Likewise.
20934         * tests/test-glob.c: Likewise.
20935         * tests/test-hash.c: Likewise.
20936         * tests/test-i-ring.c: Likewise.
20937         * tests/test-iconv-utf.c: Likewise.
20938         * tests/test-iconv.c: Likewise.
20939         * tests/test-idpriv-drop.c: Likewise.
20940         * tests/test-idpriv-droptemp.c: Likewise.
20941         * tests/test-inet_ntop.c: Likewise.
20942         * tests/test-inet_pton.c: Likewise.
20943         * tests/test-isblank.c: Likewise.
20944         * tests/test-isfinite.c: Likewise.
20945         * tests/test-isinf.c: Likewise.
20946         * tests/test-isnan.c: Likewise.
20947         * tests/test-isnand.h: Likewise.
20948         * tests/test-isnanf.h: Likewise.
20949         * tests/test-isnanl.h: Likewise.
20950         * tests/test-lchown.c: Likewise.
20951         * tests/test-ldexpl.c: Likewise.
20952         * tests/test-link.c: Likewise.
20953         * tests/test-linkat.c: Likewise.
20954         * tests/test-linked_list.c: Likewise.
20955         * tests/test-linkedhash_list.c: Likewise.
20956         * tests/test-localename.c: Likewise.
20957         * tests/test-lseek.c: Likewise.
20958         * tests/test-lstat.c: Likewise.
20959         * tests/test-mbmemcasecmp.c: Likewise.
20960         * tests/test-mbmemcasecoll.c: Likewise.
20961         * tests/test-mbrtowc.c: Likewise.
20962         * tests/test-mbscasecmp.c: Likewise.
20963         * tests/test-mbscasestr1.c: Likewise.
20964         * tests/test-mbscasestr2.c: Likewise.
20965         * tests/test-mbscasestr3.c: Likewise.
20966         * tests/test-mbscasestr4.c: Likewise.
20967         * tests/test-mbschr.c: Likewise.
20968         * tests/test-mbscspn.c: Likewise.
20969         * tests/test-mbsinit.c: Likewise.
20970         * tests/test-mbsncasecmp.c: Likewise.
20971         * tests/test-mbsnrtowcs.c: Likewise.
20972         * tests/test-mbspbrk.c: Likewise.
20973         * tests/test-mbspcasecmp.c: Likewise.
20974         * tests/test-mbsrchr.c: Likewise.
20975         * tests/test-mbsrtowcs.c: Likewise.
20976         * tests/test-mbsspn.c: Likewise.
20977         * tests/test-mbsstr1.c: Likewise.
20978         * tests/test-mbsstr2.c: Likewise.
20979         * tests/test-mbsstr3.c: Likewise.
20980         * tests/test-memchr.c: Likewise.
20981         * tests/test-memchr2.c: Likewise.
20982         * tests/test-memcmp.c: Likewise.
20983         * tests/test-memmem.c: Likewise.
20984         * tests/test-memrchr.c: Likewise.
20985         * tests/test-mkdir.c: Likewise.
20986         * tests/test-mkdirat.c: Likewise.
20987         * tests/test-mkfifo.c: Likewise.
20988         * tests/test-mkfifoat.c: Likewise.
20989         * tests/test-mknod.c: Likewise.
20990         * tests/test-nanosleep.c: Likewise.
20991         * tests/test-nl_langinfo.c: Likewise.
20992         * tests/test-obstack-printf.c: Likewise.
20993         * tests/test-open.c: Likewise.
20994         * tests/test-openat.c: Likewise.
20995         * tests/test-pipe-filter-gi1.c: Likewise.
20996         * tests/test-pipe-filter-gi2-main.c: Likewise.
20997         * tests/test-pipe-filter-ii1.c: Likewise.
20998         * tests/test-pipe-filter-ii2-main.c: Likewise.
20999         * tests/test-pipe2.c: Likewise.
21000         * tests/test-popen.h: Likewise.
21001         * tests/test-posixtm.c: Likewise.
21002         * tests/test-pread.c: Likewise.
21003         * tests/test-printf-frexp.c: Likewise.
21004         * tests/test-printf-frexpl.c: Likewise.
21005         * tests/test-printf-posix.c: Likewise.
21006         * tests/test-priv-set.c: Likewise.
21007         * tests/test-quotearg.c: Likewise.
21008         * tests/test-random_r.c: Likewise.
21009         * tests/test-rawmemchr.c: Likewise.
21010         * tests/test-rbtree_list.c: Likewise.
21011         * tests/test-rbtree_oset.c: Likewise.
21012         * tests/test-rbtreehash_list.c: Likewise.
21013         * tests/test-readlink.c: Likewise.
21014         * tests/test-remove.c: Likewise.
21015         * tests/test-rename.c: Likewise.
21016         * tests/test-renameat.c: Likewise.
21017         * tests/test-rmdir.c: Likewise.
21018         * tests/test-round1.c: Likewise.
21019         * tests/test-roundf1.c: Likewise.
21020         * tests/test-roundl.c: Likewise.
21021         * tests/test-safe-alloc.c: Likewise.
21022         * tests/test-sameacls.c: Likewise.
21023         * tests/test-set-mode-acl.c: Likewise.
21024         * tests/test-setenv.c: Likewise.
21025         * tests/test-sigaction.c: Likewise.
21026         * tests/test-signbit.c: Likewise.
21027         * tests/test-sleep.c: Likewise.
21028         * tests/test-snprintf-posix.c: Likewise.
21029         * tests/test-snprintf.c: Likewise.
21030         * tests/test-sprintf-posix.c: Likewise.
21031         * tests/test-stat-time.c: Likewise.
21032         * tests/test-stat.c: Likewise.
21033         * tests/test-strcasestr.c: Likewise.
21034         * tests/test-strchrnul.c: Likewise.
21035         * tests/test-strerror.c: Likewise.
21036         * tests/test-striconv.c: Likewise.
21037         * tests/test-striconveh.c: Likewise.
21038         * tests/test-striconveha.c: Likewise.
21039         * tests/test-strsignal.c: Likewise.
21040         * tests/test-strstr.c: Likewise.
21041         * tests/test-strtod.c: Likewise.
21042         * tests/test-strverscmp.c: Likewise.
21043         * tests/test-symlink.c: Likewise.
21044         * tests/test-symlinkat.c: Likewise.
21045         * tests/test-trunc1.c: Likewise.
21046         * tests/test-trunc2.c: Likewise.
21047         * tests/test-truncf1.c: Likewise.
21048         * tests/test-truncf2.c: Likewise.
21049         * tests/test-truncl.c: Likewise.
21050         * tests/test-uname.c: Likewise.
21051         * tests/test-unlink.c: Likewise.
21052         * tests/test-unlinkat.c: Likewise.
21053         * tests/test-unsetenv.c: Likewise.
21054         * tests/test-usleep.c: Likewise.
21055         * tests/test-utimens.c: Likewise.
21056         * tests/test-utimensat.c: Likewise.
21057         * tests/test-vasnprintf-posix.c: Likewise.
21058         * tests/test-vasnprintf-posix2.c: Likewise.
21059         * tests/test-vasnprintf.c: Likewise.
21060         * tests/test-vasprintf-posix.c: Likewise.
21061         * tests/test-vasprintf.c: Likewise.
21062         * tests/test-vdprintf-posix.c: Likewise.
21063         * tests/test-vfprintf-posix.c: Likewise.
21064         * tests/test-vprintf-posix.c: Likewise.
21065         * tests/test-vsnprintf-posix.c: Likewise.
21066         * tests/test-vsnprintf.c: Likewise.
21067         * tests/test-vsprintf-posix.c: Likewise.
21068         * tests/test-wcrtomb.c: Likewise.
21069         * tests/test-wcsnrtombs.c: Likewise.
21070         * tests/test-wcsrtombs.c: Likewise.
21071         * tests/test-wctype.c: Likewise.
21072         * tests/test-wcwidth.c: Likewise.
21073         * tests/test-xfprintf-posix.c: Likewise.
21074         * tests/test-xmemdup0.c: Likewise.
21075         * tests/test-xprintf-posix.c: Likewise.
21076         * tests/test-xvasprintf.c: Likewise.
21077         * tests/unicase/test-locale-language.c: Likewise.
21078         * tests/unicase/test-mapping-part1.h: Likewise.
21079         * tests/unicase/test-predicate-part1.h: Likewise.
21080         * tests/unicase/test-u8-casecmp.c: Likewise.
21081         * tests/unicase/test-u8-casecoll.c: Likewise.
21082         * tests/unicase/test-u8-casefold.c: Likewise.
21083         * tests/unicase/test-u8-is-cased.c: Likewise.
21084         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21085         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21086         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21087         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21088         * tests/unicase/test-u8-tolower.c: Likewise.
21089         * tests/unicase/test-u8-totitle.c: Likewise.
21090         * tests/unicase/test-u8-toupper.c: Likewise.
21091         * tests/unicase/test-u16-casecmp.c: Likewise.
21092         * tests/unicase/test-u16-casecoll.c: Likewise.
21093         * tests/unicase/test-u16-casefold.c: Likewise.
21094         * tests/unicase/test-u16-is-cased.c: Likewise.
21095         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21096         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21097         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21098         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21099         * tests/unicase/test-u16-tolower.c: Likewise.
21100         * tests/unicase/test-u16-totitle.c: Likewise.
21101         * tests/unicase/test-u16-toupper.c: Likewise.
21102         * tests/unicase/test-u32-casecmp.c: Likewise.
21103         * tests/unicase/test-u32-casecoll.c: Likewise.
21104         * tests/unicase/test-u32-casefold.c: Likewise.
21105         * tests/unicase/test-u32-is-cased.c: Likewise.
21106         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21107         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21108         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21109         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21110         * tests/unicase/test-u32-tolower.c: Likewise.
21111         * tests/unicase/test-u32-totitle.c: Likewise.
21112         * tests/unicase/test-u32-toupper.c: Likewise.
21113         * tests/unicase/test-ulc-casecmp.c: Likewise.
21114         * tests/unicase/test-ulc-casecoll.c: Likewise.
21115         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21116         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21117         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21118         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21119         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21120         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21121         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21122         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21123         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21124         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21125         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21126         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21127         * tests/unictype/test-bidi_byname.c: Likewise.
21128         * tests/unictype/test-bidi_name.c: Likewise.
21129         * tests/unictype/test-bidi_of.c: Likewise.
21130         * tests/unictype/test-bidi_test.c: Likewise.
21131         * tests/unictype/test-block_list.c: Likewise.
21132         * tests/unictype/test-block_of.c: Likewise.
21133         * tests/unictype/test-block_test.c: Likewise.
21134         * tests/unictype/test-categ_and.c: Likewise.
21135         * tests/unictype/test-categ_and_not.c: Likewise.
21136         * tests/unictype/test-categ_byname.c: Likewise.
21137         * tests/unictype/test-categ_name.c: Likewise.
21138         * tests/unictype/test-categ_none.c: Likewise.
21139         * tests/unictype/test-categ_of.c: Likewise.
21140         * tests/unictype/test-categ_or.c: Likewise.
21141         * tests/unictype/test-categ_test_withtable.c: Likewise.
21142         * tests/unictype/test-combining.c: Likewise.
21143         * tests/unictype/test-decdigit.c: Likewise.
21144         * tests/unictype/test-digit.c: Likewise.
21145         * tests/unictype/test-mirror.c: Likewise.
21146         * tests/unictype/test-numeric.c: Likewise.
21147         * tests/unictype/test-pr_byname.c: Likewise.
21148         * tests/unictype/test-pr_test.c: Likewise.
21149         * tests/unictype/test-predicate-part1.h: Likewise.
21150         * tests/unictype/test-scripts.c: Likewise.
21151         * tests/unictype/test-sy_c_ident.c: Likewise.
21152         * tests/unictype/test-sy_java_ident.c: Likewise.
21153         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21154         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21155         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21156         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21157         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21158         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21159         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21160         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21161         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21162         * tests/uninorm/test-compat-decomposition.c: Likewise.
21163         * tests/uninorm/test-composition.c: Likewise.
21164         * tests/uninorm/test-decomposing-form.c: Likewise.
21165         * tests/uninorm/test-decomposition.c: Likewise.
21166         * tests/uninorm/test-u8-nfc.c: Likewise.
21167         * tests/uninorm/test-u8-nfd.c: Likewise.
21168         * tests/uninorm/test-u8-nfkc.c: Likewise.
21169         * tests/uninorm/test-u8-nfkd.c: Likewise.
21170         * tests/uninorm/test-u8-normcmp.c: Likewise.
21171         * tests/uninorm/test-u8-normcoll.c: Likewise.
21172         * tests/uninorm/test-u16-nfc.c: Likewise.
21173         * tests/uninorm/test-u16-nfd.c: Likewise.
21174         * tests/uninorm/test-u16-nfkc.c: Likewise.
21175         * tests/uninorm/test-u16-nfkd.c: Likewise.
21176         * tests/uninorm/test-u16-normcmp.c: Likewise.
21177         * tests/uninorm/test-u16-normcoll.c: Likewise.
21178         * tests/uninorm/test-u32-nfc.c: Likewise.
21179         * tests/uninorm/test-u32-nfd.c: Likewise.
21180         * tests/uninorm/test-u32-nfkc.c: Likewise.
21181         * tests/uninorm/test-u32-nfkd.c: Likewise.
21182         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21183         * tests/uninorm/test-u32-normcmp.c: Likewise.
21184         * tests/uninorm/test-u32-normcoll.c: Likewise.
21185         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21186         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21187         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21188         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21189         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21190         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21191         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21192         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21193         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21194         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21195         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21196         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21197         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21198         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21199         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21200         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21201         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21202         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21203         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21204         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21205         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21206         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21207         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21208         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21209         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21210         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21211         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21212         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21213         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21214         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21215         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21216         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21217         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21218         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21219         * tests/uniwidth/test-u8-width.c: Likewise.
21220         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21221         * tests/uniwidth/test-u16-width.c: Likewise.
21222         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21223         * tests/uniwidth/test-u32-width.c: Likewise.
21224         * tests/uniwidth/test-uc_width.c: Likewise.
21225         * tests/uniwidth/test-uc_width2.c: Likewise.
21226         * modules/acl-tests (Files): Add tests/macros.h.
21227         * modules/areadlink-tests (Files): Likewise.
21228         * modules/areadlink-with-size-tests (Files): Likewise.
21229         * modules/areadlinkat-tests (Files): Likewise.
21230         * modules/areadlinkat-with-size-tests (Files): Likewise.
21231         * modules/argmatch-tests (Files): Likewise.
21232         * modules/argv-iter-tests (Files): Likewise.
21233         * modules/array-list-tests (Files): Likewise.
21234         * modules/array-mergesort-tests (Files): Likewise.
21235         * modules/array-oset-tests (Files): Likewise.
21236         * modules/avltree-list-tests (Files): Likewise.
21237         * modules/avltree-oset-tests (Files): Likewise.
21238         * modules/avltreehash-list-tests (Files): Likewise.
21239         * modules/base64-tests (Files): Likewise.
21240         * modules/binary-io-tests (Files): Likewise.
21241         * modules/bitrotate-tests (Files): Likewise.
21242         * modules/btowc-tests (Files): Likewise.
21243         * modules/byteswap-tests (Files): Likewise.
21244         * modules/c-ctype-tests (Files): Likewise.
21245         * modules/c-stack-tests (Files): Likewise.
21246         * modules/c-strcase-tests (Files): Likewise.
21247         * modules/c-strcasestr-tests (Files): Likewise.
21248         * modules/c-strstr-tests (Files): Likewise.
21249         * modules/canonicalize-lgpl-tests (Files): Likewise.
21250         * modules/canonicalize-tests (Files): Likewise.
21251         * modules/carray-list-tests (Files): Likewise.
21252         * modules/ceilf-tests (Files): Likewise.
21253         * modules/ceill-tests (Files): Likewise.
21254         * modules/chown-tests (Files): Likewise.
21255         * modules/cloexec-tests (Files): Likewise.
21256         * modules/copy-file-tests (Files): Likewise.
21257         * modules/count-one-bits-tests (Files): Likewise.
21258         * modules/dprintf-posix-tests (Files): Likewise.
21259         * modules/dup2-tests (Files): Likewise.
21260         * modules/dup3-tests (Files): Likewise.
21261         * modules/duplocale-tests (Files): Likewise.
21262         * modules/fbufmode-tests (Files): Likewise.
21263         * modules/fchdir-tests (Files): Likewise.
21264         * modules/fcntl-safer-tests (Files): Likewise.
21265         * modules/fcntl-tests (Files): Likewise.
21266         * modules/fdopendir-tests (Files): Likewise.
21267         * modules/fdutimensat-tests (Files): Likewise.
21268         * modules/fflush-tests (Files): Likewise.
21269         * modules/filevercmp-tests (Files): Likewise.
21270         * modules/flock-tests (Files): Likewise.
21271         * modules/floorf-tests (Files): Likewise.
21272         * modules/floorl-tests (Files): Likewise.
21273         * modules/fnmatch-tests (Files): Likewise.
21274         * modules/fopen-safer-tests (Files): Likewise.
21275         * modules/fopen-tests (Files): Likewise.
21276         * modules/fpending-tests (Files): Likewise.
21277         * modules/fprintf-posix-tests (Files): Likewise.
21278         * modules/fpurge-tests (Files): Likewise.
21279         * modules/freadable-tests (Files): Likewise.
21280         * modules/freadahead-tests (Files): Likewise.
21281         * modules/freading-tests (Files): Likewise.
21282         * modules/freadptr-tests (Files): Likewise.
21283         * modules/freadseek-tests (Files): Likewise.
21284         * modules/freopen-tests (Files): Likewise.
21285         * modules/frexp-nolibm-tests (Files): Likewise.
21286         * modules/frexp-tests (Files): Likewise.
21287         * modules/frexpl-nolibm-tests (Files): Likewise.
21288         * modules/frexpl-tests (Files): Likewise.
21289         * modules/fseek-tests (Files): Likewise.
21290         * modules/fseeko-tests (Files): Likewise.
21291         * modules/fstrcmp-tests (Files): Likewise.
21292         * modules/fsync-tests (Files): Likewise.
21293         * modules/ftell-tests (Files): Likewise.
21294         * modules/ftello-tests (Files): Likewise.
21295         * modules/func-tests (Files): Likewise.
21296         * modules/futimens-tests (Files): Likewise.
21297         * modules/fwritable-tests (Files): Likewise.
21298         * modules/fwriting-tests (Files): Likewise.
21299         * modules/getcwd-tests (Files): Likewise.
21300         * modules/getdate-tests (Files): Likewise.
21301         * modules/getdelim-tests (Files): Likewise.
21302         * modules/getdtablesize-tests (Files): Likewise.
21303         * modules/getgroups-tests (Files): Likewise.
21304         * modules/getline-tests (Files): Likewise.
21305         * modules/getndelim2-tests (Files): Likewise.
21306         * modules/glob-tests (Files): Likewise.
21307         * modules/hash-tests (Files): Likewise.
21308         * modules/i-ring-tests (Files): Likewise.
21309         * modules/iconv-tests (Files): Likewise.
21310         * modules/iconv_open-utf-tests (Files): Likewise.
21311         * modules/idpriv-drop-tests (Files): Likewise.
21312         * modules/idpriv-droptemp-tests (Files): Likewise.
21313         * modules/inet_ntop-tests (Files): Likewise.
21314         * modules/inet_pton-tests (Files): Likewise.
21315         * modules/isblank-tests (Files): Likewise.
21316         * modules/isfinite-tests (Files): Likewise.
21317         * modules/isinf-tests (Files): Likewise.
21318         * modules/isnan-tests (Files): Likewise.
21319         * modules/isnand-nolibm-tests (Files): Likewise.
21320         * modules/isnand-tests (Files): Likewise.
21321         * modules/isnanf-nolibm-tests (Files): Likewise.
21322         * modules/isnanf-tests (Files): Likewise.
21323         * modules/isnanl-nolibm-tests (Files): Likewise.
21324         * modules/isnanl-tests (Files): Likewise.
21325         * modules/lchown-tests (Files): Likewise.
21326         * modules/ldexpl-tests (Files): Likewise.
21327         * modules/link-tests (Files): Likewise.
21328         * modules/linkat-tests (Files): Likewise.
21329         * modules/linked-list-tests (Files): Likewise.
21330         * modules/linkedhash-list-tests (Files): Likewise.
21331         * modules/localename-tests (Files): Likewise.
21332         * modules/lseek-tests (Files): Likewise.
21333         * modules/lstat-tests (Files): Likewise.
21334         * modules/mbmemcasecmp-tests (Files): Likewise.
21335         * modules/mbmemcasecoll-tests (Files): Likewise.
21336         * modules/mbrtowc-tests (Files): Likewise.
21337         * modules/mbscasecmp-tests (Files): Likewise.
21338         * modules/mbscasestr-tests (Files): Likewise.
21339         * modules/mbschr-tests (Files): Likewise.
21340         * modules/mbscspn-tests (Files): Likewise.
21341         * modules/mbsinit-tests (Files): Likewise.
21342         * modules/mbsncasecmp-tests (Files): Likewise.
21343         * modules/mbsnrtowcs-tests (Files): Likewise.
21344         * modules/mbspbrk-tests (Files): Likewise.
21345         * modules/mbspcasecmp-tests (Files): Likewise.
21346         * modules/mbsrchr-tests (Files): Likewise.
21347         * modules/mbsrtowcs-tests (Files): Likewise.
21348         * modules/mbsspn-tests (Files): Likewise.
21349         * modules/mbsstr-tests (Files): Likewise.
21350         * modules/memchr-tests (Files): Likewise.
21351         * modules/memchr2-tests (Files): Likewise.
21352         * modules/memcmp-tests (Files): Likewise.
21353         * modules/memmem-tests (Files): Likewise.
21354         * modules/memrchr-tests (Files): Likewise.
21355         * modules/mkdir-tests (Files): Likewise.
21356         * modules/mkfifo-tests (Files): Likewise.
21357         * modules/mkfifoat-tests (Files): Likewise.
21358         * modules/mknod-tests (Files): Likewise.
21359         * modules/nanosleep-tests (Files): Likewise.
21360         * modules/nl_langinfo-tests (Files): Likewise.
21361         * modules/obstack-printf-tests (Files): Likewise.
21362         * modules/open-tests (Files): Likewise.
21363         * modules/openat-tests (Files): Likewise.
21364         * modules/pipe-filter-gi-tests (Files): Likewise.
21365         * modules/pipe-filter-ii-tests (Files): Likewise.
21366         * modules/pipe2-tests (Files): Likewise.
21367         * modules/popen-safer-tests (Files): Likewise.
21368         * modules/popen-tests (Files): Likewise.
21369         * modules/posixtm-tests (Files): Likewise.
21370         * modules/pread-tests (Files): Likewise.
21371         * modules/printf-frexp-tests (Files): Likewise.
21372         * modules/printf-frexpl-tests (Files): Likewise.
21373         * modules/printf-posix-tests (Files): Likewise.
21374         * modules/priv-set-tests (Files): Likewise.
21375         * modules/quotearg-tests (Files): Likewise.
21376         * modules/random_r-tests (Files): Likewise.
21377         * modules/rawmemchr-tests (Files): Likewise.
21378         * modules/rbtree-list-tests (Files): Likewise.
21379         * modules/rbtree-oset-tests (Files): Likewise.
21380         * modules/rbtreehash-list-tests (Files): Likewise.
21381         * modules/readlink-tests (Files): Likewise.
21382         * modules/remove-tests (Files): Likewise.
21383         * modules/rename-tests (Files): Likewise.
21384         * modules/renameat-tests (Files): Likewise.
21385         * modules/rmdir-tests (Files): Likewise.
21386         * modules/round-tests (Files): Likewise.
21387         * modules/roundf-tests (Files): Likewise.
21388         * modules/roundl-tests (Files): Likewise.
21389         * modules/safe-alloc-tests (Files): Likewise.
21390         * modules/setenv-tests (Files): Likewise.
21391         * modules/sigaction-tests (Files): Likewise.
21392         * modules/signbit-tests (Files): Likewise.
21393         * modules/sleep-tests (Files): Likewise.
21394         * modules/snprintf-posix-tests (Files): Likewise.
21395         * modules/snprintf-tests (Files): Likewise.
21396         * modules/sprintf-posix-tests (Files): Likewise.
21397         * modules/stat-tests (Files): Likewise.
21398         * modules/stat-time-tests (Files): Likewise.
21399         * modules/strcasestr-tests (Files): Likewise.
21400         * modules/strchrnul-tests (Files): Likewise.
21401         * modules/strerror-tests (Files): Likewise.
21402         * modules/striconv-tests (Files): Likewise.
21403         * modules/striconveh-tests (Files): Likewise.
21404         * modules/striconveha-tests (Files): Likewise.
21405         * modules/strsignal-tests (Files): Likewise.
21406         * modules/strstr-tests (Files): Likewise.
21407         * modules/strtod-tests (Files): Likewise.
21408         * modules/strverscmp-tests (Files): Likewise.
21409         * modules/symlink-tests (Files): Likewise.
21410         * modules/symlinkat-tests (Files): Likewise.
21411         * modules/trunc-tests (Files): Likewise.
21412         * modules/truncf-tests (Files): Likewise.
21413         * modules/truncl-tests (Files): Likewise.
21414         * modules/uname-tests (Files): Likewise.
21415         * modules/unicase/cased-tests (Files): Likewise.
21416         * modules/unicase/ignorable-tests (Files): Likewise.
21417         * modules/unicase/locale-language-tests (Files): Likewise.
21418         * modules/unicase/tolower-tests (Files): Likewise.
21419         * modules/unicase/totitle-tests (Files): Likewise.
21420         * modules/unicase/toupper-tests (Files): Likewise.
21421         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21422         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21423         * modules/unicase/u8-casefold-tests (Files): Likewise.
21424         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21425         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21426         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21427         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21428         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21429         * modules/unicase/u8-tolower-tests (Files): Likewise.
21430         * modules/unicase/u8-totitle-tests (Files): Likewise.
21431         * modules/unicase/u8-toupper-tests (Files): Likewise.
21432         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21433         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21434         * modules/unicase/u16-casefold-tests (Files): Likewise.
21435         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21436         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21437         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21438         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21439         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21440         * modules/unicase/u16-tolower-tests (Files): Likewise.
21441         * modules/unicase/u16-totitle-tests (Files): Likewise.
21442         * modules/unicase/u16-toupper-tests (Files): Likewise.
21443         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21444         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21445         * modules/unicase/u32-casefold-tests (Files): Likewise.
21446         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21447         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21448         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21449         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21450         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21451         * modules/unicase/u32-tolower-tests (Files): Likewise.
21452         * modules/unicase/u32-totitle-tests (Files): Likewise.
21453         * modules/unicase/u32-toupper-tests (Files): Likewise.
21454         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21455         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21456         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21457         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21458         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21459         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21460         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21461         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21462         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21463         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21464         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21465         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21466         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21467         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21468         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21469         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21470         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21471         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21472         * modules/unictype/block-list-tests (Files): Likewise.
21473         * modules/unictype/block-of-tests (Files): Likewise.
21474         * modules/unictype/block-test-tests (Files): Likewise.
21475         * modules/unictype/category-C-tests (Files): Likewise.
21476         * modules/unictype/category-Cc-tests (Files): Likewise.
21477         * modules/unictype/category-Cf-tests (Files): Likewise.
21478         * modules/unictype/category-Cn-tests (Files): Likewise.
21479         * modules/unictype/category-Co-tests (Files): Likewise.
21480         * modules/unictype/category-Cs-tests (Files): Likewise.
21481         * modules/unictype/category-L-tests (Files): Likewise.
21482         * modules/unictype/category-Ll-tests (Files): Likewise.
21483         * modules/unictype/category-Lm-tests (Files): Likewise.
21484         * modules/unictype/category-Lo-tests (Files): Likewise.
21485         * modules/unictype/category-Lt-tests (Files): Likewise.
21486         * modules/unictype/category-Lu-tests (Files): Likewise.
21487         * modules/unictype/category-M-tests (Files): Likewise.
21488         * modules/unictype/category-Mc-tests (Files): Likewise.
21489         * modules/unictype/category-Me-tests (Files): Likewise.
21490         * modules/unictype/category-Mn-tests (Files): Likewise.
21491         * modules/unictype/category-N-tests (Files): Likewise.
21492         * modules/unictype/category-Nd-tests (Files): Likewise.
21493         * modules/unictype/category-Nl-tests (Files): Likewise.
21494         * modules/unictype/category-No-tests (Files): Likewise.
21495         * modules/unictype/category-P-tests (Files): Likewise.
21496         * modules/unictype/category-Pc-tests (Files): Likewise.
21497         * modules/unictype/category-Pd-tests (Files): Likewise.
21498         * modules/unictype/category-Pe-tests (Files): Likewise.
21499         * modules/unictype/category-Pf-tests (Files): Likewise.
21500         * modules/unictype/category-Pi-tests (Files): Likewise.
21501         * modules/unictype/category-Po-tests (Files): Likewise.
21502         * modules/unictype/category-Ps-tests (Files): Likewise.
21503         * modules/unictype/category-S-tests (Files): Likewise.
21504         * modules/unictype/category-Sc-tests (Files): Likewise.
21505         * modules/unictype/category-Sk-tests (Files): Likewise.
21506         * modules/unictype/category-Sm-tests (Files): Likewise.
21507         * modules/unictype/category-So-tests (Files): Likewise.
21508         * modules/unictype/category-Z-tests (Files): Likewise.
21509         * modules/unictype/category-Zl-tests (Files): Likewise.
21510         * modules/unictype/category-Zp-tests (Files): Likewise.
21511         * modules/unictype/category-Zs-tests (Files): Likewise.
21512         * modules/unictype/category-and-not-tests (Files): Likewise.
21513         * modules/unictype/category-and-tests (Files): Likewise.
21514         * modules/unictype/category-byname-tests (Files): Likewise.
21515         * modules/unictype/category-name-tests (Files): Likewise.
21516         * modules/unictype/category-none-tests (Files): Likewise.
21517         * modules/unictype/category-of-tests (Files): Likewise.
21518         * modules/unictype/category-or-tests (Files): Likewise.
21519         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21520         * modules/unictype/combining-class-tests (Files): Likewise.
21521         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21522         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21523         * modules/unictype/ctype-blank-tests (Files): Likewise.
21524         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21525         * modules/unictype/ctype-digit-tests (Files): Likewise.
21526         * modules/unictype/ctype-graph-tests (Files): Likewise.
21527         * modules/unictype/ctype-lower-tests (Files): Likewise.
21528         * modules/unictype/ctype-print-tests (Files): Likewise.
21529         * modules/unictype/ctype-punct-tests (Files): Likewise.
21530         * modules/unictype/ctype-space-tests (Files): Likewise.
21531         * modules/unictype/ctype-upper-tests (Files): Likewise.
21532         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21533         * modules/unictype/decimal-digit-tests (Files): Likewise.
21534         * modules/unictype/digit-tests (Files): Likewise.
21535         * modules/unictype/mirror-tests (Files): Likewise.
21536         * modules/unictype/numeric-tests (Files): Likewise.
21537         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21538         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21539         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21540         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21541         Likewise.
21542         * modules/unictype/property-bidi-block-separator-tests (Files):
21543         Likewise.
21544         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21545         Likewise.
21546         * modules/unictype/property-bidi-common-separator-tests (Files):
21547         Likewise.
21548         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21549         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21550         Likewise.
21551         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21552         Likewise.
21553         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21554         Likewise.
21555         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21556         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21557         Likewise.
21558         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21559         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21560         Likewise.
21561         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21562         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21563         * modules/unictype/property-bidi-segment-separator-tests (Files):
21564         Likewise.
21565         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21566         * modules/unictype/property-byname-tests (Files): Likewise.
21567         * modules/unictype/property-combining-tests (Files): Likewise.
21568         * modules/unictype/property-composite-tests (Files): Likewise.
21569         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21570         * modules/unictype/property-dash-tests (Files): Likewise.
21571         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21572         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21573         Likewise.
21574         * modules/unictype/property-deprecated-tests (Files): Likewise.
21575         * modules/unictype/property-diacritic-tests (Files): Likewise.
21576         * modules/unictype/property-extender-tests (Files): Likewise.
21577         * modules/unictype/property-format-control-tests (Files): Likewise.
21578         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21579         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21580         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21581         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21582         * modules/unictype/property-hyphen-tests (Files): Likewise.
21583         * modules/unictype/property-id-continue-tests (Files): Likewise.
21584         * modules/unictype/property-id-start-tests (Files): Likewise.
21585         * modules/unictype/property-ideographic-tests (Files): Likewise.
21586         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21587         * modules/unictype/property-ids-trinary-operator-tests (Files):
21588         Likewise.
21589         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21590         * modules/unictype/property-iso-control-tests (Files): Likewise.
21591         * modules/unictype/property-join-control-tests (Files): Likewise.
21592         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21593         * modules/unictype/property-line-separator-tests (Files): Likewise.
21594         * modules/unictype/property-logical-order-exception-tests (Files):
21595         Likewise.
21596         * modules/unictype/property-lowercase-tests (Files): Likewise.
21597         * modules/unictype/property-math-tests (Files): Likewise.
21598         * modules/unictype/property-non-break-tests (Files): Likewise.
21599         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21600         * modules/unictype/property-numeric-tests (Files): Likewise.
21601         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21602         * modules/unictype/property-other-default-ignorable-code-point-tests
21603         (Files): Likewise.
21604         * modules/unictype/property-other-grapheme-extend-tests (Files):
21605         Likewise.
21606         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21607         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21608         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21609         * modules/unictype/property-other-math-tests (Files): Likewise.
21610         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21611         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21612         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21613         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21614         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21615         * modules/unictype/property-private-use-tests (Files): Likewise.
21616         * modules/unictype/property-punctuation-tests (Files): Likewise.
21617         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21618         * modules/unictype/property-radical-tests (Files): Likewise.
21619         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21620         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21621         * modules/unictype/property-space-tests (Files): Likewise.
21622         * modules/unictype/property-terminal-punctuation-tests (Files):
21623         Likewise.
21624         * modules/unictype/property-test-tests (Files): Likewise.
21625         * modules/unictype/property-titlecase-tests (Files): Likewise.
21626         * modules/unictype/property-unassigned-code-value-tests (Files):
21627         Likewise.
21628         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21629         * modules/unictype/property-uppercase-tests (Files): Likewise.
21630         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21631         * modules/unictype/property-white-space-tests (Files): Likewise.
21632         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21633         * modules/unictype/property-xid-start-tests (Files): Likewise.
21634         * modules/unictype/property-zero-width-tests (Files): Likewise.
21635         * modules/unictype/scripts-tests (Files): Likewise.
21636         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21637         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21638         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21639         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21640         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21641         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21642         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21643         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21644         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21645         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21646         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21647         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21648         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21649         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21650         * modules/uninorm/composition-tests (Files): Likewise.
21651         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21652         * modules/uninorm/decomposition-tests (Files): Likewise.
21653         * modules/uninorm/filter-tests (Files): Likewise.
21654         * modules/uninorm/nfc-tests (Files): Likewise.
21655         * modules/uninorm/nfd-tests (Files): Likewise.
21656         * modules/uninorm/nfkc-tests (Files): Likewise.
21657         * modules/uninorm/nfkd-tests (Files): Likewise.
21658         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21659         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21660         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21661         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21662         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21663         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21664         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21665         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21666         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21667         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21668         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21669         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21670         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21671         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21672         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21673         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21674         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21675         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21676         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21677         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21678         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21679         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21680         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21681         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21682         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21683         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21684         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21685         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21686         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21687         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21688         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21689         * modules/uniwidth/u8-width-tests (Files): Likewise.
21690         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21691         * modules/uniwidth/u16-width-tests (Files): Likewise.
21692         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21693         * modules/uniwidth/u32-width-tests (Files): Likewise.
21694         * modules/uniwidth/width-tests (Files): Likewise.
21695         * modules/unlink-tests (Files): Likewise.
21696         * modules/unsetenv-tests (Files): Likewise.
21697         * modules/usleep-tests (Files): Likewise.
21698         * modules/utimens-tests (Files): Likewise.
21699         * modules/utimensat-tests (Files): Likewise.
21700         * modules/vasnprintf-posix-tests (Files): Likewise.
21701         * modules/vasnprintf-tests (Files): Likewise.
21702         * modules/vasprintf-posix-tests (Files): Likewise.
21703         * modules/vasprintf-tests (Files): Likewise.
21704         * modules/vdprintf-posix-tests (Files): Likewise.
21705         * modules/vfprintf-posix-tests (Files): Likewise.
21706         * modules/vprintf-posix-tests (Files): Likewise.
21707         * modules/vsnprintf-posix-tests (Files): Likewise.
21708         * modules/vsnprintf-tests (Files): Likewise.
21709         * modules/vsprintf-posix-tests (Files): Likewise.
21710         * modules/wcrtomb-tests (Files): Likewise.
21711         * modules/wcsnrtombs-tests (Files): Likewise.
21712         * modules/wcsrtombs-tests (Files): Likewise.
21713         * modules/wctype-tests (Files): Likewise.
21714         * modules/wcwidth-tests (Files): Likewise.
21715         * modules/xmemdup0-tests (Files): Likewise.
21716         * modules/xprintf-posix-tests (Files): Likewise.
21717         * modules/xvasprintf-tests (Files): Likewise.
21718
21719 2009-12-24  Eric Blake  <ebb9@byu.net>
21720
21721         test-nanosleep: fix typo
21722         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21723         patch.
21724         Reported by Bruno Haible.
21725
21726 2009-12-24  Bruno Haible  <bruno@clisp.org>
21727
21728         Reduce namespace pollution on glibc systems.
21729         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21730         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21731         systems.
21732         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21733         <getopt.h> on glibc systems.
21734         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21735         systems.
21736         * lib/fcntl.c: Include <unistd.h> here instead.
21737
21738 2009-12-24  Bruno Haible  <bruno@clisp.org>
21739
21740         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21741
21742 2009-12-24  Eric Blake  <ebb9@byu.net>
21743
21744         tests: add signature checks
21745         * tests/signature.h (SIGNATURE_CHECK): New file.
21746         * modules/atexit-tests (Files): Use it.
21747         * modules/btowc-tests (Files): Likewise.
21748         * modules/canonicalize-lgpl-tests (Files): Likewise.
21749         * modules/ceilf-tests (Files): Likewise.
21750         * modules/ceill-tests (Files): Likewise.
21751         * modules/chown-tests (Files): Likewise.
21752         * modules/dprintf-posix-tests (Files): Likewise.
21753         * modules/dup2-tests (Files): Likewise.
21754         * modules/dup3-tests (Files): Likewise.
21755         * modules/duplocale-tests (Files): Likewise.
21756         * modules/fchdir-tests (Files): Likewise.
21757         * modules/fcntl-tests (Files): Likewise.
21758         * modules/fdopendir-tests (Files): Likewise.
21759         * modules/fflush-tests (Files): Likewise.
21760         * modules/flock-tests (Files): Likewise.
21761         * modules/floorf-tests (Files): Likewise.
21762         * modules/floorl-tests (Files): Likewise.
21763         * modules/fnmatch-tests (Files): Likewise.
21764         * modules/fopen-tests (Files): Likewise.
21765         * modules/fprintf-posix-tests (Files): Likewise.
21766         * modules/freopen-tests (Files): Likewise.
21767         * modules/frexp-nolibm-tests (Files): Likewise.
21768         * modules/frexp-tests (Files): Likewise.
21769         * modules/frexpl-nolibm-tests (Files): Likewise.
21770         * modules/frexpl-tests (Files): Likewise.
21771         * modules/fseek-tests (Files): Likewise.
21772         * modules/fseeko-tests (Files): Likewise.
21773         * modules/fsync-tests (Files): Likewise.
21774         * modules/ftell-tests (Files): Likewise.
21775         * modules/ftello-tests (Files): Likewise.
21776         * modules/futimens-tests (Files): Likewise.
21777         * modules/getaddrinfo-tests (Files): Likewise.
21778         * modules/getcwd-tests (Files): Likewise.
21779         * modules/getdelim-tests (Files): Likewise.
21780         * modules/getdtablesize-tests (Files): Likewise.
21781         * modules/getgroups-tests (Files): Likewise.
21782         * modules/gethostname-tests (Files): Likewise.
21783         * modules/getline-tests (Files): Likewise.
21784         * modules/getopt-posix-tests (Files): Likewise.
21785         * modules/gettimeofday-tests (Files): Likewise.
21786         * modules/glob-tests (Files): Likewise.
21787         * modules/iconv-tests (Files): Likewise.
21788         * modules/inet_ntop-tests (Files): Likewise.
21789         * modules/inet_pton-tests (Files): Likewise.
21790         * modules/isblank-tests (Files): Likewise.
21791         * modules/lchown-tests (Files): Likewise.
21792         * modules/ldexpl-tests (Files): Likewise.
21793         * modules/link-tests (Files): Likewise.
21794         * modules/linkat-tests (Files): Likewise.
21795         * modules/lseek-tests (Files): Likewise.
21796         * modules/lstat-tests (Files): Likewise.
21797         * modules/mbrtowc-tests (Files): Likewise.
21798         * modules/mbsinit-tests (Files): Likewise.
21799         * modules/mbsnrtowcs-tests (Files): Likewise.
21800         * modules/mbsrtowcs-tests (Files): Likewise.
21801         * modules/memchr-tests (Files): Likewise.
21802         * modules/memcmp-tests (Files): Likewise.
21803         * modules/memmem-tests (Files): Likewise.
21804         * modules/memrchr-tests (Files): Likewise.
21805         * modules/mkdir-tests (Files): Likewise.
21806         * modules/mkfifo-tests (Files): Likewise.
21807         * modules/mkfifoat-tests (Files): Likewise.
21808         * modules/mknod-tests (Files): Likewise.
21809         * modules/nanosleep-tests (Files): Likewise.
21810         * modules/nl_langinfo-tests (Files): Likewise.
21811         * modules/obstack-printf-tests (Files): Likewise.
21812         * modules/open-tests (Files): Likewise.
21813         * modules/openat-tests (Files): Likewise.
21814         * modules/perror-tests (Files): Likewise.
21815         * modules/pipe2-tests (Files): Likewise.
21816         * modules/poll-tests (Files): Likewise.
21817         * modules/popen-tests (Files): Likewise.
21818         * modules/posix_spawn-tests (Files): Likewise.
21819         * modules/posix_spawnp-tests (Files): Likewise.
21820         * modules/pread-tests (Files): Likewise.
21821         * modules/printf-posix-tests (Files): Likewise.
21822         * modules/pty-tests (Files): Likewise.
21823         * modules/random_r-tests (Files): Likewise.
21824         * modules/rawmemchr-tests (Files): Likewise.
21825         * modules/readlink-tests (Files): Likewise.
21826         * modules/remove-tests (Files): Likewise.
21827         * modules/rename-tests (Files): Likewise.
21828         * modules/renameat-tests (Files): Likewise.
21829         * modules/rmdir-tests (Files): Likewise.
21830         * modules/round-tests (Files): Likewise.
21831         * modules/roundf-tests (Files): Likewise.
21832         * modules/roundl-tests (Files): Likewise.
21833         * modules/select-tests (Files): Likewise.
21834         * modules/setenv-tests (Files): Likewise.
21835         * modules/sigaction-tests (Files): Likewise.
21836         * modules/sleep-tests (Files): Likewise.
21837         * modules/snprintf-posix-tests (Files): Likewise.
21838         * modules/snprintf-tests (Files): Likewise.
21839         * modules/sprintf-posix-tests (Files): Likewise.
21840         * modules/stat-tests (Files): Likewise.
21841         * modules/strcasestr-tests (Files): Likewise.
21842         * modules/strchrnul-tests (Files): Likewise.
21843         * modules/strerror-tests (Files): Likewise.
21844         * modules/strsignal-tests (Files): Likewise.
21845         * modules/strstr-tests (Files): Likewise.
21846         * modules/strtod-tests (Files): Likewise.
21847         * modules/strverscmp-tests (Files): Likewise.
21848         * modules/symlink-tests (Files): Likewise.
21849         * modules/symlinkat-tests (Files): Likewise.
21850         * modules/times-tests (Files): Likewise.
21851         * modules/trunc-tests (Files): Likewise.
21852         * modules/truncf-tests (Files): Likewise.
21853         * modules/truncl-tests (Files): Likewise.
21854         * modules/tsearch-tests (Files): Likewise.
21855         * modules/uname-tests (Files): Likewise.
21856         * modules/unlink-tests (Files): Likewise.
21857         * modules/unsetenv-tests (Files): Likewise.
21858         * modules/usleep-tests (Files): Likewise.
21859         * modules/utimensat-tests (Files): Likewise.
21860         * modules/vasprintf-tests (Files): Likewise.
21861         * modules/vdprintf-posix-tests (Files): Likewise.
21862         * modules/vfprintf-posix-tests (Files): Likewise.
21863         * modules/vprintf-posix-tests (Files): Likewise.
21864         * modules/vsnprintf-posix-tests (Files): Likewise.
21865         * modules/vsnprintf-tests (Files): Likewise.
21866         * modules/vsprintf-posix-tests (Files): Likewise.
21867         * modules/wcrtomb-tests (Files): Likewise.
21868         * modules/wcsnrtombs-tests (Files): Likewise.
21869         * modules/wcsrtombs-tests (Files): Likewise.
21870         * modules/wcwidth-tests (Files): Likewise.
21871         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21872         * tests/test-isinf.c (isinf): Likewise.
21873         * tests/test-isnan.c (isnan): Likewise.
21874         * tests/test-signbit.c (signbit): Likewise.
21875         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21876         declaration, either as macro or with correct signature.
21877         (select): Ensure function under test is declared with correct
21878         signature in correct header.
21879         * tests/test-atexit.c (atexit): Likewise.
21880         * tests/test-btowc.c (btowc): Likewise.
21881         * tests/test-canonicalize-lgpl.c (realpath)
21882         (canonicalize_file_name): Likewise.
21883         * tests/test-ceilf1.c (ceilf): Likewise.
21884         * tests/test-ceill.c (ceill): Likewise.
21885         * tests/test-chown.c (chown): Likewise.
21886         * tests/test-dprintf-posix.c (dprintf): Likewise.
21887         * tests/test-dup2.c (dup2): Likewise.
21888         * tests/test-dup3.c (dup3): Likewise.
21889         * tests/test-duplocale.c (duplocale): Likewise.
21890         * tests/test-fchdir.c (fchdir): Likewise.
21891         * tests/test-fchownat.c (fchownat): Likewise.
21892         * tests/test-fcntl.c (fcntl): Likewise.
21893         * tests/test-fdopendir.c (fdopendir): Likewise.
21894         * tests/test-fflush.c (fflush): Likewise.
21895         * tests/test-flock.c (flock): Likewise.
21896         * tests/test-floorf1.c (floorf): Likewise.
21897         * tests/test-floorl.c (floorl): Likewise.
21898         * tests/test-fnmatch.c (fnmatch): Likewise.
21899         * tests/test-fopen.c (fopen): Likewise.
21900         * tests/test-fprintf-posix.c (fprintf): Likewise.
21901         * tests/test-freopen.c (freopen): Likewise.
21902         * tests/test-frexp.c (frexp): Likewise.
21903         * tests/test-frexpl.c (frexpl): Likewise.
21904         * tests/test-fseek.c (fseek): Likewise.
21905         * tests/test-fseeko.c (fseeko): Likewise.
21906         * tests/test-fstatat.c (fstatat): Likewise.
21907         * tests/test-fsync.c (fsync): Likewise.
21908         * tests/test-ftell.c (ftell): Likewise.
21909         * tests/test-ftello.c (ftello): Likewise.
21910         * tests/test-futimens.c (futimens): Likewise.
21911         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21912         (gai_strerror): Likewise.
21913         * tests/test-getcwd.c (getcwd): Likewise.
21914         * tests/test-getdelim.c (getdelim): Likewise.
21915         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21916         * tests/test-getgroups.c (getgroups): Likewise.
21917         * tests/test-gethostname.c (gethostname): Likewise.
21918         * tests/test-getline.c (getline): Likewise.
21919         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21920         Likewise.
21921         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21922         * tests/test-glob.c (glob, globfree): Likewise.
21923         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21924         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21925         * tests/test-inet_pton.c (inet_pton): Likewise.
21926         * tests/test-isblank.c (isblank): Likewise.
21927         * tests/test-lchown.c (lchown): Likewise.
21928         * tests/test-ldexpl.c (ldexpl): Likewise.
21929         * tests/test-link.c (link): Likewise.
21930         * tests/test-linkat.c (linkat): Likewise.
21931         * tests/test-lseek.c (lseek): Likewise.
21932         * tests/test-lstat.c (lstat): Likewise.
21933         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21934         * tests/test-mbsinit.c (mbsinit): Likewise.
21935         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21936         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21937         * tests/test-memchr.c (memchr): Likewise.
21938         * tests/test-memcmp.c (memcmp): Likewise.
21939         * tests/test-memmem.c (memmem): Likewise.
21940         * tests/test-memrchr.c (memrchr): Likewise.
21941         * tests/test-mkdir.c (mkdir): Likewise.
21942         * tests/test-mkdirat.c (mkdirat): Likewise.
21943         * tests/test-mkfifo.c (mkfifo): Likewise.
21944         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21945         * tests/test-mknod.c (mknod): Likewise.
21946         * tests/test-nanosleep.c (nanosleep): Likewise.
21947         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21948         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21949         Likewise.
21950         * tests/test-open.c (open): Likewise.
21951         * tests/test-openat.c (openat): Likewise.
21952         * tests/test-perror.c (perror): Likewise.
21953         * tests/test-pipe2.c (pipe2): Likewise.
21954         * tests/test-poll.c (poll): Likewise.
21955         * tests/test-popen.c (popen, pclose): Likewise.
21956         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21957         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21958         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21959         (posix_spawn_file_actions_destroy)
21960         (posix_spawn_file_actions_addclose)
21961         (posix_spawn_file_actions_addopen)
21962         (posix_spawn_file_actions_adddup2): Likewise.
21963         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21964         * tests/test-pread.c (pread): Likewise.
21965         * tests/test-printf-posix.c (printf): Likewise.
21966         * tests/test-pty.c (openpty, forkpty): Likewise.
21967         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21968         (random_r): Likewise.
21969         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21970         * tests/test-readlink.c (readlink): Likewise.
21971         * tests/test-remove.c (remove): Likewise.
21972         * tests/test-rename.c (rename): Likewise.
21973         * tests/test-renameat.c (renameat): Likewise.
21974         * tests/test-rmdir.c (rmdir): Likewise.
21975         * tests/test-round1.c (round): Likewise.
21976         * tests/test-roundf1.c (roundf): Likewise.
21977         * tests/test-roundl.c (roundl): Likewise.
21978         * tests/test-setenv.c (setenv): Likewise.
21979         * tests/test-sigaction.c (sigaction): Likewise.
21980         * tests/test-sleep.c (sleep): Likewise.
21981         * tests/test-snprintf.c (snprintf): Likewise.
21982         * tests/test-sprintf-posix.c (sprintf): Likewise.
21983         * tests/test-stat.c (stat): Likewise.
21984         * tests/test-stpncpy.c (stpncpy): Likewise.
21985         * tests/test-strcasestr.c (strcasestr): Likewise.
21986         * tests/test-strchrnul.c (strchrnul): Likewise.
21987         * tests/test-strerror.c (strerror): Likewise.
21988         * tests/test-strsignal.c (strsignal): Likewise.
21989         * tests/test-strstr.c (strstr): Likewise.
21990         * tests/test-strtod.c (strtod): Likewise.
21991         * tests/test-strverscmp.c (strverscmp): Likewise.
21992         * tests/test-symlink.c (symlink): Likewise.
21993         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21994         * tests/test-times.c (times): Likewise.
21995         * tests/test-trunc1.c (trunc): Likewise.
21996         * tests/test-truncf1.c (truncf): Likewise.
21997         * tests/test-truncl.c (truncl): Likewise.
21998         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21999         Likewise.
22000         * tests/test-uname.c (uname): Likewise.
22001         * tests/test-unlink.c (unlink): Likewise.
22002         * tests/test-unlinkat.c (unlinkat): Likewise.
22003         * tests/test-unsetenv.c (unsetenv): Likewise.
22004         * tests/test-usleep.c (usleep): Likewise.
22005         * tests/test-utimensat.c (utimensat): Likewise.
22006         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22007         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22008         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22009         * tests/test-vprintf-posix.c (vprintf): Likewise.
22010         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22011         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22012         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22013         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22014         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22015         * tests/test-wcwidth.c (wcwidth): Likewise.
22016
22017         build: pull in conditional headers during GNULIB_POSIXCHECK
22018         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22019         definitions from any conditionally-included headers.
22020         * lib/stdlib.in.h (includes): Likewise.
22021         * lib/unistd.in.h (includes): Likewise.
22022
22023 2009-12-24  Bruno Haible  <bruno@clisp.org>
22024
22025         * tests/test-argv-iter.c: Include header file being tested immediately
22026         after config.h.
22027         * tests/test-base64.c: Likewise.
22028         * tests/test-flock.c: Likewise.
22029         * tests/test-fsync.c: Likewise.
22030         * tests/test-getdate.c: Likewise.
22031         * tests/test-getndelim2.c: Likewise.
22032         * tests/test-isfinite.c: Likewise.
22033         * tests/test-isinf.c: Likewise.
22034         * tests/test-strerror.c: Likewise.
22035         * tests/test-strsignal.c: Likewise.
22036
22037 2009-12-23  Eric Blake  <ebb9@byu.net>
22038
22039         unistd: work around cygwin bug
22040         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22041         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22042         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22043
22044 2009-12-23  Bruno Haible  <bruno@clisp.org>
22045
22046         localename: More tests.
22047         * tests/test-localename.c (SIZEOF): New macro.
22048         (categories): New variable.
22049         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22050         test_locale_name_default): Add test w.r.t. thread locale.
22051         (test_locale_name_thread): New function.
22052         (main): Invoke it.
22053
22054         localename: Make aware of thread locale.
22055         * lib/localename.h (gl_locale_name_thread): New declaration.
22056         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22057         behaviour with respect to thread locale.
22058         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22059         <langinfo.h>, glthread/lock.h.
22060         (SIZE_BITS): New macro.
22061         (string_hash): New function.
22062         (struct hash_node): New type.
22063         (HASH_TABLE_SIZE): New macro.
22064         (struniq_hash_table, struniq_lock): New variables.
22065         (struniq): New function.
22066         (gl_locale_name_thread): New function.
22067         (gl_locale_name): Invoke it.
22068         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22069         * modules/localename (Depends-on): Add lock.
22070         Reported by Mike Gran <spk121@yahoo.com>.
22071
22072 2009-12-23  Eric Blake  <ebb9@byu.net>
22073
22074         va-args: new module
22075         * modules/va-args: New file.
22076         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22077         * MODULES.html.sh (Core language properties): Mention it.
22078
22079         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22080         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22081         named alias for __attribute__((__unused__)).
22082         * lib/chown.c: Update client.
22083         * lib/fchmodat.c: Likewise.
22084         * lib/fts.c: Likewise.
22085         * lib/getdate.y: Likewise.
22086         * lib/getgroups.c: Likewise.
22087         * lib/getopt.c: Likewise.
22088         * lib/getugroups.c: Likewise.
22089         * lib/mkdir.c: Likewise.
22090         * lib/mkfifo.c: Likewise.
22091         * lib/mkfifoat.c: Likewise.
22092         * lib/mknod.c: Likewise.
22093         * lib/mknodat.c: Likewise.
22094         * lib/readlink.c: Likewise.
22095         * lib/se-context.in.h: Likewise.
22096         * lib/se-selinux.in.h: Likewise.
22097         * lib/sockets.c: Likewise.
22098         * lib/symlink.c: Likewise.
22099         * lib/symlinkat.c: Likewise.
22100         * lib/unicodeio.c: Likewise.
22101         * lib/unistr.h: Likewise.
22102         * tests/test-areadlink.c: Likewise.
22103         * tests/test-areadlinkat.c: Likewise.
22104         * tests/test-filenamecat.c: Likewise.
22105         * tests/test-fseeko.c: Likewise.
22106         * tests/test-ftello.c: Likewise.
22107         * tests/test-getdate.c: Likewise.
22108         * tests/test-getgroups.c: Likewise.
22109         * tests/test-gethostname.c: Likewise.
22110         * tests/test-quotearg.c: Likewise.
22111         * tests/test-version-etc.c: Likewise.
22112         * tests/test-xalloc-die.c: Likewise.
22113         * tests/test-xfprintf-posix.c: Likewise.
22114         * tests/test-xprintf-posix.c: Likewise.
22115         * tests/test-xvasprintf.c: Likewise.
22116
22117         tests: avoid compiler warnings
22118         * tests/test-fcntl.c (main): Delete unused parameters.
22119         * tests/test-freopen-safer.c (main): Likewise.
22120         * tests/test-xalloc-die.c (main): Mark unused parameters.
22121         * tests/test-fseeko.c (main): Likewise.
22122         * tests/test-ftello.c (main): Likewise.
22123         * tests/test-nanosleep.c (main): Avoid declaration warning.
22124         * tests/test-sleep.c (main): Likewise.
22125         * tests/test-unsetenv.c (main): Silence warning about string
22126         literal.
22127         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22128
22129 2009-12-23  Bruno Haible  <bruno@clisp.org>
22130
22131         * tests/test-localename.c (test_locale_name): New function, extracted
22132         from main. Also test mixed situations.
22133         (test_locale_name_posix, test_locale_name_environ,
22134         test_locale_name_default): New functions.
22135         (main): Invoke them all.
22136         * modules/localename-tests (configure.ac): Test for newlocale.
22137
22138 2009-12-23  Bruno Haible  <bruno@clisp.org>
22139
22140         unistd: Ensure getcwd gets declared before being overridden.
22141         * lib/unistd.in.h: Conditionally include <io.h>.
22142
22143 2009-12-22  Bruno Haible  <bruno@clisp.org>
22144
22145         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22146         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22147         (gl_WCHAR_H): Invoke it.
22148         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22149         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22150         Reported by Karl Berry <karl@freefriends.org>.
22151
22152 2009-12-22  Eric Blake  <ebb9@byu.net>
22153
22154         math, unistd: avoid redundant includes
22155         * lib/math.in.h (isnan): No need to re-include <math.h>.
22156         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22157
22158         getsubopt: work around cygwin bug
22159         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22160         avoid conflicting with system getsubopt.
22161         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22162         bug.
22163
22164         getopt: synchronize from glibc
22165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22166         parameter order.  Adjust all callers.
22167         (_getopt_internal_r, main): Adjust quoting in error messages.
22168         Drop considerations for outdated POSIX 1003.2 error message.
22169         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22170         callers.
22171         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22172
22173         test-getopt: test stderr behavior
22174         * modules/getopt-posix-tests (Depends-on): Add dup2.
22175         * tests/test-getopt.c (ASSERT): Avoid stderr.
22176         (main): Move stderr to a temporary file.
22177         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22178         Instead, add parameter to inform caller if output occurred.
22179         (test_getopt): Adjust all existing tests to expect silence, and
22180         add new tests of leading ":".
22181         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22182         glibc shortcomings with leading "-:" or "+:" in optstring.
22183         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22184         Likewise.
22185         * doc/posix-functions/getopt.texi (getopt): Likewise.
22186
22187         test-getopt: enhance test
22188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22189         supports optind=0.
22190         * tests/test-getopt.c (OPTIND_MIN): Move...
22191         * tests/test-getopt.h (OPTIND_MIN): ...here.
22192         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22193         Require that optind=0 works, since modern BSD supports it in
22194         addition to optreset, and since coreutils expects it.
22195         (test_getopt_long_only): New test.
22196         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22197         glibc shortcomings with 'W;', and enforcement of optind=0.
22198         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22199         Likewise.
22200
22201 2009-12-21  Bruno Haible  <bruno@clisp.org>
22202
22203         localename: Improvements for MacOS X and Cygwin.
22204         * lib/localename.h (gl_locale_name_environ): New declaration.
22205         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22206         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22207         (gl_locale_name_posix): Invoke it.
22208         (gl_locale_name_default): Add comments. Use Windows native API also on
22209         Cygwin.
22210
22211 2009-12-21  Bruno Haible  <bruno@clisp.org>
22212
22213         Update list of Win32 locale ids.
22214         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22215         (LANG_SAMI): Renamed from LANG_SAAMI.
22216         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22217         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22218         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22219         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22220         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22221         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22222         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22223         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22224         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22225         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22226         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22227         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22228         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22229         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22230         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22231         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22232         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22233         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22234         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22235         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22236         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22237         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22238         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22239         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22240         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22241         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22242         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22243         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22244         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22245         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22246         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22247         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22248         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22249         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22250         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22251         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22252         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22253         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22254         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22255         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22256         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22257         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22258         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22259         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22260         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22261         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22262         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22263         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22264         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22265         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22266         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22267         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22268         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22269         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22270         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22271         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22272         Add more languages and countries for Sami, Sorbian. Add more countries
22273         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22274         for Pashto. Change country for Syriac, Tswana.
22275
22276 2009-12-21  Eric Blake  <ebb9@byu.net>
22277
22278         test-utimens: avoid spurious failure
22279         * tests/test-chown.h (nap): Factor...
22280         * tests/nap.h: ...into new file.
22281         * tests/test-lchown.h (nap): Avoid duplication.
22282         * tests/test-utimens-common.h (nap): Use shared implementation,
22283         necessary on file systems with 1-second resolution.
22284         * modules/chown-tests (Files): Include new file.
22285         * modules/fdutimensat-tests (Files): Likewise.
22286         * modules/futimens-tests (Files): Likewise.
22287         * modules/lchown-tests (Files): Likewise.
22288         * modules/openat-tests (Files): Likewise.
22289         * modules/utimens-tests (Files): Likewise.
22290         * modules/utimensat-tests (Files): Likewise.
22291
22292 2009-12-19  Eric Blake  <ebb9@byu.net>
22293
22294         futimens, utimensat: work around Linux bug
22295         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22296         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22297         * lib/utimensat.c (rpl_utimensat): Work around it.
22298         * lib/futimens.c (rpl_futimens): Adjust comment.
22299
22300         utimens: work around Linux ctime bug
22301         * lib/utimens.c (detect_ctime_bug): New helper function.
22302         (update_timespec): Differentiate between workaround needed for
22303         this bug vs. what is needed for systems that lack utimensat.
22304         (fdutimens, lutimens): Work around bug.
22305
22306         utimens: check for ctime update
22307         * tests/test-utimens-common.h (check_ctime): Define.
22308         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22309         * tests/test-futimens.h (test_futimens): Likewise.
22310         * tests/test-lutimens.h (test_lutimens): Likewise.
22311         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22312         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22313
22314 2009-12-19  Bruno Haible  <bruno@clisp.org>
22315
22316         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22317         * tests/test-dprintf-posix2.sh: New file.
22318         * tests/test-dprintf-posix2.c: New file.
22319         * modules/dprintf-posix-tests (Files): Add them.
22320         (configure.ac): Check for getrlimit and setrlimit.
22321         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22322
22323 2009-12-19  Bruno Haible  <bruno@clisp.org>
22324
22325         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22326         * tests/test-fprintf-posix3.sh: New file.
22327         * tests/test-fprintf-posix3.c: New file.
22328         * modules/fprintf-posix-tests (Files): Add them.
22329         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22330
22331 2009-12-19  Eric Blake  <ebb9@byu.net>
22332
22333         dirfd: fix prototype
22334         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22335         * lib/dirfd.c (dirfd): Likewise.
22336
22337         canonicalize: reduce memory usage
22338         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22339         allocation to size.
22340         Reported by Solar Designer <solar@openwall.com>.
22341
22342 2009-12-19  Bruno Haible  <bruno@clisp.org>
22343
22344         New module attribute 'Applicability'.
22345         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22346         * gnulib-tool: New option --extract-applicability.
22347         (func_usage): Document it.
22348         (sed_extract_prog): Recognize it.
22349         (func_get_applicability): New function.
22350         (func_import): Generalize handling of 'link-warning' module.
22351         * modules/link-warning (Applicability): New section.
22352         * modules/arg-nonnull (Applicability): New section.
22353         Repoted by Simon Josefsson <simon@josefsson.org>.
22354
22355 2009-12-19  Bruno Haible  <bruno@clisp.org>
22356
22357         fflush: tweak
22358         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22359         * lib/fseeko.c (rpl_fseeko): Likewise.
22360
22361 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22362
22363         * lib/gl_list.h: Fix typo in comment.
22364
22365 2009-12-16  Eric Blake  <ebb9@byu.net>
22366
22367         fcntl: use to simplify other modules
22368         * modules/cloexec (Depends-on): Add fcntl.
22369         * modules/fchdir (Depends-on): Likewise.
22370         * modules/fd-safer-flag (Depends-on): Likewise.
22371         * modules/unistd-safer (Depends-on): Likewise.
22372         * modules/dup3 (configure.ac): Set module indicator.
22373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22374         missing.
22375         * lib/fchdir.c (_gl_register_dup): Fix comment.
22376         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22377         * lib/dup-safer.c (dup_safer): Likewise.
22378         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22379         * lib/dup3.c (dup3): Likewise.
22380         * tests/test-fchdir.c (main): Enhance test.
22381         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22382
22383         fcntl: port portions of fcntl to mingw
22384         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22385         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22386         replacement for mingw.
22387         * modules/fcntl (Description): Update.
22388         (Depends-on): Add dup2.
22389         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22390         * modules/fcntl-h (Makefile.am): Substitute it.
22391         * lib/fcntl.in.h (fcntl): Update declaration.
22392         (F_DUPFD, F_GETFD): New macros, when needed.
22393         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22394         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22395         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22396         we now guarantee.
22397
22398         fcntl: work around cygwin bug in F_DUPFD
22399         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22400         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22401         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22402         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22403         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22404
22405         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22406         * modules/fcntl (Files): List new files.
22407         (configure.ac): Run a test.
22408         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22409         * lib/fcntl.c (rpl_fcntl): Likewise.
22410         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22411         (gl_FCNTL_H): Always replace fcntl.h.
22412         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22413         * lib/fcntl.in.h (fcntl): Declare replacement.
22414         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22415         needed, plus a witness.
22416         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22417         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22418         * tests/test-fcntl.c: New file.
22419         * modules/fcntl-tests: Likewise.
22420
22421         binary-io: avoid potential compilation warning
22422         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22423         directives.
22424
22425         fflush: avoid compilation error on NetBSD
22426         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22427         between off_t and fpos_t, since the latter is sometimes a struct.
22428         * lib/fseeko.c (rpl_fseeko): Likewise.
22429         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22430
22431 2009-12-15  Eric Blake  <ebb9@byu.net>
22432
22433         fcntl-h, stdio, sys_ioctl: fix declarations
22434         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22435         function must not take arguments.
22436         * lib/sys_ioctl.in.h (ioctl): Likewise.
22437         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22438         (open): Add a link warning.
22439
22440 2009-12-15  Jim Meyering  <meyering@redhat.com>
22441
22442         areadlink, areadlink-with-size: relax license to LGPLv2+
22443         * modules/areadlink (License): Relax to LGPLv2+.
22444         * modules/areadlink-with-size (License): Likewise.
22445
22446 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22447             Bruno Haible  <bruno@clisp.org>
22448
22449         *printf: Fix memory leak.
22450         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22451         * lib/vfprintf.c (vfprintf): Likewise.
22452         * lib/dprintf.c (dprintf): Likewise.
22453         * lib/vdprintf.c (vdprintf): Likewise.
22454
22455 2009-12-14  Eric Blake  <ebb9@byu.net>
22456
22457         accept4: adjust module dependencies
22458         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22459
22460         utimens: one more try at avoiding compiler warning
22461         * lib/utimens.c (lutimens): Lower scope of result.
22462
22463 2009-12-13  Bruno Haible  <bruno@clisp.org>
22464
22465         Move the malloc checking from module 'list' to new module 'xlist'.
22466         * modules/xlist: New file.
22467         * lib/gl_xlist.h: New file.
22468         * lib/gl_xlist.c: New file.
22469         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22470         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22471         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22472         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22473         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22474         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22475         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22476         gl_sortedlist_nx_add): New declarations.
22477         (struct gl_list_implementation): Rename and change methods accordingly.
22478         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22479         (gl_list_nx_create): Renamed from gl_list_create.
22480         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22481         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22482         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22483         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22484         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22485         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22486         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22487         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22488         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22489         gl_list_create_empty.
22490         (gl_list_nx_create): Renamed from gl_list_create.
22491         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22492         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22493         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22494         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22495         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22496         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22497         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22498         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22499         * lib/gl_array_list.c: Don't include xalloc.h.
22500         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22501         NULL upon out-of-memory.
22502         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22503         out-of-memory.
22504         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22505         Change return type to 'int'.
22506         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22507         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22508         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22509         upon out-of-memory.
22510         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22511         upon out-of-memory.
22512         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22513         upon out-of-memory.
22514         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22515         upon out-of-memory.
22516         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22517         out-of-memory.
22518         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22519         Update.
22520         (gl_array_list_implementation): Update.
22521         * lib/gl_carray_list.c: Don't include xalloc.h.
22522         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22523         Return NULL upon out-of-memory.
22524         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22525         out-of-memory.
22526         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22527         Change return type to 'int'.
22528         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22529         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22530         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22531         upon out-of-memory.
22532         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22533         upon out-of-memory.
22534         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22535         out-of-memory.
22536         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22537         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22538         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22539         Update.
22540         (gl_carray_list_implementation): Update.
22541         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22542         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22543         gl_linked_create_empty. Return NULL upon out-of-memory.
22544         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22545         out-of-memory.
22546         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22547         Change return type to 'int'. Return -1 upon out-of-memory.
22548         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22549         out-of-memory.
22550         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22551         upon out-of-memory.
22552         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22553         upon out-of-memory.
22554         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22555         NULL upon out-of-memory.
22556         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22557         upon out-of-memory.
22558         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22559         out-of-memory.
22560         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22561         Update.
22562         * lib/gl_linked_list.c: Don't include xalloc.h.
22563         (gl_linked_list_implementation): Update.
22564         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22565         (add_to_bucket): Change return type to 'int'.
22566         (gl_linkedhash_list_implementation): Update.
22567         * lib/gl_anytree_list1.h (free_subtree): New function.
22568         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22569         gl_tree_create_empty. Return NULL upon out-of-memory.
22570         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22571         Change return type to 'int'. Return -1 upon out-of-memory.
22572         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22573         out-of-memory.
22574         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22575         (gl_tree_remove_node): New function, moved here from
22576         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22577         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22578         Update.
22579         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22580         malloc, not xmalloc. Return NULL upon out-of-memory.
22581         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22582         out-of-memory.
22583         (gl_tree_remove_node_from_tree): New function, extracted from
22584         gl_tree_remove_node.
22585         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22586         upon out-of-memory.
22587         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22588         out-of-memory.
22589         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22590         upon out-of-memory.
22591         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22592         upon out-of-memory.
22593         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22594         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22595         not xmalloc. Return NULL upon out-of-memory.
22596         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22597         out-of-memory.
22598         (gl_tree_remove_node_from_tree): New function, extracted from
22599         gl_tree_remove_node.
22600         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22601         upon out-of-memory.
22602         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22603         out-of-memory.
22604         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22605         upon out-of-memory.
22606         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22607         upon out-of-memory.
22608         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22609         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22610         gl_anytree_list1.h before gl_anyavltree_list2.h.
22611         (gl_avltree_list_implementation): Update.
22612         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22613         gl_anytree_list1.h before gl_anyavltree_list2.h.
22614         (gl_rbtree_list_implementation): Update.
22615         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22616         Change return type to 'int'. Return -1 upon out-of-memory. Use
22617         __builtin_expect.
22618         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22619         (gl_avltreehash_list_implementation): Update.
22620         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22621         (gl_rbtreehash_list_implementation): Update.
22622         * modules/array-list (Depends-on): Remove xalloc.
22623         * modules/carray-list (Depends-on): Likewise.
22624         * modules/linked-list (Depends-on): Likewise.
22625         * modules/linkedhash-list (Depends-on): Likewise.
22626         * modules/avltree-list (Depends-on): Likewise.
22627         * modules/rbtree-list (Depends-on): Likewise.
22628         * modules/avltreehash-list (Depends-on): Likewise.
22629         * modules/rbtreehash-list (Depends-on): Likewise.
22630
22631         * modules/xsublist: New file.
22632         * lib/gl_xsublist.h: New file.
22633         * lib/gl_xsublist.c: New file.
22634         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22635         (gl_sublist_nx_create): New declaration.
22636         * lib/gl_sublist.c: Don't include xalloc.h.
22637         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22638         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22639         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22640         Change return type to 'int'. Return -1 upon out-of-memory.
22641         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22642         upon out-of-memory.
22643         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22644         NULL upon out-of-memory.
22645         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22646         upon out-of-memory.
22647         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22648         NULL upon out-of-memory.
22649         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22650         NULL upon out-of-memory.
22651         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22652         upon out-of-memory.
22653         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22654         (gl_sublist_list_implementation): Update.
22655         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22656         upon out-of-memory.
22657         * modules/sublist (Depends-on): Remove xalloc.
22658
22659         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22660         * tests/test-carray_list.c: Likewise.
22661         * tests/test-linked_list.c: Likewise.
22662         * tests/test-linkedhash_list.c: Likewise.
22663         * tests/test-avltree_list.c: Likewise.
22664         * tests/test-rbtree_list.c: Likewise.
22665         * tests/test-avltreehash_list.c: Likewise.
22666         * tests/test-rbtreehash_list.c: Likewise.
22667         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22668         * modules/carray-list-tests (Makefile.am): Likewise.
22669         * modules/linked-list-tests (Makefile.am): Likewise.
22670         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22671         * modules/avltree-list-tests (Makefile.am): Likewise.
22672         * modules/rbtree-list-tests (Makefile.am): Likewise.
22673         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22674         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22675
22676         * NEWS: Mention the changes.
22677
22678         * lib/clean-temp.c: Include gl_xlist.h.
22679         * modules/clean-temp (Depends-on): Add xlist.
22680
22681         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22682         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22683
22684         * tests/test-array_oset.c: Include gl_xlist.h.
22685         * modules/array-oset-tests (Depends-on): Add xlist.
22686
22687         Reported by José E. Marchesi <jemarch@gnu.org>.
22688
22689 2009-12-13  Bruno Haible  <bruno@clisp.org>
22690
22691         Move the malloc checking from module 'oset' to new module 'xoset'.
22692         * modules/xoset: New file.
22693         * lib/gl_xoset.h: New file.
22694         * lib/gl_xoset.c: New file.
22695         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22696         declarations.
22697         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22698         (struct gl_oset_implementation): Rename and change methods accordingly.
22699         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22700         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22701         'int'. Mark as __warn_unused_result__.
22702         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22703         gl_oset_create_empty.
22704         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22705         'int'.
22706         * lib/gl_array_oset.c: Don't include xalloc.h.
22707         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22708         malloc, not xmalloc.
22709         (grow): Change return type to 'int'. Don't call xalloc_die.
22710         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22711         to 'int'.
22712         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22713         'int'.
22714         (gl_array_oset_implementation): Update.
22715         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22716         gl_tree_create_empty.
22717         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22718         'int'.
22719         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22720         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22721         xmalloc.
22722         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22723         not xmalloc.
22724         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22725         xmalloc.
22726         (gl_avltree_oset_implementation): Update.
22727         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22728         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22729         xmalloc.
22730         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22731         not xmalloc.
22732         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22733         xmalloc.
22734         (gl_rbtree_oset_implementation): Update.
22735         * modules/array-oset (Depends-on): Remove xalloc.
22736         * modules/avltree-oset (Depends-on): Likewise.
22737         * modules/rbtree-oset (Depends-on): Likewise.
22738         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22739         * tests/test-avltree_oset.c: Likewise.
22740         * tests/test-rbtree_oset.c: Likewise.
22741         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22742         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22743         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22744         * NEWS: Mention the change.
22745
22746 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22747
22748         maint.mk: allow a project to override release-prep commands
22749         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22750         commands into a new rule.
22751         (release-prep): New rule.
22752         (release-prep-hook): New overridable variable.
22753
22754 2009-12-13  Bruno Haible  <bruno@clisp.org>
22755
22756         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22757
22758 2009-12-13  Jim Meyering  <meyering@redhat.com>
22759
22760         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22761         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22762
22763 2009-12-12  Bruno Haible  <bruno@clisp.org>
22764
22765         duplocale: Tweak.
22766         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22767
22768 2009-12-12  Karl Berry  <karl@gnu.org>
22769
22770         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22771
22772 2009-12-12  Bruno Haible  <bruno@clisp.org>
22773
22774         * m4/po.m4: Undo incorrect untabification.
22775
22776 2009-12-12  Bruno Haible  <bruno@clisp.org>
22777
22778         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22779         * modules/c-strtod (Depends-on): Add locale.
22780         * modules/c-strtold (Depends-on): Likewise.
22781
22782 2009-12-12  Bruno Haible  <bruno@clisp.org>
22783
22784         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22785
22786 2009-12-11  Eric Blake  <ebb9@byu.net>
22787
22788         setenv: relax requirement in light of POSIX ruling
22789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22790         not NULL.
22791         * tests/test-setenv.c (main): Relax test.
22792         * tests/test-unsetenv.c (main): Likewise.
22793         * doc/posix-functions/setenv.texi (setenv): Document this.
22794         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22795
22796 2009-12-11  Bruno Haible  <bruno@clisp.org>
22797
22798         New module 'fd-safer-flag'.
22799         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22800         * lib/dup-safer.c (dup_safer_flag): Remove function.
22801         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22802         * lib/fd-safer.c (fd_safer_flag): Remove function.
22803         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22804         * modules/cloexec (configure.ac): Drop indicator macro.
22805         * modules/fd-safer-flag: New file.
22806         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22807         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22808         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22809
22810 2009-12-11  Bruno Haible  <bruno@clisp.org>
22811
22812         Tests for module 'nl_langinfo'.
22813         * modules/nl_langinfo-tests: New file.
22814         * tests/test-nl_langinfo.sh: New file.
22815         * tests/test-nl_langinfo.c: New file.
22816
22817         New module 'nl_langinfo'.
22818         * lib/nl_langinfo.c: New file.
22819         * m4/nl_langinfo.m4: New file.
22820         * modules/nl_langinfo: New file.
22821         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22822
22823 2009-12-11  Bruno Haible  <bruno@clisp.org>
22824
22825         Tests for module 'langinfo'.
22826         * modules/langinfo-tests: New file.
22827         * tests/test-langinfo.c: New file.
22828
22829         New module 'langinfo'.
22830         * lib/langinfo.in.h: New file.
22831         * m4/langinfo_h.m4: New file.
22832         * modules/langinfo: New file.
22833         * doc/posix-headers/langinfo.texi: Mention the new module.
22834
22835 2009-12-11  Bruno Haible  <bruno@clisp.org>
22836
22837         * lib/config.charset: Untabify.
22838
22839 2009-12-11  Bruno Haible  <bruno@clisp.org>
22840
22841         * modules/unistd-safer (configure.ac): Drop indicator macro.
22842
22843 2009-12-11  Bruno Haible  <bruno@clisp.org>
22844
22845         Move pipe2-safer code to its own file.
22846         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22847         * lib/pipe-safer.c (pipe2_safer): Remove function.
22848         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22849         (Makefile.am): Add it to lib_SOURCES.
22850
22851 2009-12-10  Bruno Haible  <bruno@clisp.org>
22852
22853         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22854
22855 2009-12-10  Bruno Haible  <bruno@clisp.org>
22856
22857         Declare which arguments expect non-NULL values, for GCC and clang.
22858         * build-aux/arg-nonnull.h: New file.
22859         * modules/arg-nonnull: New file.
22860         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22861         (inet_ntop, inet_pton): Use it.
22862         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22863         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22864         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22865         (open, openat): Use it.
22866         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22867         (fnmatch): Use it.
22868         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22869         (getopt, getopt_long, getopt_long_only): Use it.
22870         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22871         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22872         Use it.
22873         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22874         (iconv_open): Use it.
22875         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22876         (strtoimax, strtoumax): Use it.
22877         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22878         (duplocale): Use it.
22879         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22880         (frexp, frexpl): Use it.
22881         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22882         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22883         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22884         (tsearch, tfind, tdelete, twalk): Use it.
22885         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22886         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22887         sigpending): Use it.
22888         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22889         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22890         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22891         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22892         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22893         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22894         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22895         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22896         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22897         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22898         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22899         Use it.
22900         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22901         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22902         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22903         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22904         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22905         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22906         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22907         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22908         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22909         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22910         strtoull, unsetenv): Use it.
22911         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22912         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22913         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22914         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22915         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22916         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22917         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22918         (strcasecmp, strncasecmp): Use it.
22919         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22920         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22921         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22922         rpl_setsockopt): Use it.
22923         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22924         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22925         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22926         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22927         (gettimeofday): Use it.
22928         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22929         (times): Use it.
22930         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22931         (uname): Use it.
22932         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22933         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22934         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22935         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22936         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22937         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22938         unlinkat, write): Use it.
22939         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22940         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22941         * lib/argv-iter.h: Include arg-nonnull.h.
22942         (_ATTRIBUTE_NONNULL_): Remove macro.
22943         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22944         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22945         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22946         optimization.
22947         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22948         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22949         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22950         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22951         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22952         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22953         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22954         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22955         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22956         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22957         * modules/dirent (Depends-on): Add arg-nonnull.
22958         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22959         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22960         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22961         * modules/fnmatch (Depends-on): Add arg-nonnull.
22962         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22963         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22964         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22965         * modules/glob (Depends-on): Add arg-nonnull.
22966         (Makefile.am): Insert arg-nonnull.h into glob.h.
22967         * modules/iconv_open (Depends-on): Add arg-nonnull.
22968         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22969         * modules/inttypes (Depends-on): Add arg-nonnull.
22970         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22971         * modules/locale (Depends-on): Add arg-nonnull.
22972         (Makefile.am): Insert arg-nonnull.h into locale.h.
22973         * modules/math (Depends-on): Add arg-nonnull.
22974         (Makefile.am): Insert arg-nonnull.h into math.h.
22975         * modules/netdb (Depends-on): Add arg-nonnull.
22976         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22977         * modules/search (Depends-on): Add arg-nonnull.
22978         (Makefile.am): Insert arg-nonnull.h into search.h.
22979         * modules/signal (Depends-on): Add arg-nonnull.
22980         (Makefile.am): Insert arg-nonnull.h into signal.h.
22981         * modules/spawn (Depends-on): Add arg-nonnull.
22982         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22983         * modules/stdio (Depends-on): Add arg-nonnull.
22984         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22985         * modules/stdlib (Depends-on): Add arg-nonnull.
22986         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22987         * modules/string (Depends-on): Add arg-nonnull.
22988         (Makefile.am): Insert arg-nonnull.h into string.h.
22989         * modules/strings (Depends-on): Add arg-nonnull.
22990         (Makefile.am): Insert arg-nonnull.h into strings.h.
22991         * modules/sys_socket (Depends-on): Add arg-nonnull.
22992         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22993         * modules/sys_stat (Depends-on): Add arg-nonnull.
22994         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22995         * modules/sys_time (Depends-on): Add arg-nonnull.
22996         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22997         * modules/sys_times (Depends-on): Add arg-nonnull.
22998         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22999         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23000         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23001         * modules/time (Depends-on): Add arg-nonnull.
23002         (Makefile.am): Insert arg-nonnull.h into time.h.
23003         * modules/unistd (Depends-on): Add arg-nonnull.
23004         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23005         * modules/wchar (Depends-on): Add arg-nonnull.
23006         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23007         * modules/argv-iter (Depends-on): Add arg-nonnull.
23008         * tests/test-canonicalize.c (null_ptr): New function.
23009         (main): Use it.
23010         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23011         (main): Use it.
23012         * tests/test-memmem.c (null_ptr): New function.
23013         (main): Use it.
23014         Reported by Jim Meyering.
23015
23016 2009-12-10  Bruno Haible  <bruno@clisp.org>
23017
23018         Use spaces for indentation, not tabs.
23019         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23020         * m4/*.m4: Untabify.
23021         * build-aux/*.h: Untabify.
23022         * tests/**/*.[hc]: Untabify.
23023         * README: New section "Indent with spaces, not TABs", based on
23024         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23025         * NEWS: Mention the change.
23026
23027 2009-12-10  Bruno Haible  <bruno@clisp.org>
23028
23029         pty test: Fix link error.
23030         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23031         test_pty_LDADD.
23032
23033 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23034
23035         * modules/pty: New file.
23036         * modules/pty-tests: New file.
23037         * m4/pty.m4: New file.
23038         * tests/test-pty.c: New file.
23039         * doc/glibc-headers/pty.texi: Modified.
23040         * doc/glibc-functions/forkpty.texi: Modified.
23041         * doc/glibc-functions/openpty.texi: Modified.
23042
23043 2009-12-10  Bruno Haible  <bruno@clisp.org>
23044
23045         Avoid syntax error in C++ mode.
23046         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23047
23048 2009-12-10  Bruno Haible  <bruno@clisp.org>
23049
23050         Use sed with option -e.
23051         * gnulib-tool (func_version, func_emit_copyright_notice,
23052         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23053         option -e to sed.
23054         * modules/link-warning (Makefile.am): Likewise.
23055
23056 2009-12-10  Jim Meyering  <meyering@redhat.com>
23057
23058         mgetgroups: do not write bytes beyond end of malloc'd buffer
23059         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23060         username, we call getgroups with a one-element-shorter buffer,
23061         but still told it the length was original, max_n_groups.
23062
23063 2009-12-09  Eric Blake  <ebb9@byu.net>
23064
23065         cloexec: relax license
23066         * modules/cloexec (Maintainer): Add myself.
23067         (License): Use LGPL, not GPL.
23068
23069         link-warning: optimize generation
23070         * modules/link-warning (Makefile.am): Reduce process usage.
23071
23072 2009-12-09  Bruno Haible  <bruno@clisp.org>
23073
23074         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23075         workaround was added on 2009-11-17.
23076
23077 2009-12-09  Jim Meyering  <meyering@redhat.com>
23078             Bruno Haible  <bruno@clisp.org>
23079
23080         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23081         * modules/link-warning (Makefile.am): Make the comment-removing sed
23082         command more robust in the face of bootstrap-prepended comment lines.
23083
23084 2009-12-09  Bruno Haible  <bruno@clisp.org>
23085
23086         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23087         most one group.
23088
23089 2009-12-09  Simon Josefsson <simon@josefsson.org>
23090             Bruno Haible  <bruno@clisp.org>
23091
23092         * build-aux/link-warning.h: Add copyright notice.
23093         * modules/link-warning (Makefile.am): Generate link-warning.h from
23094         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23095         * NEWS: Mention change in link-warning module.
23096         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23097         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23098         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23099         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23100         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23101         * modules/math (Makefile.am): Add dependency to math.h.
23102         * modules/search (Makefile.am): Add dependency to search.h.
23103         * modules/signal (Makefile.am): Add dependency to signal.h.
23104         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23105         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23106         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23107         * modules/string (Makefile.am): Add dependency to string.h.
23108         * modules/strings (Makefile.am): Add dependency to strings.h.
23109         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23110         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23111         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23112         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23113         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23114         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23115         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23116         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23117         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23118
23119 2009-12-09  Bruno Haible  <bruno@clisp.org>
23120
23121         fchdir: Optimize away rpl_fstat when possible.
23122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23123         REPLACE_OPEN_DIRECTORY.
23124         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23125
23126 2009-12-09  Bruno Haible  <bruno@clisp.org>
23127
23128         * lib/fchdir.c: Update comment.
23129
23130 2009-12-09  Bruno Haible  <bruno@clisp.org>
23131
23132         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23133
23134 2009-12-08  Eric Blake  <ebb9@byu.net>
23135
23136         fchdir: avoid memory leak on re-registration.
23137         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23138
23139 2009-12-08  Jim Meyering  <meyering@redhat.com>
23140
23141         init.sh: avoid Solaris 10 /bin/sh portability problem
23142         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23143         sourced script:
23144           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23145           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23146           bar
23147         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23148         and two tests used that idiom.
23149         * tests/init.sh: Update suggested usage comments.
23150         (path_prepend_): New function, to be used in place
23151         of the --src-path=DIR option.
23152         (setup_): Move PATH-prepending code into path_prepend_.
23153         * tests/test-pread.sh: Adapt to new usage.
23154         * tests/test-xalloc-die.sh: Likewise.
23155
23156 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23157
23158         * doc/gnulib.texi (Glibc pty.h): Add.
23159         * doc/glibc-functions/forkpty.texi: Add.
23160         * doc/glibc-functions/openpty.texi: Add.
23161         Suggested by Bruno Haible.
23162
23163 2009-12-08  Eric Blake  <ebb9@byu.net>
23164
23165         fchdir: fix logic bugs
23166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23167         * tests/test-fchdir.c (main): Enhance test.
23168         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23169         is in use.
23170
23171         dup2: fix logic bugs
23172         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23173         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23174         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23175         exists.
23176         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23177
23178 2009-12-07  Eric Blake  <ebb9@byu.net>
23179
23180         unlink: fix m4 detection
23181         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23182
23183         unistd-safer: add unit test
23184         * modules/unistd-safer-tests: New file.
23185         * tests/test-dup-safer.c: Likewise.
23186         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23187         * tests/test-dup2.c (setmode): Likewise.
23188         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23189
23190         cloexec: preserve text vs. binary across dup_cloexec
23191         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23192         mode.
23193         * modules/dup2-tests (Depends-on): Add binary-io.
23194         * modules/cloexec-tests (Depends-on): Likewise.
23195         * tests/test-dup2.c (setmode, is_mode): New helpers.
23196         (main): Add tests that translation mode is preserved.
23197         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23198         Reported by Bruno Haible.
23199
23200         mgetgroups: reduce duplicate listings
23201         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23202         resulting array.
23203         * tests/test-chown.h (test_chown): Simplify client.
23204         * tests/test-lchown.h (test_lchown): Likewise.
23205
23206 2009-12-06  Bruno Haible  <bruno@clisp.org>
23207
23208         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23209         value.
23210
23211 2009-12-06  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/progname.c: Include stdio.h, stdlib.h.
23214         (set_program_name): Reject a NULL argument.
23215
23216 2009-12-05  Eric Blake  <ebb9@byu.net>
23217
23218         pipe2-safer: new module
23219         * modules/pipe2-safer: New file.
23220         * lib/unistd-safer.h (pipe2_safer): New prototype.
23221         * lib/unistd--.h (pipe2): New wrapper.
23222         * lib/pipe-safer.c (pipe2_safer): New function.
23223         * modules/pipe (Depends-on): Add pipe2-safer.
23224         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23225
23226         stdlib-safer: preserve cloexec flag for mkostemp[s]
23227         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23228         fd_safer_flag.
23229
23230         unistd-safer: allow preservation of cloexec status via flag
23231         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23232         prototypes.
23233         * lib/dup-safer.c (dup_safer_flag): New function.
23234         * lib/fd-safer.c (fd_safer_flag): Likewise.
23235         * modules/cloexec (configure.ac): Set witness.
23236
23237         test-dup2: enhance test
23238         * modules/dup2-tests (Depends-on): Add cloexec.
23239         * tests/test-dup2.c (main): Enhance test.
23240
23241         cloexec: add dup_cloexec
23242         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23243         header and comments.
23244         * lib/cloexec.c (set_cloexec_flag): Add comments.
23245         (dup_cloexec): New function, with mingw implementation borrowed
23246         from...
23247         * lib/w32spawn.h (dup_noinherit): ...here.
23248         * modules/execute (Depends-on): Add cloexec.
23249         * modules/pipe (Depends-on): Likewise.
23250         * modules/cloexec (Depends-on): Add dup2.
23251         * modules/cloexec-tests (Files): New file.
23252         * tests/test-cloexec.c: Likewise.
23253
23254         test-xalloc-die: fix test for mingw
23255         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23256         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23257         directory and .exe suffix off argv[0] output.
23258
23259         test-fseeko: fix test for mingw
23260         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23261         than undefining fseek, so test will pass on mingw.
23262
23263 2009-12-05  Bruno Haible  <bruno@clisp.org>
23264
23265         * lib/progname.h (set_program_name): Clarify specification.
23266         * lib/progname.c (set_program_name): Likewise.
23267         Reported by Jim Meyering.
23268
23269 2009-12-05  Jim Meyering  <meyering@redhat.com>
23270
23271         maint.mk: backslash-escape parens in default regexp
23272         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23273         backslash-escape the literal parentheses.
23274
23275         maint.mk: news-date-check: use grep -E
23276         * top/maint.mk (today): Define a Make variable, not a...
23277         (news-date-check): ...shell variable.
23278         (news-date-regexp): Use the Make variable.
23279         Use grep's -E option.  Change the failing diagnostic to mention
23280         the variable, $(news-date-regexp).
23281
23282 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23283
23284         maintainer-makefile: allow customization of NEWS entry format
23285         * top/maint.mk (news-date-regexp): New overridable variable.
23286         (news-date-check): Use it.
23287
23288 2009-12-04  Eric Blake  <ebb9@byu.net>
23289
23290         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23291         * lib/mgetgroups.h (xgetgroups): New prototype.
23292         * lib/mgetgroups.c (xgetgroups): New wrapper.
23293         (mgetgroups): Handle ENOSYS.
23294         * modules/mgetgroups (Depends-on): Add realloc.
23295         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23296
23297         mgetgroups: avoid argument promotion issues with -1
23298         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23299         for invalid gid_t.
23300         * tests/test-chown.h (getegid, test_chown): Likewise.
23301         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23302
23303 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23304
23305         exclude: Fix header file problems.
23306         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23307
23308 2009-12-01  Jim Meyering  <meyering@redhat.com>
23309
23310         fts: fts_open: do not let an empty string cause immediate failure
23311         This is required in support of GNU rm, for which the command
23312         "rm A '' B" must process and remove both A and B, in spite of
23313         the empty string argument.
23314         * lib/fts.c (fts_open): Do not let the presence of an empty string
23315         cause fts_open to fail immediately.  Most fts-using tools must be
23316         able to process all arguments, in order, and can be expected to
23317         diagnose such arguments themselves.
23318
23319 2009-11-30  Eric Blake  <ebb9@byu.net>
23320
23321         utimens: fix compilation error
23322         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23323         Declare variable at right scope.
23324
23325 2009-11-29  Jim Meyering  <meyering@redhat.com>
23326
23327         bootstrap: handle perl-5.11's changed --version output
23328         * build-aux/bootstrap (get_version): Handle perl separately,
23329         since perl-5.11's --version output is different.
23330
23331 2009-11-28  Jim Meyering  <meyering@redhat.com>
23332
23333         userspec: depend on the inttostr module, too
23334         * modules/userspec (Depends-on): Add inttostr.
23335
23336         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23337         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23338         number of MAXUID when it evaluates to (uid_t) -1.
23339         Likewise for group ID.  Reported by Matt McCutchen in
23340         <http://savannah.gnu.org/bugs/?28113>
23341
23342         userspec: reformat to use spaces, not TABs
23343         * lib/userspec.c: Expand TABs to spaces.
23344         Add Emacs' "indent-tabs-mode: nil" hint.
23345
23346 2009-11-27  Eric Blake  <ebb9@byu.net>
23347
23348         getopt-gnu: flush out another BSD bug
23349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23350         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23351         flush out BSD bug.
23352         * tests/test-getopt.h (test_getopt): End lists with NULL.
23353         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23354         (test_getopt_long_posix): Enhance test.
23355         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23356         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23357         getopt-gnu.
23358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23359         Likewise.
23360
23361 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23362
23363         * modules/idpriv-droptemp-tests (Notice): Fix text.
23364
23365 2009-11-27  Jim Meyering  <meyering@redhat.com>
23366
23367         test-xalloc-die: avoid spurious failure due to libtool argv difference
23368         In a libtool-enabled project, this test would fail due to a difference
23369         in the emitted program name, e.g.,
23370         -test-xalloc-die: memory exhausted
23371         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23372         Use program to avoid that.
23373         * modules/xalloc-die-tests (Depends-on): Add progname.
23374         * tests/test-xalloc-die.c: Include progname.h".
23375         (program_name): Remove decl.
23376         (main): Call set_program_name.
23377         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23378
23379 2009-11-26  Richard Jones  <rjones@redhat.com>
23380
23381         w32sock: leave win32 error in place.
23382         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23383
23384 2009-11-26  Eric Blake  <ebb9@byu.net>
23385
23386         init.sh: suggest to use skip_ and fail_ functions in comments
23387         * tests/init.sh: Add a sentence.
23388
23389 2009-11-25  Bruno Haible  <bruno@clisp.org>
23390
23391         init.sh: add documentation in comments
23392         * tests/init.sh: Add some developer and user documentation.
23393
23394 2009-11-26  Jim Meyering  <meyering@redhat.com>
23395
23396         init.sh: accommodate even those who specify bogus srcdir manually
23397         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23398         configure-time tests to be sanitized, so that there is no need to
23399         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23400         (with no double quotes) suffices.  However, since tests may be
23401         invoked manually, and since you may explicitly set srcdir to the
23402         name of a directory containing spaces, do quote its uses here.
23403         * tests/test-pread.sh: Likewise.
23404         Suggested by Bruno Haible.
23405
23406         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23407         * tests/test-pread.sh: Write no data into the pipe, because
23408         test-pread actually reads none.  This avoids a diagnostic,
23409         "bash: echo: write error: Broken pipe", that arises in the unusual
23410         event something is ignoring SIGPIPE, and might be interpreted
23411         as some sort of failure.  Reported by Bruno Haible.
23412
23413 2009-11-25  Jim Meyering  <meyering@redhat.com>
23414
23415         test-pread: cover failure with ESPIPE and EINVAL
23416         * tests/test-pread.c (main): Test for failure, too.
23417         * tests/test-pread.sh: Invoke with stdin on a pipe.
23418         Suggested by Eric Blake.
23419
23420         pread: improvement and fix
23421         * modules/pread (Depends-on): Depend on lseek, for portability to
23422         e.g., mingw.  Suggested by Eric Blake.
23423         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23424
23425         unistd.in.h: correct declaration of pread
23426         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23427         Reported by Richard W.M. Jones.
23428
23429         test-pread.sh: distribute the test script
23430         * modules/pread-tests (Files): Include test-pread.sh.
23431
23432         test-pread.sh: clean up
23433         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23434         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23435         That is unnecessary, since it's always ".".
23436         Suggestion from Eric Blake.
23437
23438         test-pread.sh: make executable
23439         * tests/test-pread.sh: Set executable bit.
23440         Reported by Eric Blake.
23441
23442         correct typo in test-pread.sh
23443         * tests/test-pread.sh: Add #! line.
23444
23445         test pread
23446         * tests/test-pread.c: New file.
23447         * tests/test-pread.sh: Likewise.
23448         * modules/pread-tests: Likewise.
23449
23450         pread: new module
23451         * modules/pread: New file.
23452         * lib/unistd.in.h (pread): Define/declare.
23453         * lib/pread.c (pread): New file.
23454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23455         * modules/unistd (Makefile.am): Substitute witnesses.
23456         * doc/posix-functions/pread.texi (pread): Update.
23457         * MODULES.html.sh: Add pread.
23458
23459 2009-11-25  Jim Meyering  <meyering@redhat.com>
23460
23461         tests/init.sh: new file to be used via most *.sh tests
23462         * tests/init.sh: New file.
23463
23464 2009-11-25  Eric Blake  <ebb9@byu.net>
23465
23466         utimens: work around older Linux failure with symlinks
23467         * lib/utimens.c (lutimensat_works_really): New variable.
23468         (fdutimens, lutimens): Use it to manage kernels that support
23469         nanosecond times on files, but not on symlinks.
23470         Reported by OndÅ™ej Vašík.
23471
23472         utimes: fix configure grammar
23473         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23474
23475 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23476
23477         regex: Fix fastmap for multibyte character ranges.
23478         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23479         characters when a multibyte character range is included.
23480
23481 2009-11-22  Andy Wingo  <wingo@pobox.com>
23482
23483         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23484         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23485
23486 2009-11-24  Bruno Haible  <bruno@clisp.org>
23487
23488         doc: Most *_l functions exist in MacOS X 10.5.
23489         * doc/posix-functions/duplocale.texi: Update platforms list.
23490         * doc/posix-functions/freelocale.texi: Likewise.
23491         * doc/posix-functions/newlocale.texi: Likewise.
23492         * doc/posix-functions/uselocale.texi: Likewise.
23493         * doc/posix-functions/isalnum_l.texi: Likewise.
23494         * doc/posix-functions/isalpha_l.texi: Likewise.
23495         * doc/posix-functions/isblank_l.texi: Likewise.
23496         * doc/posix-functions/iscntrl_l.texi: Likewise.
23497         * doc/posix-functions/isdigit_l.texi: Likewise.
23498         * doc/posix-functions/isgraph_l.texi: Likewise.
23499         * doc/posix-functions/islower_l.texi: Likewise.
23500         * doc/posix-functions/isprint_l.texi: Likewise.
23501         * doc/posix-functions/ispunct_l.texi: Likewise.
23502         * doc/posix-functions/isspace_l.texi: Likewise.
23503         * doc/posix-functions/isupper_l.texi: Likewise.
23504         * doc/posix-functions/iswalnum_l.texi: Likewise.
23505         * doc/posix-functions/iswalpha_l.texi: Likewise.
23506         * doc/posix-functions/iswblank_l.texi: Likewise.
23507         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23508         * doc/posix-functions/iswctype_l.texi: Likewise.
23509         * doc/posix-functions/iswdigit_l.texi: Likewise.
23510         * doc/posix-functions/iswgraph_l.texi: Likewise.
23511         * doc/posix-functions/iswlower_l.texi: Likewise.
23512         * doc/posix-functions/iswprint_l.texi: Likewise.
23513         * doc/posix-functions/iswpunct_l.texi: Likewise.
23514         * doc/posix-functions/iswspace_l.texi: Likewise.
23515         * doc/posix-functions/iswupper_l.texi: Likewise.
23516         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23517         * doc/posix-functions/isxdigit_l.texi: Likewise.
23518         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23519         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23520         * doc/posix-functions/strcoll_l.texi: Likewise.
23521         * doc/posix-functions/strfmon_l.texi: Likewise.
23522         * doc/posix-functions/strftime_l.texi: Likewise.
23523         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23524         * doc/posix-functions/strxfrm_l.texi: Likewise.
23525         * doc/posix-functions/tolower_l.texi: Likewise.
23526         * doc/posix-functions/toupper_l.texi: Likewise.
23527         * doc/posix-functions/towctrans_l.texi: Likewise.
23528         * doc/posix-functions/towlower_l.texi: Likewise.
23529         * doc/posix-functions/towupper_l.texi: Likewise.
23530         * doc/posix-functions/wcscoll_l.texi: Likewise.
23531         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23532         * doc/posix-functions/wctrans_l.texi: Likewise.
23533         * doc/posix-functions/wctype_l.texi: Likewise.
23534         * doc/glibc-functions/strptime_l.texi: Likewise.
23535         * doc/glibc-functions/strtod_l.texi: Likewise.
23536         * doc/glibc-functions/strtof_l.texi: Likewise.
23537         * doc/glibc-functions/strtol_l.texi: Likewise.
23538         * doc/glibc-functions/strtold_l.texi: Likewise.
23539         * doc/glibc-functions/strtoll_l.texi: Likewise.
23540         * doc/glibc-functions/strtoul_l.texi: Likewise.
23541         * doc/glibc-functions/strtoull_l.texi: Likewise.
23542         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23543         * doc/glibc-functions/wcstod_l.texi: Likewise.
23544         * doc/glibc-functions/wcstof_l.texi: Likewise.
23545         * doc/glibc-functions/wcstol_l.texi: Likewise.
23546         * doc/glibc-functions/wcstold_l.texi: Likewise.
23547         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23548         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23549         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23550
23551 2009-11-24  Bruno Haible  <bruno@clisp.org>
23552
23553         duplocale: Fix logic bug.
23554         * lib/duplocale.c: Don't include <langinfo.h>.
23555         (_NL_LOCALE_NAME): Remove macro.
23556         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23557         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23558
23559 2009-11-23  Jim Meyering  <meyering@redhat.com>
23560
23561         test-update-copyright: don't hard-code /usr/bin/perl
23562         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23563         perl to print the current year.  Gilles Espinasse reported that
23564         the replaced use of perl was hard-coded as /usr/bin/perl.
23565
23566 2009-11-23  Bruno Haible  <bruno@clisp.org>
23567
23568         duplocale: Add support for glibc 2.3.x.
23569         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23570
23571 2009-11-22  Bruno Haible  <bruno@clisp.org>
23572
23573         vasnprintf: Tiny optimization.
23574         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23575         MacOS X.
23576
23577 2009-11-22  Bruno Haible  <bruno@clisp.org>
23578
23579         Tests for module 'duplocale'.
23580         * modules/duplocale-tests: New file.
23581         * tests/test-duplocale.c: New file.
23582
23583         New module 'duplocale'.
23584         * m4/duplocale.m4: New file.
23585         * lib/locale.in.h (duplocale): New declaration.
23586         * lib/duplocale.c: New file.
23587         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23588         gl_LOCALE_H_DEFAULTS): New macros.
23589         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23590         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23591         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23592         REPLACE_DUPLOCALE.
23593         * modules/duplocale: New file.
23594         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23595
23596 2009-11-22  Bruno Haible  <bruno@clisp.org>
23597
23598         * modules/locale-tests (configure.ac): Test for newlocale function.
23599         * tests/test-locale.c: When the system has extended locale functions,
23600         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23601
23602         locale: Make locale_t available when possible.
23603         * lib/locale.in.h: Include <xlocale.h> when it exists.
23604         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23605         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23606         * modules/locale (Depends-on): Add extensions.
23607         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23608         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23609
23610 2009-11-22  Bruno Haible  <bruno@clisp.org>
23611
23612         Add comments.
23613         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23614         invocation.
23615         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23616         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23618
23619 2009-11-22  Bruno Haible  <bruno@clisp.org>
23620
23621         error: account for the possibility of freopen (stdout).
23622         * lib/error.c: Include <unistd.h>.
23623         (flush_stdout): New function, extracted from error and error_at_line.
23624         Determine stdout's fd dynamically.
23625         (error, error_at_line): Invoke flush_stdout.
23626         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23627         * modules/error (Depends-on): Add unistd.
23628
23629 2009-11-22  Bruno Haible  <bruno@clisp.org>
23630
23631         diffseq: Add comment.
23632         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23633
23634 2009-11-22  Jim Meyering  <meyering@redhat.com>
23635
23636         c-stack: avoid defining an unused static function
23637         * lib/c-stack.c (find_stack_direction): Do not define this function
23638         when it will not be used.
23639
23640         diffseq: avoid spurious gcc warnings
23641         * lib/diffseq.h (IF_LINT2): Define.
23642         (compareseq): Use it to initialize two members of "part".
23643         This avoids two used-uninitialized warnings.
23644
23645 2009-11-21  Jim Meyering  <meyering@redhat.com>
23646
23647         c-stack: avoid "ignoring return value of `write'" warning
23648         * lib/c-stack.c: Include "ignore-value.h".
23649         (die): Explicitly ignore each write return value.
23650         * modules/c-stack (Depends-on): Add ignore-value.
23651
23652 2009-11-21  Bruno Haible  <bruno@clisp.org>
23653
23654         diffseq: reduce scope of variable 'best'.
23655         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23656         variable, earlier used for two different purposes.
23657
23658 2009-11-21  Jim Meyering  <meyering@redhat.com>
23659
23660         diffseq: remove useless assignment to "best"
23661         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23662         assignment.  At that point "best" is already guaranteed to be zero.
23663
23664 2009-11-20  Eric Blake  <ebb9@byu.net>
23665
23666         build: mention ftp redirector in release announcements
23667         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23668         values that used to come from cfg.mk; mention FTP redirect URL.
23669         * build-aux/announce-gen: Mention the mirror list.
23670         Suggested by Karl Berry.
23671
23672         nanosleep: improve port to mingw
23673         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23675         LIB_NANOSLEEP, but only when needed.
23676         * modules/select (Link): Document LIBSOCKET.
23677         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23678         enough.
23679
23680         nanosleep: work around cygwin bug
23681         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23682         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23683         bug.
23684         (getnow): Delete, not needed.
23685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23686         LIB_CLOCK_GETTIME.
23687         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23688         clock-time, gettime.
23689         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23690         bug.
23691         * modules/nanosleep-tests: New test.
23692         * tests/test-nanosleep.c: New file.
23693
23694         sleep: work around cygwin bug
23695         * lib/sleep.c (rpl_sleep): Work around the bug.
23696         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23697         (gl_PREREQ_SLEEP): Delete unused macro.
23698         * modules/sleep (Depends-on): Add verify.
23699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23700         * modules/unistd (Makefile.am): Substitute witness.
23701         * lib/unistd.in.h (sleep): Update prototype.
23702         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23703         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23704         * modules/sleep-tests (Depends-on): Check for alarm.
23705
23706 2009-11-20  Jim Meyering  <meyering@redhat.com>
23707
23708         maint.mk: improve sc_prohibit_magic_number_exit
23709         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23710         so it does not match uses like System.exit(1).
23711         Add comments showing how to correct all offenders.
23712
23713 2009-11-19  Eric Blake  <ebb9@byu.net>
23714
23715         xalloc-die-tests: add missing library
23716         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23717
23718         test-xvasprintf: silence compiler warnings
23719         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23720         empty string from gcc.
23721
23722 2009-11-19  Jim Meyering  <meyering@redhat.com>
23723
23724         xfreopen: new module, from coreutils
23725         * modules/xfreopen: New module.
23726         * lib/xfreopen.c: New file.
23727         * lib/xfreopen.h: New file.
23728         * MODULES.html.sh (File stream based Input/Output"): Add it.
23729
23730 2009-11-19  Eric Blake  <ebb9@byu.net>
23731
23732         manywarnings: depend on warnings
23733         * modules/manywarnings (Depends-on): Add warnings.
23734
23735         build: avoid compiler warnings
23736         * lib/select.c (rpl_select): Delete unused variable.
23737         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23738
23739 2009-11-18  Eric Blake  <ebb9@byu.net>
23740
23741         tests: avoid false negative with --with-packager
23742         * tests/test-version-etc.sh: Discard packager information.
23743         * tests/test-argp-version-etc-1.sh: Likewise.
23744         Reported by Mike Frysinger.
23745
23746         utimens: fix regression on Solaris
23747         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23748         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23749         can only change fd timestamps via futimesat.  Instead, use an
23750         additional witness macro to avoid BSD bug.
23751         Reported by Jim Meyering.
23752
23753 2009-11-17  Eric Blake  <ebb9@byu.net>
23754
23755         usleep: use it to simplify tests
23756         * modules/stat-time-tests (Depends-on): Add usleep.
23757         (configure.ac): Drop usleep check.
23758         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23759         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23760         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23761         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23762         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23763         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23764         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23765         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23766         Likewise.
23767         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23768         * tests/test-lchown.h (nap): Likewise.
23769         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23770         * tests/test-stat-time.c (nap): Likewise.
23771         * tests/test-utimens-common.h (nap): Update comments.
23772
23773         usleep: new module
23774         * modules/usleep: New file.
23775         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23776         * lib/usleep.c (usleep): Likewise.
23777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23778         * modules/unistd (Makefile.am): Substitute witnesses.
23779         * lib/unistd.in.h (usleep): Add declaration.
23780         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23781         * MODULES.html.sh (Date and time): Likewise.
23782         * modules/usleep-tests (Depends-on): New test.
23783         * tests/test-usleep.c: New file.
23784
23785         chown: work around OpenBSD bug
23786         * lib/chown.c (rpl_chown): Work around the bug.
23787         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23788         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23789         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23790         * modules/chown (Depends-on): Add stdbool.
23791         * modules/lchown (Depends-on): Likewise.
23792         * doc/posix-functions/chown.texi (chown): Document the bug.
23793         * doc/posix-functions/lchown.texi (lchown): Likewise.
23794         * tests/test-lchown.h (test_chown): Relax test.
23795
23796         mkstemp: avoid conflict with C++ keyword template
23797         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23798         * lib/mkostemp.c (mkostemp): Likewise.
23799         * lib/mkostemps.c (mkostemps): Likewise.
23800         * lib/mkstemp.c (mkstemp): Likewise.
23801         * lib/mkstemps.c (mkstemps): Likewise.
23802
23803         xalloc-die-tests: optimize
23804         * tests/test-xalloc-die.sh: Reduce number of processes.
23805
23806 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23807
23808         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23809         patch from ludo@gnu.org (Ludovic Courtès).
23810
23811 2009-11-17  Jim Meyering  <meyering@redhat.com>
23812
23813         version-etc: use proper license string
23814         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23815         * modules/version-etc-fsf: Likewise.
23816
23817 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23818
23819         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23820         printed to stdout.  Deal with EOL differences.
23821
23822 2009-11-17  Eric Blake  <ebb9@byu.net>
23823
23824         unsetenv: work around Solaris bug
23825         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23826         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23827         Reported by Jim Meyering.
23828
23829         vasnprintf: avoid compiler warnings
23830         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23831         variables.
23832         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23833
23834 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23835
23836         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23837         settings since xalloc-die is no longer the self test,
23838         xalloc-die.sh is.
23839
23840 2009-11-17  Jim Meyering  <meyering@redhat.com>
23841
23842         test-xalloc-die.sh: make the code agree with the commit log
23843         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23844         at the end, just in case you happen to have a test-xalloc-die
23845         program in some other PATH directory.
23846
23847         test-xalloc-die.sh: fix a portability bug
23848         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23849         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23850         Otherwise, argv[0] (as often seen in diagnostics) would be too
23851         system-dependent, sometimes with, and sometimes without the leading "./".
23852
23853         version-etc-fsf: relax license to LGPLv3+
23854         * modules/version-etc-fsf (License): Relax license.
23855
23856 2009-11-16  Eric Blake  <ebb9@byu.net>
23857
23858         xalloc-die-tests: avoid printing null pointer
23859         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23860         shell script.
23861         * tests/test-xalloc-die.c (program_name): Declare.
23862         * tests/test-xalloc-die.sh (tmpfiles): New file.
23863
23864         setenv, unsetenv: work around various bugs
23865         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23866         (setenv) [HAVE_SETENV]: Work around bugs.
23867         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23869         for bugs.
23870         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23871         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23873         * modules/stdlib (Makefile.am): Update substitutions.
23874         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23875         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23876         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23877         * modules/setenv-tests: New test.
23878         * modules/unsetenv-tests: Likewise.
23879         * tests/test-setenv.c: New file.
23880         * tests/test-unsetenv.c: Likewise.
23881
23882 2009-11-16  Jim Meyering  <meyering@redhat.com>
23883
23884         version-etc: relax license to LGPLv3+
23885         * modules/version-etc (License): Relax license.
23886
23887         better AC_REQUIRE expanded-before-required-warning avoidance
23888         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23889         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23890         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23891         which is no longer needed.
23892
23893 2009-11-16  Eric Blake  <ebb9@byu.net>
23894
23895         test-freading: clean up temporary file
23896         * tests/test-freading.c (main): Remove file on success, and use
23897         ASSERT more liberally.
23898         Reported by Jim Meyering.
23899
23900 2009-11-16  Jim Meyering  <meyering@redhat.com>
23901
23902         avoid new AC_REQUIRE expanded-before-required warnings
23903         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23904         merely using it.
23905         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23906         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23907
23908 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23909
23910         * tests/test-xalloc-die.c: New file.
23911         * modules/xalloc-die-tests: New file.
23912         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23913         XFAIL_TESTS so it can be appended by modules.
23914
23915 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23916
23917         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23918         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23919
23920 2009-11-14  Eric Blake  <ebb9@byu.net>
23921
23922         fnmatch: avoid compiler warning
23923         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23924         to silence compiler warning about mismatch signedness in ?:.
23925         Reported by Robert Millan.
23926
23927         intprops: add double-inclusion guard
23928         * lib/intprops.h: Allow idempotent includes.
23929         Suggested by Bruce Korb.
23930
23931         openat: detect Solaris fchownat bug
23932         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23933         penalizing glibc chownat when only lchownat is broken.
23934         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23935         trailing slash bugs.
23936         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23937         * modules/openat-tests (Files): Include more files.
23938         (Depends-on): Add mgetgroups, sleep, stat-time.
23939         (configure.ac): Add additional checks.
23940         (Makefile.am): Build new test.
23941         * tests/test-fchownat.c: New file.
23942
23943         lchown: detect Solaris and FreeBSD bug
23944         * lib/lchown.c (rpl_lchown): Work around bug.
23945         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23947         * modules/unistd (Makefile.am): Populate it.
23948         * lib/unistd.in.h (lchown): Update declaration.
23949         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23950         * modules/lchown-tests: New file.
23951         * tests/test-lchown.h (test_lchown): Likewise.
23952         * tests/test-lchown.c (main): Likewise.
23953
23954         chown: detect Solaris and FreeBSD bug
23955         * lib/chown.c (rpl_chown): Work around bug.
23956         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23957         (gl_PREREQ_CHOWN): Delete.
23958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23959         * modules/unistd (Makefile.am): Populate it.
23960         * lib/unistd.in.h (chown): Update declaration.
23961         * lib/lchown.c (chown): Update client.
23962         * modules/lchown (Depends-on): Add lstat.
23963         * doc/posix-functions/chown.texi (chown): Document the bug.
23964         * doc/posix-functions/getgroups.texi (getgroups): Document
23965         getgroups pitfall.
23966         * modules/chown-tests: New file.
23967         * tests/test-chown.h (test_chown): Likewise.
23968         * tests/test-chown.c (main): Likewise.
23969
23970 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23971
23972         gnulib-tool: correctly detect absence of m4 directories
23973         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23974
23975 2009-11-14  Jim Meyering  <meyering@redhat.com>
23976
23977         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23978         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23979
23980 2009-11-14  John W. Eaton  <jwe@gnu.org>
23981
23982         strftime.h: wrap funtion declaration in extern "C" block
23983         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23984
23985 2009-11-13  Eric Blake  <ebb9@byu.net>
23986
23987         getgroups: avoid compiler warning
23988         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23989
23990         getgroups: work around FreeBSD bug
23991         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23992         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23993         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23994         * tests/test-getgroups.c (main): Fix buffer overrun.
23995
23996         getgroups: avoid compilation failure
23997         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23998         * modules/getgroups (Depends-on): Add stdint.
23999
24000 2009-11-13  Jim Meyering  <meyering@redhat.com>
24001
24002         test-getgroups: avoid compilation failure
24003         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24004
24005 2009-11-13  Eric Blake  <ebb9@byu.net>
24006
24007         mgetgroups: new module, taken from coreutils
24008         * modules/mgetgroups: New file.
24009         * lib/mgetgroups.h: Likewise.
24010         * lib/mgetgroups.c (mgetgroups): Likewise.
24011         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24012         * MODULES.html.sh (Users and groups): Mention it.
24013
24014         getgroups: don't expose GETGROUPS_T to user
24015         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24016         an element at a time if GETGROUPS_T is wrong size.
24017         * lib/getugroups.h (getugroups): Change signature.
24018         * lib/unistd.in.h (getgroups): Likewise.
24019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24020         signature needs fixing.
24021         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24022         AC_TYPE_GETGROUPS.
24023         * modules/group-member (Depends-on): Add getgroups.
24024         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24025         (group_member): Rely on getgroups replacement.
24026         * lib/getugroups.c (getugroups): Use gid_t.
24027         * tests/test-getgroups.c (main): Likewise.
24028         * NEWS: Mention the signature change.
24029         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24030         problem with signature.
24031         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24032         GETGROUPS_T is still useful for setgroups.
24033
24034         getgroups, getugroups: provide stubs for mingw
24035         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24036         * lib/getugroups.c (getugroups): Likewise.
24037         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24038         function.  Modernize replacement scheme.
24039         (gl_PREREQ_GETGROUPS): Delete.
24040         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24041         * modules/getgroups (configure.ac): Declare witness.
24042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24043         * modules/unistd (Depends-on): Substitute witness.
24044         * lib/unistd.in.h (getgroups): Declare replacement.
24045
24046         getgroups: avoid calling exit
24047         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24048         drop xalloc.
24049         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24050         dependencies.
24051         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24052         exiting, in the rare case of malloc failure.
24053
24054         getgroups: fix logic error
24055         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24056         has more than 20 groups.
24057         * modules/getgroups-tests: New test.
24058         * tests/test-getgroups.c: New file.
24059
24060 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24061
24062         * tests/test-base64.c: Improve.
24063
24064 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24065
24066         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24067         Blake <ebb9@byu.net>.
24068
24069 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24070
24071         * tests/test-xvasprintf.c: Add %s%s related checks.
24072
24073 2009-11-12  Eric Blake  <ebb9@byu.net>
24074
24075         version-etc: match standards.texi style
24076         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24077         and use <> only for URLs.
24078
24079 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24080
24081         fts: do not fail on a submount during traversal
24082         * lib/fts.c (fts_build): Read the stat info again after opening
24083         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24084         Original report at http://bugzilla.redhat.com/501848.
24085
24086 2009-11-12  Jim Meyering  <meyering@redhat.com>
24087
24088         bootstrap: sync from coreutils
24089         * build-aux/bootstrap (bootstrap_epilogue): New function.
24090         Use git_modules_config in one more place.  This make bootstrap's
24091         --gnulib-srcdir option more useful for testing.
24092
24093         bootstrap: generalize autoheader check
24094         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24095         AC_CONFIG_HEADERS.
24096
24097 2009-11-11  Eric Blake  <ebb9@byu.net>
24098
24099         mkfifoat: use new modules for Solaris and BSD bugs
24100         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24101         * lib/mkfifoat.c (mknodat): Split...
24102         * lib/mknodat.c (mknodat): ...into new file.
24103         * modules/mkfifoat (Files): Ship new file.
24104         (Depends-on): Add mkfifo, mknod.
24105         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24106         (Depends-on): Add symlink.
24107         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24108         redundant with test_mkfifo.h.
24109         (do_mkfifoat, do_mknodat): New helpers.
24110
24111         mknod: new module
24112         * modules/mknod: New file.
24113         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24114         * lib/mknod.c (mknod): Likewise.
24115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24116         defaults.
24117         * modules/sys_stat (Makefile.am): Substitute them.
24118         * lib/sys_stat.in.h (mknod): Declare replacement.
24119         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24120         Document it.
24121         * doc/posix-functions/mknod.texi (mknod): Likewise.
24122         * modules/mknod-tests: New test.
24123         * tests/test-mknod.c: Likewise.
24124
24125         mkfifo: new module
24126         * modules/mkfifo: New file.
24127         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24128         * lib/mkfifo.c (mkfifo): Likewise.
24129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24130         defaults.
24131         * modules/sys_stat (Makefile.am): Substitute them.
24132         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24133         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24134         Document it.
24135         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24136         * modules/mkfifo-tests: New test.
24137         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24138         from test-mkfifoat.c.
24139         * tests/test-mkfifo.c: New file.
24140
24141         readlink: detect FreeBSD bug
24142         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24143         slash on symlink.
24144         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24145         * tests/test-readlink.h (test_readlink): Enhance test.
24146
24147         symlink: detect FreeBSD bug
24148         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24149         slash on symlink.
24150         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24151         * tests/test-symlink.h (test_symlink): Enhance test.
24152
24153 2009-11-10  Eric Blake  <ebb9@byu.net>
24154
24155         link: detect FreeBSD bug
24156         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24157         symlink.
24158         * doc/posix-functions/link.texi (link): Document the bug.
24159         * tests/test-link.h (test_link): Enhance test.
24160         * tests/test-linkat.c (main): Update caller.
24161
24162         unlink, remove: detect FreeBSD bug
24163         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24164         slash on symlink.
24165         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24166         * doc/posix-functions/remove.texi (remove): Likewise.
24167         * tests/test-unlink.h (test_unlink): Enhance test.
24168         * tests/test-remove.c (main): Likewise.
24169
24170 2009-11-09  Eric Blake  <ebb9@byu.net>
24171
24172         rename: detect FreeBSD bug
24173         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24174         slash on symlink.
24175         * modules/renameat-tests (Depends-on): Add filenamecat.
24176         * tests/test-rename.h (test_rename): Allow one more errno.
24177         * tests/test-renameat.c (main): Likewise.
24178         * doc/posix-functions/rename.texi (rename): Document the bug.
24179
24180         open: detect FreeBSD bug
24181         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24182         symlink.
24183         * doc/posix-functions/open.texi (open): Document the bug.
24184         * doc/posix-functions/utimes.texi (utimes): Likewise.
24185         * tests/test-open.h (test_open): Add parameters, and test symlink
24186         handling.
24187         * tests/test-open.c (main): Adjust caller.
24188         * tests/test-fcntl-safer.c (main): Likewise.
24189         * modules/open-tests (Depends-on): Add stdbool, symlink.
24190         * modules/fcntl-safer-tests (Depends-on): Likewise.
24191         * tests/test-openat.c (main): Add test-open tests.
24192
24193         stat: detect FreeBSD bug
24194         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24195         symlink.
24196         * doc/posix-functions/stat.texi (stat): Document the bug.
24197         * tests/test-stat.h (test_stat_func): Add argument.
24198         * tests/test-stat.c (main): Adjust caller.
24199         * tests/test-fstatat.c (main): Likewise.
24200         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24201         Reported by Jim Meyering.
24202
24203 2009-11-09  James Youngman  <jay@gnu.org>
24204
24205         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24206         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24207
24208 2009-11-08  Jim Meyering  <meyering@redhat.com>
24209
24210         utimens: remove invalid futimesat call
24211         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24212         It used the file descriptor of the target file as the DIR_FD
24213         parameter and NULL as the file name.  That caused failure with
24214         errno == EFAULT on FreeBSD-8.0-rc2
24215
24216 2009-11-07  Eric Blake  <ebb9@byu.net>
24217
24218         fflush, freadseek: use fseeko, not fseek
24219         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24220         (clear_ungetc_buffer): Avoid potential problems on large files.
24221         * lib/freadseek.c (freadseek): Likewise.
24222         * modules/freadseek (Depends-on): Add fseeko.
24223         * modules/fseek (configure.ac): Set a witness.
24224         * tests/test-fflush.c (main): Use fseeko.
24225         * tests/test-fpurge.c (fseek): Disable link warning.
24226         * tests/test-freadable.c (fseek): Likewise.
24227         * tests/test-freading.c (fseek): Likewise.
24228         * tests/test-fseeko.c (fseek): Likewise.
24229         * tests/test-ftell.c (fseek): Likewise.
24230         * tests/test-ftello.c (fseek): Likewise.
24231         * tests/test-fwritable.c (fseek): Likewise.
24232         * tests/test-fwriting.c (fseek): Likewise.
24233
24234 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24235
24236         * modules/memchr (Depends-on): Drop getpagesize dependency.
24237
24238 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24239
24240         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24241         Reported by Ludovic Courtès.
24242         * build-aux/pmccabe2html: Improve example usage.
24243         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24244
24245 2009-11-06  Jim Meyering  <meyering@redhat.com>
24246
24247         do-release-commit-and-tag: New module.
24248         Automate the release-commit and tag process.
24249         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24250         * modules/do-release-commit-and-tag: New file.
24251         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24252
24253 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24254
24255         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24256         because test-select.c uses inet_pton.
24257
24258 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24259
24260         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24261         GETADDRINFO_LIB.  Bump serial number.
24262         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24263         Suggested by Eric Blake <ebb9@byu.net>.
24264
24265 2009-11-05  Eric Blake  <ebb9@byu.net>
24266
24267         strtod: detect darwin bug
24268         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24269         Reported by Leo Davis.
24270
24271         freopen-safer: new module
24272         * modules/freopen-safer: New module.
24273         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24274         * lib/freopen-safer.c (freopen_safer): New file.
24275         * lib/stdio-safer.h (freopen_safer): New declaration.
24276         * lib/stdio--.h (freopen): New override.
24277         * MODULES.html.sh (File stream based Input/Output): Mention it.
24278         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24279         freopen-safer module.
24280         * doc/posix-functions/stderr.texi (stderr): Likewise.
24281         * doc/posix-functions/stdin.texi (stdin): Likewise.
24282         * doc/posix-functions/stdout.texi (stdout): Likewise.
24283         * modules/freopen-safer-tests: New test.
24284         * tests/test-reopen-safer.c: New file.
24285
24286 2009-11-05  Jim Meyering  <meyering@redhat.com>
24287
24288         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24289         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24290
24291 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24292
24293         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24294
24295 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24296
24297         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24298
24299 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24300
24301         Fix link error.
24302         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24303         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24304
24305 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24306
24307         * tests/test-func.c: Also test value of __func__.
24308
24309 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24310
24311         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24312         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24313
24314 2009-11-05  Bruno Haible  <bruno@clisp.org>
24315
24316         Fix link error.
24317         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24318         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24319         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24320
24321 2009-11-05  Bruno Haible  <bruno@clisp.org>
24322
24323         Tests for module 'inet_pton'.
24324         * modules/inet_pton-tests: New file.
24325         * tests/test-inet_pton.c: New file.
24326
24327 2009-11-05  Bruno Haible  <bruno@clisp.org>
24328
24329         Tests for module 'inet_ntop'.
24330         * modules/inet_ntop-tests: New file.
24331         * tests/test-inet_ntop.c: New file.
24332
24333 2009-11-04  Eric Blake  <ebb9@byu.net>
24334
24335         stdlib-safer: wrap all mkstemp variants
24336         * modules/mkostemp (configure.ac): Set witness.
24337         * modules/mkostemps (configure.ac): Likewise.
24338         * modules/mkstemps (configure.ac): Likewise.
24339         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24340         (mkstemps_safer): Wrap more functions.
24341         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24342         wrapping.
24343         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24344         (mkstemps_safer): Implement the wrappers.
24345
24346         mkstemps, mkostemps: new modules
24347         * modules/mkostemps: New module.
24348         * modules/mkstemps: Likewise.
24349         * lib/mkostemps.c (mkostemps): New file.
24350         * lib/mkstemps.c (mkstemps): Likewise.
24351         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24352         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24354         * modules/stdlib (Makefile.am): Substitute them.
24355         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24356         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24357         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24358         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24359         * MODULES.html.sh (File system functions): Mention them.
24360
24361         tempname: resync from glibc
24362         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24363         same values for __GT_FILE as glibc.  Abort even when assertions
24364         are disabled.
24365         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24366         match its value otherwise.  Allow idempotent inclusion.
24367         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24368         * lib/mkostemp.c (mkostemp): Likewise.
24369         * lib/mkstemp.c (mkstemp): Likewise.
24370         * lib/tmpfile.c (tmpfile): Likewise.
24371         * NEWS: Document this.
24372
24373         utimens: fix use of futimens on older Linux
24374         * lib/utimens.c (fdutimens): Use updated, rather than original,
24375         timespec to avoid bug in older Linux kernel.
24376         Reported by Simon Josefsson.
24377
24378 2009-11-04  Bruno Haible  <bruno@clisp.org>
24379
24380         Make num_processors more flexible and consistent.
24381         * lib/nproc.h (enum nproc_query): New type.
24382         (num_processors): Add a 'query' argument.
24383         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24384         (num_processors): Add a 'query' argument. Test the value of the
24385         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24386         mingw, count the number of CPUs available for the current process.
24387         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24388         Check for sched_getaffinity and sched_getaffinity_np.
24389         * modules/nproc (Depends-on): Add c-ctype, extensions.
24390         * NEWS: Mention the change.
24391
24392 2009-11-03  Bruno Haible  <bruno@clisp.org>
24393
24394         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24395
24396 2009-11-03  Jim Meyering  <meyering@redhat.com>
24397
24398         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24399         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24400         if it is defined.
24401
24402 2009-11-02  Eric Blake  <ebb9@byu.net>
24403
24404         mktime, timegm: share common declaration
24405         * lib/mktime-internal.h: New file.
24406         * lib/mktime.c: Use it rather than open-coding a declaration.
24407         * lib/timegm.c: Likewise.
24408         * modules/mktime (Files): Ship it.
24409         * modules/timegm (Files): Likewise.
24410         Suggested by Bruno Haible.
24411
24412         test-update-copyright: update test to match script changes
24413         * tests/test-update-copyright.sh: Avoid hard-coding perl
24414         location.  Don't update *.bak created by earlier runs.
24415
24416 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24417             Simon Josefsson  <simon@josefsson.org>
24418             Bruno Haible  <bruno@clisp.org>
24419
24420         Fix link error on Solaris 8.
24421         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24422         also in libnsl. Define also INET_PTON_LIB.
24423         * modules/inet_pton (Link): New section.
24424
24425 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24426             Bruno Haible  <bruno@clisp.org>
24427
24428         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24429         * modules/inet_ntop (Link): New section.
24430         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24431
24432 2009-11-02  Eric Blake  <ebb9@byu.net>
24433
24434         maint: avoid compiler warnings in m4 macros
24435         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24437
24438 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24439
24440         * m4/pmccabe2html.m4: Remove file.
24441         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24442         function.  Change maintainer.
24443         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24444         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24445         Courtès).
24446
24447 2009-10-31  Eric Blake  <ebb9@byu.net>
24448
24449         fseeko: fix m4 regression
24450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24451         regression from 2009-10-27.
24452         Reported by Ralf Wildenhues.
24453
24454 2009-10-31  Jim Meyering  <meyering@redhat.com>
24455
24456         inttostr: aesthetics and improved (compile-time) safety
24457         Define inttype_is_signed rather than inttype_is_unsigned,
24458         since the sole use is via "#if inttype_is_signed".
24459         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24460         inttype_is_unsigned.
24461         * lib/offtostr.c (inttype_is_signed): Likewise.
24462         * lib/uinttostr.c (inttype_is_signed): Likewise.
24463         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24464         * lib/inttostr.c (inttostr): Use verify to cross-check the
24465         inttype_is_signed value and the signedness of the actual type.
24466         * modules/inttostr (Depends-on): Add verify.
24467
24468 2009-10-30  Eric Blake  <ebb9@byu.net>
24469
24470         build: avoid compiler warnings
24471         * lib/fchmodat.c (lchmod): Mark unused variables.
24472         * lib/getopt.c (_getopt_initialize): Likewise.
24473         * lib/mktime.c (__mktime_internal): Provide prototype.
24474         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24475         older gcc that do not understand #pragma GCC diagnostic.
24476         * lib/uinttostr.c (inttype_is_unsigned): Define.
24477         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24478
24479 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24480
24481         stat: fix compilation on AIX
24482         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24483         only see struct stat64.
24484
24485 2009-10-30  Eric Blake  <ebb9@byu.net>
24486
24487         exclude: make more robust
24488         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24489         rather than masking a coding bug.
24490         Suggested by Bruno Haible.
24491
24492 2009-10-30  Jim Meyering  <meyering@redhat.com>
24493
24494         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24495         Rather than putting #!/usr/bin/perl on the first line,
24496         start with a variant of what's recommended by "man perlrun" that
24497         invokes the first "perl" program from your shell's search path.
24498         * build-aux/gitlog-to-changelog: Replace #!... as above.
24499         Add a "Local Variables" perl mode setting.
24500         Prompted by a patch from Ludovic Courtès.
24501         Improved by Eric Blake.
24502         * build-aux/useless-if-before-free: Likewise.
24503         * build-aux/announce-gen: Likewise.
24504         * build-aux/update-copyright: Likewise.
24505
24506 2009-10-29  Eric Blake  <ebb9@byu.net>
24507
24508         filenamecat-lgpl: adjust clients
24509         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24510         filenamecat.
24511         * modules/renameat (Depends-on): Likewise.
24512
24513         filenamecat: split into filenamecat-lgpl
24514         * modules/filenamecat-lgpl: New module.
24515         * modules/filenamecat (Files): Move library-safe files into
24516         filenamecat-lgpl.
24517         (Depends-on): Add filenamecat-lgpl.
24518         (configure.ac): Declare witness.
24519         * lib/filenamecat.h (file_name_concat): Only declare when using
24520         GPL module.
24521         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24522         Move...
24523         * lib/filenamecat-lgpl.c: ...into new file.
24524         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24525         (gl_FILE_NAME_CONCAT): Use it.
24526         * MODULES.html.sh (File system functions): Mention new module.
24527
24528         argp: avoid memory leak
24529         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24530         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24531         base_name, since the latter malloc()s and can call exit().
24532         Leak introduced 2006-07-03.
24533
24534         dirname-lgpl: adjust clients that don't need full dirname
24535         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24536         * modules/filenamecat (Depends-on): Likewise.
24537         * modules/linkat (Depends-on): Likewise.
24538         * modules/mkancesdirs (Depends-on): Likewise.
24539         * modules/mkdir (Depends-on): Likewise.
24540         * modules/openat (Depends-on): Likewise.
24541         * modules/savewd (Depends-on): Likewise.
24542         * modules/rename (Depends-on): Likewise.
24543         (License): Relax license.
24544         * modules/mkdir-tests (Depends-on): Drop progname.
24545         (Makefile.am): Delete unneeded LDADD.
24546         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24547
24548         dirname: split into dirname-lgpl
24549         * modules/dirname-lgpl: New module.
24550         * modules/dirname (Files): Move library-safe files into
24551         dirname-lgpl.
24552         (Depends-on): Add dirname-lgpl.
24553         (configure.ac): Declare witness.
24554         * modules/double-slash-root (License): Relax license.
24555         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24556         module.
24557         * lib/dirname.c (dir_len, mdir_name): Move...
24558         * lib/dirname-lgpl.c: ...into new file.
24559         * lib/basename.c (last_component, base_len): Move...
24560         * lib/basename-lgpl.c: ...into new file.
24561         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24562         (gl_DIRNAME): Use it.
24563         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24564         Mention new module.
24565         * modules/dirname-tests (Depends-on): Add progname.
24566         * tests/test-dirname.c (program_name): Delete.
24567
24568         mkdir: make safe for libraries
24569         * modules/mkdir (Depends-on): Drop xalloc.
24570         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24571         exit.
24572
24573         tests: avoid some compiler warnings
24574         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24575         literals.
24576         * tests/test-memchr.c (main): Avoid type mismatch.
24577         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24578         * tests/test-base64.c (main): Likewise.
24579         * tests/test-getdelim.c (main): Likewise.
24580         * tests/test-gethostname.c (main): Likewise.
24581         * tests/test-getline.c (main): Likewise.
24582         * tests/test-netinet_in.c (main): Likewise.
24583         * tests/test-select.c (open_server_socket, main): Likewise.
24584         * tests/test-select-stdin.c (main): Likewise.
24585         * tests/test-sockets.c (main): Likewise.
24586         * tests/test-strsignal.c (main): Likewise.
24587         * tests/test-sys_select.c (main): Likewise.
24588         * tests/test-sys_socket.c (main): Likewise.
24589         * tests/test-u64.c (main): Likewise.
24590         * tests/test-xfprintf-posix.c (main): Likewise.
24591         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24592
24593         sockets: avoid compiler warning
24594         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24595
24596         maint: detect usage(1) and other suspicious exits
24597         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24598
24599 2009-10-29  Jim Meyering  <meyering@redhat.com>
24600
24601         timespec: long-to-int truncation could make timespec_cmp malfunction
24602         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24603         a multiple of 2^32 nanoseconds as no difference.
24604
24605 2009-10-28  Jim Meyering  <meyering@redhat.com>
24606
24607         fprintftime: wrap macro code argument in "do {...} while(0)"
24608         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24609         cpy macro must be a statement that can be followed by a semicolon.
24610         Now that the else clause contains a comment and is hence longer
24611         than one line, I require curly braces.  That in turn requires
24612         that we wrap this code block in the standard do...while(0).
24613
24614         fprintftime: remove stray semicolon from previous change
24615         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24616
24617         fprintftime: avoid a warning about ignored fwrite return value
24618         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24619         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24620         that is unsafe.
24621         * modules/fprintftime (Depends-on): Add ignore-value.
24622
24623         exclude: avoid an unwarranted warning
24624         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24625
24626 2009-10-27  Eric Blake  <ebb9@byu.net>
24627
24628         fseek: avoid compilation failure when fflush is replaced
24629         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24630         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24631         module is in use.
24632         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24633         module is not in use; since REPLACE_FSEEK worked otherwise.
24634         (GNULIB_FTELLO): Likewise for ftell.
24635         Reported by Ian Beckwith and others.
24636
24637 2009-10-27  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24640         Reported by Jim Meyering.
24641
24642 2009-10-27  Jim Meyering  <jim@meyering.net>
24643             Bruno Haible  <bruno@clisp.org>
24644
24645         Avoid warning despite dropping the return value of fwrite.
24646         * lib/unicodeio.c: Include ignore-value.h.
24647         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24648         * modules/unicodeio (Depends-on): Add ignore-value.
24649
24650 2009-10-26  Eric Blake  <ebb9@byu.net>
24651
24652         areadlinkat: fix fallback path
24653         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24654         pointer and zero.
24655
24656 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24657
24658         Use a better IO block size for modern systems
24659         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24660         * lib/md2.c: Likewise.
24661         * lib/md4.c: Likewise.
24662         * lib/md5.c: Likewise.
24663         * lib/sha1.c: Likewise.
24664         * lib/sha256.c: Likewise.
24665         * lib/sha512.c: Likewise.
24666
24667 2009-10-22  Eric Blake  <ebb9@byu.net>
24668
24669         tests: avoid several compiler warnings
24670         * tests/test-getcwd.c (main): Avoid buffer underflow.
24671         * tests/test-getdate.c (main): String literals are not safe with
24672         putenv, so use setenv.  Declare unused argument.
24673         * modules/getdate-tests (Depends-on): Add setenv.
24674         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24675         problems with string literals in char *.
24676         * tests/test-hash.c (main): Avoid shadowing declaration.
24677         (insert_new): Treat string literals as char const *.
24678         * tests/test-getopt.h (test_getopt): Likewise.
24679         (getopt_loop): Alter types to minimize casting elsewhere.
24680         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24681         (test_getopt_long_posix): Likewise.
24682         (do_getopt_long): Add wrapper to minimize casting.
24683         * tests/test-atexit.c (clear_temp_file): Use void.
24684         * tests/test-areadlink-with-size.c (main): Declare unused
24685         arguments.
24686         * tests/test-areadlink.c (main): Likewise.
24687         * tests/test-areadlinkat-with-size.c (main): Likewise.
24688         * tests/test-areadlinkat.c (main): Likewise.
24689         * tests/test-canonicalize-lgpl.c (main): Likewise.
24690         * tests/test-canonicalize.c (main): Likewise.
24691         * tests/test-dirent-safer.c (main): Likewise.
24692         * tests/test-dirname.c (main): Likewise.
24693         * tests/test-dup2.c (main): Likewise.
24694         * tests/test-fchdir.c (main): Likewise.
24695         * tests/test-fcntl-h.c (main): Likewise.
24696         * tests/test-fcntl-safer.c (main): Likewise.
24697         * tests/test-fdopendir.c (main): Likewise.
24698         * tests/test-fdutimensat.c (main): Likewise.
24699         * tests/test-fflush.c (main): Likewise.
24700         * tests/test-filenamecat.c (main): Likewise.
24701         * tests/test-filevercmp.c (main): Likewise.
24702         * tests/test-fopen-safer.c (main): Likewise.
24703         * tests/test-fopen.c (main): Likewise.
24704         * tests/test-fpending.c (main): Likewise.
24705         * tests/test-fpurge.c (main): Likewise.
24706         * tests/test-freading.c (main): Likewise.
24707         * tests/test-fstatat.c (main): Likewise.
24708         * tests/test-fsync.c (main): Likewise.
24709         * tests/test-futimens.c (main): Likewise.
24710         * tests/test-getndelim2.c (main): Likewise.
24711         * tests/test-gettimeofday.c (main): Likewise.
24712         * tests/test-getopt.c (main): Likewise.
24713         * tests/test-i-ring.c (main): Likewise.
24714         * tests/test-inttypes.c (main): Likewise.
24715         * tests/test-link.c (main): Likewise.
24716         * tests/test-lstat.c (main): Likewise.
24717         * tests/test-math.c (main): Likewise.
24718         * tests/test-md5.c (main): Likewise.
24719         * tests/test-memchr2.c (main): Likewise.
24720         * tests/test-memrchr.c (main): Likewise.
24721         * tests/test-mkdir.c (main): Likewise.
24722         * tests/test-mkdirat.c (main): Likewise.
24723         * tests/test-mkfifoat.c (main): Likewise.
24724         * tests/test-open.c (main): Likewise.
24725         * tests/test-openat-safer.c (main): Likewise.
24726         * tests/test-openat.c (main): Likewise.
24727         * tests/test-quotearg.c (main): Likewise.
24728         * tests/test-rawmemchr.c (main): Likewise.
24729         * tests/test-readlink.c (main): Likewise.
24730         * tests/test-remove.c (main): Likewise.
24731         * tests/test-rename.c (main): Likewise.
24732         * tests/test-renameat.c (main): Likewise.
24733         * tests/test-rmdir.c (main): Likewise.
24734         * tests/test-sha1.c (main): Likewise.
24735         * tests/test-signal.c (main): Likewise.
24736         * tests/test-sigaction.c (main): Likewise.
24737         * tests/test-stat.c (main): Likewise.
24738         * tests/test-stat-time.c (main): Likewise.
24739         * tests/test-stddef.c (main): Likewise.
24740         * tests/test-stdint.c (main): Likewise.
24741         * tests/test-stdio.c (main): Likewise.
24742         * tests/test-stdlib.c (main): Likewise.
24743         * tests/test-strchrnul.c (main): Likewise.
24744         * tests/test-strerror.c (main): Likewise.
24745         * tests/test-string.c (main): Likewise.
24746         * tests/test-strtod.c (main): Likewise.
24747         * tests/test-strverscmp.c (main): Likewise.
24748         * tests/test-symlink.c (main): Likewise.
24749         * tests/test-symlinkat.c (main): Likewise.
24750         * tests/test-sys_stat.c (main): Likewise.
24751         * tests/test-sys_time.c (main): Likewise.
24752         * tests/test-time.c (main): Likewise.
24753         * tests/test-unistd.c (main): Likewise.
24754         * tests/test-unlink.c (main): Likewise.
24755         * tests/test-unlinkat.c (main): Likewise.
24756         * tests/test-utimens.c (main): Likewise.
24757         * tests/test-utimensat.c (main): Likewise.
24758         * tests/test-version-etc.c (main): Likewise.
24759         * tests/test-wchar.c (main): Likewise.
24760         * tests/test-wctype.c (main): Likewise.
24761         * tests/test-xprintf-posix.c (main): Likewise.
24762         * tests/test-posixtm.c (main): Likewise.
24763         (STREQ): Delete unused macro.
24764         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24765         shadowed variables.
24766         * tests/test-memchr.c (main): Likewise.
24767
24768 2009-10-21  Eric Blake  <ebb9@byu.net>
24769
24770         areadlinkat: avoid failure on older glibc
24771         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24772         rather than mis-comparing 0 against FUNC_RESULT of char*.
24773
24774 2009-10-21  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/stpncpy (License): Relicense under LGPLv2+.
24777         Reported by David Lutterkort <lutter@redhat.com>.
24778
24779 2009-10-20  Eric Blake  <ebb9@byu.net>
24780
24781         utimensat: work around Solaris 9 bug
24782         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24783         has trailing slash bugs.
24784         * tests/test-lutimens.h (test_lutimens): Enhance test.
24785         * tests/test-utimens.h (test_utimens): Likewise.
24786         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24787         * doc/posix-functions/utimes.texi (utimes): Likewise.
24788         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24789         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24790         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24791         * doc/posix-functions/futimens.texi (futimens): Likewise.
24792
24793         fdutimensat: new module
24794         * modules/fdutimensat: New file.
24795         * lib/fdutimensat.c (fdutimensat): Likewise.
24796         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24797         * MODULES.html.sh (File system functions): Mention module.
24798         * modules/fdutimensat-tests: New test.
24799         * tests/test-fdutimensat.c: Likewise.
24800
24801         doc: regenerate INSTALL
24802         * doc/INSTALL: Reflect recent autoconf update.
24803         * doc/INSTALL.ISO: Likewise.
24804         * doc/INSTALL.UTF-8: Likewise.
24805
24806 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24807
24808         acl: warn if ACL support is not detected
24809         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24810
24811 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24812
24813         * lib/nproc.h: Add extern "C" block for C++.
24814
24815 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24816             Bruno Haible  <bruno@clisp.org>
24817
24818         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24819         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24820         * doc/posix-functions/isalpha.texi: Likewise.
24821         * doc/posix-functions/isblank.texi: Likewise.
24822         * doc/posix-functions/iscntrl.texi: Likewise.
24823         * doc/posix-functions/isdigit.texi: Likewise.
24824         * doc/posix-functions/isgraph.texi: Likewise.
24825         * doc/posix-functions/islower.texi: Likewise.
24826         * doc/posix-functions/isprint.texi: Likewise.
24827         * doc/posix-functions/ispunct.texi: Likewise.
24828         * doc/posix-functions/isspace.texi: Likewise.
24829         * doc/posix-functions/isupper.texi: Likewise.
24830         * doc/posix-functions/isxdigit.texi: Likewise.
24831
24832 2009-10-18  Bruno Haible  <bruno@clisp.org>
24833
24834         Tests for module 'isblank'.
24835         * modules/isblank-tests: New file.
24836         * tests/test-isblank.c: New file.
24837
24838         New module 'isblank'.
24839         * lib/isblank.c: New file.
24840         * m4/isblank.m4: New file.
24841         * modules/isblank: New file.
24842         * doc/posix-functions/isblank.texi: Mention the new module.
24843
24844 2009-10-18  Bruno Haible  <bruno@clisp.org>
24845
24846         New module 'ctype'.
24847         * lib/ctype.in.h: New file.
24848         * m4/ctype.m4: New file.
24849         * modules/ctype: New file.
24850         * doc/posix-headers/ctype.texi: Mention the new module.
24851
24852 2009-10-18  Jim Meyering  <meyering@redhat.com>
24853
24854         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24855         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24856         right after its initialization, rather than farther down.
24857         Keeping these in close proximity makes it easier to ensure
24858         that each such variable is initialized.  E.g.,
24859
24860             LIB_CLOCK_GETTIME=
24861             AC_SUBST([LIB_CLOCK_GETTIME])
24862
24863         This change also increments these serial numbers.
24864         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24867
24868 2009-10-18  Bruno Haible  <bruno@clisp.org>
24869
24870         Don't let environment variables perturb build.
24871         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24872         (gl_PREREQ_GETHRXTIME): ... not here.
24873
24874 2009-10-18  Bruno Haible  <bruno@clisp.org>
24875
24876         Avoid symlink attack in localcharset module.
24877         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24878         (O_NOFOLLOW): Define fallback.
24879         (get_charset_aliases): Don't open the file if it is a symbolic link.
24880         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24881         gl_FCNTL_H.
24882         (gl_FCNTL_H): Require it.
24883         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24884         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24885         Reported by Fergal Glynn <fglynn@veracode.com>.
24886
24887 2009-10-18  Bruno Haible  <bruno@clisp.org>
24888
24889         Implement nproc for mingw.
24890         * lib/nproc.c: Include <windows.h>
24891         (num_processors): On native Windows platforms, try GetSystemInfo.
24892
24893 2009-10-18  Bruno Haible  <bruno@clisp.org>
24894
24895         Implement nproc for IRIX.
24896         * lib/nproc.c: Include <sys/sysmp.h>.
24897         (num_processors): On IRIX systems, try sysmp.
24898         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24899
24900 2009-10-18  Bruno Haible  <bruno@clisp.org>
24901
24902         Implement nproc for HP-UX.
24903         * lib/nproc.c: Include <sys/pstat.h>
24904         (num_processors): On HP-UX systems, try pstat_getdynamic.
24905         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24906         pstat_getdynamic.
24907
24908 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24909             Bruno Haible  <bruno@clisp.org>
24910
24911         Implement nproc for NetBSD, OpenBSD.
24912         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24913         (ARRAY_SIZE): New macro.
24914         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24915         * m4/nproc.m4: New file.
24916         * modules/nproc (Files): Add m4/nproc.m4.
24917         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24918         (Makefile.am): Instead, augment lib_SOURCES.
24919
24920 2009-10-18  Bruno Haible  <bruno@clisp.org>
24921
24922         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24923         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24924         sys/param.h.
24925
24926 2009-10-16  Eric Blake  <ebb9@byu.net>
24927
24928         utimensat: new module
24929         * modules/utimensat: New file.
24930         * lib/utimensat.c (utimensat): Likewise.
24931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24932         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24933         so we can work around Linux bugs.
24934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24935         * modules/sys_stat (Makefile.am): Substitute them.
24936         * lib/sys_stat.in.h (utimensat): Declare it.
24937         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24938         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24939         * modules/utimensat-tests: New test.
24940         * tests/test-utimensat.c: Likewise.
24941
24942         utimens: let lutimens work on non-symlinks
24943         * lib/utimens.c (lutimens): Fall back to utimens rather than
24944         failing with ENOSYS, when file is not a symlink.
24945         (utimens): Reduce redirection.
24946         * tests/test-lutimens.h (test_lutimens): Update test to cover
24947         non-symlinks.
24948         * tests/test-utimens.h (test_utimens): Update test to cover
24949         symlinks.
24950         * tests/test-utimens.c (main): Update caller.
24951
24952         utimens: cache whether utimensat syscall works
24953         * lib/utimens.c (utimensat_works_really): New cache variable.
24954         (fdutimens, lutimens): Use it to avoid failing syscall.
24955
24956         test-stat-time, test-utimens: improve portability
24957         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24958         ext4 on alpha, and for cygwin.
24959         * tests/test-utimens-common.h: New file.
24960         (nap): Factor delays into single function.
24961         * tests/test-lutimens.h (test_lutimens): Use new header.
24962         * tests/test-futimens.h (test_futimens): Likewise.
24963         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24964         timestamps to occur from same machine, as was done previously for
24965         test_utimens.
24966         * modules/utimens-tests (Files): Ship new file.
24967         * modules/futimens-tests (Files): Likewise.
24968         Reported in part by Jim Meyering.
24969
24970         sys_stat: sort replacement declarations
24971         * lib/sys_stat.in.h: Sort declarations.
24972         * lib/futimens.c (futimens): Fix typo.
24973
24974 2009-10-15  Jim Meyering  <meyering@redhat.com>
24975
24976         don't let environment settings perturb build
24977         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24978         could cause a configure-time and/or build-time malfunction.
24979         Typically, a configure-time function-in-library test is performed
24980         via code like this:
24981
24982           LIB_VAR=
24983           AC_SUBST([LIB_VAR])
24984           prefix_saved_LIBS=$LIBS
24985             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24986                        [test "$ac_cv_search_FUNC" = "none required" ||
24987                         LIB_VAR=$ac_cv_search_FUNC])
24988           LIBS=$prefix_saved_LIBS
24989
24990         However, in each of the files affected by this change, the LIB_VAR=
24991         initialization was omitted.  Thus, when set in the environment, its
24992         value would propagate into generated Makefiles when FUNC is not found
24993         in LIB_NAME.
24994         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24995         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24997
24998 2009-10-14  Eric Blake  <ebb9@byu.net>
24999
25000         fchdir: avoid infinite recursion in mingw
25001         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25002         recursing.
25003
25004         test-stat-time: port to mingw
25005         * tests/test-stat-time.c (force_unlink): Return a value.
25006         (test_ctime) [W32]: Fix compilation error.
25007         (nap): Don't call usleep with too large an argument.  Use
25008         force_unlink.
25009         * doc/pastposix-functions/usleep.texi (usleep): Document the
25010         portability issue.
25011
25012 2009-10-13  Jim Meyering  <meyering@redhat.com>
25013
25014         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25015         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25016         * modules/pipe-filter-ii: Likewise.
25017         * modules/sys_socket-tests: Likewise.
25018         * modules/tsearch-tests: Likewise.
25019         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25020         (check): Depend on it.
25021
25022 2009-10-12  Eric Blake  <ebb9@byu.net>
25023
25024         utimens-tests: port to NFS file systems
25025         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25026         comparisons to avoid spurious failures from timestamp drift
25027         between NFS machines.
25028
25029 2009-10-12  Eric Blake  <ebb9@byu.net>
25030
25031         stat-time-tests: minor cleanups
25032         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25033         * tests/test-stat-time.c (nap): Separate assignment from call.
25034         Suggested by Paolo Bonzini and Bruno Haible.
25035
25036         sys_stat: guarantee struct timespec
25037         * lib/sys_stat.in.h (includes): Always include <time.h>
25038         * modules/sys_stat (Depends-on): Add time.
25039         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25040         mode_t permission values.
25041         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25042         get at subsecond timestamps.
25043
25044 2009-10-10  Eric Blake  <ebb9@byu.net>
25045
25046         futimens: new module
25047         * modules/futimens: New file.
25048         * lib/futimens.c (futimens): Likewise.
25049         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25050         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25051         we can work around Linux bugs.
25052         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25053         * modules/sys_stat (Makefile.am): Substitute them.
25054         * lib/sys_stat.in.h (futimens): Declare it.
25055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25056         * doc/posix-functions/futimens.texi (futimens): Likewise.
25057         * modules/futimens-tests: New test.
25058         * tests/test-futimens.c: Likewise.
25059
25060         utimens: introduce fdutimens
25061         * lib/utimens.h (fdutimens): New prototype.
25062         * lib/utimens.c (gl_futimens): Move guts...
25063         (fdutimens): ...to new interface.
25064         * tests/test-utimens.c (do_fdutimens): Use it.
25065
25066         utimens: add UTIME_NOW and UTIME_OMIT support
25067         * lib/utimens.c (validate_timespec, update_timespec): New helper
25068         functions.
25069         (gl_futimens, lutimens): Use them.
25070         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25071         stdbool, sys_stat.
25072         (Link): Mention resulting library dependency.
25073         * modules/utimecmp (Link): Likewise.
25074         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25075         (Makefile.am): Pick up library dependency.
25076         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25077         definition.
25078         * tests/test-sys_stat.c: Test the definitions.
25079         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25080         * NEWS: Document library dependency.
25081
25082         utimecmp: support symlink timestamps
25083         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25084         hashing when possible.  Use pathconf when available.
25085         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25086         * modules/utimecmp (Depends-on): Add lstat.
25087
25088         utimens: add lutimens interface
25089         * lib/utimens.c (lutimens): New function.
25090         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25091         * lib/utimens.h (lutimens): Declare new interface.
25092         * tests/test-utimens.c (main): Enhance test.
25093         * tests/test-lutimens.h (test_lutimens): New file.
25094         * modules/utimens-tests (Files): Distribute it.
25095         (Depends-on): Add symlink.
25096         (configure.ac): Check for usleep.
25097
25098         utimens: validate futimens usage
25099         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25100         fewer syscalls on failure later on.  Avoid compiler warning on
25101         mingw.
25102         * modules/utimens (Depends-on): Add dup2.
25103
25104         utimens: add test
25105         * modules/utimens-tests: New test.
25106         * tests/test-utimens.h: New file.
25107         * tests/test-futimens.h: Likewise.
25108         * tests/test-utimens.c: Likewise.
25109
25110         doc: mention timestamp portability issues
25111         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25112         instead.
25113         * doc/posix-functions/utime.texi (utime): Likewise.
25114         * doc/posix-functions/utimes.texi (utimes): Likewise.
25115         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25116         instead.
25117         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25118         module.
25119         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25120         Mention weakness with symlink timestamps.
25121         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25122         to utimensat/futimens instead.
25123         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25124
25125         test-dup2: enhance test
25126         * tests/test-dup2.c (main): Also check AT_FDCWD.
25127
25128         test-stat-time: avoid more spurious failures
25129         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25130         xfs; and avoid race if the two timestamps cross quantization edge.
25131
25132         relocatable: prefer 'file system' over 'filesystem'
25133         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25134         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25135         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25136         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25137         * lib/relocatable.c (compute_curr_prefix): Likewise.
25138
25139 2009-10-10  Jim Meyering  <meyering@redhat.com>
25140
25141         stat-time-tests: check for the usleep function
25142         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25143
25144 2009-10-10  Bruno Haible  <bruno@clisp.org>
25145
25146         * modules/xnanosleep: Put the Link section after the Include section.
25147
25148 2009-10-09  Eric Blake  <ebb9@byu.net>
25149
25150         dup2: work around FreeBSD 6.1 bug
25151         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25152         * doc/posix-functions/dup2.texi (dup2): Document it.
25153         Reported by Nelson H. F. Beebe and Jim Meyering.
25154
25155         test-stat-time: port to buggy NFS clients
25156         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25157         (test_ctime): Also skip test if mtime and ctime are skewed.
25158
25159         maint: prefer 'file system' over 'filesystem'
25160         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25161         * doc/posix-functions/lstat.texi (lstat): Likewise.
25162         * lib/file-has-acl.c (file_has_acl): Likewise.
25163         * lib/fwriteerror.c [TEST]: Likewise.
25164         * tests/test-areadlink.h (test_areadlink): Likewise.
25165         * tests/test-areadlinkat-with-size.c (main): Likewise.
25166         * tests/test-areadlinkat.c (main): Likewise.
25167         * tests/test-canonicalize-lgpl.c (main): Likewise.
25168         * tests/test-canonicalize.c (main): Likewise.
25169         * tests/test-fstatat.c (main): Likewise.
25170         * tests/test-linkat.c (main): Likewise.
25171         * tests/test-lstat.h (test_lstat_func): Likewise.
25172         * tests/test-mkdir.h (test_mkdir): Likewise.
25173         * tests/test-readlink.h (test_readlink): Likewise.
25174         * tests/test-remove.c (main): Likewise.
25175         * tests/test-rename.h (test_rename): Likewise.
25176         * tests/test-renameat.c (main): Likewise.
25177         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25178         * tests/test-symlink.h (test_symlink): Likewise.
25179         * tests/test-symlinkat.c (main): Likewise.
25180         * tests/test-unlink.h (test_unlink_func): Likewise.
25181         * tests/test-unlinkat.c (main): Likewise.
25182
25183         maint: make realtime library usage explicit
25184         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25185         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25186         * modules/settime (Link): Likewise.
25187         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25188
25189         test-stat-time: speed up execution
25190         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25191         warning on mingw.
25192         (nap): New helper function.
25193         (prepare_test): Use it to reduce sleep time.
25194         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25195         execution.
25196         * modules/stat-time-tests (configure.ac): Check for usleep.
25197
25198 2009-10-09  Jim Meyering  <meyering@redhat.com>
25199
25200         selinux-h: always use getfilecon wrappers
25201         * lib/getfilecon.c: New file.
25202         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25203         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25204         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25205         (fgetfilecon): Provide a stub.
25206         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25207         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25208         file unconditionally.
25209         When <selinux/selinux.h> is found, arrange to use wrappers.
25210         * modules/selinux-h (Files): Add getfilecon.c.
25211         (Makefile.am): Substitute include-next-related bits
25212         into the now-always-generated selinux/selinux.h file.
25213         * doc/glibc-functions/lgetfilecon.texi: New file.
25214         * doc/glibc-functions/fgetfilecon.texi: New file.
25215         * doc/glibc-functions/getfilecon.texi: New file.
25216         * doc/glibc-functions/getfilecon-desc.texi: New file.
25217         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25218         which to pull in the new files.
25219         * MODULES.html.sh (Misc): Add selinux-h.
25220
25221 2009-10-08  Jim Meyering  <meyering@redhat.com>
25222
25223         unistd: fix comment typo
25224         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25225
25226 2009-10-08  Eric Blake  <ebb9@byu.net>
25227
25228         areadlink: use SIZE_MAX consistently
25229         * modules/areadlink (Depends-on): Add stdint.
25230         * modules/areadlink-with-size (Depends-on): Likewise.
25231         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25232         gives NULL; drop sys/types, since unistd gives size_t; and add
25233         stdint for SIZE_MAX.
25234         (SIZE_MAX): Rely on headers.
25235         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25236         and add stdint.
25237         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25238         (SIZE_MAX): Likewise.
25239         (INITIAL_BUF_SIZE): Turn into enum.
25240         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25241
25242 2009-10-08  Jim Meyering  <meyering@redhat.com>
25243
25244         areadlinkat: avoid compilation failure
25245         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25246         Fix typo in comment.
25247
25248 2009-10-07  Eric Blake  <ebb9@byu.net>
25249
25250         areadlinkat-with-size: new module
25251         * modules/areadlinkat-with-size: New module.
25252         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25253         * lib/areadlink.h (areadlinkat): Declare it.
25254         * MODULES.html.sh (File system functions): Mention it.
25255         * modules/areadlinkat-with-size-tests: New test.
25256         * tests/test-areadlinkat-with-size.c: New file.
25257
25258         xreadlinkat: new module
25259         * modules/xreadlinkat: New module.
25260         * lib/xreadlinkat.c (xreadlinkat): New file.
25261         * lib/xreadlink.h (xreadlinkat): Declare it.
25262         * MODULES.html.sh (File system functions): Mention it.
25263
25264         areadlinkat: new module
25265         * lib/at-func.c (FUNC_FAIL): New define.
25266         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25267         * modules/areadlinkat: New module.
25268         * lib/linkat.c (areadlinkat): Move...
25269         * lib/areadlinkat.c (areadlinkat): ...to new file.
25270         * lib/areadlink.h (areadlinkat): Declare it.
25271         * modules/linkat (Depends-on): Add areadlinkat.
25272         * MODULES.html.sh (File system functions): Mention it.
25273         * modules/areadlinkat-tests: New test.
25274         * tests/test-areadlinkat.c: New file.
25275
25276         areadlink, areadlink-with-size: add tests
25277         * modules/areadlink-tests: New test.
25278         * modules/areadlink-with-size-tests: Likewise.
25279         * tests/test-areadlink.h: New file.
25280         * tests/test-areadlink.c: Likewise.
25281         * tests/test-areadlink-with-size.c: Likewise.
25282
25283         maint: minor cleanups
25284         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25285         _UNUSED_PARAMETER_ instead.
25286         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25287         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25288         * modules/linkat-tests (Files): Distribute test-link.h.
25289
25290         openat, utimens: whitespace cleanup
25291         * lib/openat.c: Prefer space throughout, rather than mix of 8
25292         spaces vs. tabs.
25293         * lib/at-func.c: Likewise.
25294         * lib/utimens.c: Likewise.
25295
25296         openat: avoid using wrong fd
25297         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25298         working directory chooses same fd.
25299         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25300
25301         mkdir, mkdirat: fix cygwin 1.5.x bug
25302         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25303         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25304         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25305         bug.
25306         (gl_PREREQ_MKDIR): Delete unused macro.
25307         * modules/mkdir (Files): Track file rename.
25308         (configure.ac): Update macro name.
25309         * modules/openat (Depends-on): Add mkdir.
25310         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25311
25312         mkdir, mkdirat: add tests
25313         * modules/mkdir-tests: New test.
25314         * tests/test-mkdir.h: New file.
25315         * tests/test-mkdir.c: Likewise.
25316         * tests/test-mkdirat.c: Likewise.
25317         * modules/openat-tests (Files): Add new files.
25318         (Makefile.am): Run new test.
25319
25320 2009-10-06  Eric Blake  <ebb9@byu.net>
25321
25322         doc: tweak *at function documentation
25323         * doc/posix-functions/faccessat.texi (faccessat): Mention
25324         known issue with replacement.
25325         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25326         * doc/posix-functions/linkat.texi (linkat): Likewise.
25327         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25328         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25329         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25330         * doc/posix-functions/renameat.texi (renameat): Likewise.
25331         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25332
25333         openat: fix GNU/Hurd bug in unlinkat
25334         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25335         broken.
25336         * doc/posix-functions/unlink.texi (unlink): Document this.
25337         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25338
25339         fdopendir: fix GNU/Hurd bug
25340         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25341         allowing non-directory fds.
25342         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25344         * modules/dirent (Makefile.am): Substitute it.
25345         * lib/dirent.in.h (fdopendir): Declare replacement.
25346         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25347         * tests/test-fdopendir.c (main): Test something other than
25348         /dev/null, since on Hurd that behaves like a directory.
25349
25350         test-symlink: port to GNU/Hurd
25351         * tests/test-symlink.h (test_symlink): Relax expected errno.
25352
25353         doc: tweak more cygwin information
25354         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25355         now compatible with glibc.
25356         * doc/posix-functions/getopt.texi (getopt): Likewise.
25357
25358         getopt-gnu: add another test
25359         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25360         guarantee behavior relied on by m4.
25361         * tests/test-getopt.c (main): Use it.
25362         * modules/getopt-posix-tests (Depends-on): Add setenv.
25363         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25364
25365         getopt: fix compilation on darwin
25366         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25367         include.
25368         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25369         Reported by Ludovic Courtès.
25370
25371 2009-10-06  Bruno Haible  <bruno@clisp.org>
25372
25373         * modules/size_max (Description): Discourage its use.
25374         Reported by Simon Josefsson.
25375
25376 2009-10-06  Jim Meyering  <meyering@redhat.com>
25377
25378         linkat: avoid compilation failure
25379         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25380
25381 2009-10-05  Eric Blake  <ebb9@byu.net>
25382
25383         linkat: support Linux 2.6.17
25384         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25385         linkat on Linux, but allow cache variable override.
25386         * lib/linkat.c (rpl_linkat): Define override.
25387         * modules/linkat (Depends-on): Add symlinkat.
25388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25389         * modules/unistd (Makefile.am): Substitute it.
25390         * lib/unistd.in.h (linkat): Declare replacement.
25391         Reported by Pádraig Brady.
25392
25393         quotearg: port test to systems with C.UTF-8 locale
25394         * tests/test-quotearg.c (struct result_strings): Add another
25395         member, differentiating between C.ASCII and C.UTF-8 handling.
25396         (compare_strings): Add parameter.
25397         (main): Adjust all callers.
25398
25399         getopt: avoid clash with FreeBSD _getopt_internal
25400         * lib/getopt.in.h (_getopt_internal): Override the name.
25401         * lib/getopt_int.h (includes): Pick up any overrides.
25402         Reported by Reuben Thomas.
25403
25404         hash: allow C89 compilation
25405         * lib/hash.c (check_tuning): Move declaration before statement.
25406         Reported by Reuben Thomas.
25407
25408 2009-10-05  Karl Berry  <karl@gnu.org>
25409
25410         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25411
25412 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25413             Bruno Haible  <bruno@clisp.org>
25414
25415         * lib/uname.c (uname): Use a table-driven algorithm to compute
25416         Windows NT versions.
25417
25418 2009-10-04  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25421         program_invocation_short_name.
25422         * modules/progname (configure.ac): Test for presence of
25423         program_invocation_short_name.
25424         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25425
25426 2009-10-04  Bruno Haible  <bruno@clisp.org>
25427
25428         * lib/progname.c (set_program_name): Fix comment.
25429         Reported by Jim Meyering.
25430
25431 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25432             Bruno Haible  <bruno@clisp.org>
25433
25434         * lib/uname.c: Include <string.h>.
25435         (uname): Do only one call to GetVersionEx in the common case.
25436
25437 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25438             Bruno Haible  <bruno@clisp.org>
25439
25440         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25441         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25442         (uname): Add support for Windows CE and various non-x86 CPU types.
25443
25444 2009-10-03  Bruno Haible  <bruno@clisp.org>
25445
25446         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25447         invocation to tests/configure.ac.
25448         Reported by Ian Beckwith <ianb@erislabs.net>.
25449
25450 2009-10-02  Eric Blake  <ebb9@byu.net>
25451
25452         fchdir: avoid compiler warning
25453         * lib/fchdir.c (canonicalize_file_name)
25454         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25455
25456         test-open: support mingw errno values
25457         * tests/test-open.h (test_open): Relax test.
25458         * tests/test-fopen.h (test_fopen): Likewise.
25459         * tests/test-openat-safer.c (main): Likewise.
25460
25461         open: fix opening directory on mingw
25462         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25463
25464         test-open: on GNU/Hurd, /dev/null is a directory
25465         * tests/test-fopen.h (main): Rename...
25466         (test_fopen): ...to this.  Use a guaranteed non-directory when
25467         confirming open behavior on trailing slash.
25468         * tests/test-openat-safer.c (main): Likewise.
25469         * tests/test-open.h (main): Likewise....
25470         (test_open): ...to this.
25471         * tests/test-fopen.c (main): Adjust caller.
25472         * tests/test-fopen-safer.c (main): Likewise.
25473         * tests/test-open.c (main): Likewise.
25474         * tests/test-fcntl-safer.c (main): Likewise.
25475         Reported by Samuel Thibault.
25476
25477         rename, fchdir: don't ignore chdir failure
25478         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25479         * lib/rename.c (rpl_rename) [W32]: Likewise.
25480         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25481         an empty destination directory if source cannot be renamed,
25482         although there is still possibility for failure.
25483         * doc/posix-functions/rename.texi (rename): Document the race.
25484         Reported by Jim Meyering.
25485
25486         maint: cleanup whitespace in recent commits
25487         * lib/rename.c (rpl_rename): Remove tabs.
25488         * tests/test-link.h (test_link): Likewise.
25489         * lib/fchdir.c (get_name): Likewise.
25490         Reported by Jim Meyering.
25491
25492 2009-10-02  Ben Pfaff  <blp@gnu.org>
25493
25494         relocatable-prog-wrapper: Add missing dependency on
25495         double-slash-root.
25496         * modules/relocatable-prog-wrapper: Add dependency.
25497         Reported by Ian Beckwith <ianb@erislabs.net>.
25498
25499 2009-10-02  Eric Blake  <ebb9@byu.net>
25500
25501         renameat: fix Solaris bugs
25502         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25503         needed fixing.
25504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25505         * modules/stdio (Makefile.am): Substitute it.
25506         * lib/stdio.in.h (renameat): Declare replacement.
25507         * lib/renameat.c (rpl_renameat): Implement fix.
25508
25509         renameat: new module
25510         * modules/renameat: New file.
25511         * lib/renameat.c (renameat): Likewise.
25512         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25514         * modules/stdio (Makefile.am): Substitute them.
25515         * lib/stdio.in.h (renameat): Declare it.
25516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25517         * doc/posix-functions/renameat.texi (renameat): Likewise.
25518         * modules/renameat-tests: New test.
25519         * tests/test-renameat.c: Likewise.
25520
25521         rename: fix mingw bugs
25522         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25523         directory overwrite bugs.
25524
25525         rename: fix another cygwin 1.5 bug
25526         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25527         checks.
25528         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25529         unnecessary cygwin workarounds.  Also work around bug with moving
25530         full directory onto an empty one.
25531         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25532
25533         rename-dest-slash: merge into rename module
25534         * modules/rename-dest-slash (Status): Mark obsolete.
25535         (Depends-on): Add rename.
25536         (Files): Let rename do it all.
25537         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25538         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25539         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25540         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25541         * lib/rename.c (rpl_rename): Update comments.
25542
25543         rename: fix cygwin 1.5.x bugs
25544         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25545         * lib/rename.c (rpl_rename): Work around them.
25546         * modules/rename (Depends-on): Add same-inode.
25547
25548         rename: fix Solaris 10 bug
25549         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25550         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25551         was the only bug.
25552
25553         rename: fix Solaris 9 bug
25554         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25555         on non-directory.  Avoid calling exit.
25556         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25557         strdup.
25558         * modules/rename-tests (Depends-on): Drop lstat.
25559         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25560         (gl_PREREQ_RENAME): Delete unused macro.
25561
25562         rename-dest-slash: fix NetBSD bug
25563         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25564         links.
25565         * modules/rename-dest-slash (Depends-on): Add same-inode.
25566
25567         rename-tests: new test, exposes several platform bugs
25568         * modules/rename-tests: New file.
25569         * tests/test-rename.h: Likewise.
25570         * tests/test-rename.c: Likewise.
25571         * doc/posix-functions/rename.texi (rename): Improve documentation,
25572         including bugs that will eventually be fixed in gnulib.
25573
25574 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25575
25576         * lib/uname.c: Include <stdlib.h>
25577         (uname): Assume version info is available.
25578
25579 2009-10-02  Jim Meyering  <meyering@redhat.com>
25580
25581         gnu-web-doc-update: correct --help output
25582         * build-aux/gnu-web-doc-update: Make --help output relevant.
25583
25584         gnu-web-doc-update: add standard options
25585         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25586
25587         gnu-web-doc-update: New module.
25588         Use this script to automatically update the on-line web documentation
25589         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25590         * modules/gnu-web-doc-update: New file, from coreutils.
25591         * build-aux/gnu-web-doc-update: New script.
25592
25593 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25594
25595         link: LoadLibrary is not needed.
25596         * lib/link.c: Use GetModuleHandle.
25597
25598 2009-10-01  Eric Blake  <ebb9@byu.net>
25599
25600         getopt: bump serial number
25601         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25602         change.
25603
25604         tests: tighten link, rmdir, and remove tests
25605         * tests/test-link.h (includes): No need to use <config.h> here.
25606         Clean up if directory hard link was created, otherwise test for
25607         trailing '.'.
25608         * tests/test-linkat.c (main): Simplify.
25609         * tests/test-remove.c (main): Enhance test for trailing '.'.
25610         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25611
25612 2009-10-01  Jim Meyering  <meyering@redhat.com>
25613
25614         maint.mk: requiring "make major" was annoying, for a "minor" release.
25615         What is intended is "stable", to contrast with alpha and beta,
25616         so require "make stable", not "make major".
25617         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25618         (get_tool_versions): Likewise.
25619         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25620
25621 2009-09-30  Ben Pfaff  <blp@gnu.org>
25622
25623         Fix broken build of replacement for Windows tmpfile().
25624         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25625         flags argument added along with the 'mkostemp' module.
25626
25627 2009-09-28  Bruno Haible  <bruno@clisp.org>
25628
25629         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25630         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25631         to 'remove_elt'.
25632         (gl_list_remove): Update.
25633         * lib/gl_list.c (gl_list_remove): Update.
25634         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25635         to 'remove_elt'.
25636         (gl_oset_remove): Update.
25637         * lib/gl_list.c (gl_oset_remove): Update.
25638         Reported by Eric Blake.
25639
25640 2009-09-28  Eric Blake  <ebb9@byu.net>
25641
25642         doc: mention yet more cygwin 1.7 status
25643         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25644         cygwin.
25645         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25646         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25647
25648         argp: fix test failure
25649         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25650         that are not upper-case.  Pass correct range to tolower.
25651
25652 2009-09-27  Jim Meyering  <meyering@redhat.com>
25653
25654         test-yesno: work around sparc-dash here-document infelicity
25655         Without this change, the literal \177 byte in a here document
25656         would make dash 0.5.5.1-3 access uninitialized memory.
25657         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25658         Instead, use a marker, "@", and filter through tr to create the desired
25659         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25660
25661 2009-09-27  Bruno Haible  <bruno@clisp.org>
25662
25663         Disable untested support for new flavours of ACLs on AIX.
25664         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25665         progress.
25666         * lib/set-mode-acl.c (qset_acl): Likewise.
25667
25668 2008-12-07  Bruno Haible  <bruno@clisp.org>
25669
25670         Add support for new flavours of ACLs on AIX. (Untested.)
25671         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25672         (file_has_acl): Add support for newer AIX.
25673         * lib/set-mode-acl.c (qset_acl): Likewise.
25674         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25675         Rainer Tammer <tammer@tammer.net>.
25676
25677 2009-09-26  Eric Blake  <ebb9@byu.net>
25678
25679         argp: fix compilation of getopt
25680         * lib/getopt.in.h (includes): Use different guard than glibc.
25681         Reported by Sergey Poznyakoff.
25682
25683         doc: mention more cygwin 1.7 status
25684         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25685         bug.
25686         * doc/posix-functions/execl.texi (execl): Likewise.
25687         * doc/posix-functions/execle.texi (execle): Likewise.
25688         * doc/posix-functions/execlp.texi (execlp): Likewise.
25689         * doc/posix-functions/execv.texi (execv): Likewise.
25690         * doc/posix-functions/execve.texi (execve): Likewise.
25691         * doc/posix-functions/execvp.texi (execvp): Likewise.
25692         * doc/glibc-functions/canonicalize_file_name.texi
25693         (canonicalize_file_name): Cygwin 1.7 now provides this.
25694         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25695         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25696         on AT_SYMLINK_NOFOLLOW.
25697
25698 2009-09-24  Eric Blake  <ebb9@byu.net>
25699
25700         test-linkat: make test more robust
25701         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25702
25703         getopt: fix inclusion guards for cygwin
25704         * modules/getopt-posix (Depends-on): Add include-next.
25705         (Makefile.am): Substitute more items in replacement header.
25706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25707         <getopt.h>.
25708         * lib/getopt.in.h (includes): Use split inclusion guard, and
25709         prefer <getopt.h> over include <unistd.h> when one is present.
25710         (option): Also override name of 'struct option'.
25711
25712         same-inode: revert prior change; it is not yet ready
25713         * NEWS: Undo mention of this change.
25714         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25715         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25716         * lib/cycle-check.c (cycle_check): Likewise.
25717         * lib/same.c (same_name): Likewise.
25718         * lib/at-func2.c (at_func2): Likewise.
25719
25720 2009-09-23  Eric Blake  <ebb9@byu.net>
25721
25722         linkat: new module
25723         * modules/linkat: New file.
25724         * lib/at-func2.c (at_func2): Likewise.
25725         * lib/linkat.c (linkat): Likewise.
25726         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25727         * lib/openat-priv.h (at_func2): Add declaration.
25728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25729         * modules/unistd (Makefile.am): Substitute them.
25730         * lib/unistd.in.h (linkat): Declare it.
25731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25732         * doc/posix-functions/linkat.texi (linkat): Likewise.
25733         * doc/posix-functions/link.texi (link): Tweak wording.
25734         * tests/test-link.c (main): Move guts...
25735         * tests/test-link.h (test_link): ...into new file.
25736         * modules/linkat-tests: New test.
25737         * tests/test-linkat.c: Likewise.
25738         * modules/link-tests (Files): Ship new file.
25739         (Depends-on): Add stdbool.
25740
25741         dirname: add library-safe mdir_name
25742         * lib/dirname.h (mdir_name): New prototype.
25743         * lib/dirname.c (dir_name): Move guts...
25744         (mdir_name): ...to new function that avoids xalloc_die.
25745
25746         fchdir: another mingw fix
25747         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25748         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25749         on mingw (where it has not yet been ported), and make it optional
25750         elsewhere.
25751         (_gl_register_fd): Use it.
25752
25753         same-inode: make SAME_INODE tri-state, to port to mingw
25754         * NEWS: Mention this change.
25755         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25756         st_ino always being 0.
25757         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25758         * lib/cycle-check.c (cycle_check): Likewise.
25759         * lib/same.c (same_name): Likewise.
25760
25761         lstat: avoid mingw compilation error
25762         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25763         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25764         lstat ourselves.
25765         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25766         was adequate.
25767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25768         the checks for lstat.
25769         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25770
25771         link: fix test failure on Solaris 9
25772         * lib/link.c (rpl_link): Don't assume link will catch bogus
25773         trailing slash on source.
25774
25775         test-symlinkat: enhance test
25776         * tests/test-readlink.c (main): Move guts...
25777         * tests/test-readlink.h (test_readlink): ...into new file.
25778         * tests/test-symlink.c (main): Move guts...
25779         * tests/test-symlink.h (test_symlink): ...into new file.
25780         * tests/test-symlinkat.c (main): Use new files for further
25781         coverage.
25782         (do_symlink, do_readlink): New helper functions.
25783         * modules/symlink-tests (Files): Ship new file.
25784         (Depends-on): Add stdbool.
25785         * modules/readlink-tests (Files): Ship new file.
25786         (Depends-on): Add stdbool.
25787         * modules/symlinkat-tests (Files): Use new files.
25788
25789 2009-09-23  Eric Blake  <ebb9@byu.net>
25790
25791         readlink: document portability issue with symlink length
25792         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25793         systems have bogus st_size on symlinks, and mention the
25794         areadlink-with-size module.
25795         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25796         * doc/posix-functions/readlink.texi (readlink): Mention the
25797         areadlink module, and ERANGE failure.
25798         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25799         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25800
25801         readlink: fix Solaris 9 bug with trailing slash
25802         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25803         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25804         * doc/posix-functions/readlink.texi (readlink): Document this.
25805         * modules/readlink-tests: New test.
25806         * tests/test-readlink.c: Likewise.
25807
25808         readlink: fix cygwin 1.5.x bug with return type
25809         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25810         * lib/unistd.in.h (readlink): Use ssize_t.
25811         * lib/readlink.c (readlink): Likewise.
25812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25813         * modules/unistd (Makefile.am): Substitute it.
25814         * lib/unistd.in.h (readlink): Declare replacement.
25815         * doc/posix-functions/readlink.texi (readlink): Document this.
25816
25817         symlink: use throughout gnulib
25818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25819         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25820         symlink is not used.
25821         * modules/symlinkat (Depends-on): Add symlink.
25822         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25823         * modules/canonicalize-tests (Depends-on): Likewise.
25824         * modules/lstat-tests (Depends-on): Likewise.
25825         * modules/openat-tests (Depends-on): Likewise.
25826         * modules/remove-tests (Depends-on): Likewise.
25827         * modules/rmdir-tests (Depends-on): Likewise.
25828         * modules/unlink-tests (Depends-on): Likewise.
25829         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25830         * tests/test-canonicalize.c (symlink): Likewise.
25831         * tests/test-fstatat.c (symlink): Likewise.
25832         * tests/test-lstat.c (symlink): Likewise.
25833         * tests/test-remove.c (symlink): Likewise.
25834         * tests/test-rmdir.c (symlink): Likewise.
25835         * tests/test-unlink.c (symlink): Likewise.
25836         * tests/test-unlinkat.c (symlink): Likewise.
25837
25838         symlink: new module, for Solaris 9 bug
25839         * modules/symlink: New file.
25840         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25841         * lib/symlink.c: Likewise.
25842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25843         * modules/unistd (Makefile.am): Substitute them.
25844         * lib/unistd.in.h (symlink): Declare replacement.
25845         * MODULES.html.sh (File system functions): Mention it.
25846         * doc/posix-functions/symlink.texi (symlink): Likewise.
25847         * modules/symlink-tests: New test.
25848         * tests/test-symlink.c: Likewise.
25849
25850 2009-09-23  Bruno Haible  <bruno@clisp.org>
25851
25852         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25853         when needed.
25854         Test case: gnulib-tool --import --with-tests atexit inttypes.
25855         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25856
25857 2009-09-23  Bruno Haible  <bruno@clisp.org>
25858
25859         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25860         subcommand, not in a subshell.
25861
25862 2009-09-22  Eric Blake  <ebb9@byu.net>
25863
25864         unistd: sort replacement declarations
25865         * lib/unistd.in.h: Sort declarations.
25866
25867         open, openat: minor optimization
25868         * lib/open.c (open): If open succeeded, len is non-zero.
25869         * lib/openat.c (rpl_openat): Likewise.
25870
25871         link-follow: ensure correct result
25872         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25873         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25874         distinguish between possible failures.
25875
25876 2009-09-21  Eric Blake  <ebb9@byu.net>
25877
25878         fts: avoid compiler warning
25879         * lib/fts.c (dirent_inode_sort_may_be_useful)
25880         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25881
25882 2009-09-19  Bruno Haible  <bruno@clisp.org>
25883
25884         * lib/progreloc.c (canonicalize_file_name): New declaration.
25885
25886 2009-09-19  Eric Blake  <ebb9@byu.net>
25887
25888         link: fix quoting
25889         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25890
25891         openat: fix openat bugs on Solaris 9
25892         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25893         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25894         * modules/openat (Depends-on): Add open.
25895         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25896         * modules/fcntl-h (Makefile.am): Substitute it.
25897         * lib/fcntl.in.h (openat): Declare replacement.
25898         * doc/posix-functions/openat.texi (openat): Document this.
25899
25900         openat: move fstatat and unlinkat into correct files
25901         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25902         compiled.
25903         * lib/openat.c (fstatat, unlinkat): Move...
25904         * lib/fstatat.c (fstatat): ...into correct files.
25905         * lib/unlinkat.c (unlinkat): Likewise.
25906
25907         openat: fix unlinkat bugs on Solaris 9
25908         * lib/unlinkat.c (unlinkat): New file.
25909         * modules/openat (Depends-on): Add unlink.
25910         (Files): Distribute it.
25911         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25912         trailing slash behavior is broken.
25913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25914         * modules/unistd (Makefile.am): Substitute it.
25915         * lib/unistd.in.h (unlinkat): Declare replacement.
25916         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25917
25918         openat: fix fstatat bugs on Solaris 9
25919         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25920         stat.
25921         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25922
25923         test-unlinkat: enhance test, to expose Solaris 9 bug
25924         * tests/test-unlink.c (main): Factor guts...
25925         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25926         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25927         * tests/test-rmdir.c (main): Adjust caller.
25928         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25929         (unlinker): New helper function.
25930         (rmdirat): Enhance check.
25931         * modules/rmdir-tests (Depends-on): Add stdbool.
25932         * modules/unlink-tests (Depends-on): Likewise.
25933         (Files): Add test-unlink.h.
25934         * modules/openat-tests (Files): Likewise.
25935         (Depends-on): Add unlinkdir.
25936
25937         test-fstatat: new test, to expose Solaris 9 bugs
25938         * tests/test-stat.c (main): Factor guts...
25939         * tests/test-stat.h (test_stat_func): ...into new file.
25940         * tests/test-lstat.c (main): Factor guts...
25941         * tests/test-lstat.h (test_lstat_func): ...into new file.
25942         * tests/test-fstatat.c: New file.
25943         * modules/stat-tests (Files): Add test-stat.h.
25944         * modules/lstat-tests (Files): Add test-lstat.h.
25945         (Depends-on): Add stdbool.
25946         * modules/openat-tests (Depends-on): Add pathmax.
25947         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25948         (Makefile.am): Run new test.
25949
25950         remove: new module, for mingw and Solaris 9 bugs
25951         * modules/remove: New file.
25952         * lib/remove.c: Likewise.
25953         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25955         * modules/stdio (Makefile.am): Use them.
25956         * lib/stdio.in.h (remove): Declare replacement.
25957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25958         * doc/posix-functions/remove.texi (remove): Likewise.
25959         * modules/remove-tests: New test.
25960         * tests/test-remove.c: Likewise.
25961
25962         unlink: new module, for Solaris 9 bug
25963         * modules/unlink: New file.
25964         * lib/unlink.c: Likewise.
25965         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25967         * modules/unistd (Makefile.am): Use them.
25968         * lib/unistd.in.h (stat): Declare replacement.
25969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25970         * doc/posix-functions/unlink.texi (unlink): Likewise.
25971         * modules/unlink-tests: New test.
25972         * tests/test-unlink.c: Likewise.
25973
25974         lstat: fix Solaris 9 bug
25975         * lib/lstat.c (lstat): Also check for trailing slash on
25976         non-symlink, non-directories.  Use stat module to simplify logic.
25977         * doc/posix-functions/lstat.texi (lstat): Document it.
25978         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25979         (configure.ac): Check for symlink.
25980         * tests/test-lstat.c (main): Add more tests.
25981
25982         stat: add as dependency to other modules
25983         * modules/chown (Depends-on): Add stat.
25984         * modules/euidaccess (Depends-on): Likewise.
25985         * modules/fchdir (Depends-on): Likewise.
25986         * modules/isdir (Depends-on): Likewise.
25987         * modules/link (Depends-on): Likewise.
25988         * modules/lstat (Depends-on): Likewise.
25989         * modules/mkdir-p (Depends-on): Likewise.
25990         * modules/modechange (Depends-on): Likewise.
25991         * modules/open (Depends-on): Likewise.
25992         * modules/readlink (Depends-on): Likewise.
25993         * modules/same (Depends-on): Likewise.
25994
25995         stat: fix Solaris 9 bug
25996         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25997         slash.
25998         * lib/stat.c (rpl_stat): Work around it.
25999         * doc/posix-functions/stat.texi (stat): Update documentation.
26000
26001         stat: new module, for mingw bug
26002         * modules/stat: New file.
26003         * lib/stat.c: Likewise.
26004         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26006         * modules/sys_stat (Makefile.am): Use them.
26007         * lib/sys_stat.in.h (stat): Declare replacement.
26008         * lib/openat.c (fstatat): Deal with lstat and stat being function
26009         macros.
26010         * modules/openat (Depends-on): Add inline.
26011         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26012         * doc/posix-functions/stat.texi (stat): Likewise.
26013         * modules/stat-tests: New test.
26014         * tests/test-stat.c: Likewise.
26015
26016 2009-09-19  Jim Meyering  <meyering@redhat.com>
26017
26018         syntax-check: detect unnecessary inclusion of canonicalize.h
26019         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26020
26021 2009-09-19  Eric Blake  <ebb9@byu.net>
26022
26023         canonicalize-lgpl: adjust clients to use correct header
26024         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26025         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26026         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26027         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26028         * lib/progreloc.c (includes): Likewise.
26029
26030 2009-09-19  Jim Meyering  <meyering@redhat.com>
26031
26032         test-posixtm.c: correct a comment
26033         * tests/test-posixtm.c: Correct first-line comment.
26034         Spotted by Eric Blake.
26035
26036 2009-09-16  Jim Meyering  <meyering@redhat.com>
26037
26038         posixtm-tests: make T const-correct; add a test case
26039         * tests/test-posixtm.c (T): Declare const.
26040         Add a test for -(2^31+1).
26041         Remove useless can-succeed-only-in-2002 test.
26042
26043         posixtm-tests: adjust the sole failing test
26044         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26045         expected output matches what mktime now produces.  Cross-checked via
26046         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26047
26048         posixtm: move #ifdef'd tests into a new module
26049         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26050         * tests/test-posixtm.c: ... this new file.
26051         * modules/posixtm-tests: New module.
26052
26053 2009-09-19  Eric Blake  <ebb9@byu.net>
26054
26055         openat: simplify use of at-func.c
26056         * lib/at-func.c (includes): Include prerequisites here, to
26057         simplify requirements on client files.
26058         * lib/openat-priv.h: Add double-inclusion guard.
26059         * lib/faccessat.c (includes): Simplify.
26060         * lib/fchmodat.c (includes): Likewise.
26061         * lib/fchownat.c (includes): Likewise.
26062         * lib/mkdirat.c (includes): Likewise.
26063         * lib/mkfifoat.c (includes): Likewise.
26064         * lib/symlinkat.c (includes): Likewise.
26065
26066         openat: allow return of fd 0
26067         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26068         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26069         unistd-safer.
26070         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26071         <fcntl.h>; this module does not leak fds.
26072         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26073         must be allowed to return 0, leaving openat_safer to add the
26074         safety.
26075         (openat_permissive): Avoid writing to just-opened fd 2 if
26076         restoring the current directory fails.
26077         * lib/openat-die.c (openat_restore_fail): Add comment.
26078         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26079         (save_cwd): Guarantee safe fd, but without use of open_safer.
26080         * tests/test-openat.c: New test.
26081         * modules/openat-tests (Files, Makefile.am): Distribute and build
26082         new file.
26083
26084         relocatable-prog-wrapper: fix build
26085         * modules/relocatable-prog-wrapper (Files): Update name of
26086         canonicalize m4 file, broken on 2009-09-17.
26087         Reported by emad hajjar <aleppos@hotmail.com>.
26088
26089 2009-09-19  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26092         * lib/safe-alloc.c: Likewise.
26093         Reported by Ian Beckwith <ianb@erislabs.net>.
26094
26095 2009-09-18  Bruno Haible  <bruno@clisp.org>
26096
26097         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26098         Reported by <erobles@sensacd.com.mx>.
26099
26100 2009-09-17  Eric Blake  <ebb9@byu.net>
26101
26102         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26103         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26104         slashes when checking if last component is missing.
26105         * tests/test-canonicalize.c (main): Test this.
26106
26107         canonicalize, canonicalize-lgpl: honor // if distinct from /
26108         * modules/canonicalize (Files): Add double-slash-root.m4.
26109         * modules/canonicalize-lgpl (Files): Likewise.
26110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26111         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26112         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26113         fallback definition.
26114         (canonicalize_filename_mode): Use it to protect //.
26115         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26116         (__realpath): Likewise.
26117         * tests/test-canonicalize.c (main): Test this.
26118         * tests/test-canonicalize-lgpl.c (main): Likewise.
26119         * modules/canonicalize-tests (Depends-on): Add same-inode.
26120         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26121
26122         canonicalize-lgpl: fix glibc bug with trailing slash
26123         * m4/canonicalize-lgpl.m4: Move contents...
26124         * m4/canonicalize.m4: ...here.
26125         (gl_CANONICALIZE_LGPL): Factor realpath check...
26126         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26127         glibc 2.3.5 bug, fixed 2005-04-27.
26128         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26129         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26130         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26131         * modules/canonicalize-lgpl (Files): Manage file rename.
26132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26133         * modules/stdlib (Makefile.am): Substitute witness.
26134         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26135         is needed.
26136         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26137         replacement is required.
26138         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26139         * doc/glibc-functions/canonicalize_file_name.texi
26140         (canonicalize_file_name): Document this.
26141         * doc/posix-functions/realpath.texi (realpath): Likewise.
26142
26143         canonicalize-lgpl: reject non-directory with trailing slash
26144         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26145         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26146         catches failures in glibc 2.3.5.
26147         * tests/test-canonicalize.c (main): Likewise.
26148
26149         canonicalize-lgpl: use native realpath if it works
26150         * lib/canonicalize-lgpl.c (realpath): Guard with
26151         FUNC_REALPATH_WORKS.
26152         * lib/stdlib.in.h (realpath): Make declaration optional based on
26153         HAVE_REALPATH.
26154         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26155         native realpath works.
26156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26157         * modules/stdlib (Makefile.am): Substitute witness.
26158
26159         canonicalize, canonicalize-lgpl: use <stdlib.h>
26160         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26161         (Include): Mention <stdlib.h>.
26162         (configure.ac): Mention functions we provide.
26163         * modules/canonicalize (configure.ac): Likewise.
26164         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26165         realpath if canonicalize_file_name is missing.
26166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26167         * modules/stdlib (Makefile.am): Substitute witnesses.
26168         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26169         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26170         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26171         * NEWS: Document this.
26172         * doc/glibc-functions/canonicalize_file_name.texi
26173         (canonicalize_file_name): Likewise.
26174         * doc/posix-functions/realpath.texi (realpath): Likewise.
26175         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26176
26177         test-canonicalize: consolidate into single C program
26178         * tests/test-canonicalize.sh: Delete; move setup into...
26179         * tests/test-canonicalize.c (main): ...the program, making it
26180         easier to run in debugger.  Add some tests.
26181         * modules/canonicalize-tests (Files): Remove unused file.
26182         (Depends-on): Add progname.
26183         (configure.ac, Makefile.am): Simplify.
26184
26185         test-canonicalize-lgpl: consolidate into single C program
26186         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26187         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26188         easier to run in debugger.  Add some tests.
26189         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26190         (configure.ac, Makefile.am): Simplify.
26191
26192         canonicalize: avoid resolvepath
26193         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26194         unnecessary checks.
26195         * lib/canonicalize.c (includes): Simplify.
26196         (canonicalize_file_name): Drop resolvepath implementation.
26197         * modules/canonicalize (Depends-on): Drop filenamecat.
26198
26199         canonicalize: don't lose errno
26200         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26201         over calls to free.
26202
26203         canonicalize: simplify errno handling
26204         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26205         assignment.
26206
26207         canonicalize, canonicalize-lgpl: update module dependencies
26208         * modules/canonicalize (Depends-on): Add extensions, lstat,
26209         pathmax, stdlib.
26210         (Files): Drop pathmax.h.
26211         (configure.ac): Adjust macro name.
26212         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26213         lstat, stdlib, sys_stat.
26214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26215         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26216         extensions.
26217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26218         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26219         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26220         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26221         declaration, if available.
26222         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26223         we can rely on the readlink module.
26224         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26225         (includes): Use <unistd.h> unconditionally.
26226
26227 2009-09-17  Eric Blake  <ebb9@byu.net>
26228
26229         maint: make Include sections of modules consistent
26230         * modules/alloca: Use only header name; no need to list #include.
26231         * modules/alloca-opt: Likewise.
26232         * modules/arpa_inet: Likewise.
26233         * modules/canon-host: Likewise.
26234         * modules/configmake: Likewise.
26235         * modules/dirent: Likewise.
26236         * modules/eealloc: Likewise.
26237         * modules/environ: Likewise.
26238         * modules/fchdir: Likewise.
26239         * modules/fcntl: Likewise.
26240         * modules/fcntl-h: Likewise.
26241         * modules/gethrxtime: Likewise.
26242         * modules/gettime: Likewise.
26243         * modules/ignore-value: Likewise.
26244         * modules/inet_ntop: Likewise.
26245         * modules/inet_pton: Likewise.
26246         * modules/inttypes: Likewise.
26247         * modules/isnand-nolibm: Likewise.
26248         * modules/isnanf-nolibm: Likewise.
26249         * modules/mbchar: Likewise.
26250         * modules/mbfile: Likewise.
26251         * modules/mbiter: Likewise.
26252         * modules/mbuiter: Likewise.
26253         * modules/netdb: Likewise.
26254         * modules/netinet_in: Likewise.
26255         * modules/nproc: Likewise.
26256         * modules/pagealign_alloc: Likewise.
26257         * modules/poll: Likewise.
26258         * modules/printf-frexp: Likewise.
26259         * modules/pthread: Likewise.
26260         * modules/putenv: Likewise.
26261         * modules/random_r: Likewise.
26262         * modules/relocatable-prog: Likewise.
26263         * modules/search: Likewise.
26264         * modules/select: Likewise.
26265         * modules/selinux-h: Likewise.
26266         * modules/settime: Likewise.
26267         * modules/signal: Likewise.
26268         * modules/size_max: Likewise.
26269         * modules/socklen: Likewise.
26270         * modules/ssize_t: Likewise.
26271         * modules/stdarg: Likewise.
26272         * modules/stdbool: Likewise.
26273         * modules/stddef: Likewise.
26274         * modules/stdint: Likewise.
26275         * modules/stdio: Likewise.
26276         * modules/stdlib: Likewise.
26277         * modules/string: Likewise.
26278         * modules/strings: Likewise.
26279         * modules/sys_file: Likewise.
26280         * modules/sys_ioctl: Likewise.
26281         * modules/sys_select: Likewise.
26282         * modules/sys_socket: Likewise.
26283         * modules/sys_stat: Likewise.
26284         * modules/sys_time: Likewise.
26285         * modules/sys_times: Likewise.
26286         * modules/sys_utsname: Likewise.
26287         * modules/sys_wait: Likewise.
26288         * modules/sysexits: Likewise.
26289         * modules/time: Likewise.
26290         * modules/times: Likewise.
26291         * modules/tmpfile: Likewise.
26292         * modules/trim: Likewise.
26293         * modules/unistd: Likewise.
26294         * modules/wchar: Likewise.
26295         * modules/wctype: Likewise.
26296
26297 2009-09-17  Bruno Haible  <bruno@clisp.org>
26298
26299         Make getdate.y compile on QNX and NetBSD 5 / i386.
26300         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26301         TIME_T_FITS_IN_LONG_INT.
26302         * lib/getdate.y (long_time_t): New type.
26303         (relative_time): Change type of 'seconds' field to long_time_t.
26304         (get_date): Update types of local variables. Check against overflow
26305         during conversion from long_time_t to time_t.
26306         Reported by Matt Kraai <kraai@ftbfs.org>
26307         and Hasso Tepper <hasso@netbsd.org>.
26308
26309 2009-09-17  Bruno Haible  <bruno@clisp.org>
26310
26311         * modules/COPYING: Update copyright years.
26312         * modules/README: Likeiwse.
26313         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26314         Reported by Ian Beckwith <ianb@erislabs.net>.
26315
26316 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26317
26318         * users.txt: Update references for gnuit package.
26319
26320 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26321
26322         * m4/getdelim.m4: Fix typo in copyright line.
26323
26324 2009-09-17  Bruno Haible  <bruno@clisp.org>
26325
26326         * lib/atoll.c: Use the standard header with GPL copyright.
26327         * lib/argz.in.h: Likewise.
26328         * lib/glob.c: Likewise.
26329         * lib/glob-libc.h: Likewise.
26330         * lib/random_r.c: Likewise.
26331         * lib/siglist.h: Likewise.
26332         * lib/strsignal.c: Likewise.
26333         Reported by Ian Beckwith <ianb@erislabs.net>.
26334
26335 2009-09-17  Eric Blake  <ebb9@byu.net>
26336
26337         rmdir: ensure correct dependency order
26338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26339
26340 2009-09-17  Bruno Haible  <bruno@clisp.org>
26341
26342         Disable assertion that fails on NetBSD 5 / i386.
26343         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26344         Reported by Sam Steingold <sds@gnu.org>
26345         and Hasso Tepper <hasso@netbsd.org>.
26346
26347 2009-09-16  Eric Blake  <ebb9@byu.net>
26348
26349         unlinkdir: port to mingw
26350         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26351         on which no one can unlink a directory.
26352
26353         stdlib: sort witness names
26354         * modules/stdlib (Makefile.am): Sort replacements.
26355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26356         * lib/stdlib.in.h: Likewise.
26357
26358         parse-duration-tests: avoid link failure
26359         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26360         LIBINTL.
26361         Reported by Tom G. Christensen.
26362
26363         openat-tests: ensure unlinkat behaves like rmdir
26364         * tests/test-rmdir.c (main): Factor guts...
26365         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26366         * modules/rmdir-tests (Files): Ship new file.
26367         * modules/openat-tests: New test.
26368         * tests/test-unlinkat.c: Likewise.
26369
26370         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26371         * modules/rmdir-errno (Status, Notice): Now obsolete.
26372
26373         rmdir: work around cygwin 1.5.x and mingw bugs
26374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26375         * lib/rmdir.c (rmdir): Work around it.
26376         * modules/rmdir (Status, Notice): No longer obsolete.
26377         (Files): Add dos.m4.
26378         (Depends-on): Add unistd.
26379         (configure.ac): Set witnesses.
26380         (License): Relax to LGPLv2+.
26381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26382         * modules/unistd (Makefile.am): Substitute witnesses.
26383         * lib/unistd.in.h (rmdir): Declare replacement.
26384         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26385         * modules/rmdir-tests: New tests.
26386         * tests/test-rmdir.c: Likewise.
26387
26388 2009-09-15  Eric Blake  <ebb9@byu.net>
26389
26390         fchdir: improve use of replacement functions
26391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26394         REPLACE_CLOSEDIR.
26395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26396         * modules/sys_stat (Makefile.am): Substitute correct witness.
26397         * modules/dirent (Makefile.am): Likewise.
26398         * modules/unistd (Makefile.am): Likewise.
26399         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26400         * lib/unistd.in.h (dup): Likewise.
26401         * lib/sys_stat.in.h (fstat): Likewise.
26402
26403         maint: ignore gnulib-tool temp files
26404         * .gitignore: Ignore files created during gnulib-tool --test.
26405
26406 2009-09-13  Jim Meyering  <meyering@redhat.com>
26407
26408         posixtm: don't reject a time that specify "60" as the number of seconds
26409         * lib/posixtm.c (posixtime): The code to reject invalid dates
26410         would also reject a time specified with the .60 suffix.
26411         But POSIX allows that, in order to accommodate leap seconds.
26412         So don't reject it.
26413         (main): Adjust tests accordingly.
26414         * modules/posixtm (Depends-on): Add stpcpy.
26415
26416 2009-09-11  Jim Meyering  <meyering@redhat.com>
26417
26418         announce-gen: include [$release_type] in emitted Subject:
26419         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26420         e.g., [stable] in the emitted Subject: line.
26421
26422 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26423
26424         Remove obsolete macros from several modules.
26425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26426         obsolete Autoconf macros with their modern counterparts.
26427         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26428         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26430         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26431         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26432         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26435         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26436         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26437         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26439         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26440         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26441         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26442         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26443         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26444         * m4/time_r.m4 (gl_TIME_R): Likewise.
26445         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26446         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26447         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26448
26449         Fix copyright header in build-aux scripts.
26450         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26451         recommendation.
26452         * build-aux/ncftpput-ftp: Likewise.
26453         * build-aux/update-copyright: Likewise.
26454
26455 2009-09-09  Eric Blake  <ebb9@byu.net>
26456
26457         test-link: allow Linux choice of errno
26458         * tests/test-link.c (main): Relax test for alternate error.
26459
26460         strndup: fix improper m4 caching
26461         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26462         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26463         (gl_PREREQ_STRNDUP): Delete.
26464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26465         * modules/string (Makefile.am): Substitute it.
26466         * lib/string.in.h (strndup): Modernize prototype.
26467
26468         getcwd: port to mingw
26469         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26470         different from the POSIX assumptions made throughout the getcwd
26471         module; fortunately, the mingw getcwd does not need replacement.
26472         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26473         * modules/getcwd-tests: New test.
26474         * tests/test-getcwd.c: Likewise.
26475
26476         link: fix platform bugs
26477         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26478         * lib/link.c (link): Work around them.  Fix related mingw bug.
26479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26480         * modules/unistd (Makefile.am): Substitute it.
26481         * lib/unistd.in.h (link): Declare replacement.
26482         * doc/posix-functions/link.texi (link): Document this.
26483         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26484
26485         test-link: consolidate into single C program, test more cases
26486         * tests/test-link.sh: Delete.
26487         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26488         at least Cygwin and Solaris.
26489         * modules/link-tests (Files): Remove unused file.
26490         (Depends-on): Add errno, sys_stat.
26491         (Makefile.am): Simplify.
26492
26493 2009-09-08  Bruno Haible  <bruno@clisp.org>
26494
26495         Work around towlower, towupper bug on mingw.
26496         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26497         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26498         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26499         * doc/posix-functions/towupper.texi: Likewise.
26500         Reported by Eric Blake.
26501
26502 2009-09-08  Jim Meyering  <meyering@redhat.com>
26503
26504         build: don't try to run autoheader if we don't use it
26505         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26506         is not used in configure.ac.
26507
26508 2009-09-08  Eric Blake  <ebb9@byu.net>
26509
26510         euidaccess: fix compilation error
26511         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26512
26513         rawmemchr: relax license
26514         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26515         okay.
26516         Reported by Jim Meyering.
26517
26518         mkfifoat: new module
26519         * modules/mkfifoat: New file.
26520         * lib/mkfifoat.c: Likewise.
26521         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26523         * modules/sys_stat (Makefile.am): Use them.
26524         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26525         * MODULES.html.sh (File system functions): Mention module.
26526         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26527         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26528         * modules/mkfifoat-tests: New test.
26529         * tests/test-mkfifoat.c: Likewise.
26530
26531         strchrnul: relax license
26532         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26533         okay.
26534         Reported by Jim Meyering.
26535
26536 2009-09-08  Eric Blake  <ebb9@byu.net>
26537
26538         fstatat: fix compilation on Solaris
26539         * lib/fstatat.c (includes): Add fcntl.h.
26540         Reported by Pádraig Brady.
26541
26542 2009-09-07  Eric Blake  <ebb9@byu.net>
26543
26544         rename: modernize replacement
26545         * modules/rename (Depends-on): Add stdio.
26546         (configure.ac): Declare witness.
26547         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26548         stdio take care of replacement.
26549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26550         * modules/stdio (Makefile.am): Substitute them.
26551         * lib/stdio.in.h (rename): Declare replacement.
26552         * lib/rename.c (includes): Allow cross-compilation to non-windows
26553         machines.
26554         * doc/posix-functions/rename.texi (rename): Improve
26555         documentation.
26556
26557         stdio: sort witness names
26558         * modules/stdio (Makefile.am): Sort replacements.
26559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26560         * lib/stdio.in.h: Likewise.
26561
26562         getcwd: minor cleanups
26563         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26564         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26565
26566         openat: provide more convenience names
26567         * modules/faccessat (configure.ac): Add C witness.
26568         * lib/unistd.in.h (readlinkat): Fix typo.
26569         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26570         convenience wrappers.
26571         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26572         wrappers in syntax checks.
26573
26574 2009-09-06  Eric Blake  <ebb9@byu.net>
26575
26576         doc: fix comments in recent patches
26577         * lib/faccessat.c: Mention correct function.
26578         * lib/fchmodat.c: Likewise.
26579         * lib/fchownat.c: Likewise.
26580         * lib/symlinkat.c: Likewise.
26581         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26582         constants.
26583
26584         faccessat, symlinkat: continue cleanup of previous patch
26585         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26586         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26587         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26589         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26590         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26591         set.
26592
26593 2009-09-06  Bruno Haible  <bruno@clisp.org>
26594
26595         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26596         (fstatat): Declare if GNULIB_FSTATAT is set.
26597         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26598         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26599         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26600         * modules/fcntl-h (Files): Remove m4/openat.m4.
26601         * modules/sys_stat (Files): Remove m4/openat.m4.
26602         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26603         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26604         * modules/unistd (Files): Remove m4/openat.m4.
26605         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26606         GNULIB_OPENAT.
26607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26608         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26610         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26611         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26612         gl_OPENAT_DEFAULTS.
26613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26614         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26615         Don't require gl_OPENAT_DEFAULTS.
26616         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26617         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26618         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26619         (gl_OPENAT_DEFAULTS): Remove macro.
26620
26621 2009-09-06  Bruno Haible  <bruno@clisp.org>
26622
26623         * modules/openat (configure.ac): Remove unneeded witness.
26624
26625 2009-09-06  Bruno Haible  <bruno@clisp.org>
26626
26627         Set errno to ENOSYS when a function is entirely unsupported.
26628         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26629         EOPNOTSUPP.
26630         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26631         * modules/chown (Depends-on): Remove errno.
26632
26633 2009-09-06  Bruno Haible  <bruno@clisp.org>
26634
26635         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26636
26637 2009-09-06  Bruno Haible  <bruno@clisp.org>
26638
26639         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26640
26641 2009-09-06  Ben Pfaff  <blp@gnu.org>
26642             Bruno Haible  <bruno@clisp.org>
26643
26644         Work around a glibc bug in strtok_r.
26645         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26646         Undefine if UNDEFINE_STRTOK_R is set.
26647         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26649         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26650         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26651         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26652         UNDEFINE_STRTOK_R.
26653         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26654
26655 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26656
26657         exclude: minor fix
26658         * lib/exclude.c: Include wctype.h
26659
26660 2009-09-06  Akim Demaille  <demaille@gostai.com>
26661
26662         bootstrap: improve error message
26663         * build-aux/bootstrap (find_tool): Upon failure, report the list
26664         of candidates.
26665         Honor the initial value of the envvar.
26666
26667 2009-09-05  Eric Blake  <ebb9@byu.net>
26668
26669         symlinkat: new module
26670         * modules/symlinkat: New file.
26671         * lib/symlinkat.c: Likewise.
26672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26674         * modules/unistd (Makefile.am): Use them.
26675         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26676         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26677         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26678         * MODULES.html.sh (File system functions): Mention module.
26679         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26680         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26681         * modules/symlinkat-tests: New test.
26682         * tests/test-symlinkat.c: Likewise.
26683
26684         test-openat-safer: add more checks
26685         * tests/test-openat-safer.c (main): Check more code paths.
26686
26687 2009-09-05  Jim Meyering  <meyering@redhat.com>
26688
26689         syntax-check: detect unnecessary inclusion of openat.h
26690         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26691
26692 2009-09-05  Bruno Haible  <bruno@clisp.org>
26693
26694         Support towlower, towupper.
26695         * doc/posix-functions/towlower.texi: Mention module wctype.
26696         * doc/posix-functions/towupper.texi: Likewise.
26697         * lib/wctype.in.h (towlower, towupper): New functions.
26698         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26699         (ASSERT): New macro.
26700         (e): New variable.
26701         (main): Test also towlower, towupper. Test WEOF argument.
26702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26703
26704 2009-09-05  Bruno Haible  <bruno@clisp.org>
26705
26706         Fix conversion behaviour when the input is invalid.
26707         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26708         mark occurring in first pass of indirect conversion.
26709         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26710         input.
26711         Found by clang's static analyzer.
26712
26713 2009-09-05  Bruno Haible  <bruno@clisp.org>
26714
26715         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26716         where direct conversion is possible.
26717
26718 2009-09-04  Eric Blake  <ebb9@byu.net>
26719
26720         openat: fail with ENOENT on empty name
26721         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26722         buffer.
26723
26724         link-follow: fix logic bug in prior patch
26725         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26726         reversed sense of yes and no in prior patch.  Avoid confusing
26727         compilation failure with desired semantics.
26728
26729         link-follow: accomodate mingw and cross-compilation
26730         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26731         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26732         cross-compilation results to -1, to make linkat easier to
26733         implement when cross-compiling.  Trivially support mingw.
26734         * modules/link-follow (configure.ac): Call new name.
26735         * NEWS: Mention this.
26736
26737 2009-09-03  Eric Blake  <ebb9@byu.net>
26738
26739         faccessat: compile replacement
26740         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26741         needed.
26742
26743         fts: fix compilation error
26744         * lib/fts.c (includes): Re-add "openat.h", for
26745         openat_needs_fchdir.
26746
26747         faccessat: new module
26748         * modules/faccessat: New file.
26749         * lib/faccessat.c: Likewise.
26750         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26752         * modules/unistd (Makefile.am): Use it.
26753         * lib/unistd.in.h (faccessat): Declare it.
26754         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26755         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26756         * MODULES.html.sh (File system functions): Mention it.
26757         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26758         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26759
26760         euidaccess: prefer POSIX over non-standard implementation
26761         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26762         * lib/euidaccess.c (euidaccess): Use it if available.
26763
26764         openat: make template easier to use
26765         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26766         AT_FUNC_F2 to be undefined.
26767         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26768         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26769         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26770         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26771         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26772         Likewise.
26773         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26774         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26775         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26776         Likewise.
26777
26778         openat: declare in POSIX headers
26779         * NEWS: Mention this.
26780         * modules/openat (configure.ac): Declare witnesses.
26781         (Depends-on): Add fcntl-h, sys_stat, unistd.
26782         (Include): Mention correct headers.
26783         * modules/fcntl-h (Depends-on): Add link-warning.
26784         (Files): Add openat.m4.
26785         (Makefile.am): Substitute witnesses.
26786         * modules/sys_stat (Files, Makefile.am): Likewise.
26787         * modules/unistd (Files, Makefile.am): Likewise.
26788         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26789         (gl_OPENAT_DEFAULTS): New macro.
26790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26793         (SYS_STAT_H): Remove unused variable.
26794         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26795         * lib/fcntl--.h (includes): Remove unneeded header.
26796         * lib/openat-safer.c (includes): Likewise.
26797         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26798         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26799         appropriate headers.
26800         (__OPENAT_PREFIX): Delete.
26801         * lib/fcntl.in.h (openat): Provide declaration.
26802         (AT_FDCWD): Fix Solaris bug.
26803         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26804         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26805         * lib/fchmodat.c (includes):  Adjust to find declaration.
26806         * lib/fchownat.c (includes): Likewise.
26807         * lib/mkdirat.c (includes): Likewise.
26808         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26809         still visible.
26810
26811 2009-09-02  Eric Blake  <ebb9@byu.net>
26812
26813         errno: use consistently
26814         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26815         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26816         * lib/canonicalize.c (ELOOP): Likewise.
26817         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26818         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26819         * lib/lchown.c (EOPNOTSUPP): Likewise.
26820         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26821         * lib/savewd.c (ESTALE): Likewise.
26822         * lib/settime.c (ENOSYS): Likewise.
26823         * lib/utimens.c (ENOSYS): Likewise.
26824         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26825         * lib/chdir-safer.c (ELOOP): Likewise.
26826         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26827         * modules/c-stack (Depends-on): Add errno.
26828         * modules/canonicalize (Depends-on): Likewise.
26829         * modules/chdir-safer (Depends-on): Likewise.
26830         * modules/fdopendir (Depends-on): Likewise.
26831         * modules/inet_ntop (Depends-on): Likewise.
26832         * modules/inet_pton (Depends-on): Likewise.
26833         * modules/lchown (Depends-on): Likewise.
26834         * modules/openat (Depends-on): Likewise.
26835         * modules/savewd (Depends-on): Likewise.
26836         * modules/settime (Depends-on): Likewise.
26837         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26838
26839         fts: avoid leaking fds
26840         * modules/fts (Depends-on): Add cloexec.
26841         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26842         flag.
26843
26844         fts: make directory fds more robust
26845         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26846         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26847
26848         backupfile, chdir-long, fts, savedir: make safer
26849         * lib/backupfile.c (includes): Use "dirent--.h", since
26850         numbered_backup can write to stderr during readdir.
26851         * lib/savedir.c (includes): Likewise.
26852         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26853         emulation can write to stderr on failure.
26854         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26855         * lib/getcwd.c: Document why opendir_safer is unused.
26856         * lib/glob.c: Likewise.
26857         * lib/scandir.c: Likewise.
26858         * lib/openat-proc.c: Likewise, for open_safer.
26859         * modules/backupfile (Depends-on): Add dirent-safer.
26860         * modules/savedir (Depends-on): Likewise.
26861         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26862         * modules/chdir-long (Depends-on): Add openat-safer.
26863
26864         openat-safer: new module
26865         * modules/openat-safer: New file.
26866         * lib/openat-safer.c: Likewise.
26867         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26868         * lib/fcntl-safer.h (openat_safer): Declare.
26869         * lib/fcntl--.h (openat): Override.
26870         * MODULES.html.sh (File descriptor based I/O): Mention it.
26871         * lib/openat.h: Add double-inclusion guards.
26872         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26873         "fcntl--.h", so we can implement openat.
26874         * modules/openat-safer-tests: New test.
26875         * tests/test-openat-safer.c: New file.
26876
26877         dirent-safer: new module
26878         * modules/dirent-safer: New file.
26879         * lib/dirent--.h: Likewise.
26880         * lib/dirent-safer.h: Likewise.
26881         * lib/opendir-safer.c: Likewise.
26882         * m4/dirent-safer.m4: Likewise.
26883         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26884         * modules/dirent-safer-tests: New test.
26885         * tests/test-dirent-safer.c: New file.
26886         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26887
26888         fdopendir: optimize on mingw
26889         * lib/unistd.in.h (_gl_directory_name): New prototype.
26890         * lib/fchdir.c (_gl_directory_name): Implement it.
26891         (fchdir): Use it to simplify implementation.
26892         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26893         fchdir, when available, to avoid calling [f]chdir().
26894
26895         fdopendir: split into its own module
26896         * lib/openat.c (fdopendir): Move...
26897         * lib/fdopendir.c: ...into new file.
26898         * modules/fdopendir: New module.
26899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26900         * modules/openat (Depends-on): Add fdopendir.
26901         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26902         fdopendir here.
26903         * modules/savedir (Depends-on): Only need fdopendir, not full
26904         openat.
26905         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26906         * lib/openat.h (fdopendir): Drop prototype.
26907         * lib/dirent.in.h (fdopendir): Provide prototype.
26908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26909         * modules/dirent (Makefile.am): Substitute them.
26910         * MODULES.html.sh (File system functions): Mention it.
26911         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26912         * modules/fdopendir-tests: New file.
26913         * tests/test-fdopendir.c: Likewise.
26914
26915         fchdir: use more consistent macro convention
26916         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26917         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26918         REPLACE_FCHDIR, rather than relying on config.h macros.
26919         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26920         inside a single make-time REPLACE_FCHDIR block, rather than using
26921         the config.h FCHDIR_REPLACEMENT.
26922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26923         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26924         Manage fstat replacement.
26925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26926         REPLACE_FCHDIR.
26927         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26928         (Makefile.am): Substitute REPLACE_FCHDIR.
26929         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26930         FCHDIR_REPLACEMENT.
26931         * lib/dup-safer.c (dup_safer): Likewise.
26932         * lib/dup2.c (rpl_dup2): Likewise.
26933         * lib/dup3.c (rpl_dup3): Likewise.
26934         * lib/open.c (rpl_open): Likewise.
26935
26936         fchdir: simplify error handling, and support dup3
26937         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26938         stdbool, malloc-posix, realloc-posix.
26939         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26940         (ensure_dirs_slot): Return false on allocation failure.
26941         (rpl_dup2): Delete.
26942         (_gl_register_dup): New function.
26943         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26944         (_gl_register_fd): Close fd on allocation failure.
26945         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26946         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26947         prototype.
26948         (rpl_dup2_fchdir): Delete prototype.
26949         * lib/open.c (open): Update caller.
26950         * lib/dup2.c (dup2): Track fchdir metadata.
26951         * lib/dup3.c (dup3): Likewise.
26952         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26954
26955 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26956
26957         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26958         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26959         don't pass arguments to AC_OUTPUT.
26960
26961 2009-09-02  Bruno Haible  <bruno@clisp.org>
26962
26963         * modules/mkdtemp (License): Relicense under LGPLv2+.
26964         Reported by Paolo Bonzini.
26965
26966 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26967
26968         Replace uses of obsolete autoconf macros in Jim's modules.
26969         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26970         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26971         can evoke a warning from autoconf when run with -Wobsolete
26972         enabled.  They were declared obsolete for good reasons (see
26973         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26974         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26975         should not continue using the deprecated macros.
26976         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26977         obsolete Autoconf macros with modern counterparts.
26978         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26979         * m4/dos.m4 (gl_AC_DOS): Likewise.
26980         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26982         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26983         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26985         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26986         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26987         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26988         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26989         Likewise.
26990         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26991         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26992         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26993         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26994         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26995         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26996
26997 2009-09-01  Eric Blake  <ebb9@byu.net>
26998
26999         fchdir: fix off-by-one bug in previous patch
27000         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27001         (_gl_unregister_fd): Delete useless if.
27002
27003 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27004
27005         maint.mk: sort the list of syntax-check rules
27006         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27007         easier to get a sense of progress when the rules are run sequentially
27008         and take a long time.
27009
27010 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27011
27012         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27013         * modules/netinet_in: Likewise.
27014         * modules/sys_file: Likewise.
27015         * modules/sys_ioctl: Likewise.
27016         * modules/sys_select: Likewise.
27017         * modules/sys_socket: Likewise.
27018         * modules/sys_stat: Likewise.
27019         * modules/sys_time: Likewise.
27020         * modules/sys_times: Likewise.
27021         * modules/sys_utsname: Likewise.
27022         * modules/sys_wait: Likewise.
27023
27024 2009-09-01  Jim Meyering  <meyering@redhat.com>
27025
27026         fts: help ensure that return values are not ignored
27027         * lib/fts_.h (__GNUC_PREREQ): Define.
27028         (__attribute_warn_unused_result__): Define.
27029         (fts_children, fts_close, fts_open, fts_read): Declare with
27030         __attribute_warn_unused_result__.
27031
27032         fts: fts_close now fails also when closing a dir file descriptor fails
27033         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27034         and propagate to caller, along with errno.
27035
27036         announce-gen: correct formatting in --help output
27037         * build-aux/announce-gen (usage): Move the one-line description in
27038         --help output "up", to where it belongs, just after Usage:.
27039
27040 2009-08-31  Eric Blake  <ebb9@byu.net>
27041
27042         fchdir: port to mingw
27043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27044         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27045         opened, then use a substitute.
27046         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27047         replacement.
27048         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27049         (_gl_register_fd): No need to check stat if open already filters
27050         all directories.
27051         (fchdir): Fix error condition to match POSIX.
27052         * modules/fchdir (Depends-on): Add sys_stat.
27053         * doc/posix-functions/open.texi (open): Document the limitation.
27054         * modules/fchdir-tests: New file.
27055         * tests/test-fchdir.c: Likewise.
27056
27057         canonicalize: allow cross-testing from cygwin to mingw
27058         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27059         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27060         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27061         Likewise.
27062         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27063         target does not support symlinks.
27064         * tests/test-canonicalize-lgpl.sh: Likewise.
27065
27066         chown: avoid compilation warning on mingw
27067         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27068         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27069         mingw.
27070         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27071         * modules/chown (Depends-on): Add errno.
27072
27073 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27074
27075         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27076         command.
27077
27078 2009-08-31  Jim Meyering  <meyering@redhat.com>
27079
27080         canonicalize: remove useless initialization
27081         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27082         initialization of local, "end".
27083
27084 2009-08-30  Bruno Haible  <bruno@clisp.org>
27085
27086         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27087         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27088         ENOSYS.
27089
27090 2009-08-30  Bruno Haible  <bruno@clisp.org>
27091
27092         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27093         /usr/xpg4/bin/tr when it exists.
27094         * tests/test-pipe-filter-gi1.sh: Likewise.
27095
27096 2009-08-30  Bruno Haible  <bruno@clisp.org>
27097
27098         Work around deficient /usr/bin/id program on Solaris.
27099         * tests/test-file-has-acl.sh (ID): New variable.
27100         * tests/test-set-mode-acl.sh (ID): Likewise.
27101         * tests/test-copy-acl.sh (ID): Likewise.
27102         * tests/test-copy-file.sh (ID): Likewise.
27103
27104 2009-08-30  Bruno Haible  <bruno@clisp.org>
27105
27106         New module 'xstriconveh'.
27107         * lib/xstriconveh.h: New file.
27108         * lib/xstriconveh.c: New file.
27109         * modules/xstriconveh: New file.
27110
27111 2009-08-30  Bruno Haible  <bruno@clisp.org>
27112
27113         Make it easier to use mem_cd_iconveh.
27114         * lib/striconveh.h (iconveh_t): New type.
27115         (iconveh_open, iconveh_close): New declarations.
27116         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27117         with a single 'const iconveh_t *' argument.
27118         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27119         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27120         with a single 'const iconveh_t *' argument.
27121         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27122         * tests/test-striconveh.c (main): Update.
27123         * NEWS: Mention the change.
27124
27125 2009-08-30  Bruno Haible  <bruno@clisp.org>
27126
27127         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27128         problem.
27129
27130 2009-08-30  Bruno Haible  <bruno@clisp.org>
27131
27132         Work around iconv_open problem on Solaris.
27133         * lib/iconv_open-solaris.gperf: New file.
27134         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27135         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27136         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27137         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27138         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27139         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27140
27141 2009-08-29  Jim Meyering  <meyering@redhat.com>
27142
27143         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27144         * top/maint.mk (cvs-check): Remove target; it was just an alias
27145         to the better-named vc-diff-check.
27146         (maintainer-distcheck): Remove rule.  It was used only from
27147         the (alpha/beta/major) target, and all of its commands but one
27148         were coreutils-specific.
27149         (vc-dist): Remove rule.
27150         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27151         Run vc-diff-check, not vc-dist.
27152         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27153
27154 2009-08-27  Bruno Haible  <bruno@clisp.org>
27155
27156         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27157         of 0.
27158
27159 2009-08-27  Bruno Haible  <bruno@clisp.org>
27160
27161         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27162         compilers.
27163         * doc/func.texi: Document the SunPRO C bug.
27164
27165 2009-08-27  Bruno Haible  <bruno@clisp.org>
27166
27167         Fix link error on Solaris.
27168         * tests/test-parse-duration.c (xstrdup): Remove function.
27169
27170 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27171
27172         ignore-value: handle pointer types, too
27173         * lib/ignore-value.h (__attribute__): Remove definition.
27174         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27175         of a more concise and more-often effective "(void) i" statement.
27176         (ignore_ptr): New function to suppress warnings from functions that
27177         return pointers, and to make it explicit that one function doesn't
27178         handle all cases.
27179
27180 2009-08-25  Bruno Haible  <bruno@clisp.org>
27181
27182         dup2: work around a Linux bug.
27183         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27184         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27185         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27186         Reported by Simon Josefsson.
27187
27188 2009-08-25  Jim Meyering  <meyering@redhat.com>
27189
27190         libguestfs uses gnulib
27191         * users.txt: Add libguestfs.
27192
27193 2009-08-24  Eric Blake  <ebb9@byu.net>
27194
27195         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27196         * lib/pipe2.c (includes): Add binary-io.h.
27197         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27198
27199 2009-08-24  Bruno Haible  <bruno@clisp.org>
27200
27201         Tolerate declared but missing accept4 syscall.
27202         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27203         available.
27204         * lib/sys_socket.in.h (accept4): If the function is already present,
27205         override it.
27206         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27207         * modules/accept4 (Makefile.am): Compile accept4.c always.
27208         Reported by Paolo Bonzini and Eric Blake.
27209
27210 2009-08-23  Bruno Haible  <bruno@clisp.org>
27211
27212         New module 'accept4'.
27213         * lib/sys_socket.in.h (accept4): New declaration.
27214         * lib/accept4.c: New file.
27215         * m4/accept4.m4: New file.
27216         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27217         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27218         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27219         HAVE_ACCEPT4.
27220         * modules/accept4: New file.
27221         * doc/glibc-functions/accept4.texi: Mention the new module.
27222
27223 2009-08-24  Jim Meyering  <meyering@redhat.com>
27224
27225         progname: also set global program_invocation_name, when possible
27226         Before this change, a libtool-enabled program that calls glibc's
27227         error function would report the program name as
27228         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27229         * modules/progname (configure.ac): Check for a declaration of
27230         program_invocation_name.
27231         * lib/progname.c:  Include <errno.h>.
27232         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27233         Set program_invocation_name.
27234
27235 2009-08-23  Bruno Haible  <bruno@clisp.org>
27236
27237         * lib/dup3.c: Include <string.h>.
27238
27239 2009-08-23  Bruno Haible  <bruno@clisp.org>
27240
27241         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27242         * lib/pipe2.c (pipe2): Likewise.
27243         Suggested by Eric Blake.
27244
27245 2009-08-23  Bruno Haible  <bruno@clisp.org>
27246
27247         Tolerate declared but missing dup3 syscall.
27248         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27249         * lib/unistd.in.h (dup3): If the function is already present,
27250         override it.
27251         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27252         * modules/dup3 (Makefile.am): Compile dup3.c always.
27253         Reported by Paolo Bonzini.
27254
27255 2009-08-23  Bruno Haible  <bruno@clisp.org>
27256
27257         Tolerate declared but missing pipe2 syscall.
27258         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27259         available.
27260         * lib/unistd.in.h (pipe2): If the function is already present,
27261         override it.
27262         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27263         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27264         Reported by Paolo Bonzini.
27265
27266 2009-08-23  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/pipe2.c (pipe2): Move #ifs inside function.
27269
27270 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27271
27272         quotearg: document limitations of quote_these_too
27273         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27274         those limitations are created.
27275         * lib/quotearg.h (set_char_quoting): Document that digits and
27276         letters that are special after backslash are not permitted.
27277         (quotearg_char): Cross-reference set_char_quoting documentation.
27278
27279 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27280
27281         quotearg: implement custom_quoting_style
27282         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27283         right_quote fields.
27284         (set_custom_quoting): New public function.
27285         (quotearg_buffer_restyled): Add left_quote and right_quote
27286         arguments, handle them very much like locale quoting, and update
27287         all uses.
27288         (quotearg_n_custom): New public function.
27289         (quotearg_n_custom_mem): New public function.
27290         (quotearg_custom): New public function.
27291         (quotearg_custom_mem): New public function.
27292         * lib/quotearg.h: Prototype and document new public functions.
27293         (enum quoting_style): For escape_quoting_style and
27294         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27295         ignored even though they're otherwise like c_quoting_style.
27296         Add custom_quoting_style member and document with comparison to
27297         clocale_quoting_style.
27298         * tests/test-quotearg.c (custom_quotes): New array.
27299         (custom_results): New array.
27300         (main): Extend to test custom quoting.
27301
27302 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27303
27304         quotearg: fix right quote escaping when it's in quote_these_too
27305         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27306         quote, be sure to prepend only one backslash.
27307         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27308         (main): Test it.
27309
27310 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27311
27312         quotearg-tests: test escaping of embedded locale quotes
27313         * tests/test-quotearg.c (struct result_strings): Add member for
27314         new input.
27315         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27316         (inputs): Add new input.
27317         (results_g): Add expected results.
27318         (flag_results): Likewise.
27319         (locale_results): Likewise.
27320         (compare_strings): Check those.
27321
27322 2009-08-23  Bruno Haible  <bruno@clisp.org>
27323
27324         Tests for module 'dup3'.
27325         * modules/dup3-tests: New file.
27326         * tests/test-dup3.c: New file.
27327
27328         New module 'dup3'.
27329         * lib/unistd.in.h (dup3): New declaration.
27330         * lib/dup3.c: New file.
27331         * m4/dup3.m4: New file.
27332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27333         HAVE_DUP3.
27334         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27335         * modules/dup3: New file.
27336         * doc/glibc-functions/dup3.texi: Mention the new module.
27337
27338 2009-08-23  Bruno Haible  <bruno@clisp.org>
27339
27340         Tweak the dup2 test.
27341         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27342         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27343         the test file is still empty. Fix argument order of lseek.
27344
27345 2009-08-23  Bruno Haible  <bruno@clisp.org>
27346
27347         Avoid test link errors when the modules getopt-gnu, gettext are used.
27348         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27350
27351 2009-08-23  Bruno Haible  <bruno@clisp.org>
27352
27353         Fix getdtablesize() on mingw.
27354         * lib/getdtablesize.c (getdtablesize): Implement differently.
27355         * lib/unistd.in.h (getdtablesize): Improve comment.
27356
27357 2009-08-23  Bruno Haible  <bruno@clisp.org>
27358
27359         New module 'mkostemp'.
27360         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27361         * lib/stdlib.in.h (mksotemp): New declaration.
27362         * lib/mkostemp.c: New file, from glibc with modifications.
27363         * lib/tempname.h (GT_FILE): Remove outdated comment.
27364         (gen_tempname): Add flags argument.
27365         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27366         (__GT_FILE): Map to 1.
27367         (small_open, large_open): Remove macros.
27368         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27369         * lib/mkstemp.c (mkstemp): Update.
27370         * lib/mkdtemp.c (mkdtemp): Likewise.
27371         * m4/mkostemp.m4: New file.
27372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27373         HAVE_MKOSTEMP.
27374         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27375         HAVE_MKOSTEMP.
27376         * modules/mkostemp: New file, based on modules/mkstemp.
27377         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27378         * NEWS: Mention the change.
27379
27380 2009-08-23  Bruno Haible  <bruno@clisp.org>
27381
27382         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27383         Reported by Eric Blake.
27384
27385 2009-08-23  Bruno Haible  <bruno@clisp.org>
27386
27387         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27388         Reported by Eric Blake.
27389
27390 2009-08-23  Bruno Haible  <bruno@clisp.org>
27391
27392         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27393         * modules/pipe2 (Depends-on): Likewise.
27394
27395 2009-08-23  Eric Blake  <ebb9@byu.net>
27396
27397         fcntl-h: add O_TTY_INIT support
27398         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27399         * tests/test-fcntl-h.c (o): Test it.
27400         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27401
27402         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27403         * modules/fcntl: Move <fcntl.h> header replacement...
27404         * modules/fcntl-h: ...to new name, so as not to collide with
27405         like-named function.
27406         * tests/test-fcntl.c: Rename...
27407         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27408         * modules/fcntl-tests: Rename...
27409         * modules/fcntl-h-tests: ...to this.  Update test file name.
27410         * modules/chdir-long (Depends-on): Update clients.
27411         * modules/chdir-safer (Depends-on): Likewise.
27412         * modules/fcntl-safer (Depends-on): Likewise.
27413         * modules/fts (Depends-on): Likewise.
27414         * modules/mkancesdirs (Depends-on): Likewise.
27415         * modules/mkdir-p (Depends-on): Likewise.
27416         * modules/open (Depends-on): Likewise.
27417         * modules/savewd (Depends-on): Likewise.
27418         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27419         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27420
27421 2009-08-22  Bruno Haible  <bruno@clisp.org>
27422
27423         * modules/binary-io (License): Relicense under LGPL.
27424         * modules/pipe2 (License): Likewise.
27425
27426 2009-08-22  Bruno Haible  <bruno@clisp.org>
27427
27428         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27429         return value.
27430         * lib/pipe-filter-gi.c (filter_init): Likewise.
27431         Reported by Eric Blake.
27432
27433 2009-08-22  Bruno Haible  <bruno@clisp.org>
27434
27435         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27436         * modules/pipe (Depends-on): Add pipe2.
27437
27438 2009-08-22  Bruno Haible  <bruno@clisp.org>
27439
27440         Tests for module 'pipe2'.
27441         * modules/pipe2-tests: New file.
27442         * tests/test-pipe2.c: New file.
27443
27444         New module 'pipe2'.
27445         * lib/unistd.in.h (pipe2): New declaration.
27446         * lib/pipe2.c: New file.
27447         * m4/pipe2.m4: New file.
27448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27449         HAVE_PIPE2.
27450         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27451         * modules/pipe2: New file.
27452         * doc/glibc-functions/pipe2.texi: Mention the new module.
27453
27454 2009-08-22  Bruno Haible  <bruno@clisp.org>
27455
27456         Reference some new glibc functions.
27457         * doc/glibc-functions/accept4.texi: New file.
27458         * doc/glibc-functions/dup3.texi: New file.
27459         * doc/glibc-functions/mkostemp.texi: New file.
27460         * doc/glibc-functions/pipe2.texi: New file.
27461         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27462         (Glibc sys/socket.h): Refer to accept4.
27463         (Glibc unistd.h): Refer to dup3, pipe2.
27464         Reported by Eric Blake.
27465
27466 2009-08-22  Jim Meyering  <meyering@redhat.com>
27467             Bruno Haible  <bruno@clisp.org>
27468
27469         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27470         This makes it so packages using automake-1.11's silent-rules option
27471         can print e.g., a single "GEN    configmake.h" line, rather than
27472         the 30+ statements that perform the job.  If you want to see the
27473         actual commands, you can still run "make V=1".
27474         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27475         so that make output is abbreviated when those variables are defined
27476         appropriately.
27477         * modules/argz: Likewise.
27478         * modules/arpa_inet: Likewise.
27479         * modules/byteswap: Likewise.
27480         * modules/configmake: Likewise.
27481         * modules/dirent: Likewise.
27482         * modules/errno: Likewise.
27483         * modules/fcntl: Likewise.
27484         * modules/float: Likewise.
27485         * modules/fnmatch: Likewise.
27486         * modules/getopt-posix: Likewise.
27487         * modules/glob: Likewise.
27488         * modules/iconv_open: Likewise.
27489         * modules/inttypes: Likewise.
27490         * modules/localcharset: Likewise.
27491         * modules/locale: Likewise.
27492         * modules/math: Likewise.
27493         * modules/netdb: Likewise.
27494         * modules/netinet_in: Likewise.
27495         * modules/poll: Likewise.
27496         * modules/posix_spawnp-tests: Likewise.
27497         * modules/sched: Likewise.
27498         * modules/search: Likewise.
27499         * modules/selinux-h: Likewise.
27500         * modules/signal: Likewise.
27501         * modules/spawn: Likewise.
27502         * modules/stdarg: Likewise.
27503         * modules/stdbool: Likewise.
27504         * modules/stddef: Likewise.
27505         * modules/stdint: Likewise.
27506         * modules/stdio: Likewise.
27507         * modules/stdlib: Likewise.
27508         * modules/string: Likewise.
27509         * modules/strings: Likewise.
27510         * modules/sys_file: Likewise.
27511         * modules/sys_ioctl: Likewise.
27512         * modules/sys_select: Likewise.
27513         * modules/sys_socket: Likewise.
27514         * modules/sys_stat: Likewise.
27515         * modules/sys_time: Likewise.
27516         * modules/sys_times: Likewise.
27517         * modules/sys_utsname: Likewise.
27518         * modules/sys_wait: Likewise.
27519         * modules/sysexits: Likewise.
27520         * modules/time: Likewise.
27521         * modules/unistd: Likewise.
27522         * modules/wchar: Likewise.
27523         * modules/wctype: Likewise.
27524
27525 2009-08-22  Jim Meyering  <meyering@redhat.com>
27526
27527         announce-gen: detect write failure
27528         * build-aux/announce-gen: Add Coda at end.
27529         Remove equivalent-but-more-verbose block at top.
27530
27531 2009-08-19  Akim Demaille  <demaille@gostai.com>
27532
27533         bootstrap: --help to stdout.
27534         * bootstrap (usage): Don't send --help to stderr.
27535         Use a here doc instead of a long string.
27536
27537 2009-08-21  Eric Blake  <ebb9@byu.net>
27538
27539         test-popen-safer: split from test-popen
27540         * tests/test-popen.c (main): Move...
27541         * tests/test-popen.h: ...into new file.
27542         * tests/test-popen-safer2.c: New file.
27543         * modules/popen-tests (Files): Add test-popen.h.
27544         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27545         Suggested by Bruno Haible.
27546
27547         test-fcntl-safer: split from test-open
27548         * tests/test-open.c (main): Move...
27549         * tests/test-open.h: ...into new file.
27550         * tests/test-fcntl-safer.c: New file.
27551         * modules/open-tests (Files): Add test-open.h.
27552         * modules/fcntl-safer-tests: New file.
27553         Suggested by Bruno Haible.
27554
27555         test-fopen-safer: split from test-fopen
27556         * tests/test-fopen.c (main): Move...
27557         * tests/test-fopen.h: ...into new file.
27558         * tests/test-fopen-safer.c: New file.
27559         * modules/fopen-tests (Files): Add test-fopen.h.
27560         * modules/fopen-safer-tests: New file.
27561         Suggested by Bruno Haible.
27562
27563 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27564
27565         popen-safer: test O_CLOEXEC at run-time.
27566         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27567
27568 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27569
27570         fcntl: move more flags to the header
27571         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27572         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27573         * lib/fcntl.in.h: Do both things here.
27574
27575 2009-08-21  Jim Meyering  <meyering@redhat.com>
27576
27577         consistently remove $@-t before redirecting to it
27578         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27579         * modules/alloca-opt: Likewise.
27580         * modules/byteswap: Likewise.
27581         * modules/fnmatch: Likewise.
27582         * modules/getopt-posix: Likewise.
27583         * modules/glob: Likewise.
27584         * modules/poll: Likewise.
27585         * modules/posix_spawnp-tests: Likewise.
27586         * modules/sys_socket: Likewise.
27587         * modules/sysexits: Likewise.
27588
27589 2009-08-21  Eric Blake  <ebb9@byu.net>
27590
27591         popen: simplify access to original popen
27592         * lib/popen.c (rpl_popen): No need to worry about popen being a
27593         macro.
27594         Reported by Bruno Haible.
27595
27596 2009-08-20  Eric Blake  <ebb9@byu.net>
27597
27598         build: avoid some compiler warnings
27599         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27600         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27601         type.
27602         (new_exclude_segment, excluded_file_pattern_p)
27603         (excluded_file_name_p): Reduce scope.
27604         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27605         old-style declaration.
27606
27607 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27608
27609         * tests/test-exclude1.sh: Handle Windows EOL.
27610         * tests/test-exclude2.sh: Likewise.
27611         * tests/test-exclude3.sh: Likewise.
27612         * tests/test-exclude4.sh: Likewise.
27613         * tests/test-exclude5.sh: Likewise.
27614         * tests/test-exclude6.sh: Likewise.
27615         * tests/test-exclude7.sh: Likewise.
27616
27617 2009-08-19  Akim Demaille  <demaille@gostai.com>
27618
27619         bootstrap: find sha1sum when named gsha1sum.
27620         * bootstrap (find_tool): New.
27621         ($SHA1SUM): New.
27622         Use it.
27623
27624 2009-08-20  Jim Meyering  <meyering@redhat.com>
27625
27626         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27627         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27628         expression that converts "." in a file name to "\." in the resulting
27629         regexp.  Start with a dummy statement, so that prior shell variable
27630         definitions are expanded portably.  Reported by Simon Josefsson.
27631
27632 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27633
27634         Fix polling for writeability of a screen buffer.
27635         * lib/poll.c: Distinguish input and screen buffers for the
27636         Win32 implementation.
27637         * lib/select.c: Likewise.
27638
27639 2009-08-19  Eric Blake  <ebb9@byu.net>
27640
27641         popen-safer: prevent popen from clobbering std descriptors
27642         * modules/popen-safer: New file.
27643         * lib/popen-safer.c: Likewise.
27644         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27645         * lib/stdio--.h (popen): Provide override.
27646         * lib/stdio-safer.h (popen_safer): Provide declaration.
27647         * tests/test-popen.c (includes): Partially test this.
27648         * modules/popen-safer-tests: New file, for more tests.
27649         * tests/test-popen-safer.c: Likewise.
27650         * MODULES.html.sh (file stream based Input/Output): Mention it.
27651
27652         tests: test some of the *-safer modules
27653         * modules/fopen-safer (Depends-on): Add fopen.
27654         * modules/fcntl-safer (Depends-on): Add fcntl.
27655         * modules/stdlib-safer (Depends-on): Add stdlib.
27656         (configure.ac): Set indicator.
27657         * modules/unistd-safer (configure.ac): Likewise.
27658         * modules/tmpfile-safer (configure.ac): Likewise.
27659         (Depends-on): Add tmpfile.
27660         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27661         active.
27662         * tests/test-fopen.c (includes): Test safer versions when they are
27663         in use.
27664         * tests/test-open.c (includes): Likewise.
27665
27666         popen: fix cygwin 1.5 bug when stdin closed
27667         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27668         * modules/popen: New file.
27669         * modules/popen-tests: Likewise.
27670         * tests/test-popen.c: Likewise.
27671         * m4/popen.m4: Likewise.
27672         * lib/popen.c: Likewise.
27673         * lib/stdio.in.h (popen): New declaration.
27674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27675         * modules/stdio (Makefile.am): Likewise.
27676         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27677
27678 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27679
27680         maint.mk: give full control over update-copyright exclusions
27681         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27682         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27683         (update-copyright): Don't force inclusion of top-level
27684         ChangeLog.  Don't force exclusion of all COPYING files, but make
27685         them the default exclusion instead.
27686
27687 2009-08-16  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix test failures on Solaris 10.
27690         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27691         tests when Solaris iconv() is used.
27692         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27693         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27694         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27695         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27696         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27697
27698 2009-08-16  Bruno Haible  <bruno@clisp.org>
27699
27700         Fix test failures on Solaris 10.
27701         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27702         'tr' program and pass it as first argument.
27703         * tests/test-pipe-filter-gi1.sh: Likewise.
27704         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27705         program as first argument.
27706         * tests/test-pipe-filter-gi1.c (main): Likewise.
27707
27708 2009-08-16  Eric Blake  <ebb9@byu.net>
27709
27710         fpurge: fix previous commits
27711         * modules/fpurge (Makefile.am): Make replacement conditional,
27712         partially reverting 2007-04-29 change; missed in previous
27713         attempt.
27714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27715         is missing.
27716
27717 2009-08-16  Bruno Haible  <bruno@clisp.org>
27718
27719         Clarify fpurge's effect on the file position.
27720         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27721         * tests/test-fpurge.c (main): Make a second pass for checking the file
27722         position.
27723
27724 2009-08-16  Bruno Haible  <bruno@clisp.org>
27725
27726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27727         declaration of fpurge is missing.
27728         * tests/test-fpurge.c (main): Check that the file has not more contents
27729         than expected. Close the file before removing it.
27730
27731 2009-08-15  Eric Blake  <ebb9@byu.net>
27732
27733         fpurge: don't wrap working cygwin implementation
27734         * lib/fpurge.c (fpurge): Fix comment typo.
27735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27736         1.7 to avoid replacement.
27737         * tests/test-fpurge.c (main): Enhance test.
27738
27739 2009-08-15  Eric Blake  <ebb9@byu.net>
27740         and Jim Meyering  <meyering@redhat.com>
27741
27742         test-update-copyright: skip if perl is insufficient
27743         * tests/test-update-copyright.sh: Failure to run maintainer tool
27744         should not cause testsuite failure on cygwin 1.5.
27745
27746 2009-08-14  Eric Blake  <ebb9@byu.net>
27747
27748         doc: mention more functions added in cygwin 1.7.0
27749         * doc/posix-headers/limits.texi (limits.h): Update for recent
27750         cygwin additions.
27751         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27752         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27753         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27754         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27755         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27756
27757 2009-08-14  Eric Blake  <ebb9@byu.net>
27758
27759         maint.mk: simplify update-copyright rule
27760         * top/maint.mk (update-copyright-local): Delete, and document how
27761         to do it in cfg.mk instead.
27762         (update-copyright-exclude-regexp): Delete, and document how to do
27763         it in .x-update-copyright instead.
27764         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27765         exclude ChangeLog.
27766
27767 2009-08-14  Bruno Haible  <bruno@clisp.org>
27768
27769         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27770
27771 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27772
27773         maint.mk: support update-copyright-env
27774         * top/maint.mk (update-copyright-env): Define place-holder.
27775         (update-copyright): Expand $(update-copyright-env) before
27776         invoking update-copyright.
27777
27778 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27779
27780         update-copyright: implement forced reformatting
27781         * build-aux/update-copyright: Implement and document
27782         UPDATE_COPYRIGHT_FORCE.
27783         * tests/test-update-copyright.sh: Test it.
27784
27785 2009-08-14  Eric Blake  <ebb9@byu.net>
27786         and Bruno Haible  <bruno@clisp.org>
27787
27788         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27789         * tests/test-locale.c: Revert previous patch related to NULL.
27790         * tests/test-stdio.c: Likewise.
27791         * tests/test-stdlib.c: Likewise.
27792         * tests/test-string.c: Likewise.
27793         * tests/test-unistd.c: Likewise.
27794         * modules/time-tests (Depends-on): Add verify.
27795         * modules/wchar-tests (Depends-on): Likewise.
27796         * tests/test-time.c: Test for NULL compliance.
27797         * tests/test-wchar.c: Likewise.
27798         * modules/locale (Depends-on): Add stddef.
27799         * modules/stdio (Depends-on): Likewise.
27800         * modules/stdlib (Depends-on): Likewise.
27801         * modules/string (Depends-on): Likewise.
27802         * modules/time (Depends-on): Likewise.
27803         * modules/unistd (Depends-on): Likewise.
27804         * modules/wchar (Depends-on): Likewise.
27805         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27806         * lib/stdlib.in.h (includes): Likewise.
27807         * lib/string.in.h (includes): Likewise.
27808         * lib/time.in.h (includes): Likewise.
27809         * lib/unistd.in.h (includes): Likewise.
27810         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27811         replaced.
27812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27813         * m4/stddef_h.m4: New file.
27814         * modules/stddef: Likewise.
27815         * lib/stddef.in.h: Likewise.
27816         * modules/stddef-tests: Likewise.
27817         * tests/test-stddef.c: Likewise.
27818         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27819         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27820         * doc/posix-headers/locale.texi (locale.h): Likewise.
27821         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27822         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27823         * doc/posix-headers/string.texi (string.h): Likewise.
27824         * doc/posix-headers/time.texi (time.h): Likewise.
27825         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27826         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27827
27828 2009-08-14  Eric Blake  <ebb9@byu.net>
27829
27830         doc: improve git diff of texinfo files
27831         * .gitattributes: Add rule for *.texi files, with hint on how to
27832         use it.
27833         Copied from m4, and based on a report by Bruno Haible.
27834
27835 2009-08-14  Bruno Haible  <bruno@clisp.org>
27836
27837         Disable multithread support by default on Cygwin 1.5.x for real.
27838         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27839
27840 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27841
27842         update-copyright: much ado about intervals
27843         * build-aux/update-copyright: Implement and document
27844         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27845         of copyright year intervals.
27846         Also, document UPDATE_COPYRIGHT_YEAR.
27847         * tests/test-update-copyright.sh: Test it.
27848
27849         update-copyright: convert 2-digit to 4-digit years
27850         * build-aux/update-copyright: Implement and document.
27851         * tests/test-update-copyright.sh: Update.
27852
27853 2009-08-14  Jim Meyering  <meyering@redhat.com>
27854
27855         test-exclude: avoid coreutils "make check" failure
27856         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27857         just as in test-argmatch.c.
27858
27859 2009-08-13  Eric Blake  <ebb9@byu.net>
27860
27861         test-dup2: fix bad assumption
27862         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27863         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27864
27865         test-version-etc: fix CRLF portability issue
27866         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27867         recognize \r.
27868         * tests/test-argp-version-etc-1.sh: Likewise.
27869
27870         getopt: update client modules
27871         * modules/argp (Depends-on): Use getopt-gnu.
27872         * modules/git-merge-changelog (Depends-on): Likewise.
27873         * modules/long-options (Depends-on): Likewise.
27874         * modules/xstrtol (Depends-on): Likewise.
27875
27876 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27877
27878         * tests/test-version-etc.sh: Don't fail on different
27879         project/version.  Don't fail on CRLF differences.  Rewrite to use
27880         multiple -e instead of multiple sed forks, suggested by Eric Blake
27881         <ebb9@byu.net>.
27882         * tests/test-argp-version-etc-1.sh: Likewise.
27883
27884 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27885
27886         * tests/test-version-etc.sh: Don't fail on different
27887         project/version.
27888
27889 2009-08-12  Bruno Haible  <bruno@clisp.org>
27890
27891         Tests for modules 'getopt-posix', 'getopt-gnu'.
27892         * modules/getopt-posix-tests: New file.
27893         * tests/test-getopt.c: New file.
27894         * tests/test-getopt.h: New file.
27895         * tests/test-getopt_long.h: New file.
27896
27897         New modules 'getopt-posix', 'getopt-gnu'.
27898         * modules/getopt-gnu: New file, renamed from modules/getopt.
27899         * modules/getopt-posix: New file.
27900         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27901         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27902         (gl_GETOPT): Remove macro.
27903         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27904         Disable the test against BSD systems that declare optreset. Test
27905         against mingw bug. Test against lack of support of optional arguments
27906         on many platforms.
27907         * doc/glibc-headers/getopt.texi: Update module name and list of
27908         relevant platforms.
27909         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27910         'getopt-gnu' and more portability problems.
27911         * NEWS: Mention the changes.
27912
27913 2009-08-12  Bruno Haible  <bruno@clisp.org>
27914
27915         Ensure that optarg etc. get declared by <unistd.h>.
27916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27917         AC_USE_SYSTEM_EXTENSIONS.
27918         * modules/getopt (Depends-on): Add 'extensions'.
27919
27920 2009-08-12  Bruno Haible  <bruno@clisp.org>
27921
27922         Avoid test link errors.
27923         * modules/pipe-filter-ii-tests (Makefile.am): Define
27924         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27925         * modules/pipe-filter-gi-tests (Makefile.am): Define
27926         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27928
27929 2009-08-12  Bruno Haible  <bruno@clisp.org>
27930
27931         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27932         gl_GETOPT_SUBSTITUTE before.
27933         (gl_GETOPT): Use it.
27934         * m4/argp.m4 (gl_ARGP): Update.
27935         Reported by Sergey Poznyakoff.
27936
27937         * m4/getopt.m4: Reorder macros.
27938         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27939         (gl_GETOPT_SUBSTITUTE): Remove macro.
27940
27941 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27942
27943         Minor improvement in gitlog-to-changelog
27944
27945         * build-aux/gitlog-to-changelog: New option `--format' makes
27946         output format string configurable.
27947
27948 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27949
27950         Optimize exclude: use hash tables for non-wildcard patterns.
27951
27952         * lib/exclude.c: Include hash.h and mbuiter.h
27953         (struct exclude_pattern, exclude_segment): New data types.
27954         (struct exclude): Rewrite.
27955         (fnmatch_pattern_has_wildcards): New function.
27956         (new_exclude_segment, free_exclude_segment): New functions.
27957         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27958         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27959         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27960         * modules/exclude: Depend on hash and mbuiter.
27961
27962         * modules/exclude-tests: New file.
27963         * tests/test-exclude.c: New file.
27964         * tests/test-exclude1.sh: New file.
27965         * tests/test-exclude2.sh: New file.
27966         * tests/test-exclude3.sh: New file.
27967         * tests/test-exclude4.sh: New file.
27968         * tests/test-exclude5.sh: New file.
27969         * tests/test-exclude6.sh: New file.
27970         * tests/test-exclude7.sh: New file.
27971
27972 2009-08-12  Bruno Haible  <bruno@clisp.org>
27973
27974         Ensure that getopt() gets declared by <unistd.h>.
27975         * lib/unistd.in.h: Conditionally include getopt.h.
27976         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27977         Set GNULIB_UNISTD_H_GETOPT.
27978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27979         GNULIB_UNISTD_H_GETOPT.
27980         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27981
27982 2009-08-12  Bruno Haible  <bruno@clisp.org>
27983
27984         Clarify logic.
27985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27986         gl_replace_getopt instead of GETOPT_H.
27987
27988 2009-08-12  Bruno Haible  <bruno@clisp.org>
27989
27990         * m4/getopt.m4: Add comments.
27991
27992 2009-08-12  Bruno Haible  <bruno@clisp.org>
27993
27994         Disable multithread support by default on Cygwin 1.5.x.
27995         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27996         set gl_use_threads=no if not specified otherwise.
27997
27998 2009-08-11  Bruno Haible  <bruno@clisp.org>
27999
28000         Avoid compilation error on NetBSD 5.0.
28001         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28002         * tests/test-stdio.c: Likewise.
28003         * tests/test-stdlib.c: Likewise.
28004         * tests/test-string.c: Likewise.
28005         * tests/test-unistd.c: Likewise.
28006         Reported by Greg Troxel <gdt@ir.bbn.com>
28007         at <https://savannah.gnu.org/support/?106973>.
28008
28009 2009-08-11  Bruno Haible  <bruno@clisp.org>
28010
28011         * modules/dup2-tests (Depends-on): Remove close.
28012
28013         Undo 2009-07-19 commit.
28014         * modules/acl-tests (Depends-on): Remove close.
28015         * modules/binary-io-tests (Depends-on): Likewise.
28016         * modules/closein-tests (Depends-on): Likewise.
28017         * modules/flock-tests (Depends-on): Likewise.
28018         * modules/fsync-tests (Depends-on): Likewise.
28019         * modules/lseek-tests (Depends-on): Likewise.
28020         * modules/pipe-tests (Depends-on): Likewise.
28021         * modules/posix_spawn-tests (Depends-on): Likewise.
28022         * modules/posix_spawnp-tests (Depends-on): Likewise.
28023         * modules/stat-time-tests (Depends-on): Likewise.
28024         * modules/yesno-tests (Depends-on): Likewise.
28025
28026 2009-08-10  Bruno Haible  <bruno@clisp.org>
28027
28028         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28029
28030 2009-08-10  Bruno Haible  <bruno@clisp.org>
28031
28032         Fix a gcc warning.
28033         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28034
28035 2009-08-10  Bruno Haible  <bruno@clisp.org>
28036
28037         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28038         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28039         not only the first time.
28040         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28041         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28042         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28043         is 1, not only the the first time.
28044
28045 2009-08-10  Bruno Haible  <bruno@clisp.org>
28046
28047         Make it possible to use module 'gethostname' without module 'close'.
28048         * lib/unistd.in.h (close): Evoke a link error only if
28049         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28051         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28052         * modules/unistd (Makefile.am): Substitute
28053         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28054         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28055         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28057         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28058         * modules/sys_ioctl (Makefile.am): Substitute
28059         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28060         * modules/socket (configure.ac): On native Windows, set
28061         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28062         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28063         Reported by Sam Steingold <sds@gnu.org>.
28064
28065 2009-08-10  Bruno Haible  <bruno@clisp.org>
28066
28067         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28068         * modules/ioctl (configure.ac): Likewise.
28069
28070 2009-08-10  Bruno Haible  <bruno@clisp.org>
28071
28072         Avoid collision between gnulib wrapper and libintl wrapper.
28073         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28074         already defined in intl/printf.c.
28075         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28076         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28077
28078 2009-08-09  Bruno Haible  <bruno@clisp.org>
28079
28080         Make <sys/select.h> really self-contained, also on Solaris 10.
28081         * lib/sys_select.in.h: Include <string.h>.
28082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28083         Solaris 10 problem.
28084         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28085         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28086         Reported by Jim Meyering.
28087
28088 2009-08-09  Bruno Haible  <bruno@clisp.org>
28089
28090         Avoid warnings from 'aclocal' that are due to a use of macro name
28091         AM_XGETTEXT_OPTION that is not defined in automake.
28092         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28093         automake.
28094         * modules/error (configure.ac): Likewise.
28095         * modules/propername (configure.ac): Likewise.
28096         * modules/vasprintf (configure.ac): Likewise.
28097         * modules/verror (configure.ac): Likewise.
28098         * modules/xprintf (configure.ac): Likewise.
28099         * modules/xvasprintf (configure.ac): Likewise.
28100
28101 2009-08-08  Bruno Haible  <bruno@clisp.org>
28102
28103         Avoid compilation error in C++ mode.
28104         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28105         Reported by Sam Steingold <sds@gnu.org>.
28106
28107 2009-08-08  Bruno Haible  <bruno@clisp.org>
28108
28109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28110         for the various Unix platforms.
28111         * doc/posix-headers/limits.texi: Update platforms list regarding
28112         HOST_NAME_MAX.
28113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28114
28115 2009-08-07  Jim Meyering  <meyering@redhat.com>
28116
28117         selinux-at: fix typo in a comment
28118         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28119         Spotted by Paolo Bonzini.
28120
28121         selinux-at: remove redundant m4 code, add documentation
28122         * modules/selinux-at (configure.ac): Remove redundant code.
28123         LIB_SELINUX is already set via the dependent module, selinux-h.
28124         (Include): Add quotes around selinux-at.h.
28125         * lib/selinux-at.h: Add documentation.
28126         Reported by Bruno Haible in
28127         http://marc.info/?l=gnulib-bug&m=124958988300749
28128
28129 2009-08-07  Bruno Haible  <bruno@clisp.org>
28130
28131         Avoid link error on MacOS X 10.3 and 10.4.
28132         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28133         on non-ELF systems.
28134         * lib/argp-pv.c (argp_program_version): Likewise.
28135         Reported by Simon Josefsson.
28136
28137 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28138
28139         * tests/test-version-etc.sh: Use $EXEEXT.
28140
28141 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28142
28143         update-copyright: update documentation to point to maint.mk
28144         * build-aux/update-copyright: Here.
28145
28146 2009-08-06  Jim Meyering  <meyering@redhat.com>
28147
28148         maint.mk: support update-copyright-local
28149         * top/maint.mk (update-copyright-local): Define place-holder.
28150         (update-copyright): Depend on $(update-copyright-local).
28151
28152 2009-08-06  Jim Meyering  <meyering@redhat.com>
28153
28154         selinux-at: new module
28155         Initially written for coreutils, this module will soon be
28156         used by findutils, too.
28157         * MODULES.html.sh [Misc]: Add selinux-at.
28158         * lib/selinux-at.h: New file, from coreutils.
28159         * lib/selinux-at.c: Likewise.
28160         * modules/selinux-at: Likewise.
28161         (License): Change from LGPL to GPL, since it depends
28162         on the GPL'd openat module.
28163
28164         doc: update README
28165         * README: Remove references to cogito.
28166         Remove cvs-repo-updating instructions from 2007.
28167         Don't imply that CVS is better if you have limited disk space.
28168
28169 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28170
28171         update-copyright: support C-style comments
28172         * build-aux/update-copyright: Implement and document.
28173         * tests/test-update-copyright.sh: Test.
28174
28175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28176
28177         update-copyright: support omitted "(C)"
28178         * build-aux/update-copyright: Implement and document.  Also,
28179         allow variable whitespace before "(C)".
28180         * tests/test-update-copyright.sh: Test.
28181
28182 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28183
28184         update-copyright: don't trip on non-FSF copyright statements
28185         * build-aux/update-copyright: Fix so that the first correctly
28186         formatted FSF copyright statement is recognized no matter what
28187         appears before it.  Update documentation.
28188         * tests/test-update-copyright.sh: Test that.
28189
28190 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28191
28192         update-copyright: clean up code a little
28193         * build-aux/update-copyright: Append "_re" to the name of any
28194         variable holding a regular expression.
28195         Replace "old" and "new" with "stmt" in variable names.
28196         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28197         handled correctly.
28198         Format code more consistently.
28199
28200 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28201
28202         update-copyright-tests: improve portability
28203         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28204         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28205
28206 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28207
28208         update-copyright: support @copyright{} and &copy;
28209         * build-aux/update-copyright: Implement and document.
28210         * tests/test-update-copyright.sh: Test.
28211
28212 2009-08-04  Jim Meyering  <meyering@redhat.com>
28213
28214         update-copyright-tests: correctly test EOL=\r\n handling
28215         * tests/test-update-copyright.sh: Put \r at the end of some lines
28216         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28217
28218         maint.mk: make update-copyright exclusion list more configurable
28219         * top/maint.mk (update-copyright): Default to excluding COPYING,
28220         but allow an override, in case someone does want to update that file.
28221
28222         maint.mk: don't update copyright date in COPYING
28223         * top/maint.mk (update-copyright): Exclude COPYING.
28224
28225         maint.mk: add a copyright-updating rule
28226         * top/maint.mk (update-copyright): New rule.
28227         Derived from coreutils/Makefile.am.
28228
28229         update-copyright: rename some variables
28230         * build-aux/update-copyright: Rename a few variables for clarity.
28231         Tweak syntax.  List Joel E. Denny as coauthor.
28232
28233 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28234
28235         update-copyright: fix bug for 2-digit last year and add tests
28236         * build-aux/update-copyright: Fix bug.
28237         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28238         specified.
28239         * modules/update-copyright-tests: New
28240         * tests/test-update-copyright.sh: New.
28241
28242 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28243
28244         update-copyright: handle leading tabs in line prefix
28245         * build-aux/update-copyright: Count leading tabs as 8 spaces
28246         when computing margin.  This helps with the formatting of
28247         ChangeLogs, for example.
28248         Fix documentation a little.
28249
28250 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28251
28252         update-copyright: support EOL=\r\n
28253         * build-aux/update-copyright: Implement that.
28254
28255 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28256
28257         update-copyright: automatically format copyright statements
28258         * build-aux/update-copyright: Implement that.
28259         Also, be a little more predictable and safer by always failing
28260         when the full copyright format is not perfectly recognized as an
28261         unbroken whole.  Discussed at
28262         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28263         Rewrite documentation.
28264
28265 2009-08-03  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28268
28269 2009-08-02  Bruno Haible  <bruno@clisp.org>
28270
28271         Tests for module 'uname'.
28272         * modules/uname-tests: New file.
28273         * tests/test-uname.c: New file.
28274
28275         New module 'uname'.
28276         * lib/uname.c: New file.
28277         * m4/uname.m4: New file.
28278         * modules/uname: New file.
28279         * doc/posix-functions/uname.texi: Mention the new module.
28280
28281 2009-08-02  Bruno Haible  <bruno@clisp.org>
28282
28283         Tests for module 'sys_utsname'.
28284         * modules/sys_utsname-tests: New file.
28285         * tests/test-sys_utsname.c: New file.
28286
28287         New module 'sys_utsname'.
28288         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28289         * m4/sys_utsname_h.m4: New file.
28290         * modules/sys_utsname: New file.
28291         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28292
28293 2009-08-02  Bruno Haible  <bruno@clisp.org>
28294
28295         Implicitly initialize the sockets library.
28296         * lib/gethostname.c: Include sockets.h.
28297         (rpl_gethostname): Invoke gl_sockets_startup.
28298         * lib/socket.c: Include sockets.h.
28299         (rpl_socket): Invoke gl_sockets_startup.
28300         * modules/gethostname (Depends-on): Add sockets.
28301         * modules/socket (Depends-on): Likewise.
28302         * tests/test-poll.c: Don't include sockets.h.
28303         (main): Don't invoke gl_sockets_startup.
28304         * tests/test-select.c: Don't include sockets.h.
28305         (main): Don't invoke gl_sockets_startup.
28306
28307 2009-08-02  Bruno Haible  <bruno@clisp.org>
28308
28309         Allow multiple calls to gl_sockets_startup.
28310         * lib/sockets.c (initialized_sockets_version): New variable.
28311         (gl_sockets_startup): Do nothing if already called for this or a higher
28312         version.
28313         (gl_sockets_cleanup): Reset initialized_sockets_version.
28314
28315 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28316
28317         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28318         different project/version.
28319
28320 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28321             Bruno Haible  <bruno@clisp.org>
28322
28323         Tests for module 'pipe-filter-gi'.
28324         * modules/pipe-filter-gi-tests: New file.
28325         * tests/test-pipe-filter-gi1.sh: New file.
28326         * tests/test-pipe-filter-gi1.c: New file.
28327         * tests/test-pipe-filter-gi2.sh: New file.
28328         * tests/test-pipe-filter-gi2-main.c: New file.
28329         * tests/test-pipe-filter-gi2-child.c: New file.
28330
28331         New module 'pipe-filter-gi'.
28332         * lib/pipe-filter-gi.c: New file.
28333         * modules/pipe-filter-gi: New file.
28334
28335 2009-08-02  Bruno Haible  <bruno@clisp.org>
28336             Paolo Bonzini  <bonzini@gnu.org>
28337
28338         Tests for module 'pipe-filter-ii'.
28339         * modules/pipe-filter-ii-tests: New file.
28340         * tests/test-pipe-filter-ii1.sh: New file.
28341         * tests/test-pipe-filter-ii1.c: New file.
28342         * tests/test-pipe-filter-ii2.sh: New file.
28343         * tests/test-pipe-filter-ii2-main.c: New file.
28344         * tests/test-pipe-filter-ii2-child.c: New file.
28345
28346         New module 'pipe-filter-ii'.
28347         * lib/pipe-filter.h: New file.
28348         * lib/pipe-filter-ii.c: New file.
28349         * lib/pipe-filter-aux.h: New file.
28350         * modules/pipe-filter-ii: New file.
28351
28352 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28353
28354         * lib/gc-libgcrypt.c: Change copyright to FSF.
28355         * lib/gc-gnulib.c: Likewise.
28356
28357 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28358
28359         * lib/gethostname.c: Include limits.h.
28360
28361 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28362             Bruno Haible  <bruno@clisp.org>
28363
28364         Ensure HOST_NAME_MAX as part of the gethostname module.
28365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28366         define also HOST_NAME_MAX.
28367         * tests/test-gethostname.c: Include <limits.h>.
28368         (main): Check also HOST_NAME_MAX.
28369         * doc/posix-headers/limits.texi: Document the mingw problem.
28370
28371 2009-08-02  Bruno Haible  <bruno@clisp.org>
28372
28373         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28374         Add comments.
28375
28376 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28377
28378         * lib/gethostname.c: Add Windows wrapper.
28379         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28380         * modules/gethostname: Depend on sys_socket & errno, for also
28381         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28382         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28383
28384 2009-07-31  Jim Meyering  <meyering@redhat.com>
28385
28386         getloadavg: fix symbol name in comment
28387         * lib/getloadavg.c: Correct a typo I introduced when adding
28388         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28389         Matt Kraai spotted the problem.
28390
28391 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28392
28393         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28394         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28395         code also if ! defined N_NAME_POINTER.
28396         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28397         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28398         but the n_name member is a 12-byte array.
28399
28400 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28401
28402         update-copyright: generalize comment handling
28403         * build-aux/update-copyright: Handle copyright statements
28404         within more comment styles.
28405         Document usage.
28406         Report any file with an external copyright holder or parse failure.
28407
28408 2009-07-29  Jim Meyering  <meyering@redhat.com>
28409
28410         mktime: correct setting of REPLACE_MKTIME
28411         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28412
28413         update-copyright: new module
28414         * modules/update-copyright: New file.
28415         * build-aux/update-copyright: New file.
28416         * MODULES.html.sh (maint+release support): Add update-copyright.
28417
28418 2009-07-27  Bruno Haible  <bruno@clisp.org>
28419
28420         Fix compilation error when <ctime> is used and mktime is replaced.
28421         * lib/time.in.h (mktime): New declaration.
28422         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28423         REPLACE_MKTIME instead of defining mktime in config.h.
28424         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28425         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28426         Reported by Ross McFarland <rwmcfa1@neces.com>.
28427
28428 2009-07-27  Bruno Haible  <bruno@clisp.org>
28429
28430         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28431         Reported by Matt Kraai <mkraai@beckman.com>.
28432
28433 2009-07-25  Jim Meyering  <meyering@redhat.com>
28434
28435         maint.mk: avoid warnings about missing files
28436         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28437         diagnostic when .prev-version does not exist.
28438         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28439         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28440         nonexistent cfg.mk.
28441         Suggestions from Simon Josefsson.
28442
28443 2009-07-25  Bruno Haible  <bruno@clisp.org>
28444
28445         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28446         defined as macros. Needed on QNX 6.4.1.
28447         Reported by Matt Kraai <mkraai@beckman.com>.
28448
28449 2009-07-23  Jim Meyering  <meyering@redhat.com>
28450
28451         maint.mk: invoke "make dist" with a working value of XZ_OPT
28452         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28453
28454 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28455
28456         Make fseeko.c compile on QNX.
28457         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28458
28459 2009-07-22  Peter Simons  <simons@cryp.to>
28460
28461         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28462         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28463         * lib/md4.h: Likewise.
28464         * lib/md5.h: Likewise.
28465         * lib/sha1.h: Likewise.
28466         * lib/sha256.h: Likewise.
28467         * lib/sha512.h: Likewise.
28468
28469         tests-sha1: don't assign literal string to 'char *' variable
28470         * tests/test-sha1.c (main): Declare locals with "const" to match
28471         attributes of the right hand side.
28472
28473 2009-07-21  Eric Blake  <ebb9@byu.net>
28474
28475         dup2: fix more mingw problems
28476         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28477         fd to itself.
28478         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28479         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28480         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28481         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28482         care of mingw bugs.
28483
28484 2009-07-21  Jim Meyering  <meyering@redhat.com>
28485
28486         vc-list-files: avoid failure when /bin/sh is dash
28487         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28488         On some Debian based systems, /bin/sh is a symlink to dash, and running
28489         this command would omit the "/" following each 'tests' prefix:
28490           dash -x build-aux/vc-list-files -C . tests
28491         That is because bash and dash work differently:
28492           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28493           bash ok
28494           dash odd
28495
28496 2009-07-21  Eric Blake  <ebb9@byu.net>
28497
28498         dup2-tests: test previous patch
28499         * modules/dup2-tests: New file.
28500         * tests/test-dup2.c: Likewise.
28501         * tests/test-open.c (main): Avoid unspecified behavior.
28502         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28503         test.
28504
28505         dup2: work around mingw and cygwin 1.5 bug
28506         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28508         * modules/unistd (Makefile.am): Substitute it.
28509         * lib/unistd.in.h (dup2): Declare the replacement.
28510         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28511         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28512         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28513         * modules/execute (Depends-on): Add dup2.
28514         * modules/fseterr (Depends-on): Likewise.
28515         * modules/pipe (Depends-on): Likewise.
28516         * modules/posix_spawn-internal (Depends-on): Likewise.
28517
28518 2009-07-21  Bruno Haible  <bruno@clisp.org>
28519
28520         * modules/.gitattributes: New file.
28521
28522 2009-07-20  Bruno Haible  <bruno@clisp.org>
28523
28524         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28525         (main): Use it.
28526
28527 2009-07-20  Eric Blake  <ebb9@byu.net>
28528
28529         test-pipe: make a bit more robust.
28530         * tests/test-pipe.c (myerr): Allow error messages regardless of
28531         what we do to stderr.
28532         (test_pipe): Rearrange to avoid deadlock.
28533         (child_main): Try a larger read, to ensure we avoided deadlock.
28534         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28535         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28536         if misused.
28537
28538 2009-07-19  Jim Meyering  <meyering@redhat.com>
28539
28540         fts: avoid false-positive cycle-detection
28541         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28542         for each new command line argument.
28543
28544 2009-07-19  Bruno Haible  <bruno@clisp.org>
28545
28546         Fix build error on mingw with the modules sys_select and unistd.
28547         * modules/acl-tests (Depends-on): Add close.
28548         * modules/binary-io-tests (Depends-on): Likewise.
28549         * modules/closein-tests (Depends-on): Likewise.
28550         * modules/flock-tests (Depends-on): Likewise.
28551         * modules/fsync-tests (Depends-on): Likewise.
28552         * modules/lseek-tests (Depends-on): Likewise.
28553         * modules/pipe-tests (Depends-on): Likewise.
28554         * modules/posix_spawn-tests (Depends-on): Likewise.
28555         * modules/posix_spawnp-tests (Depends-on): Likewise.
28556         * modules/stat-time-tests (Depends-on): Likewise.
28557         * modules/yesno-tests (Depends-on): Likewise.
28558
28559 2009-07-19  Bruno Haible  <bruno@clisp.org>
28560
28561         Unify conditionals.
28562         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28563         macros, not at the compiler macros.
28564         * lib/pipe.c: Likewise.
28565         * lib/execute.c: Likewise.
28566         * lib/spawni.c: Likewise.
28567
28568 2009-07-19  Bruno Haible  <bruno@clisp.org>
28569
28570         Fix handling of closed stdin/stdout/stderr on mingw.
28571         * lib/w32spawn.h: Include unistd.h.
28572         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28573         file descriptor with O_NOINHERIT flag.
28574         (fd_safer_noinherit): New function, based on fd-safer.c.
28575         (dup_safer_noinherit): New function, based on dup-safer.c.
28576         (undup_safer_noinherit): New function.
28577         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28578         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28579         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28580         instead of fd_safer.
28581         * tests/test-pipe.c: Include <windows.h>.
28582         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28583         result.
28584
28585         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28586         from main.
28587         (test_pipe): Pass an extra argument for disambiguation.
28588         (main): Invoke parent_main or child_main.
28589
28590         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28591         consistently.
28592
28593 2009-07-18  Eric Blake  <ebb9@byu.net>
28594
28595         test-pipe: fix mingw build
28596         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28597
28598 2009-07-18  Bruno Haible  <bruno@clisp.org>
28599
28600         * modules/pipe-tests (Makefile.am): Fix typo.
28601
28602 2009-07-18  Eric Blake  <ebb9@byu.net>
28603
28604         error: fix mingw build
28605         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28606         Reported by Bruno Haible.
28607
28608         error: avoid undefined use of stdout
28609         * lib/error.c (error, error_at_line): Check that fd 1 is open
28610         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28611         is handling faults and the close_stdout module wants to report the
28612         detection of closed stdout as an error.
28613
28614 2009-07-17  Eric Blake  <ebb9@byu.net>
28615
28616         pipe: be robust in face of closed fds
28617         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28618         should cause child to misbehave.
28619         * modules/pipe-tests: New module.
28620         * tests/test-pipe.c: New file.
28621         * tests/test-pipe.sh: New file.
28622         Reported by Akim Demaille.
28623
28624 2009-07-14  Bruno Haible  <bruno@clisp.org>
28625
28626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28627         Reported by anonymous kc.
28628
28629 2009-07-07  Jim Meyering  <meyering@redhat.com>
28630
28631         maint.mk: don't look for translatable strings in *.m4 or *.mk
28632         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28633         when searching for translatable strings.
28634
28635 2009-07-05  Jim Meyering  <meyering@redhat.com>
28636
28637         remove superfluous parentheses in STREQ definition
28638         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28639         * lib/getugroups.c (STREQ): Likewise.
28640         * lib/fnmatch.c (STREQ): Likewise.
28641         Spotted by Bruno Haible.
28642
28643 2009-07-04  Jim Meyering  <meyering@redhat.com>
28644
28645         argv-iter: new module
28646         * MODULES.html.sh: Add argv-iter.
28647         * lib/argv-iter.c, lib/argv-iter.h: New files.
28648         * modules/argv-iter: New file.
28649         * modules/argv-iter-tests: New file.
28650         * tests/test-argv-iter.c: Test it.
28651
28652 2009-07-04  Bruno Haible  <bruno@clisp.org>
28653
28654         Fix assertion.
28655         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28656         contains more exact copies of a given entry than file2, leave the extra
28657         copies unpaired rather than aborting.
28658         Reported by Eric Blake.
28659
28660 2009-07-02  Bruno Haible  <bruno@clisp.org>
28661
28662         Speedup git-merge-changelog for git cherry-pick.
28663         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28664         (entries_mapping_get): New function, extracted from compute_mapping.
28665         (entries_mapping_reverse_get): New function.
28666         (compute_mapping): Add a 'full' argument. Return the result in a
28667         'struct entries_mapping'.
28668         (main): Update. Access the mappings through entries_mapping_get.
28669         Reported by Eric Blake.
28670
28671 2009-07-02  Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28674         best_i.
28675
28676 2009-07-02  Bruno Haible  <bruno@clisp.org>
28677
28678         Speed up approximate search for matching ChangeLog entries.
28679         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28680         argument. Call fstrcmp_bounded instead of fstrcmp.
28681         (compute_mapping, try_split_merged_entry, main): Update callers.
28682
28683 2009-07-02  Bruno Haible  <bruno@clisp.org>
28684
28685         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28686
28687 2009-06-30  Bruno Haible  <bruno@clisp.org>
28688
28689         Reduce the number of uc_is_cased calls.
28690         * lib/unicase.h (casing_suffix_context_t): Add
28691         'first_char_except_ignorable' field.
28692         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28693         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28694         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28695         Update initializer.
28696         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28697         case-ignorable characters.
28698         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28699         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28700         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28701         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28702         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28703
28704 2009-06-30  Bruno Haible  <bruno@clisp.org>
28705
28706         Tests for module 'unicase/ignorable'.
28707         * modules/unicase/ignorable-tests: New file.
28708         * tests/unicase/test-ignorable.c: New file, generated by
28709         gen-uni-tables.
28710
28711         Tests for module 'unicase/cased'.
28712         * modules/unicase/cased-tests: New file.
28713         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28714         * tests/unicase/test-predicate-part1.h: New file, derived from
28715         tests/unictype/test-predicate-part1.h.
28716         * tests/unicase/test-predicate-part2.h: New file, same as
28717         tests/unictype/test-predicate-part2.h.
28718
28719         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28720         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28721         (output_casing_properties): New function.
28722         (main): Call it.
28723         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28724         * lib/unicase/cased.c: Include unictype/bitmap.h.
28725         (uc_is_cased): Define through a bitmap lookup.
28726         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28727         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28728         (uc_is_case_ignorable): Define through a bitmap lookup.
28729         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28730         lib/unictype/bitmap.h.
28731         (Depends-on): Add inline. Clean up.
28732         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28733         lib/unictype/bitmap.h.
28734         (Depends-on): Add inline. Clean up.
28735         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28736         recognition.
28737         * tests/unicase/test-u16-tolower.c (main): Likewise.
28738         * tests/unicase/test-u32-tolower.c (main): Likewise.
28739
28740 2009-06-30  Bruno Haible  <bruno@clisp.org>
28741
28742         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28743         * lib/unicase/u16-casemap.c: Likewise.
28744         * lib/unicase/u32-casemap.c: Likewise.
28745
28746 2009-06-29  Bruno Haible  <bruno@clisp.org>
28747
28748         Define u32_casefold as a wrapper around u32_ct_casefold.
28749         * lib/unicase/u32-casefold.c: Update.
28750         * modules/unicase/u32-casefold (Depends-on): Add
28751         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28752         unicase/empty-suffix-context. Clean up.
28753
28754         Define u16_casefold as a wrapper around u16_ct_casefold.
28755         * lib/unicase/u16-casefold.c: Update.
28756         * modules/unicase/u16-casefold (Depends-on): Add
28757         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28758         unicase/empty-suffix-context. Clean up.
28759
28760         Define u8_casefold as a wrapper around u8_ct_casefold.
28761         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28762         * lib/unicase/u8-casefold.c: Update.
28763         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28764         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28765
28766         Define u32_totitle as a wrapper around u32_ct_totitle.
28767         * lib/unicase/u32-totitle.c: Update.
28768         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28769         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28770
28771         Define u16_totitle as a wrapper around u16_ct_totitle.
28772         * lib/unicase/u16-totitle.c: Update.
28773         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28774         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28775
28776         Define u8_totitle as a wrapper around u8_ct_totitle.
28777         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28778         functions.
28779         (FUNC): Delegate to U_CT_TOTITLE.
28780         * lib/unicase/u8-totitle.c: Update.
28781         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28782         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28783
28784         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28785         invocation.
28786         * modules/unicase/u32-tolower (Depends-on): Add
28787         unicase/empty-prefix-context, unicase/empty-suffix-context.
28788
28789         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28790         invocation.
28791         * modules/unicase/u16-tolower (Depends-on): Add
28792         unicase/empty-prefix-context, unicase/empty-suffix-context.
28793
28794         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28795         * modules/unicase/u8-tolower (Depends-on): Add
28796         unicase/empty-prefix-context, unicase/empty-suffix-context.
28797
28798         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28799         invocation.
28800         * modules/unicase/u32-toupper (Depends-on): Add
28801         unicase/empty-prefix-context, unicase/empty-suffix-context.
28802
28803         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28804         invocation.
28805         * modules/unicase/u16-toupper (Depends-on): Add
28806         unicase/empty-prefix-context, unicase/empty-suffix-context.
28807
28808         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28809         * modules/unicase/u8-toupper (Depends-on): Add
28810         unicase/empty-prefix-context, unicase/empty-suffix-context.
28811
28812         New module 'unicase/u32-ct-casefold'.
28813         * lib/unicase/u32-ct-casefold.c: New file.
28814         * modules/unicase/u32-ct-casefold: New file.
28815
28816         New module 'unicase/u16-ct-casefold'.
28817         * lib/unicase/u16-ct-casefold.c: New file.
28818         * modules/unicase/u16-ct-casefold: New file.
28819
28820         New module 'unicase/u8-ct-casefold'.
28821         * lib/unicase/u8-ct-casefold.c: New file.
28822         * lib/unicase/u-ct-casefold.h: New file, derived from
28823         lib/unicase/u-casefold.h.
28824         * modules/unicase/u8-ct-casefold: New file.
28825
28826         New module 'unicase/u32-ct-totitle'.
28827         * lib/unicase/u32-ct-totitle.c: New file.
28828         * modules/unicase/u32-ct-totitle: New file.
28829
28830         New module 'unicase/u16-ct-totitle'.
28831         * lib/unicase/u16-ct-totitle.c: New file.
28832         * modules/unicase/u16-ct-totitle: New file.
28833
28834         New module 'unicase/u8-ct-totitle'.
28835         * lib/unicase/u8-ct-totitle.c: New file.
28836         * lib/unicase/u-ct-totitle.h: New file, derived from
28837         lib/unicase/u-totitle.h.
28838         * modules/unicase/u8-ct-totitle: New file.
28839
28840         New module 'unicase/u32-ct-tolower'.
28841         * lib/unicase/u32-ct-tolower.c: New file.
28842         * modules/unicase/u32-ct-tolower: New file.
28843
28844         New module 'unicase/u16-ct-tolower'.
28845         * lib/unicase/u16-ct-tolower.c: New file.
28846         * modules/unicase/u16-ct-tolower: New file.
28847
28848         New module 'unicase/u8-ct-tolower'.
28849         * lib/unicase/u8-ct-tolower.c: New file.
28850         * modules/unicase/u8-ct-tolower: New file.
28851
28852         New module 'unicase/u32-ct-toupper'.
28853         * lib/unicase/u32-ct-toupper.c: New file.
28854         * modules/unicase/u32-ct-toupper: New file.
28855
28856         New module 'unicase/u16-ct-toupper'.
28857         * lib/unicase/u16-ct-toupper.c: New file.
28858         * modules/unicase/u16-ct-toupper: New file.
28859
28860         New module 'unicase/u8-ct-toupper'.
28861         * lib/unicase/u8-ct-toupper.c: New file.
28862         * modules/unicase/u8-ct-toupper: New file.
28863
28864         Add context arguments to u*_casemap functions.
28865         * lib/unicase/unicasemap.h: Include unicase.h.
28866         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28867         suffix_context arguments.
28868         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28869         functions.
28870         (FUNC): Add prefix_context and suffix_context arguments. Use
28871         uc_is_cased and uc_is_case_ignorable.
28872         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28873         * lib/unicase/u16-casemap.c: Likewise.
28874         * lib/unicase/u32-casemap.c: Likewise.
28875         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28876         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28877         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28878         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28879         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28880         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28881
28882         New module 'unicase/u32-suffix-context'.
28883         * lib/unicase/u32-suffix-context.c: New file.
28884         * modules/unicase/u32-suffix-context: New file.
28885
28886         New module 'unicase/u16-suffix-context'.
28887         * lib/unicase/u16-suffix-context.c: New file.
28888         * modules/unicase/u16-suffix-context: New file.
28889
28890         New module 'unicase/u8-suffix-context'.
28891         * lib/unicase/u8-suffix-context.c: New file.
28892         * lib/unicase/u-suffix-context.h: New file.
28893         * modules/unicase/u8-suffix-context: New file.
28894
28895         New module 'unicase/empty-suffix-context'.
28896         * lib/unicase/empty-suffix-context.c: New file.
28897         * modules/unicase/empty-suffix-context: New file.
28898
28899         New module 'unicase/u32-prefix-context'.
28900         * lib/unicase/u32-prefix-context.c: New file.
28901         * modules/unicase/u32-prefix-context: New file.
28902
28903         New module 'unicase/u16-prefix-context'.
28904         * lib/unicase/u16-prefix-context.c: New file.
28905         * modules/unicase/u16-prefix-context: New file.
28906
28907         New module 'unicase/u8-prefix-context'.
28908         * lib/unicase/u8-prefix-context.c: New file.
28909         * lib/unicase/u-prefix-context.h: New file.
28910         * lib/unicase/context.h: New file.
28911         * modules/unicase/u8-prefix-context: New file.
28912
28913         New module 'unicase/empty-prefix-context'.
28914         * lib/unicase/empty-prefix-context.c: New file.
28915         * modules/unicase/empty-prefix-context: New file.
28916
28917         New module 'unicase/ignorable'.
28918         * lib/unicase/ignorable.c: New file.
28919         * modules/unicase/ignorable: New file.
28920
28921         New module 'unicase/cased'.
28922         * lib/unicase/caseprop.h: New file.
28923         * lib/unicase/cased.c: New file.
28924         * modules/unicase/cased: New file.
28925
28926         New functions for case mapping of substrings.
28927         * lib/unicase.h (casing_prefix_context_t): New type.
28928         (unicase_empty_prefix_context): New variable.
28929         (u8_casing_prefix_context, u16_casing_prefix_context,
28930         u32_casing_prefix_context, u8_casing_prefixes_context,
28931         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28932         declarations.
28933         (casing_suffix_context_t): New type.
28934         (unicase_empty_suffix_context): New variable.
28935         (u8_casing_suffix_context, u16_casing_suffix_context,
28936         u32_casing_suffix_context, u8_casing_suffixes_context,
28937         u16_casing_suffixes_context, u32_casing_suffixes_context,
28938         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28939         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28940         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28941         declarations.
28942
28943 2009-06-28  Jim Meyering  <meyering@redhat.com>
28944
28945         boostrap: indent only with spaces
28946         * build-aux/bootstrap: Indent only with spaces, never TABs.
28947
28948         bootstrap: split long lines
28949         * build-aux/bootstrap: Keep line length < 80.
28950
28951         bootstrap: sync from coreutils
28952         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28953         just as autoreconf does.  Verify a list of prerequisite
28954         package-name,version-number pairs if defined in bootstrap.conf.
28955         Refer to README-prereq, if prerequisites are not satisfied.
28956
28957 2009-06-27  Eric Blake  <ebb9@byu.net>
28958
28959         tests: add test for bogus NULL definition
28960         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28961         * tests/test-stdlib.c: Likewise.
28962         * tests/test-string.c: Likewise.
28963         * tests/test-locale.c: Likewise.
28964         * tests/test-unistd.c: Likewise.
28965         * modules/stdio-tests (Depends-on): Add verify.
28966         * modules/stdlib-tests (Depends-on): Likewise.
28967         * modules/string-tests (Depends-on): Likewise.
28968         * modules/locale-tests (Depends-on): Likewise.
28969         * modules/unistd-tests (Depends-on): Likewise.
28970
28971 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28972
28973         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28974         self-explaining comment.
28975         * m4/selinux-selinux-h: Update serial.
28976         (gl_LIBSELINUX): New macro, adding a warning for missing development
28977         packages to code extracted from...
28978         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28979         Add warning for missing development packages here, too.
28980
28981 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28982
28983         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28984
28985 2009-06-25  Eric Blake  <ebb9@byu.net>
28986
28987         version-etc: fix regression
28988         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28989         gcc.
28990         (version_etc): Use it, to catch bugs with trailing NULL.
28991         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28992         (version_etc_va): Fix logic bug.
28993         * modules/version-etc-tests: Add test.
28994         * tests/test-version-etc.c: New file.
28995         * tests/test-version-etc.sh: Likewise.
28996
28997 2009-06-25  Sam Steingold  <sds@gnu.org>
28998
28999         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29000         mbtowc declaration.
29001
29002 2009-06-25  Eric Blake  <ebb9@byu.net>
29003
29004         fpurge: migrate into <stdio.h>
29005         * lib/fpurge.h: Delete...
29006         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29007         * lib/fpurge.c (fpurge): Change declaring header.
29008         * modules/fpurge (Files): Drop deleted file.
29009         (Depends-on): Add stdio.
29010         (configure.ac): Set witness.
29011         * modules/stdio (Makefile.am): Support fpurge macros.
29012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29013         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29014         * lib/fflush.c: Update client.
29015         * tests/test-fpurge.c: Likewise.
29016         * NEWS: Mention the change.
29017
29018 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29019
29020         * lib/argp-version-etc.c (program_authors): Add const
29021         qualifier.
29022         * lib/version-etc.c: Fix typos in the comments.
29023         * modules/argp-version-etc: Depends on version-etc.
29024
29025 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29026
29027         argp-version-etc: new module.
29028
29029         * lib/argp-version-etc.c: New file.
29030         * lib/argp-version-etc.h: New file.
29031         * modules/argp-version-etc: New file.
29032         * modules/argp-version-etc-tests: New file.
29033         * tests/test-argp-version-etc.c: New test.
29034         * tests/test-argp-version-etc-1.sh: New test.
29035
29036 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29037
29038         Provide additional interfaces and documentation for version-etc
29039         module.
29040
29041         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29042         interfaces.
29043         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29044         prototypes.
29045
29046 2009-06-24  Bruno Haible  <bruno@clisp.org>
29047
29048         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29049         HAVE_LIB${NAME} macro.
29050         Reported by Sam Steingold <sds@gnu.org>.
29051
29052 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29053
29054         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29055         needed.
29056
29057 2009-06-21  Bruno Haible  <bruno@clisp.org>
29058
29059         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29060         work.
29061         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29062         together with LIB${NAME}, LTLIB${NAME}.
29063         Reported by Sam Steingold <sds@gnu.org>.
29064
29065 2009-06-20  Jim Meyering  <meyering@redhat.com>
29066
29067         tests: make sc_require_test_exit_idiom more generic
29068         * top/maint.mk (Exit_witness_file): New overridable variable.
29069         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29070         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29071
29072 2009-06-19  Jim Meyering  <meyering@redhat.com>
29073
29074         hash: reverse order of src/dst parameters in an internal interface
29075         * lib/hash.c (transfer_entries): Reverse order of parameters to
29076         put DST before SRC.  Adjust callers.
29077
29078         tests: test-hash: avoid wholesale duplication
29079         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29080         Instead, use a loop and add a single conditional.
29081
29082         tests: test-hash: allow seed selection via a command line argument
29083         * tests/test-hash.c (get_seed): New function.
29084         (main): Use it.
29085
29086 2009-06-19  Eric Blake  <ebb9@byu.net>
29087
29088         hash: avoid memory leak on allocation failure
29089         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29090         failure.  Factor repeated algorithm...
29091         (transfer_entries): ...into new helper routine.
29092         (hash_delete): React to hash_rehash return value.
29093
29094         hash: reduce memory pressure in hash_rehash no-op case
29095         * lib/hash.c (next_prime): Avoid overflow.
29096         (hash_initialize): Factor bucket size computation...
29097         (compute_bucket_size): ...into new helper function.
29098         (hash_rehash): Use new function and open coding to reduce memory
29099         pressure, and avoid a memory leak in USE_OBSTACK code.
29100         Reported by Jim Meyering.
29101
29102 2009-06-18  Eric Blake  <ebb9@byu.net>
29103
29104         hash: make rotation more obvious
29105         * modules/hash (Depends-on): Add bitrotate and stdint.
29106         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29107         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29108         (SIZE_MAX): Rely on headers for definition.
29109         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29110         (raw_hasher): Use rotr_sz.
29111         Suggested by Jim Meyering.
29112
29113         hash: fix memory leak in last patch
29114         * lib/hash.c (hash_rehash): Avoid memory leak.
29115
29116         hash: avoid no-op rehashing
29117         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29118
29119         hash: provide default callback functions
29120         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29121         (hash_initialize): Use them as defaults.
29122         * tests/test-hash.c (main): Test this.
29123
29124         hash: minor optimization
29125         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29126         when possible.
29127         (hash_initialize): Document this promise.
29128         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29129         * tests/test-hash.c (hash_compare_strings): Test this.
29130
29131 2009-06-18  Bruno Haible  <bruno@clisp.org>
29132
29133         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29134         going to be replaced anyway.
29135
29136 2009-06-18  Bruno Haible  <bruno@clisp.org>
29137
29138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29139         in one place.
29140         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29141         be replaced anyway.
29142
29143 2009-06-18  Eric Blake  <ebb9@byu.net>
29144
29145         hash: check for resize before insertion
29146         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29147         threshold before insertion, so that a pathological hash_rehash
29148         that fills every bucket can still trigger another rehash.
29149
29150 2009-06-18  Jim Meyering  <meyering@redhat.com>
29151
29152         hash-tests: add a loop around the small tests
29153         * tests/test-hash.c (main): Repeat small tests with selected
29154         small initial table sizes.
29155
29156 2009-06-17  Eric Blake  <ebb9@byu.net>
29157
29158         hash: minor cleanups
29159         * lib/hash.h (hash_entry): Make opaque, by moving...
29160         * lib/hash.c (hash_entry): ...here.
29161         (hash_insert): Clarify restrictions on what can be inserted.
29162         (hash_get_next): Clarify when it is safe to remove an element
29163         during traversal.
29164         (check_tuning): Skip verification when tuning is known safe.
29165         (hash_initialize): Clarify restrictions on tuning.
29166
29167 2009-06-17  Jim Meyering  <jim@meyering.net>
29168         and Eric Blake  <ebb9@byu.net>
29169
29170         hash-tests: new module
29171         * modules/hash-tests: New file.
29172         * tests/test-hash.c: New file.
29173
29174 2009-06-17  Eric Blake  <ebb9@byu.net>
29175
29176         strstr-simple: document new module
29177         * MODULES.html.sh: Document new module.
29178
29179         strstr, strcasestr: replace on platforms with broken memchr
29180         * modules/strstr: Split into...
29181         * modules/strstr-simple: ...new module that does not care about
29182         performance, but does care about glibc bug.
29183         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29184         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29185         if platform memchr is broken, per Debian bug 521737.
29186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29187         memchr.
29188         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29189         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29190         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29191         * modules/mountlist (Depends-on): Add strstr-simple.
29192         * modules/gen-uni-tables (Depends-on): Likewise.
29193         * modules/argz (Depends-on): Add strstr.
29194
29195 2009-06-17  Bruno Haible  <bruno@clisp.org>
29196
29197         * modules/posix_spawn-internal (Depends-on): Add errno.
29198
29199 2009-06-17  Bruno Haible  <bruno@clisp.org>
29200
29201         Define missing ESTALE on Interix 3.5.
29202         * lib/errno.in.h (ESTALE): Assign a value if missing.
29203         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29205         missing.
29206         * doc/posix-headers/errno.texi: Mention the Interix bug.
29207         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29208
29209 2009-06-15  Eric Blake  <ebb9@byu.net>
29210
29211         memchr, memchr2: add valgrind exception
29212         * lib/memchr.valgrind: New file.
29213         * lib/memchr2.valgrind: New file.
29214         * modules/memchr (Files): Distribute valgrind file.
29215         * modules/memchr2 (Files): Likewise.
29216
29217         docs: memchr is no longer obsolete
29218         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29219         * lib/string.in.h (memchr): Simplify logic.
29220
29221 2009-06-14  Jim Meyering  <meyering@redhat.com>
29222
29223         link-follow: fix the "checking..." message to not mention trailing slash
29224         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29225         never considered trailing slashes.
29226
29227 2009-06-14  Bruno Haible  <bruno@clisp.org>
29228
29229         * m4/memchr.m4: Mention also the bug on IA-64.
29230         * doc/posix-functions/memchr.texi: Likewise.
29231
29232 2009-06-12  Eric Blake  <ebb9@byu.net>
29233
29234         memchr: detect broken x86_64 and alpha implementations
29235         * modules/memchr-tests (Depends-on): Move mmap detection...
29236         * modules/memchr (Depends-on): ...here.
29237         (configure.ac): Set indicator.
29238         * lib/string.in.h (memchr): Declare replacement.
29239         * modules/string (Makefile.am): Trigger replacement.
29240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29241         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29242         bugs.
29243         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29244         * modules/getpagesize (License): Relax license.
29245
29246 2009-06-11  Bruno Haible  <bruno@clisp.org>
29247
29248         * lib/idpriv.h: Add more references.
29249
29250 2009-06-08  Bruno Haible  <bruno@clisp.org>
29251
29252         Tests for module 'idpriv-droptemp'.
29253         * modules/idpriv-droptemp-tests: New file.
29254         * tests/test-idpriv-droptemp.sh: New file.
29255         * tests/test-idpriv-droptemp.su.sh: New file.
29256         * tests/test-idpriv-droptemp.c: New file.
29257
29258         New module 'idpriv-droptemp'.
29259         * lib/idpriv-droptemp.c: New file.
29260         * modules/idpriv-droptemp: New file.
29261
29262 2009-06-08  Bruno Haible  <bruno@clisp.org>
29263
29264         Tests for module 'idpriv-drop'.
29265         * modules/idpriv-drop-tests: New file.
29266         * tests/test-idpriv-drop.sh: New file.
29267         * tests/test-idpriv-drop.su.sh: New file.
29268         * tests/test-idpriv-drop.c: New file.
29269
29270         New module 'idpriv-drop'.
29271         * lib/idpriv.h: New file.
29272         * lib-idpriv-drop.c: New file.
29273         * m4/idpriv.m4: New file.
29274         * modules/idpriv-drop: New file.
29275
29276 2009-06-08  Bruno Haible  <bruno@clisp.org>
29277
29278         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29279         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29281         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29283         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29284         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29285
29286 2009-06-08  Eric Blake  <ebb9@byu.net>
29287
29288         test-strstr: use memory fence, when possible
29289         * tests/test-strstr.c (main): Use memory fence, in order to be
29290         more likely to trigger Debian bug 521737.
29291         * modules/strstr-tests (Files): Pull in additional files.
29292
29293         memchr: no longer obsolete, for wider field testing
29294         * modules/memchr (Status, Notice): Delete, this module is no
29295         longer obsolete.
29296         * modules/vasnprintf (Depends-on): Add memchr.
29297
29298 2009-06-07  Jim Meyering  <meyering@redhat.com>
29299
29300         hash: declare some functions with the warn_unused_result attribute
29301         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29302
29303 2009-06-07  Bruno Haible  <bruno@clisp.org>
29304
29305         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29306         Reported by Eric Blake.
29307
29308 2009-06-06  Eric Blake  <ebb9@byu.net>
29309
29310         test-alignof: fix typo with long double
29311         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29312         compiler error.
29313
29314 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29315
29316         Escape non-texinfo { and }s.
29317         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29318         markup error.
29319
29320 2009-06-04  Jim Meyering  <meyering@redhat.com>
29321
29322         gitlog-to-changelog: don't infloop on an empty commit log
29323         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29324         Reported by Boris Petersen <transacid@centerim.org>.
29325
29326 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29327
29328         version-etc: extend for packagers
29329         Add three new configure options, intended for packagers:
29330           --with-packager="packager name"
29331           --with-packager-version="packager-specific version"
29332           --with-packager-bug-reports="packager bug reporting"
29333         An example with coreutils:
29334           $ ./configure \
29335             --with-packager=Gentoo \
29336             --with-packager-bug-report=http://bugs.gentoo.org/ \
29337             --with-packager-version="patchset 1.6"
29338           $ ./src/ls --version | head -n2
29339           ls (GNU coreutils) 7.1-dirty
29340           Packaged by Gentoo (patchset 1.6)
29341         Note that the bug reporting info via --help doesn't show up because
29342         coreutils uses its own custom emit_bug_reporting_address() implementation
29343         in src/system.h.  If it didn't, it'd look like:
29344           $ ./src/ls --help | tail -n4
29345           Report bugs to <bug-coreutils@gnu.org>.
29346           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29347           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29348           General help using GNU software: <http://www.gnu.org/gethelp/>.
29349         * lib/version-etc.c: Print new information, if provided.
29350         * m4/version-etc.m4: New file.
29351         * modules/version-etc (Files): Add m4/version-etc.m4.
29352         (configure.ac): Add gl_VERSION_ETC.
29353
29354 2009-05-31  Bruno Haible  <bruno@clisp.org>
29355
29356         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29357         and 'int64_t'.
29358         * modules/alignof-tests (Dependencies): Add stdint.
29359         Reported by Eric Blake.
29360
29361 2009-05-31  Bruno Haible  <bruno@clisp.org>
29362
29363         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29364         restriction due to compiler bugs.
29365         Reported by Eric Blake.
29366
29367 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29368             Bruno Haible  <bruno@clisp.org>
29369
29370         Fix test-alignof failure.
29371         * lib/alignof.h (alignof_slot): New macro.
29372         (alignof_type): New macro, with the same semantics as the previous
29373         'alignof'.
29374         (alignof): Alias to alignof_slot.
29375         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29376         check that the results are usable as constant expressions.
29377
29378 2009-05-31  Bruno Haible  <bruno@clisp.org>
29379
29380         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29381         * tests/test-memchr.c (main): Check that memchr does not read past the
29382         first occurrence of the byte.
29383         * tests/test-strstr.c (main): Update comment.
29384         Suggested by Eric Blake.
29385
29386 2009-05-30  Bruno Haible  <bruno@clisp.org>
29387
29388         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29389         detail how to use dumpbin.
29390         Reported by David Byron <dbyron@dbyron.com>.
29391
29392 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29393
29394         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29395
29396 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29397
29398         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29399
29400 2009-05-28  Bruno Haible  <bruno@clisp.org>
29401
29402         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29403         build-aux/ files.
29404
29405 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29406
29407         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29408
29409 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29410
29411         * gnulib-tool (sed_transform_main_lib_file)
29412         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29413         regexps.
29414
29415 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29416
29417         * tests/test-strstr.c: Add another self-test.
29418         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29419         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29420
29421 2009-05-23  Bruno Haible  <bruno@clisp.org>
29422
29423         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29424         change.
29425
29426 2009-05-21  Bruno Haible  <bruno@clisp.org>
29427
29428         Simplify use of mode_t varargs.
29429         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29430         uses 'mode_t' or 'int'.
29431         * lib/openat.c (openat): Likewise.
29432         * lib/open-safer.c (open_safer): Likewise.
29433         * m4/mode_t.m4: New file.
29434         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29435         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29437         * modules/open (Files): Add m4/mode_t.m4.
29438         * modules/openat (Files): Likewise.
29439         * modules/fcntl-safer (Files): Likewise.
29440         Suggested by Eric Blake.
29441
29442 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29443
29444         * doc/glibc-functions/fallocate.texi: New file.
29445         * doc/gnulib.texi: Include it.
29446
29447 2009-05-21  Eric Blake  <ebb9@byu.net>
29448             Bruno Haible  <bruno@clisp.org>
29449
29450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29451         invocations.
29452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29453
29454 2009-05-21  Eric Blake  <ebb9@byu.net>
29455             Bruno Haible  <bruno@clisp.org>
29456
29457         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29458         include_next. Fix of 2008-11-20 commit.
29459         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29460         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29461         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29462         NEXT_MATH_H.
29463         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29464         instead of NEXT_MATH_H.
29465
29466 2009-05-21  Bruno Haible  <bruno@clisp.org>
29467
29468         Avoid redefinition warnings for SIZE_MAX.
29469         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29470         Reported by Simon Josefsson.
29471
29472 2009-05-21  Bruno Haible  <bruno@clisp.org>
29473
29474         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29475         AC_CACHE_VAL.
29476
29477 2009-05-20  Bruno Haible  <bruno@clisp.org>
29478
29479         Make zeroptr.h work on mingw.
29480         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29481         mprotect.
29482         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29483         * modules/memchr2-tests (configure.ac): Likewise.
29484         * modules/memcmp-tests (configure.ac): Likewise.
29485         * modules/memmem-tests (configure.ac): Likewise.
29486         * modules/memrchr-tests (configure.ac): Likewise.
29487         Reported by Simon Josefsson.
29488
29489 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29490
29491         * tests/test-glob.c: Include string.h for strcmp prototype.
29492
29493 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29494
29495         * modules/getdelim (Depends-on): Add explicit stdint, although it
29496         was implicitly already pulled in via realloc-posix.
29497         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29498
29499 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29500
29501         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29502         G. Christensen" <tgc@jupiterrise.com>.
29503         * m4/sys_socket_h.m4: Check for sa_family_t.
29504         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29505         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29506         * tests/test-sys_socket.c: Check that sa_family_t works.
29507
29508 2009-05-18  Eric Blake  <ebb9@byu.net>
29509
29510         maint.mk: allow gnulib_dir in VPATH build
29511         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29512
29513 2009-05-15  Jim Meyering  <meyering@redhat.com>
29514
29515         maint.mk: Give gnulib_dir a default definition.
29516         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29517         Thus, most packages no longer need to specify this variable in cfg.mk
29518
29519 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29520
29521         rename.m4: fix typos that would make non-mingw cross-configure fail
29522         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29523
29524 2009-05-13  Eric Blake  <ebb9@byu.net>
29525
29526         mmap-anon: avoid out-of-order autoconf expansion
29527         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29528         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29529         * modules/memchr-tests (Depends-on): Add extensions.
29530         * modules/memchr2-tests (Depends-on): Add extensions.
29531         * modules/memcmp-tests (Depends-on): Add extensions.
29532         * modules/memmem-tests (Depends-on): Add extensions.
29533         * modules/memrchr-tests (Depends-on): Add extensions.
29534
29535 2009-05-13  Bruno Haible  <bruno@clisp.org>
29536
29537         Make some tests ISO C 99 compliant.
29538         * tests/zerosize-ptr.h: New file.
29539         * tests/test-memchr.c: Include zerosize-ptr.h.
29540         (main): Use a zero-size object pointer instead of NULL.
29541         * tests/test-memchr2.c: Include zerosize-ptr.h.
29542         (main): Use a zero-size object pointer instead of NULL.
29543         * tests/test-memcmp.c: Include zerosize-ptr.h.
29544         (main): Use a zero-size object pointer instead of NULL.
29545         * tests/test-memmem.c: Include zerosize-ptr.h.
29546         (main): Use a zero-size object pointer instead of NULL.
29547         * tests/test-memrchr.c: Include zerosize-ptr.h.
29548         (main): Use a zero-size object pointer instead of NULL.
29549         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29550         m4/mmap-anon.m4.
29551         (Depends-on): Add getpagesize.
29552         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29553         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29554         m4/mmap-anon.m4.
29555         (Depends-on): Add getpagesize.
29556         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29557         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29558         m4/mmap-anon.m4.
29559         (Depends-on): Add getpagesize.
29560         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29561         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29562         m4/mmap-anon.m4.
29563         (Depends-on): Add getpagesize.
29564         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29565         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29566         m4/mmap-anon.m4.
29567         (Depends-on): Add getpagesize.
29568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29569
29570 2009-05-12  Bruno Haible  <bruno@clisp.org>
29571
29572         Tests for module 'alignof'.
29573         * modules/alignof-tests: New file.
29574         * tests/test-alignof.c: New file.
29575
29576 2009-05-12  Bruno Haible  <bruno@clisp.org>
29577
29578         Fix alignof macro.
29579         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29580         vendor compilers that are always correct.
29581
29582 2009-05-12  Bruno Haible  <bruno@clisp.org>
29583
29584         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29585         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29586         not whether its fully works.
29587
29588 2009-05-12  Bruno Haible  <bruno@clisp.org>
29589
29590         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29591
29592 2009-05-12  Jim Meyering  <meyering@redhat.com>
29593
29594         * top/maint.mk: Adjust backslash alignment.
29595
29596 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29597
29598         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29599
29600 2009-05-11  Eric Blake  <ebb9@byu.net>
29601
29602         argp: avoid undefined behavior
29603         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29604         macros.
29605
29606 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29607
29608         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29609         user.name to prevent git commit from complaining.
29610
29611 2009-05-10  Bruno Haible  <bruno@clisp.org>
29612
29613         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29614         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29615         it rewrites every file name only once.
29616         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29617
29618 2009-05-08  Bruno Haible  <bruno@clisp.org>
29619
29620         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29621         instead of 'max'.
29622
29623 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29624
29625         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29626         sockaddr_storage test.
29627
29628 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29629
29630         * modules/sys_socket (Makefile.am): Substitute
29631         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29632         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29633         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29634         * tests/test-sys_socket.c: Check sockaddr_storage.
29635
29636 2009-05-08  Bruno Haible  <bruno@clisp.org>
29637
29638         New module 'alignof'.
29639         * lib/alignof.h: New file.
29640         * modules/alignof: New file.
29641
29642 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29643             Bruno Haible  <bruno@clisp.org>
29644
29645         Fix test-file-has-acl on FreeBSD.
29646         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29647         mask is implicitly added.
29648         * tests/test-file-has-acl.c: Include <signal.h>.
29649         (main): Terminate the test after 5 seconds.
29650         * modules/acl-tests (configure.ac): Check for alarm function.
29651
29652 2009-05-04  Bruno Haible  <bruno@clisp.org>
29653
29654         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29656         * modules/errno (configure.ac): Drop AC_REQUIRE.
29657         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29658         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29659
29660 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29661
29662         * modules/glob-tests: New module.
29663         * tests/test-glob.c: Add.
29664
29665 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29666
29667         * modules/fnmatch-tests: New module.
29668         * tests/test-fnmatch.c: Add.
29669
29670 2009-05-04  Eric Blake  <ebb9@byu.net>
29671
29672         maint: make the new no-submodule-changes rule VPATH-safe
29673         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29674
29675 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29676             Bruno Haible  <bruno@clisp.org>
29677
29678         acl: Fix infinite loop on FreeBSD.
29679         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29680         of return value from acl_get_entry.
29681         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29682         Likewise.
29683
29684 2009-05-03  Bruno Haible  <bruno@clisp.org>
29685
29686         * lib/acl-internal.h (acl_entries): Clarify return value.
29687         * lib/acl_entries.c (acl_entries): Likewise.
29688
29689 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29690
29691         Bug fix in acl module.
29692         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29693
29694 2009-05-03  Bruno Haible  <bruno@clisp.org>
29695
29696         Create gperf-generated file in the source dir, not in the build dir.
29697         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29698         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29699         * modules/unicase/locale-language (unicase/locale-languages.h):
29700         Likewise.
29701         * modules/unicase/special-casing (unicase/special-casing-table.h):
29702         Likewise.
29703         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29704         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29705         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29706         Reported by Ralf Wildenhues.
29707
29708 2009-05-03  Bruno Haible  <bruno@clisp.org>
29709
29710         * modules/fnmatch (Description, configure.ac): Taken from
29711         fnmatch-posix.
29712         * modules/fnmatch-posix: Turn into a symbolic reference to the
29713         'fnmatch' module, and deprecate.
29714         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29715
29716 2009-05-03  Bruno Haible  <bruno@clisp.org>
29717
29718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29719         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29720         Reported by Ralf Wildenhues.
29721
29722 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29723
29724         * m4/fnmatch.m4: Fix fnmatch re-define.
29725
29726 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29727
29728         priv-set: new module and tests; adapt write-any-file
29729         * lib/priv-set.c: New file.
29730         * lib/priv-set.h: New file.
29731         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29732         * lib/write-any-file.c: Simplify by using priv-set module.
29733         * m4/priv-set.m4: New file.
29734         * modules/priv-set: New file.
29735         * modules/unlinkdir: Add dependency on priv-set module.
29736         * modules/write-any-file: Likewise.
29737
29738         Tests for module 'priv-set'.
29739         * modules/priv-set-tests: New file.
29740         * tests/test-priv-set.c: New file.
29741
29742 2009-05-03  Jim Meyering  <meyering@redhat.com>
29743             Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29746         use the converted UTF-8 variant of the name instead.
29747
29748 2009-05-03  Jim Meyering  <meyering@redhat.com>
29749
29750         tests: tighten some getdate tests
29751         * tests/test-getdate.c (main): Tighten tests: require equality,
29752         not just greater than.  Set TZ envvar to UTC0.
29753
29754 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29755
29756         getdate: correctly interpret "next monday" when run on a Monday
29757         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29758         that e.g., "next tues" (when run on a tuesday) results in a date
29759         that is one week in the future, and not today's date.
29760         I.e., add a week when the wday is the same as the current one.
29761         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29762         and earlier by Martin Bernreuther and Jan Minář.
29763         * tests/test-getdate.c (main): Check that "next DAY" is always in
29764         the future and that "last DAY" is always in the past.
29765
29766 2009-05-02  Jim Meyering  <meyering@redhat.com>
29767
29768         build: ensure that a release build fails when a submodule is unclean
29769         * top/maint.mk (no-submodule-changes): New rule.
29770         (alpha beta major): Depend on it.
29771
29772 2009-05-02  Bruno Haible  <bruno@clisp.org>
29773
29774         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29775         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29776         shell variable gl_fnmatch_required to detect which variant is
29777         requested.
29778         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29779         gl_FUNC_FNMATCH_POSIX.
29780         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29781         exclude fnmatch-posix.
29782
29783 2009-05-02  Bruno Haible  <bruno@clisp.org>
29784
29785         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29786         * modules/mbsrtowcs (License): Change to LGPLv2+.
29787         * modules/strnlen1 (License): Likewise.
29788         Reported by Simon Josefsson.
29789
29790 2009-05-02  Bruno Haible  <bruno@clisp.org>
29791
29792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29793         "cross".
29794         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29795         gnulib-tool was called with option --source-base=lib.
29796
29797 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29798
29799         Use automake *-local hooks without commands, for extensibility.
29800         * modules/localcharset (Makefile.am): Rename install-exec-local
29801         rule to install-exec-localcharset, and make it a prerequisite of
29802         install-exec-local.  Likewise, rename the uninstall-local rule to
29803         uninstall-localcharset, and make it a prerequisite of the former.
29804
29805 2009-05-01  Bruno Haible  <bruno@clisp.org>
29806
29807         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29808         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29809         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29811         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29812         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29813         m4/locale-zh.m4, m4/codeset.m4.
29814
29815         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29816         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29817         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29818         m4/locale-zh.m4.
29819
29820         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29821         REPLACE_WCRTOMB if mbstate_t must be replaced.
29822         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29823         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29824
29825 2009-05-01  Bruno Haible  <bruno@clisp.org>
29826
29827         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29828         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29829         dngettext, dcngettext, textdomain, bindtextdomain,
29830         bind_textdomain_codeset): Undefine before redefining.
29831
29832 2009-04-30  Bruno Haible  <bruno@clisp.org>
29833
29834         Fix bug introduced on 2009-04-25.
29835         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29836         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29837         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29838         is defined.
29839         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29840         is defined.
29841         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29842         is defined.
29843         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29844
29845 2009-04-28  Bruno Haible  <bruno@clisp.org>
29846
29847         Comment tweaks.
29848         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29849         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29850         * lib/unicase.h (u*_casexfrm): Likewise.
29851         Reported by Paolo Bonzini.
29852
29853 2009-04-28  Bruno Haible  <bruno@clisp.org>
29854
29855         Fix a compilation error.
29856         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29857         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29858         Reported by Jim Meyering.
29859
29860 2009-04-27  Bruno Haible  <bruno@clisp.org>
29861
29862         New module 'libunistring'.
29863         * modules/libunistring: New file.
29864         * m4/libunistring.m4: New file.
29865         * MODULES.html.sh (Unicode string functions): Add it.
29866
29867 2009-04-27  Eric Blake  <ebb9@byu.net>
29868
29869         maint.mk: allow package-specific header to provide <config.h>
29870         * top/maint.mk (sc_require_config_h): New variable.
29871         (sc_require_config_h, sc_require_config_h_first): Use it.
29872
29873 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29874
29875         * top/maint.mk (sc_avoid_if_before_free): Except
29876         useless-if-before-free script.
29877
29878 2009-04-27  Eric Blake  <ebb9@byu.net>
29879
29880         maintainer-makefile: depend on all required helper scripts
29881         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29882         useless-if-before-free.
29883         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29884         version, rather than assuming gnulib checkout is available.
29885         Reported by Simen Josefsson.
29886
29887 2009-04-26  Bruno Haible  <bruno@clisp.org>
29888
29889         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29890         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29891         "../" or "..".
29892
29893 2009-04-26  Bruno Haible  <bruno@clisp.org>
29894
29895         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29896         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29897         AC_LIB_HAVE_LINKFLAGS.
29898
29899 2009-04-26  Bruno Haible  <bruno@clisp.org>
29900
29901         Simplify calling convention of u*_conv_from_encoding.
29902         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29903         u32_conv_from_encoding): Expect a resultbuf argument and return the
29904         result directly as a pointer.
29905         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29906         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29907         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29908         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29909         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29910         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29911         Update.
29912         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29913         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29914         * lib/vasnprintf.c (VASNPRINTF): Update.
29915         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29916         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29917         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29918         * NEWS: Mention the change.
29919
29920 2009-04-26  Bruno Haible  <bruno@clisp.org>
29921
29922         Simplify calling convention of u*_conv_to_encoding.
29923         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29924         u32_conv_to_encoding): Expect a resultbuf argument and return the
29925         result directly as a pointer.
29926         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29927         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29928         freeing scaled_offsets if mem_iconveha failed.
29929         * lib/unicase/u-casexfrm.h (FUNC): Update.
29930         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29931         * lib/vasnprintf.c (VASNPRINTF): Update.
29932         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29933         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29934         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29935         * NEWS: Mention the change.
29936
29937 2009-04-26  Bruno Haible  <bruno@clisp.org>
29938
29939         Avoid test failures on AIX and OSF/1.
29940         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29941         malloc(0).
29942         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29943         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29944         Likewise.
29945         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29946         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29947         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29948         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29949         * doc/posix-functions/malloc.texi: Document the portability problem
29950         related to malloc(0).
29951
29952 2009-04-26  Bruno Haible  <bruno@clisp.org>
29953
29954         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29955         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29956         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29957
29958 2009-04-25  Bruno Haible  <bruno@clisp.org>
29959
29960         Avoid link error when creating a namespace clean library.
29961         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29962         as macro with arguments if already defined as an alias.
29963         * lib/signbitf.c (gl_signbitf): Don't undefine.
29964         * lib/signbitd.c (gl_signbitd): Don't undefine.
29965         * lib/signbitl.c (gl_signbitl): Don't undefine.
29966
29967 2009-04-25  Jim Meyering  <meyering@redhat.com>
29968
29969         vc-list-files: fix another quoting bug
29970         * build-aux/vc-list-files: Avoid sed backslash expansion
29971         of pathological directory names.
29972
29973 2009-04-25  Eric Blake  <ebb9@byu.net>
29974
29975         vc-list-files: fix shell quoting error
29976         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29977         timestamp.
29978
29979 2009-04-25  Jim Meyering  <meyering@redhat.com>
29980
29981         vc-list-files: restore lost functionality with subdir argument
29982         * build-aux/vc-list-files: When given a non-"." sub-directory
29983         argument, substitute the $dir/ prefix back onto each resulting name.
29984         Otherwise, coreutils' root_tests check would fail.
29985
29986 2009-04-24  Eric Blake  <ebb9@byu.net>
29987
29988         vc-list-files: ignore git symlinks
29989         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29990         than ls-files, to ignore git symlinks.
29991
29992         maint.mk: import improvements from m4
29993         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29994         (move_if_change): Delete unused macro.
29995         (news-date-check, vc-diff-check): Support VPATH builds.
29996         (announcement): Likewise.  Split --bootstrap-tools list...
29997         (boostrap-tools): ...into separate list, which can be overridden
29998         in cfg.mk.
29999         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30000         requiring dependency on useless-if-before-free module.
30001         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30002         Support VPATH builds.
30003
30004 2009-04-24  Jim Meyering  <meyering@redhat.com>
30005
30006         maint.mk: remove coreutils-specific rules and variables
30007         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30008         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30009         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30010
30011         maint.mk: remove obsolete rule
30012         * top/maint.mk (rel-check): Remove rule.
30013         (WGET, WGETFLAGS): Remove now-unused variables.
30014
30015 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30016
30017         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30018         consistency.
30019
30020         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30021         '$(PATH_SEPARATOR)' instead of ':'.
30022
30023 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30024
30025         * lib/getopt1.c (main): Use 'const' for static array.
30026
30027 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30028
30029         * top/maint.mk: Sync with coreutils.
30030         * NEWS: Explain incompatibilities.
30031
30032 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30033             Bruno Haible  <bruno@clisp.org>
30034
30035         Fix cross-compilation results.
30036         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30037         statement, as third argument of AC_TRY_RUN.
30038         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30039         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30040         Likewise.
30041         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30042         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30043         Likewise.
30044         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30046         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30047
30048 2009-04-20  Bruno Haible  <bruno@clisp.org>
30049
30050         Avoid test failure on mingw.
30051         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30052
30053 2009-04-20  Bruno Haible  <bruno@clisp.org>
30054
30055         Avoid compilation error on mingw.
30056         * modules/localename-tests (Depends-on): Add locale.
30057
30058 2009-04-19  Bruno Haible  <bruno@clisp.org>
30059
30060         Support for building a shared library on Windows platforms.
30061         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30062         (main): Test the presence of UNINORM_NFC here.
30063         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30064         (main): Test the presence of UNINORM_NFD here.
30065         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30066         (main): Test the presence of UNINORM_NFKC here.
30067         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30068         (main): Test the presence of UNINORM_NFKD here.
30069
30070 2009-04-19  Bruno Haible  <bruno@clisp.org>
30071
30072         Avoid a compiler warning.
30073         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30074         Change type of variable 'sequence'.
30075
30076 2009-04-19  Bruno Haible  <bruno@clisp.org>
30077
30078         * modules/configmake (Makefile.am): When the contents of configmake.h
30079         does not change, arrange to preserve its modification time.
30080
30081 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30082
30083         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30084         gettext domain.
30085
30086 2009-04-16  Jim Meyering  <meyering@redhat.com>
30087
30088         useless-if-before-free: improve conversion code
30089         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30090         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30091
30092 2009-04-14  Bruno Haible  <bruno@clisp.org>
30093
30094         * modules/fcntl (Depends-on): Add extensions.
30095         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30096
30097 2009-04-12  Ben Pfaff  <blp@gnu.org>
30098
30099         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30100         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30101
30102 2009-03-20  Ben Pfaff  <blp@gnu.org>
30103
30104         Make rename replace existing destinations on Windows.
30105         * m4/rename.m4: Add test for Mingw.
30106         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30107         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30108         * doc/posix-functions/rename.texi: Document.
30109
30110 2009-04-10  Bruno Haible  <bruno@clisp.org>
30111
30112         New include file "iconveh.h".
30113         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30114         * lib/striconveh.h: Include it.
30115         (enum iconv_ilseq_handler): Remove definition.
30116         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30117         striconveh.h.
30118         * lib/striconveha.c: Include striconveh.h.
30119         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30120         * modules/striconveh (Files): Add lib/iconveh.h.
30121         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30122         lib/striconveh.h.
30123
30124 2009-04-10  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/uniconv.h: Update comment.
30127
30128 2009-04-10  Bruno Haible  <bruno@clisp.org>
30129
30130         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30131         always.
30132         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30133         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30134         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30135         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30136         "unistring-notinline.h", so that the function gets defined always.
30137         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30138         * lib/unistr/u8-uctomb.c: Likewise.
30139         * lib/unistr/u16-mbtouc.c: Likewise.
30140         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30141         * lib/unistr/u16-uctomb.c: Likewise.
30142         * lib/unistr/u32-mbtouc.c: Likewise.
30143         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30144         * lib/unistr/u32-uctomb.c: Likewise.
30145
30146 2009-04-10  Bruno Haible  <bruno@clisp.org>
30147
30148         Mark 'utime' obsolete.
30149         * modules/utime (Status, Notice): New sections.
30150         Suggested by Jim Meyering.
30151
30152         Fix cross-compile guess for utime test.
30153         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30154         autoconf.
30155         * doc/posix-functions/utime.texi: Give more precisions.
30156         Reported by Jan <ipif@ymail.com>.
30157
30158 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30159
30160         filevercmp: correct today's change
30161         * lib/filevercmp.c: Also handle coreutils' test inputs.
30162         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30163
30164         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30165         for reporting it.
30166         * lib/filevercmp.c: Special handle for "", "." and "..".
30167         * tests/test-filevercmp.c: Enlarge the set suite.
30168
30169 2009-04-07  Jim Meyering  <meyering@redhat.com>
30170
30171         useless-if-before-free: show how to remove braced useless free, too
30172         * build-aux/useless-if-before-free: still only in a comment, though.
30173
30174 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30175
30176         maint.mk: import changes to syntax-check macros from coreutils
30177         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30178         Use them in the relevant macros.
30179
30180 2009-04-06  Bruno Haible  <bruno@clisp.org>
30181
30182         Fix unportable use of bit-fields.
30183         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30184         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30185         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30186
30187 2009-04-06  Bruno Haible  <bruno@clisp.org>
30188
30189         Avoid test failures on AIX and OSF/1.
30190         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30191         that malloc(0) = NULL.
30192         * tests/unicase/test-u8-tolower.c (check): Likewise.
30193         * tests/unicase/test-u8-totitle.c (check): Likewise.
30194         * tests/unicase/test-u8-toupper.c (check): Likewise.
30195         * tests/unicase/test-u16-casefold.c (check): Likewise.
30196         * tests/unicase/test-u16-tolower.c (check): Likewise.
30197         * tests/unicase/test-u16-totitle.c (check): Likewise.
30198         * tests/unicase/test-u16-toupper.c (check): Likewise.
30199         * tests/unicase/test-u32-casefold.c (check): Likewise.
30200         * tests/unicase/test-u32-tolower.c (check): Likewise.
30201         * tests/unicase/test-u32-totitle.c (check): Likewise.
30202         * tests/unicase/test-u32-toupper.c (check): Likewise.
30203         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30204         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30205         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30206         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30207         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30208         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30209         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30210         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30211         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30212         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30213         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30214         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30215
30216 2009-04-05  Bruno Haible  <bruno@clisp.org>
30217
30218         Work around an autoconf limitation.
30219         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30220         comment line if it would be longer than 3 KB.
30221
30222 2009-04-05  Bruno Haible  <bruno@clisp.org>
30223
30224         Avoid test failure with libiconv-1.13.
30225         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30226         of the expected test results.
30227
30228 2009-04-05  Bruno Haible  <bruno@clisp.org>
30229
30230         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30231         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30232         that it should be installed.
30233
30234 2009-04-05  Bruno Haible  <bruno@clisp.org>
30235
30236         * gnulib-tool: New option --copy-file.
30237         (func_usage): Document it.
30238         (func_dest_tmpfilename): Moved out of func_import.
30239         (func_add_file, func_update_file): New functions, extracted from
30240         func_import.
30241         (func_import): Update.
30242
30243 2009-04-05  Karl Berry  <karl@gnu.org>
30244
30245         * README: prominently mention gnulib-tool.
30246         Rearrange sections so getting the code is near the top.
30247
30248 2009-04-05  Bruno Haible  <bruno@clisp.org>
30249
30250         * lib/unicase.h: Mention u*_cmp2.
30251         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30252         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30253         * lib/unicase/ulc-casecmp.c: Likewise.
30254         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30255         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30256         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30257         unistr/u8-cmp.
30258         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30259         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30260         unistr/u16-cmp.
30261         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30262         unistr/u32-cmp.
30263
30264         * lib/uninorm.h: Mention u*_cmp2.
30265         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30266         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30267         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30268         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30269         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30270         unistr/u8-cmp.
30271         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30272         unistr/u16-cmp.
30273         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30274         unistr/u32-cmp.
30275
30276         New module 'unistr/u32-cmp2'.
30277         * lib/unistr/u32-cmp2.c: New file.
30278         * modules/unistr/u32-cmp2: New file.
30279
30280         New module 'unistr/u16-cmp2'.
30281         * lib/unistr/u16-cmp2.c: New file.
30282         * modules/unistr/u16-cmp2: New file.
30283
30284         New module 'unistr/u8-cmp2'.
30285         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30286         * lib/unistr/u8-cmp2.c: New file.
30287         * lib/unistr/u-cmp2.h: New file.
30288         * modules/unistr/u8-cmp2: New file.
30289
30290 2009-04-05  Bruno Haible  <bruno@clisp.org>
30291
30292         * lib/unictype.h (uc_property_is_valid): New macro.
30293         * tests/unictype/test-pr_byname.c (main): Use it.
30294
30295         * lib/unistr.h: Doc fixes.
30296         * lib/uniconv.h: Doc fixes.
30297         * lib/unictype.h: Doc fixes.
30298
30299 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         Port coreutils 7.2 to Solaris 8.
30302
30303         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30304         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30305         for Solaris 8.  This is a bit of a hack, as it means it's the
30306         caller's responsibility to add -lnsl if needed, but most likely it
30307         won't be needed since only getaddrinfo uses this and getaddrinfo
30308         isn't needed on Solaris 8.
30309
30310         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30311         problem to Solaris 8 encountered with coreutils 7.2, which
30312         resulted in a message "fnmatch.c:292: warning: passing argument 4
30313         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30314         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30315
30316 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30317
30318         * m4/ld-version-script.m4: Add FIXME comment.
30319
30320 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30321
30322         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30323         SOVERSION variable.
30324
30325 2009-04-02  Bruno Haible  <bruno@clisp.org>
30326
30327         * Makefile (info, html, dvi, pdf): Combine the rules.
30328         Suggested by Jim Meyering.
30329
30330 2009-04-01  Bruno Haible  <bruno@clisp.org>
30331
30332         * Makefile (info, html, dvi, pdf): New targets.
30333         Reported by Reuben Thomas <rrt@sc3d.org>.
30334
30335 2009-04-01  Bruno Haible  <bruno@clisp.org>
30336
30337         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30338         can be put into PATH.
30339         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30340
30341 2009-04-01  Bruno Haible  <bruno@clisp.org>
30342
30343         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30344
30345 2009-04-01  Bruno Haible  <bruno@clisp.org>
30346
30347         Rename module 'visibility'.
30348         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30349         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30350         * doc/gnulib.texi: Update.
30351         * MODULES.html.sh (Misc): Update.
30352         * NEWS: Mention the change.
30353
30354 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30355
30356         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30357         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30358         Eric Blake <ebb9@byu.net> for review.
30359         * MODULES.html.sh: Add lib-msvc-compat.
30360         * doc/gnulib.texi: Link to new section.
30361         * m4/ld-output-def.m4: New file.
30362         * doc/ld-output-def.texi: New file.
30363
30364 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30365
30366         Rename ld-version-script to lib-symbol-versions.  Suggested by
30367         Bruno Haible <bruno@clisp.org>.
30368         * modules/ld-version-script: Renamed to lib-symbol-versions.
30369         * doc/ld-version-script.texi: Fix module name.
30370         * MODULES.html.sh: Add lib-symbol-versions.
30371
30372 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30373
30374         * modules/u64-tests: New file.
30375         * tests/test-u64.c: New file.
30376
30377 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30378
30379         * MODULES.html.sh: Mention u64.
30380         * modules/u64: New module.
30381         * modules/crypto/sha512: Depend on u64 module instead of providing
30382         u64.h.
30383
30384 2009-03-27  Eric Blake  <ebb9@byu.net>
30385
30386         test-strerror: make debugging EAI_SYSTEM easier
30387         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30388         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30389         failure was EAI_SYSTEM.
30390
30391 2009-03-25  Bruno Haible  <bruno@clisp.org>
30392
30393         Fix a problem with --enable-relocatable on Solaris 7.
30394         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30395         since 2008-02-24.
30396
30397 2009-03-25  Eric Blake  <ebb9@byu.net>
30398
30399         test-sockets: avoid gcc warning
30400         * tests/test-sockets.c (main): Silence compiler warning.
30401
30402 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30403
30404         New modules nproc, pthread, contributed by Glen Lenker.
30405
30406         * MODULES.html.sh: Add pthread, nproc.
30407         * lib/nproc.c: New file.
30408         * lib/nproc.h: New file.
30409         * lib/pthread.in.h: New file.
30410         * m4/pthread.m4: New file.
30411         * modules/nproc: New file.
30412         * modules/pthread: New file.
30413
30414 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30415
30416         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30417         New variable.
30418
30419 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30420
30421         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30422         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30423         * tests/test-filevercmp.c: Add tests for backup suffixes.
30424
30425 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30426
30427         * modules/stdlib (Depends-on): Add stdint, needed when defining
30428         struct random_data on, for example, HP-UX 10.20.  Reported by
30429         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30430
30431 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30432
30433         * lib/readline.c (readline): Call fflush on stdout after printing
30434         prompt.
30435
30436 2009-03-20  Bruno Haible  <bruno@clisp.org>
30437
30438         Remove dependency from 'close' module to -lws2_32 on native Windows.
30439         * lib/close-hook.h: New file.
30440         * lib/close-hook.c: New file.
30441         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30442         w32sock.h.
30443         (_gl_close_fd_maybe_socket): Remove function.
30444         (rpl_close): Invoke execute_all_close_hooks instead of
30445         _gl_close_fd_maybe_socket.
30446         * lib/sockets.c: Include close-hook.h, w32sock.h.
30447         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30448         (close_sockets_hook): New variable.
30449         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30450         (gl_sockets_cleanup): Unregister it.
30451         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30452         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30453         * modules/close-hook: New file.
30454         * modules/close (Files): Remove lib/w32sock.h.
30455         (Depends-on): Add close-hook.
30456         (Link): Remove section.
30457         * modules/sockets (Files): Add lib/w32sock.h.
30458         (Depends-on): Add close-hook.
30459         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30460         invocation.
30461         * NEWS: Mention that LIB_CLOSE is gone.
30462
30463 2009-03-23  Eric Blake  <ebb9@byu.net>
30464
30465         signal-tests: test previous patch
30466         * tests/test-signal.c: New file.
30467         * modules/signal-tests: Likewise.
30468
30469         signal.h: always support 'volatile sig_atomic_t'
30470         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30471         (gl_SIGNAL_H_DEFAULTS): Add a default.
30472         * modules/signal (Makefile.am): Substitute if needed.
30473         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30474         users can blindly add volatile.
30475         * doc/posix-headers/signal.texi (signal.h): Document it.
30476         Reported by Matthew Woehlke.
30477
30478 2009-03-23  Jim Meyering  <meyering@redhat.com>
30479
30480         pathmax: PATH_MAX: use pathconf only when available
30481         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30482         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30483         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30484         This avoids a link failure in a PSP cross-compilation environment
30485         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30486
30487         * lib/vasnprintf.c (divide): Fix typo in comment.
30488
30489 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30490
30491         * gnulib-tool (func_filter_filelist): Fix comment.
30492
30493 2009-03-20  Bruno Haible  <bruno@clisp.org>
30494
30495         Make sockets.h self-contained.
30496         * lib/sockets.c: Include sockets.h first.
30497         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30498
30499 2009-03-19  Eric Blake  <ebb9@byu.net>
30500
30501         doc: mention more functions added in cygwin 1.7.0
30502         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30503         addition.
30504         * doc/posix-functions/log2f.texi: Likewise.
30505
30506 2009-03-19  Jim Meyering  <meyering@redhat.com>
30507
30508         fsusage: avoid syntax error due to statement-before-declaration
30509         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30510         after all declarations.  Reported by Matthew Woehlke in
30511         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30512
30513 2009-03-18  Eric Blake  <ebb9@byu.net>
30514
30515         build-aux/compile: sync from automake
30516         * build-aux/compile: New file, from automake.
30517         * config/srclist.txt: Mention build-aux/compile.
30518
30519 2009-03-17  Bruno Haible  <bruno@clisp.org>
30520
30521         * lib/git-merge-changelog.c: Fix typo in comment.
30522         Reported by Reuben Thomas <rrt@sc3d.org>.
30523
30524 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30525
30526         * m4/regex.m4: update and improve help for
30527         --without-included-regex.
30528
30529 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30530
30531         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30532         failure on missing include files.
30533
30534 2009-03-17  Eric Blake  <ebb9@byu.net>
30535
30536         doc: mention more functions added in cygwin 1.7.0
30537         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30538         addition.
30539         * doc/posix-functions/fwscanf.texi: Likewise.
30540         * doc/posix-functions/swprintf.texi: Likewise.
30541         * doc/posix-functions/swscanf.texi: Likewise.
30542         * doc/posix-functions/vfwprintf.texi: Likewise.
30543         * doc/posix-functions/vfwscanf.texi: Likewise.
30544         * doc/posix-functions/vswprintf.texi: Likewise.
30545         * doc/posix-functions/vswscanf.texi: Likewise.
30546         * doc/posix-functions/vwprintf.texi: Likewise.
30547         * doc/posix-functions/vwscanf.texi: Likewise.
30548         * doc/posix-functions/wcscasecmp.texi: Likewise.
30549         * doc/posix-functions/wcsdup.texi: Likewise.
30550         * doc/posix-functions/wcsftime.texi: Likewise.
30551         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30552         * doc/posix-functions/wprintf.texi: Likewise.
30553         * doc/posix-functions/wscanf.texi: Likewise.
30554         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30555
30556 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30557
30558         maint.mk: really add $(AM_MAKEFLAGS)
30559         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30560         was inadvertently omitted in the last commit.
30561         Spotted by Bruno Haible.
30562
30563         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30564         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30565         $(AM_MAKEFLAGS)' rather than plain `make'.
30566
30567         gnulib-tool: execute $MAKE not make
30568         * gnulib-tool: Default $MAKE to 'make'.
30569         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30570         than make.  Initialize $MAKE in the do-autobuild script.
30571
30572         gnulib-tool: use $MAKE not make in generated files
30573         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30574         make, in generated files.  Initialize $MAKE in the do-autobuild
30575         script.
30576
30577         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30578
30579         GNUmakefile: disable parallelism only for multiple, recursive targets
30580         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30581         additions in the Makefile.
30582         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30583         by Automake.
30584         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30585         are listed on the command line and at least one of them is
30586         listed in $(ALL_RECURSIVE_TARGETS).
30587
30588 2009-03-14  Bruno Haible  <bruno@clisp.org>
30589
30590         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30591         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30592         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30593         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30594         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30595         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30596         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30597         unistr/u8-uctomb.
30598         * modules/unistr/u8-strchr (Depends-on): Likewise.
30599         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30600         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30601         unistr/u16-uctomb.
30602         * modules/unistr/u16-strchr (Depends-on): Likewise.
30603         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30604
30605 2009-03-12  Bruno Haible  <bruno@clisp.org>
30606
30607         Work around select() bug on Interix 3.5.
30608         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30609         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30610         * m4/select.m4: New file.
30611         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30612         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30613         * modules/select (Files): Add m4/select.m4.
30614         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30615         * modules/nanosleep (Depends-on): Add select.
30616         * modules/poll (Depends-on): Likewise.
30617         * doc/posix-functions/select.texi: Mention the Interix bug.
30618         Reported by Markus Duft <mduft@gentoo.org>.
30619
30620         * lib/select.c: Renamed from lib/winsock-select.c.
30621         * modules/select (Files): Add lib/select.c, remove
30622         lib/winsock-select.c.
30623         (configure.ac): Update.
30624
30625 2009-03-12  Jim Meyering  <meyering@redhat.com>
30626
30627         avoid gcc warnings about unused macro definitions
30628         * lib/readtokens.c (STREQ): Remove unused definition.
30629         * lib/xmalloc.c (SIZE_MAX): Likewise.
30630         * lib/openat-die.c (N_): Likewise.
30631         * lib/mountlist.c (SIZE_MAX): Remove definition.
30632         Instead, include <stdint.h>.
30633         * lib/readutmp.c: Likewise.
30634         * modules/readutmp (Depends-on): Add stdint.
30635         * modules/mountlist (Depends-on): Add stdint.
30636         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30637
30638 2009-03-10  Bruno Haible  <bruno@clisp.org>
30639
30640         Tests for module 'mbmemcasecoll'.
30641         * modules/mbmemcasecoll-tests: New file.
30642         * tests/test-mbmemcasecoll1.sh: New file.
30643         * tests/test-mbmemcasecoll2.sh: New file.
30644         * tests/test-mbmemcasecoll3.sh: New file.
30645         * tests/test-mbmemcasecoll.c: New file.
30646
30647         New module 'mbmemcasecoll'.
30648         * lib/mbmemcasecoll.h: New file.
30649         * lib/mbmemcasecoll.c: New file.
30650         * modules/mbmemcasecoll: New file.
30651
30652         * tests/test-mbmemcasecmp.h: New file, extracted from
30653         tests/test-mbmemcasecmp.c.
30654         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30655         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30656         (main): Update.
30657         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30658
30659 2009-03-09  Bruno Haible  <bruno@clisp.org>
30660
30661         Tests for module 'mbmemcasecmp'.
30662         * modules/mbmemcasecmp-tests: New file.
30663         * tests/test-mbmemcasecmp1.sh: New file.
30664         * tests/test-mbmemcasecmp2.sh: New file.
30665         * tests/test-mbmemcasecmp3.sh: New file.
30666         * tests/test-mbmemcasecmp.c: New file.
30667
30668         New module 'mbmemcasecmp'.
30669         * lib/mbmemcasecmp.h: New file.
30670         * lib/mbmemcasecmp.c: New file.
30671         * modules/mbmemcasecmp: New file.
30672
30673 2009-03-09  Bruno Haible  <bruno@clisp.org>
30674
30675         Tests for module 'unicase/ulc-casecoll'.
30676         * modules/unicase/ulc-casecoll-tests: New file.
30677         * tests/unicase/test-ulc-casecoll1.sh: New file.
30678         * tests/unicase/test-ulc-casecoll2.sh: New file.
30679         * tests/unicase/test-ulc-casecoll.c: New file.
30680
30681         New module 'unicase/ulc-casecoll'.
30682         * lib/unicase.h (ulc_casecoll): New declaration.
30683         * lib/unicase/ulc-casecoll.c: New file.
30684         * modules/unicase/ulc-casecoll: New file.
30685
30686         New module 'unicase/ulc-casexfrm'.
30687         * lib/unicase.h (ulc_casexfrm): New declaration.
30688         * lib/unicase/ulc-casexfrm.c: New file.
30689         * modules/unicase/ulc-casexfrm: New file.
30690
30691 2009-03-09  Bruno Haible  <bruno@clisp.org>
30692
30693         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30694         invocations.
30695
30696         * m4/mbscasecmp.m4: Remove file.
30697         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30698         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30699
30700         * m4/mbscasestr.m4: Remove file.
30701         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30702         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30703
30704         * m4/mbschr.m4: Remove file.
30705         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30706         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30707
30708         * m4/mbscspn.m4: Remove file.
30709         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30710         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30711
30712         * m4/mbslen.m4: Remove file.
30713         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30714         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30715
30716         * m4/mbsncasecmp.m4: Remove file.
30717         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30718         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30719
30720         * m4/mbsnlen.m4: Remove file.
30721         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30722         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30723
30724         * m4/mbspbrk.m4: Remove file.
30725         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30726         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30727
30728         * m4/mbspcasecmp.m4: Remove file.
30729         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30730         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30731
30732         * m4/mbsrchr.m4: Remove file.
30733         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30734         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30735
30736         * m4/mbssep.m4: Remove file.
30737         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30738         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30739
30740         * m4/mbsspn.m4: Remove file.
30741         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30742         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30743
30744         * m4/mbsstr.m4: Remove file.
30745         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30746         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30747
30748         * m4/mbstok_r.m4: Remove file.
30749         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30750         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30751
30752         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30753
30754         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30755         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30756
30757         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30758
30759 2009-03-08  Bruno Haible  <bruno@clisp.org>
30760
30761         Tests for module 'unicase/ulc-casecmp'.
30762         * modules/unicase/ulc-casecmp-tests: New file.
30763         * tests/unicase/test-ulc-casecmp1.sh: New file.
30764         * tests/unicase/test-ulc-casecmp2.sh: New file.
30765         * tests/unicase/test-ulc-casecmp.c: New file.
30766
30767         New module 'unicase/ulc-casecmp'.
30768         * lib/unicase.h (ulc_casecmp): New declaration.
30769         * lib/unicase/ulc-casecmp.c: New file.
30770         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30771         'const SRC_UNIT *'.
30772         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30773         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30774         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30775         * modules/unicase/ulc-casecmp: New file.
30776
30777         Tests for module 'unicase/u32-is-cased'.
30778         * modules/unicase/u32-is-cased-tests: New file.
30779         * tests/unicase/test-u32-is-cased.c: New file.
30780
30781         Tests for module 'unicase/u16-is-cased'.
30782         * modules/unicase/u16-is-cased-tests: New file.
30783         * tests/unicase/test-u16-is-cased.c: New file.
30784
30785         Tests for module 'unicase/u8-is-cased'.
30786         * modules/unicase/u8-is-cased-tests: New file.
30787         * tests/unicase/test-u8-is-cased.c: New file.
30788         * tests/unicase/test-is-cased.h: New file.
30789
30790         New module 'unicase/u32-is-cased'.
30791         * lib/unicase/u32-is-cased.c: New file.
30792         * modules/unicase/u32-is-cased: New file.
30793
30794         New module 'unicase/u16-is-cased'.
30795         * lib/unicase/u16-is-cased.c: New file.
30796         * modules/unicase/u16-is-cased: New file.
30797
30798         New module 'unicase/u8-is-cased'.
30799         * lib/unicase/u8-is-cased.c: New file.
30800         * lib/unicase/u-is-cased.h: New file.
30801         * modules/unicase/u8-is-cased: New file.
30802
30803         Tests for module 'unicase/u32-is-casefolded'.
30804         * modules/unicase/u32-is-casefolded-tests: New file.
30805         * tests/unicase/test-u32-is-casefolded.c: New file.
30806
30807         Tests for module 'unicase/u16-is-casefolded'.
30808         * modules/unicase/u16-is-casefolded-tests: New file.
30809         * tests/unicase/test-u16-is-casefolded.c: New file.
30810
30811         Tests for module 'unicase/u8-is-casefolded'.
30812         * modules/unicase/u8-is-casefolded-tests: New file.
30813         * tests/unicase/test-u8-is-casefolded.c: New file.
30814         * tests/unicase/test-is-casefolded.h: New file.
30815
30816         New module 'unicase/u32-is-casefolded'.
30817         * lib/unicase/u32-is-casefolded.c: New file.
30818         * modules/unicase/u32-is-casefolded: New file.
30819
30820         New module 'unicase/u16-is-casefolded'.
30821         * lib/unicase/u16-is-casefolded.c: New file.
30822         * modules/unicase/u16-is-casefolded: New file.
30823
30824         New module 'unicase/u8-is-casefolded'.
30825         * lib/unicase/u8-is-casefolded.c: New file.
30826         * modules/unicase/u8-is-casefolded: New file.
30827
30828         Tests for module 'unicase/u32-is-titlecase'.
30829         * modules/unicase/u32-is-titlecase-tests: New file.
30830         * tests/unicase/test-u32-is-titlecase.c: New file.
30831
30832         Tests for module 'unicase/u16-is-titlecase'.
30833         * modules/unicase/u16-is-titlecase-tests: New file.
30834         * tests/unicase/test-u16-is-titlecase.c: New file.
30835
30836         Tests for module 'unicase/u8-is-titlecase'.
30837         * modules/unicase/u8-is-titlecase-tests: New file.
30838         * tests/unicase/test-u8-is-titlecase.c: New file.
30839         * tests/unicase/test-is-titlecase.h: New file.
30840
30841         New module 'unicase/u32-is-titlecase'.
30842         * lib/unicase/u32-is-titlecase.c: New file.
30843         * modules/unicase/u32-is-titlecase: New file.
30844
30845         New module 'unicase/u16-is-titlecase'.
30846         * lib/unicase/u16-is-titlecase.c: New file.
30847         * modules/unicase/u16-is-titlecase: New file.
30848
30849         New module 'unicase/u8-is-titlecase'.
30850         * lib/unicase/u8-is-titlecase.c: New file.
30851         * modules/unicase/u8-is-titlecase: New file.
30852
30853         Tests for module 'unicase/u32-is-lowercase'.
30854         * modules/unicase/u32-is-lowercase-tests: New file.
30855         * tests/unicase/test-u32-is-lowercase.c: New file.
30856
30857         Tests for module 'unicase/u16-is-lowercase'.
30858         * modules/unicase/u16-is-lowercase-tests: New file.
30859         * tests/unicase/test-u16-is-lowercase.c: New file.
30860
30861         Tests for module 'unicase/u8-is-lowercase'.
30862         * modules/unicase/u8-is-lowercase-tests: New file.
30863         * tests/unicase/test-u8-is-lowercase.c: New file.
30864         * tests/unicase/test-is-lowercase.h: New file.
30865
30866         New module 'unicase/u32-is-lowercase'.
30867         * lib/unicase/u32-is-lowercase.c: New file.
30868         * modules/unicase/u32-is-lowercase: New file.
30869
30870         New module 'unicase/u16-is-lowercase'.
30871         * lib/unicase/u16-is-lowercase.c: New file.
30872         * modules/unicase/u16-is-lowercase: New file.
30873
30874         New module 'unicase/u8-is-lowercase'.
30875         * lib/unicase/u8-is-lowercase.c: New file.
30876         * modules/unicase/u8-is-lowercase: New file.
30877
30878         Tests for module 'unicase/u32-is-uppercase'.
30879         * modules/unicase/u32-is-uppercase-tests: New file.
30880         * tests/unicase/test-u32-is-uppercase.c: New file.
30881
30882         Tests for module 'unicase/u16-is-uppercase'.
30883         * modules/unicase/u16-is-uppercase-tests: New file.
30884         * tests/unicase/test-u16-is-uppercase.c: New file.
30885
30886         Tests for module 'unicase/u8-is-uppercase'.
30887         * modules/unicase/u8-is-uppercase-tests: New file.
30888         * tests/unicase/test-u8-is-uppercase.c: New file.
30889         * tests/unicase/test-is-uppercase.h: New file.
30890
30891         New module 'unicase/u32-is-uppercase'.
30892         * lib/unicase/u32-is-uppercase.c: New file.
30893         * modules/unicase/u32-is-uppercase: New file.
30894
30895         New module 'unicase/u16-is-uppercase'.
30896         * lib/unicase/u16-is-uppercase.c: New file.
30897         * modules/unicase/u16-is-uppercase: New file.
30898
30899         New module 'unicase/u8-is-uppercase'.
30900         * lib/unicase/u8-is-uppercase.c: New file.
30901         * modules/unicase/u8-is-uppercase: New file.
30902
30903         New module 'unicase/u32-is-invariant'.
30904         * lib/unicase/u32-is-invariant.c: New file.
30905         * modules/unicase/u32-is-invariant: New file.
30906
30907         New module 'unicase/u16-is-invariant'.
30908         * lib/unicase/u16-is-invariant.c: New file.
30909         * modules/unicase/u16-is-invariant: New file.
30910
30911         New module 'unicase/u8-is-invariant'.
30912         * lib/unicase/u8-is-invariant.c: New file.
30913         * lib/unicase/invariant.h: New file.
30914         * lib/unicase/u-is-invariant.h: New file.
30915         * modules/unicase/u8-is-invariant: New file.
30916
30917         Tests for module 'unicase/u32-casecoll'.
30918         * modules/unicase/u32-casecoll-tests: New file.
30919         * tests/unicase/test-u32-casecoll.c: New file.
30920
30921         Tests for module 'unicase/u16-casecoll'.
30922         * modules/unicase/u16-casecoll-tests: New file.
30923         * tests/unicase/test-u16-casecoll.c: New file.
30924
30925         Tests for module 'unicase/u8-casecoll'.
30926         * modules/unicase/u8-casecoll-tests: New file.
30927         * tests/unicase/test-u8-casecoll.c: New file.
30928
30929         New module 'unicase/u32-casecoll'.
30930         * lib/unicase/u32-casecoll.c: New file.
30931         * modules/unicase/u32-casecoll: New file.
30932
30933         New module 'unicase/u16-casecoll'.
30934         * lib/unicase/u16-casecoll.c: New file.
30935         * modules/unicase/u16-casecoll: New file.
30936
30937         New module 'unicase/u8-casecoll'.
30938         * lib/unicase/u8-casecoll.c: New file.
30939         * lib/unicase/u-casecoll.h: New file.
30940         * modules/unicase/u8-casecoll: New file.
30941
30942         New module 'unicase/u32-casexfrm'.
30943         * lib/unicase/u32-casexfrm.c: New file.
30944         * modules/unicase/u32-casexfrm: New file.
30945
30946         New module 'unicase/u16-casexfrm'.
30947         * lib/unicase/u16-casexfrm.c: New file.
30948         * modules/unicase/u16-casexfrm: New file.
30949
30950         New module 'unicase/u8-casexfrm'.
30951         * lib/unicase/u8-casexfrm.c: New file.
30952         * lib/unicase/u-casexfrm.h: New file.
30953         * modules/unicase/u8-casexfrm: New file.
30954
30955         Tests for module 'unicase/u32-casecmp'.
30956         * modules/unicase/u32-casecmp-tests: New file.
30957         * tests/unicase/test-u32-casecmp.c: New file.
30958
30959         Tests for module 'unicase/u16-casecmp'.
30960         * modules/unicase/u16-casecmp-tests: New file.
30961         * tests/unicase/test-u16-casecmp.c: New file.
30962
30963         Tests for module 'unicase/u8-casecmp'.
30964         * modules/unicase/u8-casecmp-tests: New file.
30965         * tests/unicase/test-u8-casecmp.c: New file.
30966         * tests/unicase/test-casecmp.h: New file.
30967
30968         New module 'unicase/u32-casecmp'.
30969         * lib/unicase/u32-casecmp.c: New file.
30970         * modules/unicase/u32-casecmp: New file.
30971
30972         New module 'unicase/u16-casecmp'.
30973         * lib/unicase/u16-casecmp.c: New file.
30974         * modules/unicase/u16-casecmp: New file.
30975
30976         New module 'unicase/u8-casecmp'.
30977         * lib/unicase/u8-casecmp.c: New file.
30978         * lib/unicase/u-casecmp.h: New file.
30979         * modules/unicase/u8-casecmp: New file.
30980
30981         Tests for module 'unicase/u32-casefold'.
30982         * modules/unicase/u32-casefold-tests: New file.
30983         * tests/unicase/test-u32-casefold.c: New file.
30984
30985         Tests for module 'unicase/u16-casefold'.
30986         * modules/unicase/u16-casefold-tests: New file.
30987         * tests/unicase/test-u16-casefold.c: New file.
30988
30989         Tests for module 'unicase/u8-casefold'.
30990         * modules/unicase/u8-casefold-tests: New file.
30991         * tests/unicase/test-u8-casefold.c: New file.
30992
30993         New module 'unicase/u32-casefold'.
30994         * lib/unicase/u32-casefold.c: New file.
30995         * modules/unicase/u32-casefold: New file.
30996
30997         New module 'unicase/u16-casefold'.
30998         * lib/unicase/u16-casefold.c: New file.
30999         * modules/unicase/u16-casefold: New file.
31000
31001         New module 'unicase/u8-casefold'.
31002         * lib/unicase/u8-casefold.c: New file.
31003         * lib/unicase/u-casefold.h: New file.
31004         * modules/unicase/u8-casefold: New file.
31005
31006         New module 'unicase/tocasefold'.
31007         * lib/unicase/casefold.h: New file.
31008         * lib/unicase/tocasefold.c: New file.
31009         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31010         * modules/unicase/tocasefold: New file.
31011
31012         Tests for module 'unicase/u32-totitle'.
31013         * modules/unicase/u32-totitle-tests: New file.
31014         * tests/unicase/test-u32-totitle.c: New file.
31015
31016         Tests for module 'unicase/u16-totitle'.
31017         * modules/unicase/u16-totitle-tests: New file.
31018         * tests/unicase/test-u16-totitle.c: New file.
31019
31020         Tests for module 'unicase/u8-totitle'.
31021         * modules/unicase/u8-totitle-tests: New file.
31022         * tests/unicase/test-u8-totitle.c: New file.
31023
31024         New module 'unicase/u32-totitle'.
31025         * lib/unicase/u32-totitle.c: New file.
31026         * modules/unicase/u32-totitle: New file.
31027
31028         New module 'unicase/u16-totitle'.
31029         * lib/unicase/u16-totitle.c: New file.
31030         * modules/unicase/u16-totitle: New file.
31031
31032         New module 'unicase/u8-totitle'.
31033         * lib/unicase/u8-totitle.c: New file.
31034         * lib/unicase/u-totitle.h: New file.
31035         * modules/unicase/u8-totitle: New file.
31036
31037         Tests for module 'unicase/u32-tolower'.
31038         * modules/unicase/u32-tolower-tests: New file.
31039         * tests/unicase/test-u32-tolower.c: New file.
31040
31041         Tests for module 'unicase/u16-tolower'.
31042         * modules/unicase/u16-tolower-tests: New file.
31043         * tests/unicase/test-u16-tolower.c: New file.
31044
31045         Tests for module 'unicase/u8-tolower'.
31046         * modules/unicase/u8-tolower-tests: New file.
31047         * tests/unicase/test-u8-tolower.c: New file.
31048
31049         New module 'unicase/u32-tolower'.
31050         * lib/unicase/u32-tolower.c: New file.
31051         * modules/unicase/u32-tolower: New file.
31052
31053         New module 'unicase/u16-tolower'.
31054         * lib/unicase/u16-tolower.c: New file.
31055         * modules/unicase/u16-tolower: New file.
31056
31057         New module 'unicase/u8-tolower'.
31058         * lib/unicase/u8-tolower.c: New file.
31059         * modules/unicase/u8-tolower: New file.
31060
31061         Tests for module 'unicase/u32-toupper'.
31062         * modules/unicase/u32-toupper-tests: New file.
31063         * tests/unicase/test-u32-toupper.c: New file.
31064
31065         Tests for module 'unicase/u16-toupper'.
31066         * modules/unicase/u16-toupper-tests: New file.
31067         * tests/unicase/test-u16-toupper.c: New file.
31068
31069         Tests for module 'unicase/u8-toupper'.
31070         * modules/unicase/u8-toupper-tests: New file.
31071         * tests/unicase/test-u8-toupper.c: New file.
31072
31073         New module 'unicase/u32-toupper'.
31074         * lib/unicase/u32-toupper.c: New file.
31075         * modules/unicase/u32-toupper: New file.
31076
31077         New module 'unicase/u16-toupper'.
31078         * lib/unicase/u16-toupper.c: New file.
31079         * modules/unicase/u16-toupper: New file.
31080
31081         New module 'unicase/u8-toupper'.
31082         * lib/unicase/u8-toupper.c: New file.
31083         * modules/unicase/u8-toupper: New file.
31084
31085         New module 'unicase/u32-casemap'.
31086         * lib/unicase/u32-casemap.c: New file.
31087         * modules/unicase/u32-casemap: New file.
31088
31089         New module 'unicase/u16-casemap'.
31090         * lib/unicase/u16-casemap.c: New file.
31091         * modules/unicase/u16-casemap: New file.
31092
31093         New module 'unicase/u8-casemap'.
31094         * lib/unicase/unicasemap.h: New file.
31095         * lib/unicase/u8-casemap.c: New file.
31096         * lib/unicase/u-casemap.h: New file.
31097         * modules/unicase/u8-casemap: New file.
31098
31099         New module 'unicase/special-casing'.
31100         * lib/unicase/special-casing.h: New file.
31101         * lib/unicase/special-casing.c: New file.
31102         * lib/unicase/special-casing-table.gperf: New file, generated by
31103         gen-uni-tables.c.
31104         * modules/unicase/special-casing: New file.
31105
31106         Tests for module 'unicase/locale-language'.
31107         * modules/unicase/locale-language-tests: New file.
31108         * tests/unicase/test-locale-language.sh: New file.
31109         * tests/unicase/test-locale-language.c: New file.
31110
31111         New module 'unicase/locale-language'.
31112         * lib/unicase/locale-language.c: New file.
31113         * lib/unicase/locale-languages.gperf: New file.
31114         * modules/unicase/locale-language: New file.
31115
31116         Generate more tables for case conversion and case folding.
31117         * lib/gen-uni-tables.c (SCC_*): New enum items.
31118         (struct special_casing_rule): New type.
31119         (casing_rules, num_casing_rules, allocated_casing_rules): New
31120         variables.
31121         (add_casing_rule, fill_casing_rules): New functions.
31122         (struct casefold_rule): New type.
31123         (casefolding_rules, num_casefolding_rules,
31124         allocated_casefolding_rules): New variables.
31125         (fill_casefolding_rules): New function.
31126         (unicode_casefold): New variable.
31127         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31128         sort_casing_rules, output_casing_rules): New functions.
31129         (main): Accept to more arguments: SpecialCasing.txt and
31130         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31131         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31132         Output mapping for casefolding.
31133
31134         * lib/unicase.h: Include stdbool.h, uninorm.h.
31135         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31136         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31137         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31138         arguments.
31139         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31140         resultp arguments.
31141         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31142         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31143         resultp arguments.
31144         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31145         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31146         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31147         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31148         declarations.
31149         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31150
31151 2009-03-08  Bruno Haible  <bruno@clisp.org>
31152
31153         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31154         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31155         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31156         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31157
31158 2009-03-07  Bruno Haible  <bruno@clisp.org>
31159
31160         Adjust u*_normcmp, u*_normcoll API.
31161         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31162         u16_normcoll, u32_normcoll): Change failure conventions.
31163         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31164         errno and return -1.
31165         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31166
31167 2009-03-07  Bruno Haible  <bruno@clisp.org>
31168
31169         Tests for module 'uninorm/u32-normcoll'.
31170         * modules/uninorm/u32-normcoll-tests: New file.
31171         * tests/uninorm/test-u32-normcoll.c: New file.
31172
31173         Tests for module 'uninorm/u16-normcoll'.
31174         * modules/uninorm/u16-normcoll-tests: New file.
31175         * tests/uninorm/test-u16-normcoll.c: New file.
31176
31177         Tests for module 'uninorm/u8-normcoll'.
31178         * modules/uninorm/u8-normcoll-tests: New file.
31179         * tests/uninorm/test-u8-normcoll.c: New file.
31180
31181 2009-03-07  Bruno Haible  <bruno@clisp.org>
31182
31183         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31184         tests/uninorm/test-u32-normcmp.c.
31185         * tests/uninorm/test-u32-normcmp.c: Include it.
31186         (test_nonascii): New function, extracted from main. Add some more
31187         tests.
31188         (main): Invoke test_ascii and test_nonascii.
31189         * modules/uninorm/u32-normcmp-tests (Files): Add
31190         tests/uninorm/test-u32-normcmp.h.
31191         (Depends-on): Remove uninorm/u32-normcmp.
31192
31193         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31194         tests/uninorm/test-u16-normcmp.c.
31195         * tests/uninorm/test-u16-normcmp.c: Include it.
31196         (test_nonascii): New function, extracted from main. Add some more
31197         tests.
31198         (main): Invoke test_ascii and test_nonascii.
31199         * modules/uninorm/u16-normcmp-tests (Files): Add
31200         tests/uninorm/test-u16-normcmp.h.
31201         (Depends-on): Remove uninorm/u16-normcmp.
31202
31203         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31204         tests/uninorm/test-u8-normcmp.c.
31205         * tests/uninorm/test-u8-normcmp.c: Include it.
31206         (test_nonascii): New function, extracted from main. Add some more
31207         tests.
31208         (main): Invoke test_ascii and test_nonascii.
31209         * modules/uninorm/u8-normcmp-tests (Files): Add
31210         tests/uninorm/test-u8-normcmp.h.
31211         (Depends-on): Remove uninorm/u8-normcmp.
31212
31213 2009-03-07  Bruno Haible  <bruno@clisp.org>
31214
31215         New module 'uninorm/u32-normcoll'.
31216         * lib/uninorm/u32-normcoll.c: New file.
31217         * modules/uninorm/u32-normcoll: New file.
31218
31219         New module 'uninorm/u16-normcoll'.
31220         * lib/uninorm/u16-normcoll.c: New file.
31221         * modules/uninorm/u16-normcoll: New file.
31222
31223         New module 'uninorm/u8-normcoll'.
31224         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31225         declarations.
31226         * lib/uninorm/u8-normcoll.c: New file.
31227         * lib/uninorm/u-normcoll.h: New file.
31228         * modules/uninorm/u8-normcoll: New file.
31229
31230         New module 'uninorm/u32-normxfrm'.
31231         * lib/uninorm/u32-normxfrm.c: New file.
31232         * modules/uninorm/u32-normxfrm: New file.
31233
31234         New module 'uninorm/u16-normxfrm'.
31235         * lib/uninorm/u16-normxfrm.c: New file.
31236         * modules/uninorm/u16-normxfrm: New file.
31237
31238         New module 'uninorm/u8-normxfrm'.
31239         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31240         declarations.
31241         * lib/uninorm/u8-normxfrm.c: New file.
31242         * lib/uninorm/u-normxfrm.h: New file.
31243         * modules/uninorm/u8-normxfrm: New file.
31244
31245 2009-03-07  Bruno Haible  <bruno@clisp.org>
31246
31247         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31248         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31249         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31250
31251 2009-03-07  Bruno Haible  <bruno@clisp.org>
31252
31253         New module 'memxfrm'.
31254         * lib/memxfrm.h: New file.
31255         * lib/memxfrm.c: New file.
31256         * modules/memxfrm: New file.
31257
31258 2009-03-07  Bruno Haible  <bruno@clisp.org>
31259
31260         New module 'memcmp2'.
31261         * lib/memcmp2.h: New file.
31262         * lib/memcmp2.c: New file.
31263         * modules/memcmp2: New file.
31264
31265 2009-03-07  Bruno Haible  <bruno@clisp.org>
31266
31267         Tests for module 'uninorm/decomposing-form'.
31268         * modules/uninorm/decomposing-form-tests: New file.
31269         * tests/uninorm/test-decomposing-form.c: New file.
31270
31271         New module 'uninorm/decomposing-form'.
31272         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31273         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31274         Add 'decomposing_variant' field.
31275         * lib/uninorm/decomposing-form.c: New file.
31276         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31277         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31278         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31279         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31280         * modules/uninorm/decomposing-form: New file.
31281         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31282         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31283
31284 2009-03-07  Bruno Haible  <bruno@clisp.org>
31285
31286         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31287         strings.
31288
31289 2009-03-06  Bruno Haible  <bruno@clisp.org>
31290
31291         Tests for module 'uninorm/u32-normcmp'.
31292         * tests/uninorm/test-u32-normcmp.c: New file.
31293         * modules/uninorm/u32-normcmp-tests: New file.
31294
31295         Tests for module 'uninorm/u16-normcmp'.
31296         * tests/uninorm/test-u16-normcmp.c: New file.
31297         * modules/uninorm/u16-normcmp-tests: New file.
31298
31299         Tests for module 'uninorm/u8-normcmp'.
31300         * tests/uninorm/test-u8-normcmp.c: New file.
31301         * modules/uninorm/u8-normcmp-tests: New file.
31302
31303         New module 'uninorm/u32-normcmp'.
31304         * lib/uninorm/u32-normcmp.c: New file.
31305         * modules/uninorm/u32-normcmp: New file.
31306
31307         New module 'uninorm/u16-normcmp'.
31308         * lib/uninorm/u16-normcmp.c: New file.
31309         * modules/uninorm/u16-normcmp: New file.
31310
31311         New module 'uninorm/u8-normcmp'.
31312         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31313         declarations.
31314         * lib/uninorm/u8-normcmp.c: New file.
31315         * lib/uninorm/u-normcmp.h: New file.
31316         * modules/uninorm/u8-normcmp: New file.
31317
31318 2009-03-06  Bruno Haible  <bruno@clisp.org>
31319
31320         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31321         Reported by Eric Blake.
31322
31323 2009-03-06  Eric Blake  <ebb9@byu.net>
31324             Bruno Haible  <bruno@clisp.org>
31325
31326         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31327         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31328         condition.
31329         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31330         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31331         condition.
31332         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31333
31334 2009-03-06  Eric Blake  <ebb9@byu.net>
31335
31336         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31337         to avoid compiler warnings.
31338         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31339
31340 2009-03-05  Bruno Haible  <bruno@clisp.org>
31341
31342         * tests/test-ftell.c (main): Disable test beyond end of file on
31343         FreeMiNT.
31344         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31345
31346 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31347
31348         * lib/filevercmp.c: Move hidden files up in ordering.
31349         * tests/test-filevercmp.c: Add tests for hidden files.
31350
31351 2009-03-04  Bruno Haible  <bruno@clisp.org>
31352
31353         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31354         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31355         AM_CFLAGS.
31356         Reported by Simon Josefsson.
31357
31358 2009-03-03  Bruno Haible  <bruno@clisp.org>
31359
31360         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31361         Reported by Simon Josefsson.
31362
31363         * doc/ld-version-script.texi: Update node reference.
31364
31365 2009-03-03  Bruno Haible  <bruno@clisp.org>
31366
31367         * modules/visibility (License): Change to 'unlimited'.
31368         Suggested by Simon Josefsson.
31369
31370 2009-03-03  Jim Meyering  <meyering@redhat.com>
31371
31372         unlinkdir: cannot_unlink_dir may modify process state
31373         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31374         it's neither thread-safe nor appropriate for use in a library.
31375
31376 2009-03-03  Eric Blake  <ebb9@byu.net>
31377
31378         test-closein: silence test under Darwin
31379         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31380         care if it dies from EPIPE or EBADF.
31381
31382 2009-03-03  Bruno Haible  <bruno@clisp.org>
31383
31384         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31385         earlier.
31386         * doc/visibility.texi: Fix @node and @section.
31387
31388 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31389
31390         * doc/gnulib.texi: Link to sections for ld version script and
31391         visibility.
31392         * doc/visibility.texi: Add @node and @section.
31393         * modules/ld-version-script: New module.
31394         * m4/ld-version-script.m4: New file.
31395         * doc/ld-version-script.texi: New file.
31396
31397 2009-03-02  David Lutterkort  <lutter@redhat.com>
31398
31399         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31401
31402 2009-03-02  Bruno Haible  <bruno@clisp.org>
31403
31404         * doc/visibility.texi: Mention libtool's -export-symbols option.
31405
31406 2009-03-02  Jim Meyering  <meyering@redhat.com>
31407
31408         announce-gen: new option: --no-print-checksums
31409         * build-aux/announce-gen (usage): Describe it.
31410         (print_checksums): Print a newline here, not in the [*] footnote.
31411         (main): Honor it.
31412
31413 2009-03-01  Bruno Haible  <bruno@clisp.org>
31414
31415         Use socklen_t in the native Windows replacements prototypes.
31416         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31417         instead of 'int'.
31418         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31419         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31420         * modules/getsockopt (Depends-on): Add socklen.
31421         * modules/setsockopt (Depends-on): Add socklen.
31422
31423 2009-03-01  Bruno Haible  <bruno@clisp.org>
31424
31425         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31426         least 4.2.
31427
31428 2009-03-01  Eric Blake  <ebb9@byu.net>
31429             Bruno Haible  <bruno@clisp.org>
31430
31431         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31432         error messages.
31433         * lib/wait-process.c (wait_subprocess): Omit error message about
31434         deadly signal sent to the child of termsigp != NULL.
31435
31436 2009-03-01  Eric Blake  <ebb9@byu.net>
31437
31438         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31439
31440 2009-03-01  Bruno Haible  <bruno@clisp.org>
31441
31442         Avoid a gcc warning.
31443         * tests/test-sched.c (b): Make global.
31444         Reported by Eric Blake.
31445
31446 2009-01-19  Martin Lambers  <marlam@marlam.de>
31447
31448         Provide POSIX semantics for socket timeout options on W32.
31449         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31450         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31451         * modules/setsockopt: Depend on sys_time module for struct timeval.
31452         * modules/getsockopt: Depend on sys_time module for struct timeval.
31453
31454 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31455
31456         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31457         __USE_GNU, for consistency with netdb.in.h.
31458         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31459
31460 2009-03-01  Bruno Haible  <bruno@clisp.org>
31461
31462         More support for FreeMiNT.
31463         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31464         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31465
31466 2009-03-01  Bruno Haible  <bruno@clisp.org>
31467
31468         More support for FreeMiNT.
31469         * lib/fpurge.c (fpurge): Correct last commit.
31470         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31471
31472 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31473
31474         Fix unportable awk script in vc-list-files.
31475         * build-aux/vc-list-files: In the replacement awk script, use
31476         substr with a second argument of 1, not zero.
31477         Report by Simon Josefsson.
31478
31479 2009-02-28  Bruno Haible  <bruno@clisp.org>
31480
31481         More support for FreeMiNT.
31482         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31483         to FreeMiNT today.
31484         * lib/fwriting.c (fwriting): Likewise.
31485         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31486
31487 2009-02-28  Bruno Haible  <bruno@clisp.org>
31488
31489         * tests/test-freadseek.c (main): Disable test beyond end of file on
31490         FreeMiNT.
31491         * tests/test-ftello.c (main): Likewise.
31492         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31493
31494 2009-02-28  Bruno Haible  <bruno@clisp.org>
31495
31496         Add tentative support for FreeMiNT.
31497         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31498         * lib/fpurge.c (fpurge): Likewise.
31499         * lib/freadable.c (freadable): Likewise.
31500         * lib/freading.c (freading): Likewise.
31501         * lib/freadptr.c (freadptr): Likewise.
31502         * lib/freadseek.c (freadptrinc): Likewise.
31503         * lib/fseeko.c (rpl_fseeko): Likewise.
31504         * lib/fseterr.c (fseterr): Likewise.
31505         * lib/fwritable.c (fwritable): Likewise.
31506         * lib/fwriting.c (fwriting): Likewise.
31507         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31508         Hourihane.
31509         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31510
31511 2009-02-28  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31514         SIGCHLD.
31515         Reported by Jim Meyering.
31516
31517 2009-02-28  Bruno Haible  <bruno@clisp.org>
31518
31519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31520         Mention the results of these tests on various platforms.
31521         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31522         order.
31523         * doc/posix-functions/printf.texi: Likewise.
31524         * doc/posix-functions/snprintf.texi: Likewise.
31525         * doc/posix-functions/sprintf.texi: Likewise.
31526         * doc/posix-functions/vfprintf.texi: Likewise.
31527         * doc/posix-functions/vprintf.texi: Likewise.
31528         * doc/posix-functions/vsnprintf.texi: Likewise.
31529         * doc/posix-functions/vsprintf.texi: Likewise.
31530         * doc/glibc-functions/obstack_printf.texi: Likewise.
31531         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31532
31533 2009-02-28  Bruno Haible  <bruno@clisp.org>
31534
31535         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31536         Reported by Loïc Minier <lool@dooz.org>.
31537
31538 2009-02-27  Bruno Haible  <bruno@clisp.org>
31539
31540         * gnulib-tool (func_import): Make the sed expression used to create the
31541         sed script for updating the .gitignore file POSIX compliant.
31542         Reported by Eric Blake.
31543
31544 2009-02-27  Bruno Haible  <bruno@clisp.org>
31545
31546         * gnulib-tool (sed): Don't alias as "sed --posix".
31547         Reported by Eric Blake.
31548
31549 2009-02-27  Bruno Haible  <bruno@clisp.org>
31550
31551         Avoid test link errors.
31552         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31553         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31554         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31555         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31557
31558 2009-02-27  Bruno Haible  <bruno@clisp.org>
31559
31560         Avoid spurious "(cached)" in configure output.
31561         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31562         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31563         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31564         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31565         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31566         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31567         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31568         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31569         Reported by Eric Blake.
31570
31571 2009-02-27  Eric Blake  <ebb9@byu.net>
31572
31573         printf: fix regression in previous patch
31574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31575
31576 2009-02-27  Bruno Haible  <bruno@clisp.org>
31577
31578         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31579         value.
31580         * lib/stdint.in.h: Likewise.
31581         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31582
31583 2009-02-27  Eric Blake  <ebb9@byu.net>
31584
31585         doc: mention more functions added in cygwin 1.7.0
31586         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31587         addition.
31588         * doc/posix-functions/open_wmemstream.texi: Likewise.
31589         * doc/posix-functions/wcsnlen.texi: Likewise.
31590         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31591         * doc/posix-functions/wcstod.texi: Likewise.
31592         * doc/posix-functions/wcstof.texi: Likewise.
31593         * doc/posix-functions/wcstoimax.texi: Likewise.
31594         * doc/posix-functions/wcstok.texi: Likewise.
31595         * doc/posix-functions/wcstoumax.texi: Likewise.
31596
31597         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31599         * doc/posix-functions/fprintf.texi: Update.
31600         * doc/posix-functions/printf.texi: Update.
31601         * doc/posix-functions/snprintf.texi: Update.
31602         * doc/posix-functions/sprintf.texi: Update.
31603         * doc/posix-functions/vfprintf.texi: Update.
31604         * doc/posix-functions/vprintf.texi: Update.
31605         * doc/posix-functions/vsnprintf.texi: Update.
31606         * doc/posix-functions/vsprintf.texi: Update.
31607         * doc/glibc-functions/obstack_printf.texi: Update.
31608         * doc/glibc-functions/obstack_vprintf.texi: Update.
31609
31610 2009-02-26  Eric Blake  <ebb9@byu.net>
31611
31612         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31613         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31614         compilation bug by using runtime conversion.
31615         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31616         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31617         * modules/ceill-tests (Files): Use nan.h.
31618         * modules/floorl-tests (Files): Likewise.
31619         * modules/frexpl-tests (Files): Likewise.
31620         * modules/isnanl-tests (Files): Likewise.
31621         * modules/ldexpl-tests (Files): Likewise.
31622         * modules/roundl-tests (Files): Likewise.
31623         * modules/truncl-tests (Files): Likewise.
31624         * tests/test-ceill.c (main): Use a working NaN.
31625         * tests/test-floorl.c (main): Likewise.
31626         * tests/test-frexpl.c (main): Likewise.
31627         * tests/test-isnan.c (test_long_double): Likewise.
31628         * tests/test-isnanl.h (main): Likewise.
31629         * tests/test-ldexpl.h (main): Likewise.
31630         * tests/test-roundl.h (main): Likewise.
31631         * tests/test-truncl.h (main): Likewise.
31632         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31633
31634 2009-02-26  Eric Blake  <ebb9@byu.net>
31635             Bruno Haible  <bruno@clisp.org>
31636
31637         Work around a *printf bug with %ls on Solaris.
31638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31639         precision is specified, sprintf stops converting the wide string
31640         argument when the number of bytes that have been produced by this
31641         conversion equals or exceeds the precision.
31642         * doc/posix-functions/fprintf.texi: Update.
31643         * doc/posix-functions/printf.texi: Update.
31644         * doc/posix-functions/snprintf.texi: Update.
31645         * doc/posix-functions/sprintf.texi: Update.
31646         * doc/posix-functions/vfprintf.texi: Update.
31647         * doc/posix-functions/vprintf.texi: Update.
31648         * doc/posix-functions/vsnprintf.texi: Update.
31649         * doc/posix-functions/vsprintf.texi: Update.
31650         * doc/glibc-functions/obstack_printf.texi: Update.
31651         * doc/glibc-functions/obstack_vprintf.texi: Update.
31652
31653 2009-02-26  Eric Blake  <ebb9@byu.net>
31654
31655         stdlib: favor compiler check of random.h
31656         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31657         to avoid an ObjC random.h installed by Swarm.
31658
31659 2009-02-26  Bruno Haible  <bruno@clisp.org>
31660
31661         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31662         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31663         Reported by Gary V. Vaughan <gary@gnu.org>.
31664
31665 2009-02-26  Bruno Haible  <bruno@clisp.org>
31666
31667         Fix *printf behaviour regarding the %ls directive.
31668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31669         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31670         NEED_PRINTF_DIRECTIVE_LS.
31671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31672         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31673         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31674         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31675         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31676         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31677         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31678         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31680         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31682         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31686         * doc/posix-functions/fprintf.texi: Update.
31687         * doc/posix-functions/printf.texi: Update.
31688         * doc/posix-functions/snprintf.texi: Update.
31689         * doc/posix-functions/sprintf.texi: Update.
31690         * doc/posix-functions/vfprintf.texi: Update.
31691         * doc/posix-functions/vprintf.texi: Update.
31692         * doc/posix-functions/vsnprintf.texi: Update.
31693         * doc/posix-functions/vsprintf.texi: Update.
31694         * doc/glibc-functions/obstack_printf.texi: Update.
31695         * doc/glibc-functions/obstack_vprintf.texi: Update.
31696         Reported by Eric Blake.
31697
31698 2009-02-25  Bruno Haible  <bruno@clisp.org>
31699
31700         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31701         with known value.
31702         Reported by Gary V. Vaughan <gary@gnu.org>.
31703
31704 2009-02-25  Bruno Haible  <bruno@clisp.org>
31705
31706         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31707         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31708         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31709         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31710         Reported by Gary V. Vaughan <gary@gnu.org>.
31711
31712 2009-02-25  Bruno Haible  <bruno@clisp.org>
31713
31714         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31715         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31716         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31717         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31718         Reported by Gary V. Vaughan <gary@gnu.org>.
31719
31720 2009-02-25  Eric Blake  <ebb9@byu.net>
31721
31722         tests: skip fseek/ftell tests if ungetc is broken
31723         * m4/ungetc.m4: New file.
31724         * modules/fseek-tests: Split test, so ungetc dependency is
31725         separate from rest of test.
31726         * modules/fseeko-tests: Likewise.
31727         * modules/ftell-tests: Likewise.
31728         * modules/ftello-tests: Likewise.
31729         * tests/test-fseek.c (main): Isolate ungetc dependency.
31730         * tests/test-fseeko.c (main): Likewise.
31731         * tests/test-ftell.c (main): Likewise.
31732         * tests/test-ftello.c (main): Likewise.
31733         * tests/test-fseek2.sh: New file.
31734         * tests/test-fseeko2.sh: Likewise.
31735         * tests/test-ftell2.sh: Likewise.
31736         * tests/test-ftello2.sh: Likewise.
31737
31738 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31739
31740         test-getaddrinfo: fix usage of skip return code 77
31741         * tests/test-gettaddrinfo.c: Return skip code 77 only
31742         for first occurance of skip (4x77 is not 77)
31743
31744 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31745
31746         strtod: avoid C99 decl-after-statement
31747         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31748
31749 2009-02-24  Eric Blake  <ebb9@byu.net>
31750
31751         strtod: detect HP-UX 11.31 bug
31752         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31753         Reported by Gary V. Vaughan.
31754
31755 2009-02-23  Bruno Haible  <bruno@clisp.org>
31756
31757         Fix invalid read past end of memory block.
31758         * lib/vasnprintf.c (DCHAR_SET): Define.
31759         (local_wcslen): Define only when needed.
31760         (local_strnlen, local_wcsnlen): New functions.
31761         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31762         directives that involve a conversion ourselves.
31763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31764         wcsnlen, mbrtowc, wcrtomb.
31765         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31766         * tests/test-vasprintf-posix.c (test_function): Likewise.
31767         * tests/test-snprintf-posix.h (test_function): Likewise.
31768         * tests/test-sprintf-posix.h (test_function): Likewise.
31769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31770
31771 2009-02-22  Bruno Haible  <bruno@clisp.org>
31772
31773         Implement new clarified decomposition of Hangul syllables.
31774         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31775         of type LTV, return only a pairwise decomposition.
31776         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31777         Likewise.
31778         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31779         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31780         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31781
31782 2009-02-22  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31785         zero-length results and shrink excess allocated memory.
31786         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31787         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31788         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31789         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31790         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31791         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31792         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31793         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31794         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31795         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31796         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31797         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31798
31799 2009-02-21  Bruno Haible  <bruno@clisp.org>
31800
31801         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31802         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31803         spaces after a period. Put a space between a macro name and its
31804         argument list. Trivial rewordings.
31805         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31806         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31807         (main): Return 0 explicitly.
31808
31809 2009-02-21  Bruno Haible  <bruno@clisp.org>
31810
31811         Tests for module 'uninorm/filter'.
31812         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31813         * modules/uninorm/filter-tests: New file.
31814
31815         New module 'uninorm/filter'.
31816         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31817         uninorm_filter_flush, uninorm_filter_free): New declarations.
31818         * lib/uninorm/uninorm-filter.c: New file.
31819         * modules/uninorm/filter: New file.
31820
31821 2009-02-21  Bruno Haible  <bruno@clisp.org>
31822
31823         Tests for module 'uninorm/nfkc'.
31824         * tests/uninorm/test-nfkc.c: New file.
31825         * tests/uninorm/test-u8-nfkc.c: New file.
31826         * tests/uninorm/test-u16-nfkc.c: New file.
31827         * tests/uninorm/test-u32-nfkc.c: New file.
31828         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31829         * tests/uninorm/test-u32-nfkc-big.c: New file.
31830         * modules/uninorm/nfkc-tests: New file.
31831
31832         New module 'uninorm/nfkc'.
31833         * lib/uninorm/nfkc.c: New file.
31834         * modules/uninorm/nfkc: New file.
31835
31836         Tests for module 'uninorm/nfkd'.
31837         * tests/uninorm/test-nfkd.c: New file.
31838         * tests/uninorm/test-u8-nfkd.c: New file.
31839         * tests/uninorm/test-u16-nfkd.c: New file.
31840         * tests/uninorm/test-u32-nfkd.c: New file.
31841         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31842         * tests/uninorm/test-u32-nfkd-big.c: New file.
31843         * modules/uninorm/nfkd-tests: New file.
31844
31845         New module 'uninorm/nfkd'.
31846         * lib/uninorm/nfkd.c: New file.
31847         * modules/uninorm/nfkd: New file.
31848
31849         Tests for module 'uninorm/nfc'.
31850         * tests/uninorm/test-nfc.c: New file.
31851         * tests/uninorm/test-u8-nfc.c: New file.
31852         * tests/uninorm/test-u16-nfc.c: New file.
31853         * tests/uninorm/test-u32-nfc.c: New file.
31854         * tests/uninorm/test-u32-nfc-big.sh: New file.
31855         * tests/uninorm/test-u32-nfc-big.c: New file.
31856         * modules/uninorm/nfc-tests: New file.
31857
31858         New module 'uninorm/nfc'.
31859         * lib/uninorm/nfc.c: New file.
31860         * modules/uninorm/nfc: New file.
31861
31862         Tests for module 'uninorm/nfd'.
31863         * tests/uninorm/test-nfd.c: New file.
31864         * tests/uninorm/test-u8-nfd.c: New file.
31865         * tests/uninorm/test-u16-nfd.c: New file.
31866         * tests/uninorm/test-u32-nfd.c: New file.
31867         * tests/uninorm/test-u32-nfd-big.sh: New file.
31868         * tests/uninorm/test-u32-nfd-big.c: New file.
31869         * tests/uninorm/test-u32-normalize-big.h: New file.
31870         * tests/uninorm/test-u32-normalize-big.c: New file.
31871         * tests/uninorm/NormalizationTest.txt: New file, created from
31872         Unicode 5.1.0 NormalizationTest.txt.
31873         * modules/uninorm/nfd-tests: New file.
31874
31875         New module 'uninorm/nfd'.
31876         * lib/uninorm/nfd.c: New file.
31877         * modules/uninorm/nfd: New file.
31878
31879         New module 'uninorm/u32-normalize'.
31880         * lib/uninorm/u32-normalize.c: New file.
31881         * modules/uninorm/u32-normalize: New file.
31882
31883         New module 'uninorm/u16-normalize'.
31884         * lib/uninorm/u16-normalize.c: New file.
31885         * modules/uninorm/u16-normalize: New file.
31886
31887         New module 'uninorm/u8-normalize'.
31888         * lib/uninorm/u8-normalize.c: New file.
31889         * lib/uninorm/normalize-internal.h: New file.
31890         * lib/uninorm/u-normalize-internal.h: New file.
31891         * modules/uninorm/u8-normalize: New file.
31892
31893         New module 'uninorm/decompose-internal'.
31894         * lib/uninorm/decompose-internal.c: New file.
31895         * modules/uninorm/decompose-internal: New file.
31896
31897         Tests for module 'uninorm/composition'.
31898         * tests/uninorm/test-composition.c: New file.
31899         * modules/uninorm/composition-tests: New file.
31900
31901         New module 'uninorm/composition'.
31902         * lib/uninorm/composition.c: New file.
31903         * lib/uninorm/composition-table.gperf: New file, generated by
31904         gen-uni-tables.
31905         * modules/uninorm/composition: New file.
31906
31907         Tests for module 'uninorm/compat-decomposition'.
31908         * tests/uninorm/test-compat-decomposition.c: New file.
31909         * modules/uninorm/compat-decomposition-tests: New file.
31910
31911         New module 'uninorm/compat-decomposition'.
31912         * lib/uninorm/decompose-internal.h: New file.
31913         * lib/uninorm/compat-decomposition.c: New file.
31914         * modules/uninorm/compat-decomposition: New file.
31915
31916         Tests for module 'uninorm/canonical-decomposition'.
31917         * tests/uninorm/test-canonical-decomposition.c: New file.
31918         * modules/uninorm/canonical-decomposition-tests: New file.
31919
31920         New module 'uninorm/canonical-decomposition'.
31921         * lib/uninorm/canonical-decomposition.c: New file.
31922         * modules/uninorm/canonical-decomposition: New file.
31923
31924         Tests for module 'uninorm/decomposition'.
31925         * tests/uninorm/test-decomposition.c: New file.
31926         * modules/uninorm/decomposition-tests: New file.
31927
31928         New module 'uninorm/decomposition'.
31929         * lib/uninorm/decomposition.c: New file.
31930         * modules/uninorm/decomposition: New file.
31931
31932         New module 'uninorm/decomposition-table'.
31933         * lib/uninorm/decomposition-table.h: New file.
31934         * lib/uninorm/decomposition-table.c: New file.
31935         * lib/uninorm/decomposition-table1.h: New file, generated by
31936         gen-uni-tables.
31937         * lib/uninorm/decomposition-table2.h: New file, generated by
31938         gen-uni-tables.
31939         * modules/uninorm/decomposition-table: New file.
31940
31941         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31942         (UC_DECOMP_*): New enumeration items.
31943         (get_decomposition): New function.
31944         (struct decomp_table): New type.
31945         (output_decomposition, output_decomposition_tables): New functions.
31946         (unicode_composition_exclusions): New variable.
31947         (fill_composition_exclusions, debug_output_composition_tables): New
31948         functions.
31949         (main): Accept one more argument. Invoke fill_composition_exclusions.
31950         Output decomposition and composition tables.
31951
31952         New module 'uninorm/base'.
31953         * lib/uninorm.h: New file.
31954         * lib/unictype.h: Update comment.
31955         * modules/uninorm/base: New file.
31956
31957 2009-02-21  David Lutterkort  <lutter@redhat.com>
31958
31959         Tests for module 'safe-alloc'.
31960         * tests/test-safe-alloc.c: New file.
31961         * modules/safe-alloc-tests: New file.
31962
31963         New module 'safe-alloc'.
31964         * lib/safe-alloc.h: New file.
31965         * lib/safe-alloc.c: New file.
31966         * m4/safe-alloc.m4: New file.
31967         * modules/safe-alloc: New file.
31968         * doc/safe-alloc.texi: New file.
31969         * doc/gnulib.texi: Include it.
31970         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31971         safe-alloc.
31972
31973 2009-02-18  Bruno Haible  <bruno@clisp.org>
31974
31975         Fix link error on non-glibc systems.
31976         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31977         variable.
31978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31979
31980 2009-02-18  Jim Meyering  <meyering@redhat.com>
31981
31982         fts: avoid used-uninitialized error due to recent change
31983         * lib/fts.c (fts_read): Guard uses of the new member,
31984         parent->fts_n_dirs_remaining, since it's not relevant for
31985         the parent of a directory specified on the command-line.
31986
31987 2009-02-17  James Youngman  <jay@gnu.org>
31988             Bruno Haible  <bruno@clisp.org>
31989
31990         * m4/include_next.m4: Reformulate comment.
31991
31992 2009-02-16  Jim Meyering  <meyering@redhat.com>
31993
31994         fts: add #if guards so that the fts_lgpl module still builds
31995         * lib/fts.c: Guard just-added hash-table-using parts with
31996         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31997         Reported by Simon Josefsson.
31998
31999 2009-02-15  Bruno Haible  <bruno@clisp.org>
32000
32001         * modules/array-mergesort-tests: New file.
32002         * tests/test-array-mergesort.c: New file.
32003
32004         New module 'array-mergesort'.
32005         * modules/array-mergesort: New file.
32006         * lib/array-mergesort.h: New file.
32007
32008 2009-02-15  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix 2009-02-07 commit.
32011         * lib/gen-uni-tables.c (output_predicate, output_category,
32012         output_combclass, output_bidi_category, output_decimal_digit,
32013         output_digit, output_numeric, output_mirror, output_scripts,
32014         output_ident_category, output_simple_mapping): Fix format directives.
32015         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32016
32017 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32018
32019         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32020         fixes are available from IBM.
32021
32022 2009-02-13  Jim Meyering  <meyering@redhat.com>
32023
32024         fts: arrange not to stat non-directories in more cases
32025         This makes GNU find (when it doesn't need to stat each file)
32026         *much* more efficient at traversing reiserfs file systems.
32027         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32028         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32029         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32030         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32031         (leaf_optimization_applies): New function.
32032         (LCO_hash, LCO_compare): New helper functions.
32033         (link_count_optimize_ok): New function.
32034         (fts_stat): Initialize new member (if dir).
32035         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32036         we've just stat'ed a directory.  Skip the stat call when possible.
32037         ---
32038         Note this AFS-related exchange:
32039         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32040         and note find's pioctl call in find/fstype.c.
32041         But that is necessary only if you want to enable the
32042         optimization for AFS, and for now, I don't.
32043
32044         fts: move a function definition "up" (no semantic change)
32045         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32046         "up" to precede upcoming use of a related function.
32047
32048 2009-02-11  Jim Meyering  <meyering@redhat.com>
32049
32050         fts: correct internal computation of nlinks (optimization-related)
32051         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32052         whether the current entry is a directory, so don't test it.
32053
32054 2009-02-10  Bruno Haible  <bruno@clisp.org>
32055
32056         Tests for module 'uniwbrk/ulc-wordbreaks'.
32057         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32058         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32059         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32060
32061         Tests for module 'uniwbrk/u32-wordbreaks'.
32062         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32063         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32064
32065         Tests for module 'uniwbrk/u16-wordbreaks'.
32066         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32067         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32068
32069         Tests for module 'uniwbrk/u8-wordbreaks'.
32070         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32071         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32072
32073 2009-02-10  Bruno Haible  <bruno@clisp.org>
32074
32075         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32076         property.
32077         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32078         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32079         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32080
32081 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32082
32083         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32084         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32085
32086 2009-02-10  Bruno Haible  <bruno@clisp.org>
32087
32088         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32089         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32090         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32091         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32092         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32093         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32094
32095 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32096
32097         * lib/sockets.h (gl_fd_to_handle): New function.
32098
32099         * tests/test-sockets.c: Call gl_fd_to_handle.
32100
32101 2009-02-09  Bruno Haible  <bruno@clisp.org>
32102
32103         * doc/havelib.texi: Document the conventions on bi-arch systems.
32104
32105 2009-02-08  Bruno Haible  <bruno@clisp.org>
32106
32107         Document the AC_LIB_LINKFLAGS macro.
32108         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32109         * doc/gnulib.texi: Include it.
32110
32111 2009-02-08  Bruno Haible  <bruno@clisp.org>
32112
32113         Fix wrong order of sections, compared to TOC.
32114         * doc/gnulib.texi: Include relocatable-maint.texi after the
32115         "Regular expressions" node, not before.
32116
32117 2009-02-08  Bruno Haible  <bruno@clisp.org>
32118
32119         Tests for module 'unicase/totitle'.
32120         * modules/unicase/totitle-tests: New file.
32121
32122         Tests for module 'unicase/tolower'.
32123         * modules/unicase/tolower-tests: New file.
32124
32125         Tests for module 'unicase/toupper'.
32126         * modules/unicase/toupper-tests: New file.
32127         * tests/unicase/test-mapping-part1.h: New file.
32128         * tests/unicase/test-mapping-part2.h: New file.
32129
32130         New module 'unicase/totitle'.
32131         * modules/unicase/totitle: New file.
32132         * lib/unicase/totitle.c: New file.
32133
32134         New module 'unicase/tolower'.
32135         * modules/unicase/tolower: New file.
32136         * lib/unicase/tolower.c: New file.
32137
32138         New module 'unicase/toupper'.
32139         * modules/unicase/toupper: New file.
32140         * lib/unicase/toupper.c: New file.
32141         * lib/unicase/simple-mapping.h: New file.
32142
32143         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32144         (mapping_table): New structure.
32145         (output_simple_mapping): New function.
32146         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32147         * modules/gen-uni-tables (Description): Update.
32148         * lib/unicase/toupper.h: New file, automatically generated by
32149         gen-uni-tables.
32150         * lib/unicase/tolower.h: New file, automatically generated by
32151         gen-uni-tables.
32152         * lib/unicase/totitle.h: New file, automatically generated by
32153         gen-uni-tables.
32154         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32155         gen-uni-tables.
32156         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32157         gen-uni-tables.
32158         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32159         gen-uni-tables.
32160
32161         New module 'unicase/base'.
32162         * modules/unicase/base: New file.
32163         * lib/unicase.h: New file.
32164
32165 2009-02-08  Bruno Haible  <bruno@clisp.org>
32166
32167         New module 'uniwbrk/ulc-wordbreaks'.
32168         * modules/uniwbrk/ulc-wordbreaks: New file.
32169         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32170
32171         New module 'uniwbrk/u32-wordbreaks'.
32172         * modules/uniwbrk/u32-wordbreaks: New file.
32173         * lib/uniwbrk/u32-wordbreaks.c: New file.
32174
32175         New module 'uniwbrk/u16-wordbreaks'.
32176         * modules/uniwbrk/u16-wordbreaks: New file.
32177         * lib/uniwbrk/u16-wordbreaks.c: New file.
32178
32179         New module 'uniwbrk/u8-wordbreaks'.
32180         * modules/uniwbrk/u8-wordbreaks: New file.
32181         * lib/uniwbrk/u8-wordbreaks.c: New file.
32182         * lib/uniwbrk/u-wordbreaks.h: New file.
32183
32184         New module 'uniwbrk/table'.
32185         * modules/uniwbrk/table: New file.
32186         * lib/uniwbrk/wbrktable.h: New file.
32187         * lib/uniwbrk/wbrktable.c: New file.
32188
32189         New module 'uniwbrk/wordbreak-property'.
32190         * modules/uniwbrk/wordbreak-property: New file.
32191         * lib/uniwbrk/wordbreak-property.c: New file.
32192
32193         * lib/gen-uni-tables.c (WBP_*): New enum items.
32194         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32195         (unicode_org_wbp): New variable.
32196         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32197         New functions.
32198         (wbp_table): New structure.
32199         (output_wbp, output_wbrk_tables): New functions.
32200         (main): Accept additional argument. Invoke fill_org_wbp,
32201         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32202         output_wbrk_tables.
32203         * modules/gen-uni-tables (Description): Update.
32204         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32205         gen-uni-tables.
32206
32207         New module 'uniwbrk/base'.
32208         * modules/uniwbrk/base: New file.
32209         * lib/uniwbrk.h: New file.
32210
32211 2009-02-08  Bruno Haible  <bruno@clisp.org>
32212
32213         Update to Unicode 5.1.0.
32214         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32215         U+2185..U+2188.
32216         (is_property_default_ignorable_code_point): Don't include characters
32217         of category Cc or Cs and not-a-characters.
32218         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32219         U+0D79, U+109E, U+109F, U+A60C.
32220         * lib/unictype/bidi_of.h: Regenerated.
32221         * lib/unictype/blocks.h: Regenerated.
32222         * lib/unictype/categ_C.h: Regenerated.
32223         * lib/unictype/categ_Cf.h: Regenerated.
32224         * lib/unictype/categ_Cn.h: Regenerated.
32225         * lib/unictype/categ_L.h: Regenerated.
32226         * lib/unictype/categ_Ll.h: Regenerated.
32227         * lib/unictype/categ_Lm.h: Regenerated.
32228         * lib/unictype/categ_Lo.h: Regenerated.
32229         * lib/unictype/categ_Lu.h: Regenerated.
32230         * lib/unictype/categ_M.h: Regenerated.
32231         * lib/unictype/categ_Mc.h: Regenerated.
32232         * lib/unictype/categ_Me.h: Regenerated.
32233         * lib/unictype/categ_Mn.h: Regenerated.
32234         * lib/unictype/categ_N.h: Regenerated.
32235         * lib/unictype/categ_Nd.h: Regenerated.
32236         * lib/unictype/categ_Nl.h: Regenerated.
32237         * lib/unictype/categ_No.h: Regenerated.
32238         * lib/unictype/categ_P.h: Regenerated.
32239         * lib/unictype/categ_Pd.h: Regenerated.
32240         * lib/unictype/categ_Pe.h: Regenerated.
32241         * lib/unictype/categ_Pf.h: Regenerated.
32242         * lib/unictype/categ_Pi.h: Regenerated.
32243         * lib/unictype/categ_Po.h: Regenerated.
32244         * lib/unictype/categ_Ps.h: Regenerated.
32245         * lib/unictype/categ_S.h: Regenerated.
32246         * lib/unictype/categ_Sk.h: Regenerated.
32247         * lib/unictype/categ_Sm.h: Regenerated.
32248         * lib/unictype/categ_So.h: Regenerated.
32249         * lib/unictype/categ_of.h: Regenerated.
32250         * lib/unictype/combining.h: Regenerated.
32251         * lib/unictype/ctype_alnum.h: Regenerated.
32252         * lib/unictype/ctype_alpha.h: Regenerated.
32253         * lib/unictype/ctype_graph.h: Regenerated.
32254         * lib/unictype/ctype_lower.h: Regenerated.
32255         * lib/unictype/ctype_print.h: Regenerated.
32256         * lib/unictype/ctype_punct.h: Regenerated.
32257         * lib/unictype/ctype_upper.h: Regenerated.
32258         * lib/unictype/decdigit.h: Regenerated.
32259         * lib/unictype/digit.h: Regenerated.
32260         * lib/unictype/mirror.h: Regenerated.
32261         * lib/unictype/numeric.h: Regenerated.
32262         * lib/unictype/pr_alphabetic.h: Regenerated.
32263         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32264         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32265         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32266         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32267         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32268         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32269         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32270         * lib/unictype/pr_combining.h: Regenerated.
32271         * lib/unictype/pr_dash.h: Regenerated.
32272         * lib/unictype/pr_decimal_digit.h: Regenerated.
32273         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32274         * lib/unictype/pr_deprecated.h: Regenerated.
32275         * lib/unictype/pr_diacritic.h: Regenerated.
32276         * lib/unictype/pr_extender.h: Regenerated.
32277         * lib/unictype/pr_format_control.h: Regenerated.
32278         * lib/unictype/pr_grapheme_base.h: Regenerated.
32279         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32280         * lib/unictype/pr_grapheme_link.h: Regenerated.
32281         * lib/unictype/pr_id_continue.h: Regenerated.
32282         * lib/unictype/pr_id_start.h: Regenerated.
32283         * lib/unictype/pr_ideographic.h: Regenerated.
32284         * lib/unictype/pr_ignorable_control.h: Regenerated.
32285         * lib/unictype/pr_lowercase.h: Regenerated.
32286         * lib/unictype/pr_math.h: Regenerated.
32287         * lib/unictype/pr_numeric.h: Regenerated.
32288         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32289         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32290         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32291         * lib/unictype/pr_other_id_continue.h: Regenerated.
32292         * lib/unictype/pr_other_lowercase.h: Regenerated.
32293         * lib/unictype/pr_other_math.h: Regenerated.
32294         * lib/unictype/pr_punctuation.h: Regenerated.
32295         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32296         * lib/unictype/pr_soft_dotted.h: Regenerated.
32297         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32298         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32299         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32300         * lib/unictype/pr_uppercase.h: Regenerated.
32301         * lib/unictype/pr_xid_continue.h: Regenerated.
32302         * lib/unictype/pr_xid_start.h: Regenerated.
32303         * lib/unictype/pr_zero_width.h: Regenerated.
32304         * lib/unictype/scripts.h: Regenerated.
32305         * lib/unictype/scripts_byname.gperf: Regenerated.
32306         * lib/unictype/sy_java_ident.h: Regenerated.
32307         * lib/unilbrk/lbrkprop1.h: Regenerated.
32308         * lib/unilbrk/lbrkprop2.h: Regenerated.
32309         * tests/unictype/test-categ_C.c: Regenerated.
32310         * tests/unictype/test-categ_Cf.c: Regenerated.
32311         * tests/unictype/test-categ_Cn.c: Regenerated.
32312         * tests/unictype/test-categ_L.c: Regenerated.
32313         * tests/unictype/test-categ_Ll.c: Regenerated.
32314         * tests/unictype/test-categ_Lm.c: Regenerated.
32315         * tests/unictype/test-categ_Lo.c: Regenerated.
32316         * tests/unictype/test-categ_Lu.c: Regenerated.
32317         * tests/unictype/test-categ_M.c: Regenerated.
32318         * tests/unictype/test-categ_Mc.c: Regenerated.
32319         * tests/unictype/test-categ_Me.c: Regenerated.
32320         * tests/unictype/test-categ_Mn.c: Regenerated.
32321         * tests/unictype/test-categ_N.c: Regenerated.
32322         * tests/unictype/test-categ_Nd.c: Regenerated.
32323         * tests/unictype/test-categ_Nl.c: Regenerated.
32324         * tests/unictype/test-categ_No.c: Regenerated.
32325         * tests/unictype/test-categ_P.c: Regenerated.
32326         * tests/unictype/test-categ_Pd.c: Regenerated.
32327         * tests/unictype/test-categ_Pe.c: Regenerated.
32328         * tests/unictype/test-categ_Pf.c: Regenerated.
32329         * tests/unictype/test-categ_Pi.c: Regenerated.
32330         * tests/unictype/test-categ_Po.c: Regenerated.
32331         * tests/unictype/test-categ_Ps.c: Regenerated.
32332         * tests/unictype/test-categ_S.c: Regenerated.
32333         * tests/unictype/test-categ_Sk.c: Regenerated.
32334         * tests/unictype/test-categ_Sm.c: Regenerated.
32335         * tests/unictype/test-categ_So.c: Regenerated.
32336         * tests/unictype/test-ctype_alnum.c: Regenerated.
32337         * tests/unictype/test-ctype_alpha.c: Regenerated.
32338         * tests/unictype/test-ctype_graph.c: Regenerated.
32339         * tests/unictype/test-ctype_lower.c: Regenerated.
32340         * tests/unictype/test-ctype_print.c: Regenerated.
32341         * tests/unictype/test-ctype_punct.c: Regenerated.
32342         * tests/unictype/test-ctype_upper.c: Regenerated.
32343         * tests/unictype/test-decdigit.h: Regenerated.
32344         * tests/unictype/test-digit.h: Regenerated.
32345         * tests/unictype/test-numeric.h: Regenerated.
32346         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32347         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32348         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32349         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32350         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32351         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32352         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32353         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32354         * tests/unictype/test-pr_combining.c: Regenerated.
32355         * tests/unictype/test-pr_dash.c: Regenerated.
32356         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32357         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32358         * tests/unictype/test-pr_deprecated.c: Regenerated.
32359         * tests/unictype/test-pr_diacritic.c: Regenerated.
32360         * tests/unictype/test-pr_extender.c: Regenerated.
32361         * tests/unictype/test-pr_format_control.c: Regenerated.
32362         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32363         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32364         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32365         * tests/unictype/test-pr_id_continue.c: Regenerated.
32366         * tests/unictype/test-pr_id_start.c: Regenerated.
32367         * tests/unictype/test-pr_ideographic.c: Regenerated.
32368         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32369         * tests/unictype/test-pr_lowercase.c: Regenerated.
32370         * tests/unictype/test-pr_math.c: Regenerated.
32371         * tests/unictype/test-pr_numeric.c: Regenerated.
32372         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32373         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32374         Regenerated.
32375         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32376         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32377         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32378         * tests/unictype/test-pr_other_math.c: Regenerated.
32379         * tests/unictype/test-pr_punctuation.c: Regenerated.
32380         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32381         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32382         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32383         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32384         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32385         * tests/unictype/test-pr_uppercase.c: Regenerated.
32386         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32387         * tests/unictype/test-pr_xid_start.c: Regenerated.
32388         * tests/unictype/test-pr_zero_width.c: Regenerated.
32389
32390         Update to Unicode 5.1.0.
32391         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32392         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32393         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32394         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32395         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32396         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32397         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32398         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32399         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32400         (nonspacing_table_ind): Update.
32401         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32402
32403         Update to Unicode 5.1.0.
32404         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32405         code transform.
32406         * lib/uniname/uniname.c (unicode_character_name,
32407         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32408         * lib/uniname/uninames.h: Regenerated.
32409         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32410
32411 2009-02-07  Bruno Haible  <bruno@clisp.org>
32412
32413         Merge gen-ctype and gen-lbrk into a single program.
32414         * lib/gen-uni-tables.c: New file, incorporating
32415         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32416         Add directory prefixes to the names of the generated files.
32417         * lib/unictype/gen-ctype.c: Remove file.
32418         * lib/unilbrk/gen-lbrk.c: Remove file.
32419         * modules/gen-uni-tables: New file.
32420         * modules/unictype/gen-ctype: Remove file.
32421         * modules/unilbrk/gen-lbrk: Remove file.
32422
32423 2009-02-07  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32426
32427         New module 'unistr/u32-strcoll'.
32428         * modules/unistr/u32-strcoll: New file.
32429         * lib/unistr/u32-strcoll.c: New file.
32430
32431         New module 'unistr/u16-strcoll'.
32432         * modules/unistr/u16-strcoll: New file.
32433         * lib/unistr/u16-strcoll.c: New file.
32434
32435         New module 'unistr/u8-strcoll'.
32436         * modules/unistr/u8-strcoll: New file.
32437         * lib/unistr/u8-strcoll.c: New file.
32438         * lib/unistr/u-strcoll.h: New file.
32439
32440 2009-02-07  Bruno Haible  <bruno@clisp.org>
32441
32442         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32443         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32444         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32445         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32446         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32447         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32448
32449 2009-02-07  Bruno Haible  <bruno@clisp.org>
32450
32451         Make 64-bit clean.
32452         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32453         output_combclass, output_bidi_category, output_decimal_digit,
32454         output_digit, output_numeric, output_mirror, output_scripts,
32455         output_ident_category): Use proper width specifier in format strings.
32456
32457 2009-02-07  Bruno Haible  <bruno@clisp.org>
32458
32459         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32460         failure behaviour.
32461
32462 2009-02-07  Jim Meyering  <meyering@redhat.com>
32463
32464         regex: avoid compilation failure with upcoming gcc-4.4
32465         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32466         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32467         "... error: integer overflow in preprocessor expression".
32468
32469 2009-02-05  Ben Pfaff  <blp@gnu.org>
32470
32471         Fix link errors on Windows when close module is used.
32472         * modules/close: Add $(LIB_CLOSE) to Link section.
32473         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32474         $(LIB_CLOSE) on Windows.
32475
32476 2009-02-05  Jim Meyering  <meyering@redhat.com>
32477
32478         still avoid unused-parameter warnings, but do it cleanly
32479         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32480         (get_fs_usage): Cast to void instead.
32481         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32482         (dev_from_mount_options, read_file_system_list): Cast to void.
32483         Prompted by Bruno Haible.
32484
32485 2009-02-04  Jim Meyering  <meyering@redhat.com>
32486
32487         fsusage.c: correct copyright year
32488         * lib/fsusage.c: Reflect year in which the change is pushed into
32489
32490         avoid misc. warnings
32491         * lib/fsusage.c (UNUSED_PARAM): Define.
32492         (get_fs_usage): Mark parameter "disk" as unused.
32493         * lib/getugroups.c (getgrent): Use "void" in prototype.
32494         * lib/mountlist.c: Mark unused parameters.
32495         (read_file_system_list): Declare a local with "const".
32496         * lib/nanosleep.c (getnow): Declare static.
32497         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32498
32499         dirfd: set errno upon failure
32500         * lib/dirfd.c: Include <errno.h>.
32501         Set errno to ENOTSUP when returning -1.
32502         * modules/dirfd (Depends-on): Add errno.
32503         Suggested by John Kodis <kodis@comcast.net>.
32504
32505 2009-02-01  Bruno Haible  <bruno@clisp.org>
32506
32507         Don't assume sizeof (long) >= sizeof (void *).
32508         * lib/memcmp.c: Include stdint.h.
32509         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32510         srcp2 to 'const byte *'.
32511         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32512         types to uintptr_t.
32513         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32514         * modules/memcmp (Depends-on): Add stdint.
32515         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32516
32517 2009-01-30  Eric Blake  <ebb9@byu.net>
32518
32519         fix more require-before-expand issues
32520         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32521         expand, AC_PROG_AWK.
32522         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32523
32524 2009-01-28  Eric Blake  <ebb9@byu.net>
32525
32526         version-etc: use consistent URL formatting
32527         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32528         Improve formatting.  Use fputs for string without %.
32529
32530 2009-01-28  Jim Meyering  <meyering@redhat.com>
32531
32532         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32533         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32534         "underquoted definition of NAME" from autoconf-2.59.
32535
32536 2009-01-28  Bruno Haible  <bruno@clisp.org>
32537
32538         * doc/gnulib.texi: Add "Obsolete modules" to index.
32539
32540 2009-01-28  Jim Meyering  <meyering@redhat.com>
32541
32542         useless-if-before-free: recognize more variants
32543         * build-aux/useless-if-before-free: Also recognize e.g.,
32544         if (NULL != p) free (p);
32545
32546 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32547
32548         test-getaddrinfo: skip (don't fail) this test when there's no network
32549         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32550         on the presumption that it means you lack network access.
32551
32552 2009-01-26  Jim Meyering  <meyering@redhat.com>
32553
32554         fflush: avoid warnings on modern systems
32555         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32556         pos and result, into scopes where they're used.
32557
32558 2009-01-26  Eric Blake  <ebb9@byu.net>
32559
32560         Silence warning reintroduced by recent extensions patch.
32561         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32562         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32563         autoconf.
32564
32565         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32566         * m4/00gnulib.m4: New file.
32567         * gnulib-tool (func_get_filelist): Always use it.
32568         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32569         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32570
32571 2009-01-25  Bruno Haible  <bruno@clisp.org>
32572
32573         Make test-quotearg work on MacOS X and AIX.
32574         * tests/test-quotearg.sh: New file.
32575         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32576         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32577         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32578         include <libintl.h>.
32579         (fake_locale): Remove variable.
32580         (gettext, dgettext, dcgettext): Remove functions.
32581         (main): Instead of setting a fake locale, set a real locale. Call
32582         textdomain and bindtextdomain.
32583         * modules/quotearg-tests (Files): Add the new files.
32584         (Depends-on): Add gettext, setenv, unsetenv.
32585         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32586         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32587         Augment TESTS_ENVIRONMENT.
32588
32589 2009-01-25  Bruno Haible  <bruno@clisp.org>
32590
32591         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32592         fr_FR.ISO8859-1 locale on MacOS X.
32593         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32594         ja_JP.eucJP locale on MacOS X.
32595         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32596         zh_CN.GB18030 locale on MacOS X.
32597
32598 2009-01-25  Bruno Haible  <bruno@clisp.org>
32599
32600         Avoid link errors on MacOS X 10.3.
32601         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32602         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32603
32604 2009-01-25  Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32607         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32608         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32609         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32610         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32611         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32612         posix_spawnattr_init, posix_spawnattr_setsigmask,
32613         posix_spawnattr_setflags, posix_spawnattr_destroy.
32614
32615         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32616         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32617         * modules/execute (Files): Remove m4/posix_spawn.m4.
32618         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32619         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32620         posix_spawnattr_init, posix_spawnattr_setsigmask,
32621         posix_spawnattr_setflags, posix_spawnattr_destroy.
32622
32623 2009-01-25  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/glthread/threadlib.c: Include <stdlib.h>.
32626
32627 2009-01-25  Bruno Haible  <bruno@clisp.org>
32628
32629         * lib/glthread/threadlib.c (dummy): New declaration.
32630
32631 2009-01-25  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32634         multibyte characters also for the GB18030 encoding. Don't crash when
32635         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32636
32637 2009-01-25  Bruno Haible  <bruno@clisp.org>
32638
32639         Avoid redefining 'struct random_data' on OSF/1 5.1.
32640         * lib/stdlib.in.h: Include <random.h> if it exists.
32641         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32642         HAVE_RANDOM_H. Include <random.h> when testing whether
32643         'struct random_data' exists.
32644         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32645
32646 2009-01-25  Bruno Haible  <bruno@clisp.org>
32647
32648         Don't install charset.alias on MacOS X >= 10.3.
32649         * lib/localcharset.c (DARWIN7): New macro.
32650         (get_charset_aliases): Hardcode the result for Darwin7.
32651         * modules/localcharset (install-exec-local): Don't install
32652         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32653
32654 2009-01-25  Bruno Haible  <bruno@clisp.org>
32655
32656         Don't install charset.alias on mingw and Cygwin.
32657         * modules/localcharset (install-exec-local): Don't install
32658         charset.alias on mingw and Cygwin, if the file does not yet exist.
32659         The result for these platforms is hardcoded in localcharset.c.
32660
32661 2009-01-25  Bruno Haible  <bruno@clisp.org>
32662
32663         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32664         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32665         before requiring AC_USE_SYSTEM_EXTENSIONS.
32666
32667 2009-01-25  Jim Meyering  <meyering@redhat.com>
32668
32669         c-strtod: avoid warnings
32670         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32671         "assignment discards qualifiers from pointer target type" warnings.
32672
32673 2009-01-24  Bruno Haible  <bruno@clisp.org>
32674
32675         Add support for non-UTF-8 locales on MacOS X.
32676         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32677         canonical encodings. For Darwin 7 and newer, don't map traditional
32678         encodings to UTF-8.
32679         Reported by Vincent Lefevre <vincent@vinc17.org>
32680         at <http://savannah.gnu.org/bugs/?25235>.
32681
32682 2009-01-24  Bruno Haible  <bruno@clisp.org>
32683
32684         * doc/gnulib.texi (Obsolete modules): New section.
32685         Reported by Mike Frysinger <vapier@gentoo.org>.
32686
32687 2009-01-24  Bruno Haible  <bruno@clisp.org>
32688
32689         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32690         (%.dvi): New rule.
32691
32692 2009-01-24  Bruno Haible  <bruno@clisp.org>
32693
32694         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32695         Reported by Eric Blake.
32696
32697 2009-01-24  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32700         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32701         Reported by Gary V. Vaughan <gary@gnu.org>.
32702
32703 2009-01-24  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32706
32707 2009-01-23  Bruno Haible  <bruno@clisp.org>
32708
32709         Make c-strtod, c-strtold usable in libraries.
32710         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32711         (C_STRTOD): Call strdup instead of xstrdup.
32712         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32713         * modules/c-strtold (Depends-on): Likewise.
32714         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32715         * NEWS: Mention the change.
32716         Reported by Michael Gold <mgold@ncf.ca>.
32717
32718 2009-01-23  Jim Meyering  <meyering@redhat.com>
32719
32720         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32721         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32722         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32723
32724 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32725
32726         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32727         GNU CoreUtils.
32728         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32729         * modules/version-etc (Description): Update.
32730
32731 2009-01-22  Bruno Haible  <bruno@clisp.org>
32732
32733         Cache the C locale object.
32734         * lib/c-strtod.c (c_locale_cache): New variable.
32735         (c_locale): New function.
32736         (C_STRTOD): Use it, and don't call freelocale.
32737         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32738         Suggested by Paolo Bonzini.
32739
32740 2009-01-21  Bruno Haible  <bruno@clisp.org>
32741
32742         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32743         conditions other than overflow.
32744
32745 2009-01-21  Bruno Haible  <bruno@clisp.org>
32746
32747         * lib/c-strtod.c: Include errno.h.
32748         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32749         value from STRTOD_L and STRTOD.
32750
32751 2009-01-21  Bruno Haible  <bruno@clisp.org>
32752         and Jim Meyering  <meyering@redhat.com>
32753
32754         nanosleep: skip configure test (fail it) for apple universal builds
32755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32756         universal builds, assume that nanosleep does not work.
32757         * modules/nanosleep (Depends-on): Add multiarch.
32758
32759         mktime: skip configure test (fail it) for apple universal builds
32760         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32761         universal builds, assume that mktime does not work.
32762         * modules/mktime (Depends-on): Add multiarch.
32763
32764 2009-01-21  Eric Blake  <ebb9@byu.net>
32765
32766         multiarch: avoid expand-before-require warning
32767         * modules/multiarch (configure.ac): Require, rather than expand,
32768         gl_MULTIARCH.
32769         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32770         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32771         enforce that all clients require it.  Partial reversion of
32772         2008-12-29 patch.
32773
32774         error: avoid expand-before-require warning
32775         * modules/errno (configure.ac): Require, rather than expand,
32776         gl_HEADER_ERRNO_H.
32777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32778         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32779         enforce that all clients require it.
32780
32781         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32782         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32783         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32784         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32785
32786 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32787
32788         Revert:
32789         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32790
32791         regex: do not depend on obsolete modules.
32792         * modules/regex: Remove memcmp and memmove.
32793
32794 2009-01-20  Bruno Haible  <bruno@clisp.org>
32795
32796         Make the 'link' module link on Windows NT 4.
32797         * lib/link.c (_WIN32_WINNT): Don't define.
32798         (CreateHardLinkFuncType): New type.
32799         (CreateHardLinkFunc, initialized): New variables.
32800         (initialize): New function.
32801         (link): Invoke CreateHardLink indirectly through the function pointer.
32802
32803 2009-01-20  Bruno Haible  <bruno@clisp.org>
32804
32805         Fix compilation failure on mingw.
32806         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32807
32808 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32809
32810         * doc/c-strtod.texi: Mention a couple of restrictions.
32811
32812 2009-01-20  Jim Meyering  <meyering@redhat.com>
32813
32814         gettimeofday: move more declarations out of functions
32815         * lib/gettimeofday.c: Move extern declarations of tzset and
32816         gmtime out of containing functions.  Prompted by Bruno Haible.
32817
32818 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32819
32820         regex: do not depend on obsolete modules.
32821         * modules/regex: Remove memcmp and memmove.
32822
32823 2009-01-19  Bruno Haible  <bruno@clisp.org>
32824
32825         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32826         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32827         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32828         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32829         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32830
32831 2009-01-19  Bruno Haible  <bruno@clisp.org>
32832
32833         * tests/test-link.c: Include <errno.h>.
32834         (main): Exit with code 77 when a hard link cannot be created due to
32835         the file system.
32836         * tests/test-link.sh: Skip test when a hard link cannot be created due
32837         to the file system.
32838         Suggested by Eric Blake.
32839
32840 2009-01-19  Martin Lambers  <marlam@marlam.de>
32841
32842         * modules/link-tests: New file.
32843         * tests/test-link.sh: New file.
32844         * tests/test-link.c: New file.
32845
32846 2009-01-19  Eric Blake  <ebb9@byu.net>
32847
32848         doc: mention another function added in cygwin 1.7.0
32849         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32850         Another new function in cygwin 1.7.
32851
32852 2009-01-19  Bruno Haible  <bruno@clisp.org>
32853
32854         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32855         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32856         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32857         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32858         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32859         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32861         * m4/md4.m4 (gl_MD4): Likewise.
32862         * m4/md5.m4 (gl_MD5): Likewise.
32863         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32864         * m4/sha1.m4 (gl_SHA1): Likewise.
32865         * m4/sha256.m4 (gl_SHA256): Likewise.
32866         * m4/sha512.m4 (gl_SHA512): Likewise.
32867
32868 2009-01-19  Bruno Haible  <bruno@clisp.org>
32869
32870         * modules/uniname/uniname-tests (Depends-on): Add progname.
32871         * tests/uniname/test-uninames.c: Include progname.h.
32872         (main): Call set_program_name.
32873
32874         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32875         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32876         (main): Call set_program_name.
32877
32878         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32879         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32880         (main): Call set_program_name.
32881
32882         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32883         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32884         (main): Call set_program_name.
32885
32886         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32887         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32888         (main): Call set_program_name.
32889
32890         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32891         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32892         (main): Call set_program_name.
32893
32894         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32895         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32896         (main): Call set_program_name.
32897
32898         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32899         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32900         (main): Call set_program_name.
32901
32902         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32903         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32904         (main): Call set_program_name.
32905
32906 2009-01-19  Eric Blake  <ebb9@byu.net>
32907
32908         test-unistd: test previous patch
32909         * tests/test-unistd.c: Test *_FILENO macros.
32910
32911         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32912         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32913         Guarantee a definition.
32914         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32915         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32916         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32917         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32918         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32919         Likewise.
32920         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32921         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32922         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32923         Likewise.
32924         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32925         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32926         (STDERR_FILENO): Likewise.
32927         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32928         (STDERR_FILENO): Likewise.
32929         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32930         (STDERR_FILENO): Likewise.
32931         Reported by Elbert Pol.
32932
32933 2009-01-19  Eric Blake  <ebb9@byu.net>
32934
32935         doc: mention more functions added in cygwin 1.7.0
32936         * doc/posix-functions/abort.texi (abort): Update wording related
32937         to cygwin.
32938         * doc/posix-functions/daylight.texi (daylight): Likewise.
32939         * doc/posix-functions/optarg.texi (optarg): Likewise.
32940         * doc/posix-functions/optarg.texi (opterr): Likewise.
32941         * doc/posix-functions/optarg.texi (optind): Likewise.
32942         * doc/posix-functions/optarg.texi (optopt): Likewise.
32943         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32944         worked in 1.5.x, and was withdrawn in 1.7.
32945         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32946         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32947         cygwin versions.
32948         * doc/posix-functions/perror.texi (perror): Likewise.
32949         * doc/posix-functions/printf.texi (printf): Likewise.
32950         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32951         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32952         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32953         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32954         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32955         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32956         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32957         Likewise.
32958         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32959         Likewise.
32960         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32961         this function.
32962         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32963         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32964         Likewise.
32965         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32966         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32967         * doc/posix-functions/confstr.texi (confstr): Likewise.
32968         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32969         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32970         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32971         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32972         * doc/posix-functions/fputws.texi (fputws): Likewise.
32973         * doc/posix-functions/fwide.texi (fwide): Likewise.
32974         * doc/posix-functions/getwc.texi (getwc): Likewise.
32975         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32976         * doc/posix-functions/putwc.texi (putwc): Likewise.
32977         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32978         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32979         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32980         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32981         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32982         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32983         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32984         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32985         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32986         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32987         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32988
32989 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32990
32991         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32992         * lib/ioctl.c: Include <sys/ioctl.h>.
32993
32994 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32995
32996         * modules/getdate-tests (Depends-on): Add progname.
32997         * tests/test-getdate.c: Use progname module, to avoid link errors
32998         on non-glibc systems.
32999
33000 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33001
33002         * modules/filenamecat-tests (Depends-on): Add progname.
33003         * modules/fstrcmp-tests (Depends-on): Likewise.
33004
33005         * tests/test-filenamecat.c: Use progname module, to avoid link
33006         errors on non-glibc systems.
33007         * tests/test-fstrcmp.c: Likewise.
33008
33009 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33010
33011         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33012         * lib/gettimeofday.c: Move extern declaration out of function.
33013
33014 2009-01-18  Bruno Haible  <bruno@clisp.org>
33015
33016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33017         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33018         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33019
33020 2009-01-18  Bruno Haible  <bruno@clisp.org>
33021
33022         * lib/strftime.c (MEMPCPY): Remove unused macro.
33023         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33024
33025 2009-01-18  Martin Lambers  <marlam@marlam.de>
33026
33027         New module 'link'.
33028         * lib/unistd.in.h (link): New declaration.
33029         * lib/link.c: New file.
33030         * m4/link.m4: New file.
33031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33032         HAVE_LINK.
33033         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33034         * modules/link: New file.
33035         * doc/posix-functions/link.texi: Mention the new module.
33036
33037 2009-01-18  Bruno Haible  <bruno@clisp.org>
33038
33039         * tests/test-avltree_list.c (main): Call set_program_name.
33040         * tests/test-avltree_oset.c (main): Likewise.
33041         * tests/test-obstack-printf.c: Include progname.h.
33042         (main): Call set_program_name.
33043         * tests/test-quotearg.c: Include progname.h.
33044         (main): Call set_program_name.
33045         * tests/test-xmemdup0.c: Include progname.h.
33046         (main): Call set_program_name.
33047
33048 2009-01-18  Bruno Haible  <bruno@clisp.org>
33049
33050         New module 'alphasort'.
33051         * lib/dirent.in.h (alphasort): New declaration.
33052         * lib/alphasort.c: New file, from glibc with modifications.
33053         * m4/alphasort.m4: New file.
33054         * modules/alphasort: New file.
33055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33056         HAVE_ALPHASORT.
33057         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33058         HAVE_ALPHASORT.
33059         * doc/posix-functions/alphasort.texi: Mention the new module and the
33060         portability problems.
33061
33062 2009-01-18  Bruno Haible  <bruno@clisp.org>
33063
33064         New module 'scandir'.
33065         * lib/dirent.in.h (scandir): New declaration.
33066         * lib/scandir.c: New file, from glibc with modifications.
33067         * m4/scandir.m4: New file.
33068         * modules/scandir: New file.
33069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33070         HAVE_SCANDIR.
33071         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33072         HAVE_SCANDIR.
33073         * doc/posix-functions/scandir.texi: Mention the new module and the
33074         portability problems.
33075
33076 2009-01-17  Bruno Haible  <bruno@clisp.org>
33077
33078         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33079         Update documentation.
33080         (func_remove_suffix): Escape all dots in the suffix. Update
33081         documentation.
33082         (func_filter_filelist): Update documentation.
33083         Reported by Ralf Wildenhues.
33084
33085 2009-01-17  Bruno Haible  <bruno@clisp.org>
33086
33087         * modules/dprintf-posix-tests: New file.
33088         * tests/test-dprintf-posix.sh: New file.
33089         * tests/test-dprintf-posix.c: New file.
33090
33091         New modules 'dprintf', 'dprintf-posix'.
33092         * lib/stdio.in.h (dprintf): New declaration.
33093         * lib/dprintf.c: New file.
33094         * m4/dprintf.m4: New file.
33095         * m4/dprintf-posix.m4: New file.
33096         * modules/dprintf: New file.
33097         * modules/dprintf-posix: New file.
33098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33099         HAVE_DPRINTF, REPLACE_DPRINTF.
33100         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33101         HAVE_DPRINTF, REPLACE_DPRINTF.
33102         * doc/posix-functions/dprintf.texi: Mention the new modules.
33103
33104 2009-01-17  Bruno Haible  <bruno@clisp.org>
33105
33106         * modules/vdprintf-posix-tests: New file.
33107         * tests/test-vdprintf-posix.sh: New file.
33108         * tests/test-vdprintf-posix.c: New file.
33109
33110         New modules 'vdprintf', 'vdprintf-posix'.
33111         * lib/stdio.in.h (vdprintf): New declaration.
33112         * lib/vdprintf.c: New file.
33113         * m4/vdprintf.m4: New file.
33114         * m4/vdprintf-posix.m4: New file.
33115         * modules/vdprintf: New file.
33116         * modules/vdprintf-posix: New file.
33117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33118         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33119         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33120         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33121         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33122
33123 2009-01-17  Bruno Haible  <bruno@clisp.org>
33124
33125         Fix replacement of fopen on mingw.
33126         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33127         mingw.
33128
33129 2009-01-17  Bruno Haible  <bruno@clisp.org>
33130
33131         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33132         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33133
33134 2009-01-17  Bruno Haible  <bruno@clisp.org>
33135
33136         Avoid test-fflush2.sh failure on mingw.
33137         * tests/test-fflush2.c: Include binary-io.h.
33138         (main): Put standard input into binary mode.
33139         * modules/fflush-tests (Depends-on): Add binary-io.
33140
33141 2009-01-17  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/wchar.in.h: In another particular situation, include only the
33144         system's <wchar.h> file.
33145         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33146         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33147         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33148
33149 2009-01-17  Bruno Haible  <bruno@clisp.org>
33150
33151         Support for stripping executables in --enable-relocatable.
33152         * build-aux/install-reloc: Expect one more argument, or an environment
33153         variable RELOC_STRIP_PROG. If set, strip the destination program and
33154         its wrapper.
33155         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33156         RELOC_STRIP_PROG.
33157         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33158         to set RELOCATABLE_STRIP.
33159         * NEWS: Mention the new Makefile requirement.
33160
33161 2009-01-17  Bruno Haible  <bruno@clisp.org>
33162
33163         * build-aux/install-reloc: Remove debugging information left over by
33164         C compiler on MacOS X.
33165
33166 2009-01-17  Bruno Haible  <bruno@clisp.org>
33167
33168         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33169         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33170         _NSGetExecutablePath.
33171
33172 2009-01-16  Jim Meyering  <meyering@redhat.com>
33173
33174         strerror: avoid warnings about discarding "const"
33175         * lib/strerror.c (rpl_strerror): Instead of returning a const
33176         string from each and every "case", use a variable, and add a single
33177         cast after the switch.
33178
33179 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33180
33181         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33182
33183 2009-01-16  Bruno Haible  <bruno@clisp.org>
33184
33185         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33186         array initializer syntax that also works in C++ mode.
33187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33188
33189 2009-01-16  Jim Meyering  <meyering@redhat.com>
33190
33191         poll: suppress a warning
33192         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33193         to ignore "...unsigned expression < 0 is always false" warnings.
33194
33195 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33196
33197         poll: remove declarations of unused variables
33198         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33199         sockbuf and optlen.
33200
33201 2009-01-15  Bruno Haible  <bruno@clisp.org>
33202
33203         Make fflush-after-ungetc POSIX compliant on BSD systems.
33204         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33205         (clear_ungetc_buffer): Implement also for other systems.
33206         (rpl_fflush): On glibc systems, invoke
33207         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33208         clear_ungetc_buffer after fetching the stream's position, not before.
33209
33210 2009-01-15  Bruno Haible  <bruno@clisp.org>
33211
33212         Make fflush-after-ungetc POSIX compliant on glibc systems.
33213         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33214         after ungetc.
33215         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33216         (rpl_fflush): On glibc systems, simply call the system's fflush
33217         function after clearing the ungetc buffer.
33218         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33219         Instead, lseek only to the end of file, then use the system's fseeko
33220         for the rest. On glibc systems, reset the EOF indicator bit.
33221
33222 2009-01-15  Jim Meyering  <meyering@redhat.com>
33223
33224         openmp.m4: revert quote-adding change, for portability to older autoconf
33225         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33226         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33227         Simon Josefsson noticed the problem when using autoconf-2.61.
33228
33229 2009-01-15  Bruno Haible  <bruno@clisp.org>
33230
33231         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33232         * tests/test-fflush2.c (ASSERT): Always fail.
33233         (main): Add two tests for fflush() after ungetc(), taking into account
33234         the Austin Group's clarification.
33235         Suggested by Eric Blake.
33236
33237 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33238
33239         mktime.m4: remove K&R-style function prototypes
33240         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33241         for the Sun C++ compiler.
33242
33243 2009-01-14  Bruno Haible  <bruno@clisp.org>
33244
33245         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33246         while including <wchar.h>.
33247         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33248         the system's <wchar.h> file.
33249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33250
33251 2009-01-14  Bruno Haible  <bruno@clisp.org>
33252
33253         * m4/csharp.m4: Don't mention gettext on the serial number line.
33254         * m4/csharpexec.m4: Likewise.
33255         * m4/eaccess.m4: Likewise.
33256         * m4/javaexec.m4: Likewise.
33257         * m4/sig_atomic_t.m4: Likewise.
33258         * m4/tmpdir.m4: Likewise.
33259         * m4/intldir.m4: Bump gettext version.
33260         * m4/lib-ld.m4: Likewise.
33261
33262 2009-01-14  Bruno Haible  <bruno@clisp.org>
33263
33264         * lib/progname.c (set_program_name): Add more comments.
33265         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33266
33267 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33268
33269         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33270         were sys/stat.h does not define it.
33271
33272 2009-01-14  Jim Meyering  <meyering@redhat.com>
33273
33274         many *.m4 files: improve m4 quoting
33275         99% of this change was performed by running the following commands:
33276         git ls-files | grep '\.m4$' | xargs perl -pi \
33277           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33278           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33279           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33280           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33281         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33282         The remainder were to add Copyright dates, increment serial numbers,
33283         undo some changes in comments, exclude m4/intl.m4, and add quotes
33284         around the "1" in ",1" where the unusual spacing prohibited the
33285         above regexps from doing the job.  For more details, see
33286         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33287         * m4/acl.m4: Modified.
33288         * m4/afs.m4: Likewise.
33289         * m4/alloca.m4: Likewise.
33290         * m4/argp.m4: Likewise.
33291         * m4/argz.m4: Likewise.
33292         * m4/atexit.m4: Likewise.
33293         * m4/bison-i18n.m4: Likewise.
33294         * m4/bison.m4: Likewise.
33295         * m4/byteswap.m4: Likewise.
33296         * m4/c-stack.m4: Likewise.
33297         * m4/c-strtod.m4: Likewise.
33298         * m4/calloc.m4: Likewise.
33299         * m4/canonicalize-lgpl.m4: Likewise.
33300         * m4/chown.m4: Likewise.
33301         * m4/clock_time.m4: Likewise.
33302         * m4/codeset.m4: Likewise.
33303         * m4/copy-file.m4: Likewise.
33304         * m4/csharp.m4: Likewise.
33305         * m4/csharpcomp.m4: Likewise.
33306         * m4/csharpexec.m4: Likewise.
33307         * m4/d-ino.m4: Likewise.
33308         * m4/d-type.m4: Likewise.
33309         * m4/dirfd.m4: Likewise.
33310         * m4/double-slash-root.m4: Likewise.
33311         * m4/eaccess.m4: Likewise.
33312         * m4/eealloc.m4: Likewise.
33313         * m4/environ.m4: Likewise.
33314         * m4/errno_h.m4: Likewise.
33315         * m4/euidaccess.m4: Likewise.
33316         * m4/execute.m4: Likewise.
33317         * m4/fatal-signal.m4: Likewise.
33318         * m4/fchdir.m4: Likewise.
33319         * m4/fcntl_h.m4: Likewise.
33320         * m4/fileblocks.m4: Likewise.
33321         * m4/filenamecat.m4: Likewise.
33322         * m4/findprog.m4: Likewise.
33323         * m4/flexmember.m4: Likewise.
33324         * m4/fnmatch.m4: Likewise.
33325         * m4/fopen.m4: Likewise.
33326         * m4/fpending.m4: Likewise.
33327         * m4/fprintf-posix.m4: Likewise.
33328         * m4/free.m4: Likewise.
33329         * m4/frexp.m4: Likewise.
33330         * m4/frexpl.m4: Likewise.
33331         * m4/fsusage.m4: Likewise.
33332         * m4/ftruncate.m4: Likewise.
33333         * m4/gc-camellia.m4: Likewise.
33334         * m4/gc-random.m4: Likewise.
33335         * m4/gc.m4: Likewise.
33336         * m4/getaddrinfo.m4: Likewise.
33337         * m4/getcwd-abort-bug.m4: Likewise.
33338         * m4/getcwd-path-max.m4: Likewise.
33339         * m4/getdate.m4: Likewise.
33340         * m4/getdomainname.m4: Likewise.
33341         * m4/getgroups.m4: Likewise.
33342         * m4/gethostname.m4: Likewise.
33343         * m4/gethrxtime.m4: Likewise.
33344         * m4/getline.m4: Likewise.
33345         * m4/getloadavg.m4: Likewise.
33346         * m4/getndelim2.m4: Likewise.
33347         * m4/getpass.m4: Likewise.
33348         * m4/gettext.m4: Likewise.
33349         * m4/gettime.m4: Likewise.
33350         * m4/gettimeofday.m4: Likewise.
33351         * m4/gnulib-common.m4: Likewise.
33352         * m4/group-member.m4: Likewise.
33353         * m4/host-os.m4: Likewise.
33354         * m4/iconv.m4: Likewise.
33355         * m4/iconv_open.m4: Likewise.
33356         * m4/inet_ntop.m4: Likewise.
33357         * m4/inet_pton.m4: Likewise.
33358         * m4/inline.m4: Likewise.
33359         * m4/intldir.m4: Likewise.
33360         * m4/intlmacosx.m4: Likewise.
33361         * m4/intmax.m4: Likewise.
33362         * m4/intmax_t.m4: Likewise.
33363         * m4/inttypes.m4: Likewise.
33364         * m4/inttypes_h.m4: Likewise.
33365         * m4/inttypes-pri.m4: Likewise.
33366         * m4/isapipe.m4: Likewise.
33367         * m4/isnand.m4: Likewise.
33368         * m4/isnanf.m4: Likewise.
33369         * m4/isnanl.m4: Likewise.
33370         * m4/javacomp.m4: Likewise.
33371         * m4/javaexec.m4: Likewise.
33372         * m4/jm-winsz1.m4: Likewise.
33373         * m4/jm-winsz2.m4: Likewise.
33374         * m4/lchown.m4: Likewise.
33375         * m4/lcmessage.m4: Likewise.
33376         * m4/ldexpl.m4: Likewise.
33377         * m4/lib-ld.m4: Likewise.
33378         * m4/lib-link.m4: Likewise.
33379         * m4/libsigsegv.m4: Likewise.
33380         * m4/link-follow.m4: Likewise.
33381         * m4/localcharset.m4: Likewise.
33382         * m4/locale-fr.m4: Likewise.
33383         * m4/locale-ja.m4: Likewise.
33384         * m4/locale-tr.m4: Likewise.
33385         * m4/locale-zh.m4: Likewise.
33386         * m4/lock.m4: Likewise.
33387         * m4/longlong.m4: Likewise.
33388         * m4/ls-mntd-fs.m4: Likewise.
33389         * m4/lstat.m4: Likewise.
33390         * m4/malloc.m4: Likewise.
33391         * m4/mathl.m4: Likewise.
33392         * m4/mbrtowc.m4: Likewise.
33393         * m4/mbstate_t.m4: Likewise.
33394         * m4/mbswidth.m4: Likewise.
33395         * m4/memchr.m4: Likewise.
33396         * m4/memcmp.m4: Likewise.
33397         * m4/memcpy.m4: Likewise.
33398         * m4/memmem.m4: Likewise.
33399         * m4/memmove.m4: Likewise.
33400         * m4/mempcpy.m4: Likewise.
33401         * m4/memrchr.m4: Likewise.
33402         * m4/memset.m4: Likewise.
33403         * m4/minmax.m4: Likewise.
33404         * m4/mkdir-slash.m4: Likewise.
33405         * m4/mkdtemp.m4: Likewise.
33406         * m4/mktime.m4: Likewise.
33407         * m4/mmap-anon.m4: Likewise.
33408         * m4/mountlist.m4: Likewise.
33409         * m4/nanosleep.m4: Likewise.
33410         * m4/nls.m4: Likewise.
33411         * m4/nocrash.m4: Likewise.
33412         * m4/open.m4: Likewise.
33413         * m4/openat.m4: Likewise.
33414         * m4/openmp.m4: Likewise.
33415         * m4/pathmax.m4: Likewise.
33416         * m4/perl.m4: Likewise.
33417         * m4/physmem.m4: Likewise.
33418         * m4/pipe.m4: Likewise.
33419         * m4/po.m4: Likewise.
33420         * m4/poll.m4: Likewise.
33421         * m4/posixtm.m4: Likewise.
33422         * m4/posixver.m4: Likewise.
33423         * m4/printf-frexp.m4: Likewise.
33424         * m4/printf-frexpl.m4: Likewise.
33425         * m4/printf-posix.m4: Likewise.
33426         * m4/printf-posix-rpl.m4: Likewise.
33427         * m4/printf.m4: Likewise.
33428         * m4/progtest.m4: Likewise.
33429         * m4/putenv.m4: Likewise.
33430         * m4/readline.m4: Likewise.
33431         * m4/readlink.m4: Likewise.
33432         * m4/readutmp.m4: Likewise.
33433         * m4/realloc.m4: Likewise.
33434         * m4/regex.m4: Likewise.
33435         * m4/relocatable.m4: Likewise.
33436         * m4/relocatable-lib.m4: Likewise.
33437         * m4/rename-dest-slash.m4: Likewise.
33438         * m4/rename.m4: Likewise.
33439         * m4/rmdir-errno.m4: Likewise.
33440         * m4/rmdir.m4: Likewise.
33441         * m4/roundf.m4: Likewise.
33442         * m4/roundl.m4: Likewise.
33443         * m4/rpmatch.m4: Likewise.
33444         * m4/save-cwd.m4: Likewise.
33445         * m4/selinux-selinux-h.m4: Likewise.
33446         * m4/setenv.m4: Likewise.
33447         * m4/settime.m4: Likewise.
33448         * m4/sig2str.m4: Likewise.
33449         * m4/sig_atomic_t.m4: Likewise.
33450         * m4/signalblocking.m4: Likewise.
33451         * m4/signbit.m4: Likewise.
33452         * m4/sigpipe.m4: Likewise.
33453         * m4/sockets.m4: Likewise.
33454         * m4/sockpfaf.m4: Likewise.
33455         * m4/st_dm_mode.m4: Likewise.
33456         * m4/stat-time.m4: Likewise.
33457         * m4/stdbool.m4: Likewise.
33458         * m4/stdint.m4: Likewise.
33459         * m4/stdint_h.m4: Likewise.
33460         * m4/stpcpy.m4: Likewise.
33461         * m4/stpncpy.m4: Likewise.
33462         * m4/strcase.m4: Likewise.
33463         * m4/strchrnul.m4: Likewise.
33464         * m4/strcspn.m4: Likewise.
33465         * m4/strdup.m4: Likewise.
33466         * m4/strftime.m4: Likewise.
33467         * m4/strndup.m4: Likewise.
33468         * m4/strnlen.m4: Likewise.
33469         * m4/strpbrk.m4: Likewise.
33470         * m4/strptime.m4: Likewise.
33471         * m4/strsep.m4: Likewise.
33472         * m4/strtod.m4: Likewise.
33473         * m4/strtoimax.m4: Likewise.
33474         * m4/strtok_r.m4: Likewise.
33475         * m4/strtol.m4: Likewise.
33476         * m4/strtoll.m4: Likewise.
33477         * m4/strtoul.m4: Likewise.
33478         * m4/strtoull.m4: Likewise.
33479         * m4/strtoumax.m4: Likewise.
33480         * m4/strverscmp.m4: Likewise.
33481         * m4/threadlib.m4: Likewise.
33482         * m4/timegm.m4: Likewise.
33483         * m4/tm_gmtoff.m4: Likewise.
33484         * m4/tmpdir.m4: Likewise.
33485         * m4/tmpfile.m4: Likewise.
33486         * m4/tzset.m4: Likewise.
33487         * m4/uintmax_t.m4: Likewise.
33488         * m4/unlinkdir.m4: Likewise.
33489         * m4/unlocked-io.m4: Likewise.
33490         * m4/uptime.m4: Likewise.
33491         * m4/userspec.m4: Likewise.
33492         * m4/utimbuf.m4: Likewise.
33493         * m4/utime.m4: Likewise.
33494         * m4/utimes-null.m4: Likewise.
33495         * m4/utimes.m4: Likewise.
33496         * m4/vararrays.m4: Likewise.
33497         * m4/vasnprintf.m4: Likewise.
33498         * m4/vfprintf-posix.m4: Likewise.
33499         * m4/vprintf-posix.m4: Likewise.
33500         * m4/wait-process.m4: Likewise.
33501         * m4/wchar_t.m4: Likewise.
33502         * m4/wint_t.m4: Likewise.
33503         * m4/write-any-file.m4: Likewise.
33504         * m4/yield.m4: Likewise.
33505
33506 2009-01-13  Bruno Haible  <bruno@clisp.org>
33507
33508         Avoid test-copy-file.sh failures when ACL support insufficient.
33509         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33510         TESTS_ENVIRONMENT.
33511         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33512         Reported by Jim Meyering.
33513
33514 2009-01-13  Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33517         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33518         * modules/unistdio/u8-printf-parse (Files): Likewise.
33519         * modules/unistdio/u32-printf-parse (Files): Likewise.
33520         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33521
33522 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33523
33524         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33525         and m4/inttypes_h.m4 too.
33526
33527 2009-01-12  Eric Blake  <ebb9@byu.net>
33528
33529         tests: IRIX 6.2 cc can't compile -0.0 into .data
33530         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33531         rather than at compile-time.
33532         * tests/test-floorl.c (minus_zero): Likewise.
33533         * tests/test-frexpl.c (minus_zero): Likewise.
33534         * tests/test-isnan.c (minus_zerol): Likewise.
33535         * tests/test-isnanl.h (minus_zero): Likewise.
33536         * tests/test-ldexpl.c (minus_zero): Likewise.
33537         * tests/test-roundl.c (minus_zero): Likewise.
33538         * tests/test-signbit.c (minus_zerol): Likewise.
33539         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33540         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33541         * tests/test-truncl.c (minus_zero): Likewise.
33542         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33543         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33544         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33545
33546 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33547
33548         regex: fix glibc bug 9697
33549         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33550         handling.
33551
33552 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33553
33554         regex: fix glibc bug 697
33555         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33556         being NULL also if there are no backreferences.
33557
33558 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33559
33560         regex: merge glibc changes
33561         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33562         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33563         re_string_skip_chars, re_string_reconstruct): Likewise.
33564         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33565
33566 2009-01-07  Jim Meyering  <meyering@redhat.com>
33567
33568         poll: filter through cppi
33569         * lib/poll.c: Indent cpp directives to reflect nesting.
33570
33571 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33572
33573         poll: don't return uninitialized
33574         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33575
33576 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33577
33578         avoid compile failure on AIX 6.1
33579         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33580         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33581
33582 2009-01-04  Jim Meyering  <meyering@redhat.com>
33583
33584         remove duplicate inclusion of <stdio.h>
33585         * tests/test-fprintf-posix.c: Likewise.
33586         * tests/test-printf-posix.c: Likewise.
33587         * tests/test-snprintf-posix.c: Likewise.
33588         * tests/test-sprintf-posix.c: Likewise.
33589         * tests/test-vasprintf-posix.c: Likewise.
33590         * tests/test-vfprintf-posix.c: Likewise.
33591         * tests/test-vprintf-posix.c: Likewise.
33592         * tests/test-vsnprintf-posix.c: Likewise.
33593         * tests/test-vsprintf-posix.c: Likewise.
33594
33595 2009-01-03  Jim Meyering  <meyering@redhat.com>
33596
33597         gnulib-tool: fix sed-based filtering
33598         * gnulib-tool (func_filter_filelist): Remove extra backslash
33599         in sed_fff_filter definition.
33600
33601 2009-01-02  Jim Meyering  <meyering@redhat.com>
33602
33603         strftime: avoid compilation failure on Solaris 2.6
33604         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33605         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33606         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33607         be available.  Reported by Tom G. Christensen.  Details in
33608         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33609
33610 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33611             Bruno Haible  <bruno@clisp.org>
33612
33613         Speed up gnulib-tool by doing more string processing through shell
33614         built-ins.
33615         * gnulib-tool (fast_func_append): New variable.
33616         (func_remove_prefix, func_remove_suffix): New functions.
33617         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33618         (func_filter_filelist): New function.
33619         (func_get_dependencies): Use func_remove_suffix instead of sed.
33620         (func_get_automake_snippet): Use func_filter_filelist instead of a
33621         subshell and sed invocation.
33622
33623 2009-01-01  Bruno Haible  <bruno@clisp.org>
33624
33625         Fix a security bug.
33626         * gnulib-tool (func_import, import, update): Don't allow the characters
33627         '"', '$', '`', '\' in macro arguments that become part of commands that
33628         are evaluated.
33629
33630 2009-01-01  Bruno Haible  <bruno@clisp.org>
33631
33632         * gnulib-tool (func_reset_sigpipe): Add more comments.
33633
33634 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33635
33636         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33637         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33638         already know the answer.
33639
33640 2009-01-01  Jim Meyering  <meyering@redhat.com>
33641
33642         * lib/version-etc.c (version_etc_va): Update copyright year.
33643
33644 2008-12-30  Bruno Haible  <bruno@clisp.org>
33645
33646         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33647         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33648         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33649
33650 2008-12-29  Eric Blake  <ebb9@byu.net>
33651
33652         multiarch: avoid autoconf AC_REQUIRE bug
33653         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33654         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33655         2.63 and older.
33656         Reported by Bruno Haible, and analyzed in
33657         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33658
33659 2008-12-29  Bruno Haible  <bruno@clisp.org>
33660
33661         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33662         files in subdirectories correctly.
33663         Reported by Ralf Wildenhues.
33664
33665 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33666
33667         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33668         rather than 'join FILE -', for Solaris join.
33669
33670 2008-12-29  Bruno Haible  <bruno@clisp.org>
33671
33672         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33673         quoting.
33674         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33675         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33676         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33677         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33678         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33679         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33680         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33681         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33682         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33683         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33684         * m4/nls.m4 (AM_NLS): Likewise.
33685         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33686         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33687         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33688         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33689         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33690         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33691         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33692         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33693         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33694         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33695         * m4/xsize.m4 (gl_XSIZE): Likewise.
33696         Suggested by Jim Meyering.
33697
33698 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33699
33700         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33701         * lib/parse-duration.c: use a switch instead of cascading if's.
33702
33703 2008-12-29  Eric Blake  <ebb9@byu.net>
33704
33705         wchar.h: supply WEOF on Irix 5.3
33706         * lib/wchar.in.h (wint_t): Also supply WEOF.
33707         * lib/wctype.in.h (wint_t): Likewise.
33708         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33709         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33710         Reported by Tom G. Christensen.
33711
33712 2008-12-26  Bruno Haible  <bruno@clisp.org>
33713
33714         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33715         i486, i586, i686.
33716
33717 2008-12-26  Bruno Haible  <bruno@clisp.org>
33718
33719         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33720
33721 2008-12-26  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33724         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33725         not __STDC_CONSTANT_MACROS.
33726         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33727
33728 2008-12-25  Bruno Haible  <bruno@clisp.org>
33729
33730         Add support for universal builds to vasnprintf.
33731         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33732         universal builds, guess no.
33733         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33734         * modules/vasprintf-posix (Depends-on): Likewise.
33735         * modules/fprintf-posix (Depends-on): Likewise.
33736         * modules/vfprintf-posix (Depends-on): Likewise.
33737         * modules/snprintf-posix (Depends-on): Likewise.
33738         * modules/vsnprintf-posix (Depends-on): Likewise.
33739         * modules/sprintf-posix (Depends-on): Likewise.
33740         * modules/vsprintf-posix (Depends-on): Likewise.
33741         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33742         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33743         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33744         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33745         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33746         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33747         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33748
33749         Add support for universal builds to <inttypes.h>.
33750         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33751         _SCNu64_PREFIX): In Apple
33752         universal builds, define directly, using _LP64.
33753         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33754         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33755         * modules/inttypes (Depends-on): Add multiarch.
33756         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33757
33758         Add support for universal builds to <stdint.h>.
33759         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33760         universal builds, define directly, using _LP64.
33761         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33762         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33763         and size_t.
33764         * modules/stdint (Depends-on): Add multiarch.
33765         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33766
33767         New module 'multiarch'.
33768         * modules/multiarch: New file.
33769         * m4/multiarch.m4: New file.
33770
33771 2008-12-25  Bruno Haible  <bruno@clisp.org>
33772
33773         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33774
33775 2008-12-25  Bruno Haible  <bruno@clisp.org>
33776
33777         * modules/btowc (License): Relicense under LGPLv2+.
33778         * modules/mbsinit (License): Likewise.
33779         * modules/mbrtowc (License): Likewise.
33780         * modules/wcrtomb (License): Likewise.
33781         * modules/streq (License): Likewise.
33782         Reported by David Lutterkort <lutter@redhat.com>.
33783
33784 2008-12-23  Bruno Haible  <bruno@clisp.org>
33785
33786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33787
33788 2008-12-23  Bruno Haible  <bruno@clisp.org>
33789
33790         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33792         GETADDRINFO_LIB, not in LIBS.
33793         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33794         * modules/canon-host (Link): Likewise.
33795         * NEWS: Mention the change.
33796         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33797         GETADDRINFO_LIB.
33798
33799 2008-12-22  Bruno Haible  <bruno@clisp.org>
33800
33801         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33802         * doc/posix-functions/iswalpha_l.texi: Likewise.
33803         * doc/posix-functions/iswblank_l.texi: Likewise.
33804         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33805         * doc/posix-functions/iswctype_l.texi: Likewise.
33806         * doc/posix-functions/iswdigit_l.texi: Likewise.
33807         * doc/posix-functions/iswgraph_l.texi: Likewise.
33808         * doc/posix-functions/iswlower_l.texi: Likewise.
33809         * doc/posix-functions/iswprint_l.texi: Likewise.
33810         * doc/posix-functions/iswpunct_l.texi: Likewise.
33811         * doc/posix-functions/iswspace_l.texi: Likewise.
33812         * doc/posix-functions/iswupper_l.texi: Likewise.
33813         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33814         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33815         * doc/posix-functions/open_wmemstream.texi: Likewise.
33816         * doc/posix-functions/swscanf.texi: Likewise.
33817         * doc/posix-functions/towctrans_l.texi: Likewise.
33818         * doc/posix-functions/towlower.texi: Likewise.
33819         * doc/posix-functions/towlower_l.texi: Likewise.
33820         * doc/posix-functions/towupper.texi: Likewise.
33821         * doc/posix-functions/towupper_l.texi: Likewise.
33822         * doc/posix-functions/vfwprintf.texi: Likewise.
33823         * doc/posix-functions/vfwscanf.texi: Likewise.
33824         * doc/posix-functions/vswscanf.texi: Likewise.
33825         * doc/posix-functions/vwprintf.texi: Likewise.
33826         * doc/posix-functions/vwscanf.texi: Likewise.
33827         * doc/posix-functions/wcpcpy.texi: Likewise.
33828         * doc/posix-functions/wcpncpy.texi: Likewise.
33829         * doc/posix-functions/wcscasecmp.texi: Likewise.
33830         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33831         * doc/posix-functions/wcscoll_l.texi: Likewise.
33832         * doc/posix-functions/wcsdup.texi: Likewise.
33833         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33834         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33835         * doc/posix-functions/wcsnlen.texi: Likewise.
33836         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33837         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33838         * doc/posix-functions/wctrans_l.texi: Likewise.
33839         * doc/posix-functions/wctype_l.texi: Likewise.
33840         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33841         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33842         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33843         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33844         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33845         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33846         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33847         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33848         * doc/glibc-functions/wcschrnul.texi: Likewise.
33849         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33850         * doc/glibc-functions/wcstod_l.texi: Likewise.
33851         * doc/glibc-functions/wcstof_l.texi: Likewise.
33852         * doc/glibc-functions/wcstol_l.texi: Likewise.
33853         * doc/glibc-functions/wcstold_l.texi: Likewise.
33854         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33855         * doc/glibc-functions/wcstoq.texi: Likewise.
33856         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33857         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33858         * doc/glibc-functions/wcstouq.texi: Likewise.
33859         * doc/glibc-functions/wmempcpy.texi: Likewise.
33860
33861 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33862             Eric Blake  <ebb9@byu.net>
33863             Paolo Bonzini  <bonzini@gnu.org>
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         Make c-stack work on Haiku.
33867         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33868         (c_stack_action): Use SA_ONSTACK flag.
33869
33870 2008-12-22  Bruno Haible  <bruno@clisp.org>
33871
33872         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33873
33874 2008-12-22  Bruno Haible  <bruno@clisp.org>
33875
33876         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33877         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33878         being overridden.
33879         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33880         New macros.
33881         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33883         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33884         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33885
33886 2008-12-22  Bruno Haible  <bruno@clisp.org>
33887
33888         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33889         from test code.
33890
33891 2008-12-22  Eric Blake  <ebb9@byu.net>
33892
33893         Avoid gcc warnings on cygwin.
33894         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33895         Avoid unused variable.
33896         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33897         Likewise.
33898
33899 2008-12-22  Bruno Haible  <bruno@clisp.org>
33900
33901         Remove HAVE_MBRTOWC conditionals.
33902         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33903         (mbscasecmp): Assume mbrtowc function.
33904         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33905         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33906         * lib/mbschr.c: Include mbuiter.h unconditionally.
33907         (mbschr): Assume mbrtowc function.
33908         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33909         (mbscspn): Assume mbrtowc function.
33910         * lib/mbslen.c: Include mbuiter.h unconditionally.
33911         (mbslen): Assume mbrtowc function.
33912         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33913         (mbsncasecmp): Assume mbrtowc function.
33914         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33915         (mbsnlen): Assume mbrtowc function.
33916         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33917         (mbspbrk): Assume mbrtowc function.
33918         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33919         (mbspcasecmp): Assume mbrtowc function.
33920         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33921         (mbsrchr): Assume mbrtowc function.
33922         * lib/mbssep.c: Include mbuiter.h unconditionally.
33923         (mbssep): Assume mbrtowc function.
33924         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33925         (mbsspn): Assume mbrtowc function.
33926         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33927         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33928         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33929         (mbstok_r): Assume mbrtowc function.
33930         * lib/propername.c: Include mbuiter.h unconditionally.
33931         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33932         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33933         (trim2): Assume mbrtowc function.
33934         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33935         (mbsnwidth): Assume mbrtowc function.
33936         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33937         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33938         fallback definitions.
33939         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33940
33941 2008-12-22  Bruno Haible  <bruno@clisp.org>
33942
33943         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33944
33945 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33946
33947         * modules/regex: Request emulations for the mb*/wc* functions we need.
33948         * m4/regex.m4: Don't look for those functions here.
33949         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33950
33951 2008-12-22  Bruno Haible  <bruno@clisp.org>
33952
33953         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33954
33955 2008-12-21  Bruno Haible  <bruno@clisp.org>
33956
33957         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33958         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33959         (Include): Remove conditionalization.
33960         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33961         (Include): Remove conditionalization.
33962         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33963         (Include): Remove conditionalization.
33964         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33965         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33966         * NEWS: Mention the change.
33967         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33968         via Sergey Poznyakoff <gray@gnu.org.ua>.
33969
33970 2008-12-21  Bruno Haible  <bruno@clisp.org>
33971
33972         * MODULES.html.sh (Extended multibyte and wide character utilities
33973         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33974         wcrtomb, wcsrtombs.
33975         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33976         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33977         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33978         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33979
33980 2008-12-21  Bruno Haible  <bruno@clisp.org>
33981
33982         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33983
33984 2008-12-21  Bruno Haible  <bruno@clisp.org>
33985
33986         * modules/wcsnrtombs-tests: New file.
33987         * tests/test-wcsnrtombs1.sh: New file.
33988         * tests/test-wcsnrtombs2.sh: New file.
33989         * tests/test-wcsnrtombs3.sh: New file.
33990         * tests/test-wcsnrtombs4.sh: New file.
33991         * tests/test-wcsnrtombs.c: New file.
33992
33993         New module 'wcsnrtombs'.
33994         * lib/wchar.in.h (wcsnrtombs): New declaration.
33995         * lib/wcsnrtombs.c: New file.
33996         * lib/wcsrtombs-state.c: New file.
33997         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33998         (internal_state): Remove variable.
33999         * m4/wcsnrtombs.m4: New file.
34000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34001         compilation units.
34002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34003         HAVE_WCSNRTOMBS.
34004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34005         HAVE_WCSNRTOMBS.
34006         * modules/wcsnrtombs: New file.
34007         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34008         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34009
34010 2008-12-21  Bruno Haible  <bruno@clisp.org>
34011
34012         * modules/wcsrtombs-tests: New file.
34013         * tests/test-wcsrtombs1.sh: New file.
34014         * tests/test-wcsrtombs2.sh: New file.
34015         * tests/test-wcsrtombs3.sh: New file.
34016         * tests/test-wcsrtombs4.sh: New file.
34017         * tests/test-wcsrtombs.c: New file.
34018
34019         New module 'wcsrtombs'.
34020         * lib/wchar.in.h (wcsrtombs): New declaration.
34021         * lib/wcsrtombs.c: New file.
34022         * m4/wcsrtombs.m4: New file.
34023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34024         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34026         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34027         * modules/wcsrtombs: New file.
34028         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34029         bugs.
34030
34031 2008-12-21  Bruno Haible  <bruno@clisp.org>
34032
34033         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34034         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34036         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34037         if not correct.
34038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34039         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34040         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34041         m4/locale-zh.m4, m4/codeset.m4.
34042         * doc/posix-functions/wcrtomb.texi: Document the bug.
34043
34044 2008-12-21  Bruno Haible  <bruno@clisp.org>
34045
34046         Work around a btowc() bug on IRIX 6.5.
34047         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34048         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34049         REPLACE_WTOBC if not.
34050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34051         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34052         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34053
34054 2008-12-21  Bruno Haible  <bruno@clisp.org>
34055
34056         * modules/wcrtomb-tests: New file.
34057         * tests/test-wcrtomb.sh: New file.
34058         * tests/test-wcrtomb.c: New file.
34059
34060         New module 'wcrtomb'.
34061         * lib/wchar.in.h (wcrtomb): New declaration.
34062         * lib/wcrtomb.c: New file.
34063         * m4/wcrtomb.m4: New file.
34064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34065         HAVE_WCRTOMB.
34066         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34067         HAVE_WCRTOMB.
34068         * modules/wcrtomb: New file.
34069         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34070
34071 2008-12-21  Bruno Haible  <bruno@clisp.org>
34072
34073         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34074         * modules/mbsrtowcs (Files): Likewise.
34075         * modules/wctob (Files): Likewise.
34076         * modules/c-strcase-tests (Files): Likewise.
34077         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34078         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34079         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34080         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34081         * modules/vasnprintf-posix-tests (Files): Likewise.
34082
34083 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34084
34085         gitlog-to-changelog: pass all command-line arguments to git-log
34086         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34087         it is sometimes convenient to filter the commits in various ways.
34088         gitlog-to-changelog only allows --since to specify a start date,
34089         but git-log itself supports many other filtering mechanisms.
34090         At the moment, I want to filter by branch name.  Rather than
34091         adding a --branch option to gitlog-to-changelog, it seems more
34092         flexible to simply pass all options directly to git-log and let
34093         git do the work.  Notice that this effectively makes --since a
34094         redundant option for gitlog-to-changelog, but removing it would
34095         require current usage to change since calls would then require
34096         an additional '--'.
34097
34098 2008-12-21  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/mbsnrtowcs-tests: New file.
34101         * tests/test-mbsnrtowcs1.sh: New file.
34102         * tests/test-mbsnrtowcs2.sh: New file.
34103         * tests/test-mbsnrtowcs3.sh: New file.
34104         * tests/test-mbsnrtowcs4.sh: New file.
34105         * tests/test-mbsnrtowcs.c: New file.
34106
34107         New module 'mbsnrtowcs'.
34108         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34109         * lib/mbsnrtowcs.c: New file.
34110         * lib/mbsrtowcs-state.c: New file.
34111         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34112         (internal_state): Remove variable.
34113         * m4/mbsnrtowcs.m4: New file.
34114         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34115         compilation units.
34116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34117         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34118         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34119         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34120         * modules/mbsnrtowcs: New file.
34121         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34122         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34123         portability problem.
34124
34125 2008-12-21  Bruno Haible  <bruno@clisp.org>
34126
34127         Work around mbsrtowcs bug.
34128         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34129         (gl_FUNC_MBSRTOWCS): Invoke it.
34130         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34131         m4/locale-zh.m4.
34132         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34133
34134 2008-12-21  Bruno Haible  <bruno@clisp.org>
34135
34136         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34137
34138 2008-12-21  Bruno Haible  <bruno@clisp.org>
34139
34140         Update doc for AIX.
34141         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34142         16-bit wchar_t type.
34143         * doc/posix-functions/btowc.texi: Likewise.
34144         * doc/posix-functions/fgetwc.texi: Likewise.
34145         * doc/posix-functions/fgetws.texi: Likewise.
34146         * doc/posix-functions/fputwc.texi: Likewise.
34147         * doc/posix-functions/fputws.texi: Likewise.
34148         * doc/posix-functions/fwide.texi: Likewise.
34149         * doc/posix-functions/fwprintf.texi: Likewise.
34150         * doc/posix-functions/fwscanf.texi: Likewise.
34151         * doc/posix-functions/getwchar.texi: Likewise.
34152         * doc/posix-functions/getwc.texi: Likewise.
34153         * doc/posix-functions/iswalnum.texi: Likewise.
34154         * doc/posix-functions/iswalpha.texi: Likewise.
34155         * doc/posix-functions/iswblank.texi: Likewise.
34156         * doc/posix-functions/iswcntrl.texi: Likewise.
34157         * doc/posix-functions/iswctype.texi: Likewise.
34158         * doc/posix-functions/iswdigit.texi: Likewise.
34159         * doc/posix-functions/iswgraph.texi: Likewise.
34160         * doc/posix-functions/iswlower.texi: Likewise.
34161         * doc/posix-functions/iswprint.texi: Likewise.
34162         * doc/posix-functions/iswpunct.texi: Likewise.
34163         * doc/posix-functions/iswspace.texi: Likewise.
34164         * doc/posix-functions/iswupper.texi: Likewise.
34165         * doc/posix-functions/iswxdigit.texi: Likewise.
34166         * doc/posix-functions/mbrtowc.texi: Likewise.
34167         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34168         * doc/posix-functions/mbstowcs.texi: Likewise.
34169         * doc/posix-functions/mbtowc.texi: Likewise.
34170         * doc/posix-functions/putwchar.texi: Likewise.
34171         * doc/posix-functions/putwc.texi: Likewise.
34172         * doc/posix-functions/swprintf.texi: Likewise.
34173         * doc/posix-functions/tolower.texi: Likewise.
34174         * doc/posix-functions/toupper.texi: Likewise.
34175         * doc/posix-functions/towctrans.texi: Likewise.
34176         * doc/posix-functions/ungetwc.texi: Likewise.
34177         * doc/posix-functions/vswprintf.texi: Likewise.
34178         * doc/posix-functions/wcrtomb.texi: Likewise.
34179         * doc/posix-functions/wcscat.texi: Likewise.
34180         * doc/posix-functions/wcschr.texi: Likewise.
34181         * doc/posix-functions/wcscmp.texi: Likewise.
34182         * doc/posix-functions/wcscoll.texi: Likewise.
34183         * doc/posix-functions/wcscpy.texi: Likewise.
34184         * doc/posix-functions/wcscspn.texi: Likewise.
34185         * doc/posix-functions/wcsftime.texi: Likewise.
34186         * doc/posix-functions/wcslen.texi: Likewise.
34187         * doc/posix-functions/wcsncat.texi: Likewise.
34188         * doc/posix-functions/wcsncmp.texi: Likewise.
34189         * doc/posix-functions/wcsncpy.texi: Likewise.
34190         * doc/posix-functions/wcspbrk.texi: Likewise.
34191         * doc/posix-functions/wcsrchr.texi: Likewise.
34192         * doc/posix-functions/wcsrtombs.texi: Likewise.
34193         * doc/posix-functions/wcsspn.texi: Likewise.
34194         * doc/posix-functions/wcsstr.texi: Likewise.
34195         * doc/posix-functions/wcstod.texi: Likewise.
34196         * doc/posix-functions/wcstof.texi: Likewise.
34197         * doc/posix-functions/wcstoimax.texi: Likewise.
34198         * doc/posix-functions/wcstok.texi: Likewise.
34199         * doc/posix-functions/wcstold.texi: Likewise.
34200         * doc/posix-functions/wcstoll.texi: Likewise.
34201         * doc/posix-functions/wcstol.texi: Likewise.
34202         * doc/posix-functions/wcstombs.texi: Likewise.
34203         * doc/posix-functions/wcstoull.texi: Likewise.
34204         * doc/posix-functions/wcstoul.texi: Likewise.
34205         * doc/posix-functions/wcstoumax.texi: Likewise.
34206         * doc/posix-functions/wcswidth.texi: Likewise.
34207         * doc/posix-functions/wcsxfrm.texi: Likewise.
34208         * doc/posix-functions/wctob.texi: Likewise.
34209         * doc/posix-functions/wctomb.texi: Likewise.
34210         * doc/posix-functions/wctrans.texi: Likewise.
34211         * doc/posix-functions/wctype.texi: Likewise.
34212         * doc/posix-functions/wcwidth.texi: Likewise.
34213         * doc/posix-functions/wmemchr.texi: Likewise.
34214         * doc/posix-functions/wmemcmp.texi: Likewise.
34215         * doc/posix-functions/wmemcpy.texi: Likewise.
34216         * doc/posix-functions/wmemmove.texi: Likewise.
34217         * doc/posix-functions/wmemset.texi: Likewise.
34218         * doc/posix-functions/wprintf.texi: Likewise.
34219         * doc/posix-functions/wscanf.texi: Likewise.
34220
34221 2008-12-21  Bruno Haible  <bruno@clisp.org>
34222
34223         Update doc for HP-UX 11.11.
34224         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34225         in HP-UX version 11.00, not in all versions of HP-UX 11.
34226         * doc/posix-functions/fwide.texi: Likewise.
34227         * doc/posix-functions/fwprintf.texi: Likewise.
34228         * doc/posix-functions/fwscanf.texi: Likewise.
34229         * doc/posix-functions/inet_ntop.texi: Likewise.
34230         * doc/posix-functions/inet_pton.texi: Likewise.
34231         * doc/posix-functions/mbrlen.texi: Likewise.
34232         * doc/posix-functions/mbrtowc.texi: Likewise.
34233         * doc/posix-functions/mbsinit.texi: Likewise.
34234         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34235         * doc/posix-functions/swprintf.texi: Likewise.
34236         * doc/posix-functions/swscanf.texi: Likewise.
34237         * doc/posix-functions/towctrans.texi: Likewise.
34238         * doc/posix-functions/vfwprintf.texi: Likewise.
34239         * doc/posix-functions/vswprintf.texi: Likewise.
34240         * doc/posix-functions/vwprintf.texi: Likewise.
34241         * doc/posix-functions/wcrtomb.texi: Likewise.
34242         * doc/posix-functions/wcsrtombs.texi: Likewise.
34243         * doc/posix-functions/wcsstr.texi: Likewise.
34244         * doc/posix-functions/wctob.texi: Likewise.
34245         * doc/posix-functions/wctrans.texi: Likewise.
34246         * doc/posix-functions/wmemchr.texi: Likewise.
34247         * doc/posix-functions/wmemcmp.texi: Likewise.
34248         * doc/posix-functions/wmemcpy.texi: Likewise.
34249         * doc/posix-functions/wmemmove.texi: Likewise.
34250         * doc/posix-functions/wmemset.texi: Likewise.
34251         * doc/posix-functions/wprintf.texi: Likewise.
34252         * doc/posix-functions/wscanf.texi: Likewise.
34253
34254 2008-12-21  Bruno Haible  <bruno@clisp.org>
34255
34256         Work around a portability problem.
34257         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34258         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34259
34260 2008-12-20  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34263         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34264         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34266         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34267
34268         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34269         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34270         set.
34271         (GNULIB_defined_mbstate_t): New macro.
34272         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34273         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34274         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34275         reuses the system's mbrtowc function but works around the bugs.
34276         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34277         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34278         macros.
34279         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34280         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34281         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34283         REPLACE_MBSINIT if mbsinit needs to be overridden.
34284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34285         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34286         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34287         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34288         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34289         m4/locale-zh.m4.
34290         (Depends): Add mbsinit.
34291         * modules/mbsinit (Depends): Add mbrtowc.
34292         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34293
34294 2008-12-20  Bruno Haible  <bruno@clisp.org>
34295
34296         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34297         so that there are no conversion errors on AIX.
34298         * tests/test-mbsrtowcs.c (main): LIkewise.
34299
34300 2008-12-20  Bruno Haible  <bruno@clisp.org>
34301
34302         Work around wctob bug on Solaris <= 9.
34303         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34304         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34306         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34307         * modules/wctob (Files): Add m4/locale-fr.m4.
34308         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34309
34310 2008-12-20  Bruno Haible  <bruno@clisp.org>
34311
34312         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34313         /dev/null.
34314         * tests/test-select-in.sh: Likewise.
34315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34316
34317 2008-12-20  Bruno Haible  <bruno@clisp.org>
34318
34319         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34320         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34321         Cygwin 1.5.x.
34322
34323 2008-12-20  Bruno Haible  <bruno@clisp.org>
34324
34325         Ensure mbstate_t is defined on HP-UX 11.11.
34326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34327         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34328         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34329         AC_USE_SYSTEM_EXTENSIONS.
34330         * modules/fnmatch (Depends-on): Add extensions.
34331         * modules/mbrlen (Depends-on): Likewise.
34332         * modules/mbrtowc (Depends-on): Likewise.
34333         * modules/mbsinit (Depends-on): Likewise.
34334         * modules/mbsrtowcs (Depends-on): Likewise.
34335         * modules/mbswidth (Depends-on): Likewise.
34336         * modules/quotearg (Depends-on): Likewise.
34337         * modules/strftime (Depends-on): Likewise.
34338
34339 2008-12-20  Bruno Haible  <bruno@clisp.org>
34340
34341         Ensure wctob is declared on IRIX 6.5.
34342         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34343         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34344         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34346         of HAVE_WCTOB.
34347         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34348         HAVE_WCTOB.
34349         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34350
34351 2008-12-19  Bruno Haible  <bruno@clisp.org>
34352
34353         * modules/mbsrtowcs-tests: New file.
34354         * tests/test-mbsrtowcs1.sh: New file.
34355         * tests/test-mbsrtowcs2.sh: New file.
34356         * tests/test-mbsrtowcs3.sh: New file.
34357         * tests/test-mbsrtowcs4.sh: New file.
34358         * tests/test-mbsrtowcs.c: New file.
34359
34360         New module 'mbsrtowcs'.
34361         * lib/wchar.in.h (mbsrtowcs): New declaration.
34362         * lib/mbsrtowcs.c: New file.
34363         * m4/mbsrtowcs.m4: New file.
34364         * modules/mbsrtowcs: New file.
34365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34366         HAVE_MBSRTOWCS.
34367         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34368         HAVE_MBSRTOWCS.
34369         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34370
34371 2008-12-19  Bruno Haible  <bruno@clisp.org>
34372
34373         New module 'mbrlen'.
34374         * lib/wchar.in.h (mbrlen): New declaration.
34375         * lib/mbrlen.c: New file.
34376         * m4/mbrlen.m4: New file.
34377         * modules/mbrlen: New file.
34378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34379         HAVE_MBRLEN.
34380         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34381         HAVE_MBRLEN.
34382         * doc/posix-functions/mbrlen.texi: Document the new module.
34383
34384 2008-12-19  Bruno Haible  <bruno@clisp.org>
34385
34386         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34387         * modules/mbrtowc (Depends-on): Add verify.
34388         Suggested by Paul Eggert.
34389
34390 2008-12-18  Bruno Haible  <bruno@clisp.org>
34391
34392         * modules/mbsinit-tests: New file.
34393         * tests/test-mbsinit.sh: New file.
34394         * tests/test-mbsinit.c: New file.
34395
34396 2008-12-18  Bruno Haible  <bruno@clisp.org>
34397
34398         * modules/mbrtowc-tests: New file.
34399         * tests/test-mbrtowc1.sh: New file.
34400         * tests/test-mbrtowc2.sh: New file.
34401         * tests/test-mbrtowc3.sh: New file.
34402         * tests/test-mbrtowc4.sh: New file.
34403         * tests/test-mbrtowc.c: New file.
34404
34405         New module 'mbrtowc'.
34406         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34407         mbsinit and mbrtowc.
34408         (mbrtowc): New declaration.
34409         * lib/mbrtowc.c: New file.
34410         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34411         * modules/mbrtowc: New file.
34412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34413         HAVE_MBRTOWC.
34414         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34415         HAVE_MBRTOWC.
34416         * doc/posix-functions/mbrtowc.texi: Document the new module.
34417
34418 2008-12-18  Bruno Haible  <bruno@clisp.org>
34419
34420         New module 'wctob'.
34421         * lib/wchar.in.h (wctob): New declaration.
34422         * lib/wctob.c: New file.
34423         * m4/wctob.m4: New file.
34424         * modules/wctob: New file.
34425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34426         HAVE_WCTOB.
34427         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34428         * doc/posix-functions/wctob.texi: Document the new module.
34429
34430 2008-12-18  Bruno Haible  <bruno@clisp.org>
34431
34432         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34433         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34434
34435 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34436
34437         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34438         G. Christensen" <tgc@jupiterrise.com>.
34439
34440         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34441         G. Christensen" <tgc@jupiterrise.com>.
34442
34443         * lib/flock.c: Need to include string.h.  Reported by "Tom
34444         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34445         <ebb9@byu.net>.
34446
34447 2008-12-18  Bruno Haible  <bruno@clisp.org>
34448
34449         * m4/locale-ja.m4: New file, from GNU gettext.
34450
34451 2008-12-17  Bruno Haible  <bruno@clisp.org>
34452
34453         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34454         Suggested by Eric Blake.
34455
34456 2008-12-17  Bruno Haible  <bruno@clisp.org>
34457
34458         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34459
34460 2008-12-17  Bruno Haible  <bruno@clisp.org>
34461
34462         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34463         * modules/mbsinit (Depends-on): Add verify.
34464         Suggested by Paul Eggert.
34465
34466 2008-12-17  Bruno Haible  <bruno@clisp.org>
34467
34468         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34469         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34470         gl_FUNC_MBRTOWC.
34471         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34472         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34473         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34474         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34475         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34476         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34477         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34478         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34479         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34480         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34481         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34482         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34483         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34484         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34485         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34486         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34487         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34488         * modules/trim (configure.ac): Likewise.
34489
34490 2008-12-17  Bruno Haible  <bruno@clisp.org>
34491
34492         * modules/btowc-tests: New file.
34493         * tests/test-btowc1.sh: New file.
34494         * tests/test-btowc2.sh: New file.
34495         * tests/test-btowc.c: New file.
34496
34497         New module 'btowc'.
34498         * lib/wchar.in.h (btowc): New declaration.
34499         * lib/btowc.c: New file.
34500         * m4/btowc.m4: New file.
34501         * modules/btowc: New file.
34502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34503         HAVE_BTOWC.
34504         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34505         * doc/posix-functions/btowc.texi: Document the new module.
34506
34507 2008-12-17  Bruno Haible  <bruno@clisp.org>
34508
34509         New module 'mbsinit'.
34510         * lib/wchar.in.h (mbsinit): New declaration.
34511         * lib/mbsinit.c: New file.
34512         * m4/mbsinit.m4: New file.
34513         * modules/mbsinit: New file.
34514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34515         HAVE_MBSINIT.
34516         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34517         HAVE_MBSINIT.
34518         * doc/posix-functions/mbsinit.texi: Document the new module.
34519
34520 2008-12-16  Bruno Haible  <bruno@clisp.org>
34521
34522         * lib/unistd.in.h: Add comment.
34523         * tests/test-environ.c: Don't include <stdlib.h>.
34524
34525 2008-12-16  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/parse-duration.h (parse_duration): Document return value
34528         convention.
34529         * lib/parse-duration.c: Include specification header first. Add
34530         comments.
34531         (_): Remove macro.
34532         (parse_year_month_day, parse_hour_minute_second): Move side effects
34533         outside of strchr call.
34534         (parse_non_iso8601): Move side effects outside of isspace call.
34535         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34536         call.
34537
34538 2008-12-16  Bruno Haible  <bruno@clisp.org>
34539
34540         * tests/test-parse-duration.sh: Produce no output when the test
34541         succeeds.
34542
34543 2008-12-16  Bruno Haible  <bruno@clisp.org>
34544
34545         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34546         expressions.
34547
34548 2008-12-15  Bruno Haible  <bruno@clisp.org>
34549
34550         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34551         * doc/glibc-functions/flistxattr.texi: Likewise.
34552         * doc/glibc-functions/fopencookie.texi: Likewise.
34553         * doc/glibc-functions/fremovexattr.texi: Likewise.
34554         * doc/glibc-functions/fsetxattr.texi: Likewise.
34555         * doc/glibc-functions/getxattr.texi: Likewise.
34556         * doc/glibc-functions/lgetxattr.texi: Likewise.
34557         * doc/glibc-functions/listxattr.texi: Likewise.
34558         * doc/glibc-functions/llistxattr.texi: Likewise.
34559         * doc/glibc-functions/lremovexattr.texi: Likewise.
34560         * doc/glibc-functions/lsetxattr.texi: Likewise.
34561         * doc/glibc-functions/removexattr.texi: Likewise.
34562         * doc/glibc-functions/setxattr.texi: Likewise.
34563         * doc/posix-functions/open_memstream.texi: Likewise.
34564
34565 2008-12-15  Eric Blake  <ebb9@byu.net>
34566
34567         Update doc for cygwin 1.7.
34568         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34569         functions.
34570         * doc/posix-functions/fchmodat.texi: Likewise.
34571         * doc/posix-functions/fchownat.texi: Likewise.
34572         * doc/posix-functions/fdopendir.texi: Likewise.
34573         * doc/posix-functions/fmemopen.texi: Likewise.
34574         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34575         * doc/posix-functions/fstatat.texi: Likewise.
34576         * doc/posix-functions/futimens.texi: Likewise.
34577         * doc/posix-functions/gai_strerror.texi: Likewise.
34578         * doc/posix-functions/getaddrinfo.texi: Likewise.
34579         * doc/posix-functions/getnameinfo.texi: Likewise.
34580         * doc/posix-functions/if_freenameindex.texi: Likewise.
34581         * doc/posix-functions/if_indextoname.texi: Likewise.
34582         * doc/posix-functions/if_nameindex.texi: Likewise.
34583         * doc/posix-functions/if_nametoindex.texi: Likewise.
34584         * doc/posix-functions/insque.texi: Likewise.
34585         * doc/posix-functions/linkat.texi: Likewise.
34586         * doc/posix-functions/llrint.texi: Likewise.
34587         * doc/posix-functions/llrintf.texi: Likewise.
34588         * doc/posix-functions/llrintl.texi: Likewise.
34589         * doc/posix-functions/lockf.texi: Likewise.
34590         * doc/posix-functions/lrintl.texi: Likewise.
34591         * doc/posix-functions/mkdirat.texi: Likewise.
34592         * doc/posix-functions/mkfifoat.texi: Likewise.
34593         * doc/posix-functions/mknodat.texi: Likewise.
34594         * doc/posix-functions/mq_close.texi: Likewise.
34595         * doc/posix-functions/mq_getattr.texi: Likewise.
34596         * doc/posix-functions/mq_notify.texi: Likewise.
34597         * doc/posix-functions/mq_open.texi: Likewise.
34598         * doc/posix-functions/mq_receive.texi: Likewise.
34599         * doc/posix-functions/mq_send.texi: Likewise.
34600         * doc/posix-functions/mq_setattr.texi: Likewise.
34601         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34602         * doc/posix-functions/mq_timedsend.texi: Likewise.
34603         * doc/posix-functions/mq_unlink.texi: Likewise.
34604         * doc/posix-functions/open_memstream.texi: Likewise.
34605         * doc/posix-functions/openat.texi: Likewise.
34606         * doc/posix-functions/posix_fadvise.texi: Likewise.
34607         * doc/posix-functions/posix_fallocate.texi: Likewise.
34608         * doc/posix-functions/posix_madvise.texi: Likewise.
34609         * doc/posix-functions/posix_memalign.texi: Likewise.
34610         * doc/posix-functions/posix_openpt.texi: Likewise.
34611         * doc/posix-functions/readlinkat.texi: Likewise.
34612         * doc/posix-functions/remque.texi: Likewise.
34613         * doc/posix-functions/renameat.texi: Likewise.
34614         * doc/posix-functions/rintl.texi: Likewise.
34615         * doc/posix-functions/sem_unlink.texi: Likewise.
34616         * doc/posix-functions/shm_open.texi: Likewise.
34617         * doc/posix-functions/shm_unlink.texi: Likewise.
34618         * doc/posix-functions/signgam.texi: Likewise.
34619         * doc/posix-functions/sigset.texi: Likewise.
34620         * doc/posix-functions/stpcpy.texi: Likewise.
34621         * doc/posix-functions/stpncpy.texi: Likewise.
34622         * doc/posix-functions/strerror.texi: Likewise.
34623         * doc/posix-functions/strtod.texi: Likewise.
34624         * doc/posix-functions/symlinkat.texi: Likewise.
34625         * doc/posix-functions/unlinkat.texi: Likewise.
34626         * doc/posix-functions/utimensat.texi: Likewise.
34627         * doc/glibc-functions/bindresvport.texi: Likewise.
34628         * doc/glibc-functions/dn_expand.texi: Likewise.
34629         * doc/glibc-functions/exp10.texi: Likewise.
34630         * doc/glibc-functions/exp10f.texi: Likewise.
34631         * doc/glibc-functions/fgetxattr.texi: Likewise.
34632         * doc/glibc-functions/flistxattr.texi: Likewise.
34633         * doc/glibc-functions/fopencookie.texi: Likewise.
34634         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34635         * doc/glibc-functions/fremovexattr.texi: Likewise.
34636         * doc/glibc-functions/fsetxattr.texi: Likewise.
34637         * doc/glibc-functions/getifaddrs.texi: Likewise.
34638         * doc/glibc-functions/getxattr.texi: Likewise.
34639         * doc/glibc-functions/lgetxattr.texi: Likewise.
34640         * doc/glibc-functions/listxattr.texi: Likewise.
34641         * doc/glibc-functions/llistxattr.texi: Likewise.
34642         * doc/glibc-functions/lremovexattr.texi: Likewise.
34643         * doc/glibc-functions/lsetxattr.texi: Likewise.
34644         * doc/glibc-functions/pow10.texi: Likewise.
34645         * doc/glibc-functions/pow10f.texi: Likewise.
34646         * doc/glibc-functions/rcmd_af.texi: Likewise.
34647         * doc/glibc-functions/removexattr.texi: Likewise.
34648         * doc/glibc-functions/res_init.texi: Likewise.
34649         * doc/glibc-functions/res_mkquery.texi: Likewise.
34650         * doc/glibc-functions/res_query.texi: Likewise.
34651         * doc/glibc-functions/res_querydomain.texi: Likewise.
34652         * doc/glibc-functions/res_send.texi: Likewise.
34653         * doc/glibc-functions/rresvport_af.texi: Likewise.
34654         * doc/glibc-functions/setxattr.texi: Likewise.
34655         * doc/glibc-functions/strcasestr.texi: Likewise.
34656
34657 2008-12-15  Bruno Haible  <bruno@clisp.org>
34658
34659         Fix compilation error on OSF/1 4.0.
34660         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34661         <sys/time.h>, simply delegate to the system header.
34662         Reported by Daniel Richard G. <oss@teragram.com>.
34663
34664 2008-12-15  Bruno Haible  <bruno@clisp.org>
34665
34666         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34667         * doc/posix-functions/fchmodat.texi: Likewise.
34668         * doc/posix-functions/fchownat.texi: Likewise.
34669         * doc/posix-functions/fdopendir.texi: Likewise.
34670         * doc/posix-functions/fstatat.texi: Likewise.
34671         * doc/posix-functions/mkdirat.texi: Likewise.
34672         * doc/posix-functions/unlinkat.texi: Likewise.
34673
34674 2008-12-14  Bruno Haible  <bruno@clisp.org>
34675
34676         Update doc for POSIX:2008.
34677         * doc/posix-functions/faccessat.texi: New file.
34678         * doc/posix-functions/fchmodat.texi: New file.
34679         * doc/posix-functions/fchownat.texi: New file.
34680         * doc/posix-functions/fdopendir.texi: New file.
34681         * doc/posix-functions/fstatat.texi: New file.
34682         * doc/posix-functions/futimens.texi: New file.
34683         * doc/posix-functions/linkat.texi: New file.
34684         * doc/posix-functions/mkdirat.texi: New file.
34685         * doc/posix-functions/mkfifoat.texi: New file.
34686         * doc/posix-functions/mknodat.texi: New file.
34687         * doc/posix-functions/open_wmemstream.texi: New file.
34688         * doc/posix-functions/openat.texi: New file.
34689         * doc/posix-functions/psiginfo.texi: New file.
34690         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34691         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34692         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34693         * doc/posix-functions/readlinkat.texi: New file.
34694         * doc/posix-functions/renameat.texi: New file.
34695         * doc/posix-functions/strerror_l.texi: New file.
34696         * doc/posix-functions/symlinkat.texi: New file.
34697         * doc/posix-functions/unlinkat.texi: New file.
34698         * doc/posix-functions/utimensat.texi: New file.
34699         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34700
34701 2008-12-14  Bruno Haible  <bruno@clisp.org>
34702
34703         Update doc for POSIX:2008.
34704         * doc/posix-functions/alphasort.texi: Renamed from
34705         doc/glibc-functions/alphasort.texi.
34706         * doc/posix-functions/dirfd.texi: Renamed from
34707         doc/glibc-functions/dirfd.texi.
34708         * doc/posix-functions/dprintf.texi: Renamed from
34709         doc/glibc-functions/dprintf.texi.
34710         * doc/posix-functions/duplocale.texi: Renamed from
34711         doc/glibc-functions/duplocale.texi.
34712         * doc/posix-functions/fexecve.texi: Renamed from
34713         doc/glibc-functions/fexecve.texi.
34714         * doc/posix-functions/fmemopen.texi: Renamed from
34715         doc/glibc-functions/fmemopen.texi.
34716         * doc/posix-functions/freelocale.texi: Renamed from
34717         doc/glibc-functions/freelocale.texi.
34718         * doc/posix-functions/getdate_err.texi: Renamed from
34719         doc/glibc-functions/getdate_err.texi.
34720         * doc/posix-functions/isalnum_l.texi: Renamed from
34721         doc/glibc-functions/isalnum_l.texi.
34722         * doc/posix-functions/isalpha_l.texi: Renamed from
34723         doc/glibc-functions/isalpha_l.texi.
34724         * doc/posix-functions/isblank_l.texi: Renamed from
34725         doc/glibc-functions/isblank_l.texi.
34726         * doc/posix-functions/iscntrl_l.texi: Renamed from
34727         doc/glibc-functions/iscntrl_l.texi.
34728         * doc/posix-functions/isdigit_l.texi: Renamed from
34729         doc/glibc-functions/isdigit_l.texi.
34730         * doc/posix-functions/isgraph_l.texi: Renamed from
34731         doc/glibc-functions/isgraph_l.texi.
34732         * doc/posix-functions/islower_l.texi: Renamed from
34733         doc/glibc-functions/islower_l.texi.
34734         * doc/posix-functions/isprint_l.texi: Renamed from
34735         doc/glibc-functions/isprint_l.texi.
34736         * doc/posix-functions/ispunct_l.texi: Renamed from
34737         doc/glibc-functions/ispunct_l.texi.
34738         * doc/posix-functions/isspace_l.texi: Renamed from
34739         doc/glibc-functions/isspace_l.texi.
34740         * doc/posix-functions/isupper_l.texi: Renamed from
34741         doc/glibc-functions/isupper_l.texi.
34742         * doc/posix-functions/iswalnum_l.texi: Renamed from
34743         doc/glibc-functions/iswalnum_l.texi.
34744         * doc/posix-functions/iswalpha_l.texi: Renamed from
34745         doc/glibc-functions/iswalpha_l.texi.
34746         * doc/posix-functions/iswblank_l.texi: Renamed from
34747         doc/glibc-functions/iswblank_l.texi.
34748         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34749         doc/glibc-functions/iswcntrl_l.texi.
34750         * doc/posix-functions/iswctype_l.texi: Renamed from
34751         doc/glibc-functions/iswctype_l.texi.
34752         * doc/posix-functions/iswdigit_l.texi: Renamed from
34753         doc/glibc-functions/iswdigit_l.texi.
34754         * doc/posix-functions/iswgraph_l.texi: Renamed from
34755         doc/glibc-functions/iswgraph_l.texi.
34756         * doc/posix-functions/iswlower_l.texi: Renamed from
34757         doc/glibc-functions/iswlower_l.texi.
34758         * doc/posix-functions/iswprint_l.texi: Renamed from
34759         doc/glibc-functions/iswprint_l.texi.
34760         * doc/posix-functions/iswpunct_l.texi: Renamed from
34761         doc/glibc-functions/iswpunct_l.texi.
34762         * doc/posix-functions/iswspace_l.texi: Renamed from
34763         doc/glibc-functions/iswspace_l.texi.
34764         * doc/posix-functions/iswupper_l.texi: Renamed from
34765         doc/glibc-functions/iswupper_l.texi.
34766         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34767         doc/glibc-functions/iswxdigit_l.texi.
34768         * doc/posix-functions/isxdigit_l.texi: Renamed from
34769         doc/glibc-functions/isxdigit_l.texi.
34770         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34771         doc/glibc-functions/mbsnrtowcs.texi.
34772         * doc/posix-functions/mkdtemp.texi: Renamed from
34773         doc/glibc-functions/mkdtemp.texi.
34774         * doc/posix-functions/newlocale.texi: Renamed from
34775         doc/glibc-functions/newlocale.texi.
34776         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34777         doc/glibc-functions/nl_langinfo_l.texi.
34778         * doc/posix-functions/open_memstream.texi: Renamed from
34779         doc/glibc-functions/open_memstream.texi.
34780         * doc/posix-functions/opterr.texi: Renamed from
34781         doc/glibc-functions/opterr.texi.
34782         * doc/posix-functions/optind.texi: Renamed from
34783         doc/glibc-functions/optind.texi.
34784         * doc/posix-functions/optopt.texi: Renamed from
34785         doc/glibc-functions/optopt.texi.
34786         * doc/posix-functions/psignal.texi: Renamed from
34787         doc/glibc-functions/psignal.texi.
34788         * doc/posix-functions/scandir.texi: Renamed from
34789         doc/glibc-functions/scandir.texi.
34790         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34791         doc/glibc-functions/sched_get_priority_min.texi.
34792         * doc/posix-functions/signgam.texi: Renamed from
34793         doc/glibc-functions/signgam.texi.
34794         * doc/posix-functions/stpcpy.texi: Renamed from
34795         doc/glibc-functions/stpcpy.texi.
34796         * doc/posix-functions/stpncpy.texi: Renamed from
34797         doc/glibc-functions/stpncpy.texi.
34798         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34799         doc/glibc-functions/strcasecmp_l.texi.
34800         * doc/posix-functions/strcoll_l.texi: Renamed from
34801         doc/glibc-functions/strcoll_l.texi.
34802         * doc/posix-functions/strfmon_l.texi: Renamed from
34803         doc/glibc-functions/strfmon_l.texi.
34804         * doc/posix-functions/strftime_l.texi: Renamed from
34805         doc/glibc-functions/strftime_l.texi.
34806         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34807         doc/glibc-functions/strncasecmp_l.texi.
34808         * doc/posix-functions/strndup.texi: Renamed from
34809         doc/glibc-functions/strndup.texi.
34810         * doc/posix-functions/strnlen.texi: Renamed from
34811         doc/glibc-functions/strnlen.texi.
34812         * doc/posix-functions/strsignal.texi: Renamed from
34813         doc/glibc-functions/strsignal.texi.
34814         * doc/posix-functions/strxfrm_l.texi: Renamed from
34815         doc/glibc-functions/strxfrm_l.texi.
34816         * doc/posix-functions/timer_gettime.texi: Renamed from
34817         doc/glibc-functions/timer_gettime.texi.
34818         * doc/posix-functions/tolower_l.texi: Renamed from
34819         doc/glibc-functions/tolower_l.texi.
34820         * doc/posix-functions/toupper_l.texi: Renamed from
34821         doc/glibc-functions/toupper_l.texi.
34822         * doc/posix-functions/towctrans_l.texi: Renamed from
34823         doc/glibc-functions/towctrans_l.texi.
34824         * doc/posix-functions/towlower_l.texi: Renamed from
34825         doc/glibc-functions/towlower_l.texi.
34826         * doc/posix-functions/towupper_l.texi: Renamed from
34827         doc/glibc-functions/towupper_l.texi.
34828         * doc/posix-functions/uselocale.texi: Renamed from
34829         doc/glibc-functions/uselocale.texi.
34830         * doc/posix-functions/vdprintf.texi: Renamed from
34831         doc/glibc-functions/vdprintf.texi.
34832         * doc/posix-functions/wcpcpy.texi:
34833         Renamed from doc/glibc-functions/wcpcpy.texi.
34834         * doc/posix-functions/wcpncpy.texi: Renamed from
34835         doc/glibc-functions/wcpncpy.texi.
34836         * doc/posix-functions/wcscasecmp.texi: Renamed from
34837         doc/glibc-functions/wcscasecmp.texi.
34838         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34839         doc/glibc-functions/wcscasecmp_l.texi.
34840         * doc/posix-functions/wcscoll_l.texi: Renamed from
34841         doc/glibc-functions/wcscoll_l.texi.
34842         * doc/posix-functions/wcsdup.texi: Renamed from
34843         doc/glibc-functions/wcsdup.texi.
34844         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34845         doc/glibc-functions/wcsncasecmp.texi.
34846         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34847         doc/glibc-functions/wcsncasecmp_l.texi.
34848         * doc/posix-functions/wcsnlen.texi: Renamed from
34849         doc/glibc-functions/wcsnlen.texi.
34850         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34851         doc/glibc-functions/wcsnrtombs.texi.
34852         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34853         doc/glibc-functions/wcsxfrm_l.texi.
34854         * doc/posix-functions/wctrans_l.texi: Renamed from
34855         doc/glibc-functions/wctrans_l.texi.
34856         * doc/posix-functions/wctype_l.texi: Renamed from
34857         doc/glibc-functions/wctype_l.texi.
34858         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34859         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34860         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34861         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34862         these subsections.
34863         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34864         Remove sections.
34865
34866 2008-12-14  Bruno Haible  <bruno@clisp.org>
34867
34868         Update doc for POSIX:2008.
34869         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34870
34871 2008-12-14  Bruno Haible  <bruno@clisp.org>
34872
34873         Update doc for POSIX:2008.
34874         * doc/pastposix-functions/bcmp.texi: Renamed from
34875         doc/posix-functions/bcmp.texi.
34876         * doc/pastposix-functions/bcopy.texi: Renamed from
34877         doc/posix-functions/bcopy.texi.
34878         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34879         doc/posix-functions/bsd_signal.texi.
34880         * doc/pastposix-functions/bzero.texi: Renamed from
34881         doc/posix-functions/bzero.texi.
34882         * doc/pastposix-functions/ecvt.texi: Renamed from
34883         doc/posix-functions/ecvt.texi.
34884         * doc/pastposix-functions/fcvt.texi: Renamed from
34885         doc/posix-functions/fcvt.texi.
34886         * doc/pastposix-functions/ftime.texi: Renamed from
34887         doc/posix-functions/ftime.texi.
34888         * doc/pastposix-functions/gcvt.texi: Renamed from
34889         doc/posix-functions/gcvt.texi.
34890         * doc/pastposix-functions/getcontext.texi: Renamed from
34891         doc/posix-functions/getcontext.texi.
34892         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34893         doc/posix-functions/gethostbyaddr.texi.
34894         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34895         doc/posix-functions/gethostbyname.texi.
34896         * doc/pastposix-functions/getwd.texi: Renamed from
34897         doc/posix-functions/getwd.texi.
34898         * doc/pastposix-functions/h_errno.texi: Renamed from
34899         doc/posix-functions/h_errno.texi.
34900         * doc/pastposix-functions/index.texi: Renamed from
34901         doc/posix-functions/index.texi.
34902         * doc/pastposix-functions/makecontext.texi: Renamed from
34903         doc/posix-functions/makecontext.texi.
34904         * doc/pastposix-functions/mktemp.texi: Renamed from
34905         doc/posix-functions/mktemp.texi.
34906         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34907         doc/posix-functions/pthread_attr_getstackaddr.texi.
34908         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34909         doc/posix-functions/pthread_attr_setstackaddr.texi.
34910         * doc/pastposix-functions/rindex.texi: Renamed from
34911         doc/posix-functions/rindex.texi.
34912         * doc/pastposix-functions/scalb.texi: Renamed from
34913         doc/posix-functions/scalb.texi.
34914         * doc/pastposix-functions/setcontext.texi: Renamed from
34915         doc/posix-functions/setcontext.texi.
34916         * doc/pastposix-functions/swapcontext.texi: Renamed from
34917         doc/posix-functions/swapcontext.texi.
34918         * doc/pastposix-functions/ualarm.texi: Renamed from
34919         doc/posix-functions/ualarm.texi.
34920         * doc/pastposix-functions/usleep.texi: Renamed from
34921         doc/posix-functions/usleep.texi.
34922         * doc/pastposix-functions/vfork.texi: Renamed from
34923         doc/posix-functions/vfork.texi.
34924         * doc/pastposix-functions/wcswcs.texi: Renamed from
34925         doc/posix-functions/wcswcs.texi.
34926         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34927         (Function Substitutes): Update.
34928
34929 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34930
34931         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34932         m4/strerror.m4.
34933
34934 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34935             Bruno Haible  <bruno@clisp.org>
34936
34937         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34938
34939 2008-12-13  Bruno Haible  <bruno@clisp.org>
34940
34941         * modules/strtoull (Depends-on): Remove unistd.
34942
34943 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34944
34945         * modules/strtoull (Depends-on): Add stdlib.
34946
34947 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34948
34949         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34950
34951 2008-12-10  Jim Meyering  <meyering@redhat.com>
34952
34953         gl_ASSERT: don't say assertions are disabled when they're not
34954         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34955         "checking whether to enable assertions... no", when they are in
34956         fact enabled.  This is solely a bug in the output of configure.
34957         In spite of saying "no", NDEBUG was not defined in that case.
34958         Also, as noted by Eric Blake, leave assertions enabled upon
34959         --enable-assert=INVALID.
34960
34961 2008-12-10  Bruno Haible  <bruno@clisp.org>
34962
34963         Change MODULES.html to refer to POSIX:2008 where possible.
34964         * MODULES.html.sh (POSIX2008_URL): New variable.
34965         (posix_headers): Remove sys/timeb, ucontext.
34966         (posix2001_headers): New variable.
34967         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34968         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34969         index, makecontext, mktemp, pthread_attr_getstackaddr,
34970         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34971         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34972         (posix2001_functions): New variable.
34973         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34974         otherwise.
34975
34976 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34977
34978         add missing include to parse-duration.c
34979         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34980         * modules/parse-duration (Depends-on): Add xalloc.
34981
34982         fix sed script reading maint.mk
34983         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34984         (syntax-check-rules): Use it.
34985
34986 2008-12-09  Bruno Haible  <bruno@clisp.org>
34987
34988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34989         MacOS X 10.4/PowerPC.
34990         Reported by Simon Josefsson.
34991
34992 2008-12-08  Jim Meyering  <meyering@redhat.com>
34993
34994         work around mingw's lack of some S_IF definitions
34995         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34996         Reported by Simon Josefsson.
34997
34998 2008-12-08  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35001         applied to variables. Needed on MacOS X 10.4/PowerPC.
35002         Reported by Simon Josefsson.
35003
35004 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35005         and Eric Blake  <ebb9@byu.net>
35006
35007         assert: honor --enable-assert
35008         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35009         order to honor --enable-assert, rather than treating it as a
35010         synonym for --disable-assert.
35011
35012 2008-12-08  Jim Meyering  <meyering@redhat.com>
35013
35014         * lib/posixtm.c: Remove now-useless declaration of mktime.
35015
35016         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35017
35018 2008-12-07  Bruno Haible  <bruno@clisp.org>
35019
35020         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35021         test_once): Mark functions as static.
35022         * tests/test-tls.c (test_tls): Likewise.
35023
35024 2008-12-07  Bruno Haible  <bruno@clisp.org>
35025
35026         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35027         iconv_register_autodetect.
35028
35029 2008-12-07  Jim Meyering  <meyering@redhat.com>
35030
35031         posixtm.c: avoid a warning
35032         * lib/posixtm.c (posixtime): Don't initialize tm0.
35033         It's no longer needed to placate gcc4's -Wuninitialized,
35034         and the attempt to placate would elicit a new warning.
35035
35036         unicodeio.c: mark unused parameters
35037         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35038         (fallback_failure_callback): Likewise.
35039
35040 2008-12-07  Bruno Haible  <bruno@clisp.org>
35041
35042         * gnulib-tool (func_create_testdir): When building the tests
35043         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35044         Reported by Simon Josefsson.
35045
35046 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35047
35048         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35049
35050 2008-12-06  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35053         Suggested by Eric Blake.
35054
35055 2008-12-06  Bruno Haible  <bruno@clisp.org>
35056
35057         Fix a c-stack test failure on MacOS X.
35058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35059         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35060         handler for SIGBUS as well.
35061         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35062         install a signal handler for SIGBUS as well.
35063         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35064
35065 2008-12-06  Bruno Haible  <bruno@clisp.org>
35066
35067         Advocacy documentation.
35068         * doc/gnulib-intro.texi (Benefits): New section.
35069         * doc/gnulib.texi: Update.
35070
35071 2008-12-06  Bruno Haible  <bruno@clisp.org>
35072
35073         Document the 'manywarnings' module.
35074         * doc/manywarnings.texi: New file.
35075         * doc/gnulib.texi: Include it.
35076
35077 2008-12-05  Eric Blake  <ebb9@byu.net>
35078
35079         tests: silence some gcc warnings
35080         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35081         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35082         type mismatches.
35083
35084 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35085             Bruno Haible  <bruno@clisp.org>
35086
35087         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35088
35089 2008-11-29  Jim Meyering  <meyering@redhat.com>
35090
35091         unicodeio.c: mark unused parameters
35092         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35093         (fallback_failure_callback): Likewise.
35094
35095         fts: fix a thinko
35096         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35097         (set_stat_type): Return S_IF*-valued "type" directly.
35098         Prompted by James Youngman's spotting a related bug.
35099         Confirmed by further testing through find.
35100
35101         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35102         * lib/fts.c (D_TYPE): Define.
35103         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35104         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35105         (s_ifmt_shift_bits): New function.
35106         (set_stat_type): New function.
35107         (fts_build): When not calling fts_stat, call set_stat_type
35108         to propagate dirent.d_type info to fts_read caller.
35109         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35110         fts_statp->st_mode type information may be valid.
35111
35112 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35113
35114         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35115         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35116         <sds@gnu.org>.
35117
35118 2008-11-20  Bruno Haible  <bruno@clisp.org>
35119
35120         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35121         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35122         INCLUDE_NEXT.
35123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35124         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35125         * modules/math (Makefile.am): Substitute
35126         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35128
35129 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35130             Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/stdint.in.h: Define all type macros so that their expansion is
35133         a single typedef'ed token. Fixes a compilation failure in Boost which
35134         does "using ::int8_t;".
35135
35136 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35137
35138         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35139         gl_MANYWARN_ALL_GCC.
35140         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35141         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35142         * modules/manywarnings: New file.
35143         * MODULES.html.sh: Mention manywarnings module.
35144
35145 2008-11-18  Bruno Haible  <bruno@clisp.org>
35146
35147         * doc/gnulib-tool.texi (Unit tests): New section.
35148
35149 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35150
35151         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35152         paths like 'lib/po/foo.po'.
35153
35154 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35155
35156         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35157         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35158
35159 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35160
35161         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35162         parameter works.
35163
35164 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35165
35166         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35167
35168 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35169
35170         * modules/parse-duration-tests: New file.
35171         * tests/test-parse-duration.sh: New file.
35172         * tests/test-parse-duration.c: New file.
35173
35174         New module 'parse-duration'.
35175         * lib/parse-duration.h: New file.
35176         * lib/parse-duration.c: New file.
35177         * modules/parse-duration: New file.
35178
35179 2008-11-17  Bruno Haible  <bruno@clisp.org>
35180
35181         * tests/test-select-out.sh: Comment out the first pipe test.
35182         Reported by Simon Josefsson.
35183
35184 2008-11-17  Bruno Haible  <bruno@clisp.org>
35185
35186         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35187         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35188         gl_HOSTENT.
35189
35190 2008-11-17  Bruno Haible  <bruno@clisp.org>
35191
35192         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35193         -lnetwork and -lnet. Needed for Haiku and BeOS.
35194
35195 2008-11-16  Bruno Haible  <bruno@clisp.org>
35196
35197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35198
35199 2008-11-16  Bruno Haible  <bruno@clisp.org>
35200
35201         Avoid test failure on Haiku.
35202         * tests/test-fsync.c: Include <errno.h>.
35203         (main): Don't require that fsync (0) fails.
35204
35205 2008-11-15  Bruno Haible  <bruno@clisp.org>
35206
35207         New module 'hostent'.
35208         * modules/hostent: New file.
35209         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35210
35211 2008-11-15  Bruno Haible  <bruno@clisp.org>
35212
35213         New module 'servent'.
35214         * modules/servent: New file.
35215         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35216
35217 2008-11-15  Bruno Haible  <bruno@clisp.org>
35218
35219         Avoid generating same test program with two different rules.
35220         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35221         test-frexp to test-frexp-nolibm.
35222         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35223         test-frexpl to test-frexpl-nolibm.
35224
35225 2008-11-15  Bruno Haible  <bruno@clisp.org>
35226
35227         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35228         $(FREXPL_LIBM).
35229
35230 2008-11-15  Bruno Haible  <bruno@clisp.org>
35231
35232         * lib/netdb.in.h: Activate the definitions also when the system's
35233         <netdb.h> has 'struct addrinfo'.
35234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35235         EAI_OVERFLOW or AI_NUMERICSERV.
35236         * doc/posix-headers/netdb.texi: Document the problem.
35237
35238 2008-11-15  Bruno Haible  <bruno@clisp.org>
35239
35240         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35241
35242         Make the 'sched' module work on platforms where <sched.h> exists but
35243         is incomplete (such as Haiku).
35244         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35245         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35246         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35247         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35248         HAVE_STRUCT_SCHED_PARAM.
35249         * modules/sched (Depends-on): Add include_next.
35250         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35251         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35252         * doc/posix-headers/sched.texi: Document the issue.
35253
35254 2008-11-13  Jim Meyering  <meyering@redhat.com>
35255
35256         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35257         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35258         test would fail due to the difference in the Report bugs to ...
35259         line.  The expected address is empty, "<>", while the actual
35260         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35261
35262 2008-11-12  Bruno Haible  <bruno@clisp.org>
35263
35264         lstat: don't compile lstat.c on systems lacking lstat
35265         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35266         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35267         Reported by Daniel P. Berrange via Jim Meyering.
35268
35269 2008-11-12  Jim Meyering  <meyering@redhat.com>
35270
35271         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35272
35273 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35274
35275         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35276         instead.
35277
35278 2008-11-12  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/unicodeio.c: Include unistr.h.
35281         (utf8_wctomb): Remove function.
35282         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35283
35284 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35285
35286         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35287         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35288         <bruno@clisp.org>.
35289         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35290
35291 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35292
35293         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35294         * doc/gnulib.texi: Add section for warnings.
35295
35296 2008-11-11  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/sockets.h: Add a comment.
35299
35300 2008-11-11  Karl Berry  <karl@gnu.org>
35301
35302         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35303
35304 2008-11-11  Eric Blake  <ebb9@byu.net>
35305
35306         fdl.texi: avoid git symlinks
35307         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35308
35309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35310
35311         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35312
35313 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35314
35315         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35316         (gl_WARN_ADD): Substitute $2 if literal.
35317
35318 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35319
35320         * m4/warning.m4: Remove.
35321
35322 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35323
35324         * m4/warnings.m4: Almost complete rewrite. :-)
35325
35326 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35327
35328         * modules/warnings: New module.
35329         * m4/warnings.m4: New file.
35330         * MODULES.html.sh: Mention warnings module.
35331         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35332         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35333
35334 2008-11-10  Eric Blake  <ebb9@byu.net>
35335
35336         fdl.texi: make a symlink to the latest version
35337         * doc/standards.texi: Revert today's earlier change.
35338         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35339         * doc/fdl.texi: ...and replace this with a symlink to the newer
35340         fdl-1.3.texi.
35341
35342 2008-11-10  Bruno Haible  <bruno@clisp.org>
35343
35344         * tests/test-select-fd.c (main): Accept the result file name as fourth
35345         argument.
35346         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35347         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35348
35349 2008-11-10  Bruno Haible  <bruno@clisp.org>
35350
35351         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35352         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35353         as autoconf-substituted macros.
35354         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35356         gl_NETDB_H_DEFAULTS. Set these variables.
35357         * modules/netdb (Makefile.am): Substitute these variables.
35358
35359 2008-11-10  Eric Blake  <ebb9@byu.net>
35360
35361         standards.texi: include correct file for FDL 1.3
35362         * doc/standards.texi (GNU Free Documentation License): Change
35363         include file to pull in FDL 1.3, not 1.2.
35364
35365         fdl.texi: revert accidental change to license
35366         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35367
35368 2008-11-10  Bruno Haible  <bruno@clisp.org>
35369
35370         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35371         cross-compiling guesses also when the native compile gives no result.
35372
35373 2008-11-10  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/spawni.c (__spawni): Force variable into the stack.
35376
35377 2008-11-10  Bruno Haible  <bruno@clisp.org>
35378
35379         Add support for Haiku.
35380         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35381         glibc and BeOS, but also on Haiku.
35382         * lib/fpurge.c (fpurge): Likewise.
35383         * lib/freadable.c (freadable): Likewise.
35384         * lib/freadahead.c (freadahead): Likewise.
35385         * lib/freading.c (freading): Likewise.
35386         * lib/freadptr.c (freadptr): Likewise.
35387         * lib/freadseek.c (freadptrinc): Likewise.
35388         * lib/fseeko.c (rpl_fseeko): Likewise.
35389         * lib/fseterr.c (fseterr): Likewise.
35390         * lib/fwritable.c (fwritable): Likewise.
35391         * lib/fwriting.c (fwriting): Likewise.
35392         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35393
35394 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35395
35396         * lib/config.charset: Treat Haiku like BeOS.
35397
35398 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35399
35400         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35401         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35402
35403 2008-11-08  Bruno Haible  <bruno@clisp.org>
35404
35405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35406         AC_CACHE_CHECK.
35407
35408 2008-11-08  Bruno Haible  <bruno@clisp.org>
35409
35410         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35411
35412 2008-11-08  Bruno Haible  <bruno@clisp.org>
35413
35414         * tests/test-select-fd.c: New file.
35415         * tests/test-select-in.sh: New file.
35416         * tests/test-select-out.sh: New file.
35417         * tests/test-select-stdin.c: New file.
35418         * modules/select-tests (Files): Add the new files.
35419         (Depends-on): Add gettimeofday.
35420         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35421         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35422         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35423
35424 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35425             Bruno Haible  <bruno@clisp.org>
35426
35427         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35428
35429 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35430
35431         * build-aux/pmccabe2html: Added support for C++ source files.
35432
35433 2008-11-05  Ben Pfaff  <blp@gnu.org>
35434
35435         Fix lib/close.c build on Windows.
35436         * modules/close (Files): Add lib/w32sock.h.
35437
35438 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35439
35440         Accept Bison's NEWS format.
35441         * build-aux/announce-gen (print_news_deltas): Tweak
35442         $re_prefix.
35443
35444 2008-11-04  Bruno Haible  <bruno@clisp.org>
35445
35446         * modules/random_r (Maintainer): Add glibc.
35447
35448 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35449
35450         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35451         by karl@freefriends.org (Karl Berry).
35452         * doc/alloca.texi: Likewise.
35453         * doc/c-ctype.texi: Likewise.
35454         * doc/c-strcase.texi: Likewise.
35455         * doc/c-strcaseeq.texi: Likewise.
35456         * doc/c-strcasestr.texi: Likewise.
35457         * doc/c-strstr.texi: Likewise.
35458         * doc/c-strtod.texi: Likewise.
35459         * doc/c-strtold.texi: Likewise.
35460         * doc/ctime.texi: Likewise.
35461         * doc/error.texi: Likewise.
35462         * doc/fdl.texi: Likewise.
35463         * doc/gcd.texi: Likewise.
35464         * doc/getdate.texi: Likewise.
35465         * doc/gnulib-intro.texi: Likewise.
35466         * doc/gnulib-tool.texi: Likewise.
35467         * doc/gnulib.texi: Likewise.
35468         * doc/inet_ntoa.texi: Likewise.
35469         * doc/maintain.texi: Likewise.
35470         * doc/make-stds.texi: Likewise.
35471         * doc/quote.texi: Likewise.
35472         * doc/regexprops-generic.texi: Likewise.
35473         * doc/standards.texi: Likewise.
35474         * doc/verify.texi: Likewise.
35475         * doc/visibility.texi: Likewise.
35476         * doc/gnulib.texi (GNU Free Documentation License): Include
35477         fdl-1.3.texi instead of fdl.texi.
35478
35479 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35480
35481         * doc/fdl-1.3.texi: New file, from
35482         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35483         * modules/fdl-1.3: Add.
35484         * MODULES.html.sh: Add fdl-1.3.
35485
35486 2008-11-03  Bruno Haible  <bruno@clisp.org>
35487
35488         Make determination of absolute name of header file work with AIX xlc.
35489         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35490         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35491         preprocessing.
35492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35493         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35494
35495 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35496
35497         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35498         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35499         <ludo@gnu.org>.
35500
35501 2008-11-02  Bruno Haible  <bruno@clisp.org>
35502
35503         Mark 'strpbrk' obsolete.
35504         * modules/strpbrk (Status, Notice): New sections.
35505         * modules/strtok_r (Depends-on): Add strpbrk.
35506
35507 2008-11-02  Bruno Haible  <bruno@clisp.org>
35508
35509         Mark 'strdup' obsolete.
35510         * modules/strdup (Status, Notice): New sections.
35511         * modules/findprog (Depends-on): Add strdup.
35512         * modules/getaddrinfo (Depends-on): Likewise.
35513         * modules/localename (Depends-on): Likewise.
35514         * modules/relocatable-lib (Depends-on): Likewise.
35515         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35516         * modules/relocatable-prog (Depends-on): Likewise.
35517         * modules/trim (Depends-on): Likewise.
35518         * modules/unictype/gen-ctype (Depends-on): Likewise.
35519         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35520
35521 2008-11-02  Bruno Haible  <bruno@clisp.org>
35522
35523         Mark 'strcspn' obsolete.
35524         * modules/strcspn (Status, Notice): New sections.
35525
35526 2008-11-02  Bruno Haible  <bruno@clisp.org>
35527
35528         Mark 'rmdir' obsolete.
35529         * modules/rmdir (Status, Notice): New sections.
35530         * modules/clean-temp (Depends-on): Add rmdir.
35531         * modules/openat (Depends-on): Likewise.
35532
35533 2008-11-02  Bruno Haible  <bruno@clisp.org>
35534
35535         Mark 'raise' obsolete.
35536         * modules/raise (Status, Notice): New sections.
35537         (Include): Specify <signal.h>.
35538         * modules/stdio (Depends-on): Add raise.
35539         * modules/write (Depends-on): Likewise.
35540
35541 2008-11-02  Bruno Haible  <bruno@clisp.org>
35542
35543         Mark 'memset' obsolete.
35544         * modules/memset (Status, Notice): New sections.
35545
35546 2008-11-02  Bruno Haible  <bruno@clisp.org>
35547
35548         Mark 'memmove' obsolete.
35549         * modules/memmove (Status, Notice): New sections.
35550         * modules/argp (Depends-on): Add memmove.
35551         * modules/argz (Depends-on): Likewise.
35552         * modules/canonicalize (Depends-on): Likewise.
35553         * modules/canonicalize-lgpl (Depends-on): Likewise.
35554         * modules/fts (Depends-on): Likewise.
35555         * modules/getcwd (Depends-on): Likewise.
35556         * modules/human (Depends-on): Likewise.
35557         * modules/regex (Depends-on): Likewise.
35558         * modules/striconveh (Depends-on): Likewise.
35559         * modules/trim (Depends-on): Likewise.
35560         * modules/unistr/u8-move (Depends-on): Likewise.
35561         * modules/unistr/u16-move (Depends-on): Likewise.
35562         * modules/unistr/u32-move (Depends-on): Likewise.
35563
35564 2008-11-02  Bruno Haible  <bruno@clisp.org>
35565
35566         Mark 'memcpy' obsolete.
35567         * modules/memcpy (Status, Notice): New sections.
35568
35569 2008-11-02  Bruno Haible  <bruno@clisp.org>
35570
35571         Mark 'memcmp' obsolete.
35572         * modules/memcmp (Status, Notice): New sections.
35573         * modules/argmatch (Depends-on): Add memchr.
35574         * modules/backupfile (Depends-on): Likewise.
35575         * modules/c-strcasestr (Depends-on): Likewise.
35576         * modules/crypto/des (Depends-on): Likewise.
35577         * modules/csharpcomp (Depends-on): Likewise.
35578         * modules/fnmatch (Depends-on): Likewise.
35579         * modules/git-merge-changelog (Depends-on): Likewise.
35580         * modules/isnand (Depends-on): Likewise.
35581         * modules/isnand-nolibm (Depends-on): Likewise.
35582         * modules/isnanf (Depends-on): Likewise.
35583         * modules/isnanf-nolibm (Depends-on): Likewise.
35584         * modules/isnanl (Depends-on): Likewise.
35585         * modules/isnanl-nolibm (Depends-on): Likewise.
35586         * modules/mbchar (Depends-on): Likewise.
35587         * modules/memcoll (Depends-on): Likewise.
35588         * modules/quotearg (Depends-on): Likewise.
35589         * modules/regex (Depends-on): Likewise.
35590         * modules/relocatable-prog (Depends-on): Likewise.
35591         * modules/same (Depends-on): Likewise.
35592         * modules/signbit (Depends-on): Likewise.
35593         * modules/strcasestr-simple (Depends-on): Likewise.
35594         * modules/unictype/gen-ctype (Depends-on): Likewise.
35595         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35596         * modules/uniname/uniname (Depends-on): Likewise.
35597         * modules/unistr/u8-cmp (Depends-on): Likewise.
35598
35599 2008-11-02  Bruno Haible  <bruno@clisp.org>
35600
35601         Mark 'memchr' obsolete.
35602         * modules/memchr (Status, Notice): New sections.
35603         * modules/argp (Depends-on): Add memchr.
35604         * modules/base64 (Depends-on): Likewise.
35605         * modules/c-strcasestr (Depends-on): Likewise.
35606         * modules/chdir-long (Depends-on): Likewise.
35607         * modules/fnmatch (Depends-on): Likewise.
35608         * modules/getsubopt (Depends-on): Likewise.
35609         * modules/git-merge-changelog (Depends-on): Likewise.
35610         * modules/glob (Depends-on): Likewise.
35611         * modules/strcasestr-simple (Depends-on): Likewise.
35612         * modules/strnlen (Depends-on): Likewise.
35613
35614 2008-11-02  Bruno Haible  <bruno@clisp.org>
35615
35616         Mark 'atexit' obsolete.
35617         * modules/atexit (Status, Notice): New sections.
35618         * modules/chdir-long (Depends-on): Add atexit.
35619         * modules/wait-process (Depends-on): Likewise.
35620
35621 2008-11-02  Bruno Haible  <bruno@clisp.org>
35622
35623         * gnulib-tool: New option --with-obsolete.
35624         (func_usage): Document it.
35625         (func_modules_transitive_closure): Drop obsolete dependencies if
35626         incobsolete is not true.
35627         (func_import): Read and save the incobsolete variable to the cache.
35628
35629 2008-11-02  Bruno Haible  <bruno@clisp.org>
35630
35631         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35632         * gnulib-tool: New option --extract-status.
35633         (func_usage): Document it.
35634         (sed_extract_prog): Recognize it.
35635         (func_get_status): New function.
35636
35637 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35638
35639         * modules/sockets (License): Change from LGPL to LGPLv2+.
35640
35641 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35642
35643         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35644
35645 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35646
35647         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35648         Mention times and sys_times.
35649         * modules/sys_times, modules/sys_times-tests: New modules.
35650         * modules/times, modules/times-tests: Likewise
35651         * m4/sys_times_h.m4: New file.
35652         * lib/sys_times.in.h: Likewise
35653         * lib/times.c: Likewise.
35654         * tests/test-sys_times.c: Likewise.
35655         * tests/test-times.c: Likewise.
35656         * doc/posix-headers/sys_times.texi: Update.
35657         * doc/posix-functions/times.texi: Update.
35658
35659 2008-10-28  Jim Meyering  <meyering@redhat.com>
35660
35661         * modules/tempname (Depends-on): Add lstat.
35662
35663         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35664
35665 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35666
35667         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35668         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35669         using idiom used elsewhere in gnulib.
35670
35671 2008-10-27  Jim Meyering  <meyering@redhat.com>
35672
35673         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35674
35675 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35676
35677         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35678         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35679         programs.
35680         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35681
35682 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35683
35684         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35685
35686 2008-10-27  Bruno Haible  <bruno@clisp.org>
35687
35688         * tests/test-lstat.c: Include <stdio.h>.
35689
35690 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35691
35692         * modules/lstat-tests: New module.
35693         * tests/test-lstat.c: New file.
35694
35695 2008-10-26  Jim Meyering  <meyering@redhat.com>
35696
35697         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35698
35699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35700             Bruno Haible  <bruno@clisp.org>
35701
35702         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35703         * modules/configmake (Include): Add a note that the include must come
35704         after all system headers.
35705         * lib/javaversion.c: Include configmake.h after all other includes.
35706
35707 2008-10-26  Bruno Haible  <bruno@clisp.org>
35708
35709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35710         HAVE_STRUCT_RANDOM_DATA to 1.
35711         (gl_STDLIB_H): Simplify.
35712
35713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35714
35715         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35716         substitute HAVE_STRUCT_RANDOM_DATA.
35717         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35718         random_data.
35719         * modules/stdlib (Makefile.am): Substitute
35720         HAVE_STRUCT_RANDOM_DATA.
35721
35722 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35723
35724         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35725         * doc/gnulib-intro.texi (Copyright): Likewise.
35726
35727 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35728
35729         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35730         findings.
35731
35732 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35733             Bruno Haible  <bruno@clisp.org>
35734
35735         * lib/unistd.in.h: Include <winsock2.h>.
35736         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35737         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35738         Provide dummy declarations.
35739         (gethostname): Override.
35740         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35741         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35742         gl_PREREQ_SYS_H_WINSOCK2.
35743         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35744         * doc/posix-functions/gethostname.texi: More details.
35745
35746 2008-10-25  Bruno Haible  <bruno@clisp.org>
35747
35748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35749         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35750         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35751
35752         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35753         here ...
35754         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35755         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35756         gl_UNISTD_H_DEFAULTS.
35757
35758 2008-10-25  Eric Blake  <ebb9@byu.net>
35759
35760         signbit: avoid spurious compiler failure
35761         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35762         declarations inside function.
35763
35764 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35765             Bruno Haible  <bruno@clisp.org>
35766
35767         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35768         * modules/random_r (Depends-on): Add stdint.
35769
35770 2008-10-24  Bruno Haible  <bruno@clisp.org>
35771
35772         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35773         Eggert.
35774         * modules/strerror (License): Likewise.
35775
35776 2008-10-24  Jim Meyering  <meyering@redhat.com>
35777
35778         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35779         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35780
35781 2008-10-24  Eric Blake  <ebb9@byu.net>
35782
35783         getgroups: fix compilation when getgroups is available
35784         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35785         but with <config.h> override of getgroups disabled.
35786
35787 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35788
35789         * doc/gnulib.texi (Header files): Add note about C++ problems.
35790         Explained by Bruno Haible <bruno@clisp.org>.
35791
35792 2008-10-23  Bruno Haible  <bruno@clisp.org>
35793
35794         Define a dummy SA_NODEFER macro on Interix.
35795         * lib/signal.in.h (SA_NODEFER): Define fallback.
35796         Reported by Aleksey Cheusov <cheusov@tut.by> via
35797         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35798
35799 2008-10-23  Bruno Haible  <bruno@clisp.org>
35800
35801         * modules/freadahead (License): Change to LGPLv2+.
35802         Suggested by Simon Josefsson.
35803
35804 2008-10-23  Jim Meyering  <meyering@redhat.com>
35805
35806         random_r: new module
35807         * modules/random_r: New file.
35808         * m4/random_r.m4: New file.
35809         * lib/random_r.c: New file, from glibc.
35810         * modules/random_r-tests: New file.
35811         * tests/test-random_r.c: New file.
35812         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35813          Declare.
35814         (RAND_MAX): Define.
35815         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35816         * modules/stdlib: Substitute them, too.
35817         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35818         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35819         * doc/glibc-functions/random_r.texi: Likewise.
35820         * doc/glibc-functions/setstate_r.texi: Likewise.
35821         * doc/glibc-functions/srandom_r.texi: Likewise.
35822         * config/srclist.txt: Mention it.
35823
35824 2008-10-23  David Lutterkort  <lutter@redhat.com>
35825
35826         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35827         link requirement
35828
35829 2008-10-23  Jim Meyering  <meyering@redhat.com>
35830
35831         selinux-h: mark parameters of stub functions as intentionally unused
35832         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35833         * lib/se-context.in.h: Likewise.
35834
35835 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35836
35837         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35838
35839 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35840
35841         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35842
35843 2008-10-22  Eric Blake  <ebb9@byu.net>
35844
35845         glthread/thread: avoid compiler warning
35846         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35847         Add unreachable abort to silence compiler.
35848
35849 2008-10-22  Eric Blake  <ebb9@byu.net>
35850
35851         netdb: also supply struct addrinfo for cygwin 1.5.x
35852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35853         older cygwin.
35854         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35855         cygwin.
35856         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35857
35858 2008-10-22  Bruno Haible  <bruno@clisp.org>
35859
35860         * users.txt: Update entry about pspp.
35861
35862 2008-10-21  Bruno Haible  <bruno@clisp.org>
35863
35864         Simplification.
35865         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35866         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35867
35868         Simplification.
35869         * lib/ioctl.c (ioctl): Don't undefine.
35870         * lib/socket.c (socket): Don't undefine.
35871
35872         Remove unused module indicator macros.
35873         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35874         GNULIB_$1 as a C macro.
35875
35876         * doc/posix-functions/close.texi: Undo last change.
35877         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35878         Windows platforms.
35879
35880 2008-10-21  Bruno Haible  <bruno@clisp.org>
35881
35882         Add gethostname() declaration to <unistd.h>.
35883         * lib/unistd.in.h (gethostname): New declaration.
35884         * lib/gethostname.c: Include <unistd.h>.
35885         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35886         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35888         and HAVE_GETHOSTNAME.
35889         * modules/gethostname (Depends-on): Add unistd.
35890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35891         (Include): Specify <unistd.h>.
35892         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35893         HAVE_GETHOSTNAME.
35894         * tests/test-gethostname.c: Include <unistd.h> first.
35895
35896 2008-10-21  Bruno Haible  <bruno@clisp.org>
35897
35898         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35899         * modules/select-tests (Depends-on): Likewise.
35900         Reported by Simon Josefsson.
35901
35902 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35903
35904         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35905         * lib/accept.c: New file, based on winsock.c.
35906         * lib/bind.c: New file, based on winsock.c.
35907         * lib/connect.c: New file, based on winsock.c.
35908         * lib/getpeername.c: New file, based on winsock.c.
35909         * lib/getsockname.c: New file, based on winsock.c.
35910         * lib/getsockopt.c: New file, based on winsock.c.
35911         * lib/ioctl.c: New file, based on winsock.c.
35912         * lib/listen.c: New file, based on winsock.c.
35913         * lib/recv.c: New file, based on winsock.c.
35914         * lib/recvfrom.c: New file, based on winsock.c.
35915         * lib/send.c: New file, based on winsock.c.
35916         * lib/sendto.c: New file, based on winsock.c.
35917         * lib/setsockopt.c: New file, based on winsock.c.
35918         * lib/shutdown.c: New file, based on winsock.c.
35919         * lib/socket.c: New file, based on winsock.c.
35920         * lib/w32sock.h: New file, based on winsock.c.
35921         * lib/winsock.c: Remove file.
35922         * modules/accept: Likewise.
35923         * modules/bind: Likewise.
35924         * modules/connect: Likewise.
35925         * modules/getpeername: Likewise.
35926         * modules/getsockname: Likewise.
35927         * modules/getsockopt: Likewise.
35928         * modules/ioctl: Likewise.
35929         * modules/listen: Likewise.
35930         * modules/recv: Likewise.
35931         * modules/recvfrom: Likewise.
35932         * modules/send: Likewise.
35933         * modules/sendto: Likewise.
35934         * modules/setsockopt: Likewise.
35935         * modules/shutdown: Likewise.
35936         * modules/socket: Use socket.c instead of winsock.c.
35937         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35938         * doc/posix-functions/accept.texi: Doc fix.
35939         * doc/posix-functions/bind.texi: Doc fix.
35940         * doc/posix-functions/close.texi: Doc fix.
35941         * doc/posix-functions/connect.texi: Doc fix.
35942         * doc/posix-functions/getpeername.texi: Doc fix.
35943         * doc/posix-functions/getsockname.texi: Doc fix.
35944         * doc/posix-functions/getsockopt.texi: Doc fix.
35945         * doc/posix-functions/ioctl.texi: Doc fix.
35946         * doc/posix-functions/listen.texi: Doc fix.
35947         * doc/posix-functions/recv.texi: Doc fix.
35948         * doc/posix-functions/recvfrom.texi: Doc fix.
35949         * doc/posix-functions/send.texi: Doc fix.
35950         * doc/posix-functions/sendto.texi: Doc fix.
35951         * doc/posix-functions/setsockopt.texi: Doc fix.
35952         * doc/posix-functions/shutdown.texi: Doc fix.
35953         * doc/posix-functions/socket.texi: Doc fix.
35954
35955 2008-10-20  Bruno Haible  <bruno@clisp.org>
35956
35957         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35958         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35959         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35960         as an alias for SIGABRT.
35961         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35962         (sigaction): Map it to SIGABRT.
35963         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35964
35965 2008-10-20  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/fts.c: Don't include lstat.h.
35968         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35969
35970         Move the lstat() declaration to <sys/stat.h>.
35971         * lib/lstat.h: Remove file.
35972         * lib/sys_stat.in.h: Add special invocation convention.
35973         (lstat): New declaration.
35974         * lib/lstat.c (orig_lstat): New function.
35975         (rpl_lstat): Use orig_lstat instead of lstat.
35976         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35977         AC_C_INLINE. Set REPLACE_LSTAT.
35978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35979         and REPLACE_LSTAT.
35980         * modules/lstat (Files): Remove lib/lstat.h.
35981         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35982         (Include): Specify <sys/stat.h> instead of lstat.h.
35983         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35984         REPLACE_LSTAT.
35985         * NEWS: Mention the change.
35986
35987 2008-10-20  Bruno Haible  <bruno@clisp.org>
35988
35989         * modules/posix_spawn-tests: New file.
35990         * tests/test-posix_spawn3.c: New file.
35991
35992 2008-10-20  Bruno Haible  <bruno@clisp.org>
35993
35994         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35995         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35996         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35997         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35998         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35999
36000 2008-10-20  Bruno Haible  <bruno@clisp.org>
36001
36002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36003         of posix_spawn on AIX 5.3.
36004
36005 2008-10-20  Bruno Haible  <bruno@clisp.org>
36006
36007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36008
36009 2008-10-20  Bruno Haible  <bruno@clisp.org>
36010
36011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36012         of AC_LANG_PROGRAM.
36013
36014 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36015
36016         * lib/netdb.in.h: Don't define GNU specific constants until they
36017         are supported or needed.  Reported by Bruno Haible
36018         <bruno@clisp.org>.
36019
36020 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36021
36022         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36023
36024 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36025
36026         * lib/getaddrinfo.h: Remove file.
36027         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36028         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36029         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36030         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36031         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36032         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36033         * tests/test-getaddrinfo.c: Likewise.
36034         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36035         * NEWS: Mention change.
36036
36037 2008-10-19  Bruno Haible  <bruno@clisp.org>
36038
36039         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36040
36041 2008-10-19  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/wait-process.c: Include simply <sys/wait.h>.
36044         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36045         WIFSTOPPED): Remove fallback definitions.
36046         * modules/wait-process (Depends-on): Add sys_wait.
36047
36048         New module 'sys_wait'.
36049         * modules/sys_wait: New file.
36050         * lib/sys_wait.in.h: New file, partially copied from
36051         lib/wait-process.c.
36052         * m4/sys_wait_h.m4: New file.
36053         * doc/posix-headers/sys_wait.texi: Mention the new module.
36054
36055 2008-10-19  Bruno Haible  <bruno@clisp.org>
36056
36057         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36058
36059 2008-10-19  Bruno Haible  <bruno@clisp.org>
36060
36061         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36062         * lib/wait-process.c (WAIT_T): Remove type.
36063         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36064         (wait_subprocess): Update.
36065
36066 2008-10-19  Bruno Haible  <bruno@clisp.org>
36067
36068         New module 'atoll'.
36069         * modules/atoll: New file.
36070         * lib/stdlib.in.h (atoll): New declaration.
36071         * lib/atoll.c: New file, from glibc with modifications.
36072         * m4/atoll.m4: New file.
36073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36074         HAVE_ATOLL.
36075         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36076         * doc/posix-functions/atoll.texi: Mention the new module.
36077
36078 2008-10-19  Bruno Haible  <bruno@clisp.org>
36079
36080         Add strtoull() declaration to <stdlib.h>.
36081         * lib/stdlib.in.h (strtoull): New declaration.
36082         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36083         Set HAVE_STRTOULL.
36084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36085         HAVE_STRTOULL.
36086         * modules/strtoull (Depends-on): Add stdlib.
36087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36088         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36089         HAVE_STRTOULL.
36090
36091 2008-10-19  Bruno Haible  <bruno@clisp.org>
36092
36093         Add strtoll() declaration to <stdlib.h>.
36094         * lib/stdlib.in.h (strtoll): New declaration.
36095         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36096         Set HAVE_STRTOLL.
36097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36098         HAVE_STRTOLL.
36099         * modules/strtoll (Depends-on): Add stdlib.
36100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36101         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36102
36103 2008-10-19  Bruno Haible  <bruno@clisp.org>
36104
36105         * modules/bcopy (Depends-on): Add strings.
36106         (Include): Specify <strings.h>.
36107
36108 2008-10-19  Bruno Haible  <bruno@clisp.org>
36109
36110         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36111
36112 2008-10-19  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36115         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36116         mingw.
36117
36118 2008-10-19  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/atanl.c: Don't include isnanl.h.
36121         * lib/cosl.c: Likewise.
36122         * lib/ldexpl.c: Likewise.
36123         * lib/logl.c: Likewise.
36124         * lib/sinl.c: Likewise.
36125         * lib/sqrtl.c: Likewise.
36126         * lib/tanl.c: Likewise.
36127
36128         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36129         * lib/isnanf.h: Remove file.
36130         * lib/isnand.h: Remove file.
36131         * lib/isnanl.h: Remove file.
36132         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36133         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36134         macros.
36135         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36136         HAVE_ISNANF, don't define it as a C macro.
36137         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36138         HAVE_ISNAND, don't define it as a C macro.
36139         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36140         HAVE_ISNANL, don't define it as a C macro.
36141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36142         HAVE_ISNAN[FDL].
36143         * modules/isnanf (Files): Remove lib/isnanf.h.
36144         (Depends-on): Add math.
36145         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36146         (Include): Specify <math.h> instead of isnanf.h.
36147         * modules/isnand (Files): Remove lib/isnand.h.
36148         (Depends-on): Add math.
36149         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36150         (Include): Specify <math.h> instead of isnand.h.
36151         * modules/isnanl (Files): Remove lib/isnanl.h.
36152         (Depends-on): Add math.
36153         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36154         (Include): Specify <math.h> instead of isnanl.h.
36155         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36156         HAVE_ISNAN[FDL].
36157         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36158         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36159         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36160         * NEWS: Mention the change.
36161
36162 2008-10-18  Bruno Haible  <bruno@clisp.org>
36163
36164         Add getusershell(), setusershell(), endusershell() declarations to
36165         <unistd.h>.
36166         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36167         declarations.
36168         * lib/getusershell.c: Include unistd.h.
36169         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36170         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36171         HAVE_GETUSERSHELL.
36172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36173         and HAVE_GETUSERSHELL.
36174         * modules/getusershell (Depends-on): Add unistd, extensions.
36175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36176         (Include): Specify <unistd.h>.
36177         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36178         HAVE_GETUSERSHELL.
36179
36180 2008-10-18  Bruno Haible  <bruno@clisp.org>
36181
36182         Add a getloadavg() declaration to <stdlib.h>.
36183         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36184         getloadavg declaration.
36185         (getloadavg): New declaration.
36186         * lib/getloadavg.c: Include <stdlib.h> first.
36187         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36188         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36189         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36191         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36192         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36194         (Include): Specify <stdlib.h>.
36195         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36196         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36197
36198 2008-10-18  Bruno Haible  <bruno@clisp.org>
36199
36200         * lib/dirchownmod.c: Don't include lchmod.h.
36201
36202         Move the lchmod() declaration to <sys/stat.h>.
36203         * lib/lchmod.h: Remove file.
36204         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36205         (lchmod): New declaration, moved here from lib/lchown.h.
36206         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36207         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36209         and HAVE_LCHMOD.
36210         * modules/lchmod (Files): Remove lib/lchmod.h.
36211         (Depends-on): Add sys_stat, extensions.
36212         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36213         (Include): Specify <sys/stat.h> instead of lchmod.h.
36214         * modules/sys_stat (Depends-on): Add link-warning.
36215         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36216         definition of GL_LINK_WARNING.
36217         * NEWS: Mention the change.
36218
36219 2008-10-18  Bruno Haible  <bruno@clisp.org>
36220
36221         * lib/fchdir.c: Don't include dirfd.h.
36222         * lib/fts.c: Likewise.
36223         * lib/getcwd.c: Likewise.
36224         * lib/glob.c: Likewise.
36225
36226         Move the dirfd() declaration to <dirent.h>.
36227         * lib/dirfd.h: Remove file.
36228         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36229         (dirfd): New declaration.
36230         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36232         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36233         HAVE_DECL_DIRFD.
36234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36235         HAVE_DECL_DIRFD.
36236         * modules/dirfd (Files): Remove lib/dirfd.h.
36237         (Depends-on): Add dirent, extensions.
36238         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36239         (Include): Specify <dirent.h> instead of dirfd.h.
36240         * modules/dirent (Depends-on): Add link-warning.
36241         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36242         definition of GL_LINK_WARNING.
36243         * NEWS: Mention the change.
36244
36245 2008-10-18  Bruno Haible  <bruno@clisp.org>
36246
36247         Move the euidaccess() declaration to <unistd.h>.
36248         * lib/euidaccess.h: Remove file.
36249         * lib/unistd.in.h (euidaccess): New declaration.
36250         * lib/euidaccess.c: Don't include euidaccess.h.
36251         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36252         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36254         and HAVE_EUIDACCESS.
36255         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36256         (Depends-on): Add unistd.
36257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36258         (Include): Specify <unistd.h> instead of euidaccess.h.
36259         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36260         HAVE_EUIDACCESS.
36261         * NEWS: Mention the change.
36262
36263 2008-10-18  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36266
36267         Move the getdomainname() declaration to <unistd.h>.
36268         * lib/getdomainname.h: Remove file.
36269         * lib/unistd.in.h (getdomainname): New declaration.
36270         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36272         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36273         HAVE_GETDOMAINNAME.
36274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36275         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36276         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36277         (Depends-on): Add unistd, extensions.
36278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36279         (Includes): Specify <unistd.h> instead of getdomainname.h.
36280         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36281         HAVE_GETDOMAINNAME.
36282         * NEWS: Mention the change.
36283
36284 2008-10-18  Bruno Haible  <bruno@clisp.org>
36285
36286         * modules/dirent: New file.
36287         * m4/dirent_h.m4: New file.
36288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36289         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36290         * modules/fchdir (Files): Remove lib/dirent.in.h.
36291         (Depends-on): Add dirent.
36292         (Makefile.am): Move rules to modules/dirent.
36293         * doc/posix-headers/dirent.texi: Mention the new module.
36294
36295 2008-10-18  Bruno Haible  <bruno@clisp.org>
36296
36297         Avoid -Wunused-parameter warnings in public gnulib header files.
36298         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36299         macro.
36300         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36301
36302 2008-10-18  Bruno Haible  <bruno@clisp.org>
36303
36304         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36305         * doc/glibc-functions/error.texi: Mention the module 'error'.
36306         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36307         * doc/glibc-functions/getdomainname.texi: Mention the module
36308         'getdomainname'.
36309         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36310         * doc/glibc-functions/getpagesize.texi: Mention the module
36311         'getpagesize'.
36312         * doc/glibc-functions/getusershell.texi: Mention the module
36313         'getusershell'.
36314         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36315         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36316         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36317         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36318         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36319         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36320         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36321         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36322         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36323         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36324         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36325         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36326         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36327         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36328
36329 2008-10-17  Bruno Haible  <bruno@clisp.org>
36330
36331         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36332         HP-UX and IRIX, use -0.0L.
36333         * tests/test-ceill.c (minus_zero): Likewise.
36334         * tests/test-floorl.c (minus_zero): Likewise.
36335         * tests/test-frexpl.c (minus_zero): Likewise.
36336         * tests/test-isnan.c (minus_zerol): Likewise.
36337         * tests/test-isnanl.h (minus_zero): Likewise.
36338         * tests/test-ldexpl.c (minus_zero): Likewise.
36339         * tests/test-roundl.c (minus_zero): Likewise.
36340         * tests/test-signbit.c (minus_zerol): Likewise.
36341         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36342         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36343         * tests/test-truncl.c (minus_zero): Likewise.
36344         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36345         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36346         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36347         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36348
36349 2008-10-17  Bruno Haible  <bruno@clisp.org>
36350
36351         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36352         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36353         that it gets activated only for gcc >= 3.0.
36354         * lib/dirent.in.h: Likewise.
36355         * lib/errno.in.h: Likewise.
36356         * lib/fcntl.in.h: Likewise.
36357         * lib/float.in.h: Likewise.
36358         * lib/iconv.in.h: Likewise.
36359         * lib/inttypes.in.h: Likewise.
36360         * lib/locale.in.h: Likewise.
36361         * lib/math.in.h: Likewise.
36362         * lib/netdb.in.h: Likewise.
36363         * lib/netinet_in.in.h: Likewise.
36364         * lib/search.in.h: Likewise.
36365         * lib/signal.in.h: Likewise.
36366         * lib/spawn.in.h: Likewise.
36367         * lib/stdarg.in.h: Likewise.
36368         * lib/stdint.in.h: Likewise.
36369         * lib/stdio.in.h: Likewise.
36370         * lib/stdlib.in.h: Likewise.
36371         * lib/string.in.h: Likewise.
36372         * lib/strings.in.h: Likewise.
36373         * lib/sys_file.in.h: Likewise.
36374         * lib/sys_ioctl.in.h: Likewise.
36375         * lib/sys_select.in.h: Likewise.
36376         * lib/sys_socket.in.h: Likewise.
36377         * lib/sys_stat.in.h: Likewise.
36378         * lib/sys_time.in.h: Likewise.
36379         * lib/sysexits.in.h: Likewise.
36380         * lib/time.in.h: Likewise.
36381         * lib/unistd.in.h: Likewise.
36382         * lib/wchar.in.h: Likewise.
36383         * lib/wctype.in.h: Likewise.
36384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36385
36386 2008-10-17  Jim Meyering  <meyering@redhat.com>
36387
36388         ignore-value: don't depend on inline module
36389         * modules/ignore-value (Depends-on): Remove 'inline'.
36390         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36391         Suggestion from Bruno Haible.
36392
36393 2008-10-17  Bruno Haible  <bruno@clisp.org>
36394
36395         New implementation of condition variables for Win32.
36396         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36397         (gl_linked_waitqueue_t): New type.
36398         (gl_cond_t): Use it.
36399         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36400         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36401         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36402         (glthread_cond_init_func, glthread_cond_wait_func,
36403         glthread_cond_timedwait_func, glthread_cond_signal_func,
36404         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36405         Reimplemented on the basis of gl_linked_waitqueue_t.
36406         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36407         gl_waitqueue_t.
36408         (gl_rwlock_t): Update.
36409         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36410
36411 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36412
36413         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36414         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36415
36416 2008-10-17  Jim Meyering  <meyering@redhat.com>
36417
36418         ignore-value: new module
36419         * modules/ignore-value: New file.
36420         * lib/ignore-value.h: New file.
36421         * MODULES.html.sh (Compiler warning management): New section,
36422         just for this module.  More to come.
36423
36424 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36425
36426         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36427         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36428         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36429
36430 2008-10-16  Jim Meyering  <meyering@redhat.com>
36431
36432         openat-die.c: avoid 'no previous prototype' warning
36433         * lib/openat-die.c: Include "openat.h".
36434         Reported by Reuben Thomas <rrt@sc3d.org>.
36435
36436 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36437
36438         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36439         * lib/netdb.in.h: Fix typo.
36440         Reported by Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/netdb.in.h: Include sys/socket.h for platforms without
36443         netdb.h, to get structures like hostent on MinGW.
36444         * modules/netdb (Depends-on): Add sys_socket.
36445
36446 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36447
36448         * modules/netdb, modules/netdb-tests: New file.
36449         * m4/netdb_h.m4: New file.
36450         * lib/netdb.in.h: Add, currently just an empty file pending
36451         definitions.
36452         * tests/test-netdb.c: New file.
36453         * doc/posix-headers/netdb.texi: Mention that we replace it if
36454         needed.
36455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36456         netdb.
36457
36458 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36459
36460         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36461         with code.
36462
36463 2008-10-13  Bruno Haible  <bruno@clisp.org>
36464
36465         * lib/glthread/cond.c (glthread_cond_wait_func,
36466         glthread_cond_timedwait_func): Add a comment.
36467
36468 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36469
36470         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36471         * tests/test-select.c: Likewise,
36472
36473 2008-10-13  Bruno Haible  <bruno@clisp.org>
36474
36475         * lib/glthread/cond.c (glthread_cond_wait_func,
36476         glthread_cond_timedwait_func): Fix variable name.
36477         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36478
36479 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36480
36481         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36483         struct sockaddr.sa_len.
36484         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36485
36486 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36487
36488         * build-aux/pmccabe2html: Add css and css_url parameters.
36489
36490 2008-10-12  Bruno Haible  <bruno@clisp.org>
36491
36492         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36493         calling aclx_get.
36494         Reported by Rainer Tammer <tammer@tammer.net>.
36495
36496 2008-10-12  Bruno Haible  <bruno@clisp.org>
36497
36498         Use msvcrt aware primitives for creation/termination of Win32 threads.
36499         * lib/glthread/thread.c: Include <process.h>.
36500         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36501         (wrapper_func): Update signature.
36502         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36503
36504 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36505             Bruno Haible  <bruno@clisp.org>
36506
36507         Provide a Win32 implementation of the 'cond' module.
36508         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36509         * lib/glthread/cond.c (glthread_cond_init_func,
36510         glthread_cond_wait_func, glthread_cond_timedwait_func,
36511         glthread_cond_signal_func, glthread_cond_broadcast_func,
36512         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36513         * modules/cond (Dependencies): Add gettimeofday.
36514
36515 2008-10-11  Bruno Haible  <bruno@clisp.org>
36516
36517         Make sleep work on older versions of mingw.
36518         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36519         only whether it exists.
36520         * doc/posix-functions/sleep.texi: Mention the problem with older
36521         versions of mingw.
36522
36523 2008-10-11  Bruno Haible  <bruno@clisp.org>
36524
36525         New module 'shutdown'.
36526         * modules/shutdown: New file.
36527         * lib/sys_socket.in.h (shutdown): New declaration.
36528         * lib/winsock.c (shutdown): New function.
36529         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36530         GNULIB_SHUTDOWN.
36531         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36532         * doc/posix-functions/shutdown.texi: Document the new module.
36533
36534 2008-10-11  Jim Meyering  <meyering@redhat.com>
36535
36536         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36537
36538 2008-10-11  Bruno Haible  <bruno@clisp.org>
36539
36540         New module 'fclose'.
36541         * modules/fclose: New file.
36542         * lib/stdio.in.h (fclose): New declaration.
36543         * lib/fclose.c: New file.
36544         * m4/fclose.m4: New file.
36545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36546         REPLACE_FCLOSE.
36547         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36548         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36549         REPLACE_FCLOSE.
36550         * modules/close (Depends-on): fclose.
36551         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36552
36553 2008-10-11  Bruno Haible  <bruno@clisp.org>
36554
36555         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36556         set errno and don't call _close.
36557
36558 2008-10-10  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36561         ACL, not afterwards. Fixes test failure on Cygwin.
36562
36563 2008-10-09  Ben Pfaff  <blp@gnu.org>
36564
36565         * build-aux/announce-gen: Fix gnulib version related part of usage
36566         message.  Die with a useful error message if no tarballs are
36567         found.
36568
36569 2008-10-10  Jim Meyering  <meyering@redhat.com>
36570
36571         bootstrap: use git's --depth=N option only if it's supported
36572         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36573         recognize the --depth option.  Reported by Pádraig Brady.
36574
36575 2008-10-09  Bruno Haible  <bruno@clisp.org>
36576
36577         New module 'ioctl'.
36578         * modules/ioctl: New file.
36579         * lib/sys_socket.in.h (ioctl): Remove declaration.
36580         * lib/winsock.c: Include <sys/ioctl.h>.
36581         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36582         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36583         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36584         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36585         * doc/posix-functions/ioctl.texi: Mention the new module.
36586
36587 2008-10-09  Bruno Haible  <bruno@clisp.org>
36588
36589         New module 'sys_ioctl'.
36590         * lib/sys_ioctl.in.h: New file.
36591         * m4/sys_ioctl_h.m4: New file.
36592         * modules/sys_ioctl: New file.
36593         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36594
36595 2008-10-09  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36598         * lib/winsock.c: Include <stdarg.h>.
36599         (rpl_ioctl): Change to second argument 'int' and then varargs.
36600
36601 2008-10-09  Bruno Haible  <bruno@clisp.org>
36602
36603         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36604         when the sys_socket module is present and the system has <winsock2.h>.
36605
36606 2008-10-09  Bruno Haible  <bruno@clisp.org>
36607
36608         * doc/posix-functions/close.texi: Mention module 'close' instead of
36609         module 'sys_socket'.
36610
36611 2008-10-09  Bruno Haible  <bruno@clisp.org>
36612
36613         * doc/glibc-headers/sys_ioctl.texi: New file.
36614         * doc/gnulib.texi: Include it.
36615
36616 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36617             Bruno Haible  <bruno@clisp.org>
36618
36619         Combine the two replacements of 'close'.
36620         * lib/sys_socket.in.h (close): Define to a reminder to include
36621         <unistd.h>.
36622         (_gl_close_fd_maybe_socket): New declaration.
36623         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36624         * lib/winsock.c (close): Remove undefinition.
36625         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36626         needed for the gnulib module 'close'.
36627         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36628         define to an error symbol or to a warning, if suitable.
36629         * lib/close.c: Include <sys/socket.h>.
36630         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36631         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36632         UNISTD_H_HAVE_WINSOCK2_H.
36633         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36635         UNISTD_H_HAVE_WINSOCK2_H.
36636         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36637         (configure.ac): Set a module indicator.
36638         (Makefile.am): Substitute GNULIB_CLOSE.
36639         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36640         * modules/poll-tests (Depends-on): Add close.
36641         * modules/select-tests (Depends-on): Likewise.
36642
36643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36644             Bruno Haible  <bruno@clisp.org>
36645
36646         New module 'close'.
36647         * modules/close: New file.
36648         * lib/unistd.in.h (close): Move declaration out of the
36649         FCHDIR_REPLACEMENT scope.
36650         (_gl_unregister_fd): New declaration.
36651         * lib/close.c: New file.
36652         * lib/fchdir.c (rpl_close): Remove function.
36653         * m4/close.m4: New file.
36654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36655         close.
36656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36657         REPLACE_CLOSE.
36658         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36659         REPLACE_CLOSE.
36660         * modules/fchdir (Depends-on): Add close.
36661
36662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36663             Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/fcntl.in.h (open): Simplify conditionals.
36666         (_gl_register_fd): New declaration.
36667         * lib/fchdir.c (rpl_open): Remove function.
36668         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36669         also.
36670         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36672         open.
36673
36674 2008-10-09  Jim Meyering  <meyering@redhat.com>
36675
36676         GNUmakefile: use the more name-space-friendly "_version"
36677         * top/GNUmakefile (_dummy): Update.
36678         (_version): Rename from "version".
36679
36680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36681             Bruno Haible  <bruno@clisp.org>
36682
36683         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36684         rpl_close.
36685         (_gl_register_fd): New function, extracted from rpl_open.
36686         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36687         (rpl_open, rpl_opendir): Use _gl_register_fd.
36688
36689 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36690
36691         Fix organization of 'open' replacement.
36692         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36693         (gl_FUNC_OPEN): Use it.
36694         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36695
36696 2008-10-08  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36699
36700 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36701
36702         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36703         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36704         listen).
36705
36706 2008-10-08  Eric Blake  <ebb9@byu.net>
36707
36708         GNUmakefile: add 'make version' target
36709         * top/GNUmakefile (_curr-ver): Split version update rules...
36710         (version): ...into a target.
36711
36712 2008-10-07  Bruno Haible  <bruno@clisp.org>
36713
36714         Use a more portable replacement expression for -0.0L.
36715         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36716         instead of -0.0L. Fix m4 quotation.
36717
36718         * tests/test-signbit.c: Include <float.h>.
36719         (minus_zero): New variable.
36720         (test_signbitl): Use minus_zero instead of -zero.
36721         * modules/signbit-tests (Depends-on): Add float.
36722
36723         * tests/test-ceill.c: Include <float.h>.
36724         (zero): Remove variable.
36725         (minus_zero): New variable.
36726         (main): Use minus_zero instead of -zero.
36727         * modules/ceill-tests (Depends-on): Add float.
36728
36729         * tests/test-floorl.c: Include <float.h>.
36730         (zero): Remove variable.
36731         (minus_zero): New variable.
36732         (main): Use minus_zero instead of -zero.
36733         * modules/floorl-tests (Depends-on): Add float.
36734
36735         * tests/test-roundl.c: Include <float.h>.
36736         (zero): Remove variable.
36737         (minus_zero): New variable.
36738         (main): Use minus_zero instead of -zero.
36739         * modules/roundl-tests (Depends-on): Add float.
36740
36741         * tests/test-truncl.c: Include <float.h>.
36742         (zero): Remove variable.
36743         (minus_zero): New variable.
36744         (main): Use minus_zero instead of -zero.
36745         * modules/truncl-tests (Depends-on): Add float.
36746
36747         * tests/test-frexpl.c (zero): Remove variable.
36748         (minus_zero): New variable.
36749         (main): Use minus_zero instead of -zero.
36750         * modules/frexpl-tests (Depends-on): Add float.
36751
36752         * tests/test-isnan.c (zerol): Remove variable.
36753         (minus_zerol): New variable.
36754         (test_long_double): Use minus_zerol instead of -zerol.
36755         * modules/isnan-tests (Depends-on): Add float.
36756
36757         * tests/test-isnanl.h (zero): Remove variable.
36758         (minus_zero): New variable.
36759         (main): Use minus_zero instead of -zero.
36760         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36761         * modules/isnanl-tests (Depends-on): Add float.
36762
36763         * tests/test-ldexpl.c (zero): Remove variable.
36764         (minus_zero): New variable.
36765         (main): Use minus_zero instead of -zero.
36766         * modules/ldexpl-tests (Depends-on): Add float.
36767
36768         * tests/test-snprintf-posix.h (zerol): Remove variable.
36769         (minus_zerol): New variable.
36770         (test_function): Use minus_zerol instead of -zerol.
36771         * modules/snprintf-posix-tests (Depends-on): Add float.
36772         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36773
36774         * tests/test-sprintf-posix.h (zerol): Remove variable.
36775         (minus_zerol): New variable.
36776         (test_function): Use minus_zerol instead of -zerol.
36777         * modules/sprintf-posix-tests (Depends-on): Add float.
36778         * modules/vsprintf-posix-tests (Depends-on): Add float.
36779
36780         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36781         (minus_zerol): New variable.
36782         (test_function): Use minus_zerol instead of -zerol.
36783         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36784
36785         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36786         (minus_zerol): New variable.
36787         (test_function): Use minus_zerol instead of -zerol.
36788         * modules/vasprintf-posix-tests (Depends-on): Add float.
36789
36790 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36791
36792         * MODULES.html.sh (Support for building documentation): Mention
36793         pmccabe2html.  Sort entries.
36794
36795         Add pmccabe2html module, from gnupdf.
36796         * build-aux/pmccabe.css: New file.
36797         * build-aux/pmccabe2html: New file.
36798         * m4/pmccabe2html.m4: New file.
36799         * modules/pmccabe2html: New file.
36800
36801 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36802
36803         flock: new module
36804         * MODULES.html.sh: Add to list of modules.
36805         * lib/flock.c: flock implementation for Windows and Unix systems
36806         which have fcntl.
36807         * doc/glibc-functions/flock.texi: Update documentation.
36808         * lib/sys_file.in.h: <sys/file.h> header file.
36809         * m4/flock.m4: M4 macros.
36810         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36811         * modules/flock: flock module.
36812         * modules/flock-tests: flock tests module.
36813         * modules/sys_file: sys/file.h module.
36814         * tests/test-flock.c: test suite for flock.
36815
36816 2008-10-06  Jim Meyering  <meyering@redhat.com>
36817
36818         bootstrap: check for LT_INIT more portably still ;-)
36819         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36820         Spotted by Bruno Haible.
36821
36822 2008-10-06  Eric Blake  <ebb9@byu.net>
36823
36824         test-signbit: avoid tripping Irix cc bug on -0.0L
36825         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36826         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36827         entire testsuite consistent and avoids an Irix 6.2 bug.
36828
36829 2008-10-05  Bruno Haible  <bruno@clisp.org>
36830             Jim Meyering  <jim@meyering.net>
36831
36832         Add an option for ignoring EPIPE during close_stdout.
36833         * lib/closeout.h: Include <stdbool.h>.
36834         (close_stdout_set_ignore_EPIPE): New declaration.
36835         * lib/closeout.c: Include <stdbool.h>.
36836         (ignore_EPIPE): New variable.
36837         (close_stdout_set_ignore_EPIPE): New function.
36838         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36839         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36840         failure.
36841         * modules/closeout (Depends-on): Add stdbool.
36842
36843 2008-10-05  Bruno Haible  <bruno@clisp.org>
36844
36845         * modules/accept: New file.
36846         * modules/bind: New file.
36847         * modules/connect: New file.
36848         * modules/getpeername: New file.
36849         * modules/getsockname: New file.
36850         * modules/getsockopt: New file.
36851         * modules/listen: New file.
36852         * modules/recv: New file.
36853         * modules/recvfrom: New file.
36854         * modules/send: New file.
36855         * modules/sendto: New file.
36856         * modules/setsockopt: New file.
36857         * modules/socket: New file.
36858         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36859         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36860         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36861         the particular module is requested. Add a link warning when the
36862         particular module is not requested.
36863         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36864         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36865         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36866         the particular module is requested.
36867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36868         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36869         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36870         * modules/sys_socket (Depends-on): Add link-warning.
36871         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36872         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36873         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36874         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36875         GL_LINK_WARNING.
36876         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36877         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36878         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36879         * doc/posix-functions/getpeername.texi: Mention the new module
36880         'getpeername'.
36881         * doc/posix-functions/getsockname.texi: Mention the new module
36882         'getsockname'.
36883         * doc/posix-functions/getsockopt.texi: Mention the new module
36884         'getsockopt'.
36885         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36886         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36887         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36888         * doc/posix-functions/send.texi: Mention the new module 'send'.
36889         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36890         * doc/posix-functions/setsockopt.texi: Mention the new module
36891         'setsockopt'.
36892         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36893         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36894         listen, connect, accept.
36895         * modules/select-tests (Depends-on): Likewise.
36896
36897 2008-10-05  Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/winsock.c (strerror): Remove unused #undef.
36900         (rpl_close): Remove unused local variable.
36901
36902         * modules/sys_socket (Depends-on); Add errno.
36903
36904 2008-10-05  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36907         (select): Add a link warning when the 'select' module is not used.
36908         * modules/sys_select (Depends-on): Add link-warning.
36909         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36910         Suggested by Paolo Bonzini.
36911
36912 2008-10-05  Jim Meyering  <meyering@redhat.com>
36913
36914         bootstrap: check for LT_INIT more portably
36915         * build-aux/bootstrap: Avoid using grep -E, since it's not
36916         portable enough.  Suggestion from Bruno Haible.
36917
36918 2008-10-05  Bruno Haible  <bruno@clisp.org>
36919
36920         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36921         as being fixed by gnulib.
36922
36923 2008-10-05  Bruno Haible  <bruno@clisp.org>
36924
36925         * modules/select-tests: New file, mostly copied from
36926         modules/sys_select-tests.
36927         * tests/test-select.c: New file, mostly copied from
36928         tests/test-sys_select.c.
36929         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36930         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36931         (Makefile.am): Remove test_sys_select_LDADD.
36932
36933         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36934         to an undefined symbol, for an error message.
36935         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36936         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36937         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36938         winsock-select.c here.
36939         * modules/sys_select (Files): Remove lib/winsock-select.c.
36940         (Depends-on): Remove alloca.
36941         (Makefile.am): Substitute GNULIB_SELECT.
36942         * modules/select: New file.
36943         * doc/posix-functions/select.texi: Update.
36944
36945 2008-10-05  Bruno Haible  <bruno@clisp.org>
36946
36947         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36948         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36949         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36950         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36951         getdtablesize.
36952         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36953         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36954
36955 2008-10-05  Bruno Haible  <bruno@clisp.org>
36956
36957         * modules/getdtablesize-tests: New file.
36958         * tests/test-getdtablesize.c: New file.
36959
36960         New module 'getdtablesize'.
36961         * lib/unistd.in.h (getdtablesize): New declaration.
36962         * lib/getdtablesize.c: New file.
36963         * m4/getdtablesize.m4: New file.
36964         * modules/getdtablesize: New file.
36965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36966         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36967         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36968         HAVE_GETDTABLESIZE.
36969         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36970
36971 2008-10-05  Bruno Haible  <bruno@clisp.org>
36972
36973         * modules/sched (Makefile.am): Fix typo.
36974         Reported by Simon Josefsson.
36975
36976 2008-10-05  Jim Meyering  <meyering@redhat.com>
36977
36978         bootstrap: check for LT_INIT, too
36979         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36980         are deprecated.  Suggestion from Ralf Wildenhues.
36981
36982 2008-10-05  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36985         overriding them by ours.
36986         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36987
36988 2008-10-05  Jim Meyering  <meyering@redhat.com>
36989
36990         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36991         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36992         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36993
36994 2008-10-04  Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/dup2 (License): Change to LGPLv2+.
36997         * modules/sleep (License): Likewise.
36998         * modules/perror (License): Likewise.
36999         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37000         Blake.
37001         * modules/signal (License): Likewise.
37002         * modules/sigprocmask (License): Likewise.
37003         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37004         Meyering.
37005
37006 2008-10-04  Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37009         Reported by Rainer Tammer <tammer@tammer.net>.
37010
37011 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37012             Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37015         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37016         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37017
37018 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37019
37020         filevercmp: new module
37021         * lib/filevercmp.h: New function filevercmp comparing version strings.
37022         * lib/filevercmp.c: Implementation of filevercmp function.
37023         * modules/filevercmp: Module metadata.
37024         * tests/test-filevercmp.c: Unit test for new module.
37025         * modules/filevercmp-tests: Unit test metadata.
37026         * MODULES.html.sh: Add filevercmp module.
37027
37028 2008-10-03  Bruno Haible  <bruno@clisp.org>
37029
37030         * lib/c-ctype.h: Add comment.
37031         Reported by Jim Meyering.
37032
37033 2008-10-02  Bruno Haible  <bruno@clisp.org>
37034
37035         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37036
37037 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37038
37039         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37040         name of bootstrap.conf accordingly.
37041
37042 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37043
37044         * build-aux/bootstrap: Install git-merge-changelog configuration
37045         items into .gitconfig if needed.
37046
37047 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37048
37049         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37050         git repository, and initialize/update it accordingly.
37051
37052 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37053
37054         * modules/fsync-tests: New file.
37055         * tests/test-fsync.c: New file.
37056
37057         New module 'fsync'.
37058         * lib/fsync.c: New file.
37059         * m4/fsync.m4: New file.
37060         * modules/fsync: New file.
37061         * lib/unistd.in.h (fsync): New declaration.
37062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37063         GNULIB_FSYNC and HAVE_FSYNC.
37064         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37065         * MODULES.html.sh (posix_functions): Add fsync.
37066         * doc/posix-functions/fsync.texi: Mention the new module.
37067
37068 2008-10-02  Jim Meyering  <meyering@redhat.com>
37069
37070         fts.c: sync with similar code from coreutils' remove.c
37071         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37072         Guard also with "#if defined __linux__", since for now at least,
37073         this code is Linux-kernel-specific.
37074
37075 2008-10-02  Jim Meyering  <meyering@redhat.com>
37076
37077         fts: bug fixes
37078         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37079         Include <sys/vfs.h>, not <sys/statfs.h>.
37080
37081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37082         Include <sys/vfs.h>, not <sys/statfs.h>.
37083
37084 2008-10-01  Bruno Haible  <bruno@clisp.org>
37085
37086         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37088         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37089         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37090         * doc/posix-functions/posix_spawnp.texi: Likewise.
37091         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37092         whether posix_spawn actually works.
37093         * m4/pipe.m4 (gl_PIPE): Likewise.
37094         * modules/execute (Files): Add m4/posix_spawn.m4.
37095         * modules/pipe (Files): Add m4/posix_spawn.m4.
37096         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37097
37098 2008-10-01  Jim Meyering  <meyering@redhat.com>
37099
37100         remove trailing spaces
37101         * NEWS: Likewise.
37102         * lib/poll.c (poll): Likewise.
37103         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37104         * lib/winsock.c (rpl_close): Likewise.
37105         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37106         * modules/yield: Likewise.
37107         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37108         * tests/test-sys_select.c (connect_to_socket): Likewise.
37109
37110         fts.c: adjust a new interface to be more generally useful
37111         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37112         (fts_build): Adjust caller.
37113
37114 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37115
37116         * modules/cond-tests: New file.
37117         * tests/test-cond.c: New file.
37118
37119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37120             Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/cond (Dependencies): Add errno, time.
37123         * lib/glthread/cond.h: Include <time.h>.
37124         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37125         across platforms.
37126
37127 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37128             Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37131
37132 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37133             Bruno Haible  <bruno@clisp.org>
37134
37135         * modules/tls-tests (Depends-on): Add thread, yield.
37136         (configure.ac): Remove all checks.
37137         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37138         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37139         gl_thread_self): Remove definitions. Include glthread/thread.h and
37140         glthread/yield.h instead.
37141         (test_tls): Pass an additional NULL argument to gl_thread_join.
37142
37143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37144             Bruno Haible  <bruno@clisp.org>
37145
37146         * modules/lock-tests (Depends-on): Add thread, yield.
37147         (configure.ac): Remove all checks.
37148         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37149         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37150         gl_thread_self): Remove definitions. Include glthread/thread.h and
37151         glthread/yield.h instead.
37152         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37153         additional NULL argument to gl_thread_join.
37154
37155 2008-09-30  Bruno Haible  <bruno@clisp.org>
37156
37157         Fix the Win32 implementation of the 'thread' module.
37158         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37159         pointer type.
37160         (gl_thread_self): Invoke gl_thread_self_func.
37161         (gl_thread_self_func): New declaration.
37162         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37163         (do_init_self_key, init_self_key): New functions.
37164         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37165         Remove some fields.
37166         (running_threads, running_lock): Remove variables.
37167         (get_current_thread_handle): New function.
37168         (gl_thread_self_func, wrapper_func, glthread_create_func,
37169         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37170         simplified.
37171
37172 2008-09-30  Bruno Haible  <bruno@clisp.org>
37173
37174         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37175         files.
37176
37177 2008-09-30  Jim Meyering  <meyering@redhat.com>
37178
37179         fts.m4: correct the test for statfs.f_type
37180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37181         when checking for statfs.f_type.
37182
37183 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37184
37185         tests: avoid some compiler warnings
37186         * tests/test-memchr.c (main): Pass NULL indirectly.
37187         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37188
37189 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37190
37191         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37192         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37193         exactly specified dayshifts.
37194         (dayshift): New rule.
37195         (rel): Add dayshift.
37196         (relative_time_table) [tomorrow, yesterday, today, now]:
37197         Use tDAY_SHIFT in place of tDAY_UNIT.
37198         * tests/test-getdate.c: Add tests for now-disallowed countable
37199         dayshifts, e.g., "4 yesterday ago".
37200
37201 2008-09-29  Bruno Haible  <bruno@clisp.org>
37202
37203         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37204         * tests/test-posix_spawn1.in.sh: Renamed from
37205         tests/test-posix_spawn.in.sh.
37206         * tests/test-posix_spawn2.c: New file.
37207         * tests/test-posix_spawn2.in.sh: New file.
37208         * modules/posix_spawnp-tests (Files): Update.
37209         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37210
37211 2008-09-29  Bruno Haible  <bruno@clisp.org>
37212
37213         Propagate effects of putenv/setenv/unsetenv to child processes.
37214         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37215         * lib/pipe.c (create_pipe): Likewise.
37216
37217 2008-09-29  Bruno Haible  <bruno@clisp.org>
37218
37219         Enable use of shell scripts as executables in mingw.
37220         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37221         run the program as a shell script.
37222         * lib/pipe.c (create_pipe): Likewise.
37223         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37224         resulting array.
37225
37226 2008-09-29  Eric Blake  <ebb9@byu.net>
37227
37228         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37229
37230 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37231
37232         * doc/posix-functions/accept.texi: Update mingw problems.
37233         * doc/posix-functions/bind.texi: Update mingw problems.
37234         * doc/posix-functions/close.texi: Update mingw problems.
37235         * doc/posix-functions/connect.texi: Update mingw problems.
37236         * doc/posix-functions/getpeername.texi: Update mingw problems.
37237         * doc/posix-functions/getsockname.texi: Update mingw problems.
37238         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37239         * doc/posix-functions/ioctl.texi: Update mingw problems.
37240         * doc/posix-functions/listen.texi: Update mingw problems.
37241         * doc/posix-functions/recv.texi: Update mingw problems.
37242         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37243         * doc/posix-functions/select.texi: Update mingw problems.
37244         * doc/posix-functions/send.texi: Update mingw problems.
37245         * doc/posix-functions/sendto.texi: Update mingw problems.
37246         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37247         * doc/posix-functions/socket.texi: Update mingw problems.
37248
37249 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37250             Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/sys_select.in.h: Include sys/time.h.
37253         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37254         * modules/sys_select: Depend on sys_time.
37255         * tests/test-sys_select.c: Test that sys/select.h defines struct
37256         timeval fully.
37257
37258 2008-09-29  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37261         * lib/sys_select.in.h: Likewise.
37262
37263 2008-09-29  Bruno Haible  <bruno@clisp.org>
37264
37265         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37266
37267 2008-09-29  Bruno Haible  <bruno@clisp.org>
37268
37269         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37270         Set LIBSOCKET instead of augmenting LIBS.
37271         * modules/sockets (Link): New section.
37272         * modules/sockets-tests (test_sockets_LDADD): New variable.
37273         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37274         * modules/poll-tests (test_poll_LDADD): New variable.
37275         * NEWS: Document the change.
37276
37277 2008-09-29  Bruno Haible  <bruno@clisp.org>
37278
37279         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37280         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37281         ARPA_INET_H directly.
37282         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37283
37284 2008-09-28  Bruno Haible  <bruno@clisp.org>
37285
37286         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37287         from gl_HEADER_SYS_SOCKET.
37288         (gl_HEADER_SYS_SOCKET): Invoke it.
37289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37290
37291 2008-09-28  Bruno Haible  <bruno@clisp.org>
37292
37293         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37294         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37295         Needed on OSF/1 4.0.
37296
37297 2008-09-28  Bruno Haible  <bruno@clisp.org>
37298
37299         Override open more carefully.
37300         * lib/open.c (orig_open): New function.
37301         (rpl_open): Use orig_open instead of open.
37302         * lib/fcntl.in.h: Add special invocation convention.
37303         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37304         (gl_FUNC_OPEN): Invoke it.
37305
37306         Override freopen more carefully.
37307         * lib/freopen.c (orig_freopen): New function.
37308         (rpl_freopen): Use orig_freopen instead of freopen.
37309         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37310         (gl_FUNC_FREOPEN): Invoke it.
37311
37312         Override fopen more carefully.
37313         * lib/fopen.c (orig_fopen): New function.
37314         (rpl_fopen): Use orig_fopen instead of fopen.
37315         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37316         (gl_FUNC_FOPEN): Invoke it.
37317         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37318
37319 2008-09-28  Bruno Haible  <bruno@clisp.org>
37320
37321         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37322         SIGPIPE.
37323
37324 2008-09-28  Bruno Haible  <bruno@clisp.org>
37325
37326         * tests/test-sigaction.c (handler, main): Disable the check whether
37327         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37328         glibc systems with LinuxThreads.
37329
37330 2008-09-28  Bruno Haible  <bruno@clisp.org>
37331
37332         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37333
37334         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37335         with AIX xlc.
37336         * lib/fcntl.in.h (open): Likewise.
37337         Reported by Rainer Tammer <tammer@tammer.net>.
37338
37339 2008-09-28  Bruno Haible  <bruno@clisp.org>
37340
37341         * modules/posix_spawnp-tests: New file.
37342         * tests/test-posix_spawn.c: New file.
37343         * tests/test-posix_spawn.in.sh: New file.
37344
37345         New module 'posix_spawnp'.
37346         * modules/posix_spawnp: New file.
37347         * lib/spawnp.c: New file, from GNU libc with modifications.
37348         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37349
37350         New module 'posix_spawn'.
37351         * modules/posix_spawn: New file.
37352         * lib/spawn.c: New file, from GNU libc with modifications.
37353         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37354
37355         New module 'posix_spawnattr_destroy'.
37356         * modules/posix_spawnattr_destroy: New file.
37357         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37358         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37359         module.
37360
37361         New module 'posix_spawnattr_setsigmask'.
37362         * modules/posix_spawnattr_setsigmask: New file.
37363         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37364         modifications.
37365         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37366         new module.
37367
37368         New module 'posix_spawnattr_getsigmask'.
37369         * modules/posix_spawnattr_getsigmask: New file.
37370         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37371         modifications.
37372         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37373         new module.
37374
37375         New module 'posix_spawnattr_setsigdefault'.
37376         * modules/posix_spawnattr_setsigdefault: New file.
37377         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37378         modifications.
37379         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37380         new module.
37381
37382         New module 'posix_spawnattr_getsigdefault'.
37383         * modules/posix_spawnattr_getsigdefault: New file.
37384         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37385         modifications.
37386         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37387         new module.
37388
37389         New module 'posix_spawnattr_setschedpolicy'.
37390         * modules/posix_spawnattr_setschedpolicy: New file.
37391         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37392         modifications.
37393         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37394         new module.
37395
37396         New module 'posix_spawnattr_getschedpolicy'.
37397         * modules/posix_spawnattr_getschedpolicy: New file.
37398         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37399         modifications.
37400         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37401         new module.
37402
37403         New module 'posix_spawnattr_setschedparam'.
37404         * modules/posix_spawnattr_setschedparam: New file.
37405         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37406         modifications.
37407         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37408         new module.
37409
37410         New module 'posix_spawnattr_getschedparam'.
37411         * modules/posix_spawnattr_getschedparam: New file.
37412         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37413         modifications.
37414         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37415         new module.
37416
37417         New module 'posix_spawnattr_setpgroup'.
37418         * modules/posix_spawnattr_setpgroup: New file.
37419         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37420         modifications.
37421         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37422         module.
37423
37424         New module 'posix_spawnattr_getpgroup'.
37425         * modules/posix_spawnattr_getpgroup: New file.
37426         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37427         modifications.
37428         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37429         module.
37430
37431         New module 'posix_spawnattr_setflags'.
37432         * modules/posix_spawnattr_setflags: New file.
37433         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37434         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37435         module.
37436
37437         New module 'posix_spawnattr_getflags'.
37438         * modules/posix_spawnattr_getflags: New file.
37439         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37440         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37441         module.
37442
37443         New module 'posix_spawnattr_init'.
37444         * modules/posix_spawnattr_init: New file.
37445         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37446         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37447         module.
37448
37449         New module 'posix_spawn_file_actions_destroy'.
37450         * modules/posix_spawn_file_actions_destroy: New file.
37451         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37452         modifications.
37453         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37454         the new module.
37455
37456         New module 'posix_spawn_file_actions_addopen'.
37457         * modules/posix_spawn_file_actions_addopen: New file.
37458         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37459         modifications.
37460         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37461         the new module.
37462
37463         New module 'posix_spawn_file_actions_adddup2'.
37464         * modules/posix_spawn_file_actions_adddup2: New file.
37465         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37466         modifications.
37467         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37468         the new module.
37469
37470         New module 'posix_spawn_file_actions_addclose'.
37471         * modules/posix_spawn_file_actions_addclose: New file.
37472         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37473         modifications.
37474         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37475         the new module.
37476
37477         New module 'posix_spawn_file_actions_init'.
37478         * modules/posix_spawn_file_actions_init: New file.
37479         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37480         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37481         new module.
37482
37483         New module 'posix_spawn-internal'.
37484         * modules/posix_spawn-internal: New file.
37485         * lib/spawn_int.h: New file, from GNU libc with modifications.
37486         * lib/spawni.c: New file, from GNU libc with modifications.
37487         * m4/posix_spawn.m4: New file.
37488
37489         New module 'spawn'.
37490         * modules/spawn: New file.
37491         * lib/spawn.in.h: New file, from GNU libc with modifications.
37492         * m4/spawn_h.m4: New file.
37493         * doc/posix-headers/spawn.texi: Mention the new module.
37494
37495 2008-09-28  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/sched-tests: New file.
37498         * tests/test-sched.c: New file.
37499
37500         New module 'sched'.
37501         * modules/sched: New file.
37502         * lib/sched.in.h: New file.
37503         * m4/sched_h.m4: New file.
37504         * doc/posix-headers/sched.texi: Mention the new module.
37505
37506 2008-09-27  Eric Blake  <ebb9@byu.net>
37507
37508         Fix previous patch, and tweak references to $0.
37509         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37510         (func_version, func_gnulib_dir): Don't call this program
37511         gnulib-tool.
37512         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37513         with using $0 in function.
37514         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37515         (func_fatal_error): Reuse the name the user invoked us with.
37516
37517 2008-09-27  Bruno Haible  <bruno@clisp.org>
37518
37519         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37520         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37521         (gl_ICONV_H): Not here.
37522         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37523         instead of assigning ICONV_H directly.
37524
37525         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37527         WCHAR_H directly.
37528
37529 2008-09-27  Bruno Haible  <bruno@clisp.org>
37530
37531         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37532         * modules/arpa_inet (Depends-on): Add link-warning.
37533         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37534         * modules/unistd (Makefile.am): Likewise.
37535
37536 2008-09-26  Bruno Haible  <bruno@clisp.org>
37537
37538         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37539         variables.
37540         (func_version): Essentially copied from gnulib-tool.
37541         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37542         func_readlink): Copied from gnulib-tool.
37543
37544 2008-09-26  Bruno Haible  <bruno@clisp.org>
37545
37546         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37547         invoking git-version-gen.
37548
37549 2008-09-26  Bruno Haible  <bruno@clisp.org>
37550
37551         * posix-modules: Update to directory names changed on 2008-01-19.
37552         Remove commas in output before splitting into words. No more need to
37553         avoid 'ftruncate' since 2007-02-19.
37554
37555 2008-09-26  Bruno Haible  <bruno@clisp.org>
37556
37557         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37558
37559 2008-09-26  Bruno Haible  <bruno@clisp.org>
37560
37561         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37562         * modules/fwriteerror (Depends-on): Add errno.
37563
37564 2008-09-26  Bruno Haible  <bruno@clisp.org>
37565
37566         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37567         * tests/test-vc-list-files-cvs.sh: Likewise.
37568
37569 2008-09-26  Bruno Haible  <bruno@clisp.org>
37570
37571         * doc/posix-headers/sys_resource.texi: Reorder items.
37572
37573 2008-09-26  Jim Meyering  <meyering@redhat.com>
37574
37575         fts: tweak inode comparison function
37576         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37577         inode numbers, as documented.
37578
37579         fts: sort dirent entries on inode number before traversing
37580         This avoids a quadratic, seek-related performance penalty when
37581         operating on a directory containing many entries (measurable at 10k;
37582         3.5 hours at 2 million entries with a cold cache) on certain types
37583         of file systems, including ext3 and ext4, but not tmpfs.
37584         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37585         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37586         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37587         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37588         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37589         (fts_build): Set the stat.st_ino member from D_INO.
37590         If it is likely to be useful, sort dirent entries on inode number.
37591
37592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37593         and the struct statfs.f_type member.
37594         * modules/fts (Depends-on): Add d-ino.
37595
37596 2008-09-26  Bruno Haible  <bruno@clisp.org>
37597
37598         * modules/sigpipe-die (Depends-on): Add sigpipe.
37599
37600         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37601         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37602         and GNULIB_STDIO_H_SIGPIPE are set.
37603         * lib/stdio-write.c: New file.
37604         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37605         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37606         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37607         REPLACE_STDIO_WRITE_FUNCS.
37608         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37609         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37610         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37611         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37612         * modules/stdio (Files): Add lib/stdio-write.c.
37613         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37614         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37615         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37616         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37617         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37618         REPLACE_FPRINTF_POSIX.
37619         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37620         REPLACE_PRINTF_POSIX.
37621         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37622         REPLACE_VFPRINTF_POSIX.
37623         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37624         REPLACE_VPRINTF_POSIX.
37625         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37626         SIGPIPE issue.
37627         * doc/posix-functions/fputc.texi: Likewise.
37628         * doc/posix-functions/fputs.texi: Likewise.
37629         * doc/posix-functions/fwrite.texi: Likewise.
37630         * doc/posix-functions/printf.texi: Likewise.
37631         * doc/posix-functions/putc.texi: Likewise.
37632         * doc/posix-functions/putchar.texi: Likewise.
37633         * doc/posix-functions/puts.texi: Likewise.
37634         * doc/posix-functions/vfprintf.texi: Likewise.
37635         * doc/posix-functions/vprintf.texi: Likewise.
37636
37637         * modules/safe-write (Depends-on): Add write.
37638
37639         * modules/sigpipe-tests: New file.
37640         * tests/test-sigpipe.c: New file.
37641         * tests/test-sigpipe.sh: New file.
37642
37643         * modules/write: New file.
37644         * lib/unistd.in.h: Include <sys/types.h>.
37645         (write): New declaration.
37646         * lib/write.c: New file.
37647         * m4/write.m4: New file.
37648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37649         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37650         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37651         GNULIB_WRITE, REPLACE_WRITE.
37652         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37653         and the SIGPIPE issue.
37654
37655         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37656         (raise): New declaration.
37657         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37658         (ext_signal): New function.
37659         (rpl_raise): New function.
37660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37661         GNULIB_SIGNAL_H_SIGPIPE.
37662         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37663         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37664
37665         * modules/sigpipe: New file.
37666         * m4/sigpipe.m4: New file.
37667
37668 2008-09-25  Derek Price  <derek@ximbiot.com>
37669             Bruno Haible  <bruno@clisp.org>
37670
37671         * gnulib-tool (func_import): Report all license incompatibilities, not
37672         just the first one.
37673
37674 2008-09-25  Bruno Haible  <bruno@clisp.org>
37675
37676         * gnulib-tool (func_import): When computing the edits, consider not
37677         only the Makefile.ams that exist but also those that will be generated.
37678
37679 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37680
37681         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37682         fixes gnulib-tool --test warning about duplicate dependency.
37683
37684 2008-09-25  Bruno Haible  <bruno@clisp.org>
37685
37686         * gnulib-tool: Don't ask the user to perform edits in the generated
37687         Makefile.ams.
37688         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37689         apply to the Makefile.am being generated.
37690         (func_emit_tests_Makefile_am): Execute edits that apply to the
37691         Makefile.am being generated.
37692         (func_import): Setup list of Makefile.am edits before emitting the
37693         Makefile.ams, not at the end.
37694         (func_create_testdir): Update.
37695         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37696
37697 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37698
37699         * gnulib-tool (func_import): Store the --tests-base option in the
37700         comment in gnulib-cache.m4.
37701
37702 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37703
37704         * NEWS: Document increased portability that sys_select now provides.
37705
37706         * lib/sys_select.in.h: Install select wrapper.
37707         * lib/sys_socket.in.h: Use more descriptive name when there is no
37708         select wrapper.
37709         * lib/winsock-select.c: New.
37710         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37711         Require gl_HEADER_SYS_SOCKET.
37712         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37713         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37714         * tests/test-sys_select.c: Add functional tests.
37715
37716 2008-09-24  Eric Blake  <ebb9@byu.net>
37717
37718         open, fopen: close fd leak in last patch
37719         * lib/open.c (rpl_open): Close fd before returning error.
37720         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37721         * doc/posix-functions/open.texi (open): Document that Irix also
37722         has the bug.
37723         * doc/posix-functions/fopen.texi (fopen): Likewise.
37724         Reported by Paolo Bonzini.
37725
37726 2008-09-24  Bruno Haible  <bruno@clisp.org>
37727
37728         Ensure that a filename ending in a slash cannot be used to access a
37729         non-directory.
37730         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37731         to check whether it's really a directory.
37732         * lib/fopen.c: Include fcntl.h, unistd.h.
37733         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37734         and fdopen().
37735         * modules/fopen (Depends-on): Add unistd.
37736         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37737         * tests/test-fopen.c (main): Likewise.
37738         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37739         * doc/posix-functions/fopen.texi: Likewise.
37740         Reported by Eric Blake.
37741
37742 2008-09-23  Eric Blake  <ebb9@byu.net>
37743
37744         c-stack: avoid compiler optimizations when provoking overflow
37745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37746         recursion harder to optimize, to ensure a stack overflow occurs.
37747         * tests/test-c-stack.c (recurse): Likewise.
37748         Borrowed from libsigsegv.
37749
37750         c-stack: work around Irix sigaltstack bug
37751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37752         whether sigaltstack uses wrong end of stack_t (copied in part from
37753         libsigsegv).
37754         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37755         Irix bug, without requiring an over-allocation.
37756         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37757         bug.
37758
37759         fopen: document mingw bug on directories
37760         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37761         not allowing a stream visiting a directory, even though reading
37762         from such a stream is not portable.
37763
37764 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37765
37766         * lib/poll.c: Rewrite.
37767         * modules/poll: Depend on alloca.
37768
37769 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37770
37771         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37772         instead define prototypes for a full set of wrappers.  Ensure
37773         that Cygwin does not use the compatibility code, which is only
37774         for MinGW.
37775         * lib/winsock.c: New.
37776         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37777         * modules/sys_socket: Add lib/winsock.c.
37778
37779         * modules/poll-tests: Add errno and perror.
37780         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37781
37782 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37783
37784         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37785
37786 2008-09-23  Bruno Haible  <bruno@clisp.org>
37787
37788         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37789         * doc/glibc-functions/*: Likewise.
37790
37791 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37792
37793         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37794         success.
37795
37796 2008-09-22  Eric Blake  <ebb9@byu.net>
37797             Bruno Haible  <bruno@clisp.org>
37798
37799         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37800         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37801         supply %A but mishandle pseudo-NaN.
37802         Reported by Simon Josefsson.
37803
37804 2008-09-21  Bruno Haible  <bruno@clisp.org>
37805
37806         * tests/test-lock.c (main): Tweak skip message.
37807         * tests/test-tls.c (main): Likewise.
37808
37809 2008-09-21  Bruno Haible  <bruno@clisp.org>
37810
37811         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37812         whether 'struct sigaction' has sa_sigaction here...
37813         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37814         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37815
37816 2008-09-21  Bruno Haible  <bruno@clisp.org>
37817
37818         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37819         section.
37820         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37821         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37822         the new section.
37823         (Support for obsolete systems lacking POSIX:2001): New section.
37824         (String handling <string.h>): Move strdup to the new section.
37825         Suggested by Simon Josefsson and Paolo Bonzini.
37826
37827 2008-09-21  Bruno Haible  <bruno@clisp.org>
37828
37829         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37830         exponents in %e and %g results on 'long double'. Needed for mingw's
37831         improved *printf functions.
37832         * tests/test-vasprintf-posix.c (test_function): Likewise.
37833         * tests/test-snprintf-posix.h (test_function): Likewise.
37834         * tests/test-sprintf-posix.h (test_function): Likewise.
37835         Reported by Eric Blake.
37836
37837 2008-09-21  Bruno Haible  <bruno@clisp.org>
37838
37839         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37840         * tests/test-sprintf-posix.h (test_function): Likewise.
37841
37842 2008-09-21  Bruno Haible  <bruno@clisp.org>
37843
37844         * modules/getpass (Depends-on): Add strdup-posix.
37845
37846         New module 'strdup-posix'.
37847         * modules/strdup-posix: New file.
37848         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37849         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37851         REPLACE_STRDUP.
37852         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37853         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37855         strdup-posix.
37856
37857         * modules/strdup (Depends-on): Remove malloc-posix.
37858
37859 2008-09-20  Bruno Haible  <bruno@clisp.org>
37860
37861         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37862         Wildenhues.
37863
37864 2008-09-20  Bruno Haible  <bruno@clisp.org>
37865
37866         Ensure that wint_t gets defined on IRIX 5.3.
37867         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37868         * lib/wctype.in.h (wint_t): Likewise.
37869         (__wctype_wint_t): Remove type.
37870         (isw*): Use wint_t instead of __wctype_wint_t.
37871         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37872         * modules/wchar (Files): Add m4/wint_t.m4.
37873         (Makefile.am): Substitute HAVE_WINT_T.
37874         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37875         * tests/test-wctype.c: Check that wint_t is defined.
37876         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37877         * doc/posix-headers/wctype.texi: Likewise.
37878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37879
37880 2008-09-18  Bruno Haible  <bruno@clisp.org>
37881
37882         * gnulib-tool (func_exit): Update comment.
37883
37884 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37885
37886         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37887         assumes strdup exists and does not depend on strdup to return
37888         ENOMEM on out of memory conditions.
37889
37890 2008-09-18  Bruno Haible  <bruno@clisp.org>
37891
37892         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37893         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37894         digits for the exponent.
37895
37896 2008-09-18  Jim Meyering  <meyering@redhat.com>
37897             Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/vasnprintf.c (decimal_point_char): Define also if
37900         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37901
37902 2008-09-16  Bruno Haible  <bruno@clisp.org>
37903         and Eric Blake  <ebb9@byu.net>
37904
37905         vasnprintf: support Irix 5.3
37906         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37907         that mishandle long double infinity.
37908         Reported by Tom G. Christensen.
37909
37910 2008-09-16  Bruno Haible  <bruno@clisp.org>
37911
37912         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37913         Solaris 9.
37914         * doc/glibc-functions/alphasort.texi: Likewise.
37915         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37916
37917 2008-09-16  Jim Meyering  <meyering@redhat.com>
37918
37919         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37920         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37921         a umask modification leak out of a subshell.  Otherwise, the
37922         opensolaris /bin/sh would be accepted and thus cause unwarranted
37923         failures in the coreutils test suite.
37924
37925 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37926
37927         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37928         to succeed.
37929
37930 2008-09-16  Jim Meyering  <meyering@redhat.com>
37931
37932         avoid spurious test failure when library is built without ACL support
37933         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37934         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37935         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37936         * tests/test-copy-acl.sh: Likewise.
37937
37938 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37939
37940         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37941         based on character occurrence counts.
37942
37943 2008-09-15  Eric Blake  <ebb9@byu.net>
37944
37945         tests: avoid some compiler warnings
37946         * tests/test-memchr.c (main): Pass NULL indirectly.
37947         * tests/test-closein.c (main): Avoid unused variable.
37948
37949 2008-09-15  Bruno Haible  <bruno@clisp.org>
37950
37951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37952         are missing on OpenBSD 4.0 individually.
37953         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37954
37955 2008-09-15  Bruno Haible  <bruno@clisp.org>
37956
37957         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37958         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37959         * doc/posix-functions/perror.texi: Likewise.
37960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37961         is missing.
37962         Reported by Eric Blake.
37963
37964         * lib/errno.in.h: Use replacement values >= 2000.
37965         Reported by Eric Blake.
37966
37967 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37968
37969         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37970         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37971         limit.
37972         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37973         compareseq was aborted.
37974
37975 2008-09-14  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37978         yvec_edit_count.
37979         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37980         (fstrcmp_bounded): Simplify result computation accordingly.
37981
37982 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37983
37984         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37985         (fstrcmp): Define in terms of fstrcmp_bounded.
37986         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37987         lower_bound argument.
37988         Return quickly if the result is certainly < lower_bound.
37989         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37990
37991 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37992
37993         * lib/diffseq.h (EARLY_ABORT): New macro.
37994         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37995         evaluates to true.
37996
37997 2008-09-14  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/perror-tests: New file.
38000         * tests/test-perror.sh: New file.
38001         * tests/test-perror.c: New file.
38002
38003         New module 'perror'.
38004         * lib/stdio.in.h (perror): New declaration.
38005         * lib/perror.c: New file.
38006         * m4/perror.m4: New file.
38007         * modules/perror: New file.
38008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38009         * doc/posix-functions/perror.texi: Mention the perror module.
38010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38011         REPLACE_PERROR.
38012         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38013         REPLACE_PERROR.
38014
38015 2008-09-14  Bruno Haible  <bruno@clisp.org>
38016
38017         * modules/stdio (Makefile.am): Reorder to match the order in
38018         lib/stdio.in.h.
38019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38020
38021 2008-09-13  Bruno Haible  <bruno@clisp.org>
38022
38023         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38024
38025 2008-09-13  Bruno Haible  <bruno@clisp.org>
38026
38027         Extend strerror to cover the added errno values.
38028         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38029         (rpl_strerror): Provide error messages for the added errno values and
38030         for the WSA* values.
38031         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38032         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38033         strerror.
38034         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38035         * modules/strerror (Depends-on): Add errno.
38036         * doc/posix-functions/strerror.texi: Document the change.
38037         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38038         and EOVERFLOW.
38039
38040 2008-09-13  Bruno Haible  <bruno@clisp.org>
38041
38042         * modules/EOVERFLOW: Remove file.
38043         * m4/eoverflow.m4: Remove file.
38044         * modules/EOVERFLOW-tests: Remove file.
38045         * tests/test-EOVERFLOW.c: Remove file.
38046         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38047         * modules/ftell (Depends-on): Likewise.
38048         * modules/getdelim (Depends-on): Likewise.
38049         * modules/getugroups (Depends-on): Likewise.
38050         * modules/poll (Depends-on): Likewise.
38051         * modules/snprintf (Depends-on): Likewise.
38052         * modules/sprintf-posix (Depends-on): Likewise.
38053         * modules/vasnprintf (Depends-on): Likewise.
38054         * modules/vasprintf (Depends-on): Likewise.
38055         * modules/vfprintf-posix (Depends-on): Likewise.
38056         * modules/vsnprintf (Depends-on): Likewise.
38057         * modules/vsprintf-posix (Depends-on): Likewise.
38058         * modules/xvasprintf (Depends-on): Likewise.
38059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38060         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38061         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38062         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38063         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38064         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38065         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38066         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38068         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38069         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38070         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38071         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38072         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38073         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38074         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38076         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38077         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38078         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38080         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38081         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38082         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38083         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38084         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38085         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38086         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38087         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38088         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38089         * MODULES.html.sh: Remove EOVERFLOW.
38090         * NEWS: Mention the change.
38091
38092 2008-09-13  Bruno Haible  <bruno@clisp.org>
38093
38094         * modules/errno-tests: New file.
38095         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38096
38097         * lib/errno.in.h: New file.
38098         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38099         * modules/errno: New file.
38100         * doc/posix-headers/errno.texi: Update documentation.
38101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38102
38103 2008-09-13  Bruno Haible  <bruno@clisp.org>
38104
38105         * tests/test-poll.c: Use #if for native Windows, rather than testing
38106         __MSVCRT__.
38107
38108 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38109             Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/glob.c: Don't include <pwd.h> on native Windows.
38112         (WINDOWS32): New macro.
38113         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38114
38115 2008-09-13  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38118         (ETIMEDOUT): Remove macro.
38119         (glthread_cond_timedwait_multithreaded): New declaration.
38120         (glthread_cond_timedwait): Use it.
38121         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38122         (glthread_cond_timedwait_multithreaded): New function.
38123
38124 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38125
38126         * modules/poll-tests: Do not check for io.h.
38127         * tests/test-poll.c: Check for __MSVCRT__ instead.
38128
38129 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38130
38131         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38132         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38133         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38134
38135 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38136
38137         * modules/poll-tests: New.
38138         * tests/test-poll.c: New.
38139
38140 2008-09-12  Eric Blake  <ebb9@byu.net>
38141
38142         frexp: test for NetBSD failure on -0.0
38143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38144         not all, bugs from NetBSD 3.0 have been fixed.
38145         * doc/posix-functions/frexp.texi (frexp): Document bug.
38146         Reported by Thomas Klausner.
38147
38148         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38149         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38150         literal -0.0.
38151         Reported by Jonathan C. Patschke <jp@centtech.com>.
38152
38153 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38154
38155         * lib/glthread/cond.h: Use dummy implementation also if
38156         USE_WIN32_THREADS.
38157
38158 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38159
38160         * modules/fnmatch-posix (License): Change to LGPLv2+.
38161         * modules/fnmatch-gnu (License): Likewise.
38162
38163 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38164
38165         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38166
38167 2008-09-11  Jim Meyering  <meyering@redhat.com>
38168
38169         * users.txt: Add gtk-vnc.
38170
38171 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38172
38173         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38174         rotate amounts.
38175
38176         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38177         required for 16-bit and 8-bit rotates.
38178         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38179         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38180         UINT8_MAX instead of hard-coded constants.
38181         Suggested by Paul Eggert.
38182
38183 2008-09-07  Bruno Haible  <bruno@clisp.org>
38184
38185         * tests/test-striconveh.c (main): Check behaviour when converting from
38186         UTF-7.
38187
38188         Make striconveh work better with stateful encodings.
38189         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38190         that iconv does not increment the inptr when returning -1/EINVAL.
38191
38192 2008-09-07  Bruno Haible  <bruno@clisp.org>
38193
38194         * build-aux/config.rpath: Update according to libtool-2.2.6.
38195         * build-aux/config.libpath: Likewise.
38196
38197 2008-09-06  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38200         * lib/freadptr.c (freadptr): Likewise.
38201         * lib/freadseek.c (freadptrinc): Likewise.
38202         Reported by Simon Josefsson.
38203
38204 2008-09-06  Bruno Haible  <bruno@clisp.org>
38205
38206         * modules/freadptr (License): Change to LGPLv2+.
38207         * modules/freadseek (License): Likewise.
38208         Suggested by Eric Blake.
38209
38210         * modules/memchr2 (License): Change to LGPLv2+.
38211         Approved by Eric Blake.
38212
38213 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38214             Bruno Haible  <bruno@clisp.org>
38215
38216         Make gnulib-tool work with native 'sed' on AIX.
38217         * gnulib-tool (sed_noop): New variable.
38218         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38219         func_add_or_update, func_create_testdir): Use it to initialize sed
38220         script variables.
38221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38222
38223 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38224             Bruno Haible  <bruno@clisp.org>
38225
38226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38227         also works after #include directives.
38228
38229 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38230
38231         getdate.y: reject an out-of-range timezone value
38232         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38233         the range [-24...+24].  When specified with only one or two digits,
38234         * tests/test-getdate.c: Tests for the fix.
38235         * doc/getdate.texi: Document this change.
38236
38237 2008-09-03  Bruno Haible  <bruno@clisp.org>
38238
38239         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38240
38241 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38242
38243         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38244         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38245         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38246         Blake <ebb9@byu.net>.
38247
38248         * tests/test-bitrotate.c: Add more test vectors.
38249
38250 2008-09-02  Eric Blake  <ebb9@byu.net>
38251
38252         vasnprintf-posix: handle large precision via %.*d
38253         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38254         when handling it ourselves.
38255         * tests/test-vasnprintf-posix.c (test_function): Add test.
38256         * tests/test-snprintf-posix.h (test_function): Likewise.
38257         * tests/test-sprintf-posix.h (test_function): Likewise.
38258         * tests/test-vasprintf-posix.c (test_function): Likewise.
38259         Reported by Alain Guibert.
38260
38261 2008-09-01  Eric Blake  <ebb9@byu.net>
38262
38263         c-stack: make configure-time check more robust
38264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38265         successful sigaction call.
38266         Reported by Tom G. Christensen.
38267
38268 2008-09-01  Bruno Haible  <bruno@clisp.org>
38269
38270         New module 'findprog-lgpl'.
38271         * modules/findprog-lgpl: New file.
38272         * lib/findprog-lgpl.c: New file.
38273         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38274         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38275         to decide whether to use strdup or xstrdup, concatenated_filename or
38276         xconcatenated_filename.
38277
38278 2008-09-01  Bruno Haible  <bruno@clisp.org>
38279
38280         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38281         'xconcat-filename' (GPL).
38282         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38283         (License): Change to LGPLv2+.
38284         * modules/xconcat-filename: New file.
38285         * lib/concat-filename.h (concatenated_filename): Change specification.
38286         (xconcatenated_filename): New declaration.
38287         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38288         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38289         memory situations.
38290         * lib/xconcat-filename.c: New file.
38291         * NEWS: Mention the change.
38292         * lib/findprog.c: Include concat-filename.h, not filename.h.
38293         (find_in_path): Use xconcatenated_filename instead of
38294         concatenated_filename.
38295         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38296         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38297         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38298         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38299         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38300         instead of concatenated_filename.
38301         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38302         (execute_java_class): Use xconcatenated_filename instead of
38303         concatenated_filename.
38304         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38305         * modules/javacomp (Depends-on): Likewise.
38306         * modules/javaexec (Depends-on): Likewise.
38307
38308 2008-09-01  Bruno Haible  <bruno@clisp.org>
38309
38310         Split module 'filename' into 'filename' and 'concat-filename'.
38311         * modules/filename: Keep only lib/filename.h.
38312         (License): Change to LGPLv2+.
38313         * modules/concat-filename: New file, extracted from modules/filename.
38314         * lib/filename.h (concatenated_filename): Remove declaration.
38315         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38316         * lib/concat-filename.c: Include concat-filename.h.
38317         * NEWS: Mention the change.
38318
38319 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38320
38321         * lib/bitrotate.h (rotl8, rotr8): Add.
38322
38323         * modules/bitrotate (configure.ac): Need
38324         AC_REQUIRE([AC_C_INLINE]).
38325         (Description): Mention stdint.h.  Reported by Bruno Haible
38326         <bruno@clisp.org>.
38327
38328         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38329         Paolo Bonzini <bonzini@gnu.org>.
38330
38331 2008-08-31  Bruno Haible  <bruno@clisp.org>
38332
38333         Assume Solaris specific bi-arch conventions on Solaris systems.
38334         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38335         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38337         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38338         like acl_libdirstem.
38339         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38340         acl_libdirstem.
38341         * NEWS: Mention the change.
38342         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38343
38344 2008-08-31  Jim Meyering  <meyering@redhat.com>
38345
38346         * lib/strftime.h: Add comments describing the two added arguments.
38347
38348         remove duplicate #include directives
38349         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38350         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38351
38352 2008-08-31  Bruno Haible  <bruno@clisp.org>
38353
38354         New module 'sigpipe-die'.
38355         * modules/sigpipe-die: New file.
38356         * lib/sigpipe-die.h: New file.
38357         * lib/sigpipe-die.c: New file.
38358         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38359
38360 2008-08-31  Bruno Haible  <bruno@clisp.org>
38361
38362         Don't override previously installed signal handlers.
38363         * lib/fatal-signal.c (saved_sigactions): New variable.
38364         (uninstall_handlers): Reset the signal to the saved handler, not
38365         to SIG_DFL (except when ignored).
38366         (install_handlers): Save the previous handlers.
38367
38368 2008-08-30  Bruno Haible  <bruno@clisp.org>
38369
38370         * gnulib-tool (func_reset_sigpipe): New function.
38371         (func_get_automake_snippet, func_modules_transitive_closure,
38372         func_import): Invoke it before a join command that reads from stdin,
38373         to avoid "echo: write error: Broken pipe" error messages on stderr.
38374         Reported by Sam Steingold <sds@gnu.org>.
38375
38376 2008-08-30  Bruno Haible  <bruno@clisp.org>
38377
38378         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38379         Code copied from m4/open.m4.
38380         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38381         access and the filename ends in a slash. Code copied from lib/open.c.
38382         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38383         * tests/test-fopen.c (main): Check against bug with trailing slash.
38384
38385 2008-08-29  Bruno Haible  <bruno@clisp.org>
38386
38387         Avoid some "gcc -pedantic" warnings.
38388         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38389         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38390         * lib/dirent.in.h: Likewise.
38391         * lib/fcntl.in.h: Likewise.
38392         * lib/float.in.h: Likewise.
38393         * lib/iconv.in.h: Likewise.
38394         * lib/inttypes.in.h: Likewise.
38395         * lib/locale.in.h: Likewise.
38396         * lib/math.in.h: Likewise.
38397         * lib/netinet_in.in.h: Likewise.
38398         * lib/search.in.h: Likewise.
38399         * lib/signal.in.h: Likewise.
38400         * lib/stdarg.in.h: Likewise.
38401         * lib/stdint.in.h: Likewise.
38402         * lib/stdio.in.h: Likewise.
38403         * lib/stdlib.in.h: Likewise.
38404         * lib/string.in.h: Likewise.
38405         * lib/strings.in.h: Likewise.
38406         * lib/sys_select.in.h: Likewise.
38407         * lib/sys_socket.in.h: Likewise.
38408         * lib/sys_stat.in.h: Likewise.
38409         * lib/sys_time.in.h: Likewise.
38410         * lib/sysexits.in.h: Likewise.
38411         * lib/time.in.h: Likewise.
38412         * lib/unistd.in.h: Likewise.
38413         * lib/wchar.in.h: Likewise.
38414         * lib/wctype.in.h: Likewise.
38415         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38416         * modules/fchdir (Makefile.am): Likewise.
38417         * modules/fcntl (Makefile.am): Likewise.
38418         * modules/float (Makefile.am): Likewise.
38419         * modules/iconv_open (Makefile.am): Likewise.
38420         * modules/inttypes (Makefile.am): Likewise.
38421         * modules/locale (Makefile.am): Likewise.
38422         * modules/math (Makefile.am): Likewise.
38423         * modules/netinet_in (Makefile.am): Likewise.
38424         * modules/search (Makefile.am): Likewise.
38425         * modules/signal (Makefile.am): Likewise.
38426         * modules/stdarg (Makefile.am): Likewise.
38427         * modules/stdint (Makefile.am): Likewise.
38428         * modules/stdio (Makefile.am): Likewise.
38429         * modules/stdlib (Makefile.am): Likewise.
38430         * modules/string (Makefile.am): Likewise.
38431         * modules/strings (Makefile.am): Likewise.
38432         * modules/sys_select (Makefile.am): Likewise.
38433         * modules/sys_socket (Makefile.am): Likewise.
38434         * modules/sys_stat (Makefile.am): Likewise.
38435         * modules/sys_time (Makefile.am): Likewise.
38436         * modules/sysexits (Makefile.am): Likewise.
38437         * modules/time (Makefile.am): Likewise.
38438         * modules/unistd (Makefile.am): Likewise.
38439         * modules/wchar (Makefile.am): Likewise.
38440         * modules/wctype (Makefile.am): Likewise.
38441         Reported by Reuben Thomas <rrt@sc3d.org>.
38442
38443 2008-08-29  Bruno Haible  <bruno@clisp.org>
38444
38445         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38446         any more.
38447
38448 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38449
38450         * MODULES.html.sh (Misc): Add bitrotate.
38451
38452         * modules/bitrotate: New file.
38453
38454         * lib/bitrotate.h: New file.
38455
38456         * modules/bitrotate-tests: New file.
38457
38458         * tests/test-bitrotate.c: New file.
38459
38460         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38461         on the bitrotate module.
38462
38463         * lib/arctwo.c: Use new bitrotate module.
38464
38465 2008-08-29  Jim Meyering  <meyering@redhat.com>
38466
38467         bootstrap: merge changes from coreutils
38468         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38469         of copied files.  Remove a kludge, now that this is fixed.
38470         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38471         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38472         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38473
38474 2008-08-29  Bruno Haible  <bruno@clisp.org>
38475
38476         * MODULES.html.sh: Remove --cvs-urls option.
38477
38478 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38479
38480         maint.mk: adjust to file name change
38481         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38482
38483 2008-08-28  Jim Meyering  <meyering@redhat.com>
38484
38485         * modules/getndelim2 (License): Relicense to LGPLv2+.
38486         Approved by Richard Stallman for the version of 1995, and by
38487         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38488
38489 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38490
38491         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38492         dummy if one is not available.  Do not touch them if
38493         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38494         (getc_maybe_unlocked): New.
38495         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38496
38497 2008-08-26  Eric Blake  <ebb9@byu.net>
38498
38499         doc/INSTALL: resync from autoconf
38500         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38501         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38502         moving...
38503         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38504         * INSTALL: Regenerate.
38505         * INSTALL.ISO: New file.
38506         * INSTALL.UTF-8: Likewise.
38507
38508 2008-08-26  Jim Meyering  <meyering@redhat.com>
38509
38510         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38511         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38512         these definitions conditional, so that they may be overridden, too.
38513
38514 2008-08-26  Bruno Haible  <bruno@clisp.org>
38515
38516         Generate INSTALL file variants with prettier quotes.
38517         * doc/Makefile (INSTALL_PRELUDE): New macro.
38518         (INSTALL): Use it.
38519         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38520
38521 2008-08-26  Bruno Haible  <bruno@clisp.org>
38522
38523         Run makeinfo in an English locale.
38524         * doc/Makefile (MAKEINFO): New variable.
38525
38526 2008-08-26  Bruno Haible  <bruno@clisp.org>
38527
38528         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38529         Suggested by Eric Blake.
38530
38531 2008-08-25  Bruno Haible  <bruno@clisp.org>
38532
38533         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38534
38535 2008-08-25  Eric Blake  <ebb9@byu.net>
38536
38537         c-stack: test that stack overflow can be caught
38538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38539         that platform allows handling stack overflow; at least OS/2 EMX
38540         has sigaltstack, but crashes before transferring control to
38541         handler on stack overflow.
38542         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38543         check for HAVE_STACK_OVERFLOW_HANDLING.
38544         Reported by Elbert Pol.
38545
38546 2008-08-25  Bruno Haible  <bruno@clisp.org>
38547
38548         * doc/posix-functions/strftime.texi: Fix description of strftime
38549         module.
38550
38551 2008-08-24  Bruno Haible  <bruno@clisp.org>
38552
38553         * tests/uniwidth/test-uc_width2.c: New file.
38554         * tests/uniwidth/test-uc_width2.sh: New file.
38555         * modules/uniwidth/width-tests (Files): Add the new files.
38556         (TESTS): Add uniwidth/test-uc_width2.sh.
38557         (TESTS_ENVIRONMENT): New variable.
38558         (check_PROGRAMS): Add test-uc_width2.
38559         (test_uc_width2_SOURCES): New variable.
38560
38561         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38562         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38563         not 0x00AB.
38564         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38565
38566 2008-08-22  Eric Blake  <ebb9@byu.net>
38567
38568         test-lock, test-tls: mention why a test is skipped
38569         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38570         skipped.
38571         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38572
38573         count-one-bits: relax license
38574         * modules/count-one-bits (License): Relicense to LGPLv2+.
38575         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38576
38577 2008-08-22  Andreas Schwab  <schwab@suse.de>
38578
38579         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38580         Remove spurious space in assignment.
38581
38582 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38583
38584         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38585         Paul Eggert <eggert@CS.UCLA.EDU>.
38586
38587 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38588
38589         * modules/gettext: Add m4/threadlib.m4.
38590
38591 2008-08-19  Eric Blake  <ebb9@byu.net>
38592
38593         test-c-stack: fix compilation failure on FreeBSD 5.0
38594         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38595         headers before <sys/resource.h>.
38596         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38597         the bug.
38598         Reported by Nelson H. F. Beebe.
38599
38600         strverscmp: migrate from "strverscmp.h" to <string.h>
38601         * modules/string (Makefile.am): Add new hooks.
38602         * modules/strverscmp (Files): Remove strverscmp.h.
38603         (Depends-on): Add string.
38604         (configure.ac): Add indicator.
38605         (Include): Mention new header.
38606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38607         defaults.
38608         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38609         results.
38610         * lib/strverscmp.h: Delete.
38611         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38612         * tests/test-strverscmp.c (includes): Adjust client.
38613         * lib/check-version.c (includes): Likewise.
38614         * NEWS: Document the change.
38615
38616         strverscmp: add unit test
38617         * modules/strverscmp-tests: New file.
38618         * tests/test-strverscmp.c: Likewise.
38619
38620 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38621
38622         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38623         regarding Windows crypto stuff, from Mono.
38624
38625 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38626
38627         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38628         if present, for intel RND.  Return error on failures.
38629
38630 2008-08-18  Ben Pfaff  <blp@gnu.org>
38631
38632         gitlog-to-changelog: give better diagnostic for failed pipe-open
38633         * build-aux/gitlog-to-changelog: Improve error message: suggest
38634         that the version of Git may be too old.
38635
38636 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38637
38638         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38639         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38640
38641 2008-08-18  Bruno Haible  <bruno@clisp.org>
38642
38643         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38644         pthread_in_use().
38645
38646 2008-08-18  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/glthread/threadlib.c: Include <pthread.h>.
38649
38650 2008-08-18  Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38653         glthread_recursive_lock_* macros.
38654         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38655         Fix syntax error.
38656
38657 2008-08-18  Bruno Haible  <bruno@clisp.org>
38658
38659         * lib/glthread/thread.c: Avoid forcing a context switch right after
38660         thread creation.
38661
38662 2008-08-17  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38665         * lib/glthread/thread.h: Provide Win32 specific implementation.
38666         * modules/thread (Files): Add lib/glthread/thread.c.
38667         (Depends-on): Add lock.
38668         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38669
38670 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38671
38672         New module 'yield'.
38673         * modules/yield: New file.
38674         * lib/glthread/yield.h: New file.
38675         * m4/yield.m4: New file.
38676         * MODULES.html.sh (Multithreading): Add yield.
38677
38678 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38679
38680         New module 'thread'.
38681         * modules/thread: New file.
38682         * lib/glthread/thread.h: New file.
38683         * m4/thread.m4: New file.
38684         * MODULES.html.sh (Multithreading): Add thread.
38685
38686 2008-08-17  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/glthread/lock.h: Include <stdlib.h> always.
38689         * lib/glthread/tls.h: Likewise.
38690         * lib/glthread/cond.h: Likewise.
38691
38692 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38693
38694         New module 'cond'.
38695         * modules/cond: New file.
38696         * lib/glthread/cond.h: New file.
38697         * lib/glthread/cond.c: New file.
38698         * m4/cond.m4: New file.
38699         * MODULES.html.sh (Multithreading): Add cond.
38700
38701 2008-08-16  Eric Blake  <ebb9@byu.net>
38702
38703         c-stack: fix regression on Irix 5.3 from 2008-06-21
38704         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38705         sa_sigaction...
38706         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38707         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38708         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38709         * modules/signal (Makefile.am): Use the value.
38710         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38711         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38712         * doc/posix-headers/signal.texi (signal.h): Document this
38713         portability issue.
38714         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38715         Reported by Tom G. Christensen.
38716
38717 2008-08-17  Bruno Haible  <bruno@clisp.org>
38718
38719         New module 'threadlib'.
38720         * modules/threadlib: New file.
38721         * lib/glthread/threadlib.c: New file, extracted from
38722         lib/glthread/lock.c.
38723         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38724         functions.
38725         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38726         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38727         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38728         macros.
38729         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38730         (gl_DISABLE_THREADS): Remove macro.
38731         * modules/lock (Files): Remove build-aux/config.rpath.
38732         (Depends-on): Remove havelib. Add threadlib.
38733         (configure.ac-early): Remove section.
38734         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38735         * modules/tls (Depends-on): Remove lock. Add threadlib.
38736         (Link): New section, copied from threadlib.
38737         * MODULES.html.sh (Multithreading): Add threadlib.
38738
38739 2008-08-14  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38742         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38743         glthread_rwlock_unlock, glthread_rwlock_destroy,
38744         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38745         glthread_recursive_lock_destroy): Define as macros always.
38746         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38747         glthread_lock_lock.
38748         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38749         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38750         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38751         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38752         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38753         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38754         (glthread_recursive_lock_lock_func): Renamed from
38755         glthread_recursive_lock_lock.
38756         (glthread_recursive_lock_unlock_func): Renamed from
38757         glthread_recursive_lock_unlock.
38758         (glthread_recursive_lock_destroy_func): Renamed from
38759         glthread_recursive_lock_destroy.
38760
38761 2008-08-14  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/glthread/lock.h: Renamed from lib/lock.h.
38764         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38765         * lib/glthread/tls.h: Renamed from lib/tls.h.
38766         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38767         * lib/fstrcmp.c: Update includes.
38768         * lib/strsignal.c: Update includes.
38769         * modules/lock (Files, Makefile.am): Update.
38770         (Include): Change to "glthread/lock.h".
38771         * modules/tls (Files, Makefile.am): Update.
38772         (Include): Change to "glthread/tls.h".
38773         * tests/test-lock.c: Update includes.
38774         * tests/test-tls.c: Update includes.
38775         * NEWS: Mention the renamed header files.
38776
38777 2008-08-11  Jim Meyering  <meyering@redhat.com>
38778
38779         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38780
38781 2008-08-11  Eric Blake  <ebb9@byu.net>
38782
38783         test-c-stack: avoid C99-ism
38784         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38785         before statement.
38786         Reported by Alain Guibert.
38787
38788 2008-08-10  Jim Meyering  <meyering@redhat.com>
38789
38790         ensure that return value of uinttostr et al are not ignored
38791         * lib/inttostr.h (__GNUC_PREREQ): Define.
38792         (__attribute_warn_unused_result__): Define.
38793         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38794
38795 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38796
38797         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38798         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38799
38800 2008-08-07  Jim Meyering  <meyering@redhat.com>
38801
38802         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38803
38804         * modules/mkstemp (License): Relicense under LGPLv2+.
38805         * modules/tempname (License): Likewise.
38806
38807 2008-08-06  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/poll.c (poll): Further micro-optimization.
38810
38811 2008-08-06  Jim Meyering  <meyering@redhat.com>
38812
38813         inet_pton.c: use locale-independent tolower
38814         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38815         (inet_pton6): Use c_tolower rather than tolower.
38816         * modules/inet_pton (Depends-on): Add c-ctype.
38817
38818 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38819
38820         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38821         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38822
38823 2008-08-06  Jim Meyering  <meyering@redhat.com>
38824
38825         * modules/inet_pton (License): Relicense under LGPLv2+.
38826
38827 2008-08-03  Bruno Haible  <bruno@clisp.org>
38828
38829         Additional non-aborting API for lock and tls.
38830         * lib/lock.h: Include <errno.h>.
38831         (glthread_lock_init): New macro/function.
38832         (gl_lock_init): Define as wrapper around glthread_lock_init.
38833         (glthread_lock_lock): New macro/function.
38834         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38835         (glthread_lock_unlock): New macro/function.
38836         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38837         (glthread_lock_destroy): New macro/function.
38838         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38839         (glthread_rwlock_init): New macro/function.
38840         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38841         (glthread_rwlock_rdlock): New macro/function.
38842         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38843         (glthread_rwlock_wrlock): New macro/function.
38844         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38845         (glthread_rwlock_unlock): New macro/function.
38846         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38847         (glthread_rwlock_destroy): New macro/function.
38848         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38849         (glthread_recursive_lock_init): New macro/function.
38850         (gl_recursive_lock_init): Define as wrapper around
38851         glthread_recursive_lock_init.
38852         (glthread_recursive_lock_lock): New macro/function.
38853         (gl_recursive_lock_lock): Define as wrapper around
38854         glthread_recursive_lock_lock.
38855         (glthread_recursive_lock_unlock): New macro/function.
38856         (gl_recursive_lock_unlock): Define as wrapper around
38857         glthread_recursive_lock_unlock.
38858         (glthread_recursive_lock_destroy): New macro/function.
38859         (gl_recursive_lock_destroy): Define as wrapper around
38860         glthread_recursive_lock_destroy.
38861         (glthread_once): New macro/function.
38862         (gl_once): Define as wrapper around glthread_once.
38863         Update function declarations.
38864         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38865         glthread_rwlock_init. Return error code.
38866         (glthread_rwlock_rdlock_multithreaded): Renamed from
38867         glthread_rwlock_rdlock. Return error code.
38868         (glthread_rwlock_wrlock_multithreaded): Renamed from
38869         glthread_rwlock_wrlock. Return error code.
38870         (glthread_rwlock_unlock_multithreaded): Renamed from
38871         glthread_rwlock_unlock. Return error code.
38872         (glthread_rwlock_destroy_multithreaded): Renamed from
38873         glthread_rwlock_destroy. Return error code.
38874         (glthread_recursive_lock_init_multithreaded): Renamed from
38875         glthread_recursive_lock_init. Return error code.
38876         (glthread_recursive_lock_lock_multithreaded): Renamed from
38877         glthread_recursive_lock_lock. Return error code.
38878         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38879         glthread_recursive_lock_unlock. Return error code.
38880         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38881         glthread_recursive_lock_destroy. Return error code.
38882         (glthread_once_call): Make static.
38883         (glthread_once_multithreaded): Renamed from glthread_once.
38884         * lib/tls.h: Include <errno.h>.
38885         (glthread_tls_key_init): New macro/function.
38886         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38887         (glthread_tls_set): New macro/function.
38888         (gl_tls_set): Define as wrapper around glthread_tls_set.
38889         (glthread_tls_key_destroy): New macro/function.
38890         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38891         Update function declarations.
38892         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38893         glthread_tls_get.
38894         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38895
38896 2008-08-04  Eric Blake  <ebb9@byu.net>
38897
38898         gnumakefile: use space, not TAB, outside of targets
38899         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38900
38901 2008-08-02  Jim Meyering  <meyering@redhat.com>
38902
38903         getdate.y: avoid locale-dependent date parsing failure
38904         In Turkish locales, getdate would fail to recognize keywords
38905         containing a lowercase "i".  The solution is not to rely on
38906         locale-sensitive case-conversion.
38907         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38908         (lookup_word): Use c_toupper in place of toupper.
38909         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38910         Reported by Vefa Bicakci <bicave@superonline.com> in
38911         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38912         * modules/getdate (Depends-on): Add c-ctype.
38913
38914 2008-08-02  Bruno Haible  <bruno@clisp.org>
38915
38916         * gnulib-tool (func_import): When updating or creating a .gitignore
38917         file, prepend each added line with a slash, and ignore leading slashes
38918         from the existing lines.
38919         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38920
38921 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38922
38923         Portability fix for GNU make 3.79.1.
38924         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38925         versions do not understand.
38926
38927 2008-08-01  Bruno Haible  <bruno@clisp.org>
38928
38929         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38930         * tests/test-isnanf.h (zero): New variable.
38931         (main): Avoid literal -0.0f.
38932         * tests/test-isnand.h (zero): New variable.
38933         (main): Avoid literal -0.0.
38934         * tests/test-isnanl.h (zero): New variable.
38935         (main): Avoid literal -0.0L.
38936         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38937         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38938         -0.0, -0.0L.
38939         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38940         (test_signbitd): Avoid literal -0.0.
38941         (test_signbitl): Avoid literal -0.0L.
38942         * tests/test-ceilf1.c (zero): New variable.
38943         (main): Avoid literal -0.0f.
38944         * tests/test-ceill.c (zero): New variable.
38945         (main): Avoid literal -0.0L.
38946         * tests/test-floorf1.c (zero): New variable.
38947         (main): Avoid literal -0.0f.
38948         * tests/test-floorl.c (zero): New variable.
38949         (main): Avoid literal -0.0L.
38950         * tests/test-roundf1.c (zero): New variable.
38951         (main): Avoid literal -0.0f.
38952         * tests/test-round1.c (zero): New variable.
38953         (main): Avoid literal -0.0.
38954         * tests/test-roundl.c (zero): New variable.
38955         (main): Avoid literal -0.0L.
38956         * tests/test-truncf1.c (zero): New variable.
38957         (main): Avoid literal -0.0f.
38958         * tests/test-trunc1.c (zero): New variable.
38959         (main): Avoid literal -0.0.
38960         * tests/test-truncl.c (zero): New variable.
38961         (main): Avoid literal -0.0L.
38962         * tests/test-frexp.c (zero): New variable.
38963         (main): Avoid literal -0.0.
38964         * tests/test-frexpl.c (zero): New variable.
38965         (main): Avoid literal -0.0L.
38966         * tests/test-ldexpl.c (zero): New variable.
38967         (main): Avoid literal -0.0L.
38968         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38969         (zerod, zerol): New variables.
38970         (test_function): Avoid literals -0.0, -0.0L.
38971         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38972         (zerod, zerol): New variables.
38973         (test_function): Avoid literals -0.0, -0.0L.
38974         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38975         (zerod, zerol): New variables.
38976         (test_function): Avoid literals -0.0, -0.0L.
38977         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38978         (zerod, zerol): New variables.
38979         (test_function): Avoid literals -0.0, -0.0L.
38980         * tests/test-strtod.c (zero): New variable.
38981         (main): Avoid literal -0.0.
38982         Reported by Jonathan C. Patschke <jp@centtech.com>.
38983
38984 2008-07-31  Jim Meyering  <meyering@redhat.com>
38985
38986         sha256.h: correct definition of SHA224_DIGEST_SIZE
38987         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38988         Reported by Paulie Pena IV <paulie4@gmail.com>.
38989         Define as 224 / 8, rather than as a literal.
38990         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38991         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38992         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38993
38994 2008-07-31  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38997         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38998         Reported by Jonathan Patschke <jp@centtech.com>.
38999
39000 2008-07-31  Bruno Haible  <bruno@clisp.org>
39001
39002         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39003         Reported by Paolo Bonzini <bonzini@gnu.org>.
39004
39005 2008-07-30  Eric Blake  <ebb9@byu.net>
39006
39007         test-strtod: allow compilation without -lm
39008         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39009         Reported by Dennis Clarke <blastwave@gmail.com>.
39010
39011 2008-07-28  Jim Meyering  <meyering@redhat.com>
39012
39013         bootstrap: work also when there are no .po files in po/
39014         * build-aux/bootstrap (update_po_files): Complete the change
39015         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39016
39017 2008-07-27  Jim Meyering  <meyering@redhat.com>
39018
39019         * users.txt: Add zile.
39020
39021 2008-07-26  Ben Pfaff  <blp@gnu.org>
39022
39023         Add missing dependencies on new m4/exponent[fdl].m4 files.
39024         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39025         * modules/isnand-nolibm: Add m4/exponentd.m4.
39026         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39027         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39028         m4/isnan[fdl].m4, because the macros actually used moved.
39029         Reported by Jim Meyering.
39030
39031 2008-07-14  Ben Pfaff  <blp@gnu.org>
39032
39033         Add isinf module.
39034         * lib/isinf.c: New file.
39035         * lib/math.in.h: Define isinf macro if we have decided to replace
39036         it.
39037         * m4/isinf.m4: New file.
39038         * m4/math_h.m4: Initialize and substitute variables for isinf
39039         module.
39040         * modules/isinf: New file.
39041         * modules/isinf-tests: New file.
39042         * modules/math: Add substitutions for new module.
39043         * tests/test-isinf.c: New file.
39044         * doc/posix-functions/isinf.texi: Mention new module.
39045         * MODULES.html.sh: Mention new module.
39046
39047 2008-07-14  Ben Pfaff  <blp@gnu.org>
39048
39049         Factor out some macros for use by additional modules.
39050         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39051         exponentf.m4.
39052         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39053         exponentd.m4.
39054         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39055         file exponentl.m4.
39056         * m4/exponentf.m4: New file.
39057         * m4/exponentd.m4: New file.
39058         * m4/exponentl.m4: New file.
39059         * modules/isnanf: Use new file m4/exponentf.m4.
39060         * modules/isnand: Use new file m4/exponentd.m4.
39061         * modules/isnanl: Use new file m4/exponentl.m4.
39062
39063 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39064
39065         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39066         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39067         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39068         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39069
39070         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39071         readlink on platforms without PATH_MAX.
39072
39073 2008-07-21  Eric Blake  <ebb9@byu.net>
39074
39075         Warn, not fail, on stale version.
39076         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39077
39078         Don't allow installation with stale devel version number.
39079         * top/GNUmakefile (_is-install-target): New macro.
39080         (_curr-ver): Forbid installation with stale version number.
39081
39082 2008-07-20  Bruno Haible  <bruno@clisp.org>
39083
39084         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39085         TESTS_ENVIRONMENT.
39086         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39087
39088 2008-07-20  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/c-stack.h (c_stack_action): Add documentation.
39091         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39092
39093 2008-07-20  Bruno Haible  <bruno@clisp.org>
39094
39095         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39096         * modules/readlink (License): Likewise.
39097
39098 2008-07-17  Eric Blake  <ebb9@byu.net>
39099
39100         * modules/c-stack (Link): Fix typo.
39101
39102         Make c-stack use libsigsegv, when available.
39103         * modules/c-stack (Depends-on): Add libsigsegv.
39104         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39105         needed.
39106         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39107         (segv_handler, overflow_handler, c_stack_action)
39108         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39109         implementation when libsigsegv is available, but only when using
39110         the library is necessary.
39111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39112         comment, explaining why XSI check fails on Linux.
39113         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39114         * tests/test-c-stack2.sh: Tweak skip message.
39115         * NEWS: Document new link-time requirements.
39116
39117 2008-07-16  Eric Blake  <ebb9@byu.net>
39118
39119         c-stack: Expose false positives when not using libsigsegv.
39120         * modules/c-stack-tests (Files): Expand test.
39121         * tests/test-c-stack.c (main): Add means to conditionally trigger
39122         non-overflow SIGSEGV.
39123         * tests/test-c-stack2.sh: New file.
39124
39125 2008-07-14  Bruno Haible  <bruno@clisp.org>
39126
39127         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39128         Reported by Eric Blake.
39129
39130 2008-07-14  Sam Steingold  <sds@gnu.org>
39131             Bruno Haible  <bruno@clisp.org>
39132
39133         New module libsigsegv.
39134         * modules/libsigsegv: New file.
39135         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39136         modifications.
39137         * MODULES.html.sh (Signal handling): New section.
39138
39139 2008-07-14  Bruno Haible  <bruno@clisp.org>
39140
39141         * modules/unictype/ctype-* (Description): Add the word "function".
39142         Improves the resulting doc in MODULES.html.
39143
39144 2008-07-12  Ben Pfaff  <blp@gnu.org>
39145
39146         Add longlong module.
39147         * modules/longlong: New file.
39148
39149 2008-07-12  Bruno Haible  <bruno@clisp.org>
39150
39151         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39152         to empty.
39153
39154 2008-07-10  Ben Pfaff  <blp@gnu.org>
39155
39156         Add isnan module.
39157         * doc/posix-functions/isnan.texi: Mention new module.
39158         * lib/math.in.h: Define isnan macro if we have decided to replace
39159         it.
39160         * m4/isnan.m4: New file.
39161         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39162         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39163         also.
39164         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39165         redundancy.
39166         * m4/math_h.m4: Initialize and substitute variables for isnan
39167         module.
39168         * modules/isnan: New file.
39169         * modules/isnan-tests: New file.
39170         * modules/math: Add substitutions for new module.
39171         * tests/test-isnan.c: New file.
39172         * MODULES.html.sh: Mention new module.
39173
39174 2008-07-10  Ben Pfaff  <blp@gnu.org>
39175
39176         Add isnanf module.
39177         * lib/isnanf.m4: New file.
39178         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39179         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39180         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39181         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39182         * modules/isnanf: New file.
39183         * modules/isnanf-tests: New file.
39184         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39185         files.
39186         * tests/test-isnanf-nolibm.c: factored most of its contents into
39187         new file tests/test-isnanf.h.
39188         * tests/test-isnanf.h: New file.
39189         * tests/test-isnanf.c: New file.
39190         * MODULES.html.sh: Mention new module.
39191         * doc/glibc-functions/isnanf.texi: Mention new module.
39192
39193 2008-07-10  Ben Pfaff  <blp@gnu.org>
39194
39195         Add isnand module.
39196         * lib/isnand.h: New file.
39197         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39198         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39199         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39200         functionality also.
39201         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39202         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39203         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39204         * modules/isnand: New file.
39205         * modules/isnand-tests: New file.
39206         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39207         files.
39208         * tests/test-isnand-nolibm.c: factored most of its contents into
39209         new file tests/test-isnand.h.
39210         * tests/test-isnand.h: New file.
39211         * tests/test-isnand.c: New file.
39212         * MODULES.html.sh: Mention new module.
39213
39214 2008-07-10  Ben Pfaff  <blp@gnu.org>
39215
39216         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39217         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39218         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39219         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39220         * modules/isnanf-nolibm: Update references to renamed files.
39221         * modules/isnand-nolibm: Likewise.
39222         * modules/isnanf-nolibm-tests: Likewise.
39223         * modules/isnand-nolibm-tests: Likewise.
39224         * lib/frexp.c: Likewise.
39225         * lib/isfinite.c: Likewise.
39226         * lib/signbitd.c: Likewise.
39227         * lib/signbitf.c: Likewise.
39228         * lib/vasnprintf.c: Likewise.
39229         * tests/test-ceilf1.c: Likewise.
39230         * tests/test-ceilf2.c: Likewise.
39231         * tests/test-floorf1.c: Likewise.
39232         * tests/test-floorf2.c: Likewise.
39233         * tests/test-frexp.c: Likewise.
39234         * tests/test-round1.c: Likewise.
39235         * tests/test-round2.c: Likewise.
39236         * tests/test-roundf1.c: Likewise.
39237         * tests/test-strtod.c: Likewise.
39238         * tests/test-trunc1.c: Likewise.
39239         * tests/test-trunc2.c: Likewise.
39240         * tests/test-truncf1.c: Likewise.
39241         * tests/test-truncf2.c: Likewise.
39242         * NEWS: Mention the renamed header files.
39243
39244 2008-07-11  Jim Meyering  <meyering@redhat.com>
39245
39246         vc-list-files: make the last-resort awk code more portable
39247         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39248         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39249         does not support it.
39250
39251 2008-07-10  Eric Blake  <ebb9@byu.net>
39252
39253         Work with tar's bootstrap.
39254         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39255         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39256         an m4 comment.
39257
39258 2008-07-09  Jim Meyering  <meyering@redhat.com>
39259
39260         posix-shell.m4: fix typo that made this test malfunction
39261         * m4/posix-shell.m4: Remove capitalization in variable name.
39262
39263 2008-07-08  Bruno Haible  <bruno@clisp.org>
39264
39265         * m4/onceonly.m4: Update comments.
39266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39267
39268 2008-07-04  Jim Meyering  <meyering@redhat.com>
39269
39270         * users.txt: Add vc-dwim.
39271         (bison, coreutils): Use the gitweb URL.
39272
39273 2008-07-03  Jim Meyering  <meyering@redhat.com>
39274
39275         * users.txt: Add libffcall.  From Sam Steingold.
39276
39277 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39278
39279         getdate.y: do not ignore TZ with relative day, month or year offset
39280         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39281         relative-date-handling, since otherwise, the latter would clobber the
39282         sole output (an updated Start value) of the tz-handling block.
39283         * tests/test-getdate.c: Tests for the fix
39284
39285 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39286
39287         Recognize 'foo_LIBRARIES += libgnu.a'.
39288         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39289         makefile snippet has already specified an installation location,
39290         also using '+='.
39291
39292 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39293
39294         getdate.y: factor out common actions
39295         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39296         Use them in place of open-coded actions.
39297
39298 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39299
39300         Add self-test for getdate module.
39301         * modules/getdate-tests: New file.
39302         * tests/test-getdate.c: New file.
39303
39304 2008-06-29  Bruno Haible  <bruno@clisp.org>
39305
39306         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39307         .gitignore.
39308         Reported by Sylvain Beucler <beuc@beuc.net>.
39309
39310 2008-06-29  Bruno Haible  <bruno@clisp.org>
39311
39312         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39313         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39314
39315 2008-06-29  Bruno Haible  <bruno@clisp.org>
39316
39317         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39318         EXTRA_DIST.
39319         Reported by Sylvain Beucler <beuc@beuc.net>.
39320
39321 2008-06-26  Jim Meyering  <meyering@redhat.com>
39322
39323         make several modules depend on the "open" module
39324         This provides slightly increased consistency when opening-for-write
39325         the name of a non-directory spelled with a trailing slash.
39326         * modules/chdir-safer: Likewise.
39327         * modules/chown: Likewise.
39328         * modules/clean-temp: Likewise.
39329         * modules/copy-file: Likewise.
39330         * modules/fchdir: Likewise.
39331         * modules/fcntl-safer: Likewise.
39332         * modules/pipe: Likewise.
39333         * modules/utime: Likewise.
39334         Prompted by Eric Blake and Bruno Haible.
39335
39336 2008-06-24  Andreas Schwab  <schwab@suse.de>
39337
39338         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39339         literals can be used as initializers for global variables.
39340
39341 2008-06-23  Eric Blake  <ebb9@byu.net>
39342
39343         Make gnulib-cache.m4 easier to diff.
39344         * gnulib-tool (func_import): Allow newlines when reading cached
39345         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39346
39347 2008-06-23  Bruno Haible  <bruno@clisp.org>
39348
39349         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39350         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39351         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39352         m4/signalblocking.m4.
39353         (gl_PREREQ_SIGACTION): Don't invoke it.
39354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39355         gl_PREREQ_SIG_HANDLER_H.
39356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39357         Don't check for sigaction here.
39358
39359 2008-06-23  Bruno Haible  <bruno@clisp.org>
39360
39361         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39362         (install_handlers): Don't set the SA_RESETHAND flag.
39363
39364 2008-06-23  Bruno Haible  <bruno@clisp.org>
39365
39366         * m4/sigaction.m4: Comment fixes.
39367         * lib/signal.in.h: Likewise.
39368
39369 2008-06-23  Eric Blake  <ebb9@byu.net>
39370
39371         Fix typo.
39372         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39373
39374         Avoid SA_ namespace.
39375         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39376         Reported by Ralf Wildenhues.
39377
39378         Avoid test failure due to SA_RESTORER.
39379         * tests/test-sigaction.c (SA_MASK): New macro.
39380         (main): Avoid failing due to extension flags being set.
39381         Reported by Jim Meyering.
39382
39383         Revert use of sig-handler.h in sigprocmask.c.
39384         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39385         it requires the existence of struct sigaction.
39386         * lib/sigprocmask.c (handler_t): Restore typedef.
39387         (rpl_signal, old_handlers): Use local type.
39388
39389 2008-06-22  Bruno Haible  <bruno@clisp.org>
39390
39391         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39392         conditionally.
39393         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39394
39395 2008-06-22  Bruno Haible  <bruno@clisp.org>
39396
39397         * doc/posix-functions/siginterrupt.texi: Move note.
39398
39399         * lib/signal.in.h (SA_RESTART): New macro.
39400         * lib/sigaction.c: Update comment.
39401
39402         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39403
39404         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39405         (gl_PREREQ_SIGPROCMASK): Invoke it.
39406         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39407
39408         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39409
39410         * lib/sigprocmask.c: Update a comment.
39411
39412 2008-06-21  Eric Blake  <ebb9@byu.net>
39413
39414         Use sigaction module rather than signal().
39415         * modules/c-stack (Depends-on): Add sigaction.
39416         * modules/fatal-signal (Depends-on): Likewise.
39417         * modules/nanosleep (Depends-on): Likewise.
39418         * modules/sigprocmask (Files): Add sig-handler.h.
39419         * modules/sigaction (Files): Likewise.
39420         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39421         Eggert.
39422         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39423         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39424         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39425         (init_fatal_signals): Likewise.
39426         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39427         (siginterrupt): Delete fallback.
39428         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39429         instead.
39430         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39431         siginterrupt.
39432
39433         New module sigaction, for mingw.
39434         * modules/sigaction: New module...
39435         * modules/sigaction-tests: ...and its test.
39436         * m4/sigaction.m4: New file.
39437         * lib/sigaction.c: Likewise.
39438         * tests/test-sigaction.c: Likewise.
39439         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39440         * modules/signal (Makefile.am): Likewise.
39441         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39442         needed.
39443         * doc/posix-headers/signal.texi (signal.h): Mention provided
39444         types.
39445         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39446         that sigaction is preferable.
39447         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39448         module.
39449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39450         sigaction.
39451
39452         Improve robustness of sigprocmask by overriding signal.
39453         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39454         is in use.
39455         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39456         (SIGKILL, SIGSTOP): Provide fallbacks.
39457         (rpl_signal): Implement.
39458         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39459         signal can be called inside handlers.
39460
39461         Fix nanosleep module on mingw.
39462         * modules/nanosleep (Depends-on): Add sys_select.
39463         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39464
39465         Fix licensing of sigprocmask.
39466         * modules/raise (License): Relicense as LGPL.
39467
39468 2008-06-21  Bruno Haible  <bruno@clisp.org>
39469
39470         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39471         result if it contains question marks.
39472         Reported by Michael Geng <linux@michaelgeng.de>.
39473
39474 2008-06-19  Bruno Haible  <bruno@clisp.org>
39475
39476         Fix CVS-ism.
39477         * doc/gnulib.texi: Include updated-stamp.texi.
39478         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39479         (updated-stamp.texi): New rule.
39480         (gnulib.info): Depend on it.
39481         * doc/.gitignore: Add updated-stamp.texi.
39482         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39483
39484 2008-06-19  Bruno Haible  <bruno@clisp.org>
39485
39486         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39487         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39488
39489 2008-06-19  Eric Blake  <ebb9@byu.net>
39490
39491         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39492         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39493         Reported by Stepan Kasal.
39494
39495 2008-06-18  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39498         Reported by Eric Blake.
39499
39500 2008-06-18  Eric Blake  <ebb9@byu.net>
39501
39502         Work around cygwin 1.5.25 strsignal bug.
39503         * tests/test-strsignal.c: Allow for const char *.
39504         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39505
39506 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39507
39508         * users.txt: Update URL to article and add author/date
39509         information.
39510
39511 2008-06-17  Bruno Haible  <bruno@clisp.org>
39512
39513         New macro gl_DISABLE_THREADS.
39514         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39515         if the user did not pass --enable-threads or --disable-threads option.
39516         (gl_DISABLE_THREADS): New macro.
39517         Reported by Eric Blake <ebb9@byu.net>.
39518
39519 2008-06-17  Bruno Haible  <bruno@clisp.org>
39520
39521         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39522         when the macro ignores it.
39523         Based on a patch by Eric Blake <ebb9@byu.net>.
39524
39525 2008-06-17  Bruno Haible  <bruno@clisp.org>
39526
39527         * modules/tls (License): Change to LGPLv2+.
39528         Reported by Eric Blake.
39529
39530 2008-06-17  Eric Blake  <ebb9@byu.net>
39531
39532         Simplify c-stack prerequisites.
39533         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39535         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39536         check.
39537         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39538         <sys/resource.h>.
39539
39540         Move c-stack test into testsuite.
39541         * modules/c-stack-tests: New file.
39542         * lib/c-stack.c [DEBUG]: Move test program...
39543         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39544         fail test if sigaltstack is lacking.
39545         * tests/test-c-stack.sh: New driver file.
39546
39547 2008-06-16  Eric Blake  <ebb9@byu.net>
39548
39549         Use raise module consistently.
39550         * modules/fatal-signal (Depends-on): Add raise.
39551         * modules/sigprocmask (Depends-on): Likewise.
39552         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39553         * lib/sigprocmask.c (sigprocmask): Likewise.
39554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39555         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39556
39557         Fix compliance bug in sigpending.
39558         * lib/sigprocmask.c (sigpending): Return pending array via
39559         parameter, not return value.
39560
39561 2008-06-14  Eric Blake  <ebb9@byu.net>
39562
39563         Improve obstack-printf test code.
39564         * tests/test-obstack-printf.c (test_function): Fix comment, and
39565         simplify usage of obstack_* in macros.  Add a test for coverage.
39566         Reported by Bruno Haible.
39567
39568 2008-06-14  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39571         array size as a constant, not as a const variable.
39572         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39573         AC_USE_SYSTEM_EXTENSIONS.
39574         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39575         Test whether the obstack_printf function actually exists.
39576         * modules/obstack-printf (Depends-on): Add extensions.
39577         (Include): Remove obstack.h.
39578         * modules/obstack-printf-posix (Depends-on): Add extensions.
39579         (Include): Remove obstack.h.
39580
39581 2008-06-13  Eric Blake  <ebb9@byu.net>
39582
39583         Add obstack-printf and obstack-printf-posix modules.
39584         * modules/obstack-printf: New file.
39585         * modules/obstack-printf-posix: Likewise.
39586         * MODULES.html.sh (Misc): Mention them.
39587         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39588         Likewise.
39589         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39590         Likewise.
39591         * modules/stdio (Makefile.am): Accomodate new modules.
39592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39593         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39594         Declare.
39595         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39596         functions.
39597         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39598         (gl_REPLACE_OBSTACK_PRINTF): New macros
39599         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39600         * tests/test-obstack-printf.c: New file.
39601         * modules/obstack-printf-tests: Likewise.
39602         * modules/obstack-printf-posix-tests: Likewise.
39603
39604 2008-06-11  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39607         * lib/open.c: Include errno.h.
39608         (open): Fail when attempting to write to a file that has a trailing
39609         slash.
39610         * tests/test-open.c (main): Test against trailing slash bug.
39611         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39612
39613 2008-06-10  Bruno Haible  <bruno@clisp.org>
39614
39615         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39616         for $? to work inside the trap command, with various /bin/sh-s.
39617         * tests/test-vc-list-files-cvs.sh: Likewise.
39618
39619 2008-06-10  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/acl-internal.h: Don't include gettext.h here.
39622         * lib/set-mode-acl.c: Include gettext.h here.
39623         * lib/copy-acl.c: Likewise.
39624
39625 2008-06-10  Bruno Haible  <bruno@clisp.org>
39626
39627         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39628         * lib/wait-process.c (wait_subprocess): Likewise.
39629         * lib/execute.h (execute): Add termsigp argument.
39630         * lib/execute.c (execute): Likewise.
39631         * lib/csharpcomp.c (compile_csharp_using_pnet,
39632         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39633         * lib/csharpexec.c (execute_csharp_using_pnet,
39634         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39635         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39636         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39637         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39638         is_jikes_present): Update.
39639         * lib/javaexec.c (execute_java_class): Update.
39640         * lib/javaversion.c (execute_and_read_line): Update.
39641         * NEWS: Document the changes.
39642         Reported by Eric Blake.
39643
39644 2008-06-10  Eric Blake  <ebb9@byu.net>
39645
39646         Add missing include.
39647         * tests/test-strstr.c (includes): Add <signal.h>.
39648         * tests/test-strcasestr.c (includes): Likewise.
39649         * tests/test-memmem.c (includes): Likewise.
39650
39651 2008-06-10  Bruno Haible  <bruno@clisp.org>
39652
39653         * lib/wait-process.c (wait_subprocess): Add an assertion.
39654
39655 2008-06-10  Bruno Haible  <bruno@clisp.org>
39656
39657         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39658
39659 2008-06-10  Bruno Haible  <bruno@clisp.org>
39660
39661         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39662         using alarm().
39663         * tests/test-strcasestr.c (main): Likewise.
39664         * tests/test-strstr.c (main): Likewise.
39665
39666 2008-06-09  Bruno Haible  <bruno@clisp.org>
39667
39668         Work around the Solaris 10 ACE ACLs ABI change.
39669         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39670         declare if ACL_NO_TRIVIAL is present.
39671         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39672         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39673         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39674         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39675         define if ACL_NO_TRIVIAL is present.
39676         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39677         and use the current ABI.
39678         (file_has_acl): Use same #if condition as elsewhere.
39679         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39680         in use, and use the current ABI.
39681         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39682         Reported by Jim Meyering.
39683
39684 2008-06-09  Eric Blake  <ebb9@byu.net>
39685
39686         Work around environments that (stupidly) ignore SIGALRM.
39687         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39688         before using alarm().
39689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39691         Reported by Ian Beckwith <ianb@erislabs.net>.
39692
39693         Produce autobuild blurb earlier in log.
39694         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39695
39696 2008-06-09  Jim Meyering  <meyering@redhat.com>
39697         and OndÅ™ej Vašík  <ovasik@redhat.com>
39698
39699         utimens.c: correct kernel bug work-around
39700         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39701         failure, not success, and the kernel bug we're trying to work
39702         around affects not just the utimensat call, but also the fallback
39703         futimens call.
39704         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39705         not success.
39706         [HAVE_FUTIMENS]: Use the same work-around, here.
39707
39708 2008-06-09  Jim Meyering  <meyering@redhat.com>
39709
39710         add more guards around definition of ACE_-related code
39711         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39712         ALLOW and ACE_OWNER are also defined.
39713
39714 2008-06-08  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/acl-internal.h: Add me as co-author.
39717         * lib/file-has-acl.c: Likewise.
39718         * lib/set-mode-acl.c: Likewise.
39719         * lib/copy-acl.c: Likewise.
39720
39721 2008-06-08  Bruno Haible  <bruno@clisp.org>
39722
39723         Add support for AIX ACLs.
39724         * lib/acl-internal.h (acl_nontrivial): New declaration.
39725         * lib/file-has-acl.c (acl_nontrivial): New function.
39726         (file_has_acl): Add implementation using AIX 4 ACL API.
39727         * lib/set-mode-acl.c (qset_acl): Likewise.
39728         * lib/copy-acl.c (qcopy_acl): Likewise.
39729
39730 2008-06-08  Bruno Haible  <bruno@clisp.org>
39731
39732         Add support for HP-UX ACLs.
39733         * lib/acl-internal.h (acl_nontrivial): New declaration.
39734         * lib/file-has-acl.c (acl_nontrivial): New function.
39735         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39736         * lib/set-mode-acl.c (qset_acl): Likewise.
39737         * lib/copy-acl.c (qcopy_acl): Likewise.
39738
39739 2008-06-08  Bruno Haible  <bruno@clisp.org>
39740
39741         Add support for Cygwin ACLs.
39742         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39743         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39744         the chmod_or_fchmod call.
39745         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39746
39747 2008-06-08  Bruno Haible  <bruno@clisp.org>
39748
39749         Fix bug with setuid modes in Solaris 10+ code.
39750         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39751         succeeded, when the mode contains some special bits.
39752
39753 2008-06-08  Bruno Haible  <bruno@clisp.org>
39754
39755         Add support for Solaris 7..10 ACLs.
39756         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39757         declarations.
39758         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39759         functions.
39760         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39761         * lib/set-mode-acl.c (qset_acl): Likewise.
39762         * lib/copy-acl.c (qcopy_acl): Likewise.
39763
39764 2008-06-08  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39767         declaration.
39768         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39769         (acl_access_nontrivial): Remove MacOS X case.
39770         (file_has_acl): Use acl_extended_nontrivial.
39771         * lib/copy-acl.c (qcopy_acl): Likewise.
39772
39773 2008-06-08  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39776
39777 2008-06-08  Jim Meyering  <meyering@redhat.com>
39778
39779         * modules/acl (Maintainer): Add Bruno Haible.
39780
39781 2008-06-07  Bruno Haible  <bruno@clisp.org>
39782
39783         Improve support for Tru64 ACLs.
39784         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39785         ACL on OSF/1.
39786
39787 2008-06-07  Bruno Haible  <bruno@clisp.org>
39788
39789         Add support for MacOS X ACLs.
39790         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39791         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39792         * lib/set-mode-acl.c (qset_acl): Likewise.
39793         * lib/copy-acl.c (qcopy_acl): Likewise.
39794
39795 2008-06-07  Bruno Haible  <bruno@clisp.org>
39796
39797         Fix memory leak introduced on 2008-05-22.
39798         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39799         use.
39800
39801 2008-06-07  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39804         to construct an empty ACL.
39805
39806 2008-06-07  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39809         precisely.
39810         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39811
39812 2008-06-07  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39815         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39816
39817 2008-06-07  Bruno Haible  <bruno@clisp.org>
39818
39819         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39820         regardless of POSIX.
39821         * doc/posix-functions/_longjmp.texi: Likewise.
39822         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39823         SystemV platform in this case.
39824
39825 2008-06-06  Eric Blake  <ebb9@byu.net>
39826
39827         Document abort() bugs.
39828         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39829
39830         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39831         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39832         sigsetjmp.
39833         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39834         siglongjmp, but only as a macro.
39835         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39836         is obsolete.
39837         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39838
39839         Tweak documentation to cover cygwin argz bugs.
39840         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39841         argz bug fix; no code change needed since no cygwin releases
39842         occurred between the last fix and the bug being tested.
39843         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39844         module and recently fixed cygwin bugs.
39845         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39846         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39847         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39848         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39849         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39850         Likewise.
39851         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39852         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39853         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39854         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39855         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39856         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39857         Likewise.
39858
39859         Avoid gcc warning on cygwin.
39860         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39861         !ACL_NO_TRIVIAL]: Avoid unused variable.
39862
39863 2008-06-05  Eric Blake  <ebb9@byu.net>
39864
39865         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39866         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39867         git-version-gen fails to come up with a version.
39868         Reported by Simon Josefsson.
39869
39870 2008-06-05  Jim Meyering  <meyering@redhat.com>
39871             Paul Eggert  <eggert@cs.ucla.edu>
39872
39873         utimens.c: work around a probable Linux kernel bug
39874         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39875         appears to be a kernel bug that causes utimensat to return 280
39876         instead of 0, indicating success.
39877
39878 2008-06-04  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39881         2008-06-01 commit.
39882
39883 2008-06-04  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39886         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39887         (file_has_acl): Use it. Save errno afterwards.
39888         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39889
39890 2008-06-03  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39893         draft code. Simplify #ifs.
39894         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39895         Put Solaris code after POSIX-draft code. Fix comments regarding
39896         Solaris 10, HP-UX. Mention Cygwin.
39897         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39898
39899 2008-06-03  Eric Blake  <ebb9@byu.net>
39900
39901         Provide fallback for older kernels.
39902         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39903         Provide runtime fallback if kernel lacks support.
39904         Reported by Mike Frysinger.
39905
39906 2008-06-02  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39909         it exists.
39910
39911 2008-06-02  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39914         * lib/copy-acl.c (qcopy_acl): Update comment.
39915
39916 2008-06-02  Bruno Haible  <bruno@clisp.org>
39917
39918         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39919         like ACL APIs.
39920
39921 2008-06-02  Bruno Haible  <bruno@clisp.org>
39922
39923         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39924         * tests/test-set-mode-acl.sh: Likewise.
39925         * tests/test-copy-acl.sh: Likewise.
39926         * tests/test-copy-file.sh: Likewise.
39927
39928 2008-06-02  Bruno Haible  <bruno@clisp.org>
39929
39930         * tests/test-file-has-acl.sh: Remove unused code.
39931
39932 2008-06-01  Bruno Haible  <bruno@clisp.org>
39933
39934         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39935         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39936         messages.
39937         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39938
39939 2008-06-01  Bruno Haible  <bruno@clisp.org>
39940
39941         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39942         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39943         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39944         APIs.
39945         * modules/acl-tests (configure.ac): Remove tests now contained in
39946         m4/acl.m4.
39947
39948 2008-06-02  Jim Meyering  <meyering@redhat.com>
39949
39950         announce-gen: use a better key-server host name
39951         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39952         it may be more consistently reliable.  Suggested by Werner Koch
39953         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39954
39955 2008-06-01  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39958         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39959
39960 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39961
39962         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39963
39964 2008-06-01  Bruno Haible  <bruno@clisp.org>
39965
39966         New ACL tests.
39967         * tests/test-file-has-acl.sh: New file.
39968         * tests/test-file-has-acl.c: New file.
39969         * tests/test-set-mode-acl.sh: New file.
39970         * tests/test-set-mode-acl.c: New file.
39971         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39972         * tests/test-copy-acl.c: New file.
39973         * modules/acl-tests: New file, based on modules/copy-file-tests.
39974         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39975         (Depends-on): Add acl-tests.
39976         (configure.ac): Remove checks.
39977         (Makefile.am): Don't create test-sameacls program here any more.
39978
39979 2008-06-01  Bruno Haible  <bruno@clisp.org>
39980
39981         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39982         * tests/test-sameacls.c: Include progname.h.
39983         (main): Invoke set_program_name. Portability fixes for MacOS X,
39984         Solaris, HP-UX.
39985
39986 2008-06-01  Bruno Haible  <bruno@clisp.org>
39987
39988         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39989         function.
39990         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39991
39992 2008-06-01  Bruno Haible  <bruno@clisp.org>
39993
39994         * modules/rpmatch (Depends-on): Add strdup.
39995
39996 2008-06-01  Bruno Haible  <bruno@clisp.org>
39997
39998         * lib/pipe.c: Include unistd-safer.h.
39999         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40000         * modules/pipe (Depends-on): Add unistd-safer.
40001
40002 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40003
40004         * modules/autobuild (configure.ac): Call AB_INIT.
40005
40006 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40007
40008         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40009         Suggested by Bruno Haible <bruno@clisp.org>.
40010
40011 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40012
40013         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40014         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40015         <bruno@clisp.org>.
40016
40017 2008-05-29  Eric Blake  <ebb9@byu.net>
40018
40019         Prefer new POSIX 200x interfaces over futimesat.
40020         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40021         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40022         when available.
40023         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40024
40025 2008-05-28  Bruno Haible  <bruno@clisp.org>
40026
40027         * modules/stpcpy (License): Change to LGPLv2+.
40028         Requested by David Lutterkort <dlutter@redhat.com>.
40029
40030 2008-05-27  Bruno Haible  <bruno@clisp.org>
40031
40032         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40033         current mingw.
40034         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40035
40036 2008-05-27  Bruno Haible  <bruno@clisp.org>
40037
40038         * modules/iconv_open (Link): New section, from module 'iconv'.
40039         * modules/striconv (Link): Likewise.
40040         * modules/striconveh (Link): Likewise.
40041         * modules/xstriconv (Link): Likewise.
40042         * modules/unicodeio (Link): Likewise.
40043         * modules/propername (Link): Likewise.
40044         Reported by Jim Meyering.
40045
40046 2008-05-26  Jim Meyering  <meyering@redhat.com>
40047
40048         sha256: do not artificially restrict buffer length to be < 2^32
40049         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40050         uint32_t to size_t.
40051         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40052         to match.
40053
40054         avoid unaligned access errors, e.g., on sparc
40055         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40056         direct access through a possibly-unaligned uint64* pointer.
40057         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40058         direct access through a possibly-unaligned uint32* pointer.
40059         Prompted by this patch from Tom "spot" Callaway:
40060         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40061
40062         sha512.c: fix typo in comment
40063         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40064
40065 2008-05-25  Bruno Haible  <bruno@clisp.org>
40066
40067         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40068         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40069         (Makefile.am): Update lib_SOURCES.
40070
40071 2008-05-25  Bruno Haible  <bruno@clisp.org>
40072
40073         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40074
40075 2008-05-25  Jim Meyering  <meyering@redhat.com>
40076
40077         useless-if-before-free: freed expr may have white-space differences
40078         * build-aux/useless-if-before-free: Recognize cases in which the
40079         freed expression differs from the tested one in embedded white
40080         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40081         $1 was used, so we can't make any regexp shy.  Improved tests now
40082         detect this.
40083
40084         useless-if-before-free: accept white space in the expression.
40085         * build-aux/useless-if-before-free: For now, any white space
40086         in the expression must be identical in the free argument.
40087
40088         useless-if-before-free: efficiency tweak
40089         * build-aux/useless-if-before-free: Make the expression-matching
40090         regexp "shy".
40091         Make the *outer* regexp shy, not the expr-matching one.
40092
40093         update code-in-comment to accept cast of free arg
40094         * build-aux/useless-if-before-free: Update regexp.
40095
40096 2008-05-25  Bruno Haible  <bruno@clisp.org>
40097
40098         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40099         * modules/copy-file-tests (Files, Makefile.am): Update.
40100         * tests/test-copy-file.c (func_test_copy): Update.
40101
40102 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40103
40104         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40105
40106 2008-05-23  Bruno Haible  <bruno@clisp.org>
40107
40108         Improve support for ACLs on OSF/1.
40109         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40110         Remove fallback for unknown flavors of ACLs.
40111
40112 2008-05-22  Bruno Haible  <bruno@clisp.org>
40113
40114         Add support for ACLs on OSF/1.
40115         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40116         replacements.
40117         (acl_free_text): New macro fallback.
40118         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40119         acl_free.
40120         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40121         acl_free_text function. Require AC_C_INLINE.
40122
40123 2008-05-22  Bruno Haible  <bruno@clisp.org>
40124
40125         Make copy_acl work on MacOS X 10.5.
40126         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40127         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40128         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40129         If MODE_INSIDE_ACL, don't assume that every system has the same text
40130         representation for ACLs as FreeBSD.
40131         * lib/copy-acl.c (copy_acl): Add support for platforms with
40132         !MODE_INSIDE_ACL.
40133         * lib/file-has-acl.c (file_has_acl): Likewise.
40134         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40135         FreeBSD, MacOS X, or IRIX, respectively.
40136
40137 2008-05-22  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/acl.h: Don't include <sys/acl.h>.
40140         (GETACLCNT): Move fallback to lib/acl-internal.h.
40141         * lib/acl-internal.h: Include <sys/acl.h> here.
40142         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40143
40144 2008-05-22  Bruno Haible  <bruno@clisp.org>
40145
40146         Split off copy_acl function to separate file.
40147         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40148         * lib/acl.c (copy_acl): Moved function to separate file.
40149         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40150         * modules/acl (Files): Add lib/copy-acl.c.
40151         (Makefiles.am): Augment lib_SOURCES.
40152
40153 2008-05-22  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/copy-file-tests: New file.
40156         * tests/test-copy-file.sh: New file.
40157         * tests/test-copy-file.c: New file.
40158         * tests/test-copy-file-sameacls.c: New file.
40159
40160 2008-05-22  Eric Blake  <ebb9@byu.net>
40161
40162         Avoid gcc warning.
40163         * tests/test-memcmp.c (main): Pass NULL indirectly.
40164
40165 2008-05-21  Bruno Haible  <bruno@clisp.org>
40166
40167         Add reference doc about ACLs.
40168         * doc/acl-resources.txt: New file.
40169         * doc/acl-cygwin.txt: New file.
40170
40171 2008-05-21  Bruno Haible  <bruno@clisp.org>
40172
40173         Avoid one more warning from gcc.
40174         * lib/vasnprintf.c (IF_LINT): Update comments.
40175         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40176
40177 2008-05-21  Jim Meyering  <meyering@redhat.com>
40178
40179         avoid a warning from gcc
40180         * lib/vasnprintf.c (IF_LINT): Define.
40181         (scale10_round_decimal_long_double):
40182         Use it to avoid a "may be used uninitialized" warning.
40183         (scale10_round_decimal_double): Likewise.
40184
40185 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40186
40187         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40188         declared.
40189
40190 2008-05-20  Bruno Haible  <bruno@clisp.org>
40191
40192         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40193         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40194
40195 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40196
40197         * modules/memcmp-tests: New file.
40198         * tests/test-memcmp.c: New file.
40199
40200 2008-05-19  Bruno Haible  <bruno@clisp.org>
40201
40202         * modules/propername (Notice, configure.ac): Put quoted "..." into
40203         --keyword option.
40204         * lib/propername.h: Update comments accordingly.
40205         Reported by Eric Blake.
40206
40207 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40208
40209         * modules/getpass-gnu (Depends-on): Add fseeko.
40210
40211 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40212
40213         * modules/base64-tests: New file.
40214
40215 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40216
40217         * lib/base64.c (base64_decode_ctx): If a decode context structure
40218         was passed in use it to ignore newlines.  If a context structure
40219         was _not_ passed in, continue to treat newlines as garbage (this
40220         is the historical behavior).  Formerly base64_decode.
40221         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40222         takes a decode context structure.
40223         * lib/base64.h (base64_decode): Macro for four-argument calls.
40224         (base64_decode_alloc): Likewise.
40225         * lib/base64.c (base64_decode_ctx): If a decode context structure
40226         was passed in use it to ignore newlines.  If a context structure
40227         was _not_ passed in, continue to treat newlines as garbage (this
40228         is the historical behavior).  Formerly base64_decode.
40229         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40230         takes a decode context structure.
40231         * lib/base64.h (base64_decode): Macro for four-argument calls.
40232         (base64_decode_alloc): Likewise.
40233
40234 2008-05-19  Jim Meyering  <meyering@redhat.com>
40235
40236         avoid a warning from gcc
40237         * lib/trim.c (IF_LINT): Define.
40238         (trim2): Use it to avoid a "may be used uninitialized" warning.
40239
40240         Fix doc typo.
40241         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40242
40243 2008-05-19  Bruno Haible  <bruno@clisp.org>
40244
40245         * doc/glibc-functions/getpass.texi: Document limits of other
40246         implementations.
40247
40248 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40249             Bruno Haible <bruno@clisp.org>
40250
40251         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40252
40253 2008-05-18  Bruno Haible  <bruno@clisp.org>
40254
40255         * modules/propername: New file, from GNU gettext.
40256         * lib/propername.h: New file, from GNU gettext.
40257         * lib/propername.c: New file, from GNU gettext.
40258         * MODULES.html.sh (Internationalization functions): Add propername.
40259
40260 2008-05-16  Jim Meyering  <meyering@redhat.com>
40261             Bruno Haible  <bruno@clisp.org>
40262
40263         Avoid some warnings from "gcc -Wshadow".
40264         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40265
40266 2008-05-15  Eric Blake  <ebb9@byu.net>
40267
40268         Extend previous patch to cygwin 1.7.0.
40269         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40270         fast implementation in cygwin >= 1.7.0.
40271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40273
40274 2008-05-15  Bruno Haible  <bruno@clisp.org>
40275
40276         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40277         implementation in glibc >= 2.9.
40278         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40280
40281 2008-05-15  Bruno Haible  <bruno@clisp.org>
40282
40283         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40284         (Unicode string functions): Add unilbrk/*.
40285         Reported by Karl Berry.
40286
40287 2008-05-15  Eric Blake  <ebb9@byu.net>
40288
40289         Fix violation of <stdbool.h> replacement in regex.
40290         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40291         * lib/regexec.c (re_search_internal): Likewise.
40292         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40293
40294 2008-05-15  Jim Meyering  <meyering@redhat.com>
40295
40296         avoid distracting test output when git or cvs is not found
40297         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40298         * tests/test-vc-list-files-git.sh: Likewise.
40299
40300 2008-05-15  Eric Blake  <ebb9@byu.net>
40301
40302         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40303         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40304         glibc version.
40305         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40306         * doc/posix-functions/strstr.texi (strstr): Likewise.
40307         * lib/str-two-way.h (MAX): Sychronize with glibc.
40308
40309 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40310
40311         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40312         opr.ctx_type.
40313         (calc_first): Initialize constraint field.
40314         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40315         Fix grammar.
40316         (duplicate_node): Merge constraint field for all node types.
40317         (calc_eclosure_iter): Look at constraint field for all node types.
40318         * lib/regex_internal.c (create_cd_newstate): Don't look at
40319         opr.ctx_type.
40320
40321 2008-05-14  Bruno Haible  <bruno@clisp.org>
40322
40323         Help GCC to do better code generation.
40324         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40325         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40326         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40327         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40328         Declare with attribute 'malloc' if supported.
40329
40330 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40331
40332         use "echo STR|wc -c" rather than unportable "expr length STR"
40333         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40334         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40335
40336 2008-05-14  Jim Meyering  <meyering@redhat.com>
40337
40338         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40339         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40340         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40341         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40342         via Collin Lasse.
40343
40344 2008-05-14  Eric Blake  <ebb9@byu.net>
40345
40346         Avoid quadratic growth in gl_LIBSOURCES.
40347         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40348         Suggested by Bruno Haible.
40349
40350         Test xmemdup0.
40351         * modules/xmemdup0-tests: New file.
40352         * tests/test-xmemdup0.c: Likewise.
40353
40354 2008-05-13  Eric Blake  <ebb9@byu.net>
40355
40356         Split xmemdup0 into its own module.
40357         * modules/xmemdup0: New file.
40358         * lib/xmemdup0.h: Likewise.
40359         * lib/xmemdup0.c: Likewise.
40360         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40361         * lib/xalloc.h (xmemdup0): Remove.
40362         * lib/xmalloc.c (xmemdup0): Likewise.
40363
40364 2008-05-13  Eric Blake  <ebb9@byu.net>
40365             Bruno Haible  <bruno@clisp.org>
40366
40367         Reduce number of forks required during autoconf.
40368         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40369         and gl_LIBSOURCES_DIR.
40370         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40371         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40372         m4_syscmd per file.
40373         <m4_foreach_w>: Move...
40374         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40375
40376 2008-05-13  Eric Blake  <ebb9@byu.net>
40377
40378         * gnulib-tool: Fix various comment typos.
40379
40380 2008-05-12  Bruno Haible  <bruno@clisp.org>
40381
40382         Tailor the linebreaking algorithm.
40383         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40384
40385 2008-05-12  Bruno Haible  <bruno@clisp.org>
40386
40387         Update to Unicode 5.0.0.
40388         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40389         LBP_JV, LBP_JT. Redistribute values.
40390         (unilbrk_table): Change size.
40391         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40392         Unicode TR#14 rev. 22.
40393         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40394         LBP_JV, LBP_JT. Redistribute values.
40395         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40396         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40397         Update.
40398         * lib/unilbrk/lbrkprop1.h: Regenerated.
40399         * lib/unilbrk/lbrkprop2.h: Regenerated.
40400         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40401         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40402         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40403         Likewise.
40404         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40405         Likewise.
40406         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40407         result.
40408         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40409         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40410         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40411         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40412         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40413         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40414
40415 2008-05-11  Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40418
40419 2008-05-11  Bruno Haible  <bruno@clisp.org>
40420
40421         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40422         * modules/unilbrk/gen-lbrk: New file.
40423
40424 2008-05-11  Bruno Haible  <bruno@clisp.org>
40425
40426         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40427         * m4/sha512.m4 (gl_SHA512): Likewise.
40428
40429 2008-05-11  Jim Meyering  <meyering@redhat.com>
40430
40431         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40432         * modules/crypto/sha256: New file.
40433         * modules/crypto/sha512: Likewise.
40434         * lib/sha256.c: Likewise.
40435         * lib/sha256.h: Likewise.
40436         * lib/sha512.c: Likewise.
40437         * lib/sha512.h: Likewise.
40438         * lib/u64.h: Likewise.
40439         * m4/sha256.m4: Likewise.
40440         * m4/sha512.m4: Likewise.
40441         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40442
40443 2008-05-10  Bruno Haible  <bruno@clisp.org>
40444
40445         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40446         (Input/Output <stdio.h>): Add xprintf.
40447         (Signal handling <signal.h>): Add strsignal.
40448         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40449         (Core language properties): Add func.
40450         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40451         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40452         strings.
40453         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40454         (Input/output): New section.
40455         (File system functions): Add openat-die, stat-macros.
40456         (Networking functions): Add sockets.
40457         (Unicode string functions): Add unictype/*.
40458         (Support for building libraries and executables): Add gperf.
40459         (Support for building documentation): Add agpl-3.0.
40460         (Misc): Add nocrash.
40461
40462 2008-05-10  Bruno Haible  <bruno@clisp.org>
40463
40464         * modules/unictype/gen-ctype: New file.
40465
40466 2008-05-10  Jim Meyering  <meyering@redhat.com>
40467
40468         Make chdir-safer.c more efficient on a system with no symlinks.
40469         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40470         also if ELOOP is zero.  Suggested by Bruno Haible.
40471
40472         Make chdir-safer.c slightly safer.
40473         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40474         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40475
40476         Avoid compile failure on systems without ELOOP (like mingw).
40477         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40478         Reported by Bruno Haible.
40479
40480 2008-05-10  Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40483         (is_utf8_encoding): Use a case-insensitive comparison.
40484         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40485         streq.
40486
40487 2008-05-10  Bruno Haible  <bruno@clisp.org>
40488
40489         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40490         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40491         * lib/unilbrk/ulc-common.h (iconv_string_length,
40492         iconv_string_keeping_offsets): Remove declarations.
40493         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40494         Don't include <iconv.h>, streq.h, xsize.h.
40495         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40496         conversion.
40497         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40498         <iconv.h>, streq.h, xsize.h.
40499         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40500         conversion.
40501         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40502         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40503         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40504         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40505
40506 2008-05-10  Bruno Haible  <bruno@clisp.org>
40507
40508         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40509         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40510
40511         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40512         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40513
40514         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40515         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40516
40517         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40518         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40519
40520         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40521         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40522
40523         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40524         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40525
40526         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40527         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40528
40529         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40530         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40531
40532 2008-05-10  Bruno Haible  <bruno@clisp.org>
40533
40534         Split up 'linebreak' module.
40535         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40536         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40537         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40538         modifications.
40539         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40540         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40541         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40542         lib/linebreak.c.
40543         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40544         lib/linebreak.c.
40545         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40546         lib/linebreak.c.
40547         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40548         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40549         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40550         lib/linebreak.c.
40551         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40552         lib/linebreak.c.
40553         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40554         lib/linebreak.c.
40555         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40556         lib/linebreak.c.
40557         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40558         lib/linebreak.c.
40559         * modules/unilbrk/base: New file.
40560         * modules/unilbrk/tables: New file.
40561         * modules/unilbrk/u8-possible-linebreaks: New file.
40562         * modules/unilbrk/u16-possible-linebreaks: New file.
40563         * modules/unilbrk/u32-possible-linebreaks: New file.
40564         * modules/unilbrk/ulc-common: New file.
40565         * modules/unilbrk/ulc-possible-linebreaks: New file.
40566         * modules/unilbrk/u8-width-linebreaks: New file.
40567         * modules/unilbrk/u16-width-linebreaks: New file.
40568         * modules/unilbrk/u32-width-linebreaks: New file.
40569         * modules/unilbrk/ulc-width-linebreaks: New file.
40570         * lib/linebreak.h: Remove file.
40571         * lib/linebreak.c: Remove file.
40572         * m4/linebreak.m4: Remove file.
40573         * modules/linebreak: Remove file.
40574         * NEWS: Mention the changes.
40575
40576 2008-05-09  Eric Blake  <ebb9@byu.net>
40577
40578         Add xmemdup0.
40579         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40580         implementation.
40581         * lib/xmalloc.c (xmemdup0): New C implementation.
40582
40583 2008-05-08  Bruno Haible  <bruno@clisp.org>
40584
40585         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40586
40587 2008-05-07  Eric Blake  <ebb9@byu.net>
40588
40589         Support cross-compilation of <wctype.h>.
40590         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40591         AC_CACHE_CHECK.
40592
40593 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40594
40595         * build-aux/vc-list-files: Add support for bzr.
40596
40597 2008-05-03  Jim Meyering  <meyering@redhat.com>
40598
40599         avoid failed assertion with tight malloc
40600         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40601
40602 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40603
40604         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40605         are needed from arpa/inet.h.
40606         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40607         Reported by Bruno Haible.
40608
40609 2008-05-02  Jim Meyering  <meyering@redhat.com>
40610
40611         avoid compilation error on FreeBSD 6
40612         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40613
40614 2008-05-01  Jim Meyering  <meyering@redhat.com>
40615
40616         useless-if-before-free: correct --help's exit status description
40617         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40618         for one or more matches, etc.  Reported by Bruno Haible.
40619
40620         vc-list-files: make the stand-alone gnulib test work
40621         * modules/vc-list-files-tests (configure.ac):
40622         Define and AC_SUBST abs_aux_dir.
40623         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40624         $(abs_top_srcdir) to each script and having each of them
40625         duplicate the work of setting PATH, set PATH here, using
40626         the new variable, abs_aux_dir instead.
40627         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40628         * tests/test-vc-list-files-git.sh: Likewise.
40629         Reported by Bruno Haible.
40630
40631 2008-05-01  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40634         reallocation. Rename 'done' to 'found_delimiter'.
40635
40636 2008-05-01  Jim Meyering  <meyering@redhat.com>
40637
40638         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40639         * build-aux/vc-list-files: Use `...`, not $(...).
40640
40641 2008-04-30  Jim Meyering  <meyering@redhat.com>
40642
40643         add tests for vc-list-files
40644         * modules/vc-list-files-tests: New module.
40645         * tests/test-vc-list-files-cvs.sh: New file.
40646         * tests/test-vc-list-files-git.sh: New file.
40647
40648         avoid a warning from gcc
40649         * lib/getndelim2.c (IF_LINT): Define.
40650         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40651
40652         vc-list-files: work properly with build-aux/cvsu, too
40653         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40654         to all cvs-based clauses.
40655
40656         vc-list-files: work properly in the CVS+awk case, too
40657         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40658
40659         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40660         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40661         take more than one file argument, so .  Add quotes, just in case $dir
40662         ever contains a shell meta-character.  Prompted by Soren Hansen in
40663         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40664
40665 2008-04-29  Eric Blake  <ebb9@byu.net>
40666
40667         Optimize getndelim2 to use block operations when possible.
40668         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40669         freadseek, and memchr2.
40670         * lib/getndelim2.c (getndelim2): Use them for block reads.
40671
40672 2008-04-29  Bruno Haible  <bruno@clisp.org>
40673
40674         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40675         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40676         * modules/inet_ntop (Depends-on): Add extensions.
40677         * modules/inet_pton (Depends-on): Likewise.
40678         Reported by Simon Josefsson.
40679
40680 2008-04-29  Jim Meyering  <meyering@redhat.com>
40681
40682         When the is more than one match in a block, match all of them.
40683         * build-aux/useless-if-before-free: Iterate through each block
40684         until there are no more matches.
40685
40686         Fix broken useless-if-before-free script.
40687         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40688         the expression to match cast of argument to free-like function.
40689
40690 2008-04-29  Eric Blake  <ebb9@byu.net>
40691
40692         Use new header.
40693         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40694
40695 2008-04-29  Jim Meyering  <meyering@redhat.com>
40696
40697         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40698         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40699         by gnulib to exist and to declare e.g., inet_ntop.
40700         Don't include "inet_ntop.h", now removed.
40701
40702         * m4/arpa_inet_h.m4: Remove trailing blanks.
40703
40704 2008-04-29  Eric Blake  <ebb9@byu.net>
40705
40706         Silence valgrind on safe reads beyond potential array bounds.
40707         * lib/rawmemchr.valgrind: New file.
40708         * lib/strchrnul.valgrind: Likewise.
40709         * modules/rawmemchr (Files): Distribute new file.
40710         * modules/strchrnul (Files): Likewise.
40711         Suggested by Bruno Haible.
40712
40713 2008-04-29  Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40716         (inet_ntop, inet_pton): Change portability warning's wording.
40717         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40718         Invoke gl_CHECK_NEXT_HEADERS.
40719         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40720         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40721         set ARPA_INET_H.
40722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40723         * modules/arpa_inet (Description): No longer only for systems that
40724         lack it.
40725         (Depends-on): Add include_next.
40726         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40727         HAVE_ARPA_INET_H.
40728
40729 2008-04-29  Jim Meyering  <meyering@redhat.com>
40730
40731         * modules/mkdir (License): Re-license as LGPLv2+.
40732
40733 2008-04-29  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/rawmemchr (Maintainer): Set to Eric.
40736         * modules/strchrnul (Maintainer): Likewise.
40737
40738 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40739
40740         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40741         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40742
40743         * modules/arpa_inet (arpa/inet.h): Use them.
40744
40745 2008-04-28  Eric Blake  <ebb9@byu.net>
40746
40747         Test getndelim2.
40748         * modules/getndelim2-tests: New file.
40749         * tests/test-getndelim2.c: Likewise.
40750         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40751         stream.
40752         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40753
40754         * MODULES.html.sh: Document new module.
40755
40756 2008-04-20  Bruno Haible  <bruno@clisp.org>
40757
40758         * lib/c-stack.c (die): Use raise.
40759         * modules/c-stack (Depends-on): Add raise.
40760
40761 2008-04-28  Bruno Haible  <bruno@clisp.org>
40762
40763         Expect rpmatch to be declared.
40764         * lib/yesno.c (rpmatch): Remove declaration.
40765
40766         Declare rpmatch.
40767         * lib/stdlib.in.h (rpmatch): New declaration.
40768         * lib/rpmatch.c: Include <stdlib.h> first.
40769         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40770         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40772         HAVE_RPMATCH.
40773         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40774         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40775         (Include): Set to <stdlib.h>.
40776         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40777         HAVE_RPMATCH.
40778         * NEWS: Document the change.
40779
40780 2008-04-28  Bruno Haible  <bruno@clisp.org>
40781
40782         Change rpmatch to use nl_langinfo when appropriate.
40783         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40784         (N_): New macro.
40785         (localized_pattern): New function/macro.
40786         (try): Remove match, nomatch arguments. Copy the pattern into safe
40787         memory before caching it.
40788         (rpmatch): Use localized_pattern. Add translator comments.
40789         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40790         Suggested by Eric Blake.
40791         * modules/rpmatch (Depends-on): Add stdbool.
40792
40793 2008-04-28  Eric Blake  <ebb9@byu.net>
40794
40795         Add rawmemchr module, matching glibc.
40796         * modules/string (Makefile.am): New indicator.
40797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40798         * lib/string.in.h (rawmemchr): Declare when appropriate.
40799         * modules/rawmemchr: New file.
40800         * m4/rawmemchr.m4: Likewise.
40801         * lib/rawmemchr.c: Likewise.
40802         * modules/rawmemchr-tests: Likewise.
40803         * tests/test-rawmemchr.c: Likewise.
40804         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40805         module.
40806         * modules/strchrnul (Depends-on): Add rawmemchr.
40807         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40808
40809         Whitespace cleanup.
40810         * tests/test-strchrnul.c: Reindent.
40811         * lib/strchrnul.c: Likewise.
40812
40813         Optimize and test strchrnul.
40814         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40815         * modules/strchrnul-tests: New file.
40816         * tests/test-strchrnul.c: Likewise.
40817
40818         Remove intprops dependency.
40819         * modules/memchr (Depends-on): Remove intprops.
40820         * modules/memrchr (Depends-on): Likewise.
40821         * modules/memchr2 (Depends-on): Likewise.
40822         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40823         * lib/memrchr.c (__memrchr): Likewise.
40824         * lib/memrchr2.c (memchr2): Likewise.
40825         Reported by Simon Josefsson.
40826
40827 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40828
40829         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40830         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40831
40832 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40833
40834         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40835
40836         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40837
40838         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40839
40840         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40841         declarations.
40842         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40843
40844         * m4/inet_pton.m4: Don't check for header files.
40845
40846         * m4/inet_ntop.m4: Don't check for header files.
40847
40848 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40849
40850         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40851         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40852         trigger for cygwin).
40853         Reported by Bruno Haible  <bruno@clisp.org>.
40854
40855 2008-04-28  Bruno Haible  <bruno@clisp.org>
40856
40857         * doc/posix-functions/strdup.texi: Mention mingw problem.
40858
40859 2008-04-27  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/stat-time-tests (Depends-on): Add sleep.
40862         * tests/test-stat-time.c (force_unlink): New function.
40863         (cleanup): Use it.
40864         (test_mtime): Remove the ctime related tests.
40865         (test_ctime): New function, containing the ctime related tests.
40866         (main): Call test_ctime, except on native Windows platforms.
40867
40868 2008-04-27  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/rpmatch.c (rpmatch): Add some comments.
40871         Reported by James Youngman <jay@gnu.org>.
40872
40873 2008-04-27  Bruno Haible  <bruno@clisp.org>
40874
40875         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40876         quiet NaNs.
40877
40878 2008-04-27  Bruno Haible  <bruno@clisp.org>
40879
40880         Make test-yesno.sh work on mingw.
40881         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40882         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40883         (main): Set stdin to binary mode.
40884         * modules/yesno-tests (Depends-on): Add binary-io.
40885
40886 2008-04-27  Bruno Haible  <bruno@clisp.org>
40887
40888         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40889         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40890         argument that lie outside the IEEE 854 domain.
40891         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40892         (gl_ISFINITE): Use it.
40893         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40894
40895 2008-04-27  Bruno Haible  <bruno@clisp.org>
40896
40897         Allow local renaming in config.h.
40898         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40899
40900 2008-04-27  Bruno Haible  <bruno@clisp.org>
40901
40902         * lib/memchr.c (__memchr): Change type of 'i'.
40903         * lib/memchr2.c (memchr2): Likewise.
40904
40905 2008-04-26  Eric Blake  <ebb9@byu.net>
40906         and Bruno Haible  <bruno@clisp.org>
40907
40908         Optimize and test memrchr.
40909         * modules/memrchr (Depends-on): Add intprops.
40910         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40911         * modules/memrchr-tests: New file.
40912         * tests/test-memrchr.c: New file.
40913
40914 2008-04-26  Bruno Haible  <bruno@clisp.org>
40915
40916         Add tentative support for DragonFly BSD.
40917         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40918         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40919         fp.
40920         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40921         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40922         * lib/fpurge.c (fpurge): Likewise.
40923         * lib/freadable.c (freaadable): Likewise.
40924         * lib/freadahead.c (freadahead): Likewise.
40925         * lib/freading.c (freading): Likewise.
40926         * lib/freadptr.c (freadptr): Likewise.
40927         * lib/freadseek.c (freadptrinc): Likewise.
40928         * lib/fseeko.c (fseeko): Likewise.
40929         * lib/fseterr.c (fseterr): Likewise.
40930         * lib/fwritable.c (fwritable): Likewise.
40931         * lib/fwriting.c (fwriting): Likewise.
40932
40933 2008-04-26  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/stdio-impl.h: New file.
40936         * lib/fbufmode.c: Include stdio-impl.h.
40937         (fbufmode): Use fp_, remove redundant #defines.
40938         * lib/fflush.c: Include stdio-impl.h.
40939         (clear_ungetc_buffer): Remove redundant #defines.
40940         * lib/fpurge.c: Include stdio-impl.h.
40941         (fpurge): Remove redundant #defines.
40942         * lib/freadable.c: Include stdio-impl.h.
40943         (freadable): Remove redundant #defines.
40944         * lib/freadahead.c: Include stdio-impl.h.
40945         (freadahead): Remove redundant #defines.
40946         * lib/freading.c: Include stdio-impl.h.
40947         (freading): Remove redundant #defines.
40948         * lib/freadptr.c: Include stdio-impl.h.
40949         (freadptr): Remove redundant #defines.
40950         * lib/freadseek.c: Include stdio-impl.h.
40951         (freadptrinc): Remove redundant #defines.
40952         * lib/fseeko.c: Include stdio-impl.h.
40953         (rpl_fseeko): Remove redundant #defines.
40954         * lib/fseterr.c: Include stdio-impl.h.
40955         (fseterr): Remove redundant #defines.
40956         * lib/fwritable.c: Include stdio-impl.h.
40957         (fwritable: Remove redundant #defines.
40958         * lib/fwriting.c: Include stdio-impl.h.
40959         (fwriting): Remove redundant #defines.
40960         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40961         * modules/fflush (Files): Likewise.
40962         * modules/fpurge (Files): Likewise.
40963         * modules/freadable (Files): Likewise.
40964         * modules/freadahead (Files): Likewise.
40965         * modules/freading (Files): Likewise.
40966         * modules/freadptr (Files): Likewise.
40967         * modules/freadseek (Files): Likewise.
40968         * modules/fseeko (Files): Likewise.
40969         * modules/fseterr (Files): Likewise.
40970         * modules/fwritable (Files): Likewise.
40971         * modules/fwriting (Files): Likewise.
40972
40973 2008-04-26  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40976         restore_seek_optimization, update_fpos_cache): New functions, extracted
40977         from rpl_fflush.
40978         (rpl_fflush): Use them.
40979         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40980         (gl_REPLACE_FFLUSH): Use it.
40981
40982 2008-04-26  Bruno Haible  <bruno@clisp.org>
40983
40984         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40985         on Solaris.
40986         * tests/test-xstrtoimax.sh: Likewise.
40987         * tests/test-xstrtoumax.sh: Likewise.
40988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40989
40990 2008-04-26  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/memchr-tests: New file.
40993         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40994
40995 2008-04-26  Eric Blake  <ebb9@byu.net>
40996             Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/memchr.c: Include intprops.h.
40999         (__memchr): Optimize parallel detection of matching bytes. Rename local
41000         variables. Add explanatory comments.
41001
41002 2008-04-26  Bruno Haible  <bruno@clisp.org>
41003
41004         Fix module 'memchr', broken since 2000-10-28.
41005         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41006
41007 2008-04-26  Bruno Haible  <bruno@clisp.org>
41008
41009         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41010         comments.
41011
41012 2008-04-25  Eric Blake  <ebb9@byu.net>
41013
41014         Use native fstatat on cygwin 1.7.0.
41015         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41016         first.
41017
41018 2008-04-23  Eric Blake  <ebb9@byu.net>
41019
41020         Improve memchr2 performance.
41021         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41022         NUL bytes.
41023         * modules/memchr2 (Depends-on): Use intprops.h.
41024
41025 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41026
41027         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41028         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41029         <blp@cs.stanford.edu>.
41030
41031 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41032
41033         * lib/arpa_inet.in.h: New file.
41034
41035         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41036         (Makefile.am): Sed in substitute header file.
41037
41038         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41039         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41040
41041         * modules/inet_ntop (configure.ac): Use
41042         gl_ARPA_INET_MODULE_INDICATOR.
41043
41044         * modules/inet_pton (configure.ac): Use
41045         gl_ARPA_INET_MODULE_INDICATOR.
41046
41047 2008-04-22  Jim Meyering  <meyering@redhat.com>
41048
41049         * modules/verify (License): Re-license as LGPLv2+.
41050
41051 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41052
41053         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41054         parameter to void* as per POSIX standard (MinGW uses char*).
41055
41056 2008-04-21  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41059         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41060         Define to replacements if REPLACE_ISWCNTRL is 1.
41061         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41062         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41063         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41064         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41065         what it fixes.
41066         * doc/posix-functions/iswalpha.texi: Likewise.
41067         * doc/posix-functions/iswblank.texi: Likewise.
41068         * doc/posix-functions/iswcntrl.texi: Likewise.
41069         * doc/posix-functions/iswdigit.texi: Likewise.
41070         * doc/posix-functions/iswgraph.texi: Likewise.
41071         * doc/posix-functions/iswlower.texi: Likewise.
41072         * doc/posix-functions/iswprint.texi: Likewise.
41073         * doc/posix-functions/iswpunct.texi: Likewise.
41074         * doc/posix-functions/iswspace.texi: Likewise.
41075         * doc/posix-functions/iswupper.texi: Likewise.
41076         * doc/posix-functions/iswxdigit.texi: Likewise.
41077         Reported by Alain Guibert.
41078
41079 2008-04-21  Bruno Haible  <bruno@clisp.org>
41080
41081         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41082         Patch by Alain Guibert.
41083
41084 2008-04-21  Bruno Haible  <bruno@clisp.org>
41085
41086         Fix test failures on mingw.
41087         * tests/test-xstrtol.c (print_no_progname): New function.
41088         (main): Install it in error_print_progname hook.
41089         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41090         * tests/test-xstrtoimax.sh: Likewise.
41091         * tests/test-xstrtoumax.sh: Likewise.
41092
41093 2008-04-21  Bruno Haible  <bruno@clisp.org>
41094
41095         Fix test failure on mingw.
41096         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41097
41098 2008-04-21  Bruno Haible  <bruno@clisp.org>
41099
41100         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41101         Actually assign a value.
41102
41103 2008-04-20  Bruno Haible  <bruno@clisp.org>
41104
41105         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41106         take 2.
41107         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41108         'canonicalize-lgpl' module is also used.
41109         * lib/canonicalize-lgpl.c: Undo last change.
41110         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41111
41112 2008-04-20  Bruno Haible  <bruno@clisp.org>
41113
41114         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41115         config.h. Provide _mkdir based fallback for mingw.
41116         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41117         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41118         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41119         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41120         rather than defining mkdir in config.h.
41121         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41122         (gl_SYS_STAT_H_DEFAULTS): New macro.
41123         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41124         HAVE_IO_H any more.
41125         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41126         HAVE_DECL_MKDIR and HAVE_IO_H.
41127
41128 2008-04-20  Bruno Haible  <bruno@clisp.org>
41129
41130         * lib/isapipe.c: Port to native Windows platforms.
41131
41132 2008-04-20  Bruno Haible  <bruno@clisp.org>
41133
41134         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41135
41136 2008-04-21  Eric Blake  <ebb9@byu.net>
41137
41138         Work around preprocessors that don't handle UINTMAX_MAX.
41139         * lib/memchr2.c (memchr2): Avoid embedded #if.
41140         Reported by Alain Guibert, fix suggested by Bruno Haible.
41141
41142 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41143
41144         * doc/posix-functions/strftime.texi (strftime): Explain better
41145         Windows incompatibility.  Suggested by Micah Cowan
41146         <micah@cowan.name>.
41147
41148 2008-04-20  Bruno Haible  <bruno@clisp.org>
41149
41150         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41151         unistr/u8-mblen.
41152
41153 2008-04-20  Bruno Haible  <bruno@clisp.org>
41154
41155         Fix test failure on platforms with non-GNU iconv.
41156         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41157         (U_TO_U8): Use it, rather than u16_to_u8.
41158         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41159         units at the end of the input string.
41160         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41161
41162 2008-04-20  Bruno Haible  <bruno@clisp.org>
41163
41164         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41165         when the resulting length is 0.
41166         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41167
41168 2008-04-20  Bruno Haible  <bruno@clisp.org>
41169
41170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41171         works.
41172         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41173
41174 2008-04-20  Bruno Haible  <bruno@clisp.org>
41175
41176         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41177         * modules/tsearch-tests (configure.ac): Test for initstate function.
41178
41179 2008-04-20  Bruno Haible  <bruno@clisp.org>
41180
41181         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41182         for nlink_t if missing.
41183         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41184
41185 2008-04-19  Bruno Haible  <bruno@clisp.org>
41186
41187         Work around snprintf bug on Linux libc5.
41188         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41190         gl_SNPRINTF_SIZE1.
41191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41192         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41193         that test failed.
41194         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41195         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41196         * modules/snprintf (Files): Add m4/printf.m4.
41197         * modules/vsnprintf (Files): Likewise.
41198         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41199         * doc/posix-functions/vsnprintf.texi: Likewise.
41200
41201 2008-04-19  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41204         from 0.0058 to less than 10^-7.
41205
41206 2008-04-19  Bruno Haible  <bruno@clisp.org>
41207
41208         Fix rounding when a precision is given.
41209         * lib/vasnprintf.c (is_borderline): New function.
41210         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41211         9...9x.
41212         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41213         %e, %g.
41214         * tests/test-vasprintf-posix.c (test_function): Likewise.
41215         * tests/test-snprintf-posix.h (test_function): Likewise.
41216         * tests/test-sprintf-posix.h (test_function): Likewise.
41217         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41218         * tests/test-printf-posix.h (test_function): Likewise.
41219         * tests/test-printf-posix.output: Update.
41220         Reported by John Darrington <john@darrington.wattle.id.au> via
41221         Ben Pfaff <blp@cs.stanford.edu>.
41222
41223 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41224
41225         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41226         Suggested by Bruno Haible <bruno@clisp.org>.
41227
41228 2008-04-17  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41231         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41232         implementation.
41233         Patch by Bruce Merry <bmerry@gmail.com>.
41234
41235 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41236
41237         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41238         doesn't work under Windows.
41239
41240 2008-04-16  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41243         New macros.
41244         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41245         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41246         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41247         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41248         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41249         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41250         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41251         macros.
41252         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41253         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41254         Northern Sotho, Uighur.
41255
41256 2008-04-16  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41259         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41260         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41261         Reported by Daniel Bergström <daniel@octocode.com>.
41262
41263 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41264             Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41267         function.
41268         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41269         New functions, mostly extracted from gl_locale_name_default.
41270         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41271
41272 2008-04-16  Eric Blake  <ebb9@byu.net>
41273
41274         Adjust strtod detection to catch glibc 2.7 bug.
41275         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41276         Reported by John Gatewood Ham.
41277
41278 2008-04-16  Bruno Haible  <bruno@clisp.org>
41279
41280         Add tentative support for Linux libc5.
41281         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41282         * lib/fpurge.c (fpurge): Likewise.
41283         * lib/freadable.c (freadable): Likewise.
41284         * lib/freadahead.c (freadahead): Likewise.
41285         * lib/freading.c (freading): Likewise.
41286         * lib/freadptr.c (freadptr): Likewise.
41287         * lib/freadseek.c (freadptrinc): Likewise.
41288         * lib/fseeko.c (rpl_fseeko): Likewise.
41289         * lib/fseterr.c (fseterr): Likewise.
41290         * lib/fwritable.c (fwritable): Likewise.
41291         * lib/fwriting.c (fwriting): Likewise.
41292         Reported by Alain Guibert <alguibert+bts@free.fr>.
41293
41294 2008-04-15  Bruno Haible  <bruno@clisp.org>
41295
41296         * modules/mathl (configure.ac): Define module indicator.
41297
41298 2008-04-15  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/logl.c (logl): Remove unused variables.
41301
41302 2008-04-15  Bruno Haible  <bruno@clisp.org>
41303
41304         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41305         fails.
41306
41307 2008-04-15  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/trim.c (trim2): Fix argument of isspace() macro.
41310
41311 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41312
41313         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41314         to 0.
41315         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41316
41317 2008-04-14  Bruno Haible  <bruno@clisp.org>
41318
41319         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41320         AC_LANG_PROGRAM argument.
41321         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41322         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41325         * m4/math_h.m4 (gl_MATH_H): Likewise.
41326         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41328         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41329         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41330         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41331         * m4/regex.m4 (gl_REGEX): Likewise.
41332         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41333         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41337         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41340
41341 2008-04-14  Jim Meyering  <meyering@redhat.com>
41342
41343         test-strtod: fix typos: s/abs/fabs/
41344         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41345
41346 2008-04-13  Bruno Haible  <bruno@clisp.org>
41347
41348         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41349         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41350         module is also used and while not building the reloc-wrapper.
41351
41352 2008-04-13  Bruno Haible  <bruno@clisp.org>
41353
41354         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41355
41356 2008-04-13  Bruno Haible  <bruno@clisp.org>
41357
41358         Fix AIX compilation failure introduced on 2008-04-02.
41359         * tests/test-frexp.c (exp): Undefine before redefining.
41360         * tests/test-frexpl.c (exp): Likewise.
41361
41362 2008-04-13  Bruno Haible  <bruno@clisp.org>
41363
41364         Work around a HP-UX stdio bug.
41365         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41366         * tests/test-ftello.c (main): Likewise.
41367         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41368         * doc/posix-functions/ftello.texi: Likewise.
41369
41370 2008-04-13  Bruno Haible  <bruno@clisp.org>
41371
41372         Make test-signbit pass on HP-UX/hppa.
41373         * tests/test-signbit.c (minus_zerol): New variable.
41374         (test_signbitl): Use it.
41375
41376 2008-04-13  Bruno Haible  <bruno@clisp.org>
41377
41378         Make truncl work on OSF/1 4.0.
41379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41380         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41381         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41383         HAVE_DECL_TRUNCL.
41384         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41385         HAVE_DECL_TRUNCL.
41386         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41387
41388 2008-04-13  Bruno Haible  <bruno@clisp.org>
41389
41390         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41391
41392 2008-04-13  Bruno Haible  <bruno@clisp.org>
41393
41394         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41395         expression, so as to avoid HP-UX 11 cc compiler bug.
41396
41397 2008-04-13  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41400
41401 2008-04-13  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/git-merge-changelog.c: Remove empty declaration outside of
41404         functions.
41405
41406 2008-04-13  Bruno Haible  <bruno@clisp.org>
41407
41408         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41409
41410 2008-04-13  Bruno Haible  <bruno@clisp.org>
41411
41412         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41413         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41415         also if it exists but lacks definitions of the SHUT_* macros.
41416         * modules/sys_socket (Description): Update.
41417         Reported by Elbert Pol <e.pol@chello.nl>.
41418
41419 2008-04-13  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/localcharset.c (OS2): Don't redefine if already defined.
41422         Reported by Elbert Pol <e.pol@chello.nl>.
41423
41424 2008-04-13  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/binary-io.h [__EMX__]: Include <io.h>.
41427         Reported by Elbert Pol <e.pol@chello.nl>.
41428
41429 2008-04-12  Bruno Haible  <bruno@clisp.org>
41430
41431         * lib/fpucw.h: Enable the definitions also for x86_64.
41432         Needed for NetBSD/x86_64.
41433         Reported by Thomas Klausner <tk@giga.or.at>.
41434
41435 2008-04-12  Bruno Haible  <bruno@clisp.org>
41436
41437         * tests/test-strtod.c: Include isnand.h.
41438         (main): Use isnand instead of isnan.
41439         Reported by Jim Meyering.
41440
41441 2008-04-12  Bruno Haible  <bruno@clisp.org>
41442
41443         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41444         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41445
41446 2008-04-12  Jim Meyering  <meyering@redhat.com>
41447
41448         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41449
41450 2008-04-12  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41453         Reported by Elbert Pol <e.pol@chello.nl>.
41454
41455 2008-04-12  Eric Blake  <ebb9@byu.net>
41456
41457         Work around Solaris 10 math.h bug.
41458         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41459         (gl_MATH_H_DEFAULTS): Set up default.
41460         * modules/math (Makefile.am): Replace new indicators.
41461         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41462         * tests/test-math.c (main): Test this.
41463         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41464         * doc/posix-headers/math.texi (math.h): Mention bug.
41465         Reported by Nelson H. F. Beebe and Jim Meyering.
41466
41467 2008-04-11  Bruno Haible  <bruno@clisp.org>
41468
41469         Adapt to future versions of Apple GCC.
41470         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41471         Reported by Peter O'Gorman <peter@pogma.com>.
41472
41473 2008-04-11  Bruno Haible  <bruno@clisp.org>
41474
41475         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41476
41477 2008-04-11  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41480
41481         * modules/getaddrinfo-tests (Makefile.am): Define
41482         test_getaddrinfo_LDADD.
41483
41484 2008-04-11  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41487         (init): Fix syntax error.
41488         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41489         is declared.
41490
41491 2008-04-11  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41494         * modules/glob (Depends-on): Add stdbool.
41495
41496 2008-04-11  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/trim.c: Include <string.h>.
41499
41500 2008-04-11  Eric Blake  <ebb9@byu.net>
41501
41502         Avoid compile failure on OS/2.
41503         * lib/regex_internal.h (internal_function): Disable optimization
41504         on OS/2 (__EMX__), where it caused compiler error.
41505         Reported by Elbert Pol.
41506
41507 2008-04-11  Bruno Haible  <bruno@clisp.org>
41508
41509         Flush the standard error stream before aborting. Needed on mingw.
41510         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41511         * tests/test-array_list.c (ASSERT): Likewise.
41512         * tests/test-array_oset.c (ASSERT): Likewise.
41513         * tests/test-avltree_list.c (ASSERT): Likewise.
41514         * tests/test-avltree_oset.c (ASSERT): Likewise.
41515         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41516         * tests/test-binary-io.c (ASSERT): Likewise.
41517         * tests/test-byteswap.c (ASSERT): Likewise.
41518         * tests/test-c-ctype.c (ASSERT): Likewise.
41519         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41520         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41521         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41522         * tests/test-c-strstr.c (ASSERT): Likewise.
41523         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41524         * tests/test-canonicalize.c (ASSERT): Likewise.
41525         * tests/test-carray_list.c (ASSERT): Likewise.
41526         * tests/test-ceilf1.c (ASSERT): Likewise.
41527         * tests/test-ceilf2.c (ASSERT): Likewise.
41528         * tests/test-ceill.c (ASSERT): Likewise.
41529         * tests/test-count-one-bits.c (ASSERT): Likewise.
41530         * tests/test-fbufmode.c (ASSERT): Likewise.
41531         * tests/test-fflush2.c (ASSERT): Likewise.
41532         * tests/test-floorf1.c (ASSERT): Likewise.
41533         * tests/test-floorf2.c (ASSERT): Likewise.
41534         * tests/test-floorl.c (ASSERT): Likewise.
41535         * tests/test-fopen.c (ASSERT): Likewise.
41536         * tests/test-fpending.c (ASSERT): Likewise.
41537         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41538         * tests/test-fpurge.c (ASSERT): Likewise.
41539         * tests/test-freadable.c (ASSERT): Likewise.
41540         * tests/test-freadahead.c (ASSERT): Likewise.
41541         * tests/test-freading.c (ASSERT): Likewise.
41542         * tests/test-freadptr.c (ASSERT): Likewise.
41543         * tests/test-freadptr2.c (ASSERT): Likewise.
41544         * tests/test-freadseek.c (ASSERT): Likewise.
41545         * tests/test-freopen.c (ASSERT): Likewise.
41546         * tests/test-frexp.c (ASSERT): Likewise.
41547         * tests/test-frexpl.c (ASSERT): Likewise.
41548         * tests/test-fseek.c (ASSERT): Likewise.
41549         * tests/test-fseeko.c (ASSERT): Likewise.
41550         * tests/test-fstrcmp.c (ASSERT): Likewise.
41551         * tests/test-ftell.c (ASSERT): Likewise.
41552         * tests/test-ftello.c (ASSERT): Likewise.
41553         * tests/test-func.c (ASSERT): Likewise.
41554         * tests/test-fwritable.c (ASSERT): Likewise.
41555         * tests/test-fwriting.c (ASSERT): Likewise.
41556         * tests/test-getdelim.c (ASSERT): Likewise.
41557         * tests/test-getline.c (ASSERT): Likewise.
41558         * tests/test-i-ring.c (ASSERT): Likewise.
41559         * tests/test-iconv-utf.c (ASSERT): Likewise.
41560         * tests/test-iconv.c (ASSERT): Likewise.
41561         * tests/test-isfinite.c (ASSERT): Likewise.
41562         * tests/test-isnand.c (ASSERT): Likewise.
41563         * tests/test-isnanf.c (ASSERT): Likewise.
41564         * tests/test-isnanl.h (ASSERT): Likewise.
41565         * tests/test-ldexpl.c (ASSERT): Likewise.
41566         * tests/test-linked_list.c (ASSERT): Likewise.
41567         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41568         * tests/test-localename.c (ASSERT): Likewise.
41569         * tests/test-lseek.c (ASSERT): Likewise.
41570         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41571         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41572         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41573         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41574         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41575         * tests/test-mbschr.c (ASSERT): Likewise.
41576         * tests/test-mbscspn.c (ASSERT): Likewise.
41577         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41578         * tests/test-mbspbrk.c (ASSERT): Likewise.
41579         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41580         * tests/test-mbsrchr.c (ASSERT): Likewise.
41581         * tests/test-mbsspn.c (ASSERT): Likewise.
41582         * tests/test-mbsstr1.c (ASSERT): Likewise.
41583         * tests/test-mbsstr2.c (ASSERT): Likewise.
41584         * tests/test-mbsstr3.c (ASSERT): Likewise.
41585         * tests/test-memchr2.c (ASSERT): Likewise.
41586         * tests/test-memmem.c (ASSERT): Likewise.
41587         * tests/test-open.c (ASSERT): Likewise.
41588         * tests/test-printf-frexp.c (ASSERT): Likewise.
41589         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41590         * tests/test-printf-posix.c (ASSERT): Likewise.
41591         * tests/test-quotearg.c (ASSERT): Likewise.
41592         * tests/test-rbtree_list.c (ASSERT): Likewise.
41593         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41594         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41595         * tests/test-round1.c (ASSERT): Likewise.
41596         * tests/test-roundf1.c (ASSERT): Likewise.
41597         * tests/test-roundl.c (ASSERT): Likewise.
41598         * tests/test-signbit.c (ASSERT): Likewise.
41599         * tests/test-sleep.c (ASSERT): Likewise.
41600         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41601         * tests/test-snprintf.c (ASSERT): Likewise.
41602         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41603         * tests/test-stat-time.c (ASSERT): Likewise.
41604         * tests/test-strcasestr.c (ASSERT): Likewise.
41605         * tests/test-strerror.c (ASSERT): Likewise.
41606         * tests/test-striconv.c (ASSERT): Likewise.
41607         * tests/test-striconveh.c (ASSERT): Likewise.
41608         * tests/test-striconveha.c (ASSERT): Likewise.
41609         * tests/test-strsignal.c (ASSERT): Likewise.
41610         * tests/test-strstr.c (ASSERT): Likewise.
41611         * tests/test-strtod.c (ASSERT): Likewise.
41612         * tests/test-trunc1.c (ASSERT): Likewise.
41613         * tests/test-trunc2.c (ASSERT): Likewise.
41614         * tests/test-truncf1.c (ASSERT): Likewise.
41615         * tests/test-truncf2.c (ASSERT): Likewise.
41616         * tests/test-truncl.c (ASSERT): Likewise.
41617         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41618         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41619         * tests/test-vasnprintf.c (ASSERT): Likewise.
41620         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41621         * tests/test-vasprintf.c (ASSERT): Likewise.
41622         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41623         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41624         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41625         * tests/test-vsnprintf.c (ASSERT): Likewise.
41626         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41627         * tests/test-wcwidth.c (ASSERT): Likewise.
41628         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41629         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41630         * tests/test-xvasprintf.c (ASSERT): Likewise.
41631         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41632         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41633         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41634         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41635         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41636         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41637         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41638         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41639         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41640         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41641         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41642         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41643         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41644         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41645         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41646         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41647         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41648         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41649         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41650         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41651         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41652         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41653         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41654         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41655         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41656         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41657         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41658         * tests/unictype/test-combining.c (ASSERT): Likewise.
41659         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41660         * tests/unictype/test-digit.c (ASSERT): Likewise.
41661         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41662         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41663         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41664         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41665         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41666         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41667         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41668         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41669         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41670         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41671         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41672         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41673         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41674         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41675         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41676         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41677         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41678         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41679         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41680         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41681         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41682         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41683         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41684         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41685         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41686         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41687         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41688         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41689         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41690         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41691         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41692         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41693         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41694         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41695         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41696         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41697         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41698         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41699         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41700         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41701         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41702         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41703         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41704         Reported by Eric Blake.
41705
41706 2008-04-11  Bruno Haible  <bruno@clisp.org>
41707
41708         * lib/wchar.in.h: Tweak comment.
41709
41710 2008-04-11  Bruno Haible  <bruno@clisp.org>
41711
41712         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41713         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41714         gl_COMMON.
41715         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41716
41717 2008-04-11  Bruno Haible  <bruno@clisp.org>
41718
41719         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41720
41721 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41722
41723         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41724         of attempting to use non-existing /dev/*random.  Based on patch
41725         from Adam Strzelecki <ono@java.pl> in
41726         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41727
41728 2008-04-08  Bruno Haible  <bruno@clisp.org>
41729
41730         Add tentative support for emx+gcc.
41731         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41732         * lib/fpurge.c (fpurge): Likewise.
41733         * lib/freadable.c (freadable): Likewise.
41734         * lib/freadahead.c (freadahead): Likewise.
41735         * lib/freading.c (freading): Likewise.
41736         * lib/freadptr.c (freadptr): Likewise.
41737         * lib/freadseek.c (freadptrinc): Likewise.
41738         * lib/fseeko.c (rpl_fseeko): Likewise.
41739         * lib/fseterr.c (fseterr): Likewise.
41740         * lib/fwritable.c (fwritable): Likewise.
41741         * lib/fwriting.c (fwriting): Likewise.
41742         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41743
41744 2008-04-09  Eric Blake  <ebb9@byu.net>
41745
41746         Avoid some autoconf warnings.
41747         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41748         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41749         * m4/afs.m4 (gl_AFS): Likewise.
41750         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41751         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41753         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41754         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41755         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41756         (AC_CHECK_DECLS_ONCE): Likewise.
41757         Rename file...
41758         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41759         gnulib-tool requires autoconf 2.59 or better.
41760         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41761
41762 2008-04-08  Eric Blake  <ebb9@byu.net>
41763
41764         Use 'git describe --match' if present (added in git 1.5.5).
41765         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41766         if possible.
41767
41768 2008-04-08  Bruno Haible  <bruno@clisp.org>
41769
41770         Add tentative support for OpenServer.
41771         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41772         _ptr, _cnt.
41773         * lib/fpurge.c (fpurge): Likewise.
41774         * lib/freadable.c (freadable): Likewise.
41775         * lib/freadahead.c (freadahead): Likewise.
41776         * lib/freading.c (freading): Likewise.
41777         * lib/freadptr.c (freadptr): Likewise.
41778         * lib/freadseek.c (freadptrinc): Likewise.
41779         * lib/fseeko.c (rpl_fseeko): Likewise.
41780         * lib/fseterr.c (fseterr): Likewise.
41781         * lib/fwritable.c (fwritable): Likewise.
41782         * lib/fwriting.c (fwriting): Likewise.
41783         Reported by Roger Cornelius <rac@tenzing.org> and
41784         Brian K. White <brian@aljex.com>.
41785
41786 2008-04-06  Jim Meyering  <meyering@redhat.com>
41787
41788         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41789
41790 2008-04-06  Bruno Haible  <bruno@clisp.org>
41791
41792         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41793         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41794         * tests/test-printf-posix.sh: Likewise.
41795         * tests/test-vfprintf-posix.sh: Likewise.
41796         * tests/test-vprintf-posix.sh: Likewise.
41797         * tests/test-xprintf-posix.sh: Likewise.
41798
41799 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41800
41801         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41802         hide error from 'ls', needed on OS/2.
41803         Report by Elbert Pol <elbert.pol@gmail.com>.
41804
41805 2008-04-04  Eric Blake  <ebb9@byu.net>
41806
41807         Make test-fseeko.c failures meaningful.
41808         * tests/test-fseeko.c: Print line number on failure.
41809         * tests/test-fseek.c: Likewise.
41810         Reported by Nelson H. F. Beebe.
41811
41812         Improve strtod bug detection check.
41813         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41814         required for Solaris 10.
41815         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41816
41817 2008-04-04  Bruno Haible  <bruno@clisp.org>
41818
41819         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41820         by m4/setenv.m4.
41821
41822 2008-04-03  Eric Blake  <ebb9@byu.net>
41823
41824         Ensure sane .version contents.
41825         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41826         version string.
41827         * build-aux/git-version-gen: Improve documentation.
41828
41829         Make GNU make output nicer.
41830         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41831         MAKECMDGOALS to enforce message for all command line targets.  Set
41832         srcdir for use in maint.mk.
41833
41834         Another maintainer tweak.
41835         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41836         a target that regenerates version.
41837
41838 2008-04-03  Jim Meyering  <meyering@redhat.com>
41839
41840         vc-list-files: don't cause coreutils "make po-check" failure
41841         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41842
41843 2008-04-03  Eric Blake  <ebb9@byu.net>
41844
41845         Allow VPATH usage of vc-list-files.
41846         * build-aux/vc-list-files (scriptversion): Add timestamp.
41847         (options): Add --help, --version, -C.
41848         (CVS): Support installed cvsu.
41849
41850 2008-04-02  Bruno Haible  <bruno@clisp.org>
41851
41852         Avoid some "statement with no effect" warnings from gcc.
41853         * tests/test-wctype.c (main): Explicitly ignore unused values.
41854         Reported by Jim Meyering.
41855
41856 2008-04-02  Jim Meyering  <meyering@redhat.com>
41857
41858         Avoid some warnings from "gcc -Wshadow".
41859         * tests/test-frexp.c (exp): Define to a different identifier.
41860         * tests/test-frexpl.c (exp): Likewise.
41861
41862 2008-04-03  Jim Meyering  <meyering@redhat.com>
41863
41864         bootstrap: remove dangling *.[ch] symlinks from lib
41865         * build-aux/bootstrap [dangling symlink removal]: Move find's
41866         -depth option to precede all others, to avoid a warning.
41867         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41868
41869 2008-04-02  Bruno Haible  <bruno@clisp.org>
41870
41871         Avoid some warnings from "gcc -Wshadow".
41872         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41873         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41874         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41875         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41876         Reported by Jim Meyering.
41877
41878 2008-04-01  Bruno Haible  <bruno@clisp.org>
41879
41880         Fix test to work on IRIX 6.5 with cc.
41881         * tests/test-math.c (numeric_equal): New function.
41882         (main): Use it.
41883
41884 2008-04-01  Bruno Haible  <bruno@clisp.org>
41885
41886         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41887
41888 2008-04-01  Bruno Haible  <bruno@clisp.org>
41889
41890         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41891         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41892         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41893         (Depends-on): Remove math.
41894
41895         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41896         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41897         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41898         (Depends-on): Remove math.
41899
41900         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41901         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41902         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41903         (Depends-on): Remove math.
41904         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41905         (Depends-on): Remove math.
41906
41907         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41908         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41909         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41910         (Depends-on): Remove math.
41911         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41912         (Depends-on): Remove math.
41913
41914         * tests/test-round1.c: Include nan.h.
41915         (main): Use NaNd instead of NAN.
41916         * modules/round-tests (Files): Add tests/nan.h.
41917
41918         * tests/test-trunc1.c: Include nan.h.
41919         (main): Use NaNd instead of NAN.
41920         * modules/trunc-tests (Files): Add tests/nan.h.
41921
41922         * tests/test-roundf1.c: Include nan.h.
41923         (main): Use NaNf instead of NAN.
41924         * modules/roundf-tests (Files): Add tests/nan.h.
41925
41926         * tests/test-truncf1.c: Include nan.h.
41927         (main): Use NaNf instead of NAN.
41928         * modules/truncf-tests (Files): Add tests/nan.h.
41929
41930         * tests/test-ceilf1.c: Include nan.h.
41931         (main): Use NaNf instead of NAN.
41932         * modules/ceilf-tests (Files): Add tests/nan.h.
41933
41934         * tests/test-floorf1.c: Include nan.h.
41935         (main): Use NaNf instead of NAN.
41936         * modules/floorf-tests (Files): Add tests/nan.h.
41937
41938         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41939         (main): Use NaNf instead of NAN.
41940         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41941
41942         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41943         (main): Use NaNd instead of NAN.
41944         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41945
41946         * tests/test-frexp.c: Include nan.h.
41947         (main): Use NaNd instead of NAN.
41948         * modules/frexp-tests (Files): Add tests/nan.h.
41949
41950         * lib/isnan.c: Don't include <math.h>.
41951         (FUNC): Don't use NAN macro.
41952         * modules/isnand-nolibm (Depends-on): Remove math.
41953         * modules/isnanf-nolibm (Depends-on): Remove math.
41954         * modules/isnanl (Depends-on): Remove math.
41955         * modules/isnanl-nolibm (Depends-on): Remove math.
41956
41957         * tests/nan.h: New file.
41958
41959 2008-04-01  Eric Blake  <ebb9@byu.net>
41960
41961         Fix typos.
41962         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41963         values to be the right type.
41964
41965         For now, cater to gnulib strtod inaccuracies.
41966         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41967         fractional results.  While not as nice from a QoI perspective, it
41968         is a quicker patch than correctly implementing decimal to binary
41969         rounding.
41970
41971 2008-03-31  Eric Blake  <ebb9@byu.net>
41972
41973         Guarantee a definition of NAN.
41974         * lib/math.in.h (NAN): Define if missing.
41975         * tests/test-math.c (main): Test it.
41976         * doc/posix-headers/math.texi (math.h): Document this.
41977         * lib/isnan.c (rpl_isnand): Use it.
41978         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41979         * tests/test-floorf1.c (NaN): Likewise.
41980         * tests/test-frexp.c (NaN): Likewise.
41981         * tests/test-isnand.c (NaN): Likewise.
41982         * tests/test-isnanf.c (NaN): Likewise.
41983         * tests/test-round1.c (NaN): Likewise.
41984         * tests/test-roundf1.c (NaN): Likewise.
41985         * tests/test-snprintf-posix.h (NaN): Likewise.
41986         * tests/test-sprintf-posix.h (NaN): Likewise.
41987         * tests/test-trunc1.c (NaN): Likewise.
41988         * tests/test-truncf1.c (NaN): Likewise.
41989         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41990         * tests/test-vasprintf-posix.c (NaN): Likewise.
41991         * modules/isnand-nolibm (Depends-on): Add math.
41992         * modules/isnanf-nolibm (Depends-on): Likewise.
41993         * modules/isnanl (Depends-on): Likewise.
41994         * modules/isnanl-nolibm (Depends-on): Likewise.
41995         * modules/snprintf-posix-tests (Depends-on): Likewise.
41996         * modules/sprintf-posix-tests (Depends-on): Likewise.
41997         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41998         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41999         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42000         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42001
42002 2008-03-31  Bruno Haible  <bruno@clisp.org>
42003
42004         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42005         * doc/posix-functions/strtod.texi: Likewise.
42006
42007 2008-03-31  Bruno Haible  <bruno@clisp.org>
42008
42009         * tests/test-strtod.c (main): Don't use C99 syntax.
42010
42011 2008-03-31  Bruno Haible  <bruno@clisp.org>
42012
42013         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42014         Reported by Eric Blake.
42015
42016 2008-03-31  Jim Meyering  <meyering@redhat.com>
42017
42018         Don't compare actual signbit return values.
42019         * tests/test-strtod.c (main): Rather, compare only their
42020         zero/non-zero nature.
42021
42022 2008-03-31  Eric Blake  <ebb9@byu.net>
42023
42024         More strtod documentation.
42025         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42026         failures as distinct bugs.
42027
42028 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42031         Problem reported by Erik Benada in
42032         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42033
42034 2008-03-30  Bruno Haible  <bruno@clisp.org>
42035
42036         * tests/test-strtod.c: Add comments about which assertion fails on which
42037         platform.
42038         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42039
42040 2008-03-30  Eric Blake  <ebb9@byu.net>
42041
42042         Test signbit behavior on zeros.
42043         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42044         (test_signbitd, test_signbitl): Likewise.
42045
42046         More strtod touchups.
42047         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42048         sign of negative underflow, for now.  Use .5, not .1.
42049         * doc/posix-functions/strtod.texi (strtod): Mention these
42050         limitations.
42051         Reported by Jim Meyering.
42052
42053 2008-03-30  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42056         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42057
42058 2008-03-30  Bruno Haible  <bruno@clisp.org>
42059
42060         Avoid failure when attempting to return empty iconv results on some
42061         platforms.
42062         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42063         allocation, don't report ENOMEM when the resulting string is empty.
42064
42065 2008-03-30  Bruno Haible  <bruno@clisp.org>
42066
42067         Fix buffer overrun.
42068         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42069         Don't consider the width for tmp_length. Check count against tmp_length
42070         before doing the padding. Ensure enough allocation during padding.
42071
42072 2008-03-30  Eric Blake  <ebb9@byu.net>
42073
42074         strtod touchups.
42075         * lib/strtod.c (strtod): Avoid compiler warnings.
42076         Reported by Jim Meyering.
42077
42078 2008-03-30  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42081         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42082         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42083         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42084         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42085         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42086         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42087         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42088
42089         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42090         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42091         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42092         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42093         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42094         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42095         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42096         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42097
42098         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42099         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42100         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42101         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42102         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42103         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42104         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42105         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42106
42107         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42108         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42109
42110         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42111         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42112
42113         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42114         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42115
42116         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42118         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42119
42120         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42122         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42123
42124         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42126         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42127
42128         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42130         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42131
42132         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42133         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42135         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42136         (Depends-on): Add EOVERFLOW.
42137         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42138         (Depends-on): Add EOVERFLOW.
42139         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42140         (Depends-on): Add EOVERFLOW.
42141         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42142         (Depends-on): Add EOVERFLOW.
42143         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42144         (Depends-on): Add EOVERFLOW.
42145         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42146         (Depends-on): Add EOVERFLOW.
42147         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42148         (Depends-on): Add EOVERFLOW.
42149         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42150         (Depends-on): Add EOVERFLOW.
42151
42152         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42154         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42155
42156         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42157         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42158         * modules/snprintf (Depends-on): Add EOVERFLOW.
42159
42160         * lib/poll.c (EOVERFLOW): Remove fallback.
42161         * modules/poll (Depends-on): Add EOVERFLOW.
42162
42163         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42164         * modules/getugroups (Depends-on): Add EOVERFLOW.
42165
42166         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42167         * modules/getdelim (Depends-on): Add EOVERFLOW.
42168
42169         * lib/ftell.c (EOVERFLOW): Remove fallback.
42170         * modules/ftell (Depends-on): Add EOVERFLOW.
42171
42172         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42174         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42175
42176         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42177
42178         * modules/EOVERFLOW-tests: New file.
42179         * tests/test-EOVERFLOW.c: New file.
42180
42181         * modules/EOVERFLOW: New file.
42182         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42183
42184 2008-03-30  Bruno Haible  <bruno@clisp.org>
42185
42186         Fix bug introduced on 2007-06-10.
42187         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42188         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42189
42190 2008-03-30  Bruno Haible  <bruno@clisp.org>
42191
42192         Improve freadseek's efficiency after ungetc.
42193         * lib/freadseek.c: Include freadahead.h.
42194         (freadptrinc): New function, extracted from freadseek.
42195         (freadseek): Use it in a loop. Use freadahead to determine the number
42196         of loop iterations.
42197         * modules/freadseek (Depends-on): Add freadahead.
42198         (configure.ac): Require AC_C_INLINE.
42199
42200 2008-03-30  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/freadseek.c (freadseek): Don't ignore the return value of
42203         freadptr.
42204
42205 2008-03-29  Eric Blake  <ebb9@byu.net>
42206
42207         Add hex float support.
42208         * modules/strtod (Depends-on): Add c-ctype.
42209         (Link): Mention POW_LIB.
42210         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42211         whitespace between 'e' and exponent.
42212         * tests/test-strtod.c (main): Enable hex float tests.
42213         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42214         now provides.
42215
42216         Document various strtod bugs, with some fixes.
42217         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42218         "-0x", "inf", "nan", and hex constants.
42219         * doc/posix-functions/atof.texi (atof): Likewise.
42220         * modules/stdlib (Makefile.am): Support strtod.
42221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42222         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42223         detect additional strtod bugs.
42224         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42225         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42226         bool where appropriate.  Parse 'inf' and 'nan'.
42227         * tests/test-strtod.c: New file.
42228         * modules/strtod (Depends-on): Add stdbool, stdlib.
42229         (configure.ac): Turn on module indicator.
42230         * modules/strtod-tests: New module.
42231
42232 2008-03-29  Eric Blake  <ebb9@byu.net>
42233
42234         Fix ftell on mingw.
42235         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42236         * modules/ftell-tests (Depends-on): Add binary-io.
42237         * modules/ftello-tests (Depends-on): Likewise.
42238         * tests/test-ftell.c (main): Enhance test to cover behavior after
42239         ungetc.  Enforce binary mode.
42240         * tests/test-ftello.c (main): Likewise.
42241
42242         Pass test-freadseek on cygwin.
42243         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42244         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42245         ungetc buffer.
42246
42247         * tests/test-fflush2.c (main): Fix typo.
42248
42249 2008-03-29  Bruno Haible  <bruno@clisp.org>
42250
42251         * tests/test-fflush2.c (main): Temporarily disable the contents of
42252         this test.
42253         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42254         Reported by Eric Blake.
42255
42256 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42257
42258         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42259         (GC_SHA224_DIGEST_SIZE): Add.
42260
42261         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42262         (gc_hash_digest_length): Likewise.
42263         (gc_hash_buffer): Likewise.
42264
42265 2008-03-25  Bruno Haible  <bruno@clisp.org>
42266
42267         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42268         detail which gettext release to use.
42269         Reported by Simon Josefsson.
42270
42271 2008-03-26  Jim Meyering  <meyering@redhat.com>
42272
42273         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42274         * modules/gnumakefile (clean-GNUmakefile): Also, use
42275         test ... && ... || : syntax rather than if-then ... fi.
42276
42277         gnumakefile: Don't double-quote-expand $(VPATH) value.
42278         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42279
42280 2008-03-24  Eric Blake  <ebb9@byu.net>
42281
42282         Alter GNUmakefile to install into top directory.
42283         * modules/maintainer-makefile: Split, and add dependency...
42284         * modules/gnumakefile: to this new module.
42285         * build-aux/GNUmakefile: Move...
42286         * top/GNUmakefile: ...here.
42287         * build-aux/maint.mk: Move...
42288         * top/maint.mk: ...here.
42289         * MODULES.html.sh (Support for maintaining...): Document new
42290         module.
42291
42292 2008-03-23  Bruno Haible  <bruno@clisp.org>
42293
42294         * gnulib-tool: New options --vc-files, --no-vc-files.
42295         (func_usage): Document them.
42296         (vc_files): New variable.
42297         (func_import): Consider vc_files.
42298         (func_create_testdir): Set vc_files to empty.
42299         Suggested by Jim Meyering and Karl Berry.
42300
42301 2008-03-23  Bruno Haible  <bruno@clisp.org>
42302
42303         Fix regex compilation error on HP-UX 11.
42304         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42305         * modules/regex (Files): Add m4/mbstate_t.m4.
42306         Reported by Ton Voon <ton.voon@altinity.com>.
42307
42308 2008-03-23  Bruno Haible  <bruno@clisp.org>
42309
42310         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42311
42312 2008-03-23  Eric Blake  <ebb9@byu.net>
42313             Bruno Haible  <bruno@clisp.org>
42314
42315         Install files from top/ in the destination directory.
42316         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42317         augmentation also for the files from top/.
42318         (func_import, func_create_testdir): Rewrite file names:
42319         top/filename -> filename.
42320
42321 2008-03-23  Bruno Haible  <bruno@clisp.org>
42322
42323         Tweak "gnulib --version" output.
42324         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42325
42326 2008-03-23  Bruno Haible  <bruno@clisp.org>
42327
42328         Tweak "gnulib --version" output.
42329         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42330         rather than contents of ChangeLog, when possible.
42331
42332 2008-03-21  Eric Blake  <ebb9@byu.net>
42333
42334         More --version tweaks.
42335         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42336         date of last ChangeLog entry.
42337
42338 2008-03-21  Jim Meyering  <meyering@redhat.com>
42339
42340         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42341
42342 2008-03-20  Eric Blake  <ebb9@byu.net>
42343
42344         VPATH fix.
42345         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42346
42347 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42348
42349         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42350         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42351
42352 2008-03-20  Eric Blake  <ebb9@byu.net>
42353
42354         Sync GNUmakefile with coreutils.
42355         * build-aux/GNUmakefile (have-Makefile): Rename...
42356         (_have-Makefile): ...to this, for namespace consideration.
42357         (GNUmakefile.cfg): Include, if present.
42358         (_autoreconf): Define a default.
42359         (_is-dist-target): New rule for rebuilds to pick up intra-release
42360         version.
42361         (maint-cfg.mk): Rename...
42362         (cfg.mk): ...to this.
42363
42364 2008-03-18  Jim Meyering  <meyering@redhat.com>
42365
42366         New script and module: mktempd
42367         * MODULES.html.sh (maint+release support): Add mktempd.
42368         * build-aux/mktempd: New file.
42369         * modules/mktempd: New file.
42370
42371 2008-03-15  Jim Meyering  <meyering@redhat.com>
42372
42373         Undo last change.
42374         * lib/sha1.c, lib/md5.c: 63 != ~63.
42375         Reported by Andreas Schwab.
42376
42377         sha1.c, md5.c: Hoist a redundant expression.
42378         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42379         "ctx->buflen" only once, before calling *_process_block.
42380         * lib/md5.c (md5_process_bytes): Likewise.
42381
42382 2008-03-14  Eric Blake  <ebb9@byu.net>
42383
42384         Bump copyright year in files generated by gnulib-tool.
42385         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42386         gnulib-tool, rather than hard-coding it.
42387
42388         Fix 'gnulib-tool --version' output to work with git.
42389         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42390         (startup): ...here.
42391         (func_version): Use it to invoke git-version-gen, rather than
42392         relying on CVS keyword expansion.  Modernize wording.
42393         (cvsdatestamp, last_checkin_date, version): Kill unused
42394         variables.
42395
42396 2008-03-12  Jim Meyering  <meyering@redhat.com>
42397
42398         Recognize optional cast of the argument to free.
42399         * build-aux/useless-if-before-free: Update regexps.
42400
42401         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42402
42403 2008-03-11  Bruno Haible  <bruno@clisp.org>
42404
42405         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42406         by a single package.
42407         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42408         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42409         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42410         Reported by Sam Steingold <sds@gnu.org>.
42411
42412 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42413
42414         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42415         repositories.
42416
42417 2008-03-11  Bruno Haible  <bruno@clisp.org>
42418
42419         Avoid conflicts between local macro definitions.
42420         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42421         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42422
42423 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42424             Bruno Haible  <bruno@clisp.org>
42425
42426         Make va_copy work with some version of xlc on AIX 5.1.
42427         * lib/stdarg.in.h: New file.
42428         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42429         On AIX, use a <stdarg.h> file substitute.
42430         * modules/stdarg (Files): Add lib/stdarg.in.h.
42431         (Depends-on): Add include_next.
42432         (Makefile.am): Build a stdarg.h substitute if requested.
42433         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42434
42435 2008-03-10  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42439         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42440
42441 2008-03-10  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/stdlib (Depends-on): Add include_next, remove
42444         absolute-header.
42445
42446 2008-03-09  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/freadahead.h (freadahead): Document more precisely.
42449         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42450         the sum of both buffer sizes.
42451         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42452         * NEWS: Document the change.
42453
42454 2008-03-09  Bruno Haible  <bruno@clisp.org>
42455
42456         Extend freadptr to return also the buffer size.
42457         * lib/freadptr.h (freadptr): Add sizep argument.
42458         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42459         (freadptr): Add sizep argument. Determine buffer size like freadahead
42460         does.
42461         * tests/test-freadptr.c: Don't include freadahead.h.
42462         (main): Adapt for new calling convention of freadptr.
42463         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42464         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42465         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42466         tests/test-freadptr2.sh.
42467         (Depends): Remove freadahead.
42468         (TESTS): Add test-freadptr2.sh.
42469         (check_PROGRAMS): Add test-freadptr2.
42470
42471 2008-03-09  Bruno Haible  <bruno@clisp.org>
42472
42473         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42474         Report and solution by Simon Josefsson.
42475
42476 2008-03-06  Bruno Haible  <bruno@clisp.org>
42477
42478         Make fflush after ungetc work on BSD platforms.
42479         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42480         * tests/test-fflush2.c: New file.
42481         * tests/test-fflush2.sh: New file.
42482         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42483         tests/test-fflush2.c.
42484         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42485         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42486
42487 2008-03-06  Eric Blake  <ebb9@byu.net>
42488
42489         Likewise for ftello.
42490         * modules/ftello (Dependencies): Add extensions.
42491         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42492
42493 2008-03-06  Bruno Haible  <bruno@clisp.org>
42494
42495         * modules/fseeko (Dependencies): Add extensions.
42496         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42497         Needed on glibc systems.
42498
42499 2008-03-06  Bruno Haible  <bruno@clisp.org>
42500
42501         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42502         email address.
42503         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42504
42505 2008-03-06  Bruno Haible  <bruno@clisp.org>
42506
42507         * users.txt: Add libgnupdf.
42508
42509 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42510
42511         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42512         (Header File Substitutes, Function Substitutes,
42513         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42514         (Build robot for gnulib): Fix typo.
42515
42516 2008-03-06  Bruno Haible  <bruno@clisp.org>
42517
42518         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42519         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42520
42521 2008-03-06  Bruno Haible  <bruno@clisp.org>
42522
42523         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42524         * doc/gnulib.texi: Include it.
42525
42526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42527
42528         * modules/func (License): Change license to unlimited; there was
42529         no LGPL parts in the module anyway.
42530
42531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42532
42533         * modules/__func__: Renamed to modules/func.
42534         * modules/__func__-tests: Renamed to modules/func-tests.
42535         * tests/test-__func__.c: Renamed to tests/test-func.c.
42536         * m4/__func__.m4: Renamed to m4/func.m4.
42537         * doc/gnulib.texi (__func__): Section renamed to func.
42538         Suggested by Eric Blake <ebb9@byu.net>.
42539
42540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42541
42542         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42543         about __func__.  Make example self-contained.  Suggested by Eric
42544         Blake <ebb9@byu.net>.
42545
42546         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42547         Suggested by Eric Blake <ebb9@byu.net>.
42548
42549 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42550
42551         * modules/__func__: New file.
42552         * modules/__func__-tests: New file.
42553         * tests/test-__func__.c: New file.
42554         * m4/__func__.m4: New file.
42555         * doc/gnulib.texi (__func__): Document __func__ module.
42556
42557 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42558
42559         * modules/byteswap (License): Re-license as LGPLv2+.
42560
42561 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42562
42563         * doc/Makefile: Add pdf target.
42564
42565 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42566
42567         * modules/inline (License): Use 'unlimited', since there are only
42568         *.m4 files in this module.
42569
42570 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42571             Bruno Haible  <bruno@clisp.org>
42572
42573         Add support for HP C 7.1 on OpenVMS 8.3.
42574         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42575
42576 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42577
42578         Update VMS specifics.
42579         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42580
42581 2008-03-02  Jim Meyering  <meyering@redhat.com>
42582
42583         Remove the last dependency on the "free" module.
42584         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42585         Reported by Bob Proulx.
42586
42587         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42588
42589         Remove useless "if" tests before free.  Deprecate "free" module.
42590         * doc/posix-functions/free.texi: Mention that this
42591         module is no longer useful.
42592         * modules/free (Notice): Say this module is obsolete.
42593         * modules/readutmp (Depends-on): Remove free.
42594         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42595         * lib/putenv.c (putenv): Likewise.
42596         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42597         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42598         * tests/test-c-strcasestr.c (main): Likewise.
42599         * tests/test-c-strstr.c (main): Likewise.
42600         * tests/test-mbscasestr1.c (main): Likewise.
42601         * tests/test-mbscasestr2.c (main): Likewise.
42602         * tests/test-mbsstr1.c (main): Likewise.
42603         * tests/test-mbsstr2.c (main): Likewise.
42604         * tests/test-memmem.c (main): Likewise.
42605         * tests/test-strcasestr.c (main): Likewise.
42606         * tests/test-striconv.c (main): Likewise.
42607         * tests/test-striconveh.c (main): Likewise.
42608         * tests/test-striconveha.c (main): Likewise.
42609         * tests/test-strstr.c (main): Likewise.
42610
42611         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42612
42613         bootstrap: sync from coreutils again
42614         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42615
42616 2008-03-01  Jim Meyering  <meyering@redhat.com>
42617
42618         bootstrap: sync from coreutils
42619         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42620         also when the target doesn't exist.
42621
42622 2008-03-01  Eric Blake  <ebb9@byu.net>
42623
42624         Fix bugs in last patch.
42625         * lib/memchr2.c (memchr2): Fix typo.
42626         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42627         extension.
42628         Reported by Bruce Korb.
42629
42630         New module 'memchr2'.
42631         * modules/memchr2: New file.
42632         * modules/memchr2-tests: Likewise.
42633         * lib/memchr2.h: Likewise.
42634         * lib/memchr2.c: Likewise, based on memchr.c.
42635         * tests/test-memchr2.c: New test.
42636         * MODULES.html.sh (String handling): Add memchr2.
42637
42638 2008-02-29  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/freadseek-tests: New file.
42641         * tests/test-freadseek.sh: New file.
42642         * tests/test-freadseek.c: New file.
42643
42644         New module 'freadseek'.
42645         * modules/freadseek: New file.
42646         * lib/freadseek.h: New file.
42647         * lib/freadseek.c: New file.
42648         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42649
42650 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42651
42652         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42653         wydawca.
42654
42655         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42656         program_invocation_name and program_invocation_short_name are
42657         present.
42658
42659 2008-02-28  Bruno Haible  <bruno@clisp.org>
42660
42661         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42662         * tests/test-freadptr.sh: Also test non-seekable stdin.
42663
42664 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42665
42666         * build-aux/bootstrap (source_base, m4_base)
42667         (doc_base, tests_base): New variables.
42668         (gnulib_tool_options): Do not hardcode base directories, use
42669         the above variables instead.
42670
42671 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42672
42673         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42674
42675 2008-02-28  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/freadptr-tests: New file.
42678         * tests/test-freadptr.sh: New file.
42679         * tests/test-freadptr.c: New file.
42680
42681         New module 'freadptr'.
42682         * modules/freadptr: New file.
42683         * lib/freadptr.h: New file.
42684         * lib/freadptr.c: New file.
42685         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42686
42687 2008-02-26  Karl Berry  <karl@freefriends.org>
42688
42689         Sync from Libtool:
42690         * libltdl/argz.c (argz_add, argz_count): New functions.
42691         * libltdl/argz.in.h: Declare them.
42692         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42693
42694 2008-02-22  Bruno Haible  <bruno@clisp.org>
42695
42696         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42697         is a pointer type.  Needed for HP-UX 10.
42698         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42699         * doc/posix-functions/gmtime_r.texi: Likewise.
42700         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42701
42702 2008-02-24  Bruno Haible  <bruno@clisp.org>
42703
42704         * modules/environ-tests: New file.
42705         * tests/test-environ.c: New file.
42706
42707         New module 'environ'.
42708         * modules/environ: New file.
42709         * lib/unistd.in.h (environ): New declaration.
42710         * m4/environ.m4: New file.
42711         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42712         after use.
42713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42714         HAVE_DECL_ENVIRON.
42715         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42716         HAVE_DECL_ENVIRON.
42717         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42718         wrong claim that 'environ' is missing on some systems.
42719         * modules/execute (Depends-on): Add environ.
42720         * lib/execute.c (environ): Remove fallback declaration.
42721         * modules/pipe (Depends-on): Add environ.
42722         * lib/pipe.c (environ): Remove fallback declaration.
42723         * modules/setenv (Depends-on): Add environ.
42724         * lib/setenv.c (environ): Remove fallback declaration.
42725         * modules/unsetenv (Depends-on): Add environ.
42726         * lib/unsetenv.c (environ): Remove fallback declaration.
42727         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42728         m4/environ.m4.
42729         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42730         (gl_PREREQ_UNSETENV): Likewise.
42731
42732 2008-02-24  Bruno Haible  <bruno@clisp.org>
42733
42734         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42735
42736 2008-02-20  Bob Proulx  <bob@proulx.com>
42737
42738         Enable use of older two part flavor 'git describe'.
42739         * build-aux/git-version-gen: If using the older two part flavor of
42740         git version then recreate the third part now present in the
42741         newer three part flavor of git describe.
42742
42743 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42744
42745         * lib/fts.c (fts_build): Typo correction to comment.
42746
42747 2008-02-17  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42750         generating no-op conflicts.
42751
42752 2008-02-17  Bruno Haible  <bruno@clisp.org>
42753
42754         Speed up by 10%.
42755         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42756         result_entries, rather than an index-based loop.
42757
42758 2008-02-17  Bruno Haible  <bruno@clisp.org>
42759
42760         Speed up by 25%.
42761         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42762         'hashcode_cached'.
42763         (entry_create): New function.
42764         (entry_hashcode): Use the cached hashcode if possible.
42765         (read_changelog_file, try_split_merged_entry): Use entry_create.
42766
42767 2008-02-17  Bruno Haible  <bruno@clisp.org>
42768
42769         Speed up from O(n^2) to O(n) for long ChangeLog files.
42770         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42771         (read_changelog_file): Change implementation of entries_reversed list
42772         to rbtreehash.
42773         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42774
42775 2008-02-17  Bruno Haible  <bruno@clisp.org>
42776
42777         New option --split-merged-entry.
42778         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42779         (find_paragraph_end, try_split_merged_entry): New functions.
42780         (long_options): Add option --split-merged-entry.
42781         (usage): Document option --split-merged-entry.
42782         (main): Implement option --split-merged-entry.
42783         Reported by Eric Blake.
42784
42785 2008-02-17  Bruno Haible  <bruno@clisp.org>
42786
42787         * lib/git-merge-changelog.c: Include c-strstr.h.
42788         (main): Support the "git pull --rebase" situation.
42789         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42790         Reported by Eric Blake.
42791
42792 2008-02-16  Eric Blake  <ebb9@byu.net>
42793
42794         Avoid doubling \ in common case of "c-maybe" quoting style.
42795         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42796         eliding outer quotes.
42797         * lib/quotearg.h: Document this.
42798         * tests/test-quotearg.c (result_strings, inputs, results_g)
42799         (flag_results, locale_results): Test it by adding a new string to
42800         each test group.
42801         (compare_strings): Test new string.
42802
42803 2008-02-13  Eric Blake  <ebb9@byu.net>
42804
42805         Avoid trigraph quoting in default output.
42806         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42807         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42808         unless explicitly requested.
42809         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42810
42811 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42812
42813         Don't rely on signed integer overflowing to negative value.
42814         * lib/getugroups.c (getugroups): Include <limits.h>.
42815         Instead, compare against INT_MAX, and increment only if the test passes.
42816
42817 2008-02-13  Jim Meyering  <meyering@redhat.com>
42818         and Eric Blake  <ebb9@byu.net>
42819
42820         Avoid shadowing warning and compile errors on Linux.
42821         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42822         forwarding macros on Linux.
42823         (dcgettext): Define a stub, for Linux.
42824         (results_g, main): Avoid warnings.
42825
42826 2008-02-12  Eric Blake  <ebb9@byu.net>
42827
42828         Silence warning in last patch.
42829         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42830
42831         Quotearg part 4: add tests, fix c-maybe colon quoting.
42832         * lib/quotearg.h: Improve documentation.
42833         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42834         escapes when adding outer quotes.  When quoting trigraphs, use
42835         valid C notation.  When quoting NUL, omit extra characters if next
42836         character is not digit.  Alter prototype.
42837         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42838         callers.
42839         * modules/quotearg-tests: New module.
42840         * tests/test-quotearg.c: New test.
42841
42842 2008-02-07  Eric Blake  <ebb9@byu.net>
42843
42844         Quotearg part 3: add flag to control outer quote elision.
42845         * lib/quotearg.h (c_maybe_quoting_style): New style.
42846         (enum quoting_flags): Better documentation of flags.
42847         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42848         c-maybe style.
42849         (quotearg_buffer_restyled): Handle new flag to elide outer
42850         quotes.
42851
42852         Quotearg part 2: add flag that can control NUL elision.
42853         * lib/quotearg.h (set_quoting_flags): New prototype.
42854         * lib/quotearg.c (struct quoting_options): Add flag field.
42855         (set_quoting_flags): New function.
42856         (quotearg_buffer_restyled): Add flags parameter.
42857         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42858         (quotearg_n_options): Set the flag, since length cannot be
42859         returned.
42860         (quoting_options_from_style): Default flags correctly.
42861
42862         Quotearg part 1: more wrappers, restore quotearg_char state.
42863         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42864         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42865         (quotearg_colon_mem): New wrappers.
42866         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42867         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42868         functions.
42869         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42870         (quotearg_colon_mem): New functions.
42871
42872 2008-02-11  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42875         library in the current directory: it does not work with parallel make.
42876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42877
42878 2008-02-11  Bruno Haible  <bruno@clisp.org>
42879
42880         * .gitattributes: New file.
42881
42882 2008-02-11  Jim Meyering  <meyering@redhat.com>
42883
42884         useless-if-before-free: Fix reversed exit values.
42885         * build-aux/useless-if-before-free: Use correct values
42886         for EXIT_MATCH and EXIT_NO_MATCH.
42887
42888         * build-aux/useless-if-before-free: Close stdout carefully.
42889
42890 2008-02-10  Bruno Haible  <bruno@clisp.org>
42891
42892         New module 'git-merge-changelog'.
42893         * modules/git-merge-changelog: New file.
42894         * lib/git-merge-changelog.c: New file.
42895
42896 2008-02-10  Jim Meyering  <meyering@redhat.com>
42897
42898         useless-if-before-free: New option: --list (-l).
42899
42900         useless-if-before-free: Don't exit immediately upon open failure.
42901         * build-aux/useless-if-before-free: Exit 2 for errors.
42902         Upon failure to open a file, don't exit immediately.
42903         Rather, just warn and continue with any remaining files.
42904
42905 2008-02-10  Bruno Haible  <bruno@clisp.org>
42906
42907         New abstract list operation 'node_set_value'.
42908         * lib/gl_list.h (gl_list_node_set_value): New function.
42909         (struct gl_list_implementation): New field node_set_value.
42910         * lib/gl_list.c (gl_list_node_set_value): New function.
42911         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42912         (gl_array_list_implementation): Update.
42913         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42914         (gl_carray_list_implementation): Update.
42915         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42916         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42917         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42918         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42919         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42920         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42921         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42922         Update.
42923         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42924         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42925         (gl_sublist_list_implementation): Update.
42926
42927 2008-02-10  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42930         Needed when ELEMENT is #defined to 'some_type *'.
42931
42932 2008-02-10  Jim Meyering  <meyering@redhat.com>
42933
42934         New script and module: useless-if-before-free
42935         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42936         * build-aux/useless-if-before-free: New file.
42937         * modules/useless-if-before-free: New file.
42938
42939         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42940
42941         xstrtol_error: Fix typo.
42942         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42943         s/exit_failure/exit_status/.
42944
42945 2008-02-09  Jim Meyering  <meyering@redhat.com>
42946
42947         New script and module: gitlog-to-changelog
42948         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42949         * modules/gitlog-to-changelog: New file.
42950         * build-aux/gitlog-to-changelog: New file.
42951
42952 2008-02-08  Jim Meyering  <meyering@redhat.com>
42953
42954         Avoid two "parameter unused" warnings.
42955         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42956         Mark "st" as used.
42957
42958         Use "git COMMAND", not "git-COMMAND".
42959         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42960         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42961         * build-aux/git-version-gen: Use "git status", not "git-status".
42962
42963 2008-02-07  Bruno Haible  <bruno@clisp.org>
42964
42965         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42966         Avoids a crash on Windows Vista.
42967         Reported by Adam Strzelecki <ono@java.pl> via
42968         Simon Josefsson <simon@josefsson.org>.
42969
42970 2008-02-06  Bruno Haible  <bruno@clisp.org>
42971
42972         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42973         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42974         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42976         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42978         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42979         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42987         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42988         left-adjust flag.
42989         * tests/test-snprintf-posix.h (test_function): Likewise.
42990         * tests/test-sprintf-posix.h (test_function): Likewise.
42991         * tests/test-vasprintf-posix.c (test_function): Likewise.
42992         * doc/posix-functions/fprintf.texi: Update.
42993         * doc/posix-functions/printf.texi: Update.
42994         * doc/posix-functions/snprintf.texi: Update.
42995         * doc/posix-functions/sprintf.texi: Update.
42996         * doc/posix-functions/vfprintf.texi: Update.
42997         * doc/posix-functions/vprintf.texi: Update.
42998         * doc/posix-functions/vsnprintf.texi: Update.
42999         * doc/posix-functions/vsprintf.texi: Update.
43000         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43001
43002 2008-02-06  Bruno Haible  <bruno@clisp.org>
43003
43004         Fix bug introduced on 2008-01-26.
43005         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43006
43007 2008-02-06  Bruno Haible  <bruno@clisp.org>
43008
43009         Fix bug introduced on 2007-06-10.
43010         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43011         !NEED_PRINTF_FLAG_ZERO.
43012
43013 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43014
43015         getloadavg: use libperfstat on AIX5
43016         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43017
43018 2008-02-03  Bruno Haible  <bruno@clisp.org>
43019
43020         * lib/diffseq.h: Add comments about required #includes.
43021         Reported by Michael Biggs <gnulib@doubleplum.net>.
43022
43023 2008-02-01  Bruno Haible  <bruno@clisp.org>
43024
43025         * users.txt: Add gnuit.
43026
43027 2008-01-31  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/md4.c (set_uint32): Mark as inline.
43030         * lib/md5.c (set_uint32): Likewise.
43031         * lib/sha1.c (set_uint32): Likewise.
43032         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43033         * m4/md5.m4 (gl_MD5): Likewise.
43034         * m4/sha1.m4 (gl_SHA1): Likewise.
43035
43036 2008-01-31  Jim Meyering  <meyering@redhat.com>
43037
43038         Use "sizeof VAR", rather than a literal "4".
43039         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43040         * lib/md4.c (md4_read_ctx): Likewise.
43041         * lib/sha1.c (sha1_read_ctx): Likewise.
43042
43043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43044
43045         * tests/test-sha1.c: New file, based on test-md5.c.
43046
43047         * modules/crypto/sha1-tests: New file.
43048
43049 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43050
43051         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43052
43053 2008-01-31  Jim Meyering  <meyering@redhat.com>
43054
43055         Prefer "sizeof v" over the equivalent "4".
43056         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43057         * lib/md5.c (set_uint32): Likewise.
43058         * lib/sha1.c (set_uint32): Likewise.
43059
43060 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43061
43062         * lib/sha1.c (set_uint32): Mark function as static.
43063
43064 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43065
43066         md2: clarify comments to say that alignment is not required.
43067         * lib/md2.h: Remove warning about alignment in comment.
43068         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43069         never been required.
43070
43071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43072
43073         md4: adapt alignment constraint fix from sha1.
43074         * lib/md4.c (set_uint32): New function, from sha1.c
43075         (md4_read_ctx): Use it.
43076         (md4_finish_ctx): Doc fix.
43077         * lib/md4.h: Doc fix.
43078
43079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43080
43081         md5: adapt alignment constraint fix from sha1.
43082         * lib/md5.c (set_uint32): New function, from sha1.c
43083         (md5_read_ctx): Use it.
43084         (md5_finish_ctx): Doc fix.
43085         * lib/md5.h: Doc fix.
43086
43087 2008-01-30  Peter Palfrader  <weasel@debian.org>
43088
43089         sha1: remove the result buffer alignment constraint
43090         * lib/sha1.c (set_uint32): New function.
43091         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43092         constraint.
43093         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43094         * lib/sha1.h: Likewise.
43095
43096 2008-01-30  Andreas Schwab  <schwab@suse.de>
43097             Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43100         correct definition of LDBL_MIN_EXP.
43101
43102 2008-01-30  Karl Berry  <karl@gnu.org>
43103
43104         * config/srclist-update: try to preserve x bit on updates.
43105         * config/srclistvars.sh: update for karl.
43106
43107 2008-01-29  Jim Meyering  <meyering@redhat.com>
43108
43109         vasnprintf.c: Avoid warning about unused label
43110         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43111         "overflow" label definition and associated code with the
43112         same cpp condition that guards the sole use of that label.
43113
43114 2008-01-26  Bruno Haible  <bruno@clisp.org>
43115
43116         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43117         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43118         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43119         * lib/isnanl-nolibm.h (isnanl): Likewise.
43120         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43121
43122 2008-01-26  Bruno Haible  <bruno@clisp.org>
43123
43124         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43125         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43126
43127 2008-01-26  Bruno Haible  <bruno@clisp.org>
43128
43129         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43130         GCC >= 4.0 built-in.
43131         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43132
43133 2008-01-26  Bruno Haible  <bruno@clisp.org>
43134
43135         Rename isnan, applicable to 'double' only, to isnand.
43136         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43137         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43138         (configure.ac): Update.
43139         (Include): Replace "isnan.h" with "isnand.h".
43140         * m4/isnand.m4: Renamed from m4/isnan.m4.
43141         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43142         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43143         instead of isnan.c.
43144         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43145         instead of HAVE_ISNAN_IN_LIBC.
43146         (isnand): Renamed from isnan.
43147         * lib/isnand.c: New file.
43148         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43149         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43150         (Makefile.am): Update.
43151         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43152         Include isnand.h instead of isnan.h.
43153         (main): Test isnand instead of isnan.
43154         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43155         isnan-nolibm.
43156         * modules/frexp (Depends-on): Likewise.
43157         * modules/frexp-tests (Depends-on): Likewise.
43158         * modules/frexp-nolibm (Depends-on): Likewise.
43159         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43160         * modules/isfinite (Depends-on): Likewise.
43161         * modules/round-tests (Depends-on): Likewise.
43162         * modules/signbit (Depends-on): Likewise.
43163         * modules/signbit-tests (Depends-on): Likewise.
43164         * modules/snprintf-posix (Depends-on): Likewise.
43165         * modules/sprintf-posix (Depends-on): Likewise.
43166         * modules/trunc-tests (Depends-on): Likewise.
43167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43174         * modules/vasnprintf-posix (Depends-on): Likewise.
43175         * modules/vasprintf-posix (Depends-on): Likewise.
43176         * modules/vfprintf-posix (Depends-on): Likewise.
43177         * modules/vsnprintf-posix (Depends-on): Likewise.
43178         * modules/vsprintf-posix (Depends-on): Likewise.
43179         * lib/frexp.c: Include isnand.h instead of isnan.h.
43180         (ISNAN): Set to isnand instead of isnan.
43181         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43182         (gl_isfinited): Use isnand instead of isnan.
43183         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43184         (gl_signbitd): Use isnand instead of isnan.
43185         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43186         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43187         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43188         (main): Use isnand instead of isnan.
43189         * tests/test-round1.c: Include isnand.h.
43190         (main): Use isnand instead of isnan.
43191         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43192         (ISNAN): Set to isnand instead of isnan.
43193         * tests/test-trunc1.c: Include isnand.h.
43194         (main): Use isnand instead of isnan.
43195         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43196         (equal): Use isnand instead of isnan.
43197         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43198         isnand-nolibm.
43199         * NEWS: Mention the change.
43200
43201 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43202             Bruno Haible  <bruno@clisp.org>
43203
43204         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43205         the GCC builtins for signbits are present and set
43206         REPLACE_SIGNBIT_USING_GCC if so.
43207         * lib/math.in.h (signbit): Define using GCC builtins if
43208         REPLACE_SIGNBIT_USING_GCC is set.
43209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43210         REPLACE_SIGNBIT_USING_GCC.
43211         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43212
43213 2008-01-25  Jim Meyering  <meyering@redhat.com>
43214
43215         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43216         * lib/poll.c: Include <config.h>, not "config.h".
43217         * tests/test-getaddrinfo.c: Likewise.
43218
43219 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43220
43221         * modules/sockets-tests: New file.
43222
43223 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43224
43225         * modules/sockets: New module, can be used to call WSA_Startup and
43226         WSA_Cleanup when needed.
43227
43228         * lib/sockets.h, lib/sockets.c: New files.
43229
43230         * m4/sockets.m4: New file.
43231
43232         * tests/test-sockets.c: New file.
43233
43234 2008-01-19  Bruno Haible  <bruno@clisp.org>
43235
43236         * doc/posix-headers: Renamed from doc/headers.
43237         * doc/posix-functions: Renamed from doc/functions.
43238         * doc/gnulib.texi: Update.
43239
43240 2008-01-19  Bruno Haible  <bruno@clisp.org>
43241
43242         * doc/glibc-functions/strcasestr.texi: Include contents of
43243         doc/functions/strcasestr.texi, fixing the list of platforms.
43244         * doc/functions/strcasestr.texi: Remove file.
43245
43246 2008-01-19  Bruno Haible  <bruno@clisp.org>
43247
43248         * doc/glibc-functions/memmem.texi: Include contents of
43249         doc/functions/memmem.texi.
43250         * doc/functions/memmem.texi: Remove file.
43251
43252 2008-01-18  Bruno Haible  <bruno@clisp.org>
43253
43254         * doc/glibc-functions/*.texi: New files.
43255         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43256         to use the new files.
43257
43258 2008-01-17  Bruno Haible  <bruno@clisp.org>
43259
43260         * tests/test-gethostname.c (main): Fix printf statement.
43261
43262 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43263
43264         * modules/gethostname-tests: New file.
43265
43266         * tests/test-gethostname.c: New file.
43267
43268 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43269
43270         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43271         used by the UNAME case.  Reported by Bruno Haible
43272         <bruno@clisp.org>.
43273
43274 2008-01-17  Eric Blake  <ebb9@byu.net>
43275
43276         Convert c-strcasestr to be more efficient.
43277         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43278         (Depends-on): Add c-strcase, remove malloca, strnlen.
43279         * tests/test-c-strcasestr.c (main): Enhance test.
43280         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43281
43282 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43283
43284         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43285         Use it in creating po/Makevars.
43286
43287 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43288
43289         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43290         Applications that requires it should initialize libgcrypt
43291         manually.
43292
43293 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43294
43295         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43296
43297 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         Fix problem with getdate on mingw32 reported by Simon Josefsson
43300         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43301         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43302         tzname", when deciding whether to declare tzname.
43303         * lib/strftime.c (tzname): Likewise.
43304
43305 2008-01-15  Bruno Haible  <bruno@clisp.org>
43306
43307         Work around a MacOS X 10.5 bug in frexpl().
43308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43309         * doc/functions/frexpl.texi: Document the bug.
43310         Reported by Elias Pipping <pipping@gentoo.org>.
43311
43312 2008-01-14  Eric Blake  <ebb9@byu.net>
43313
43314         Touch up previous patch.
43315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43316         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43317
43318         Convert strcasestr module to use Two-Way algorithm.
43319         * modules/strcasestr-simple: New module, based on the old
43320         strcasestr, but with Two-Way rather than KMP.
43321         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43322         * lib/string.in.h (rpl_strcasestr): Declare.
43323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43324         performance.
43325         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43326         * modules/string (Makefile.am): Support strcasestr.
43327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43328         * modules/strcasestr-tests (Depends-on): Check for alarm.
43329         * tests/test-strcasestr.c: Augment test.
43330         * lib/str-two-way.h: Clean up stray macro.
43331         * NEWS: Document new module.
43332         * MODULES.html.sh (string handling): Likewise.
43333         * doc/functions/strcasestr.texi: New file.
43334         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43335         here, since it is not a POSIX function.
43336
43337 2008-01-14  Colin Watson  <cjwatson@debian.org>
43338             Bruno Haible  <bruno@clisp.org>
43339
43340         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43341         works fine; if not, set REPLACE_STRSIGNAL.
43342         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43344         REPLACE_STRSIGNAL.
43345         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43346         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43347         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43348
43349 2008-01-14  Bruno Haible  <bruno@clisp.org>
43350
43351         * modules/strsignal (Include): Change to <string.h>.
43352
43353 2008-01-14  Colin Watson  <cjwatson@debian.org>
43354
43355         * modules/argp (Notice): Add a notice recommending to change
43356         XGETTEXT_OPTIONS.
43357         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43358
43359 2008-01-13  Colin Watson  <cjwatson@debian.org>
43360
43361         * modules/strsignal-tests: New file.
43362         * tests/test-strsignal.c: New file.
43363
43364         * lib/strsignal.c: New file, from glibc with modifications.
43365         * lib/siglist.h: New file, from glibc with modifications.
43366         * lib/string.in.h (strsignal): New declaration.
43367         * m4/strsignal.m4: New file.
43368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43369         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43370         * modules/strsignal: New file.
43371         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43372         HAVE_DECL_STRSIGNAL.
43373
43374 2008-01-13  Bruno Haible  <bruno@clisp.org>
43375
43376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43377         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43378         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43380
43381 2008-01-13  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43384         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43385         * lib/argp.h (__attribute__): Likewise.
43386         * lib/c-stack.c (__attribute__): Likewise.
43387         * lib/error.h (__attribute__): Likewise.
43388         * lib/fts.c (__attribute__): Likewise.
43389         * lib/openat.h (__attribute__): Likewise.
43390         * lib/stdio.in.h (__attribute__): Likewise.
43391         * lib/string.in.h (__attribute__): Likewise.
43392         * lib/utimens.c (__attribute__): Likewise.
43393         * lib/vasnprintf.h (__attribute__): Likewise.
43394         * lib/xalloc.h (__attribute__): Likewise.
43395         * lib/xprintf.h (__attribute__): Likewise.
43396         * lib/xstrtol.h (__attribute__): Likewise.
43397         * lib/xvasprintf.h (__attribute__): Likewise.
43398
43399 2008-01-12  Bruno Haible  <bruno@clisp.org>
43400
43401         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43402         * doc/glibc-headers/a.out.texi: New file.
43403         * doc/glibc-headers/aliases.texi: New file.
43404         * doc/glibc-headers/alloca.texi: New file.
43405         * doc/glibc-headers/ar.texi: New file.
43406         * doc/glibc-headers/argp.texi: New file.
43407         * doc/glibc-headers/argz.texi: New file.
43408         * doc/glibc-headers/byteswap.texi: New file.
43409         * doc/glibc-headers/crypt.texi: New file.
43410         * doc/glibc-headers/endian.texi: New file.
43411         * doc/glibc-headers/envz.texi: New file.
43412         * doc/glibc-headers/err.texi: New file.
43413         * doc/glibc-headers/error.texi: New file.
43414         * doc/glibc-headers/execinfo.texi: New file.
43415         * doc/glibc-headers/fpu_control.texi: New file.
43416         * doc/glibc-headers/fstab.texi: New file.
43417         * doc/glibc-headers/fts.texi: New file.
43418         * doc/glibc-headers/getopt.texi: New file.
43419         * doc/glibc-headers/ieee754.texi: New file.
43420         * doc/glibc-headers/ifaddrs.texi: New file.
43421         * doc/glibc-headers/libintl.texi: New file.
43422         * doc/glibc-headers/mcheck.texi: New file.
43423         * doc/glibc-headers/mntent.texi: New file.
43424         * doc/glibc-headers/obstack.texi: New file.
43425         * doc/glibc-headers/paths.texi: New file.
43426         * doc/glibc-headers/printf.texi: New file.
43427         * doc/glibc-headers/pty.texi: New file.
43428         * doc/glibc-headers/resolv.texi: New file.
43429         * doc/glibc-headers/shadow.texi: New file.
43430         * doc/glibc-headers/sysexits.texi: New file.
43431         * doc/glibc-headers/ttyent.texi: New file.
43432
43433 2008-01-12  Jim Meyering  <meyering@redhat.com>
43434
43435         announce-gen: emit Gnulib's git-based version string.
43436         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43437         New option --gnulib-version=V, where V is expected to be
43438         the output of running git describe in the gnulib directory.
43439         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43440         not useful, and plan to stop publishing an xdelta file with each
43441         coreutils release.
43442
43443         * build-aux/announce-gen: Also check for lzma-compressed files.
43444
43445 2008-01-11  Bruno Haible  <bruno@clisp.org>
43446
43447         * tests/test-memmem.c (main): Increase maximum allowed time.
43448         * tests/test-strstr.c (main): Likewise.
43449
43450 2008-01-11  Bruno Haible  <bruno@clisp.org>
43451
43452         * doc/functions/memmem.texi: Add more precisions about platforms.
43453         * doc/functions/strstr.texi: Likewise.
43454
43455 2008-01-10  Eric Blake  <ebb9@byu.net>
43456
43457         * m4/strstr.m4: Delete cruft from copy-n-paste.
43458         Reported by Bruno Haible.
43459
43460 2008-01-10  Bruno Haible  <bruno@clisp.org>
43461
43462         Make c-strstr rely on strstr.
43463         * lib/c-strstr.c: Don't include str-kmp.h.
43464         (c_strstr): Define in terms of strstr.
43465         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43466         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43467
43468 2008-01-10  Bruno Haible  <bruno@clisp.org>
43469
43470         * doc/gnulib.texi (String Functions in C Locale): New section.
43471         * doc/c-ctype.texi: New file.
43472         * doc/c-strcase.texi: New file.
43473         * doc/c-strcaseeq.texi: New file.
43474         * doc/c-strcasestr.texi: New file.
43475         * doc/c-strstr.texi: New file.
43476         * doc/c-strtod.texi: New file.
43477         * doc/c-strtold.texi: New file.
43478
43479 2008-01-10  Eric Blake  <ebb9@byu.net>
43480
43481         * lib/relocatable.h: Fix a comment.
43482
43483 2008-01-10  Eric Blake  <ebb9@byu.net>
43484
43485         Share two-way algorithm.
43486         * lib/str-two-way.h: New file, merged from...
43487         * lib/memmem.c: ...here...
43488         * lib/strstr.c: ...and here.
43489         * modules/memmem (Files): Use it.
43490         * modules/strstr (Files): Likewise.
43491
43492         Avoid quadratic strstr implementations.
43493         * lib/strstr.c: New file.
43494         * m4/strstr.m4: Likewise.
43495         * modules/strstr: Likewise.
43496         * modules/strstr-tests: Likewise.
43497         * tests/test-strstr.c: Likewise.
43498         * lib/string.in.h (rpl_strstr): Declare.
43499         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43501         * modules/string (Makefile.am): Likewise.
43502         * MODULES.html.sh (string handling): Mention new module.
43503         * doc/functions/strstr.texi (strstr): Document the bug.
43504
43505 2008-01-10  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/relocatable.h (relocate): State whether result is freshly
43508         allocated or not.
43509         * lib/relocatable.c (relocate): Return a freshly allocated string
43510         instead of a pointer to a privately held string.
43511         Reported by Sylvain Beucler <beuc@gnu.org>.
43512
43513 2008-01-10  Colin Watson  <cjwatson@debian.org>
43514
43515         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43516         s/S_ISNLK/S_ISLNK/.
43517
43518 2008-01-09  Bruno Haible  <bruno@clisp.org>
43519
43520         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43521         and other files.
43522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43523         if it's only a guess.
43524         * modules/memmem: Simplify by depending on memmem-simple.
43525
43526 2008-01-09  Bruno Haible  <bruno@clisp.org>
43527
43528         Work around OpenBSD 4.0 tdelete() bug.
43529         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43530         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43531         macros and don't redefine the enum values.
43532         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43533         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43534         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43535
43536 2008-01-09  Bruno Haible  <bruno@clisp.org>
43537
43538         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43539         (main): Don't perform the tests if setlocale did not install a UTF-8
43540         locale. Needed on OpenBSD 4.0.
43541         * modules/wcwidth-tests (Depends-on): Add localcharset.
43542
43543 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43544
43545         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43546         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43547         * NEWS: announce this.
43548         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43549
43550 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43551         and Eric Blake  <ebb9@byu.net>
43552
43553         Add memmem-simple module.
43554         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43555         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43556         * modules/memmem-simple: New file.
43557         * modules/memmem (Description): Tweak.
43558         * MODULES.html.sh (string handling): Mention new module.
43559         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43560         addressed by memmem-simple.
43561         * NEWS: Document the difference.
43562
43563 2008-01-09  Eric Blake  <ebb9@byu.net>
43564
43565         Give gcc some memmem optimization hints.
43566         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43567         (strcasestr): Declare as pure.
43568         * modules/memmem (Maintainer): Claim my implementation.
43569
43570 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43571
43572         Support AIX 6.1 and higher.
43573         * build-aux/config.libpath: Likewise.
43574         * build-aux/config.rpath: Likewise.
43575
43576 2008-01-08  Jim Meyering  <meyering@redhat.com>
43577             Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43580         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43581         Reported by Peter Fales in
43582         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43583
43584 2008-01-08  Bruno Haible  <bruno@clisp.org>
43585
43586         * modules/unictype/category-of (Depends-on): Add
43587         unictype/category-none.
43588         * modules/unictype/category-and-tests (Depends-on): Add
43589         unictype/category-{L,N,Lu,Nd}.
43590         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43591         * modules/unictype/category-or-tests (Depends-on): Add
43592         unictype/category-{L,N}.
43593         * modules/unictype/category-name-tests (Depends-on): Add
43594         unictype/category-{Z,Nl}.
43595         Reported by Simon Josefsson.
43596
43597 2008-01-08  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43600         convention better.
43601         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43602         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43603         Reported by Peter Miller <millerp@canb.auug.org.au>.
43604
43605 2008-01-08  Eric Blake  <ebb9@byu.net>
43606
43607         Rewrite memmem to guarantee linear complexity without malloc.
43608         * lib/memmem.c (memmem): Use Two-Way rather than
43609         Knuth-Morris-Pratt, to allow O(1) space usage.
43610         (critical_factorization, two_way_short_needle)
43611         (two_way_long_needle): New functions.
43612         (knuth_morris_pratt): Delete.
43613         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43614         Add stdint.
43615         * tests/test-memmem.c (main): Add tests for periodic needle and
43616         sublinear performance.
43617         * doc/functions/memmem.texi (memmem): Document other deficiencies
43618         in cygwin and older glibc.
43619
43620 2008-01-08  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43623         augmentation.
43624
43625 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43626
43627         Add a configure time option: --disable-acl.
43628         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43629         AC_ARG_ENABLE(acl).
43630
43631 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43632
43633         * tests/test-localename.c: Don't include obsolete "setenv.h".
43634
43635         * modules/localename-tests (Depends-on): Need unsetenv.
43636
43637 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43638
43639         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43640
43641 2008-01-06  Colin Watson  <cjwatson@debian.org>
43642
43643         * users.txt: Add man-db.
43644
43645 2008-01-07  Bruno Haible  <bruno@clisp.org>
43646
43647         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43648         previous section name.
43649
43650 2008-01-07  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/progname.c (set_program_name): Don't strip off a leading
43653         "lt-" prefix outside a .libs directory.
43654         Suggested by Paul Eggert.
43655
43656 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43657             Bruno Haible  <bruno@clisp.org>
43658
43659         Improve memory cleanup in 'relocatable' module.
43660         * lib/relocatable.h (compute_curr_prefix): Change return type to
43661         'char *'.
43662         * lib/relocatable.c (compute_curr_prefix): Change return type to
43663         'char *'. Free curr_installdir after use.
43664         (relocate): Free curr_prefix_better after use.
43665         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43666
43667 2008-01-01  Bruno Haible  <bruno@clisp.org>
43668
43669         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43670         failure on older glibc systems.
43671         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43672
43673 2008-01-05  Eric Blake  <ebb9@byu.net>
43674
43675         Avoid quadratic system memmem.
43676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43677         Reported by Ralf Wildenhues.
43678
43679         Fix memmem test for mingw.
43680         * modules/memmem-tests (configure.ac): Check for alarm.
43681         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43682         it.
43683         * doc/functions/memmem.texi: New file.
43684         * doc/gnulib.texi (Function Substitutes): Add memmem.
43685         Reported by Bruno Haible.
43686
43687 2008-01-04  Bruno Haible  <bruno@clisp.org>
43688
43689         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43690         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43691         gl_HEADER_STRING_H_DEFAULTS.
43692
43693 2008-01-04  Eric Blake  <ebb9@byu.net>
43694
43695         Shorten duration of memmem test.
43696         * tests/test-memmem.c (main): Use alarm to declare failure if test
43697         is taking too long.
43698         Reported by Ralf Wildenhues.
43699
43700 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43701
43702         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43703         string, needed by strerror.
43704
43705 2008-01-03  Colin Watson  <cjwatson@debian.org>
43706             Bruno Haible  <bruno@clisp.org>
43707
43708         * doc/gnulib-tool.texi (Localization): New section.
43709
43710 2008-01-02  Bruno Haible  <bruno@clisp.org>
43711
43712         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43713         variables to 'unsigned char *' type.
43714         Reported by Paul Eggert.
43715
43716 2008-01-02  Jim Meyering  <jim@meyering.net>
43717
43718         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43719
43720 2007-12-31  Jim Meyering  <jim@meyering.net>
43721
43722         Avoid use of private FTS type name.
43723         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43724
43725 2007-12-30  Karl Berry  <karl@gnu.org>
43726
43727         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43728         work around defect in Texinfo and/or the standalone Info browser.
43729
43730 2007-12-30  Bruno Haible  <bruno@clisp.org>
43731
43732         Unify 5 copies of the KMP code.
43733         * lib/str-kmp.h: New file.
43734         * lib/c-strcasestr.c: Include str-kmp.h.
43735         (knuth_morris_pratt): Remove function.
43736         (c_strcasestr): Update.
43737         * lib/c-strstr.c: Include str-kmp.h.
43738         (knuth_morris_pratt): Remove function.
43739         (c_strcasestr): Update.
43740         * lib/mbscasestr.c: Include str-kmp.h.
43741         (knuth_morris_pratt_unibyte): Remove function.
43742         * lib/mbsstr.c: Include str-kmp.h.
43743         (knuth_morris_pratt_unibyte): Remove function.
43744         * lib/strcasestr.c: Include str-kmp.h.
43745         (knuth_morris_pratt): Remove function.
43746         (strcasestr): Update.
43747         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43748         * modules/c-strstr (Files): Likewise.
43749         * modules/mbscasestr (Files): Likewise.
43750         * modules/mbsstr (Files): Likewise.
43751         * modules/strcasestr (Files): Likewise.
43752         Suggested by Paul Eggert.
43753
43754 2007-12-30  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43757         defined.
43758
43759 2007-12-30  Bruno Haible  <bruno@clisp.org>
43760
43761         * lib/xmalloca.h: Include xalloc.h.
43762         (xnmalloca): New macro.
43763
43764 2007-12-30  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/malloca.h (nmalloca): New macro.
43767         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43768         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43769         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43770         knuth_morris_pratt_multibyte): Likewise.
43771         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43772         knuth_morris_pratt_multibyte): Likewise.
43773         * lib/memmem.c (knuth_morris_pratt): Likewise.
43774         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43775
43776 2007-12-25  Bruno Haible  <bruno@clisp.org>
43777
43778         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43779         * lib/glob.c: Don't include openat.h.
43780         (link_exists2_p): Add back the code that deals with the
43781         !GLOB_ALTDIRFUNC case.
43782         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43783         let it do the filename concatenation.
43784         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43785         * modules/glob (Depends-on): Remove openat.
43786
43787 2007-12-31  Bruno Haible  <bruno@clisp.org>
43788
43789         * modules/dirfd (License): Change to LGPLv2+.
43790         Approved by Jim Meyering.
43791
43792 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43793
43794         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43795         when multiplying M by sizeof (size_t).
43796
43797 2007-12-10  Martin Lambers  <marlam@marlam.de>
43798
43799         Override getpagesize on mingw.
43800         * lib/getpagesize.c: New file.
43801         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43802         * modules/getpagesize (Files): Add lib/getpagesize.c.
43803         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43805         REPLACE_GETPAGESIZE.
43806         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43807
43808 2007-12-25  Bruno Haible  <bruno@clisp.org>
43809
43810         * modules/localcharset (Notice): New field.
43811         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43812         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43813
43814 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43815             Bruno Haible  <bruno@clisp.org>
43816
43817         Avoid using the syntax symbol() in formatted documentation.
43818         * MODULES.html.sh (func_module): When replacing symbol() with a
43819         hyperlink, remove the parentheses. Show an error if some remain.
43820         Recognize and render the '...' syntax.
43821         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43822         Rework. Add paragraph about GCC's inlining.
43823         * doc/alloca.texi: Likewise.
43824         * doc/error.texi: Remove parentheses from symbol reference.
43825         * doc/gnulib-intro.texi: Likewise.
43826         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43827         * modules/fnmatch (Description): Reword to say "the ... function".
43828         * modules/full-read (Description): Likewise.
43829         * modules/full-write (Description): Likewise.
43830         * modules/safe-read (Description): Likewise.
43831         * modules/safe-write (Description): Likewise.
43832         * modules/strchrnul (Description): Likewise.
43833         * modules/trim (Description): Likewise.
43834         * modules/error (Description): Remove parentheses from symbol
43835         references.
43836         * modules/verror (Description): Likewise.
43837         Reported by Karl Berry.
43838
43839 2007-12-25  Bruno Haible  <bruno@clisp.org>
43840
43841         Fixup after 2007-10-16 commit.
43842         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43843
43844 2007-12-24  Bruno Haible  <bruno@clisp.org>
43845
43846         Make --enable-relocatable work with DESTDIR.
43847         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43848         to compute installdir from destprog.
43849         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43850         also set the RELOC_DESTDIR variable.
43851         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43852
43853 2007-12-24  Bruno Haible  <bruno@clisp.org>
43854
43855         Fix link error due to xalloc_die().
43856         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43857         of xreadlink.
43858         * lib/relocwrapper.c: Update comments.
43859         * build-aux/install-reloc: Remove xreadlink.c from file list.
43860         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43861         xreadlink.c.
43862         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43863
43864 2007-12-24  Bruno Haible  <bruno@clisp.org>
43865
43866         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43867         * lib/setenv.h: Remove file.
43868         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43869         lib/setenv.h.
43870         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43871         (Depends-on): Add stdlib.
43872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43873         gl_FUNC_UNSETENV.
43874         (Include): Replace setenv.h with <stdlib.h>.
43875         * modules/unsetenv: New file.
43876         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43877         * lib/unsetenv.c: Include <stdlib.h> first.
43878         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43879         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43880         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43881         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43882         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43883         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43885         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43886         * doc/functions/unsetenv.texi: Update.
43887         * modules/xsetenv (Depends-on): Add unsetenv.
43888         * modules/getdate (Depends-on): Likewise.
43889         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43890         * lib/xsetenv.c: Don't include setenv.h.
43891         * lib/getdate.y: Likewise.
43892         * lib/relocwrapper.c: Likewise.
43893         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43894         (Depends-on): Add stdlib.
43895         * NEWS: Mention the changes.
43896         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43897
43898 2007-12-23  Bruno Haible  <bruno@clisp.org>
43899
43900         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43901         indentation.
43902
43903 2007-12-23  Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/c-strcasestr.c: Add more comments.
43906         * lib/c-strstr.c: Likewise.
43907         * lib/mbscasestr.c: Likewise.
43908         * lib/mbsstr.c: Likewise.
43909         * lib/strcasestr.c: Likewise.
43910         * lib/memmem.c: Likewise.
43911
43912 2007-12-23  Bruno Haible  <bruno@clisp.org>
43913
43914         * tests/test-memmem.c: Include <string.h> first.
43915
43916 2007-12-22  Bruno Haible  <bruno@clisp.org>
43917
43918         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43919         the contents of $testsbase.
43920         Reported by Ralf Wildenhues.
43921
43922 2007-12-22  Bruno Haible  <bruno@clisp.org>
43923
43924         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43925         two variables local_ldadd_before, local_ldadd_last.
43926
43927 2007-12-20  Eric Blake  <ebb9@byu.net>
43928
43929         Work around circular library issue when cross-compiling.
43930         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43931         that progname.o does not need to pull in rpl_memcmp.
43932
43933 2007-12-19  Eric Blake  <ebb9@byu.net>
43934
43935         Fix memmem to avoid O(n^2) worst-case complexity.
43936         * lib/memmem.c (knuth_morris_pratt): New function.
43937         (memmem): Use it if first few naive iterations fail.
43938         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43939         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43940         * modules/memchr (License): Likewise.
43941         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43942         malloca.
43943         * tests/test-memmem.c: Rewrite, borrowing ideas from
43944         test-mbsstr1.c; the old version wouldn't even compile!
43945         * modules/memmem-tests: New file.
43946         * lib/string.in.h (rpl_memmem): Add declaration.
43947         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43949         REPLACE_MEMMEM.
43950
43951 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43952
43953         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43954         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43955         before any system include files, and undef after them all.  This
43956         should fix a problem on VMS reported by John E. Malmberg in
43957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43958
43959 2007-12-17  Eric Blake  <ebb9@byu.net>
43960
43961         Revert addition of verify, for BSD/OS.
43962         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43963         can't handle large files, for the sake of obsolete platforms.
43964         * modules/fseeko (Depends-on): Remove verify.
43965         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43966         * doc/functions/ftello.texi (ftello): Likewise.
43967         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43968         Reported by Larry Jones.
43969
43970 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43971
43972         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43973         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43974
43975 2007-12-17  Jim Meyering  <meyering@redhat.com>
43976
43977         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43978         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43979         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43980         * modules/getcwd (Depends-on): Add openat.
43981         Reported by Petr Salinger.
43982
43983 2007-12-17  Bruno Haible  <bruno@clisp.org>
43984
43985         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43986         avoid a segmentation fault of the configure test on x86_64 systems.
43987
43988 2007-12-15  Jim Meyering  <meyering@redhat.com>
43989
43990         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43991
43992 2007-12-13  Eric Blake  <ebb9@byu.net>
43993
43994         Another fseek test.
43995         * tests/test-fseek.c (main): Also test ungetc handling.
43996         * tests/test-fseeko.c (main): Likewise.
43997         * modules/fseeko (Depends-on): Add verify.
43998         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43999         large.
44000         Reported by Larry Jones.
44001
44002         Fix fseeko on mingw.
44003         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44004         seek.
44005
44006         Beef up fseek tests.
44007         * tests/test-fseek.c (main): Also test eof handling.
44008         * tests/test-fseeko.c (main): Likewise.
44009         Reported by Larry Jones.
44010
44011 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44012
44013         Fix fseeko on BSD-based platforms.
44014         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44015         successful seek.
44016
44017 2007-12-12  Eric Blake  <ebb9@byu.net>
44018
44019         Allow circular dependency of separate libtests.a
44020         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44021         when use_libtests.
44022
44023 2007-12-11  Eric Blake  <ebb9@byu.net>
44024
44025         Fix bug with -0.0L in previous patch.
44026         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44027         * tests/test-isnan.c (main): Also test on zeroes.
44028         * tests/test-isnanf.c (main): Likewise.
44029         * tests/test-isnanl.h (main): Likewise.
44030
44031         Detect pseudo-denormals on x86 even when cross-compiling.
44032         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44033         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44034         invalid bit patterns that happen to satisfy ==.
44035
44036         Avoid link failures with separate libtests.a.
44037         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44038         last, to satisfy circular dependencies.
44039
44040 2007-12-11  Eric Blake  <ebb9@byu.net>
44041         and Bruno Haible  <bruno@clisp.org>
44042
44043         Fix OpenBSD 4.0 <float.h> handling of long double.
44044         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44045         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44046         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44047
44048 2007-12-11  Jim Meyering  <meyering@redhat.com>
44049
44050         * users.txt: Add libvirt.
44051
44052         Support versions of autoconf prior to 2.59c.
44053         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44054         if it is not already defined.
44055
44056 2007-12-09  Bruno Haible  <bruno@clisp.org>
44057
44058         Let 'gnulib-tool --import' collect sources needed for the tests in
44059         tests/ rather than in lib/.
44060         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44061         argument. If true, add rules to generate libtests.a, and put libtests.a
44062         into $(LDADD). Consider source files in subdirectories and set
44063         uses_subdirs.
44064         (func_emit_initmacro_start, func_emit_initmacro_end,
44065         func_emit_initmacro_done): Pass all arguments explicitly.
44066         (func_import): Determine two module lists main_modules,
44067         testsrelated_modules. Determine use_libtests. Determine two variables
44068         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44069         instead of just sed_transform_lib_file. Determine two variables
44070         main_files and testsrelated_files. Compute 'files' as the union of
44071         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44072         func_add_or_update. In the generated gnulib-comp.m4, collect the
44073         object files for tests/ in different variables than those for lib/.
44074         Substitute LIBTESTS_LIBDEPS.
44075         (func_create_testdir): Combine the uses_subdirs results from
44076         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44077
44078 2007-12-09  Bruno Haible  <bruno@clisp.org>
44079
44080         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44081         the build-aux directory.
44082
44083 2007-12-09  Bruno Haible  <bruno@clisp.org>
44084
44085         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44086         introduced on 2006-09-09.
44087
44088 2007-12-07  Jim Meyering  <meyering@redhat.com>
44089
44090         Let these macros work also with autoconf-2.59.
44091         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44092         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44094
44095 2007-12-06  Jim Meyering  <meyering@redhat.com>
44096
44097         Avoid a configure-time syntax error in gl_FUNC_ACL.
44098         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44099         function in each branch, before testing the cache variable.
44100
44101 2007-12-04  Eric Blake  <ebb9@byu.net>
44102
44103         Make scripts executable.
44104         * build-aux/config.guess: Add execute permissions.
44105         * build-aux/config.sub: Likewise.
44106         * build-aux/gendocs.sh: Likewise.
44107
44108         Fix frexp on mingw.
44109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44110         cross-compiling.
44111         * doc/functions/frexp.texi (frexp): Document the bug.
44112
44113         Make cygwin fseeko check more reliable.
44114         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44115         version numbers, rather than unrelated feature check.
44116         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44117         * doc/functions/ftello.texi (ftello): Likewise.
44118         Reported by Bruno Haible.
44119
44120         * m4/strerror.m4: Bump version number.
44121
44122 2007-12-03  Bruno Haible  <bruno@clisp.org>
44123
44124         * doc/functions/mprotect.texi: Mention the mingw problem.
44125
44126 2007-12-03  Eric Blake  <ebb9@byu.net>
44127
44128         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44129         REPLACE_STRERROR is initialized before this macro.
44130
44131 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44132
44133         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44134         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44135         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44136         put -lsec in even for programs other than 'ls'.  This fixes a problem
44137         for gettext reported by Bruno Haible in
44138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44139         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44140         Add support for Solaris 10.  This isn't efficient, but should get the
44141         job done for now.
44142
44143 2007-12-03  James Youngman  <jay@gnu.org>
44144
44145         * doc/regexprops-generic.texi: change "an close-group" to "a
44146         close-group" and "illegal" to "not allowed".
44147
44148 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44149
44150         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44151         pr_byname.h. Needed for the rare case when the maintainer has done
44152         "make maintainer-clean" in the source directory and then attempts a
44153         build outside the source directory.
44154         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44155         scripts_byname.h.
44156
44157 2007-12-02  Martin Lambers <marlam@marlam.de>
44158             Bruno Haible  <bruno@clisp.org>
44159
44160         * lib/getpagesize.h: Remove file.
44161         * lib/unistd.in.h: Include declaration of getpagesize here.
44162         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44163         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44164         HAVE_SYS_PARAM_H.
44165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44166         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44167         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44168         (Depends-on): Add unistd.
44169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44170         (Include): Use <unistd.h> instead of getpagesize.h.
44171         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44172         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44173         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44174         gl_GETPAGESIZE invocation, already handled by module dependency.
44175         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44176
44177 2007-12-02  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/strings-tests: New file.
44180         * tests/test-strings.c: New file.
44181
44182         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44183         * lib/strings.in.h: New file.
44184         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44185         * m4/strings_h.m4: New file.
44186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44187         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44188         * modules/strings: New file.
44189         * modules/string (Makefile.am): Update.
44190         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44191         Reported by Karl Berry.
44192
44193 2007-12-01  Eric Blake  <ebb9@byu.net>
44194
44195         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44196         accomodate fix in cygwin 1.5.25.
44197
44198 2007-12-01  Jim Meyering  <meyering@redhat.com>
44199
44200         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44201         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44202         that would inhibit utf8-optimization of a regexp containing line-
44203         or buffer-anchors, e.g., `^', `$'.
44204
44205 2007-11-30  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44208         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44209         glthread_recursive_lock_init.
44210         * lib/lock.c (glthread_recursive_lock_init)
44211         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44213
44214 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         New function qset_acl, like set_acl but with syscall semantics.
44217         * lib/acl.h (qset_acl): New decl.
44218         * lib/acl.c (qset_acl): New function.
44219         (set_acl): Use new function.  Use more-consistent diagnostics.
44220
44221 2007-11-28  Jim Meyering  <meyering@redhat.com>
44222
44223         * modules/physmem (License): Change from GPL to LGPLv2+.
44224
44225 2007-11-26  Bruno Haible  <bruno@clisp.org>
44226
44227         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44228         'long double' type has excess precision.
44229         Reported by Jim Meyering in
44230         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44231
44232 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44233
44234         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44235         Sync from <http://gnu.org/licenses>.
44236         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44237         with license text from same location.
44238         * doc/maintain.texi, doc/standards.texi:  Sync from
44239         <http://savannah.gnu.org/projects/gnustandards>.
44240
44241 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44242         and Jim Meyering  <meyering@redhat.com>
44243
44244         Adjust getdate' grammar to accept a slightly more regular language.
44245         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44246         Before, the former was rejected.
44247         * lib/getdate.y (digits_to_date_time): New function, factored
44248         out of ...
44249         (number): ...here.  Just call digits_to_date_time.
44250         (hybrid): New non-terminal to handle an <unsigned number,
44251         signed relative offset> sequence consistently.
44252
44253 2007-11-18  Jim Meyering  <meyering@redhat.com>
44254
44255         Pull my changes from coreutils:
44256         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44257         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44258         use of $gnulib_tool_option_extras, so that it's separated from the
44259         preceding argument.
44260
44261         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44262         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44263         parent destination directories before copying a file into place.
44264
44265 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44266
44267         bootstrap: work also with 4-argument variant of AC_INIT
44268         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44269
44270 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44271
44272         Port test-getaddrinfo to Solaris.
44273         Problem reported by Bruno Haible in
44274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44275         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44276         explanation of setting 'hints'.
44277         Don't reject an implementation merely because it returns EAI_SERVICE.
44278         (EAI_SERVICE): Define to 0 if not defined.
44279
44280 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44281
44282         The license of gnu-make and posix-shell is now "GPLed build tool".
44283         * modules/gnu-make (License): Likewise.
44284         * modules/posix-shell (License): Likewise.
44285
44286         New module posix-shell, for determining a POSIX shell
44287         or perhaps something that is close enough to a POSIX shell.
44288         * m4/posix-shell.m4: New file.
44289         * modules/posix-shell: New file.
44290
44291         * MODULES.html.sh: Mention new module.
44292
44293         New module gnu-make, for determining whether we're using GNU Make.
44294         * m4/gnu-make.m4: New file.
44295         * modules/gnu-make: New file.
44296         * MODULES.html.sh: Mention new module.
44297
44298 2007-11-14  Jim Meyering  <meyering@redhat.com>
44299
44300         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44301         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44302         use this macro to create a function _definition_.
44303         Remove useless "#undef ARGMATCH_DIE".
44304
44305 2007-11-14  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/config.charset: Update for OpenBSD 4.1.
44308         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44309
44310 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         Document 64-bit #if problems in stdint.texi.
44313         * doc/headers/stdint.texi (stdint.h): Mention problems with
44314         64-bit-#if, and how to work around them.
44315
44316         Don't insist on 'long long int' support in the preprocessor.  It
44317         breaks too many things.  For example, PRIdMAX still uses a 'long
44318         long int' format with the latest Sun compiler, even though
44319         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44320         preprocessor problem.  This causes the latest coreutils to dump
44321         core on Solaris 10 sparc with the Sun C compiler.
44322         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44323         the troublesome expressions at configure-time, not at #if-time.
44324         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44325         preprocessor.
44326         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44327         compile-time C checks, done at 'configure'-time.
44328         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44329         * modules/inttypes (Makefile): Substitute the new symbols that
44330         gl_INTTYPES_H now generates.
44331         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44332
44333 2007-11-12  Bruno Haible  <bruno@clisp.org>
44334
44335         Tests for Unicode character classification functions.
44336
44337         * modules/unictype/bidicategory-byname-tests: New file.
44338         * modules/unictype/bidicategory-name-tests: New file.
44339         * modules/unictype/bidicategory-of-tests: New file.
44340         * modules/unictype/bidicategory-test-tests: New file.
44341         * modules/unictype/block-list-tests: New file.
44342         * modules/unictype/block-of-tests: New file.
44343         * modules/unictype/block-test-tests: New file.
44344         * modules/unictype/category-C-tests: New file.
44345         * modules/unictype/category-Cc-tests: New file.
44346         * modules/unictype/category-Cf-tests: New file.
44347         * modules/unictype/category-Cn-tests: New file.
44348         * modules/unictype/category-Co-tests: New file.
44349         * modules/unictype/category-Cs-tests: New file.
44350         * modules/unictype/category-L-tests: New file.
44351         * modules/unictype/category-Ll-tests: New file.
44352         * modules/unictype/category-Lm-tests: New file.
44353         * modules/unictype/category-Lo-tests: New file.
44354         * modules/unictype/category-Lt-tests: New file.
44355         * modules/unictype/category-Lu-tests: New file.
44356         * modules/unictype/category-M-tests: New file.
44357         * modules/unictype/category-Mc-tests: New file.
44358         * modules/unictype/category-Me-tests: New file.
44359         * modules/unictype/category-Mn-tests: New file.
44360         * modules/unictype/category-N-tests: New file.
44361         * modules/unictype/category-Nd-tests: New file.
44362         * modules/unictype/category-Nl-tests: New file.
44363         * modules/unictype/category-No-tests: New file.
44364         * modules/unictype/category-P-tests: New file.
44365         * modules/unictype/category-Pc-tests: New file.
44366         * modules/unictype/category-Pd-tests: New file.
44367         * modules/unictype/category-Pe-tests: New file.
44368         * modules/unictype/category-Pf-tests: New file.
44369         * modules/unictype/category-Pi-tests: New file.
44370         * modules/unictype/category-Po-tests: New file.
44371         * modules/unictype/category-Ps-tests: New file.
44372         * modules/unictype/category-S-tests: New file.
44373         * modules/unictype/category-Sc-tests: New file.
44374         * modules/unictype/category-Sk-tests: New file.
44375         * modules/unictype/category-Sm-tests: New file.
44376         * modules/unictype/category-So-tests: New file.
44377         * modules/unictype/category-Z-tests: New file.
44378         * modules/unictype/category-Zl-tests: New file.
44379         * modules/unictype/category-Zp-tests: New file.
44380         * modules/unictype/category-Zs-tests: New file.
44381         * modules/unictype/category-and-not-tests: New file.
44382         * modules/unictype/category-and-tests: New file.
44383         * modules/unictype/category-byname-tests: New file.
44384         * modules/unictype/category-name-tests: New file.
44385         * modules/unictype/category-none-tests: New file.
44386         * modules/unictype/category-of-tests: New file.
44387         * modules/unictype/category-or-tests: New file.
44388         * modules/unictype/category-test-withtable-tests: New file.
44389         * modules/unictype/combining-class-tests: New file.
44390         * modules/unictype/ctype-alnum-tests: New file.
44391         * modules/unictype/ctype-alpha-tests: New file.
44392         * modules/unictype/ctype-blank-tests: New file.
44393         * modules/unictype/ctype-cntrl-tests: New file.
44394         * modules/unictype/ctype-digit-tests: New file.
44395         * modules/unictype/ctype-graph-tests: New file.
44396         * modules/unictype/ctype-lower-tests: New file.
44397         * modules/unictype/ctype-print-tests: New file.
44398         * modules/unictype/ctype-punct-tests: New file.
44399         * modules/unictype/ctype-space-tests: New file.
44400         * modules/unictype/ctype-upper-tests: New file.
44401         * modules/unictype/ctype-xdigit-tests: New file.
44402         * modules/unictype/decimal-digit-tests: New file.
44403         * modules/unictype/digit-tests: New file.
44404         * modules/unictype/mirror-tests: New file.
44405         * modules/unictype/numeric-tests: New file.
44406         * modules/unictype/property-alphabetic-tests: New file.
44407         * modules/unictype/property-ascii-hex-digit-tests: New file.
44408         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44409         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44410         * modules/unictype/property-bidi-block-separator-tests: New file.
44411         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44412         * modules/unictype/property-bidi-common-separator-tests: New file.
44413         * modules/unictype/property-bidi-control-tests: New file.
44414         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44415         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44416         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44417         * modules/unictype/property-bidi-european-digit-tests: New file.
44418         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44419         * modules/unictype/property-bidi-left-to-right-tests: New file.
44420         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44421         * modules/unictype/property-bidi-other-neutral-tests: New file.
44422         * modules/unictype/property-bidi-pdf-tests: New file.
44423         * modules/unictype/property-bidi-segment-separator-tests: New file.
44424         * modules/unictype/property-bidi-whitespace-tests: New file.
44425         * modules/unictype/property-byname-tests: New file.
44426         * modules/unictype/property-combining-tests: New file.
44427         * modules/unictype/property-composite-tests: New file.
44428         * modules/unictype/property-currency-symbol-tests: New file.
44429         * modules/unictype/property-dash-tests: New file.
44430         * modules/unictype/property-decimal-digit-tests: New file.
44431         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44432         * modules/unictype/property-deprecated-tests: New file.
44433         * modules/unictype/property-diacritic-tests: New file.
44434         * modules/unictype/property-extender-tests: New file.
44435         * modules/unictype/property-format-control-tests: New file.
44436         * modules/unictype/property-grapheme-base-tests: New file.
44437         * modules/unictype/property-grapheme-extend-tests: New file.
44438         * modules/unictype/property-grapheme-link-tests: New file.
44439         * modules/unictype/property-hex-digit-tests: New file.
44440         * modules/unictype/property-hyphen-tests: New file.
44441         * modules/unictype/property-id-continue-tests: New file.
44442         * modules/unictype/property-id-start-tests: New file.
44443         * modules/unictype/property-ideographic-tests: New file.
44444         * modules/unictype/property-ids-binary-operator-tests: New file.
44445         * modules/unictype/property-ids-trinary-operator-tests: New file.
44446         * modules/unictype/property-ignorable-control-tests: New file.
44447         * modules/unictype/property-iso-control-tests: New file.
44448         * modules/unictype/property-join-control-tests: New file.
44449         * modules/unictype/property-left-of-pair-tests: New file.
44450         * modules/unictype/property-line-separator-tests: New file.
44451         * modules/unictype/property-logical-order-exception-tests: New file.
44452         * modules/unictype/property-lowercase-tests: New file.
44453         * modules/unictype/property-math-tests: New file.
44454         * modules/unictype/property-non-break-tests: New file.
44455         * modules/unictype/property-not-a-character-tests: New file.
44456         * modules/unictype/property-numeric-tests: New file.
44457         * modules/unictype/property-other-alphabetic-tests: New file.
44458         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44459         * modules/unictype/property-other-grapheme-extend-tests: New file.
44460         * modules/unictype/property-other-id-continue-tests: New file.
44461         * modules/unictype/property-other-id-start-tests: New file.
44462         * modules/unictype/property-other-lowercase-tests: New file.
44463         * modules/unictype/property-other-math-tests: New file.
44464         * modules/unictype/property-other-uppercase-tests: New file.
44465         * modules/unictype/property-paired-punctuation-tests: New file.
44466         * modules/unictype/property-paragraph-separator-tests: New file.
44467         * modules/unictype/property-pattern-syntax-tests: New file.
44468         * modules/unictype/property-pattern-white-space-tests: New file.
44469         * modules/unictype/property-private-use-tests: New file.
44470         * modules/unictype/property-punctuation-tests: New file.
44471         * modules/unictype/property-quotation-mark-tests: New file.
44472         * modules/unictype/property-radical-tests: New file.
44473         * modules/unictype/property-sentence-terminal-tests: New file.
44474         * modules/unictype/property-soft-dotted-tests: New file.
44475         * modules/unictype/property-space-tests: New file.
44476         * modules/unictype/property-terminal-punctuation-tests: New file.
44477         * modules/unictype/property-test-tests: New file.
44478         * modules/unictype/property-titlecase-tests: New file.
44479         * modules/unictype/property-unassigned-code-value-tests: New file.
44480         * modules/unictype/property-unified-ideograph-tests: New file.
44481         * modules/unictype/property-uppercase-tests: New file.
44482         * modules/unictype/property-variation-selector-tests: New file.
44483         * modules/unictype/property-white-space-tests: New file.
44484         * modules/unictype/property-xid-continue-tests: New file.
44485         * modules/unictype/property-xid-start-tests: New file.
44486         * modules/unictype/property-zero-width-tests: New file.
44487         * modules/unictype/scripts-tests: New file.
44488         * modules/unictype/syntax-c-ident-tests: New file.
44489         * modules/unictype/syntax-c-whitespace-tests: New file.
44490         * modules/unictype/syntax-java-ident-tests: New file.
44491         * modules/unictype/syntax-java-whitespace-tests: New file.
44492         * tests/unictype/test-bidi_byname.c: New file.
44493         * tests/unictype/test-bidi_name.c: New file.
44494         * tests/unictype/test-bidi_of.c: New file.
44495         * tests/unictype/test-bidi_test.c: New file.
44496         * tests/unictype/test-block_list.c: New file.
44497         * tests/unictype/test-block_of.c: New file.
44498         * tests/unictype/test-block_test.c: New file.
44499         * tests/unictype/test-categ_and.c: New file.
44500         * tests/unictype/test-categ_and_not.c: New file.
44501         * tests/unictype/test-categ_byname.c: New file.
44502         * tests/unictype/test-categ_name.c: New file.
44503         * tests/unictype/test-categ_none.c: New file.
44504         * tests/unictype/test-categ_of.c: New file.
44505         * tests/unictype/test-categ_or.c: New file.
44506         * tests/unictype/test-categ_test_withtable.c: New file.
44507         * tests/unictype/test-combining.c: New file.
44508         * tests/unictype/test-decdigit.c: New file.
44509         * tests/unictype/test-digit.c: New file.
44510         * tests/unictype/test-mirror.c: New file.
44511         * tests/unictype/test-numeric.c: New file.
44512         * tests/unictype/test-pr_byname.c: New file.
44513         * tests/unictype/test-pr_test.c: New file.
44514         * tests/unictype/test-predicate-part1.h: New file.
44515         * tests/unictype/test-predicate-part2.h: New file.
44516         * tests/unictype/test-scripts.c: New file.
44517         * tests/unictype/test-sy_c_ident.c: New file.
44518         * tests/unictype/test-sy_java_ident.c: New file.
44519
44520         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44521         for Unicode 5.0.0.
44522         * tests/unictype/test-categ_Cc.c: Likewise.
44523         * tests/unictype/test-categ_Cf.c: Likewise.
44524         * tests/unictype/test-categ_Cn.c: Likewise.
44525         * tests/unictype/test-categ_Co.c: Likewise.
44526         * tests/unictype/test-categ_Cs.c: Likewise.
44527         * tests/unictype/test-categ_L.c: Likewise.
44528         * tests/unictype/test-categ_Ll.c: Likewise.
44529         * tests/unictype/test-categ_Lm.c: Likewise.
44530         * tests/unictype/test-categ_Lo.c: Likewise.
44531         * tests/unictype/test-categ_Lt.c: Likewise.
44532         * tests/unictype/test-categ_Lu.c: Likewise.
44533         * tests/unictype/test-categ_M.c: Likewise.
44534         * tests/unictype/test-categ_Mc.c: Likewise.
44535         * tests/unictype/test-categ_Me.c: Likewise.
44536         * tests/unictype/test-categ_Mn.c: Likewise.
44537         * tests/unictype/test-categ_N.c: Likewise.
44538         * tests/unictype/test-categ_Nd.c: Likewise.
44539         * tests/unictype/test-categ_Nl.c: Likewise.
44540         * tests/unictype/test-categ_No.c: Likewise.
44541         * tests/unictype/test-categ_P.c: Likewise.
44542         * tests/unictype/test-categ_Pc.c: Likewise.
44543         * tests/unictype/test-categ_Pd.c: Likewise.
44544         * tests/unictype/test-categ_Pe.c: Likewise.
44545         * tests/unictype/test-categ_Pf.c: Likewise.
44546         * tests/unictype/test-categ_Pi.c: Likewise.
44547         * tests/unictype/test-categ_Po.c: Likewise.
44548         * tests/unictype/test-categ_Ps.c: Likewise.
44549         * tests/unictype/test-categ_S.c: Likewise.
44550         * tests/unictype/test-categ_Sc.c: Likewise.
44551         * tests/unictype/test-categ_Sk.c: Likewise.
44552         * tests/unictype/test-categ_Sm.c: Likewise.
44553         * tests/unictype/test-categ_So.c: Likewise.
44554         * tests/unictype/test-categ_Z.c: Likewise.
44555         * tests/unictype/test-categ_Zl.c: Likewise.
44556         * tests/unictype/test-categ_Zp.c: Likewise.
44557         * tests/unictype/test-categ_Zs.c: Likewise.
44558         * tests/unictype/test-ctype_alnum.c: Likewise.
44559         * tests/unictype/test-ctype_alpha.c: Likewise.
44560         * tests/unictype/test-ctype_blank.c: Likewise.
44561         * tests/unictype/test-ctype_cntrl.c: Likewise.
44562         * tests/unictype/test-ctype_digit.c: Likewise.
44563         * tests/unictype/test-ctype_graph.c: Likewise.
44564         * tests/unictype/test-ctype_lower.c: Likewise.
44565         * tests/unictype/test-ctype_print.c: Likewise.
44566         * tests/unictype/test-ctype_punct.c: Likewise.
44567         * tests/unictype/test-ctype_space.c: Likewise.
44568         * tests/unictype/test-ctype_upper.c: Likewise.
44569         * tests/unictype/test-ctype_xdigit.c: Likewise.
44570         * tests/unictype/test-decdigit.h: Likewise.
44571         * tests/unictype/test-digit.h: Likewise.
44572         * tests/unictype/test-numeric.h: Likewise.
44573         * tests/unictype/test-pr_alphabetic.c: Likewise.
44574         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44575         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44576         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44577         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44578         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44579         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44580         * tests/unictype/test-pr_bidi_control.c: Likewise.
44581         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44582         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44584         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44585         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44586         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44587         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44588         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44589         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44590         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44591         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44592         * tests/unictype/test-pr_combining.c: Likewise.
44593         * tests/unictype/test-pr_composite.c: Likewise.
44594         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44595         * tests/unictype/test-pr_dash.c: Likewise.
44596         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44597         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44598         * tests/unictype/test-pr_deprecated.c: Likewise.
44599         * tests/unictype/test-pr_diacritic.c: Likewise.
44600         * tests/unictype/test-pr_extender.c: Likewise.
44601         * tests/unictype/test-pr_format_control.c: Likewise.
44602         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44603         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44604         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44605         * tests/unictype/test-pr_hex_digit.c: Likewise.
44606         * tests/unictype/test-pr_hyphen.c: Likewise.
44607         * tests/unictype/test-pr_id_continue.c: Likewise.
44608         * tests/unictype/test-pr_id_start.c: Likewise.
44609         * tests/unictype/test-pr_ideographic.c: Likewise.
44610         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44611         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44612         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44613         * tests/unictype/test-pr_iso_control.c: Likewise.
44614         * tests/unictype/test-pr_join_control.c: Likewise.
44615         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44616         * tests/unictype/test-pr_line_separator.c: Likewise.
44617         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44618         * tests/unictype/test-pr_lowercase.c: Likewise.
44619         * tests/unictype/test-pr_math.c: Likewise.
44620         * tests/unictype/test-pr_non_break.c: Likewise.
44621         * tests/unictype/test-pr_not_a_character.c: Likewise.
44622         * tests/unictype/test-pr_numeric.c: Likewise.
44623         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44624         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44625         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44626         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44627         * tests/unictype/test-pr_other_id_start.c: Likewise.
44628         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44629         * tests/unictype/test-pr_other_math.c: Likewise.
44630         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44631         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44632         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44633         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44634         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44635         * tests/unictype/test-pr_private_use.c: Likewise.
44636         * tests/unictype/test-pr_punctuation.c: Likewise.
44637         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44638         * tests/unictype/test-pr_radical.c: Likewise.
44639         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44640         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44641         * tests/unictype/test-pr_space.c: Likewise.
44642         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44643         * tests/unictype/test-pr_titlecase.c: Likewise.
44644         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44645         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44646         * tests/unictype/test-pr_uppercase.c: Likewise.
44647         * tests/unictype/test-pr_variation_selector.c: Likewise.
44648         * tests/unictype/test-pr_white_space.c: Likewise.
44649         * tests/unictype/test-pr_xid_continue.c: Likewise.
44650         * tests/unictype/test-pr_xid_start.c: Likewise.
44651         * tests/unictype/test-pr_zero_width.c: Likewise.
44652         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44653         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44654
44655 2007-11-12  Bruno Haible  <bruno@clisp.org>
44656
44657         Unicode character classification functions.
44658         * lib/unictype.h: New file.
44659         * modules/unictype/base: New file.
44660         * modules/unictype/category-L: New file.
44661         * modules/unictype/category-Lu: New file.
44662         * modules/unictype/category-Ll: New file.
44663         * modules/unictype/category-Lt: New file.
44664         * modules/unictype/category-Lm: New file.
44665         * modules/unictype/category-Lo: New file.
44666         * modules/unictype/category-M: New file.
44667         * modules/unictype/category-Mn: New file.
44668         * modules/unictype/category-Mc: New file.
44669         * modules/unictype/category-Me: New file.
44670         * modules/unictype/category-N: New file.
44671         * modules/unictype/category-Nd: New file.
44672         * modules/unictype/category-Nl: New file.
44673         * modules/unictype/category-No: New file.
44674         * modules/unictype/category-P: New file.
44675         * modules/unictype/category-Pc: New file.
44676         * modules/unictype/category-Pd: New file.
44677         * modules/unictype/category-Ps: New file.
44678         * modules/unictype/category-Pe: New file.
44679         * modules/unictype/category-Pi: New file.
44680         * modules/unictype/category-Pf: New file.
44681         * modules/unictype/category-Po: New file.
44682         * modules/unictype/category-S: New file.
44683         * modules/unictype/category-Sm: New file.
44684         * modules/unictype/category-Sc: New file.
44685         * modules/unictype/category-Sk: New file.
44686         * modules/unictype/category-So: New file.
44687         * modules/unictype/category-Z: New file.
44688         * modules/unictype/category-Zs: New file.
44689         * modules/unictype/category-Zl: New file.
44690         * modules/unictype/category-Zp: New file.
44691         * modules/unictype/category-C: New file.
44692         * modules/unictype/category-Cc: New file.
44693         * modules/unictype/category-Cf: New file.
44694         * modules/unictype/category-Cs: New file.
44695         * modules/unictype/category-Co: New file.
44696         * modules/unictype/category-Cn: New file.
44697         * modules/unictype/category-or: New file.
44698         * modules/unictype/category-of: New file.
44699         * modules/unictype/category-test: New file.
44700         * modules/unictype/category-test-withtable: New file.
44701         * modules/unictype/category-byname: New file.
44702         * modules/unictype/category-none: New file.
44703         * modules/unictype/category-and: New file.
44704         * modules/unictype/category-and-not: New file.
44705         * modules/unictype/category-name: New file.
44706         * modules/unictype/combining-class: New file.
44707         * modules/unictype/category-all: New file.
44708         * modules/unictype/bidicategory-all: New file.
44709         * modules/unictype/bidicategory-byname: New file.
44710         * modules/unictype/bidicategory-name: New file.
44711         * modules/unictype/bidicategory-of: New file.
44712         * modules/unictype/bidicategory-test: New file.
44713         * modules/unictype/decimal-digit: New file.
44714         * modules/unictype/digit: New file.
44715         * modules/unictype/numeric: New file.
44716         * modules/unictype/mirror: New file.
44717         * modules/unictype/property-white-space: New file.
44718         * modules/unictype/property-alphabetic: New file.
44719         * modules/unictype/property-other-alphabetic: New file.
44720         * modules/unictype/property-not-a-character: New file.
44721         * modules/unictype/property-default-ignorable-code-point: New file.
44722         * modules/unictype/property-other-default-ignorable-code-point: New
44723         file.
44724         * modules/unictype/property-deprecated: New file.
44725         * modules/unictype/property-logical-order-exception: New file.
44726         * modules/unictype/property-variation-selector: New file.
44727         * modules/unictype/property-private-use: New file.
44728         * modules/unictype/property-unassigned-code-value: New file.
44729         * modules/unictype/property-uppercase: New file.
44730         * modules/unictype/property-other-uppercase: New file.
44731         * modules/unictype/property-lowercase: New file.
44732         * modules/unictype/property-other-lowercase: New file.
44733         * modules/unictype/property-titlecase: New file.
44734         * modules/unictype/property-soft-dotted: New file.
44735         * modules/unictype/property-id-start: New file.
44736         * modules/unictype/property-other-id-start: New file.
44737         * modules/unictype/property-id-continue: New file.
44738         * modules/unictype/property-other-id-continue: New file.
44739         * modules/unictype/property-xid-start: New file.
44740         * modules/unictype/property-xid-continue: New file.
44741         * modules/unictype/property-pattern-white-space: New file.
44742         * modules/unictype/property-pattern-syntax: New file.
44743         * modules/unictype/property-join-control: New file.
44744         * modules/unictype/property-grapheme-base: New file.
44745         * modules/unictype/property-grapheme-extend: New file.
44746         * modules/unictype/property-other-grapheme-extend: New file.
44747         * modules/unictype/property-grapheme-link: New file.
44748         * modules/unictype/property-bidi-control: New file.
44749         * modules/unictype/property-bidi-left-to-right: New file.
44750         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44751         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44752         * modules/unictype/property-bidi-european-digit: New file.
44753         * modules/unictype/property-bidi-eur-num-separator: New file.
44754         * modules/unictype/property-bidi-eur-num-terminator: New file.
44755         * modules/unictype/property-bidi-arabic-digit: New file.
44756         * modules/unictype/property-bidi-common-separator: New file.
44757         * modules/unictype/property-bidi-block-separator: New file.
44758         * modules/unictype/property-bidi-segment-separator: New file.
44759         * modules/unictype/property-bidi-whitespace: New file.
44760         * modules/unictype/property-bidi-non-spacing-mark: New file.
44761         * modules/unictype/property-bidi-boundary-neutral: New file.
44762         * modules/unictype/property-bidi-pdf: New file.
44763         * modules/unictype/property-bidi-embedding-or-override: New file.
44764         * modules/unictype/property-bidi-other-neutral: New file.
44765         * modules/unictype/property-hex-digit: New file.
44766         * modules/unictype/property-ascii-hex-digit: New file.
44767         * modules/unictype/property-ideographic: New file.
44768         * modules/unictype/property-unified-ideograph: New file.
44769         * modules/unictype/property-radical: New file.
44770         * modules/unictype/property-ids-binary-operator: New file.
44771         * modules/unictype/property-ids-trinary-operator: New file.
44772         * modules/unictype/property-zero-width: New file.
44773         * modules/unictype/property-space: New file.
44774         * modules/unictype/property-non-break: New file.
44775         * modules/unictype/property-iso-control: New file.
44776         * modules/unictype/property-format-control: New file.
44777         * modules/unictype/property-dash: New file.
44778         * modules/unictype/property-hyphen: New file.
44779         * modules/unictype/property-punctuation: New file.
44780         * modules/unictype/property-line-separator: New file.
44781         * modules/unictype/property-paragraph-separator: New file.
44782         * modules/unictype/property-quotation-mark: New file.
44783         * modules/unictype/property-sentence-terminal: New file.
44784         * modules/unictype/property-terminal-punctuation: New file.
44785         * modules/unictype/property-currency-symbol: New file.
44786         * modules/unictype/property-math: New file.
44787         * modules/unictype/property-other-math: New file.
44788         * modules/unictype/property-paired-punctuation: New file.
44789         * modules/unictype/property-left-of-pair: New file.
44790         * modules/unictype/property-combining: New file.
44791         * modules/unictype/property-composite: New file.
44792         * modules/unictype/property-decimal-digit: New file.
44793         * modules/unictype/property-numeric: New file.
44794         * modules/unictype/property-diacritic: New file.
44795         * modules/unictype/property-extender: New file.
44796         * modules/unictype/property-ignorable-control: New file.
44797         * modules/unictype/property-test: New file.
44798         * modules/unictype/property-byname: New file.
44799         * modules/unictype/property-all: New file.
44800         * modules/unictype/scripts: New file.
44801         * modules/unictype/scripts-all: New file.
44802         * modules/unictype/block-of: New file.
44803         * modules/unictype/block-test: New file.
44804         * modules/unictype/block-list: New file.
44805         * modules/unictype/block-all: New file.
44806         * modules/unictype/syntax-c-whitespace: New file.
44807         * modules/unictype/syntax-java-whitespace: New file.
44808         * modules/unictype/syntax-c-ident: New file.
44809         * modules/unictype/syntax-java-ident: New file.
44810         * modules/unictype/ctype-alnum: New file.
44811         * modules/unictype/ctype-alpha: New file.
44812         * modules/unictype/ctype-cntrl: New file.
44813         * modules/unictype/ctype-digit: New file.
44814         * modules/unictype/ctype-graph: New file.
44815         * modules/unictype/ctype-lower: New file.
44816         * modules/unictype/ctype-print: New file.
44817         * modules/unictype/ctype-punct: New file.
44818         * modules/unictype/ctype-space: New file.
44819         * modules/unictype/ctype-upper: New file.
44820         * modules/unictype/ctype-xdigit: New file.
44821         * modules/unictype/ctype-blank: New file.
44822         * lib/unictype/bidi_byname.c: New file.
44823         * lib/unictype/bidi_name.c: New file.
44824         * lib/unictype/bidi_of.c: New file.
44825         * lib/unictype/bidi_test.c: New file.
44826         * lib/unictype/bitmap.h: New file.
44827         * lib/unictype/block_test.c: New file.
44828         * lib/unictype/blocks.c: New file.
44829         * lib/unictype/categ_C.c: New file.
44830         * lib/unictype/categ_Cc.c: New file.
44831         * lib/unictype/categ_Cf.c: New file.
44832         * lib/unictype/categ_Cn.c: New file.
44833         * lib/unictype/categ_Co.c: New file.
44834         * lib/unictype/categ_Cs.c: New file.
44835         * lib/unictype/categ_L.c: New file.
44836         * lib/unictype/categ_Ll.c: New file.
44837         * lib/unictype/categ_Lm.c: New file.
44838         * lib/unictype/categ_Lo.c: New file.
44839         * lib/unictype/categ_Lt.c: New file.
44840         * lib/unictype/categ_Lu.c: New file.
44841         * lib/unictype/categ_M.c: New file.
44842         * lib/unictype/categ_Mc.c: New file.
44843         * lib/unictype/categ_Me.c: New file.
44844         * lib/unictype/categ_Mn.c: New file.
44845         * lib/unictype/categ_N.c: New file.
44846         * lib/unictype/categ_Nd.c: New file.
44847         * lib/unictype/categ_Nl.c: New file.
44848         * lib/unictype/categ_No.c: New file.
44849         * lib/unictype/categ_P.c: New file.
44850         * lib/unictype/categ_Pc.c: New file.
44851         * lib/unictype/categ_Pd.c: New file.
44852         * lib/unictype/categ_Pe.c: New file.
44853         * lib/unictype/categ_Pf.c: New file.
44854         * lib/unictype/categ_Pi.c: New file.
44855         * lib/unictype/categ_Po.c: New file.
44856         * lib/unictype/categ_Ps.c: New file.
44857         * lib/unictype/categ_S.c: New file.
44858         * lib/unictype/categ_Sc.c: New file.
44859         * lib/unictype/categ_Sk.c: New file.
44860         * lib/unictype/categ_Sm.c: New file.
44861         * lib/unictype/categ_So.c: New file.
44862         * lib/unictype/categ_Z.c: New file.
44863         * lib/unictype/categ_Zl.c: New file.
44864         * lib/unictype/categ_Zp.c: New file.
44865         * lib/unictype/categ_Zs.c: New file.
44866         * lib/unictype/categ_and.c: New file.
44867         * lib/unictype/categ_and_not.c: New file.
44868         * lib/unictype/categ_byname.c: New file.
44869         * lib/unictype/categ_name.c: New file.
44870         * lib/unictype/categ_none.c: New file.
44871         * lib/unictype/categ_of.c: New file.
44872         * lib/unictype/categ_or.c: New file.
44873         * lib/unictype/categ_test.c: New file.
44874         * lib/unictype/combining.c: New file.
44875         * lib/unictype/ctype_alnum.c: New file.
44876         * lib/unictype/ctype_alpha.c: New file.
44877         * lib/unictype/ctype_blank.c: New file.
44878         * lib/unictype/ctype_cntrl.c: New file.
44879         * lib/unictype/ctype_digit.c: New file.
44880         * lib/unictype/ctype_graph.c: New file.
44881         * lib/unictype/ctype_lower.c: New file.
44882         * lib/unictype/ctype_print.c: New file.
44883         * lib/unictype/ctype_punct.c: New file.
44884         * lib/unictype/ctype_space.c: New file.
44885         * lib/unictype/ctype_upper.c: New file.
44886         * lib/unictype/ctype_xdigit.c: New file.
44887         * lib/unictype/decdigit.c: New file.
44888         * lib/unictype/digit.c: New file.
44889         * lib/unictype/identsyntaxmap.h: New file.
44890         * lib/unictype/mirror.c: New file.
44891         * lib/unictype/numeric.c: New file.
44892         * lib/unictype/pr_alphabetic.c: New file.
44893         * lib/unictype/pr_ascii_hex_digit.c: New file.
44894         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44895         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44896         * lib/unictype/pr_bidi_block_separator.c: New file.
44897         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44898         * lib/unictype/pr_bidi_common_separator.c: New file.
44899         * lib/unictype/pr_bidi_control.c: New file.
44900         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44901         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44902         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44903         * lib/unictype/pr_bidi_european_digit.c: New file.
44904         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44905         * lib/unictype/pr_bidi_left_to_right.c: New file.
44906         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44907         * lib/unictype/pr_bidi_other_neutral.c: New file.
44908         * lib/unictype/pr_bidi_pdf.c: New file.
44909         * lib/unictype/pr_bidi_segment_separator.c: New file.
44910         * lib/unictype/pr_bidi_whitespace.c: New file.
44911         * lib/unictype/pr_byname.c: New file.
44912         * lib/unictype/pr_byname.gperf: New file.
44913         * lib/unictype/pr_combining.c: New file.
44914         * lib/unictype/pr_composite.c: New file.
44915         * lib/unictype/pr_currency_symbol.c: New file.
44916         * lib/unictype/pr_dash.c: New file.
44917         * lib/unictype/pr_decimal_digit.c: New file.
44918         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44919         * lib/unictype/pr_deprecated.c: New file.
44920         * lib/unictype/pr_diacritic.c: New file.
44921         * lib/unictype/pr_extender.c: New file.
44922         * lib/unictype/pr_format_control.c: New file.
44923         * lib/unictype/pr_grapheme_base.c: New file.
44924         * lib/unictype/pr_grapheme_extend.c: New file.
44925         * lib/unictype/pr_grapheme_link.c: New file.
44926         * lib/unictype/pr_hex_digit.c: New file.
44927         * lib/unictype/pr_hyphen.c: New file.
44928         * lib/unictype/pr_id_continue.c: New file.
44929         * lib/unictype/pr_id_start.c: New file.
44930         * lib/unictype/pr_ideographic.c: New file.
44931         * lib/unictype/pr_ids_binary_operator.c: New file.
44932         * lib/unictype/pr_ids_trinary_operator.c: New file.
44933         * lib/unictype/pr_ignorable_control.c: New file.
44934         * lib/unictype/pr_iso_control.c: New file.
44935         * lib/unictype/pr_join_control.c: New file.
44936         * lib/unictype/pr_left_of_pair.c: New file.
44937         * lib/unictype/pr_line_separator.c: New file.
44938         * lib/unictype/pr_logical_order_exception.c: New file.
44939         * lib/unictype/pr_lowercase.c: New file.
44940         * lib/unictype/pr_math.c: New file.
44941         * lib/unictype/pr_non_break.c: New file.
44942         * lib/unictype/pr_not_a_character.c: New file.
44943         * lib/unictype/pr_numeric.c: New file.
44944         * lib/unictype/pr_other_alphabetic.c: New file.
44945         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44946         * lib/unictype/pr_other_grapheme_extend.c: New file.
44947         * lib/unictype/pr_other_id_continue.c: New file.
44948         * lib/unictype/pr_other_id_start.c: New file.
44949         * lib/unictype/pr_other_lowercase.c: New file.
44950         * lib/unictype/pr_other_math.c: New file.
44951         * lib/unictype/pr_other_uppercase.c: New file.
44952         * lib/unictype/pr_paired_punctuation.c: New file.
44953         * lib/unictype/pr_paragraph_separator.c: New file.
44954         * lib/unictype/pr_pattern_syntax.c: New file.
44955         * lib/unictype/pr_pattern_white_space.c: New file.
44956         * lib/unictype/pr_private_use.c: New file.
44957         * lib/unictype/pr_punctuation.c: New file.
44958         * lib/unictype/pr_quotation_mark.c: New file.
44959         * lib/unictype/pr_radical.c: New file.
44960         * lib/unictype/pr_sentence_terminal.c: New file.
44961         * lib/unictype/pr_soft_dotted.c: New file.
44962         * lib/unictype/pr_space.c: New file.
44963         * lib/unictype/pr_terminal_punctuation.c: New file.
44964         * lib/unictype/pr_test.c: New file.
44965         * lib/unictype/pr_titlecase.c: New file.
44966         * lib/unictype/pr_unassigned_code_value.c: New file.
44967         * lib/unictype/pr_unified_ideograph.c: New file.
44968         * lib/unictype/pr_uppercase.c: New file.
44969         * lib/unictype/pr_variation_selector.c: New file.
44970         * lib/unictype/pr_white_space.c: New file.
44971         * lib/unictype/pr_xid_continue.c: New file.
44972         * lib/unictype/pr_xid_start.c: New file.
44973         * lib/unictype/pr_zero_width.c: New file.
44974         * lib/unictype/scripts.c: New file.
44975         * lib/unictype/sy_c_ident.c: New file.
44976         * lib/unictype/sy_c_whitespace.c: New file.
44977         * lib/unictype/sy_java_ident.c: New file.
44978         * lib/unictype/sy_java_whitespace.c: New file.
44979
44980         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44981         Unicode 5.0.0.
44982         * lib/unictype/blocks.h: Likewise.
44983         * lib/unictype/categ_C.h: Likewise.
44984         * lib/unictype/categ_Cc.h: Likewise.
44985         * lib/unictype/categ_Cf.h: Likewise.
44986         * lib/unictype/categ_Cn.h: Likewise.
44987         * lib/unictype/categ_Co.h: Likewise.
44988         * lib/unictype/categ_Cs.h: Likewise.
44989         * lib/unictype/categ_L.h: Likewise.
44990         * lib/unictype/categ_Ll.h: Likewise.
44991         * lib/unictype/categ_Lm.h: Likewise.
44992         * lib/unictype/categ_Lo.h: Likewise.
44993         * lib/unictype/categ_Lt.h: Likewise.
44994         * lib/unictype/categ_Lu.h: Likewise.
44995         * lib/unictype/categ_M.h: Likewise.
44996         * lib/unictype/categ_Mc.h: Likewise.
44997         * lib/unictype/categ_Me.h: Likewise.
44998         * lib/unictype/categ_Mn.h: Likewise.
44999         * lib/unictype/categ_N.h: Likewise.
45000         * lib/unictype/categ_Nd.h: Likewise.
45001         * lib/unictype/categ_Nl.h: Likewise.
45002         * lib/unictype/categ_No.h: Likewise.
45003         * lib/unictype/categ_P.h: Likewise.
45004         * lib/unictype/categ_Pc.h: Likewise.
45005         * lib/unictype/categ_Pd.h: Likewise.
45006         * lib/unictype/categ_Pe.h: Likewise.
45007         * lib/unictype/categ_Pf.h: Likewise.
45008         * lib/unictype/categ_Pi.h: Likewise.
45009         * lib/unictype/categ_Po.h: Likewise.
45010         * lib/unictype/categ_Ps.h: Likewise.
45011         * lib/unictype/categ_S.h: Likewise.
45012         * lib/unictype/categ_Sc.h: Likewise.
45013         * lib/unictype/categ_Sk.h: Likewise.
45014         * lib/unictype/categ_Sm.h: Likewise.
45015         * lib/unictype/categ_So.h: Likewise.
45016         * lib/unictype/categ_Z.h: Likewise.
45017         * lib/unictype/categ_Zl.h: Likewise.
45018         * lib/unictype/categ_Zp.h: Likewise.
45019         * lib/unictype/categ_Zs.h: Likewise.
45020         * lib/unictype/categ_of.h: Likewise.
45021         * lib/unictype/combining.h: Likewise.
45022         * lib/unictype/ctype_alnum.h: Likewise.
45023         * lib/unictype/ctype_alpha.h: Likewise.
45024         * lib/unictype/ctype_blank.h: Likewise.
45025         * lib/unictype/ctype_cntrl.h: Likewise.
45026         * lib/unictype/ctype_digit.h: Likewise.
45027         * lib/unictype/ctype_graph.h: Likewise.
45028         * lib/unictype/ctype_lower.h: Likewise.
45029         * lib/unictype/ctype_print.h: Likewise.
45030         * lib/unictype/ctype_punct.h: Likewise.
45031         * lib/unictype/ctype_space.h: Likewise.
45032         * lib/unictype/ctype_upper.h: Likewise.
45033         * lib/unictype/ctype_xdigit.h: Likewise.
45034         * lib/unictype/decdigit.h: Likewise.
45035         * lib/unictype/digit.h: Likewise.
45036         * lib/unictype/mirror.h: Likewise.
45037         * lib/unictype/numeric.h: Likewise.
45038         * lib/unictype/pr_alphabetic.h: Likewise.
45039         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45040         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45041         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45042         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45043         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45044         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45045         * lib/unictype/pr_bidi_control.h: Likewise.
45046         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45047         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45048         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45049         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45050         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45051         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45052         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45053         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45054         * lib/unictype/pr_bidi_pdf.h: Likewise.
45055         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45056         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45057         * lib/unictype/pr_combining.h: Likewise.
45058         * lib/unictype/pr_composite.h: Likewise.
45059         * lib/unictype/pr_currency_symbol.h: Likewise.
45060         * lib/unictype/pr_dash.h: Likewise.
45061         * lib/unictype/pr_decimal_digit.h: Likewise.
45062         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45063         * lib/unictype/pr_deprecated.h: Likewise.
45064         * lib/unictype/pr_diacritic.h: Likewise.
45065         * lib/unictype/pr_extender.h: Likewise.
45066         * lib/unictype/pr_format_control.h: Likewise.
45067         * lib/unictype/pr_grapheme_base.h: Likewise.
45068         * lib/unictype/pr_grapheme_extend.h: Likewise.
45069         * lib/unictype/pr_grapheme_link.h: Likewise.
45070         * lib/unictype/pr_hex_digit.h: Likewise.
45071         * lib/unictype/pr_hyphen.h: Likewise.
45072         * lib/unictype/pr_id_continue.h: Likewise.
45073         * lib/unictype/pr_id_start.h: Likewise.
45074         * lib/unictype/pr_ideographic.h: Likewise.
45075         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45076         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45077         * lib/unictype/pr_ignorable_control.h: Likewise.
45078         * lib/unictype/pr_iso_control.h: Likewise.
45079         * lib/unictype/pr_join_control.h: Likewise.
45080         * lib/unictype/pr_left_of_pair.h: Likewise.
45081         * lib/unictype/pr_line_separator.h: Likewise.
45082         * lib/unictype/pr_logical_order_exception.h: Likewise.
45083         * lib/unictype/pr_lowercase.h: Likewise.
45084         * lib/unictype/pr_math.h: Likewise.
45085         * lib/unictype/pr_non_break.h: Likewise.
45086         * lib/unictype/pr_not_a_character.h: Likewise.
45087         * lib/unictype/pr_numeric.h: Likewise.
45088         * lib/unictype/pr_other_alphabetic.h: Likewise.
45089         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45090         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45091         * lib/unictype/pr_other_id_continue.h: Likewise.
45092         * lib/unictype/pr_other_id_start.h: Likewise.
45093         * lib/unictype/pr_other_lowercase.h: Likewise.
45094         * lib/unictype/pr_other_math.h: Likewise.
45095         * lib/unictype/pr_other_uppercase.h: Likewise.
45096         * lib/unictype/pr_paired_punctuation.h: Likewise.
45097         * lib/unictype/pr_paragraph_separator.h: Likewise.
45098         * lib/unictype/pr_pattern_syntax.h: Likewise.
45099         * lib/unictype/pr_pattern_white_space.h: Likewise.
45100         * lib/unictype/pr_private_use.h: Likewise.
45101         * lib/unictype/pr_punctuation.h: Likewise.
45102         * lib/unictype/pr_quotation_mark.h: Likewise.
45103         * lib/unictype/pr_radical.h: Likewise.
45104         * lib/unictype/pr_sentence_terminal.h: Likewise.
45105         * lib/unictype/pr_soft_dotted.h: Likewise.
45106         * lib/unictype/pr_space.h: Likewise.
45107         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45108         * lib/unictype/pr_titlecase.h: Likewise.
45109         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45110         * lib/unictype/pr_unified_ideograph.h: Likewise.
45111         * lib/unictype/pr_uppercase.h: Likewise.
45112         * lib/unictype/pr_variation_selector.h: Likewise.
45113         * lib/unictype/pr_white_space.h: Likewise.
45114         * lib/unictype/pr_xid_continue.h: Likewise.
45115         * lib/unictype/pr_xid_start.h: Likewise.
45116         * lib/unictype/pr_zero_width.h: Likewise.
45117         * lib/unictype/scripts.h: Likewise.
45118         * lib/unictype/scripts_byname.gperf: Likewise.
45119         * lib/unictype/sy_c_ident.h: Likewise.
45120         * lib/unictype/sy_c_whitespace.h: Likewise.
45121         * lib/unictype/sy_java_ident.h: Likewise.
45122         * lib/unictype/sy_java_whitespace.h: Likewise.
45123
45124         * lib/unictype/Makefile: New file.
45125         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45126         glibc.
45127         * lib/unictype/3level.h: New file, copied from glibc.
45128         * lib/unictype/3levelbit.h: New file.
45129
45130 2007-11-11  Bruno Haible  <bruno@clisp.org>
45131
45132         * modules/gperf: New file.
45133         * modules/iconv_open (Depends-on): Add it.
45134         (Makefile.am): Remove the GPERF definition.
45135
45136 2007-11-11  Bruno Haible  <bruno@clisp.org>
45137
45138         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45139         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45140
45141 2007-11-11  Bruno Haible  <bruno@clisp.org>
45142
45143         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45144         (usage): Remove function.
45145
45146 2007-11-11  Bruno Haible  <bruno@clisp.org>
45147
45148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45149         gl_FUNC_CEILF_LIBS.
45150         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45151         gl_FUNC_CEIL_LIBS.
45152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45153         gl_FUNC_CEILL_LIBS.
45154         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45155         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45156         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45157
45158 2007-11-11  Bruno Haible  <bruno@clisp.org>
45159
45160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45161         roundf were declared but do not exist on functions.
45162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45163         roundl were declared but do not exist on functions.
45164         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45165         HAVE_FLOORL_AND_CEILL, respectively.
45166         Needed for Sun C on Solaris 10.
45167
45168 2007-11-11  Bruno Haible  <bruno@clisp.org>
45169
45170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45171         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45172         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45173         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45174         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45175         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45176         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45177         HAVE_DECL_ROUNDF.
45178         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45179         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45181         of HAVE_DECL_ROUND*.
45182         * modules/math (Makefile.am): Update.
45183
45184 2007-11-10  Bruno Haible  <bruno@clisp.org>
45185
45186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45187         ptrdiff_t as m4/intl.m4.
45188
45189 2007-11-10  Jim Meyering  <meyering@redhat.com>
45190
45191         Avoid link failure for the argmatch test.
45192         * tests/test-argmatch.c (usage): Define function to avoid a link
45193         failure: argmatch_die requires a usage function.
45194
45195 2007-11-09  Bruno Haible  <bruno@clisp.org>
45196
45197         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45198         * doc/functions/vsnprintf.texi: Likewise.
45199         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45200         with a size argument < 2.
45201
45202 2007-11-09  Bruno Haible  <bruno@clisp.org>
45203
45204         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45205         buffer. Fixes an inefficiency introduced on 2007-11-03.
45206
45207 2007-11-09  Bruno Haible  <bruno@clisp.org>
45208
45209         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45210         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45211
45212 2007-11-08  Jim Meyering  <meyering@redhat.com>
45213
45214         Change cache variable name prefix "jm_" to "gl_" everywhere.
45215         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45216         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45217         * m4/uptime.m4: s/gl_/jm_/
45218
45219 2007-11-07  Bruno Haible  <bruno@clisp.org>
45220
45221         Update to GNU gettext 0.17.
45222         * m4/intl.m4: Update to GNU gettext 0.17.
45223         * m4/po.m4: Likewise.
45224         * modules/gettext (Files): Remove m4/ulonglong.m4.
45225         (configure.ac): Require gettext infrastructure from version 0.17.
45226
45227 2007-11-06  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45230         symbolic values are not defined in a public header.
45231         * lib/freadable.c (freadable) [QNX]: Likewise.
45232         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45233         * lib/freading.c (freading) [QNX]: Likewise.
45234         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45235         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45236         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45237         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45238         Reported by Alain Magloire.
45239
45240         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45241
45242 2007-11-05  Bruno Haible  <bruno@clisp.org>
45243
45244         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45245         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45246         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45247         Reported by Eric Blake.
45248
45249 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45250             Bruno Haible  <bruno@clisp.org>
45251
45252         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45253         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45254         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45255         (malloc): Undefine also before including <stdlib.h>.
45256         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45257         Needed on OSF/1 4.0.
45258
45259 2007-11-05  Jim Meyering  <meyering@redhat.com>
45260
45261         git-version-gen: sync from coreutils.
45262         * build-aux/git-version-gen: Add comments.
45263         Change the first '-' to '.' in the snapshot version string,
45264         e.g., 6.9-377-08144 -> 6.9.377-08144
45265         Remove first parameter.
45266         Don't declare a version "-dirty" merely because a time
45267         stamp has changed.
45268
45269 2007-11-04  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/lock.h: Protect all macro definitions containing an 'if'
45272         statement through a "do { ... } while (0)".
45273         * lib/tls.h: Likewise.
45274
45275 2007-11-04  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45278
45279 2007-11-04  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45282         * modules/fprintf-posix (Depends-on): Add nocrash.
45283         * modules/snprintf-posix (Depends-on): Likewise.
45284         * modules/sprintf-posix (Depends-on): Likewise.
45285         * modules/vasnprintf-posix (Depends-on): Likewise.
45286         * modules/vasprintf-posix (Depends-on): Likewise.
45287         * modules/vfprintf-posix (Depends-on): Likewise.
45288         * modules/vsnprintf-posix (Depends-on): Likewise.
45289         * modules/vsprintf-posix (Depends-on): Likewise.
45290         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45292         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45293         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45294         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45295         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45296         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45297
45298 2007-11-04  Bruno Haible  <bruno@clisp.org>
45299
45300         * modules/nocrash: New file.
45301         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45302         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45303
45304 2007-11-04  Bruno Haible  <bruno@clisp.org>
45305
45306         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45307         precision handling.
45308         * tests/test-vasprintf-posix.c (test_function): Likewise.
45309         * tests/test-snprintf-posix.h (test_function): Likewise.
45310         * tests/test-sprintf-posix.h (test_function): Likewise.
45311
45312         Fix *printf behaviour for large precisions on mingw and BeOS.
45313         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45314         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45316         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45317         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45318         gl_PRINTF_PRECISION and test its result. Invoke
45319         gl_PREREQ_VASNPRINTF_PRECISION.
45320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45327         * doc/functions/fprintf.texi: Update.
45328         * doc/functions/printf.texi: Update.
45329         * doc/functions/snprintf.texi: Update.
45330         * doc/functions/sprintf.texi: Update.
45331         * doc/functions/vfprintf.texi: Update.
45332         * doc/functions/vprintf.texi: Update.
45333         * doc/functions/vsnprintf.texi: Update.
45334         * doc/functions/vsprintf.texi: Update.
45335
45336 2007-11-04  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45339
45340 2007-11-04  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45343         Reported by Sylvain Beucler <beuc@gnu.org>.
45344
45345 2007-11-03  Bruno Haible  <bruno@clisp.org>
45346
45347         * tests/test-fprintf-posix2.sh: New file.
45348         * tests/test-fprintf-posix2.c: New file.
45349         * modules/fprintf-posix-tests (Files): Add them.
45350         (TESTS): Add test-fprintf-posix2.sh.
45351         (configure.ac): Check for getrlimit and setrlimit.
45352         (check_PROGRAMS): Add test-fprintf-posix2.
45353
45354         * tests/test-printf-posix2.sh: New file.
45355         * tests/test-printf-posix2.c: New file.
45356         * modules/printf-posix-tests (Files): Add them.
45357         (TESTS): Add test-printf-posix2.sh.
45358         (configure.ac): Check for getrlimit and setrlimit.
45359         (check_PROGRAMS): Add test-printf-posix2.
45360
45361         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45362         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45363         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45364         (decode_double): New function, copied from decode_long_double.
45365         (scale10_round_decimal_decoded): New function, extracted from
45366         scale10_round_decimal_long_double.
45367         (scale10_round_decimal_long_double): Use it.
45368         (scale10_round_decimal_double): New function.
45369         (floorlog10): New function.
45370         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45372         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45374         gl_PRINTF_ENOMEM and test its result. Invoke
45375         gl_PREREQ_VASNPRINTF_ENOMEM.
45376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45383         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45384         * modules/snprintf-posix (Depends-on): Likewise.
45385         * modules/sprintf-posix (Depends-on): Likewise.
45386         * modules/vasnprintf-posix (Depends-on): Likewise.
45387         * modules/vasprintf-posix (Depends-on): Likewise.
45388         * modules/vfprintf-posix (Depends-on): Likewise.
45389         * modules/vsnprintf-posix (Depends-on): Likewise.
45390         * modules/vsprintf-posix (Depends-on): Likewise.
45391         * doc/functions/fprintf.texi: Update.
45392         * doc/functions/printf.texi: Update.
45393         * doc/functions/snprintf.texi: Update.
45394         * doc/functions/sprintf.texi: Update.
45395         * doc/functions/vfprintf.texi: Update.
45396         * doc/functions/vprintf.texi: Update.
45397         * doc/functions/vsnprintf.texi: Update.
45398         * doc/functions/vsprintf.texi: Update.
45399
45400 2007-11-03  Bruno Haible  <bruno@clisp.org>
45401
45402         * modules/frexp-nolibm-tests: New file.
45403
45404         * modules/frexp-nolibm: New file.
45405         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45406
45407 2007-11-03  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45410         value is C99 compliant.
45411         Needed for OSF/1 5.1.
45412
45413 2007-11-03  Bruno Haible  <bruno@clisp.org>
45414
45415         Fix out-of-memory handling of vasnprintf.
45416         * lib/printf-parse.c: Include <errno.h>.
45417         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45418         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45419         is already set.
45420
45421 2007-11-02  Eric Blake  <ebb9@byu.net>
45422
45423         Fix tests on cygwin.
45424         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45425
45426 2007-11-01  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45429         warning.
45430         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45431         needed for POSIX compatibility.
45432
45433 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45434
45435         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45436         for compatibility with GNU.
45437
45438 2007-11-01  Bruno Haible  <bruno@clisp.org>
45439
45440         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45441         (putenv): Renamed from rpl_putenv. Change argument type from
45442         'const char *' to 'char *'.
45443         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45444         of defining putenv in config.h, just set REPLACE_PUTENV.
45445         * modules/putenv (Depends-on): Add stdlib.
45446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45447         (Include): Use <stdlib.h>.
45448         * lib/stdlib.in.h (putenv): New declaration.
45449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45450         REPLACE_PUTENV.
45451         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45452         REPLACE_PUTENV.
45453         Needed for MacOS X 10.5.0.
45454         Reported by Peter O'Gorman <peter@pogma.com>.
45455
45456 2007-11-01  Jim Meyering  <meyering@redhat.com>
45457
45458         Treat an empty date string exactly like "0".
45459         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45460         if the remaining date string (to be parsed) is empty, use "0".
45461         Reported by Mischa Molhoek and discussed in this thread:
45462         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45463
45464 2007-10-31  Bruno Haible  <bruno@clisp.org>
45465
45466         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45467         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45468         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45469         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45470         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45471         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45472
45473 2007-10-31  Bruno Haible  <bruno@clisp.org>
45474
45475         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45476         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45477         (AC_TYPE_LONG_LONG_INT): Use it.
45478         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45479         it as well.
45480         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45481         to m4/longlong.m4.
45482         * modules/stdint (Files): Remove m4/ulonglong.m4.
45483         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45484         m4/ulonglong.m4.
45485         * modules/strtoumax (Files): Likewise.
45486
45487 2007-10-30  Bruno Haible  <bruno@clisp.org>
45488
45489         * modules/xvasprintf-posix: New file.
45490         Suggested by Eric Blake.
45491
45492 2007-10-30  Bruno Haible  <bruno@clisp.org>
45493
45494         * modules/xprintf-posix-tests: New file.
45495         * tests/test-xprintf-posix.sh: New file.
45496         * tests/test-xprintf-posix.c: New file.
45497         * tests/test-xfprintf-posix.c: New file.
45498
45499         * modules/xprintf-posix: New file.
45500
45501 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45502
45503         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45504         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45505         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45506
45507 2007-10-29  Bruno Haible  <bruno@clisp.org>
45508
45509         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45510         contain the special marker '_cv_'.
45511         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45512         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45513         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45515         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45516         Reported by Ralf Wildenhues.
45517
45518 2007-10-29  Bruno Haible  <bruno@clisp.org>
45519
45520         * gnulib-tool (func_import): When --lgpl is not specified, set
45521         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45522         GPLv3.
45523         Reported by Simon Josefsson.
45524
45525 2007-10-28  Bruno Haible  <bruno@clisp.org>
45526
45527         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45528         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45529         HAVE_DECL_ISFINITE.
45530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45531         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45532         HAVE_DECL_ISFINITE.
45533
45534 2007-10-28  Bruno Haible  <bruno@clisp.org>
45535
45536         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45537         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45538
45539 2007-10-28  Bruno Haible  <bruno@clisp.org>
45540
45541         Fix link errors with Sun C 5.0 on Solaris 10.
45542         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45543         function is declared but not present in the compiler's libm.
45544         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45545         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45546         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45547         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45548         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45549         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45550         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45552         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45553         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45554         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45555         HAVE_DECL_FLOORL.
45556
45557 2007-10-28  Bruno Haible  <bruno@clisp.org>
45558
45559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45560         gl_FUNC_FLOORL. Cache the result.
45561         (gl_FUNC_FLOORL): Use it.
45562         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45563         gl_FUNC_CEILL. Cache the result.
45564         (gl_FUNC_CEILL): Use it.
45565
45566         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45567         gl_FUNC_FLOOR. Cache the result.
45568         (gl_FUNC_FLOOR): Use it.
45569         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45570         gl_FUNC_CEIL. Cache the result.
45571         (gl_FUNC_CEIL): Use it.
45572
45573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45574         gl_FUNC_FLOORF. Cache the result.
45575         (gl_FUNC_FLOORF): Use it.
45576         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45577         gl_FUNC_CEILF. Cache the result.
45578         (gl_FUNC_CEILF): Use it.
45579
45580 2007-10-28  Bruno Haible  <bruno@clisp.org>
45581
45582         * gnulib-tool: Allow specifying the LGPL version number through
45583         --lgpl=2 or --lgpl=3.
45584         (func_usage): Document --lgpl with argument.
45585         Handle --lgpl=... arguments.
45586         (func_import): Recognize also gl_LGPL calls with an argument. When
45587         --lgpl=2 is used and the module's license is just LGPL, report an
45588         error. Set sed_transform_lib_file according to the lgpl variable. In
45589         the generated files, use --lgpl or gl_LGPL invocations with argument,
45590         if necessary.
45591         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45592         an LGPv2+ license.
45593         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45594         gl_LGPL macro.
45595
45596 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45597             Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45600         (u16_uctomb_aux): Likewise.
45601         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45602         !HAVE_INLINE.
45603         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45604
45605 2007-10-28  Bruno Haible  <bruno@clisp.org>
45606
45607         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45608         Invoke AM_GETTEXT_OPTION if it exists.
45609         * modules/vasprintf: Likewise.
45610         * modules/verror: Likewise.
45611         * modules/xprintf: Likewise.
45612         * modules/xvasprintf: Likewise.
45613
45614 2007-10-27  Ben Pfaff  <blp@gnu.org>
45615
45616         * lib/math.in.h: Define isfinite macro and prototypes for
45617         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45618         implementations.
45619         * m4/math_h.m4: New substitutions for isfinite module.
45620         * lib/isfinite.c: New file.
45621         * m4/isfinite.m4: New file.
45622         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45623         * modules/isfinite: New file.
45624         * modules/isfinite-tests: New file.
45625         * tests/tests-isfinite.c: New file.
45626         * doc/functions/isfinite.texi: Mention isfinite module.
45627         * MODULES.html.sh: Mention new module.
45628
45629 2007-10-27  Ben Pfaff  <blp@gnu.org>
45630
45631         Ralf Wildenhues reported that Tru64 4.0D declares the round
45632         functions but does not have definitions.
45633         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45634         cannot be found in any library, set the output variable to
45635         "missing" instead of "".
45636         * m4/round.m4: Also use our substitute if we cannot find round in
45637         any library, even if it is declared.
45638         * m4/roundf.m4: Likewise for roundf.
45639         * m4/roundl.m4: Likewise for roundl.
45640         * lib/math.in.h: Undefine roundf, round, roundl before defining
45641         their replacements, to allow for hypothetical systems where these
45642         may be defined as macros but not available in libraries.
45643
45644 2007-10-27  Bruno Haible  <bruno@clisp.org>
45645
45646         * doc/gnulib.texi: Invoke @firstparagraphindent.
45647         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45648         changes in gnulib.
45649         (Source changes): New section.
45650
45651 2007-10-26  Bruno Haible  <bruno@clisp.org>
45652
45653         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45654         borrowed from autoconf.
45655
45656 2007-10-26  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45659         strerror returned the empty string. Needed on HP-UX 11.00.
45660
45661 2007-10-24  Micah Cowan  <micah@cowan.name>
45662
45663         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45664         * build-aux/bootstrap: Remove support for now-unnecessary option,
45665         --cvs-user, and envvars CVS_USER, CVS_RSH.
45666
45667 2007-10-24  Jim Meyering  <meyering@redhat.com>
45668
45669         Avoid diagnostics from sha1sum when there is no cached checksum.
45670         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45671         if the po.s1 file hasn't been created yet.
45672
45673         * build-aux/bootstrap: Sync from coreutils:
45674         2007-10-24  Jim Meyering  <meyering@redhat.com>
45675         Get gnulib from the git repository, not from an obsolete cvs one.
45676         * build-aux/bootstrap: Suggestion from Micah Cowan.
45677         2007-10-04  Jim Meyering  <jim@meyering.net>
45678         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45679         (update_po_files): Work also when there are no .po files in po/.
45680
45681 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45682
45683         * README: Append ".git" to git and cg examples.
45684         Problem reported by Benoit Sigoure.
45685
45686 2007-10-23  Micah Cowan  <micah@cowan.name>
45687
45688         * users.txt: Add wget.
45689
45690 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45691
45692         Fix linking of some unistdio tests on FreeBSD.
45693         * modules/unistdio/u16-vsnprintf-tests
45694         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45695         * modules/unistdio/u16-vsprintf-tests
45696         (test_u16_vsnprintf1_LDADD): Likewise.
45697         * modules/unistdio/u32-vsnprintf-tests
45698         (test_u32_vsnprintf1_LDADD): Likewise.
45699         * modules/unistdio/u32-vsprintf-tests
45700         (test_u32_vsprintf1_LDADD): Likewise.
45701         * modules/unistdio/u8-vsnprintf-tests
45702         (test_u8_vsnprintf1_LDADD): Likewise.
45703         * modules/unistdio/u8-vsprintf-tests
45704         (test_u8_vsprintf1_LDADD): Likewise.
45705         * modules/unistdio/ulc-vsnprintf-tests
45706         (test_ulc_vsnprintf1_LDADD): Likewise.
45707         * modules/unistdio/ulc-vsprintf-tests
45708         (test_ulc_vsprintf1_LDADD): Likewise.
45709
45710         Fix linking of some uniconv tests on FreeBSD.
45711         * modules/uniconv/u16-conv-from-enc-tests
45712         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45713         * modules/uniconv/u16-conv-to-enc-tests
45714         (test_u16_conv_to_enc_LDADD): Likewise.
45715         * modules/uniconv/u16-strconv-from-enc-tests
45716         (test_u16_strconv_from_enc_LDADD): Likewise.
45717         * modules/uniconv/u16-strconv-to-enc-tests
45718         (test_u16_strconv_to_enc_LDADD): Likewise.
45719         * modules/uniconv/u32-conv-from-enc-tests
45720         (test_u32_conv_from_enc_LDADD): Likewise.
45721         * modules/uniconv/u32-conv-to-enc-tests
45722         (test_u32_conv_to_enc_LDADD): Likewise.
45723         * modules/uniconv/u32-strconv-from-enc-tests
45724         (test_u32_strconv_from_enc_LDADD): Likewise.
45725         * modules/uniconv/u32-strconv-to-enc-tests
45726         (test_u32_strconv_to_enc_LDADD): Likewise.
45727         * modules/uniconv/u8-conv-from-enc-tests
45728         (test_u8_conv_from_enc_LDADD): Likewise.
45729         * modules/uniconv/u8-conv-to-enc-tests
45730         (test_u8_conv_to_enc_LDADD): Likewise.
45731         * modules/uniconv/u8-strconv-from-enc-tests
45732         (test_u8_strconv_from_enc_LDADD): Likewise.
45733         * modules/uniconv/u8-strconv-to-enc-tests
45734         (test_u8_strconv_to_enc_LDADD): Likewise.
45735
45736 2007-10-22  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45739         size.
45740
45741 2007-10-22  Eric Blake  <ebb9@byu.net>
45742
45743         Tweak x*printf documentation.
45744         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45745         variable name and comments.
45746         Suggested by Bruno Haible.
45747
45748 2007-10-22  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/acl.c (copy_acl): Fix file name in comment.
45751
45752 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45753
45754         Fix Tru64 problem with stdbool.h.
45755         * lib/stdbool.in.h (false, true):
45756         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45757         Don't declare as an enum in this situation; it runs afoul of Tru64.
45758         Problem reported by Steven M. Schweda in
45759         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45760
45761 2007-10-22  Eric Blake  <ebb9@byu.net>
45762
45763         Also wrap vf?printf.
45764         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45765         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45766         (xvprintf, xvfprintf): New functions.
45767
45768 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45769
45770         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45771         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45772
45773         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45774         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45775
45776 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45777
45778         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45779         by Bruno Haible.
45780
45781 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45782
45783         * lib/getloadavg.c
45784         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45785         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45786
45787         * tests/test-i-ring.c: Work for C89.
45788
45789 2007-10-22  Bruno Haible  <bruno@clisp.org>
45790
45791         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45792         -1u, in preprocessor expression, so that we don't test for the bug
45793         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45795
45796 2007-10-22  Eric Blake  <ebb9@byu.net>
45797
45798         * tests/test-yesno.sh: Silence stderr during test.
45799
45800 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45801
45802         * modules/crypto/gc-camellia: New file.
45803
45804         * m4/gc-camellia.m4: New file.
45805
45806         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45807
45808         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45809
45810 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45811
45812         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45813         --help to stdout.  Reported by sms@antinode.org (Steven
45814         M. Schweda).
45815
45816 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45817
45818         * users.txt: Fix link to libksba.
45819
45820 2007-10-21  Ben Pfaff  <blp@gnu.org>
45821
45822         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45823         round.c roundf implementation that depends on floorf and ceilf to
45824         be tested unconditionally.
45825
45826 2007-10-21  Ben Pfaff  <blp@gnu.org>
45827
45828         * m4/check-libm-func.m4: Removed.
45829         * m4/check-math-lib.m4: New file.
45830         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45831         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45832         definition and lack of AC_LIBOBJ([roundf]).
45833         * m4/roundl.m4: Ditto, and similarly for roundl.
45834         * modules/round: Reference new m4 file.
45835         * modules/roundf: Ditto.
45836         * modules/roundl: Ditto.
45837         * tests/test-round2.c (main): Use ROUND instead of round.
45838         Bug report from Bruno Haible.
45839
45840 2007-10-21  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45843         context.
45844
45845 2007-10-21  Bruno Haible  <bruno@clisp.org>
45846
45847         * tests/test-wcwidth.c (main): Allow negative result for some control
45848         characters.
45849
45850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45851         Needed on OSF/1 5.1.
45852
45853 2007-10-21  Bruno Haible  <bruno@clisp.org>
45854
45855         * tests/test-floorf1.c: Include isnanf.h.
45856         (main): Use isnanf() instead of isnan().
45857         * tests/test-ceilf1.c: Include isnanf.h.
45858         (main): Use isnanf() instead of isnan().
45859         * tests/test-truncf1.c: Include isnanf.h.
45860         (main): Use isnanf() instead of isnan().
45861         * tests/test-roundf1.c: Include isnanf.h.
45862         (main): Use isnanf() instead of isnan().
45863
45864 2007-10-21  Eric Blake  <ebb9@byu.net>
45865
45866         * users.txt: Update URL for m4.
45867
45868 2007-10-21  Bruno Haible  <bruno@clisp.org>
45869
45870         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45871
45872 2007-10-21  Bruno Haible  <bruno@clisp.org>
45873
45874         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45875         Git's management files if the CVS files are not present.
45876
45877 2007-10-20  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45880         gcc-3.4.x.
45881
45882 2007-10-20  Ben Pfaff  <blp@gnu.org>
45883
45884         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45885         implementations.
45886         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45887         * lib/round.c: New file.
45888         * lib/roundf.c: New file.
45889         * lib/roundl.c: New file.
45890         * m4/round.m4: New file.
45891         * m4/roundf.m4: New file.
45892         * m4/roundl.m4: New file.
45893         * m4/check-libm-func-m4: New file.
45894         * modules/math: Replace round, roundf, roundl related @VARS@ in
45895         math.in.h.
45896         * modules/round: New file.
45897         * modules/round-tests: New file.
45898         * modules/roundf: New file.
45899         * modules/roundf-tests: New file.
45900         * modules/roundl: New file.
45901         * modules/roundl-tests: New file.
45902         * tests/test-round1.c: New file.
45903         * tests/test-round2.c: New file.
45904         * tests/test-roundf1.c: New file.
45905         * tests/test-roundf2.c: New file.
45906         * tests/test-roundl.c: New file.
45907         * doc/functions/round.texi: Mention round module.
45908         * doc/functions/roundf.texi: Mention roundf module.
45909         * doc/functions/roundl.texi: Mention roundl module.
45910         * MODULES.html.sh: Mention new modules.
45911         Thanks to Bruno Haible for suggestions.
45912
45913 2007-10-20  Jim Meyering  <meyering@redhat.com>
45914
45915         * lib/xprintf.c: Include <config.h> unconditionally.
45916
45917         Change xprintf's license to GPL.
45918         * modules/xprintf (License): s/LGPL/GPL/, since this module
45919         depends on modules (exit and exitfail) which are GPL.
45920         Suggestion from Bruno Haible.
45921
45922         xprintf fixes.
45923         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45924         Use a clearer diagnostic.
45925         Patch from Bruno Haible.
45926
45927 2007-10-20  Bruno Haible  <bruno@clisp.org>
45928
45929         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45930         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45932
45933 2007-10-20  Bruno Haible  <bruno@clisp.org>
45934
45935         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45936         precision in the comparison result > x - 1 or similar.
45937         * tests/test-ceilf2.c (correct_result_p): Likewise.
45938         * tests/test-truncf2.c (correct_result_p): Likewise.
45939         * tests/test-trunc2.c (correct_result_p): Likewise.
45940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45941
45942 2007-10-20  Bruno Haible  <bruno@clisp.org>
45943
45944         * modules/ceil: New file.
45945         * m4/ceil.m4: New file.
45946         * doc/functions/ceil.texi: Mention the 'ceil' module.
45947
45948 2007-10-20  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/floor: New file.
45951         * m4/floor.m4: New file.
45952         * doc/functions/floor.texi: Mention the 'floor' module.
45953
45954 2007-10-20  Bruno Haible  <bruno@clisp.org>
45955
45956         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45957         of %a.
45958         * modules/floorf-tests (Depends-on): Likewise.
45959         * modules/truncf-tests (Depends-on): Likewise.
45960         * modules/trunc-tests (Depends-on): Likewise.
45961         Reported by Ben Pfaff.
45962
45963 2007-10-19  Jim Meyering  <meyering@redhat.com>
45964
45965         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45966         Don't bother testing specific errno values.  Just test ferror.
45967
45968         New module: xprintf
45969         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45970
45971 2007-10-19  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45974         syntax.
45975         * modules/javaexec (Makefile.am): Likewise.
45976         * modules/relocatable-prog (Makefile.am): Likewise.
45977         Suggested by Jim Meyering.
45978
45979 2007-10-18  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45982         Reported by Jim Meyering.
45983
45984 2007-10-18  Eric Blake  <ebb9@byu.net>
45985
45986         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45987
45988 2007-10-18  Bruno Haible  <bruno@clisp.org>
45989
45990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45991         the format string into writable memory. Needed in Fortify conditions.
45992
45993 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45994             Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45997         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45998         * modules/trim (Depends-on): Add mbchar.
45999         (configure.ac): Add gl_FUNC_MBRTOWC.
46000         (Makefile.am): Augment lib_SOURCES.
46001
46002 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46003
46004         Modify glob.c to use fstatat and dirfd, to simplify it.
46005         Suggested by Eric Blake.
46006         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46007         Don't include <stdbool.h>; not used.
46008         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46009         (link_exists_p): Simplify implementation, since we can now assume
46010         dirfd and fstatat.
46011         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46012
46013 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46014
46015         * gnulib-tool (func_get_dependencies): Fix sed script to
46016         match only tests.
46017
46018 2007-10-17  Bruno Haible  <bruno@clisp.org>
46019
46020         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46021         allow locale names without encoding suffix.
46022         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46024
46025 2007-10-16  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46028         * lib/getgroups.c (getgroups): Likewise.
46029         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46030
46031 2007-10-16  Bruno Haible  <bruno@clisp.org>
46032
46033         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46034         * modules/malloc-posix (License): Likewise.
46035         * modules/realloc-posix (License): Likewise.
46036         * modules/calloc-posix (License): Likewise.
46037         * modules/intprops (License): Change from GPL to LGPL, with
46038         Paul Eggert's approval.
46039
46040 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46041
46042         Merge glibc changes into lib/glob.c.
46043
46044         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46045         2007-10-15 04:59:03 UTC.  Here are the changes:
46046
46047         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46048
46049         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46050
46051         * lib/glob.c: Add some branch prediction throughout.
46052
46053         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46054
46055         [BZ #5103]
46056         * lib/glob.c (glob): Recognize patterns starting \/.
46057
46058         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46059
46060         [BZ #3996]
46061         * lib/glob.c (attribute_hidden): Define if not defined.
46062         (glob): Unescape dirname, filename or username when needed and not
46063         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46064         is NULL.  Handle unescaped [ in pattern without closing ].
46065         Don't pass GLOB_CHECK down to recursive glob for directories.
46066         (__glob_pattern_type): New function.
46067         (__glob_pattern_p): Implement using __glob_pattern_type.
46068         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46069         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46070         Remove unreachable code.
46071
46072         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46073
46074         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46075         explain why there are no leaks.
46076
46077         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46078
46079         [BZ #3253]
46080         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46081         time, rather allocate increasingly bigger arrays of pointers, if
46082         possible with alloca, if too large with malloc.
46083
46084 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46085
46086         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46087         Problem reported by H.Merijn Brand in
46088         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46089         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46090         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46091
46092 2007-10-15  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46095         with explicit rpl_ prefix.
46096         * lib/fopen.c (fopen): Likewise.
46097         * lib/freopen.c (freopen): Likewise.
46098         * lib/iconv.c (iconv): Likewise.
46099         * lib/iconv_close.c (iconv_close): Likewise.
46100
46101 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46102
46103         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46104
46105 2007-10-15  Bruno Haible  <bruno@clisp.org>
46106
46107         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46108         <stddef.h> instead of <stdlib.h> since we only need NULL.
46109         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46110
46111 2007-10-15  Bruno Haible  <bruno@clisp.org>
46112
46113         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46114         Replace paragraph talking about LIBOBJS.
46115         Reported by Colin Watson <cjwatson@debian.org>.
46116
46117 2007-10-15  Bruno Haible  <bruno@clisp.org>
46118
46119         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46120         <stdlib.h> before using NULL.
46121
46122 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46123
46124         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46125         Reported by Albert Chin <china@thewrittenword.com>.
46126
46127 2007-10-14  Bruno Haible  <bruno@clisp.org>
46128
46129         * modules/iconv_open-utf-tests: New file.
46130         * tests/test-iconv-utf.c: New file.
46131
46132         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46133         * modules/iconv_open-utf: New file.
46134         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46135         (iconv, iconv_close): New declarations.
46136         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46137         be defined.
46138         (iconv_open): Add special handling of conversion between UTF-8 and
46139         UTF-{16,32}{BE,LE}.
46140         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46141         * lib/iconv_close.c: New file.
46142         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46143         gl_FUNC_ICONV_OPEN.
46144         (gl_FUNC_ICONV_OPEN): Use it.
46145         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46146         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46147         and REPLACE_ICONV_UTF.
46148         * modules/iconv_open (Depends-on): Add c-strcase.
46149         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46150         ICONV_CONST.
46151         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46152
46153 2007-10-13  Albert Chin  <china@thewrittenword.com>
46154             Bruno Haible  <bruno@clisp.org>
46155
46156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46157         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46158
46159 2007-10-13  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46162         defined, use the ISO C99 inline semantics.
46163         * lib/argp.h (ARGP_EI): Likewise.
46164
46165 2007-10-13  Bruno Haible  <bruno@clisp.org>
46166
46167         Handle 'inline' change in gcc 4.3.0.
46168         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46169         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46170         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46171         argp_fmtstream_point): Disable 'extern' declaration if the function
46172         definition is going to be provided inline.
46173         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46174         semantics, not the ISO C99 inline semantics.
46175         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46176         'extern' declaration if the function definition is going to be provided
46177         inline.
46178         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46179         the GNU C inline semantics, not the ISO C99 inline semantics. With
46180         GCC 4.2, avoid a warning.
46181
46182 2007-10-13  Bruno Haible  <bruno@clisp.org>
46183
46184         * lib/freading.h (freading): Enable the use of __freading for
46185         glibc >= 2.7.
46186         * lib/freading.c (freading): Likewise.
46187
46188 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46189
46190         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46191         "warning: C99 inline functions are not supported; using GNU89".
46192
46193 2007-10-12  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46196         of 2.
46197         * tests/test-ceilf2.c: New file.
46198         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46199
46200         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46201         * modules/ceilf-tests: Update.
46202
46203 2007-10-12  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46206         of 2.
46207         * tests/test-floorf2.c: New file.
46208         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46209
46210         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46211         * modules/floorf-tests: Update.
46212
46213 2007-10-12  Bruno Haible  <bruno@clisp.org>
46214
46215         * tests/test-trunc2.c: New file.
46216         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46217
46218         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46219         * modules/trunc-tests: Update.
46220
46221 2007-10-12  Bruno Haible  <bruno@clisp.org>
46222
46223         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46224         of 2.
46225         * tests/test-truncf2.c: New file.
46226         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46227
46228         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46229         * modules/truncf-tests: Update.
46230
46231 2007-10-11  Eric Blake  <ebb9@byu.net>
46232
46233         Don't claim strerror is broken on Interix.
46234         * doc/functions/strerror.texi (strerror): Known broken systems are
46235         now Solaris 8, and not Interix.
46236         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46237         Interix on cross-compile.
46238         Reported by Martin Koeppe in
46239         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46240
46241 2007-10-11  Bruno Haible  <bruno@clisp.org>
46242
46243         * modules/i-ring-tests: New file.
46244         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46245         instead of assert.
46246
46247 2007-10-11  Bruno Haible  <bruno@clisp.org>
46248
46249         * modules/filenamecat-tests: New file.
46250         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46251         * lib/filenamecat.c: Remove test code.
46252
46253 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46254
46255         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46256
46257         * lib/strerror.c: Include <string.h> always, to test interface,
46258         and to remove the need for the dummy.
46259         Include intprops.h to compute width instead of doing it ourselves
46260         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46261         (strerror): Define it to return NULL if there's no system strerror.
46262         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46263         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46264         ancient pre-strerror Unix systems well any more.  Saying "unknown
46265         system error" is enough.
46266         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46267         simpler strerror.c implementation.
46268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46269         Simplify the tests to reflect the simpler strerror implementation.
46270         * modules/strerror (Depends-on): Add intprops.
46271
46272 2007-10-09  Eric Blake  <ebb9@byu.net>
46273
46274         Silence test-fpending.
46275         * modules/fpending-tests (Files): Add wrapper script.
46276         * tests/test-fpending.sh: New file.
46277
46278 2007-10-09  Bruno Haible  <bruno@clisp.org>
46279
46280         * MODULES.html.sh (func_module): Don't create a hyperlink for
46281         function names like 'printf_frexp'.
46282         (Misc): Add crc, memxor.
46283         (Characteristics of floating types): New section.
46284         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46285         isnanf-nolibm, signbit, trunc, truncf, truncl.
46286         (Enhancements for ISO C 99 functions): New subsection Input/output.
46287         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46288         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46289         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46290         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46291         (Enhancements for POSIX:2001 functions): Add chdir-long.
46292         (File system functions): Add areadlink, chdir-safer, read-file.
46293         Remove cycle-check.
46294         (File system as inode set): New section.
46295         (Date and time): Add gethrxtime.
46296         (Multithreading): Add openmp.
46297         (Internationalization functions): Add localename.
46298         (Unicode string functions): Add unistr/u*-mbsnlen.
46299         (Support for maintaining and releasing projects): Add git-version-gen.
46300         (Lone files): Remove directories.
46301
46302 2007-10-08  Ben Pfaff  <blp@gnu.org>
46303
46304         * lib/xmalloca.h: Fix typo in comment.
46305
46306 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46307
46308         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46309         when avoiding problems with integer overflow.  Use a portable test
46310         instead.
46311
46312 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46313
46314         * modules/dummy (License): Change to LGPLv2+.
46315         * modules/float (License): Likewise
46316         * modules/realloc (License): Likewise
46317         * modules/stdlib (License): Likewise
46318
46319 2007-10-07  Bruno Haible  <bruno@clisp.org>
46320
46321         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46322         * floor.c (TWO_MANT_DIG): Likewise.
46323         * ceil.c (TWO_MANT_DIG): Likewise.
46324         Reported by Ben Pfaff.
46325
46326 2007-10-07  Bruno Haible  <bruno@clisp.org>
46327
46328         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46329         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46330         * lib/frexp.c (FUNC): Likewise.
46331         * lib/printf-frexp.h (printf_frexp): Likewise.
46332         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46333         * lib/printf-frexp.c (FUNC): Likewise.
46334         Suggested by Jim Meyering.
46335
46336 2007-10-07  Jim Meyering  <meyering@redhat.com>
46337
46338         Make xnanosleep's integer overflow test more robust.
46339         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46340         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46341
46342 2007-10-07  Bruno Haible  <bruno@clisp.org>
46343
46344         * NEWS: Mention the license change.
46345
46346         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46347         abbreviations in the modules files.
46348
46349         Change copyright notice from GPLv2+ to GPLv3+.
46350         * README: Change copyright notice.
46351         * MODULES.html.sh: Likewise.
46352         * build-aux/bootstrap.conf: Likewise.
46353         * build-aux/config.libpath: Likewise.
46354         * build-aux/csharpcomp.sh.in: Likewise.
46355         * build-aux/csharpexec.sh.in: Likewise.
46356         * build-aux/install-reloc: Likewise.
46357         * build-aux/javacomp.sh.in: Likewise.
46358         * build-aux/javaexec.sh.in: Likewise.
46359         * build-aux/ldd.sh.in: Likewise.
46360         * build-aux/reloc-ldflags: Likewise.
46361         * build-aux/relocatable.sh.in: Likewise.
46362         * build-aux/x-to-1.in: Likewise.
46363         * check-module: Likewise.
46364         * config/srclistvars.sh: Likewise.
46365         * gnulib-tool: Likewise.
46366         * lib/acl-internal.h: Likewise.
46367         * lib/acl.c: Likewise.
46368         * lib/acl.h: Likewise.
46369         * lib/acl_entries.c: Likewise.
46370         * lib/areadlink-with-size.c: Likewise.
46371         * lib/areadlink.c: Likewise.
46372         * lib/areadlink.h: Likewise.
46373         * lib/argmatch.c: Likewise.
46374         * lib/argmatch.h: Likewise.
46375         * lib/argp-ba.c: Likewise.
46376         * lib/argp-eexst.c: Likewise.
46377         * lib/argp-fmtstream.c: Likewise.
46378         * lib/argp-fmtstream.h: Likewise.
46379         * lib/argp-fs-xinl.c: Likewise.
46380         * lib/argp-help.c: Likewise.
46381         * lib/argp-namefrob.h: Likewise.
46382         * lib/argp-parse.c: Likewise.
46383         * lib/argp-pin.c: Likewise.
46384         * lib/argp-pv.c: Likewise.
46385         * lib/argp-pvh.c: Likewise.
46386         * lib/argp-xinl.c: Likewise.
46387         * lib/argp.h: Likewise.
46388         * lib/at-func.c: Likewise.
46389         * lib/atanl.c: Likewise.
46390         * lib/backupfile.c: Likewise.
46391         * lib/backupfile.h: Likewise.
46392         * lib/basename.c: Likewise.
46393         * lib/binary-io.h: Likewise.
46394         * lib/byteswap.in.h: Likewise.
46395         * lib/c-stack.c: Likewise.
46396         * lib/c-stack.h: Likewise.
46397         * lib/c-strcasestr.c: Likewise.
46398         * lib/c-strcasestr.h: Likewise.
46399         * lib/c-strstr.c: Likewise.
46400         * lib/c-strstr.h: Likewise.
46401         * lib/c-strtod.c: Likewise.
46402         * lib/calloc.c: Likewise.
46403         * lib/canon-host.c: Likewise.
46404         * lib/canon-host.h: Likewise.
46405         * lib/canonicalize-lgpl.c: Likewise.
46406         * lib/canonicalize.c: Likewise.
46407         * lib/canonicalize.h: Likewise.
46408         * lib/ceil.c: Likewise.
46409         * lib/ceilf.c: Likewise.
46410         * lib/ceill.c: Likewise.
46411         * lib/chdir-long.c: Likewise.
46412         * lib/chdir-long.h: Likewise.
46413         * lib/chdir-safer.c: Likewise.
46414         * lib/chdir-safer.h: Likewise.
46415         * lib/chown.c: Likewise.
46416         * lib/classpath.c: Likewise.
46417         * lib/classpath.h: Likewise.
46418         * lib/clean-temp.c: Likewise.
46419         * lib/clean-temp.h: Likewise.
46420         * lib/cloexec.c: Likewise.
46421         * lib/close-stream.c: Likewise.
46422         * lib/closein.c: Likewise.
46423         * lib/closein.h: Likewise.
46424         * lib/closeout.c: Likewise.
46425         * lib/closeout.h: Likewise.
46426         * lib/concat-filename.c: Likewise.
46427         * lib/copy-file.c: Likewise.
46428         * lib/copy-file.h: Likewise.
46429         * lib/count-one-bits.h: Likewise.
46430         * lib/crc.c: Likewise.
46431         * lib/crc.h: Likewise.
46432         * lib/creat-safer.c: Likewise.
46433         * lib/csharpcomp.c: Likewise.
46434         * lib/csharpcomp.h: Likewise.
46435         * lib/csharpexec.c: Likewise.
46436         * lib/csharpexec.h: Likewise.
46437         * lib/cycle-check.c: Likewise.
46438         * lib/cycle-check.h: Likewise.
46439         * lib/diacrit.c: Likewise.
46440         * lib/diacrit.h: Likewise.
46441         * lib/diffseq.h: Likewise.
46442         * lib/dirchownmod.c: Likewise.
46443         * lib/dirent.in.h: Likewise.
46444         * lib/dirfd.c: Likewise.
46445         * lib/dirfd.h: Likewise.
46446         * lib/dirname.c: Likewise.
46447         * lib/dirname.h: Likewise.
46448         * lib/dummy.c: Likewise.
46449         * lib/dup-safer.c: Likewise.
46450         * lib/dup2.c: Likewise.
46451         * lib/eealloc.h: Likewise.
46452         * lib/error.c: Likewise.
46453         * lib/error.h: Likewise.
46454         * lib/euidaccess.c: Likewise.
46455         * lib/exclude.c: Likewise.
46456         * lib/exclude.h: Likewise.
46457         * lib/execute.c: Likewise.
46458         * lib/execute.h: Likewise.
46459         * lib/exitfail.c: Likewise.
46460         * lib/exitfail.h: Likewise.
46461         * lib/expl.c: Likewise.
46462         * lib/fatal-signal.c: Likewise.
46463         * lib/fatal-signal.h: Likewise.
46464         * lib/fbufmode.c: Likewise.
46465         * lib/fbufmode.h: Likewise.
46466         * lib/fchdir.c: Likewise.
46467         * lib/fchmodat.c: Likewise.
46468         * lib/fchownat.c: Likewise.
46469         * lib/fcntl--.h: Likewise.
46470         * lib/fcntl-safer.h: Likewise.
46471         * lib/fcntl.in.h: Likewise.
46472         * lib/fd-safer.c: Likewise.
46473         * lib/fflush.c: Likewise.
46474         * lib/file-has-acl.c: Likewise.
46475         * lib/file-set.c: Likewise.
46476         * lib/file-type.c: Likewise.
46477         * lib/file-type.h: Likewise.
46478         * lib/fileblocks.c: Likewise.
46479         * lib/filemode.c: Likewise.
46480         * lib/filemode.h: Likewise.
46481         * lib/filename.h: Likewise.
46482         * lib/filenamecat.c: Likewise.
46483         * lib/filenamecat.h: Likewise.
46484         * lib/findprog.c: Likewise.
46485         * lib/findprog.h: Likewise.
46486         * lib/float.in.h: Likewise.
46487         * lib/floor.c: Likewise.
46488         * lib/floorf.c: Likewise.
46489         * lib/floorl.c: Likewise.
46490         * lib/fopen-safer.c: Likewise.
46491         * lib/fopen.c: Likewise.
46492         * lib/fpending.c: Likewise.
46493         * lib/fpending.h: Likewise.
46494         * lib/fprintf.c: Likewise.
46495         * lib/fprintftime.h: Likewise.
46496         * lib/fpucw.h: Likewise.
46497         * lib/fpurge.c: Likewise.
46498         * lib/fpurge.h: Likewise.
46499         * lib/freadable.c: Likewise.
46500         * lib/freadable.h: Likewise.
46501         * lib/freadahead.c: Likewise.
46502         * lib/freadahead.h: Likewise.
46503         * lib/freading.c: Likewise.
46504         * lib/freading.h: Likewise.
46505         * lib/free.c: Likewise.
46506         * lib/freopen.c: Likewise.
46507         * lib/frexp.c: Likewise.
46508         * lib/frexpl.c: Likewise.
46509         * lib/fseek.c: Likewise.
46510         * lib/fseterr.c: Likewise.
46511         * lib/fseterr.h: Likewise.
46512         * lib/fstatat.c: Likewise.
46513         * lib/fstrcmp.c: Likewise.
46514         * lib/fstrcmp.h: Likewise.
46515         * lib/fsusage.c: Likewise.
46516         * lib/fsusage.h: Likewise.
46517         * lib/ftell.c: Likewise.
46518         * lib/ftello.c: Likewise.
46519         * lib/fts-cycle.c: Likewise.
46520         * lib/fts.c: Likewise.
46521         * lib/fts_.h: Likewise.
46522         * lib/full-read.c: Likewise.
46523         * lib/full-read.h: Likewise.
46524         * lib/full-write.c: Likewise.
46525         * lib/full-write.h: Likewise.
46526         * lib/fwritable.c: Likewise.
46527         * lib/fwritable.h: Likewise.
46528         * lib/fwriteerror.c: Likewise.
46529         * lib/fwriteerror.h: Likewise.
46530         * lib/fwriting.c: Likewise.
46531         * lib/fwriting.h: Likewise.
46532         * lib/gcd.c: Likewise.
46533         * lib/gcd.h: Likewise.
46534         * lib/getcwd.c: Likewise.
46535         * lib/getdate.h: Likewise.
46536         * lib/getdate.y: Likewise.
46537         * lib/getdomainname.c: Likewise.
46538         * lib/getdomainname.h: Likewise.
46539         * lib/getgroups.c: Likewise.
46540         * lib/gethostname.c: Likewise.
46541         * lib/gethrxtime.c: Likewise.
46542         * lib/gethrxtime.h: Likewise.
46543         * lib/getloadavg.c: Likewise.
46544         * lib/getndelim2.c: Likewise.
46545         * lib/getndelim2.h: Likewise.
46546         * lib/getnline.c: Likewise.
46547         * lib/getnline.h: Likewise.
46548         * lib/getopt.c: Likewise.
46549         * lib/getopt.in.h: Likewise.
46550         * lib/getopt1.c: Likewise.
46551         * lib/getopt_int.h: Likewise.
46552         * lib/getpagesize.h: Likewise.
46553         * lib/getsubopt.c: Likewise.
46554         * lib/gettime.c: Likewise.
46555         * lib/getugroups.c: Likewise.
46556         * lib/getugroups.h: Likewise.
46557         * lib/getusershell.c: Likewise.
46558         * lib/gl_anyavltree_list1.h: Likewise.
46559         * lib/gl_anyavltree_list2.h: Likewise.
46560         * lib/gl_anyhash_list1.h: Likewise.
46561         * lib/gl_anyhash_list2.h: Likewise.
46562         * lib/gl_anylinked_list1.h: Likewise.
46563         * lib/gl_anylinked_list2.h: Likewise.
46564         * lib/gl_anyrbtree_list1.h: Likewise.
46565         * lib/gl_anyrbtree_list2.h: Likewise.
46566         * lib/gl_anytree_list1.h: Likewise.
46567         * lib/gl_anytree_list2.h: Likewise.
46568         * lib/gl_anytree_oset.h: Likewise.
46569         * lib/gl_anytreehash_list1.h: Likewise.
46570         * lib/gl_anytreehash_list2.h: Likewise.
46571         * lib/gl_array_list.c: Likewise.
46572         * lib/gl_array_list.h: Likewise.
46573         * lib/gl_array_oset.c: Likewise.
46574         * lib/gl_array_oset.h: Likewise.
46575         * lib/gl_avltree_list.c: Likewise.
46576         * lib/gl_avltree_list.h: Likewise.
46577         * lib/gl_avltree_oset.c: Likewise.
46578         * lib/gl_avltree_oset.h: Likewise.
46579         * lib/gl_avltreehash_list.c: Likewise.
46580         * lib/gl_avltreehash_list.h: Likewise.
46581         * lib/gl_carray_list.c: Likewise.
46582         * lib/gl_carray_list.h: Likewise.
46583         * lib/gl_linked_list.c: Likewise.
46584         * lib/gl_linked_list.h: Likewise.
46585         * lib/gl_linkedhash_list.c: Likewise.
46586         * lib/gl_linkedhash_list.h: Likewise.
46587         * lib/gl_list.c: Likewise.
46588         * lib/gl_list.h: Likewise.
46589         * lib/gl_oset.c: Likewise.
46590         * lib/gl_oset.h: Likewise.
46591         * lib/gl_rbtree_list.c: Likewise.
46592         * lib/gl_rbtree_list.h: Likewise.
46593         * lib/gl_rbtree_oset.c: Likewise.
46594         * lib/gl_rbtree_oset.h: Likewise.
46595         * lib/gl_rbtreehash_list.c: Likewise.
46596         * lib/gl_rbtreehash_list.h: Likewise.
46597         * lib/gl_sublist.c: Likewise.
46598         * lib/gl_sublist.h: Likewise.
46599         * lib/group-member.c: Likewise.
46600         * lib/group-member.h: Likewise.
46601         * lib/hard-locale.c: Likewise.
46602         * lib/hard-locale.h: Likewise.
46603         * lib/hash-pjw.c: Likewise.
46604         * lib/hash-pjw.h: Likewise.
46605         * lib/hash-triple.c: Likewise.
46606         * lib/hash.c: Likewise.
46607         * lib/hash.h: Likewise.
46608         * lib/human.c: Likewise.
46609         * lib/human.h: Likewise.
46610         * lib/i-ring.c: Likewise.
46611         * lib/i-ring.h: Likewise.
46612         * lib/idcache.c: Likewise.
46613         * lib/imaxabs.c: Likewise.
46614         * lib/imaxdiv.c: Likewise.
46615         * lib/inet_pton.c: Likewise.
46616         * lib/inet_pton.h: Likewise.
46617         * lib/intprops.h: Likewise.
46618         * lib/inttostr.c: Likewise.
46619         * lib/inttostr.h: Likewise.
46620         * lib/inttypes.in.h: Likewise.
46621         * lib/isapipe.c: Likewise.
46622         * lib/isdir.c: Likewise.
46623         * lib/isnan.c: Likewise.
46624         * lib/isnan.h: Likewise.
46625         * lib/isnanf.c: Likewise.
46626         * lib/isnanf.h: Likewise.
46627         * lib/isnanl-nolibm.h: Likewise.
46628         * lib/isnanl.c: Likewise.
46629         * lib/isnanl.h: Likewise.
46630         * lib/javacomp.c: Likewise.
46631         * lib/javacomp.h: Likewise.
46632         * lib/javaexec.c: Likewise.
46633         * lib/javaexec.h: Likewise.
46634         * lib/javaversion.c: Likewise.
46635         * lib/javaversion.h: Likewise.
46636         * lib/javaversion.java: Likewise.
46637         * lib/lbrkprop.h: Likewise.
46638         * lib/lchmod.h: Likewise.
46639         * lib/lchown.c: Likewise.
46640         * lib/ldexpl.c: Likewise.
46641         * lib/linebreak.c: Likewise.
46642         * lib/linebreak.h: Likewise.
46643         * lib/linebuffer.c: Likewise.
46644         * lib/linebuffer.h: Likewise.
46645         * lib/locale.in.h: Likewise.
46646         * lib/logl.c: Likewise.
46647         * lib/long-options.c: Likewise.
46648         * lib/long-options.h: Likewise.
46649         * lib/lstat.c: Likewise.
46650         * lib/lstat.h: Likewise.
46651         * lib/math.in.h: Likewise.
46652         * lib/mbchar.c: Likewise.
46653         * lib/mbchar.h: Likewise.
46654         * lib/mbfile.h: Likewise.
46655         * lib/mbiter.h: Likewise.
46656         * lib/mbscasecmp.c: Likewise.
46657         * lib/mbscasestr.c: Likewise.
46658         * lib/mbschr.c: Likewise.
46659         * lib/mbscspn.c: Likewise.
46660         * lib/mbslen.c: Likewise.
46661         * lib/mbsncasecmp.c: Likewise.
46662         * lib/mbsnlen.c: Likewise.
46663         * lib/mbspbrk.c: Likewise.
46664         * lib/mbspcasecmp.c: Likewise.
46665         * lib/mbsrchr.c: Likewise.
46666         * lib/mbssep.c: Likewise.
46667         * lib/mbsspn.c: Likewise.
46668         * lib/mbsstr.c: Likewise.
46669         * lib/mbstok_r.c: Likewise.
46670         * lib/mbswidth.c: Likewise.
46671         * lib/mbswidth.h: Likewise.
46672         * lib/mbuiter.h: Likewise.
46673         * lib/memcasecmp.c: Likewise.
46674         * lib/memcasecmp.h: Likewise.
46675         * lib/memchr.c: Likewise.
46676         * lib/memcmp.c: Likewise.
46677         * lib/memcoll.c: Likewise.
46678         * lib/memcoll.h: Likewise.
46679         * lib/memcpy.c: Likewise.
46680         * lib/memrchr.c: Likewise.
46681         * lib/mkancesdirs.c: Likewise.
46682         * lib/mkdir-p.c: Likewise.
46683         * lib/mkdir-p.h: Likewise.
46684         * lib/mkdir.c: Likewise.
46685         * lib/mkdirat.c: Likewise.
46686         * lib/mkdtemp.c: Likewise.
46687         * lib/mkstemp-safer.c: Likewise.
46688         * lib/mkstemp.c: Likewise.
46689         * lib/modechange.c: Likewise.
46690         * lib/modechange.h: Likewise.
46691         * lib/mountlist.c: Likewise.
46692         * lib/mountlist.h: Likewise.
46693         * lib/mpsort.c: Likewise.
46694         * lib/nanosleep.c: Likewise.
46695         * lib/obstack.c: Likewise.
46696         * lib/obstack.h: Likewise.
46697         * lib/open-safer.c: Likewise.
46698         * lib/open.c: Likewise.
46699         * lib/openat-die.c: Likewise.
46700         * lib/openat-priv.h: Likewise.
46701         * lib/openat-proc.c: Likewise.
46702         * lib/openat.c: Likewise.
46703         * lib/openat.h: Likewise.
46704         * lib/pagealign_alloc.c: Likewise.
46705         * lib/pagealign_alloc.h: Likewise.
46706         * lib/physmem.c: Likewise.
46707         * lib/physmem.h: Likewise.
46708         * lib/pipe-safer.c: Likewise.
46709         * lib/pipe.c: Likewise.
46710         * lib/pipe.h: Likewise.
46711         * lib/posixtm.c: Likewise.
46712         * lib/posixtm.h: Likewise.
46713         * lib/posixver.c: Likewise.
46714         * lib/printf-frexp.c: Likewise.
46715         * lib/printf-frexp.h: Likewise.
46716         * lib/printf-frexpl.c: Likewise.
46717         * lib/printf-frexpl.h: Likewise.
46718         * lib/printf.c: Likewise.
46719         * lib/progname.c: Likewise.
46720         * lib/progname.h: Likewise.
46721         * lib/progreloc.c: Likewise.
46722         * lib/putenv.c: Likewise.
46723         * lib/quote.c: Likewise.
46724         * lib/quote.h: Likewise.
46725         * lib/quotearg.c: Likewise.
46726         * lib/quotearg.h: Likewise.
46727         * lib/raise.c: Likewise.
46728         * lib/readline.c: Likewise.
46729         * lib/readline.h: Likewise.
46730         * lib/readlink.c: Likewise.
46731         * lib/readtokens.c: Likewise.
46732         * lib/readtokens.h: Likewise.
46733         * lib/readtokens0.c: Likewise.
46734         * lib/readtokens0.h: Likewise.
46735         * lib/readutmp.c: Likewise.
46736         * lib/readutmp.h: Likewise.
46737         * lib/realloc.c: Likewise.
46738         * lib/relocwrapper.c: Likewise.
46739         * lib/rename-dest-slash.c: Likewise.
46740         * lib/rename.c: Likewise.
46741         * lib/rmdir.c: Likewise.
46742         * lib/rpmatch.c: Likewise.
46743         * lib/safe-read.c: Likewise.
46744         * lib/safe-read.h: Likewise.
46745         * lib/safe-write.c: Likewise.
46746         * lib/safe-write.h: Likewise.
46747         * lib/same-inode.h: Likewise.
46748         * lib/same.c: Likewise.
46749         * lib/same.h: Likewise.
46750         * lib/save-cwd.c: Likewise.
46751         * lib/save-cwd.h: Likewise.
46752         * lib/savedir.c: Likewise.
46753         * lib/savedir.h: Likewise.
46754         * lib/savewd.c: Likewise.
46755         * lib/savewd.h: Likewise.
46756         * lib/search.in.h: Likewise.
46757         * lib/setenv.c: Likewise.
46758         * lib/setenv.h: Likewise.
46759         * lib/settime.c: Likewise.
46760         * lib/sh-quote.c: Likewise.
46761         * lib/sh-quote.h: Likewise.
46762         * lib/sig2str.c: Likewise.
46763         * lib/sig2str.h: Likewise.
46764         * lib/signal.in.h: Likewise.
46765         * lib/signbitd.c: Likewise.
46766         * lib/signbitf.c: Likewise.
46767         * lib/signbitl.c: Likewise.
46768         * lib/sigprocmask.c: Likewise.
46769         * lib/sincosl.c: Likewise.
46770         * lib/sleep.c: Likewise.
46771         * lib/sprintf.c: Likewise.
46772         * lib/sqrtl.c: Likewise.
46773         * lib/stat-time.h: Likewise.
46774         * lib/stdio--.h: Likewise.
46775         * lib/stdio-safer.h: Likewise.
46776         * lib/stdlib--.h: Likewise.
46777         * lib/stdlib-safer.h: Likewise.
46778         * lib/stdlib.in.h: Likewise.
46779         * lib/stpcpy.c: Likewise.
46780         * lib/stpncpy.c: Likewise.
46781         * lib/strchrnul.c: Likewise.
46782         * lib/strcspn.c: Likewise.
46783         * lib/strerror.c: Likewise.
46784         * lib/strftime.c: Likewise.
46785         * lib/strftime.h: Likewise.
46786         * lib/striconveh.c: Likewise.
46787         * lib/striconveh.h: Likewise.
46788         * lib/striconveha.c: Likewise.
46789         * lib/striconveha.h: Likewise.
46790         * lib/stripslash.c: Likewise.
46791         * lib/strnlen1.c: Likewise.
46792         * lib/strnlen1.h: Likewise.
46793         * lib/strtod.c: Likewise.
46794         * lib/strtoimax.c: Likewise.
46795         * lib/strtok_r.c: Likewise.
46796         * lib/strtol.c: Likewise.
46797         * lib/strtoll.c: Likewise.
46798         * lib/strtoul.c: Likewise.
46799         * lib/strtoull.c: Likewise.
46800         * lib/sysexits.in.h: Likewise.
46801         * lib/tempname.c: Likewise.
46802         * lib/tempname.h: Likewise.
46803         * lib/timespec.h: Likewise.
46804         * lib/tls.c: Likewise.
46805         * lib/tls.h: Likewise.
46806         * lib/tmpdir.c: Likewise.
46807         * lib/tmpdir.h: Likewise.
46808         * lib/tmpfile-safer.c: Likewise.
46809         * lib/tmpfile.c: Likewise.
46810         * lib/trigl.c: Likewise.
46811         * lib/trigl.h: Likewise.
46812         * lib/trim.c: Likewise.
46813         * lib/trim.h: Likewise.
46814         * lib/trunc.c: Likewise.
46815         * lib/truncf.c: Likewise.
46816         * lib/truncl.c: Likewise.
46817         * lib/tsearch.c: Likewise.
46818         * lib/unicodeio.c: Likewise.
46819         * lib/unicodeio.h: Likewise.
46820         * lib/unistd--.h: Likewise.
46821         * lib/unistd-safer.h: Likewise.
46822         * lib/unistdio/ulc-fprintf.c: Likewise.
46823         * lib/unistdio/ulc-vfprintf.c: Likewise.
46824         * lib/unlinkdir.c: Likewise.
46825         * lib/unlinkdir.h: Likewise.
46826         * lib/unlocked-io.h: Likewise.
46827         * lib/unsetenv.c: Likewise.
46828         * lib/userspec.c: Likewise.
46829         * lib/utime.c: Likewise.
46830         * lib/utimecmp.c: Likewise.
46831         * lib/utimecmp.h: Likewise.
46832         * lib/utimens.c: Likewise.
46833         * lib/verify.h: Likewise.
46834         * lib/verror.c: Likewise.
46835         * lib/verror.h: Likewise.
46836         * lib/version-etc-fsf.c: Likewise.
46837         * lib/version-etc.c: Likewise.
46838         * lib/version-etc.h: Likewise.
46839         * lib/vfprintf.c: Likewise.
46840         * lib/vprintf.c: Likewise.
46841         * lib/vsprintf.c: Likewise.
46842         * lib/w32spawn.h: Likewise.
46843         * lib/wait-process.c: Likewise.
46844         * lib/wait-process.h: Likewise.
46845         * lib/wcwidth.c: Likewise.
46846         * lib/write-any-file.c: Likewise.
46847         * lib/xalloc-die.c: Likewise.
46848         * lib/xalloc.h: Likewise.
46849         * lib/xasprintf.c: Likewise.
46850         * lib/xgetcwd.c: Likewise.
46851         * lib/xgetcwd.h: Likewise.
46852         * lib/xgetdomainname.c: Likewise.
46853         * lib/xgetdomainname.h: Likewise.
46854         * lib/xgethostname.c: Likewise.
46855         * lib/xmalloc.c: Likewise.
46856         * lib/xmalloca.c: Likewise.
46857         * lib/xmalloca.h: Likewise.
46858         * lib/xmemcoll.c: Likewise.
46859         * lib/xnanosleep.c: Likewise.
46860         * lib/xreadlink.c: Likewise.
46861         * lib/xreadlink.h: Likewise.
46862         * lib/xsetenv.c: Likewise.
46863         * lib/xsetenv.h: Likewise.
46864         * lib/xstriconv.c: Likewise.
46865         * lib/xstriconv.h: Likewise.
46866         * lib/xstrndup.c: Likewise.
46867         * lib/xstrndup.h: Likewise.
46868         * lib/xstrtod.c: Likewise.
46869         * lib/xstrtod.h: Likewise.
46870         * lib/xstrtol-error.c: Likewise.
46871         * lib/xstrtol.c: Likewise.
46872         * lib/xstrtol.h: Likewise.
46873         * lib/xtime.h: Likewise.
46874         * lib/xvasprintf.c: Likewise.
46875         * lib/xvasprintf.h: Likewise.
46876         * lib/yesno.c: Likewise.
46877         * lib/yesno.h: Likewise.
46878         * posix-modules: Likewise.
46879         * tests/test-alloca-opt.c: Likewise.
46880         * tests/test-arcfour.c: Likewise.
46881         * tests/test-arctwo.c: Likewise.
46882         * tests/test-argmatch.c: Likewise.
46883         * tests/test-argp-2.sh: Likewise.
46884         * tests/test-argp.c: Likewise.
46885         * tests/test-arpa_inet.c: Likewise.
46886         * tests/test-array_list.c: Likewise.
46887         * tests/test-array_oset.c: Likewise.
46888         * tests/test-atexit.c: Likewise.
46889         * tests/test-avltree_list.c: Likewise.
46890         * tests/test-avltree_oset.c: Likewise.
46891         * tests/test-avltreehash_list.c: Likewise.
46892         * tests/test-base64.c: Likewise.
46893         * tests/test-binary-io.c: Likewise.
46894         * tests/test-byteswap.c: Likewise.
46895         * tests/test-c-ctype.c: Likewise.
46896         * tests/test-c-strcasecmp.c: Likewise.
46897         * tests/test-c-strcasestr.c: Likewise.
46898         * tests/test-c-strncasecmp.c: Likewise.
46899         * tests/test-c-strstr.c: Likewise.
46900         * tests/test-canonicalize-lgpl.c: Likewise.
46901         * tests/test-canonicalize.c: Likewise.
46902         * tests/test-carray_list.c: Likewise.
46903         * tests/test-ceilf.c: Likewise.
46904         * tests/test-ceill.c: Likewise.
46905         * tests/test-count-one-bits.c: Likewise.
46906         * tests/test-crc.c: Likewise.
46907         * tests/test-dirname.c: Likewise.
46908         * tests/test-fbufmode.c: Likewise.
46909         * tests/test-fcntl.c: Likewise.
46910         * tests/test-fflush.c: Likewise.
46911         * tests/test-floorf.c: Likewise.
46912         * tests/test-floorl.c: Likewise.
46913         * tests/test-fopen.c: Likewise.
46914         * tests/test-fprintf-posix.c: Likewise.
46915         * tests/test-fprintf-posix.h: Likewise.
46916         * tests/test-fpurge.c: Likewise.
46917         * tests/test-freadable.c: Likewise.
46918         * tests/test-freadahead.c: Likewise.
46919         * tests/test-freading.c: Likewise.
46920         * tests/test-freopen.c: Likewise.
46921         * tests/test-frexp.c: Likewise.
46922         * tests/test-frexpl.c: Likewise.
46923         * tests/test-fseek.c: Likewise.
46924         * tests/test-fseeko.c: Likewise.
46925         * tests/test-fseterr.c: Likewise.
46926         * tests/test-fstrcmp.c: Likewise.
46927         * tests/test-ftell.c: Likewise.
46928         * tests/test-ftello.c: Likewise.
46929         * tests/test-fwritable.c: Likewise.
46930         * tests/test-fwriting.c: Likewise.
46931         * tests/test-getaddrinfo.c: Likewise.
46932         * tests/test-getpass.c: Likewise.
46933         * tests/test-gettimeofday.c: Likewise.
46934         * tests/test-hmac-md5.c: Likewise.
46935         * tests/test-hmac-sha1.c: Likewise.
46936         * tests/test-iconv.c: Likewise.
46937         * tests/test-iconvme.c: Likewise.
46938         * tests/test-inttypes.c: Likewise.
46939         * tests/test-isnan.c: Likewise.
46940         * tests/test-isnanf.c: Likewise.
46941         * tests/test-isnanl-nolibm.c: Likewise.
46942         * tests/test-isnanl.c: Likewise.
46943         * tests/test-isnanl.h: Likewise.
46944         * tests/test-ldexpl.c: Likewise.
46945         * tests/test-linked_list.c: Likewise.
46946         * tests/test-linkedhash_list.c: Likewise.
46947         * tests/test-locale.c: Likewise.
46948         * tests/test-localename.c: Likewise.
46949         * tests/test-lock.c: Likewise.
46950         * tests/test-lseek.c: Likewise.
46951         * tests/test-malloca.c: Likewise.
46952         * tests/test-math.c: Likewise.
46953         * tests/test-mbscasecmp.c: Likewise.
46954         * tests/test-mbscasestr1.c: Likewise.
46955         * tests/test-mbscasestr2.c: Likewise.
46956         * tests/test-mbscasestr3.c: Likewise.
46957         * tests/test-mbscasestr4.c: Likewise.
46958         * tests/test-mbschr.c: Likewise.
46959         * tests/test-mbscspn.c: Likewise.
46960         * tests/test-mbsncasecmp.c: Likewise.
46961         * tests/test-mbspbrk.c: Likewise.
46962         * tests/test-mbspcasecmp.c: Likewise.
46963         * tests/test-mbsrchr.c: Likewise.
46964         * tests/test-mbsspn.c: Likewise.
46965         * tests/test-mbsstr1.c: Likewise.
46966         * tests/test-mbsstr2.c: Likewise.
46967         * tests/test-mbsstr3.c: Likewise.
46968         * tests/test-md5.c: Likewise.
46969         * tests/test-memmem.c: Likewise.
46970         * tests/test-netinet_in.c: Likewise.
46971         * tests/test-open.c: Likewise.
46972         * tests/test-printf-frexp.c: Likewise.
46973         * tests/test-printf-frexpl.c: Likewise.
46974         * tests/test-printf-posix.c: Likewise.
46975         * tests/test-printf-posix.h: Likewise.
46976         * tests/test-rbtree_list.c: Likewise.
46977         * tests/test-rbtree_oset.c: Likewise.
46978         * tests/test-rbtreehash_list.c: Likewise.
46979         * tests/test-read-file.c: Likewise.
46980         * tests/test-rijndael.c: Likewise.
46981         * tests/test-search.c: Likewise.
46982         * tests/test-signbit.c: Likewise.
46983         * tests/test-sleep.c: Likewise.
46984         * tests/test-snprintf-posix.c: Likewise.
46985         * tests/test-snprintf-posix.h: Likewise.
46986         * tests/test-snprintf.c: Likewise.
46987         * tests/test-sprintf-posix.c: Likewise.
46988         * tests/test-sprintf-posix.h: Likewise.
46989         * tests/test-stat-time.c: Likewise.
46990         * tests/test-stdbool.c: Likewise.
46991         * tests/test-stdint.c: Likewise.
46992         * tests/test-stdio.c: Likewise.
46993         * tests/test-stdlib.c: Likewise.
46994         * tests/test-stpncpy.c: Likewise.
46995         * tests/test-strcasestr.c: Likewise.
46996         * tests/test-striconv.c: Likewise.
46997         * tests/test-striconveh.c: Likewise.
46998         * tests/test-striconveha.c: Likewise.
46999         * tests/test-string.c: Likewise.
47000         * tests/test-sys_select.c: Likewise.
47001         * tests/test-sys_socket.c: Likewise.
47002         * tests/test-sys_stat.c: Likewise.
47003         * tests/test-sys_time.c: Likewise.
47004         * tests/test-sysexits.c: Likewise.
47005         * tests/test-time.c: Likewise.
47006         * tests/test-tls.c: Likewise.
47007         * tests/test-trunc.c: Likewise.
47008         * tests/test-truncf.c: Likewise.
47009         * tests/test-truncl.c: Likewise.
47010         * tests/test-unistd.c: Likewise.
47011         * tests/test-vasnprintf-posix.c: Likewise.
47012         * tests/test-vasnprintf-posix2.c: Likewise.
47013         * tests/test-vasnprintf.c: Likewise.
47014         * tests/test-vasprintf-posix.c: Likewise.
47015         * tests/test-vasprintf.c: Likewise.
47016         * tests/test-verify.c: Likewise.
47017         * tests/test-vfprintf-posix.c: Likewise.
47018         * tests/test-vprintf-posix.c: Likewise.
47019         * tests/test-vsnprintf-posix.c: Likewise.
47020         * tests/test-vsnprintf.c: Likewise.
47021         * tests/test-vsprintf-posix.c: Likewise.
47022         * tests/test-wchar.c: Likewise.
47023         * tests/test-wctype.c: Likewise.
47024         * tests/test-wcwidth.c: Likewise.
47025         * tests/test-xstrtol.c: Likewise.
47026         * tests/test-xvasprintf.c: Likewise.
47027         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47028         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47029         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47030         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47031         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47032         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47033         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47034         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47035         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47036         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47037         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47038         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47039         * tests/uniname/test-uninames.c: Likewise.
47040         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47041         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47042         * tests/unistdio/test-u16-printf1.h: Likewise.
47043         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47044         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47045         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47046         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47047         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47048         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47049         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47050         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47051         * tests/unistdio/test-u32-printf1.h: Likewise.
47052         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47053         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47054         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47055         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47056         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47057         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47058         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47059         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47060         * tests/unistdio/test-u8-printf1.h: Likewise.
47061         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47062         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47063         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47064         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47065         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47066         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47067         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47068         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47069         * tests/unistdio/test-ulc-printf1.h: Likewise.
47070         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47071         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47072         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47073         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47074         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47075         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47076         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47077         * tests/uniwidth/test-u16-width.c: Likewise.
47078         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47079         * tests/uniwidth/test-u32-width.c: Likewise.
47080         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47081         * tests/uniwidth/test-u8-width.c: Likewise.
47082         * tests/uniwidth/test-uc_width.c: Likewise.
47083         * config/srclist-update: Likewise.
47084         (fixlicense): Update to GPLv3+.
47085
47086         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47087         * tests/test-tsearch.c: Change copyright notice.
47088
47089         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47090         * lib/c-strcaseeq.h: Change copyright notice.
47091         * lib/streq.h: Likewise.
47092         * lib/uniconv.h: Likewise.
47093         * lib/uniconv/u-conv-from-enc.h: Likewise.
47094         * lib/uniconv/u-conv-to-enc.h: Likewise.
47095         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47096         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47097         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47098         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47099         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47100         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47101         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47102         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47103         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47104         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47105         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47106         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47107         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47108         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47109         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47110         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47111         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47112         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47113         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47114         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47115         * lib/uniname.h: Likewise.
47116         * lib/uniname/uniname.c: Likewise.
47117         * lib/unistdio.h: Likewise.
47118         * lib/unistdio/u-asnprintf.h: Likewise.
47119         * lib/unistdio/u-asprintf.h: Likewise.
47120         * lib/unistdio/u-printf-args.c: Likewise.
47121         * lib/unistdio/u-printf-args.h: Likewise.
47122         * lib/unistdio/u-printf-parse.h: Likewise.
47123         * lib/unistdio/u-snprintf.h: Likewise.
47124         * lib/unistdio/u-sprintf.h: Likewise.
47125         * lib/unistdio/u-vasprintf.h: Likewise.
47126         * lib/unistdio/u-vsnprintf.h: Likewise.
47127         * lib/unistdio/u-vsprintf.h: Likewise.
47128         * lib/unistdio/u16-asnprintf.c: Likewise.
47129         * lib/unistdio/u16-asprintf.c: Likewise.
47130         * lib/unistdio/u16-printf-parse.c: Likewise.
47131         * lib/unistdio/u16-snprintf.c: Likewise.
47132         * lib/unistdio/u16-sprintf.c: Likewise.
47133         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47134         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47135         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47136         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47137         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47138         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47139         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47140         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47141         * lib/unistdio/u16-vasnprintf.c: Likewise.
47142         * lib/unistdio/u16-vasprintf.c: Likewise.
47143         * lib/unistdio/u16-vsnprintf.c: Likewise.
47144         * lib/unistdio/u16-vsprintf.c: Likewise.
47145         * lib/unistdio/u32-asnprintf.c: Likewise.
47146         * lib/unistdio/u32-asprintf.c: Likewise.
47147         * lib/unistdio/u32-printf-parse.c: Likewise.
47148         * lib/unistdio/u32-snprintf.c: Likewise.
47149         * lib/unistdio/u32-sprintf.c: Likewise.
47150         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47151         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47152         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47153         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47154         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47155         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47156         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47157         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47158         * lib/unistdio/u32-vasnprintf.c: Likewise.
47159         * lib/unistdio/u32-vasprintf.c: Likewise.
47160         * lib/unistdio/u32-vsnprintf.c: Likewise.
47161         * lib/unistdio/u32-vsprintf.c: Likewise.
47162         * lib/unistdio/u8-asnprintf.c: Likewise.
47163         * lib/unistdio/u8-asprintf.c: Likewise.
47164         * lib/unistdio/u8-printf-parse.c: Likewise.
47165         * lib/unistdio/u8-snprintf.c: Likewise.
47166         * lib/unistdio/u8-sprintf.c: Likewise.
47167         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47168         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47169         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47170         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47171         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47172         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47173         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47174         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47175         * lib/unistdio/u8-vasnprintf.c: Likewise.
47176         * lib/unistdio/u8-vasprintf.c: Likewise.
47177         * lib/unistdio/u8-vsnprintf.c: Likewise.
47178         * lib/unistdio/u8-vsprintf.c: Likewise.
47179         * lib/unistdio/ulc-asnprintf.c: Likewise.
47180         * lib/unistdio/ulc-asprintf.c: Likewise.
47181         * lib/unistdio/ulc-printf-parse.c: Likewise.
47182         * lib/unistdio/ulc-snprintf.c: Likewise.
47183         * lib/unistdio/ulc-sprintf.c: Likewise.
47184         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47185         * lib/unistdio/ulc-vasprintf.c: Likewise.
47186         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47187         * lib/unistdio/ulc-vsprintf.c: Likewise.
47188         * lib/unistr.h: Likewise.
47189         * lib/unistr/u-cpy-alloc.h: Likewise.
47190         * lib/unistr/u-cpy.h: Likewise.
47191         * lib/unistr/u-endswith.h: Likewise.
47192         * lib/unistr/u-move.h: Likewise.
47193         * lib/unistr/u-set.h: Likewise.
47194         * lib/unistr/u-startswith.h: Likewise.
47195         * lib/unistr/u-stpcpy.h: Likewise.
47196         * lib/unistr/u-stpncpy.h: Likewise.
47197         * lib/unistr/u-strcat.h: Likewise.
47198         * lib/unistr/u-strcpy.h: Likewise.
47199         * lib/unistr/u-strcspn.h: Likewise.
47200         * lib/unistr/u-strdup.h: Likewise.
47201         * lib/unistr/u-strlen.h: Likewise.
47202         * lib/unistr/u-strncat.h: Likewise.
47203         * lib/unistr/u-strncpy.h: Likewise.
47204         * lib/unistr/u-strnlen.h: Likewise.
47205         * lib/unistr/u-strpbrk.h: Likewise.
47206         * lib/unistr/u-strspn.h: Likewise.
47207         * lib/unistr/u-strstr.h: Likewise.
47208         * lib/unistr/u-strtok.h: Likewise.
47209         * lib/unistr/u16-check.c: Likewise.
47210         * lib/unistr/u16-chr.c: Likewise.
47211         * lib/unistr/u16-cmp.c: Likewise.
47212         * lib/unistr/u16-cpy-alloc.c: Likewise.
47213         * lib/unistr/u16-cpy.c: Likewise.
47214         * lib/unistr/u16-endswith.c: Likewise.
47215         * lib/unistr/u16-mblen.c: Likewise.
47216         * lib/unistr/u16-mbsnlen.c: Likewise.
47217         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47218         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47219         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47220         * lib/unistr/u16-mbtouc.c: Likewise.
47221         * lib/unistr/u16-mbtoucr.c: Likewise.
47222         * lib/unistr/u16-move.c: Likewise.
47223         * lib/unistr/u16-next.c: Likewise.
47224         * lib/unistr/u16-prev.c: Likewise.
47225         * lib/unistr/u16-set.c: Likewise.
47226         * lib/unistr/u16-startswith.c: Likewise.
47227         * lib/unistr/u16-stpcpy.c: Likewise.
47228         * lib/unistr/u16-stpncpy.c: Likewise.
47229         * lib/unistr/u16-strcat.c: Likewise.
47230         * lib/unistr/u16-strchr.c: Likewise.
47231         * lib/unistr/u16-strcmp.c: Likewise.
47232         * lib/unistr/u16-strcpy.c: Likewise.
47233         * lib/unistr/u16-strcspn.c: Likewise.
47234         * lib/unistr/u16-strdup.c: Likewise.
47235         * lib/unistr/u16-strlen.c: Likewise.
47236         * lib/unistr/u16-strmblen.c: Likewise.
47237         * lib/unistr/u16-strmbtouc.c: Likewise.
47238         * lib/unistr/u16-strncat.c: Likewise.
47239         * lib/unistr/u16-strncmp.c: Likewise.
47240         * lib/unistr/u16-strncpy.c: Likewise.
47241         * lib/unistr/u16-strnlen.c: Likewise.
47242         * lib/unistr/u16-strpbrk.c: Likewise.
47243         * lib/unistr/u16-strrchr.c: Likewise.
47244         * lib/unistr/u16-strspn.c: Likewise.
47245         * lib/unistr/u16-strstr.c: Likewise.
47246         * lib/unistr/u16-strtok.c: Likewise.
47247         * lib/unistr/u16-to-u32.c: Likewise.
47248         * lib/unistr/u16-to-u8.c: Likewise.
47249         * lib/unistr/u16-uctomb-aux.c: Likewise.
47250         * lib/unistr/u16-uctomb.c: Likewise.
47251         * lib/unistr/u32-check.c: Likewise.
47252         * lib/unistr/u32-chr.c: Likewise.
47253         * lib/unistr/u32-cmp.c: Likewise.
47254         * lib/unistr/u32-cpy-alloc.c: Likewise.
47255         * lib/unistr/u32-cpy.c: Likewise.
47256         * lib/unistr/u32-endswith.c: Likewise.
47257         * lib/unistr/u32-mblen.c: Likewise.
47258         * lib/unistr/u32-mbsnlen.c: Likewise.
47259         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47260         * lib/unistr/u32-mbtouc.c: Likewise.
47261         * lib/unistr/u32-mbtoucr.c: Likewise.
47262         * lib/unistr/u32-move.c: Likewise.
47263         * lib/unistr/u32-next.c: Likewise.
47264         * lib/unistr/u32-prev.c: Likewise.
47265         * lib/unistr/u32-set.c: Likewise.
47266         * lib/unistr/u32-startswith.c: Likewise.
47267         * lib/unistr/u32-stpcpy.c: Likewise.
47268         * lib/unistr/u32-stpncpy.c: Likewise.
47269         * lib/unistr/u32-strcat.c: Likewise.
47270         * lib/unistr/u32-strchr.c: Likewise.
47271         * lib/unistr/u32-strcmp.c: Likewise.
47272         * lib/unistr/u32-strcpy.c: Likewise.
47273         * lib/unistr/u32-strcspn.c: Likewise.
47274         * lib/unistr/u32-strdup.c: Likewise.
47275         * lib/unistr/u32-strlen.c: Likewise.
47276         * lib/unistr/u32-strmblen.c: Likewise.
47277         * lib/unistr/u32-strmbtouc.c: Likewise.
47278         * lib/unistr/u32-strncat.c: Likewise.
47279         * lib/unistr/u32-strncmp.c: Likewise.
47280         * lib/unistr/u32-strncpy.c: Likewise.
47281         * lib/unistr/u32-strnlen.c: Likewise.
47282         * lib/unistr/u32-strpbrk.c: Likewise.
47283         * lib/unistr/u32-strrchr.c: Likewise.
47284         * lib/unistr/u32-strspn.c: Likewise.
47285         * lib/unistr/u32-strstr.c: Likewise.
47286         * lib/unistr/u32-strtok.c: Likewise.
47287         * lib/unistr/u32-to-u16.c: Likewise.
47288         * lib/unistr/u32-to-u8.c: Likewise.
47289         * lib/unistr/u32-uctomb.c: Likewise.
47290         * lib/unistr/u8-check.c: Likewise.
47291         * lib/unistr/u8-chr.c: Likewise.
47292         * lib/unistr/u8-cmp.c: Likewise.
47293         * lib/unistr/u8-cpy-alloc.c: Likewise.
47294         * lib/unistr/u8-cpy.c: Likewise.
47295         * lib/unistr/u8-endswith.c: Likewise.
47296         * lib/unistr/u8-mblen.c: Likewise.
47297         * lib/unistr/u8-mbsnlen.c: Likewise.
47298         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47299         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47300         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47301         * lib/unistr/u8-mbtouc.c: Likewise.
47302         * lib/unistr/u8-mbtoucr.c: Likewise.
47303         * lib/unistr/u8-move.c: Likewise.
47304         * lib/unistr/u8-next.c: Likewise.
47305         * lib/unistr/u8-prev.c: Likewise.
47306         * lib/unistr/u8-set.c: Likewise.
47307         * lib/unistr/u8-startswith.c: Likewise.
47308         * lib/unistr/u8-stpcpy.c: Likewise.
47309         * lib/unistr/u8-stpncpy.c: Likewise.
47310         * lib/unistr/u8-strcat.c: Likewise.
47311         * lib/unistr/u8-strchr.c: Likewise.
47312         * lib/unistr/u8-strcmp.c: Likewise.
47313         * lib/unistr/u8-strcpy.c: Likewise.
47314         * lib/unistr/u8-strcspn.c: Likewise.
47315         * lib/unistr/u8-strdup.c: Likewise.
47316         * lib/unistr/u8-strlen.c: Likewise.
47317         * lib/unistr/u8-strmblen.c: Likewise.
47318         * lib/unistr/u8-strmbtouc.c: Likewise.
47319         * lib/unistr/u8-strncat.c: Likewise.
47320         * lib/unistr/u8-strncmp.c: Likewise.
47321         * lib/unistr/u8-strncpy.c: Likewise.
47322         * lib/unistr/u8-strnlen.c: Likewise.
47323         * lib/unistr/u8-strpbrk.c: Likewise.
47324         * lib/unistr/u8-strrchr.c: Likewise.
47325         * lib/unistr/u8-strspn.c: Likewise.
47326         * lib/unistr/u8-strstr.c: Likewise.
47327         * lib/unistr/u8-strtok.c: Likewise.
47328         * lib/unistr/u8-to-u16.c: Likewise.
47329         * lib/unistr/u8-to-u32.c: Likewise.
47330         * lib/unistr/u8-uctomb-aux.c: Likewise.
47331         * lib/unistr/u8-uctomb.c: Likewise.
47332         * lib/unitypes.h: Likewise.
47333         * lib/uniwidth.h: Likewise.
47334         * lib/uniwidth/cjk.h: Likewise.
47335         * lib/uniwidth/u16-strwidth.c: Likewise.
47336         * lib/uniwidth/u16-width.c: Likewise.
47337         * lib/uniwidth/u32-strwidth.c: Likewise.
47338         * lib/uniwidth/u32-width.c: Likewise.
47339         * lib/uniwidth/u8-strwidth.c: Likewise.
47340         * lib/uniwidth/u8-width.c: Likewise.
47341         * lib/uniwidth/width.c: Likewise.
47342
47343 2007-10-07  Bruno Haible  <bruno@clisp.org>
47344
47345         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47346         The file is still under LGPL (see modules/inttypes).
47347
47348 2007-10-06  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/trunc (Dependencies): Add 'extensions'.
47351         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47352         Reported by Ben Pfaff <blp@gnu.org>.
47353
47354 2007-10-06  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/freopen-tests: New file.
47357         * tests/test-freopen.c: New file.
47358
47359         * modules/fopen-tests: New file.
47360         * tests/test-fopen.c: New file.
47361
47362         * modules/fopen: New file.
47363         * lib/fopen.c: New file.
47364         * m4/fopen.m4: New file.
47365         * modules/freopen: New file.
47366         * lib/freopen.c: New file.
47367         * m4/freopen.m4: New file.
47368         * lib/stdio.in.h (fopen, freopen): New declarations.
47369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47370         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47371         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47372         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47373         * doc/functions/fopen.texi: Mention the 'fopen' module.
47374         * doc/functions/freopen.texi: Mention the 'freopen' module.
47375
47376 2007-10-06  Bruno Haible  <bruno@clisp.org>
47377
47378         * modules/open-tests: New file.
47379         * tests/test-open.c: New file.
47380
47381         * modules/open: New file.
47382         * lib/open.c: New file.
47383         * m4/open.m4: New file.
47384         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47385         lib/open.c does.
47386         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47388         macros.
47389         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47390         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47391         REPLACE_OPEN.
47392         * doc/functions/open.texi: Mention the 'open' module.
47393
47394 2007-10-04  Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/ceill-tests: New file.
47397         * tests/test-ceill.c: New file.
47398
47399         * modules/ceill: New file.
47400         * lib/ceill.c: Replace entire file.
47401         * m4/ceill.m4: New file.
47402         * lib/math.in.h (ceill): Replace declaration.
47403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47404         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47405         * doc/functions/ceill.texi: Mention the 'ceill' module.
47406         * modules/mathl (Files): Remove lib/ceill.c.
47407         (Depends-on): Add ceill.
47408
47409 2007-10-04  Bruno Haible  <bruno@clisp.org>
47410
47411         * modules/ceilf-tests: New file.
47412         * tests/test-ceilf.c: New file.
47413
47414         * modules/ceilf: New file.
47415         * lib/ceil.c: New file.
47416         * lib/ceilf.c: New file.
47417         * m4/ceilf.m4: New file.
47418         * lib/math.in.h (ceilf): New declaration.
47419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47420         HAVE_DECL_CEILF.
47421         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47422         HAVE_DECL_CEILF.
47423         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47424
47425 2007-10-04  Bruno Haible  <bruno@clisp.org>
47426
47427         * modules/floorl-tests: New file.
47428         * tests/test-floorl.c: New file.
47429
47430         * modules/floorl: New file.
47431         * lib/floorl.c: Replace entire file.
47432         * m4/floorl.m4: New file.
47433         * lib/math.in.h (floorl): Replace declaration.
47434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47435         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47436         * doc/functions/floorl.texi: Mention the 'floorl' module.
47437         * modules/mathl (Files): Remove lib/floorl.c.
47438         (Depends-on): Add floorl.
47439
47440 2007-10-04  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/floorf-tests: New file.
47443         * tests/test-floorf.c: New file.
47444
47445         * modules/floorf: New file.
47446         * lib/floor.c: New file.
47447         * lib/floorf.c: New file.
47448         * m4/floorf.m4: New file.
47449         * lib/math.in.h (floorf): New declaration.
47450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47451         HAVE_DECL_FLOORF.
47452         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47453         HAVE_DECL_FLOORF.
47454         * doc/functions/floorf.texi: Mention the 'floorf' module.
47455
47456 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47457             Bruno Haible  <bruno@clisp.org>
47458
47459         Advertise for the Git server instead of the CVS server.
47460         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47461         repository instead of the CVS one.
47462         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47463         about all VCS systems generically.
47464         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47465
47466 2007-10-04  Bruno Haible  <bruno@clisp.org>
47467
47468         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47469         means.
47470         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47471
47472 2007-10-04  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/truncl-tests: New file.
47475         * tests/test-truncl.c: New file.
47476
47477         * modules/truncl: New file.
47478         * lib/truncl.c: New file.
47479         * m4/truncl.m4: New file.
47480         * lib/math.in.h (truncl): New declaration.
47481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47482         HAVE_DECL_TRUNCL.
47483         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47484         HAVE_DECL_TRUNCL.
47485         * doc/functions/truncl.texi: Mention the 'truncl' module.
47486
47487 2007-10-04  Bruno Haible  <bruno@clisp.org>
47488
47489         * modules/truncf-tests: New file.
47490         * tests/test-truncf.c: New file.
47491
47492         * modules/truncf: New file.
47493         * lib/trunc.c: Make paramerizable through USE_* macros.
47494         * lib/truncf.c: New file.
47495         * m4/truncf.m4: New file.
47496         * lib/math.in.h (truncf): New declaration.
47497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47498         HAVE_DECL_TRUNCF.
47499         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47500         HAVE_DECL_TRUNCF.
47501         * doc/functions/truncf.texi: Mention the 'truncf' module.
47502
47503 2007-10-03  Bruno Haible  <bruno@clisp.org>
47504
47505         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47506         augmentation also for tests modules.
47507         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47508         * modules/atexit-tests (Makefile.am): Likewise.
47509         * modules/binary-io-tests (Makefile.am): Likewise.
47510         * modules/c-strcase-tests (Makefile.am): Likewise.
47511         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47512         * modules/canonicalize-tests (Makefile.am): Likewise.
47513         * modules/closein-tests (Makefile.am): Likewise.
47514         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47515         * modules/freadahead-tests (Makefile.am): Likewise.
47516         * modules/fseek-tests (Makefile.am): Likewise.
47517         * modules/fseeko-tests (Makefile.am): Likewise.
47518         * modules/ftell-tests (Makefile.am): Likewise.
47519         * modules/ftello-tests (Makefile.am): Likewise.
47520         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47521         * modules/isnanl-tests (Makefile.am): Likewise.
47522         * modules/lseek-tests (Makefile.am): Likewise.
47523         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47524         * modules/mbscasestr-tests (Makefile.am): Likewise.
47525         * modules/mbschr-tests (Makefile.am): Likewise.
47526         * modules/mbscspn-tests (Makefile.am): Likewise.
47527         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47528         * modules/mbspbrk-tests (Makefile.am): Likewise.
47529         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47530         * modules/mbsrchr-tests (Makefile.am): Likewise.
47531         * modules/mbsspn-tests (Makefile.am): Likewise.
47532         * modules/mbsstr-tests (Makefile.am): Likewise.
47533         * modules/printf-posix-tests (Makefile.am): Likewise.
47534         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47535         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47536         * modules/tsearch-tests (Makefile.am): Likewise.
47537         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47538         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47539         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47540         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47541         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47542         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47543         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47544         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47545         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47546         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47547         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47548         * modules/xstrtol-tests (Makefile.am): Likewise.
47549         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47550         * modules/yesno-tests (Makefile.am): Likewise.
47551
47552 2007-10-03  Bruno Haible  <bruno@clisp.org>
47553
47554         * modules/trunc-tests: New file.
47555         * tests/test-trunc.c: New file.
47556
47557         * modules/trunc: New file.
47558         * lib/trunc.c: New file.
47559         * m4/trunc.m4: New file.
47560         * lib/math.in.h (trunc): New declaration.
47561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47562         HAVE_DECL_TRUNC.
47563         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47564         HAVE_DECL_TRUNC.
47565         * doc/functions/trunc.texi: Mention the 'trunc' module.
47566
47567 2007-10-03  Bruno Haible  <bruno@clisp.org>
47568
47569         * tests/test-fpending.c: New file, mostly copied
47570         from coreutils/lib/t-fpending.c.
47571         * modules/fpending-tests: New file.
47572
47573 2007-10-03  Bruno Haible  <bruno@clisp.org>
47574
47575         Port the stdio extensions to QNX (untested).
47576         * lib/fseterr.c (fseterr): Add support for QNX.
47577         * lib/fbufmode.c (fbufmode): Likewise.
47578         * lib/freadable.c (freadable): Likewise.
47579         * lib/fwritable.c (fwritable): Likewise.
47580         * lib/freading.c (freading): Likewise.
47581         * lib/fwriting.c (fwriting): Likewise.
47582         * lib/freadahead.c (freadahed): Likewise.
47583         * lib/fpurge.c (fpurge): Likewise.
47584         * lib/fseeko.c (rpl_fseeko): Likewise.
47585
47586 2007-10-03  Bruno Haible  <bruno@clisp.org>
47587             Jim Meyering  <jim@meyering.net>
47588             Eric Blake  <ebb9@byu.net>
47589
47590         * doc/relocatable.texi: Use @command instead of @program.
47591
47592 2007-10-02  Jim Meyering  <jim@meyering.net>
47593
47594         Perform one more "_.h" -> ".in.h" substitution.
47595         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47596         instead of unistd_.h here, too.
47597
47598 2007-10-01  Bruno Haible  <bruno@clisp.org>
47599
47600         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47601         Needed for the alloca-opt module.
47602
47603 2007-09-30  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47606         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47607         alloca_.h.
47608         * lib/argz.in.h: Renamed from lib/argz_.h.
47609         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47610         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47611         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47612         byteswap_.h.
47613         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47614         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47615         dirent_.h.
47616         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47617         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47618         fcntl_.h.
47619         * lib/float.in.h: Renamed from lib/float_.h.
47620         * modules/float (Files, Makefile.am): Use float.in.h instead of
47621         float_.h.
47622         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47623         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47624         fnmatch_.h.
47625         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47626         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47627         getopt_.h.
47628         * lib/glob.in.h: Renamed from lib/glob_.h.
47629         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47630         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47631         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47632         iconv_.h.
47633         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47634         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47635         inttypes_.h.
47636         * lib/locale.in.h: Renamed from lib/locale_.h.
47637         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47638         locale_.h.
47639         * lib/math.in.h: Renamed from lib/math_.h.
47640         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47641         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47642         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47643         of netinet_in_.h. Add dependency.
47644         * lib/poll.in.h: Renamed from lib/poll_.h.
47645         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47646         * lib/search.in.h: Renamed from lib/search_.h.
47647         * modules/search (Files, Makefile.am): Use search.in.h instead of
47648         search_.h.
47649         * lib/signal.in.h: Renamed from lib/signal_.h.
47650         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47651         _signal.h.
47652         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47653         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47654         stdbool_.h.
47655         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47656         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47657         stdint_.h.
47658         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47659         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47660         stdio_.h.
47661         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47662         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47663         stdlib_.h.
47664         * lib/string.in.h: Renamed from lib/string_.h.
47665         * modules/string (Files, Makefile.am): Use string.in.h instead of
47666         string_.h.
47667         * doc/gnulib-tool.texi (Initial import): Update.
47668         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47669         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47670         of sys_select_.h. Add dependency.
47671         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47672         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47673         of sys_socket_.h.
47674         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47675         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47676         sys_stat_.h.
47677         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47678         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47679         sys_time_.h.
47680         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47681         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47682         sysexits_.h.
47683         * lib/time.in.h: Renamed from lib/time_.h.
47684         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47685         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47686         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47687         unistd_.h.
47688         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47689         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47690         wchar_.h.
47691         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47692         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47693         wctype_.h.
47694         * build-aux/bootstrap (slurp): Update.
47695         * lib/.cppi-disable: Update.
47696
47697 2007-09-30  Bruno Haible  <bruno@clisp.org>
47698
47699         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47700         Needed on BeOS.
47701
47702 2007-09-30  Bruno Haible  <bruno@clisp.org>
47703
47704         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47705
47706 2007-09-29  Bruno Haible  <bruno@clisp.org>
47707
47708         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47709
47710 2007-09-29  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47713         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47714         * build-aux/install-reloc: Compile also areadlink.c.
47715         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47716
47717 2007-09-29  Bruno Haible  <bruno@clisp.org>
47718
47719         * gnulib-tool (func_emit_initmacro_done): Indentation.
47720
47721 2007-09-29  Bruno Haible  <bruno@clisp.org>
47722
47723         * README: Add CVS checkout update instructions.
47724         Info from Bob Proulx <bob@proulx.com>.
47725
47726 2007-09-28  Eric Blake  <ebb9@byu.net>
47727
47728         Provide move-if-change.
47729         * build-aux/move-if-change: New file, based on best practice
47730         rather than any canonical upstream location.
47731
47732 2007-09-28  Jim Meyering  <jim@meyering.net>
47733
47734         Fix canonicalize loop-detection corner case.
47735         Do not attempt to stat the symlink values stored via seen_triple.
47736         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47737         on linux-2.6.18, (but not 2.6.22).
47738         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47739         triple_compare.  The former compares dev,ino,filename, while the latter
47740         would actually stat dirname(filename) when dev and ino were equal.
47741         * lib/hash-triple.c: Install <string.h>.
47742         (STREQ): Define.
47743         (triple_compare_ino_str): New function.
47744         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47745
47746 2007-09-28  Eric Blake  <ebb9@byu.net>
47747
47748         Enforce that AC_REPLACE_FUNCS files exist.
47749         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47750         override check for typos.
47751
47752         Fix test-closein on Solaris 10.
47753         * tests/test-closein.c (main): Don't assume stdin can be inherited
47754         closed on all systems.
47755         * tests/test-closein.sh: Likewise.
47756         Reported by Piotr Tarnowski.
47757
47758 2007-09-28  Jim Meyering  <jim@meyering.net>
47759
47760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47761
47762 2007-09-27  Jim Meyering  <jim@meyering.net>
47763
47764         canonicalize: Avoid a false-positive cycle failure.
47765         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47766         Sort.  Remove cycle-check.
47767         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47768         not cycle-check.h.
47769         (seen_triple): New function.
47770         (canonicalize_filename_mode): Use it instead of cycle-check.
47771         * tests/test-canonicalize.c: Add a test for this bug.
47772         * tests/test-canonicalize.sh: Set up and run the test.
47773
47774         New module, file-set, from coreutils.
47775         * modules/file-set: Define it.
47776         * lib/file-set.c, lib/file-set.h: Implement.
47777
47778         New module, hash-triple, from coreutils.
47779         * modules/hash-triple: Define it.
47780         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47781
47782 2007-09-25  Eric Blake  <ebb9@byu.net>
47783
47784         Fix strerror on Interix.
47785         * lib/string_.h (strerror): Declare replacement.
47786         * doc/functions/strerror.texi (strerror): Document the Interix
47787         shortcoming.
47788         * modules/string (Makefile.am): Support new hooks.
47789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47790         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47791         gl_FUNC_STRERROR_SEPARATE.
47792         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47793         * lib/strerror.c (rpl_strerror): Provide replacement.
47794         * modules/strerror (Depends-on): Add string.
47795         (configure.ac): Detect use of module.
47796         * tests/test-strerror.c: New file.
47797         * modules/strerror-tests: New test module.
47798         * modules/argp (Depends-on): Add strerror.
47799         * modules/error (Depends-on): Likewise.
47800         Reported by Martin Koeppe.
47801
47802 2007-09-24  Bruno Haible  <bruno@clisp.org>
47803
47804         * README: Update git instructions.
47805
47806 2007-09-24  Eric Blake  <ebb9@byu.net>
47807
47808         Revert fpending breakage from 2007-09-08.
47809         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47810         __fpending.c.
47811
47812 2007-09-24  Jim Meyering  <jim@meyering.net>
47813
47814         filenamecat.c: Add a test.
47815         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47816         showing how the function works when DIR is the empty string.
47817
47818 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47819
47820         * tests/test-canonicalize.sh: Turn on executable bit.
47821
47822 2007-09-19  Eric Blake  <ebb9@byu.net>
47823
47824         * README: Update CVS instructions.
47825
47826 2007-09-18  Bruno Haible  <bruno@clisp.org>
47827
47828         * modules/areadlink: New file.
47829         * lib/areadlink.h (areadlink): New declaration.
47830         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47831
47832 2007-09-17  Jim Meyering  <jim@meyering.net>
47833
47834         * lib/savewd.c (ESTALE) [!defined]: Define.
47835         Reported to be required on Interix by Martin Koeppe.
47836
47837 2007-09-17  Bruno Haible  <bruno@clisp.org>
47838
47839         * gnulib-tool (func_version): Use $version.
47840
47841 2007-09-16  Bruno Haible  <bruno@clisp.org>
47842
47843         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47844         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47845         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47846         Reported by Greg Schafer <gschafer@zip.com.au>.
47847
47848 2007-09-15  Bruno Haible  <bruno@clisp.org>
47849
47850         * gnulib-tool (sed): Try a little harder to make bash understand the
47851         alias.
47852         Reported by Bruce Korb <bruce.korb@gmail.com>.
47853
47854 2007-09-13  Eric Blake  <ebb9@byu.net>
47855
47856         * ChangeLog: Remove conflict markers.
47857
47858 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47859
47860         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47861         Reported by Bruno Haible <bruno@clisp.org>.
47862
47863 2007-09-12  Bruno Haible  <bruno@clisp.org>
47864
47865         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47866         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47867         is not defined.
47868
47869 2007-09-12  Eric Blake  <ebb9@byu.net>
47870
47871         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47872         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47873         Autoconf definition.
47874         * modules/euidaccess (Depends-on): Add extensions, for
47875         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47876         * modules/fnmatch (Depends-on): Likewise.
47877         * modules/getaddrinfo (Depends-on): Likewise.
47878         * modules/getdelim (Depends-on): Likewise.
47879         * modules/getline (Depends-on): Likewise.
47880         * modules/getsubopt (Depends-on): Likewise.
47881         * modules/gettext (Depends-on): Likewise.
47882         * modules/group-member (Depends-on): Likewise.
47883         * modules/mbchar (Depends-on): Likewise.
47884         * modules/memmem (Depends-on): Likewise.
47885         * modules/mempcpy (Depends-on): Likewise.
47886         * modules/memrchr (Depends-on): Likewise.
47887         * modules/pagealign_alloc (Depends-on): Likewise.
47888         * modules/readutmp (Depends-on): Likewise.
47889         * modules/stpcpy (Depends-on): Likewise.
47890         * modules/stpncpy (Depends-on): Likewise.
47891         * modules/strchrnul (Depends-on): Likewise.
47892         * modules/strndup (Depends-on): Likewise.
47893         * modules/strsep (Depends-on): Likewise.
47894         * modules/strverscmp (Depends-on): Likewise.
47895         * modules/vasprintf (Depends-on): Likewise.
47896         * modules/wcwidth (Depends-on): Likewise.
47897         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47898         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47901         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47902         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47903         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47904         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47905         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47906         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47909         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47910         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47911         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47912         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47914         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47917         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47919         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47920         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47921         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47923         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47924         so that lock.m4 can be used in gettext without extensions module.
47925
47926 2007-09-11  Bruno Haible  <bruno@clisp.org>
47927
47928         * m4/isc-posix.m4: Remove file.
47929         Suggested by Eric Blake.
47930
47931 2007-09-11  Eric Blake  <ebb9@byu.net>
47932
47933         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47934
47935 2007-09-10  Bruno Haible  <bruno@clisp.org>
47936
47937         * posix-modules: Fix typo in error message.
47938         Reported by Matt <mkraai@beckman.com>.
47939
47940 2007-09-09  Bruno Haible  <bruno@clisp.org>
47941
47942         * doc/functions/getdelim.texi: Update list of platforms lacking the
47943         function.
47944         * doc/functions/getline.texi: Likewise.
47945
47946 2007-09-09  Jim Meyering  <jim@meyering.net>
47947
47948         * lib/hash.c (hash_initialize): Detect calloc failure.
47949         Reported by Bruno Haible.
47950
47951 2007-09-09  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47954         malloc or realloc fails.
47955
47956 2007-09-09  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/getcwd (Depends-on): Add malloc-posix.
47959         * modules/glob (Depends-on): Likewise.
47960         * modules/putenv (Depends-on): Likewise.
47961         * modules/strdup (Depends-on): Likewise.
47962         * modules/getdelim (Depends-on): Add realloc-posix.
47963         * modules/read-file (Depends-on): Likewise.
47964
47965 2007-09-09  Bruno Haible  <bruno@clisp.org>
47966
47967         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47968         (gl_FUNC_MALLOC_POSIX): Require it.
47969         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47970         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47971         * modules/realloc (Files): Add m4/malloc.m4.
47972         * modules/calloc (Files): Likewise.
47973
47974 2007-09-09  Bruno Haible  <bruno@clisp.org>
47975
47976         * modules/malloc-posix: New file.
47977         * modules/malloc (Depends-on): Add malloc-posix.
47978         * lib/malloc.c: Include errno.h.
47979         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47980         and a POSIX-compatible malloc into a single function. Set ENOMEM
47981         when returning NULL.
47982         * m4/malloc.m4: New file.
47983         * doc/functions/malloc.texi: Mention the malloc-posix module.
47984         * lib/stdlib_.h (malloc): New declaration.
47985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47986         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47987         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47988         and HAVE_MALLOC_POSIX.
47989
47990 2007-09-09  Bruno Haible  <bruno@clisp.org>
47991
47992         * modules/realloc-posix: New file.
47993         * modules/realloc (Depends-on): Add realloc-posix.
47994         * lib/realloc.c: Include errno.h.
47995         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47996         and a POSIX-compatible realloc into a single function. Set ENOMEM
47997         when returning NULL.
47998         * m4/realloc.m4: New file.
47999         * doc/functions/realloc.texi: Mention the realloc-posix module.
48000         * lib/stdlib_.h (realloc): New declaration.
48001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48002         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48003         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48004         and HAVE_REALLOC_POSIX.
48005
48006 2007-09-09  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/calloc-posix: New file.
48009         * modules/calloc (Depends-on): Add calloc-posix.
48010         * lib/calloc.c: Include errno.h.
48011         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48012         and a POSIX-compatible calloc into a single function. Set ENOMEM
48013         when returning NULL.
48014         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48015         * doc/functions/calloc.texi: Mention the calloc-posix module.
48016         * lib/stdlib_.h (calloc): New declaration.
48017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48018         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48019         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48020         and HAVE_CALLOC_POSIX.
48021
48022 2007-09-09  Bruno Haible  <bruno@clisp.org>
48023
48024         Allow for modules to show an arbitrary notice.
48025         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48026         * gnulib-tool: New option --extract-notice.
48027         (func_usage): Document it.
48028         (sed_extract_prog): Update.
48029         (func_get_notice): New function.
48030         (func_modules_notice): New function.
48031         (func_import, func_create_testdir): Invoke it.
48032         Suggested by Jim Meyering.
48033
48034 2007-09-09  Bruno Haible  <bruno@clisp.org>
48035
48036         * gnulib-tool: New options --verbose, --quiet.
48037         (func_usage): Document them.
48038         (verbose): New variable.
48039         (func_execute_command): New function.
48040         (func_import): Don't show the module list and the file list if
48041         $verbose < 0.
48042         (func_create_testdir): Likewise. Use func_execute_command.
48043         (func_create_megatestdir): Use func_execute_command.
48044
48045 2007-09-08  Bruno Haible  <bruno@clisp.org>
48046
48047         * gnulib-tool (func_import): Prefer rsync over wget when available,
48048         for fetching the PO files.
48049
48050 2007-09-08  Bruno Haible  <bruno@clisp.org>
48051
48052         * posix-modules: New file. Portions copied from gnulib-tool.
48053         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48054
48055 2007-09-08  Jim Meyering  <jim@meyering.net>
48056
48057         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48058         * lib/fpending.h: Rename from __fpending.h.
48059         * lib/fpending.c: Rename from __fpending.c.
48060         Include "fpending.h", not "__fpending.h".
48061         * lib/__fpending.h, lib/__fpending.c: Remove files.
48062         * modules/fpending (Files): Reflect new file names.
48063         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48064
48065 2007-09-08  Bruno Haible  <bruno@clisp.org>
48066
48067         * m4/inttypes-h.m4: Remove stub file.
48068
48069 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48070
48071         * doc/headers/stdint.texi: Discuss #include_next issue.
48072
48073 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48074
48075         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48076
48077 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48078
48079         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48080         in variable name.
48081
48082 2007-09-03  Jim Meyering  <jim@meyering.net>
48083
48084         New module: git-version-gen.
48085         * modules/git-version-gen: New file.
48086
48087         Import changes from coreutils for bootstrap script.
48088
48089         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48090
48091         bootstrap: uses rsync to download the .po files
48092         * build-aux/bootstrap (po_download_command_format): New global.
48093         (download_po_files): Use rsync.
48094         (update_po_files): Don't remove .po files after download,
48095         so future rsync runs can take advantage of the copies.
48096
48097         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48098
48099         Solve the unnecessary-.po-file-regeneration problem once and for all.
48100         * build-aux/bootstrap (download_po_files): New function, renamed from
48101         get_translations.  Now, downloads, but doesn't update LINGUAS.
48102         (update_po_files): New function.
48103
48104         bootstrap: Ignore more.
48105         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48106         uniwidth to e.g., lib/.gitignore.
48107         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48108
48109         * build-aux/bootstrap: New setting: vc_ignore.
48110         (insert_sorted_if_absent): Create $file if absent.
48111         Adapt to new, possibly empty, list: $vc_ignore.
48112
48113         bootstrap: generate more ignorable names
48114         * build-aux/bootstrap (slurp): When generating ignorable names,
48115         also map .sin to .sed, .gperf to .c, and .y to .c.
48116
48117 2007-09-03  Jim Meyering  <jim@meyering.net>
48118
48119         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48120         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48121
48122 2007-09-02  Bruno Haible  <bruno@clisp.org>
48123
48124         Fix mis-recognition of 'mcs' on QNX 6.
48125         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48126         output contains the string "Mono".
48127         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48128         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48129
48130 2007-09-01  Bruno Haible  <bruno@clisp.org>
48131
48132         Fix collision between uniwidth/* and linebreak modules.
48133         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48134         u32_width): Remove declarations.
48135         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48136         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48137         streq3, streq2, streq1, streq0): Remove functions.
48138         (STREQ): Remove macro.
48139         (is_cjk_encoding): Remove function.
48140         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48141         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48142         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48143         * NEWS: Document the change.
48144
48145 2007-09-01  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/streq.h: Add double-inclusion guard.
48148
48149 2007-09-01  Karl Berry  <karl@gnu.org>
48150
48151         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48152
48153 2007-08-28  Jim Meyering  <jim@meyering.net>
48154
48155         Rename mreadlink_with_size to areadlink_with_size.
48156         * NEWS: Document the change.
48157         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48158         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48159         * lib/mreadlink.h: Rename this to...
48160         * lib/areadlink.h: ...this.
48161         * modules/mreadlink-with-size: Rename this to...
48162         * modules/areadlink-with-size: ...this.
48163         * lib/canonicalize.c: Reflect the renaming.
48164         * modules/canonicalize: Likewise.
48165
48166 2007-08-26  Bruno Haible  <bruno@clisp.org>
48167
48168         * gnulib-tool (func_import): When deciding which files to remove,
48169         consider also dangling symbolic links.
48170         Reported by Eric Blake.
48171
48172 2007-08-26  Bruno Haible  <bruno@clisp.org>
48173
48174         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48175
48176 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48177
48178         * lib/readline.c: Don't include getline.h, the prototype is now
48179         found in stdio.h.
48180
48181 2007-08-23  Jim Meyering  <jim@meyering.net>
48182
48183         Getdelim touchup.
48184         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48185         around the funlockfile call, since funlockfile never sets errno.
48186         Don't set errno upon failed realloc.
48187
48188 2007-08-22  Eric Blake  <ebb9@byu.net>
48189
48190         Getline touchups.
48191         * lib/getdelim.c (getdelim): Revert regression that required *n to
48192         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48194         getdelim, rather than whether implementation is missing.
48195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48196         * lib/stdio_.h (getline): Also declare if replacement is
48197         required.
48198         * doc/functions/getdelim.texi: New file.
48199         * doc/functions/getline.texi: Likewise.
48200         * doc/gnulib.texi (Function Substitutes): Add new files.
48201         Reported by Bruno Haible.
48202
48203 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48204
48205         * users.txt: Add Guile.
48206
48207 2007-08-22  Eric Blake  <ebb9@byu.net>
48208
48209         * tests/test-getdelim.c (main): Use remove, not unlink.
48210         * tests/test-getline.c (main): Likewise.
48211
48212         Move getline and getdelim into stdio.h, per POSIX 200x.
48213         * modules/getline (Files): Remove getline.h.
48214         (Depends-on): Add stdio.
48215         (configure.ac): Add module indicator.
48216         * modules/getdelim (Files): Remove getdelim.h.
48217         (Depends-on): Add stdio.
48218         (configure.ac): Add module indicator.
48219         * modules/stdio (Makefile.am): Work with new indicators.
48220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48223         * lib/getdelim.h: Delete.
48224         * lib/getline.h: Delete.
48225         * lib/stdio_.h (getdelim, getline): Declare.
48226         * modules/getdelim-tests: New module.
48227         * modules/getline-tests: Likewise.
48228         * tests/test-getdelim.c: New file.
48229         * tests/test-getline.c: Likewise.
48230         * NEWS: Document the change.
48231         * lib/getline.c: Update choice of header.
48232         * lib/csharpcomp.c: Likewise.
48233         * lib/getpass.c: Likewise.
48234         * lib/javacomp.c: Likewise.
48235         * lib/javaversion.c: Likewise.
48236         * lib/yesno.c: Likewise.
48237         * lib/getdelim.c: Likewise.
48238         (getdelim): Set errno on failure, and avoid memory leak.
48239
48240 2007-08-19  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/closein (Depends-on): Add freadahead.
48243         * lib/closein.c: Include freadahead.h.
48244         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48245         is zero.
48246
48247 2007-08-19  Bruno Haible  <bruno@clisp.org>
48248
48249         * modules/freadahead-tests: New file.
48250         * tests/test-freadahead.sh: New file.
48251         * tests/test-freadahead.c: New file.
48252
48253         * modules/freadahead: New file.
48254         * lib/freadahead.h: New file.
48255         * lib/freadahead.c: New file.
48256         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48257         fbufmode, fpurge, freadable, fwritable.
48258
48259 2007-08-19  Eric Blake  <ebb9@byu.net>
48260
48261         Test yesno in combination with closein.
48262         * lib/yesno.c (yesno): Document use of stdin.
48263         * modules/yesno-tests (Files): New module.
48264         * tests/test-yesno.c (main): New file.
48265         * tests/test-yesno.sh: Likewise.
48266
48267 2007-08-19  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48270         * lib/fseeko.c (rpl_fseeko): Likewise.
48271         * lib/fseterr.c (fseterr): Likewise.
48272
48273 2007-08-19  Bruno Haible  <bruno@clisp.org>
48274
48275         * tests/test-lseek.c (main): Disable a test for BeOS.
48276         * doc/functions/lseek.texi: Document the BeOS bug.
48277
48278 2007-08-19  Bruno Haible  <bruno@clisp.org>
48279             Eric Blake  <ebb9@byu.net>
48280
48281         * lib/lseek.c: Include <sys/stat.h>.
48282         (rpl_lseek): Add workaround code also for Unix platforms.
48283         Needed for BeOS.
48284         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48285         * doc/functions/lseek.texi: Document BeOS definiency.
48286
48287 2007-08-18  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/fstrcmp-tests: New file.
48290         * tests/test-fstrcmp.c: New file.
48291
48292 2007-08-18  Bruno Haible  <bruno@clisp.org>
48293
48294         * modules/fstrcmp: New file, from GNU gettext with modifications.
48295         * lib/fstrcmp.h: New file, from GNU gettext.
48296         * lib/fstrcmp.c: New file, from GNU gettext.
48297         * MODULES.html.sh (String handling): Add fstrcmp.
48298
48299 2007-08-18  Bruno Haible  <bruno@clisp.org>
48300
48301         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48302         'bool'.
48303         (diag, compareseq): Remove const from the ctxt argument.
48304         (USE_HEURISTIC): Undefine at the end.
48305
48306 2007-08-18  Jim Meyering  <jim@meyering.net>
48307
48308         New file: lib/idcache.h
48309         * NEWS: Mention the addition.
48310         * modules/idcache (Files): Add lib/idcache.h
48311         * lib/idcache.c: Include "idcache.h".
48312         Don't include <sys/types.h>.
48313         Add a FIXME comment.
48314         Move file-scoped "static" declarations to the top.
48315         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48316
48317 2007-08-17  Bruno Haible  <bruno@clisp.org>
48318         and Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         * MODULES.html.sh: Add diffseq.
48321         * modules/diffseq: New file.
48322         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48323         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48324
48325 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         Import changes from coreutils for bootstrap script.
48328
48329         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         * build-aux/bootstrap (slurp): Work even in environments where
48332         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48333         current code does not slurp files whose names start with ".", and
48334         this looks like it might be a troublesome area.
48335
48336         2007-07-11  Jim Meyering  <jim@meyering.net>
48337
48338         If there's a GPL vN copyright comment, require that N == 3.
48339
48340         2007-07-08  Jim Meyering  <jim@meyering.net>
48341
48342         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48343         * build-aux/bootstrap (mam_template): Move definition out of loop.
48344
48345         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48346
48347         * build-aux/bootstrap (symlink_to_dir): Rename function from
48348         symlink_to_gnulib.  Add a directory parameter.  Update all
48349         callers.
48350         (cp_mark_as_generated): Also check for -- and link to -- files in
48351         gl/.
48352
48353         2007-07-08  Jim Meyering  <jim@meyering.net>
48354
48355         Adapt to deeper hierarchy in gnulib.
48356         * build-aux/bootstrap (symlink_to_dir): If the destination
48357         directory doesn't exist, create it. This is required at least for
48358         "lib/uniwidth/cjk.h".
48359
48360         2007-05-15  Jim Meyering  <jim@meyering.net>
48361
48362         * build-aux/bootstrap: Now that generated Makefile.am files
48363         are no longer under version control, they must be created at
48364         bootstrap time.
48365
48366 2007-08-14  Ben Pfaff  <blp@gnu.org>
48367
48368         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48369
48370 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48373         given the changes below.
48374         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48375         even on hosts that have padding bits beyond the supported 64.
48376
48377 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48378
48379         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48380         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48381         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48382         depends on it.
48383         (xstrtol_error): Remove.
48384         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48385         but with a different signature.
48386         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48387         * lib/xstrtol-error.c: Include exitfail.h.
48388         (xstrtol_fatal): New function, with a different signature from the
48389         old xstrtol_error, so that the caller need not worry about passing
48390         in an exit status, or about storage management of the option argument.
48391         (xstrtol_error): Now a static function.  Redo signature to
48392         implement xstrtol_fatal.  Output the correct number of hyphens in
48393         front of the option so that the caller need not worry about
48394         storage management.
48395         (N_): New macro.
48396         (_): Remove; not used now.
48397         * modules/xstrtol: Depend on getopt.
48398         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48399         of old STRTOL_FATAL_ERROR macro.
48400         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48401         of test program.
48402         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48403         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48404
48405 2007-08-08  Eric Blake  <ebb9@byu.net>
48406
48407         * lib/xstrtol-error.c: Add missing include.
48408
48409         Move xstrtol messages into gnulib domain, when --pobase is used.
48410         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48411         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48412         * modules/xstrtol (Files): Distribute new file.
48413         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48414         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48415         * tests/test-xstrtol.c: ...into new file.
48416         * tests/test-xstrtoul.c: Also test xstrtoul.
48417         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48418         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48419         * tests/test-xstrtol.sh: Drive the tests.
48420         * tests/test-xstrtoimax.sh: Likewise.
48421         * tests/test-xstrtoumax.sh: Likewise.
48422         * modules/xstrtol-tests: New module.
48423         * modules/xstrtoimax-tests: Likewise.
48424         * modules/xstrtoumax-tests: Likewise.
48425
48426 2007-08-08  Jim Meyering  <jim@meyering.net>
48427
48428         New function: mfile_name_concat.
48429         * lib/filenamecat.c (mfile_name_concat): New function, just like
48430         file_name_concat, but return NULL upon failure rather than exiting
48431         with a diagnostic.
48432         * lib/filenamecat.h: Declare it.
48433
48434 2007-08-07  Bruno Haible  <bruno@clisp.org>
48435
48436         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48437         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48438         warning from gcc.
48439         Reported by Eric Blake.
48440
48441 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48442
48443         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48444         * modules/crypto/arcfour (License): Likewise.
48445         * modules/crypto/des-tests (License): Likewise.
48446         * modules/crypto/gc-arctwo-tests (License): Likewise.
48447         * modules/crypto/gc-des-tests (License): Likewise.
48448         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48449         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48450         * modules/crypto/gc-md2-tests (License): Likewise.
48451         * modules/crypto/gc-md4-tests (License): Likewise.
48452         * modules/crypto/gc-md5-tests (License): Likewise.
48453         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48454         * modules/crypto/gc-rijndael-tests (License): Likewise.
48455         * modules/crypto/gc-sha1-tests (License): Likewise.
48456         * modules/crypto/gc-tests (License): Likewise.
48457         * modules/crypto/hmac-md5 (License): Likewise.
48458         * modules/crypto/hmac-sha1 (License): Likewise.
48459         * modules/crypto/md2-tests (License): Likewise.
48460         * modules/crypto/md4-tests (License): Likewise.
48461         * modules/crypto/md5 (License): Likewise.
48462         * modules/crypto/rijndael (License): Likewise.
48463         * modules/crypto/sha1 (License): Likewise.
48464         * modules/memxor (License): Likewise.
48465
48466 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48467         and Bruno Haible  <bruno@clisp.org>
48468
48469         * NEWS: Describe interface changes to human, xstrtol.
48470         * lib/human.h: Include <xstrtol.h>.
48471         (human_options): Return enum strtol_error, not int.  Remove
48472         bool arg; take int * instead.
48473         * lib/human.c: Don't include "gettext.h".
48474         (_): Remove; no longer used.
48475         Don't include <xstrtol.h>, since human.h does it.
48476         (human_options): Adjust to abovementioned interface changes.
48477         Do not report error to stderr; that's now the caller's
48478         responsibility.
48479         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48480         interface change.
48481         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48482         Str, Argument_type_string.  All uses changed.  Put " argument"
48483         in diagnostics to make them clearer.  Change wording of suffix
48484         message for clarity.
48485         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48486         Argument_type_string.
48487         (STRTOL_FATAL_WARN): Remove; no longer used.
48488         * modules/human (Depends-on): Remove gettext-h.
48489
48490 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48491
48492         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48493
48494 2007-07-31  Bruno Haible  <bruno@clisp.org>
48495
48496         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48497         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48498         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48499
48500 2007-07-31  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48503         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48504
48505 2007-07-30  Bruno Haible  <bruno@clisp.org>
48506
48507         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48508         * modules/c-ctype (License): Likewise.
48509         * modules/c-strcase (License): Likewise.
48510         * modules/check-version (License): Likewise.
48511         * modules/iconv (License): Likewise.
48512         * modules/iconv_open (License): Likewise.
48513         * modules/read-file (License): Likewise.
48514         * modules/striconv (License): Likewise.
48515         * modules/strverscmp (License): Likewise.
48516         * modules/vasprintf (License): Likewise.
48517         * modules/crypto/des (License): Likewise.
48518         * modules/crypto/gc (License): Likewise.
48519         * modules/crypto/gc-arcfour (License): Likewise.
48520         * modules/crypto/gc-arctwo (License): Likewise.
48521         * modules/crypto/gc-des (License): Likewise.
48522         * modules/crypto/gc-hmac-md5 (License): Likewise.
48523         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48524         * modules/crypto/gc-md2 (License): Likewise.
48525         * modules/crypto/gc-md4 (License): Likewise.
48526         * modules/crypto/gc-md5 (License): Likewise.
48527         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48528         * modules/crypto/gc-random (License): Likewise.
48529         * modules/crypto/gc-rijndael (License): Likewise.
48530         * modules/crypto/gc-sha1 (License): Likewise.
48531         * modules/crypto/md2 (License): Likewise.
48532         * modules/crypto/md4 (License): Likewise.
48533
48534 2007-07-30  Jim Meyering  <jim@meyering.net>
48535
48536         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48537         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48538         it has valid stat data.  This bug would cause du not to count the
48539         sizes of inaccessible directories.
48540         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48541         in <http://bugzilla.redhat.com/250077>.
48542
48543 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48544             Bruno Haible  <bruno@clisp.org>
48545
48546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48547         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48548         #include_next, gives a diagnostic about it, but reports no error in
48549         the exit code.
48550         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48551
48552 2007-07-24  Ben Pfaff  <blp@gnu.org>
48553
48554         Improve name: "count-one-bits" is better than "popcount".
48555         * MODULES.html.sh: Update name.
48556         * lib/popcount.h: Renamed lib/count-one-bits.h.
48557         (popcount): Renamed count_one_bits.
48558         (popcountl): Renamed count_one_bits_l.
48559         (popcountll): Renamed count_one_bits_ll.
48560         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48561         * modules/popcount: Renamed module/count-one-bits.
48562         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48563         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48564
48565 2007-07-23  Ben Pfaff  <blp@gnu.org>
48566
48567         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48568         better code generation, and add U to large constants to avoid
48569         warnings, in non-GCC case.
48570         Suggested by Bruno Haible.
48571
48572 2007-07-23  Ben Pfaff  <blp@gnu.org>
48573
48574         * lib/popcount.h: Use verify_true instead of if...abort.
48575         * modules/popcount: Depend on verify module.
48576         Suggested by Jim Meyering.
48577
48578 2007-07-23  Bruno Haible  <bruno@clisp.org>
48579
48580         * gnulib-tool (func_import): Create a .cvsignore file also when the
48581         directory is not yet in CVS but the toplevel directory is. When
48582         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48583         Reported by Karl Berry.
48584
48585 2007-07-22  Ben Pfaff  <blp@gnu.org>
48586
48587         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48588         case.
48589         Suggested by Eric Blake.
48590
48591 2007-07-22  Ben Pfaff  <blp@gnu.org>
48592
48593         New module: popcount.
48594         * MODULES.html.sh: Add popcount.
48595         * modules/popcount: New file.
48596         * modules/popcount-tests: New file.
48597         * tests/test-popcount.c: New file.
48598         * lib/popcount.h: New file.
48599         * m4/popcount.m4: New file.
48600
48601 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48602
48603         * build-aux/announce-gen: Update to GPLv3.
48604
48605         * build-aux/config.guess: Update from config.
48606
48607 2007-07-21  Bruno Haible  <bruno@clisp.org>
48608
48609         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48610         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48611
48612 2007-07-20  Jim Meyering  <jim@meyering.net>
48613
48614         * check-module: Diagnose a self-dependency.
48615
48616 2007-07-19  Bruno Haible  <bruno@clisp.org>
48617
48618         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48619         empty.
48620         Reported by Eric Blake.
48621
48622 2007-07-18  Bruno Haible  <bruno@clisp.org>
48623
48624         * gnulib-tool: New options --po-base, --po-domain.
48625         (func_usage): Document them.
48626         (pobase, po_domain): New variables.
48627         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48628         DEFAULT_TEXT_DOMAIN.
48629         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48630         (func_import): Consider pobase and po_domain. Create a po/ directory.
48631         (func_create_testdir): Set pobase and po_domain to empty.
48632         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48633         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48634
48635 2007-07-18  Bruno Haible  <bruno@clisp.org>
48636
48637         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48638         EXTRA_DIST augmentation for files in build-aux/.
48639
48640 2007-07-16  Bruno Haible  <bruno@clisp.org>
48641
48642         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48643         * modules/getdelim (License): Likewise.
48644
48645 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48646
48647         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48648         * modules/d-type (License): Likewise.
48649         * modules/extensions (License): Likewise.
48650         * modules/fnmatch (License): Likewise.
48651         * modules/fseeko (License): Likewise.
48652         * modules/getaddrinfo (License): Likewise.
48653         * modules/getline (License): Likewise.
48654         * modules/getlogin_r (License): Likewise.
48655         * modules/getpass (License): Likewise.
48656         * modules/gettimeofday (License): Likewise.
48657         * modules/glob (License): Likewise.
48658         * modules/inet_ntop (License): Likewise.
48659         * modules/malloc (License): Likewise.
48660         * modules/malloca (License): Likewise.
48661         * modules/memmem (License): Likewise.
48662         * modules/mempcpy (License): Likewise.
48663         * modules/memset (License): Likewise.
48664         * modules/minmax (License): Likewise.
48665         * modules/mktime (License): Likewise.
48666         * modules/netinet_in (License): Likewise.
48667         * modules/pathmax (License): Likewise.
48668         * modules/poll (License): Likewise.
48669         * modules/regex (License): Likewise.
48670         * modules/snprintf (License): Likewise.
48671         * modules/stdbool (License): Likewise.
48672         * modules/stdint (License): Likewise.
48673         * modules/stdio (License): Likewise.
48674         * modules/strcase (License): Likewise.
48675         * modules/strcasestr (License): Likewise.
48676         * modules/strdup (License): Likewise.
48677         * modules/string (License): Likewise.
48678         * modules/strndup (License): Likewise.
48679         * modules/strnlen (License): Likewise.
48680         * modules/strpbrk (License): Likewise.
48681         * modules/strptime (License): Likewise.
48682         * modules/strsep (License): Likewise.
48683         * modules/sys_select (License): Likewise.
48684         * modules/sys_socket (License): Likewise.
48685         * modules/sys_stat (License): Likewise.
48686         * modules/sys_time (License): Likewise.
48687         * modules/time (License): Likewise.
48688         * modules/time_r (License): Likewise.
48689         * modules/timegm (License): Likewise.
48690         * modules/unistd (License): Likewise.
48691         * modules/vsnprintf (License): Likewise.
48692         * modules/wctype (License): Likewise.
48693
48694 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48695
48696         * modules/argz (License): LGPLv2+.
48697
48698 2007-07-15  Karl Berry  <karl@gnu.org>
48699
48700         * doc/gnulib.texi: revise node structure per new fdl.texi.
48701
48702 2007-07-14  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48705         the output file.
48706         * lib/uniname/uninames.h: Regenerated.
48707
48708 2007-07-14  Karl Berry  <karl@gnu.org>
48709
48710         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48711         omitting sectioning and index commands.
48712
48713 2007-07-13  Bruno Haible  <bruno@clisp.org>
48714
48715         New gnulib-tool option --more-symlinks.
48716         * gnulib-tool (func_usage): Document --more-symlinks.
48717         (do_copyrights): New variable.
48718         Recognize option --more-symlinks.
48719         (func_import): Don't add a copyright notice transform to
48720         sed_transform_lib_file if do_copyrights is empty.
48721
48722 2007-07-13  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/vasnprintf.c (decimal_point_char): Define also if
48725         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48726         && !NEED_PRINTF_DIRECTIVE_A.
48727         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48728         Gary V. Vaughan <gary@gnu.org>.
48729
48730 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/inttypes_.h: Undo previous change, since it was fixed
48733         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48734
48735 2007-07-13  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48738         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48739
48740 2007-07-13  Jim Meyering  <jim@meyering.net>
48741
48742         df: Don't fail for Tru64's "file-on-file mount".
48743         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48744         so we fall through and use statfs instead.  Details here:
48745         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48746         Reported by Albert Chin.
48747
48748 2007-07-13  Bruno Haible  <bruno@clisp.org>
48749
48750         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48751         * modules/configmake (License): Likewise.
48752         * modules/gettext (License): Likewise.
48753         * modules/gettext-h (License): Likewise.
48754         * modules/include_next (License): Likewise.
48755         * modules/link-warning (License): Likewise.
48756         * modules/localcharset (License): Likewise.
48757         * modules/localename (License): Likewise.
48758         * modules/lock (License): Likewise.
48759         * modules/relocatable-lib-lgpl (License): Likewise.
48760         * modules/size_max (License): Likewise.
48761         * modules/vasnprintf (License): Likewise.
48762         * modules/wchar (License): Likewise.
48763         * modules/xsize (License): Likewise.
48764
48765 2007-07-13  Bruno Haible  <bruno@clisp.org>
48766
48767         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48768         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48769
48770 2007-07-12  Bruno Haible  <bruno@clisp.org>
48771
48772         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48773         in the modules files.
48774
48775 2007-07-11  Karl Berry  <karl@gnu.org>
48776
48777         * MODULES.html.sh (func_module): use
48778          sed -e '\|^'"${includefile}"'$|d'
48779          instead of /.../d, to avoid errors on $includefile's containing /.
48780
48781 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48782
48783         * gnulib-tool (func_import): Avoid duplication of --avoid
48784         statements
48785         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48786         names to `_' in variable names.
48787
48788 2007-07-10  Eric Blake  <ebb9@byu.net>
48789
48790         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48791         * NEWS: Document this change.
48792
48793 2007-07-08  Bruno Haible  <bruno@clisp.org>
48794
48795         Update to Unicode 5.0.
48796         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48797         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48798         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48799         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48800         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48801         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48802         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48803         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48804         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48805         U+10A3F, U+1D242..U+1D244.
48806         (nonspacing_table_ind): Update.
48807         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48808         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48809
48810 2007-07-08  Bruno Haible  <bruno@clisp.org>
48811
48812         Update to Unicode 5.0.
48813         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48814         code transform. Extend the name index field of unicode_name_to_code and
48815         unicode_code_to_name from 16 to 24 bits.
48816         * lib/uniname/uniname.c (unicode_character_name,
48817         unicode_name_character): Add the range 0x12xxx to the code transform.
48818         * lib/uniname/uninames.h: Regenerated.
48819         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48820
48821 2007-07-07  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/wcwidth-tests: New file.
48824         * tests/test-wcwidth.c: New file.
48825
48826         Work around MacOS X wcwidth() bug.
48827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48828         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48829         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48830         original wcwidth in non-UTF-8 locales.
48831         * modules/wcwidth (Depends-on): Add localcharset, streq,
48832         uniwidth/width.
48833         * doc/functions/wcwidth.texi: Update.
48834
48835 2007-07-07  Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48838         (wcwidth): New declaration.
48839         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48840         macros.
48841         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48842         here. Prepare for creating <wchar.h> unconditionally.
48843         * modules/wchar (Depends-on): Add link-warning.
48844         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48845         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48846         * lib/wcwidth.h: Remove file.
48847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48848         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48849         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48850         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48851         (Include): Replace wcwidth.h with <wchar.h>.
48852         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48853         * lib/mbchar.h: Don't include wcwidth.h.
48854         * lib/mbswidth.c: Likewise.
48855         * NEWS: Mention the change.
48856
48857 2007-07-07  Bruno Haible  <bruno@clisp.org>
48858
48859         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48860         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48861         definition with an external declaration.
48862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48863         defined as a function. Remove AC_C_INLINE requirement.
48864         * modules/wcwidth (Files): Add lib/wcwidth.c.
48865         (Makefile.am): Remove redundant statement.
48866
48867 2007-07-07  Bruno Haible  <bruno@clisp.org>
48868
48869         * MODULES.html.sh (Unicode string functions): Add the new modules.
48870
48871         * tests/uniwidth/test-u32-strwidth.c: New file.
48872         * modules/uniwidth/u32-strwidth-tests: New file.
48873
48874         * lib/uniwidth/u32-strwidth.c: New file.
48875         * modules/uniwidth/u32-strwidth: New file.
48876
48877         * tests/uniwidth/test-u16-strwidth.c: New file.
48878         * modules/uniwidth/u16-strwidth-tests: New file.
48879
48880         * lib/uniwidth/u16-strwidth.c: New file.
48881         * modules/uniwidth/u16-strwidth: New file.
48882
48883         * tests/uniwidth/test-u8-strwidth.c: New file.
48884         * modules/uniwidth/u8-strwidth-tests: New file.
48885
48886         * lib/uniwidth/u8-strwidth.c: New file.
48887         * modules/uniwidth/u8-strwidth: New file.
48888
48889         * tests/uniwidth/test-u32-width.c: New file.
48890         * modules/uniwidth/u32-width-tests: New file.
48891
48892         * lib/uniwidth/u32-width.c: New file.
48893         * modules/uniwidth/u32-width: New file.
48894
48895         * tests/uniwidth/test-u16-width.c: New file.
48896         * modules/uniwidth/u16-width-tests: New file.
48897
48898         * lib/uniwidth/u16-width.c: New file.
48899         * modules/uniwidth/u16-width: New file.
48900
48901         * tests/uniwidth/test-u8-width.c: New file.
48902         * modules/uniwidth/u8-width-tests: New file.
48903
48904         * lib/uniwidth/u8-width.c: New file.
48905         * modules/uniwidth/u8-width: New file.
48906
48907         * tests/uniwidth/test-uc_width.c: New file.
48908         * modules/uniwidth/width-tests: New file.
48909
48910         * lib/uniwidth/width.c: New file, from GNU libiconv.
48911         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48912         * modules/uniwidth/width: New file.
48913
48914         * lib/uniwidth.h: New file, from GNU libiconv.
48915         * modules/uniwidth/base: New file.
48916
48917 2007-07-07  Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/uniname.h: New file, from GNU gettext.
48920         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48921         * lib/uniname/uninames.h: New file, from GNU gettext.
48922         * lib/uniname/uniname.c: New file, from GNU gettext.
48923         * tests/uniname/test-uninames.sh: New file.
48924         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48925         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48926         * modules/uniname/base: New file.
48927         * modules/uniname/uniname: New file.
48928         * modules/uniname/uniname-tests: New file.
48929         * MODULES.html.sh (Unicode string functions): Add the new modules.
48930
48931 2007-07-06  Bruno Haible  <bruno@clisp.org>
48932
48933         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48934
48935 2007-07-06  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48938         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48939         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48940         include <sys/time.h>.
48941         Reported by Eric Blake.
48942
48943 2007-07-06  Eric Blake  <ebb9@byu.net>
48944
48945         Fix testing canonicalize on cygwin.
48946         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48947         Revert patch from 2007-06-19.
48948         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48949         canonicalize module is also in use.
48950         * tests/test-canonicalize.c: New file.
48951         * tests/test-canonicalize.sh: Likewise.
48952         * modules/canonicalize-tests: Likewise.
48953
48954 2007-07-06  Jim Meyering  <jim@meyering.net>
48955
48956         * lib/getugroups.c (getugroups): Detect getgrent failure.
48957         Adjust comment to reflect reality: this function may return -1.
48958
48959 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48960
48961         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48962         the new TP address.
48963         (usage): Fix typo
48964         (gnulib_mk): New variable.
48965
48966 2007-07-05  Jim Meyering  <jim@meyering.net>
48967
48968         Don't let endgrent clobber errno, no matter how improbable.
48969         * lib/getugroups.c (getugroups): Save and restore errno around
48970         endgrent call.
48971
48972         Close the group DB even when failing with 2^31 or more members.
48973         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48974
48975 2007-07-04  Jim Meyering  <jim@meyering.net>
48976
48977         * lib/getugroups.h: New file.
48978         * lib/getugroups.c: Include "getugroups.h".
48979         Remove uses of "register" keyword.
48980         Move local variable, "cp", down into scope where used.
48981         Give "username" parameter the "const" attribute.
48982         * modules/getugroups (Files): Add lib/getugroups.h
48983
48984 2007-07-04  Karl Berry  <karl@gnu.org>
48985
48986         * MODULES.html.sh (func_all_modules): Complete rename of
48987         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48988
48989 2007-07-02  Bruno Haible  <bruno@clisp.org>
48990
48991         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48992         mode, when inttypes.h comes from gnulib.
48993         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48994
48995 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48996
48997         * NEWS: Mention lgpl module name change.
48998
48999         * modules/lgpl-2.1: Renamed from lgpl.
49000
49001         * NEWS: Mention gpl module name change.
49002
49003         * modules/gpl-3.0: New file, based on gpl-2.0.
49004
49005         * modules/gpl-2.0: Renamed from gpl.
49006
49007         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49008         doc/gpl-2.0.texi.
49009
49010 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49013         #define __STDC_LIMIT_MACROS temporarily while including
49014         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49015         Problem reported by Joel E. Denny in
49016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49017
49018 2007-07-01  Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/unistdio.h: New file.
49021         * lib/unistdio/u-asnprintf.h: New file.
49022         * lib/unistdio/u-asprintf.h: New file.
49023         * lib/unistdio/u-printf-args.c: New file.
49024         * lib/unistdio/u-printf-args.h: New file.
49025         * lib/unistdio/u-printf-parse.h: New file.
49026         * lib/unistdio/u-snprintf.h: New file.
49027         * lib/unistdio/u-sprintf.h: New file.
49028         * lib/unistdio/u-vasprintf.h: New file.
49029         * lib/unistdio/u-vsnprintf.h: New file.
49030         * lib/unistdio/u-vsprintf.h: New file.
49031         * lib/unistdio/ulc-asnprintf.c: New file.
49032         * lib/unistdio/ulc-asprintf.c: New file.
49033         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49034         * lib/unistdio/ulc-printf-parse.c: New file.
49035         * lib/unistdio/ulc-snprintf.c: New file.
49036         * lib/unistdio/ulc-sprintf.c: New file.
49037         * lib/unistdio/ulc-vasnprintf.c: New file.
49038         * lib/unistdio/ulc-vasprintf.c: New file.
49039         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49040         * lib/unistdio/ulc-vsnprintf.c: New file.
49041         * lib/unistdio/ulc-vsprintf.c: New file.
49042         * lib/unistdio/u8-asnprintf.c: New file.
49043         * lib/unistdio/u8-asprintf.c: New file.
49044         * lib/unistdio/u8-printf-parse.c: New file.
49045         * lib/unistdio/u8-snprintf.c: New file.
49046         * lib/unistdio/u8-sprintf.c: New file.
49047         * lib/unistdio/u8-vasnprintf.c: New file.
49048         * lib/unistdio/u8-vasprintf.c: New file.
49049         * lib/unistdio/u8-vsnprintf.c: New file.
49050         * lib/unistdio/u8-vsprintf.c: New file.
49051         * lib/unistdio/u8-u8-asnprintf.c: New file.
49052         * lib/unistdio/u8-u8-asprintf.c: New file.
49053         * lib/unistdio/u8-u8-snprintf.c: New file.
49054         * lib/unistdio/u8-u8-sprintf.c: New file.
49055         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49056         * lib/unistdio/u8-u8-vasprintf.c: New file.
49057         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49058         * lib/unistdio/u8-u8-vsprintf.c: New file.
49059         * lib/unistdio/u16-asnprintf.c: New file.
49060         * lib/unistdio/u16-asprintf.c: New file.
49061         * lib/unistdio/u16-printf-parse.c: New file.
49062         * lib/unistdio/u16-snprintf.c: New file.
49063         * lib/unistdio/u16-sprintf.c: New file.
49064         * lib/unistdio/u16-vasnprintf.c: New file.
49065         * lib/unistdio/u16-vasprintf.c: New file.
49066         * lib/unistdio/u16-vsnprintf.c: New file.
49067         * lib/unistdio/u16-vsprintf.c: New file.
49068         * lib/unistdio/u16-u16-asnprintf.c: New file.
49069         * lib/unistdio/u16-u16-asprintf.c: New file.
49070         * lib/unistdio/u16-u16-snprintf.c: New file.
49071         * lib/unistdio/u16-u16-sprintf.c: New file.
49072         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49073         * lib/unistdio/u16-u16-vasprintf.c: New file.
49074         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49075         * lib/unistdio/u16-u16-vsprintf.c: New file.
49076         * lib/unistdio/u32-asnprintf.c: New file.
49077         * lib/unistdio/u32-asprintf.c: New file.
49078         * lib/unistdio/u32-printf-parse.c: New file.
49079         * lib/unistdio/u32-snprintf.c: New file.
49080         * lib/unistdio/u32-sprintf.c: New file.
49081         * lib/unistdio/u32-vasnprintf.c: New file.
49082         * lib/unistdio/u32-vasprintf.c: New file.
49083         * lib/unistdio/u32-vsnprintf.c: New file.
49084         * lib/unistdio/u32-vsprintf.c: New file.
49085         * lib/unistdio/u32-u32-asnprintf.c: New file.
49086         * lib/unistdio/u32-u32-asprintf.c: New file.
49087         * lib/unistdio/u32-u32-snprintf.c: New file.
49088         * lib/unistdio/u32-u32-sprintf.c: New file.
49089         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49090         * lib/unistdio/u32-u32-vasprintf.c: New file.
49091         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49092         * lib/unistdio/u32-u32-vsprintf.c: New file.
49093         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49094         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49095         * tests/unistdio/test-ulc-printf1.h: New file.
49096         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49097         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49098         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49099         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49100         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49101         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49102         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49103         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49104         * tests/unistdio/test-u8-asnprintf1.c: New file.
49105         * tests/unistdio/test-u8-asnprintf1.h: New file.
49106         * tests/unistdio/test-u8-printf1.h: New file.
49107         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49108         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49109         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49110         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49111         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49112         * tests/unistdio/test-u8-vasprintf1.c: New file.
49113         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49114         * tests/unistdio/test-u8-vsprintf1.c: New file.
49115         * tests/unistdio/test-u16-asnprintf1.c: New file.
49116         * tests/unistdio/test-u16-asnprintf1.h: New file.
49117         * tests/unistdio/test-u16-printf1.h: New file.
49118         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49119         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49120         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49121         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49122         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49123         * tests/unistdio/test-u16-vasprintf1.c: New file.
49124         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49125         * tests/unistdio/test-u16-vsprintf1.c: New file.
49126         * tests/unistdio/test-u32-asnprintf1.c: New file.
49127         * tests/unistdio/test-u32-asnprintf1.h: New file.
49128         * tests/unistdio/test-u32-printf1.h: New file.
49129         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49130         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49131         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49132         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49133         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49134         * tests/unistdio/test-u32-vasprintf1.c: New file.
49135         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49136         * tests/unistdio/test-u32-vsprintf1.c: New file.
49137         * modules/unistdio/base: New file.
49138         * modules/unistdio/u-printf-args: New file.
49139         * modules/unistdio/ulc-asnprintf: New file.
49140         * modules/unistdio/ulc-asprintf: New file.
49141         * modules/unistdio/ulc-fprintf: New file.
49142         * modules/unistdio/ulc-printf-parse: New file.
49143         * modules/unistdio/ulc-snprintf: New file.
49144         * modules/unistdio/ulc-sprintf: New file.
49145         * modules/unistdio/ulc-vasnprintf: New file.
49146         * modules/unistdio/ulc-vasprintf: New file.
49147         * modules/unistdio/ulc-vfprintf: New file.
49148         * modules/unistdio/ulc-vsnprintf: New file.
49149         * modules/unistdio/ulc-vsprintf: New file.
49150         * modules/unistdio/u8-asnprintf: New file.
49151         * modules/unistdio/u8-asprintf: New file.
49152         * modules/unistdio/u8-printf-parse: New file.
49153         * modules/unistdio/u8-snprintf: New file.
49154         * modules/unistdio/u8-sprintf: New file.
49155         * modules/unistdio/u8-vasnprintf: New file.
49156         * modules/unistdio/u8-vasprintf: New file.
49157         * modules/unistdio/u8-vsnprintf: New file.
49158         * modules/unistdio/u8-vsprintf: New file.
49159         * modules/unistdio/u8-u8-asnprintf: New file.
49160         * modules/unistdio/u8-u8-asprintf: New file.
49161         * modules/unistdio/u8-u8-snprintf: New file.
49162         * modules/unistdio/u8-u8-sprintf: New file.
49163         * modules/unistdio/u8-u8-vasnprintf: New file.
49164         * modules/unistdio/u8-u8-vasprintf: New file.
49165         * modules/unistdio/u8-u8-vsnprintf: New file.
49166         * modules/unistdio/u8-u8-vsprintf: New file.
49167         * modules/unistdio/u16-asnprintf: New file.
49168         * modules/unistdio/u16-asprintf: New file.
49169         * modules/unistdio/u16-printf-parse: New file.
49170         * modules/unistdio/u16-snprintf: New file.
49171         * modules/unistdio/u16-sprintf: New file.
49172         * modules/unistdio/u16-vasnprintf: New file.
49173         * modules/unistdio/u16-vasprintf: New file.
49174         * modules/unistdio/u16-vsnprintf: New file.
49175         * modules/unistdio/u16-vsprintf: New file.
49176         * modules/unistdio/u16-u16-asnprintf: New file.
49177         * modules/unistdio/u16-u16-asprintf: New file.
49178         * modules/unistdio/u16-u16-snprintf: New file.
49179         * modules/unistdio/u16-u16-sprintf: New file.
49180         * modules/unistdio/u16-u16-vasnprintf: New file.
49181         * modules/unistdio/u16-u16-vasprintf: New file.
49182         * modules/unistdio/u16-u16-vsnprintf: New file.
49183         * modules/unistdio/u16-u16-vsprintf: New file.
49184         * modules/unistdio/u32-asnprintf: New file.
49185         * modules/unistdio/u32-asprintf: New file.
49186         * modules/unistdio/u32-printf-parse: New file.
49187         * modules/unistdio/u32-snprintf: New file.
49188         * modules/unistdio/u32-sprintf: New file.
49189         * modules/unistdio/u32-vasnprintf: New file.
49190         * modules/unistdio/u32-vasprintf: New file.
49191         * modules/unistdio/u32-vsnprintf: New file.
49192         * modules/unistdio/u32-vsprintf: New file.
49193         * modules/unistdio/u32-u32-asnprintf: New file.
49194         * modules/unistdio/u32-u32-asprintf: New file.
49195         * modules/unistdio/u32-u32-snprintf: New file.
49196         * modules/unistdio/u32-u32-sprintf: New file.
49197         * modules/unistdio/u32-u32-vasnprintf: New file.
49198         * modules/unistdio/u32-u32-vasprintf: New file.
49199         * modules/unistdio/u32-u32-vsnprintf: New file.
49200         * modules/unistdio/u32-u32-vsprintf: New file.
49201         * modules/unistdio/ulc-asnprintf-tests: New file.
49202         * modules/unistdio/ulc-vasnprintf-tests: New file.
49203         * modules/unistdio/ulc-vasprintf-tests: New file.
49204         * modules/unistdio/ulc-vsnprintf-tests: New file.
49205         * modules/unistdio/ulc-vsprintf-tests: New file.
49206         * modules/unistdio/u8-asnprintf-tests: New file.
49207         * modules/unistdio/u8-vasnprintf-tests: New file.
49208         * modules/unistdio/u8-vasprintf-tests: New file.
49209         * modules/unistdio/u8-vsnprintf-tests: New file.
49210         * modules/unistdio/u8-vsprintf-tests: New file.
49211         * modules/unistdio/u16-asnprintf-tests: New file.
49212         * modules/unistdio/u16-vasnprintf-tests: New file.
49213         * modules/unistdio/u16-vasprintf-tests: New file.
49214         * modules/unistdio/u16-vsnprintf-tests: New file.
49215         * modules/unistdio/u16-vsprintf-tests: New file.
49216         * modules/unistdio/u32-asnprintf-tests: New file.
49217         * modules/unistdio/u32-vasnprintf-tests: New file.
49218         * modules/unistdio/u32-vasprintf-tests: New file.
49219         * modules/unistdio/u32-vsnprintf-tests: New file.
49220         * modules/unistdio/u32-vsprintf-tests: New file.
49221         * MODULES.html.sh (Unicode string functions): Add the new modules.
49222
49223 2007-07-01  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/sprintf.c (sprintf): Limit the available length estimation,
49226         to avoid address wraparound.
49227         * lib/vsprintf.c (vsprintf): Likewise.
49228         * modules/sprintf-posix (Dependencies): Add stdint.
49229         * modules/vsprintf-posix (Dependencies): Likewise.
49230
49231 2007-07-01  Bruno Haible  <bruno@clisp.org>
49232
49233         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49234         Windows PATH as well. Conservative double-quoting. Comments.
49235
49236 2007-07-01  Bruno Haible  <bruno@clisp.org>
49237             Eric Blake  <ebb9@byu.net>
49238             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49239
49240         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49241         empty components in $PATH, denoting '.'.
49242
49243 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49244
49245         * gnulib-tool: Fix indentation.
49246         (func_create_megatestdir): Likewise.
49247         Report by Bruno Haible.
49248
49249 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49250
49251         Sync from Automake.
49252         * build-aux/gnupload: Fix shell portability issues with for loops.
49253         Report by Karl Berry.
49254
49255 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49256
49257         * build-aux/maint.mk (POURL): Use translationproject.org.
49258
49259 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49260             Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49263         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49264         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49265         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49266         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49267
49268 2007-06-27  Bruno Haible  <bruno@clisp.org>
49269
49270         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49271         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49272
49273 2007-06-26  Karl Berry  <karl@gnu.org>
49274
49275         * MODULES.html.sh: remove xreadlink-with-size.
49276
49277 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49278
49279         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49280         method that I hope also handles the double-include problem noted
49281         by Bruno Haible in
49282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49283
49284 2007-06-23  Bruno Haible  <bruno@clisp.org>
49285
49286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49287         Don't let the 'mostlyclean' target fail if the last subdirectory could
49288         not be removed.
49289         Reported by Karl Berry.
49290
49291 2007-06-23  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (echo): Add a speedier workaround for ksh.
49294         * tests/test-echo.sh: Likewise.
49295
49296 2007-06-23  Bruno Haible  <bruno@clisp.org>
49297
49298         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49299         * tests/test-echo.sh: Likewise.
49300
49301 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49302
49303         * gnulib-tool (IFS): Initialize early, so we don't set it to
49304         empty later.
49305         (self_abspathname): Rewrite algorithm to set it, reindent.
49306         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49307         (func_create_megatestdir): Merge some sed scripts.
49308
49309 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49312         exposed by Sun Studio 11 cc on Solaris 8.
49313
49314 2007-06-22  Bruno Haible  <bruno@clisp.org>
49315
49316         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49317         backslashes.
49318         * tests/test-echo.sh: New file.
49319
49320 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49321
49322         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49323         simplify `sed_replace_build_aux' scripts, they are portable but
49324         echoing them with `echo' is not.
49325         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49326
49327 2007-06-21  Karl Berry  <karl@gnu.org>
49328
49329         * config/srclist.txt: guess we can't handle the licenses via
49330         srclist at the moment.
49331
49332 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * MODULES.html.sh: Add include_next.
49335         * modules/include_next: New file.
49336
49337 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49340         INCLUDE_NEXT.
49341         (gl_CHECK_NEXT_HEADERS): New macro.
49342         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49343         the obsolescent gl_ABSOLUTE_HEADER.
49344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49345         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49346         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49347         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49348         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49349         * m4/math_h.m4 (gl_MATH_H): Likewise.
49350         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49351         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49352         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49353         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49354         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49355         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49356         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49361         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49362         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49363         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49364         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49365         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49366         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49367         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49368         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49369         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49370         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49371         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49372         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49373         * lib/float_.h: Likewise.
49374         * lib/inttypes_.h: Likewise.
49375         * lib/math_.h: Likewise.
49376         * lib/search_.h: Likewise.
49377         * lib/signal_.h: Likewise.
49378         * lib/stdint_.h: Likewise.
49379         * lib/stdio_.h: Likewise.
49380         * lib/stdlib_.h: Likewise.
49381         * lib/string_.h: Likewise.
49382         * lib/sys_stat_.h: Likewise.
49383         * lib/sys_time_.h: Likewise.
49384         * lib/time_.h: Likewise.
49385         * lib/unistd_.h: Likewise.
49386         * lib/wchar_.h: Likewise.
49387         * lib/wctype_.h: Likewise.
49388         * lib/dirent_.h: Likewise.
49389         * lib/iconv_.h: Likewise.
49390         * lib/locale_.h: Likewise.
49391         * lib/netinet_in_.h: Likewise.
49392         * lib/sys_select_.h: Likewise.
49393         * lib/sys_socket_.h: Likewise.
49394         * lib/sysexits_.h: Likewise.
49395         * modules/fcntl (Depends-on): Depend on include_next, not
49396         absolute_header.
49397         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49398         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49399         * modules/fchdir: Likewise.
49400         * modules/float: Likewise.
49401         * modules/iconv_open: Likewise.
49402         * modules/inttypes: Likewise.
49403         * modules/locale: Likewise.
49404         * modules/math: Likewise.
49405         * modules/netinet_in: Likewise.
49406         * modules/search: Likewise.
49407         * modules/signal: Likewise.
49408         * modules/stdint: Likewise.
49409         * modules/stdio: Likewise.
49410         * modules/stdlib: Likewise.
49411         * modules/string: Likewise.
49412         * modules/sys_select: Likewise.
49413         * modules/sys_socket: Likewise.
49414         * modules/sys_stat: Likewise.
49415         * modules/sys_time: Likewise.
49416         * modules/sysexits: Likewise.
49417         * modules/time: Likewise.
49418         * modules/unistd: Likewise.
49419         * modules/wchar: Likewise.
49420         * modules/wctype: Likewise.
49421         * modules/sys_stat: Change maintainer to "all".
49422         * modules/unistd: Likewise.
49423
49424 2007-06-20  Karl Berry  <karl@gnu.org>
49425
49426         * config/srclist.txt: track www changes in license files.
49427
49428 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49429
49430         * build-aux/bootstrap: Remove stray dot.
49431         Make sure build_aux settings are honored when linking
49432         gnulib_extra_files.
49433
49434 2007-06-19  Eric Blake  <ebb9@byu.net>
49435
49436         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49437         Allow compilation on cygwin.
49438
49439 2007-06-19  Jim Meyering  <jim@meyering.net>
49440
49441         xreadlink-with-size: Remove module.  No longer used.
49442         Ex-callers now use xreadlink or mreadlink-with-size.
49443         * modules/xreadlink-with-size: Remove module.
49444         * lib/xreadlink-with-size.c: Remove file.
49445         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49446         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49447         just before the function definition *is* accurate.
49448
49449         Eliminate one way canonicalize_filename_mode could exit.
49450         * lib/canonicalize.c (canonicalize_filename_mode):
49451         Use mreadlink_with_size, not xreadlink_with_size.
49452
49453 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49454
49455         Detect porting problems to FreeBSD/arm, which has time_t wider than
49456         long int.  Original problem reported for GNU diff by Xin Li in
49457         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49458         * modules/getdate (Depends-on): Add intprops, verify.
49459         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49460         is an integer type no wider than long int.
49461
49462 2007-06-18  Jim Meyering  <jim@meyering.net>
49463
49464         New module: mreadlink-with-size.
49465         * MODULES.html.sh: Add mreadlink-with-size.
49466         * modules/mreadlink-with-size: New module
49467         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49468         not xreadlink-with-size.
49469         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49470
49471 2007-06-16  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49474         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49475         Reported by Gary V. Vaughan <gary@gnu.org>.
49476
49477 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49478
49479         Revamp lchown so that it lives in unistd.h where it belongs.
49480         * lib/lchown.h: Remove.
49481         * lib/dirchownmod.c: Don't include lib/lchown.h.
49482         * lib/fchownat.c: Likewise.
49483         * lib/openat.c: Likewise.
49484         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49485         does not follow symlinks.
49486         (EOPNOTSUPP): Define if not defined.
49487         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49488         is defined to 0.
49489         (lchown): New decl.
49490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49491         Do not check for lchown decl.
49492         Set REPLACE_LCHOWN.
49493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49494         REPLACE_LCHOWN.
49495         * modules/chown: Make it clear it follows symlinks.
49496         * modules/lchown: Make it clear it doesn't follow symlinks.
49497         (Files): Remove lib/lchown.h
49498         (Depends-on): Add unistd.
49499         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49500         (Include): Include <unistd.h>, not "lchown.h".
49501         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49502         REPLACE_LCHOWN.
49503
49504 2007-06-15  Jim Meyering  <jim@meyering.net>
49505
49506         Change license (GPL to LGPL) of fsusage and dependents.
49507         * modules/fsusage (License): Change to LGPL.
49508         * modules/full-read (License): Likewise.
49509         * modules/full-write (License): Likewise.
49510         * modules/safe-read (License): Likewise.
49511         * modules/safe-write (License): Likewise.
49512
49513 2007-06-14  Ben Pfaff  <blp@gnu.org>
49514
49515         Missing part of allocsa -> malloca transition.
49516         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49517         gl_MALLOCA.
49518
49519 2007-06-12  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49522         to ia64, x86_64, i386.
49523         Reported by Eric Blake.
49524
49525 2007-06-12  Bruno Haible  <bruno@clisp.org>
49526
49527         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49528         cross-compiling to x86_64.
49529
49530 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49531
49532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49533         glitch reported by Ralf Wildenhues in
49534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49535
49536         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49537         Vin Shelton.
49538
49539 2007-06-11  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49542         replacement string.
49543         Reported by Eric Blake.
49544
49545 2007-06-10  Bruno Haible  <bruno@clisp.org>
49546
49547         Prepare vasnprintf code for use with Unicode strings.
49548         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49549         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49550         TYPE_U32_STRING.
49551         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49552         a_u32_string variants.
49553         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49554         * lib/printf-args.c: Don't include config.h and the specification
49555         header if PRINTF_FETCHARGS is already defined.
49556         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49557         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49558         TYPE_U16_STRING, TYPE_U32_STRING.
49559         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49560         u16_directive, u16_directives, u32_directive, u32_directives): New
49561         types.
49562         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49563         New declarations.
49564         * lib/printf-parse.c: Don't include config.h and the specification
49565         header if PRINTF_PARSE is already defined. Eliminate the set of
49566         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49567         them now. Include c-ctype.h.
49568         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49569         directive and CHAR_T_ONLY_ASCII.
49570         * lib/vasnprintf.c: Don't include config.h and the specification header
49571         if VASNPRINTF is already defined.
49572         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49573         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49574         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49575         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49576         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49577         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49578         code accordingly.
49579         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49580         pad_ourselves also in this case, with the 'c' and 's' directives, and
49581         with a different notion of "width".
49582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49583
49584 2007-06-10  Bruno Haible  <bruno@clisp.org>
49585
49586         * modules/unistr/u32-mbsnlen: New file.
49587         * lib/unistr/u32-mbsnlen.c: New file.
49588
49589         * modules/unistr/u16-mbsnlen: New file.
49590         * lib/unistr/u16-mbsnlen.c: New file.
49591
49592         * modules/unistr/u8-mbsnlen: New file.
49593         * lib/unistr/u8-mbsnlen.c: New file.
49594
49595         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49596         declarations.
49597
49598 2007-06-10  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/string_.h (mbsnlen): New declaration.
49601         * lib/mbsnlen.c: New file.
49602         * m4/mbsnlen.m4: New file.
49603         * modules/mbsnlen: New file.
49604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49605         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49606         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49607
49608 2007-06-10  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49611
49612 2007-06-10  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49615         * lib/mbuiter.h: Likewise.
49616
49617 2007-06-10  Bruno Haible  <bruno@clisp.org>
49618
49619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49620         declaration.
49621
49622 2007-06-10  Karl Berry  <karl@gnu.org>
49623
49624         * config/srclist.txt: remove gettext entries, Bruno prefers
49625         to update individually.
49626
49627 2007-06-10  Bruno Haible  <bruno@clisp.org>
49628
49629         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49630         'maxlen'. Ensure only length + width bytes are allocated, not
49631         length + 1 + width.
49632
49633 2007-06-09  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49636         (CHAR_T): Remove macro.
49637         (VASNPRINTF): Update.
49638
49639 2007-06-09  Bruno Haible  <bruno@clisp.org>
49640
49641         * MODULES.html.sh (Unicode string functions): Add the new modules.
49642
49643         * modules/uniconv/u32-conv-to-enc: New file.
49644         * lib/uniconv/u32-conv-to-enc.c: New file.
49645         * modules/uniconv/u32-conv-to-enc-tests: New file.
49646         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49647
49648         * modules/uniconv/u16-conv-to-enc: New file.
49649         * lib/uniconv/u16-conv-to-enc.c: New file.
49650         * lib/uniconv/u-conv-to-enc.h: New file.
49651         * modules/uniconv/u16-conv-to-enc-tests: New file.
49652         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49653
49654         * modules/uniconv/u8-conv-to-enc: New file.
49655         * lib/uniconv/u8-conv-to-enc.c: New file.
49656         * modules/uniconv/u8-conv-to-enc-tests: New file.
49657         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49658
49659         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49660         u32_conv_to_encoding): New declarations.
49661
49662 2007-06-09  Bruno Haible  <bruno@clisp.org>
49663
49664         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49665
49666 2007-06-09  Bruno Haible  <bruno@clisp.org>
49667
49668         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49669         * modules/malloca: Renamed from modules/allocsa, updated.
49670         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49671         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49672         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49673         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49674         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49675         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49676         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49677         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49678         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49679         * modules/c-strcasestr (Depends-on): Update.
49680         * lib/c-strcasestr.c: Update.
49681         * modules/c-strstr (Depends-on): Update.
49682         * lib/c-strstr.c: Update.
49683         * modules/canonicalize-lgpl (Depends-on): Update.
49684         * lib/canonicalize-lgpl.c: Update.
49685         * modules/clean-temp (Depends-on): Update.
49686         * lib/clean-temp.c: Update.
49687         * modules/csharpcomp (Depends-on): Update.
49688         * lib/csharpcomp.c: Update.
49689         * modules/csharpexec (Depends-on): Update.
49690         * lib/csharpexec.c: Update.
49691         * modules/javacomp (Depends-on): Update.
49692         * lib/javacomp.c: Update.
49693         * modules/javaexec (Depends-on): Update.
49694         * lib/javaexec.c: Update.
49695         * modules/mbscasestr (Depends-on): Update.
49696         * lib/mbscasestr.c: Update.
49697         * modules/mbsstr (Depends-on): Update.
49698         * lib/mbsstr.c: Update.
49699         * modules/setenv (Depends-on): Update.
49700         * lib/setenv.c: Update.
49701         * modules/strcasestr (Depends-on): Update.
49702         * lib/strcasestr.c: Update.
49703         * modules/striconveha (Depends-on): Update.
49704         * lib/striconveha.c: Update.
49705         * modules/relocatable-prog-wrapper (Files): Update.
49706         * lib/relocwrapper.c: Update.
49707         * build-aux/install-reloc: Update.
49708         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49709
49710 2007-06-08  Bruno Haible  <bruno@clisp.org>
49711
49712         Port to uClibc.
49713         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49714         * lib/fpurge.c (fpurge): Likewise.
49715         * lib/freading.c (freading): Likewise.
49716         * lib/fseeko.c (rpl_fseeko): Likewise.
49717         * lib/fseterr.c (fseterr): Likewise.
49718         * lib/fwriting.c (fwriting): Likewise.
49719         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49720
49721 2007-06-08  Bruno Haible  <bruno@clisp.org>
49722
49723         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49724         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49725         * modules/gettext (Files): Add m4/intlmacosx.m4.
49726
49727 2007-06-07  Bruno Haible  <bruno@clisp.org>
49728
49729         * modules/localename-tests: New file.
49730         * tests/test-localename.c: New file.
49731
49732         New module 'localename'.
49733         * lib/localename.h: New file.
49734         * lib/localename.c: New file, from GNU gettext.
49735         * m4/localename.m4: New file.
49736         * modules/localename: New file.
49737
49738 2007-06-07  Bruno Haible  <bruno@clisp.org>
49739
49740         Work around the lack of <wchar.h> on some builds of uClibc.
49741         * doc/headers/wchar.texi: Update.
49742         * lib/wchar_.h: Include <wchar.h> only if it exists.
49743         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49744         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49745         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49746         doesn't exist.
49747         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49748         * modules/mbfile (Depends-on): Add wchar.
49749         * modules/mbiter (Depends-on): Likewise.
49750         * modules/mbuiter (Depends-on): Likewise.
49751         Reported by Simon Josefsson.
49752
49753 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49754
49755         Work around problem reported by Steven M. Schweda in
49756         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49757         Tru64 5.1B with the Compaq compiler environment installed declares
49758         an 'isblank' function but does not define it in the C library.
49759         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49760         * lib/regex_internal.h (isblank): Likewise.
49761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49762         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49763
49764 2007-06-05  Bruno Haible  <bruno@clisp.org>
49765
49766         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49767         ia64.
49768         * modules/printf-safe: New file.
49769         * modules/fprintf-posix (Depends-on): Add printf-safe.
49770         * modules/printf-posix (Depends-on): Likewise.
49771         * modules/snprintf-posix (Depends-on): Likewise.
49772         * modules/sprintf-posix (Depends-on): Likewise.
49773         * modules/vasnprintf-posix (Depends-on): Likewise.
49774         * modules/vasprintf-posix (Depends-on): Likewise.
49775         * modules/vfprintf-posix (Depends-on): Likewise.
49776         * modules/vprintf-posix (Depends-on): Likewise.
49777         * modules/vsnprintf-posix (Depends-on): Likewise.
49778         * modules/vsprintf-posix (Depends-on): Likewise.
49779         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49780         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49781         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49782         "no" on i386, x86_64, ia64.
49783         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49784         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49785         on i386, x86_64, ia64.
49786         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49787         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49788         on i386, x86_64, ia64.
49789         * tests/test-vasnprintf-posix.c: Include float.h.
49790         (LDBL80_WORDS): New macro.
49791         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49792         on i386, x86_64, ia64.
49793         * tests/test-vasprintf-posix.c: Include float.h.
49794         (LDBL80_WORDS): New macro.
49795         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49796         on i386, x86_64, ia64.
49797         * tests/test-snprintf-posix.c: Include float.h.
49798         * tests/test-sprintf-posix.c: Likewise.
49799         * tests/test-vsnprintf-posix.c: Likewise.
49800         * tests/test-vsprintf-posix.c: Likewise.
49801
49802 2007-06-05  Bruno Haible  <bruno@clisp.org>
49803
49804         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49805         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49806         non-IEEE numbers on i386, x86_64, ia64.
49807         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49808         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49809         * tests/test-isnanl.h: Include float.h.
49810         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49811
49812 2007-06-05  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49815         also the %a / %A. Handle the %a / %A code before this extra handling.
49816
49817 2007-06-05  Bruno Haible  <bruno@clisp.org>
49818
49819         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49820         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49821
49822 2007-06-05  Bruno Haible  <bruno@clisp.org>
49823
49824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49825         typo in variable name.
49826
49827 2007-06-05  Eric Blake  <ebb9@byu.net>
49828
49829         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49830         Reported by Simon Josefsson.
49831
49832 2007-06-04  Bruno Haible  <bruno@clisp.org>
49833
49834         Avoid test failures on some PowerPC platforms.
49835         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49836         Define differently for PowerPC.
49837         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49838         Reported by Gary V. Vaughan <gary@gnu.org>.
49839
49840 2007-06-02  Bruno Haible  <bruno@clisp.org>
49841
49842         Fix test-stdint failure on FreeBSD/ia64.
49843         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49844         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49845         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49846         * doc/headers/stdint.texi: Update.
49847
49848 2007-06-01  Bruno Haible  <bruno@clisp.org>
49849
49850         * tests/test-binary-io.c (main): Pass a third argument to open().
49851         Reported by Gary V. Vaughan <gary@gnu.org>.
49852
49853 2007-06-01  Bruno Haible  <bruno@clisp.org>
49854
49855         * doc/functions/frexpl.texi: Update for mingw.
49856
49857 2007-06-01  Bruno Haible  <bruno@clisp.org>
49858
49859         * tests/test-lseek.c (main): Disable test of errno for invalid third
49860         argument.
49861         * doc/functions/lseek.texi: Update.
49862         Reported by Gary V. Vaughan <gary@gnu.org>.
49863
49864 2007-05-28  Bruno Haible  <bruno@clisp.org>
49865
49866         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49867
49868 2007-05-31  Eric Blake  <ebb9@byu.net>
49869
49870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49871         cross compiling.
49872
49873 2007-05-30  Eric Blake  <ebb9@byu.net>
49874         and Bruno Haible  <bruno@clisp.org>
49875
49876         Work around mingw test failures exposed by m4-1.4.9b.
49877         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49878         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49879         moment.
49880
49881 2007-05-30  Bruno Haible  <bruno@clisp.org>
49882
49883         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49884         assuming that they are closed. Needed on HP-UX 11.
49885
49886 2007-05-29  Bruno Haible  <bruno@clisp.org>
49887
49888         Fix a problem with #include_next.
49889         * lib/dirent_.h: Split the double-inclusion guard.
49890         * lib/fcntl_.h: Likewise.
49891         * lib/float_.h: Likewise.
49892         * lib/iconv_.h: Likewise.
49893         * lib/inttypes_.h: Likewise.
49894         * lib/locale_.h: Likewise.
49895         * lib/math_.h: Likewise.
49896         * lib/netinet_in_.h: Likewise.
49897         * lib/search_.h: Likewise.
49898         * lib/signal_.h: Likewise.
49899         * lib/stdint_.h: Likewise.
49900         * lib/stdio_.h: Likewise.
49901         * lib/stdlib_.h: Likewise.
49902         * lib/string_.h: Likewise.
49903         * lib/sys_select_.h: Likewise.
49904         * lib/sys_socket_.h: Likewise.
49905         * lib/sys_stat_.h: Likewise.
49906         * lib/sys_time_.h: Likewise.
49907         * lib/sysexits_.h: Likewise.
49908         * lib/time_.h: Likewise.
49909         * lib/unistd_.h: Likewise.
49910         * lib/wchar_.h: Likewise.
49911         * lib/wctype_.h: Likewise.
49912
49913 2007-05-29  Bruno Haible  <bruno@clisp.org>
49914
49915         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49916         for the moment.
49917
49918 2007-05-29  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49921         invocation.
49922         Reported by Eric Blake.
49923
49924 2007-05-29  Bruno Haible  <bruno@clisp.org>
49925
49926         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49927         compiling case.
49928
49929 2007-05-29  Eric Blake  <ebb9@byu.net>
49930             Bruno Haible  <bruno@clisp.org>
49931
49932         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49933         cross compiles.
49934
49935 2007-05-28  Eric Blake  <ebb9@byu.net>
49936
49937         * modules/closein-tests (test_closein_LDADD): Support test on
49938         cygwin with libtool.
49939
49940 2007-05-28  Bruno Haible  <bruno@clisp.org>
49941
49942         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49943         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49944         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49945         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49946         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49947         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49948         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49949         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49950         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49951
49952 2007-05-28  Eric Blake  <ebb9@byu.net>
49953
49954         Unconditionally include <config.h> in unit tests.
49955         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49956         * tests/test-allocsa.c, tests/test-arcfour.c,
49957         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49958         tests/test-array_list.c, tests/test-array_oset.c,
49959         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49960         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49961         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49962         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49963         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49964         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49965         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49966         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49967         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49968         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49969         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49970         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49971         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49972         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49973         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49974         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49975         test-md5.c, test-memmem.c, test-printf-posix.c,
49976         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49977         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49978         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49979         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49980         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49981         test-vasnprintf-posix2.c, test-vasnprintf.c,
49982         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49983         test-vfprintf-posix.c, test-vprintf-posix.c,
49984         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49985         test-xvasprintf.c: Likewise.
49986
49987 2007-05-28  Bruno Haible  <bruno@clisp.org>
49988
49989         * gnulib-tool (func_import): Remember the --with-tests command-line
49990         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49991         Reported by Eric Blake.
49992
49993 2007-05-28  Bruno Haible  <bruno@clisp.org>
49994
49995         * modules/ftell-tests: New file.
49996         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49997         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49998
49999         * lib/ftell.c: New file.
50000         * modules/ftell: New file.
50001         * m4/ftell.m4: New file.
50002         * doc/functions/ftell.texi: Update.
50003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50004         REPLACE_FTELL.
50005         * lib/stdio_.h (rpl_ftell): New declaration.
50006         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50007         REPLACE_FTELL.
50008
50009 2007-05-28  Eric Blake  <ebb9@byu.net>
50010
50011         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50012
50013 2007-05-28  Bruno Haible  <bruno@clisp.org>
50014
50015         * modules/fseek-tests: New file.
50016         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50017         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50018
50019         * lib/fseek.c: New file.
50020         * modules/fseek: New file.
50021         * m4/fseek.m4: New file.
50022         * doc/functions/fseek.texi: Update.
50023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50024         REPLACE_FSEEK.
50025         * lib/stdio_.h (rpl_fseek): New declaration.
50026         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50027         REPLACE_FSEEK.
50028
50029 2007-05-28  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/stdio_.h (fflush): More comments.
50032
50033 2007-05-28  Bruno Haible  <bruno@clisp.org>
50034
50035         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50036         runtime test.
50037
50038 2007-05-28  Eric Blake  <ebb9@byu.net>
50039
50040         Improve lseek module.
50041         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50042         * lib/unistd_.h (lseek): Scale back link warning message.
50043         * tests/test-lseek.c: Beef up test.
50044         * tests/test-lseek.sh: Exercise more facets of lseek.
50045         Reported by Bruno Haible.
50046
50047 2007-05-28  Bruno Haible  <bruno@clisp.org>
50048
50049         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50050         to define.
50051
50052 2007-05-27  Bruno Haible  <bruno@clisp.org>
50053
50054         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50055
50056 2007-05-27  Bruno Haible  <bruno@clisp.org>
50057
50058         * modules/openmp: New file.
50059         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50060         Noah Misch.
50061
50062 2007-05-26  Bruno Haible  <bruno@clisp.org>
50063
50064         * modules/chdir-long (Depends-on): Add fchdir.
50065         * modules/chdir-safer (Depends-on): Likewise.
50066         * modules/fts (Depends-on): Likewise.
50067         * modules/fts-lgpl (Depends-on): Likewise.
50068         * modules/openat (Depends-on): Likewise.
50069         * modules/savewd (Depends-on): Likewise.
50070
50071 2007-05-24  Eric Blake  <ebb9@byu.net>
50072
50073         Fix lseek on mingw.
50074         * modules/lseek: New module.
50075         * m4/lseek.m4: New file.
50076         * lib/lseek.c: New file.
50077         * modules/lseek-tests: New file.
50078         * tests/test-lseek.c: New file.
50079         * tests/test-lseek.sh: New file.
50080         * MODULES.html.sh: Document lseek module.
50081         * modules/fflush (Depends-on): Add lseek, fseeko.
50082         * modules/fseeko (Depends-on): Likewise.
50083         * modules/ftello (Depends-on): Likewise.
50084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50085         broken.
50086         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50087         broken.
50088         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50089         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50090         * lib/ftello.c (rpl_ftello): Likewise.
50091         * tests/test-fseeko.c (main): Test this.
50092         * tests/test-fseeko.sh: Likewise.
50093         * tests/test-ftello.c (main): Likewise.
50094         * tests/test-ftello.sh: Likewise.
50095         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50096         implies replacing fseek.
50097         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50098         HAVE_FTELLO.
50099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50100         * modules/unistd (Makefile.am): Likewise.
50101         * lib/unistd_.h (lseek): Declare a replacement.
50102         * doc/functions/lseek.texi (lseek): Document this fix.
50103         * doc/functions/fseek.texi (fseek): Likewise.
50104         * doc/functions/ftell.texi (ftell): Likewise.
50105
50106 2007-05-24  Bruno Haible  <bruno@clisp.org>
50107
50108         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50109         in the printed representation of a NaN.
50110         * tests/test-vasprintf-posix.c (test_function): Likewise.
50111         * tests/test-snprintf-posix.h (test_function): Likewise.
50112         * tests/test-sprintf-posix.h (test_function): Likewise.
50113         Reported by Eric Blake.
50114
50115 2007-05-23  Eric Blake  <ebb9@byu.net>
50116
50117         Fix fseeko/ftello on cygwin 1.5.24.
50118         * doc/functions/fseeko.texi (fseeko): Document the fix.
50119         * doc/functions/ftello.texi (ftello): Document the fix.
50120         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50121         * doc/functions/stdout.text (stdout): New file.
50122         * doc/functions/stderr.text (stderr): New file.
50123         * doc/gnulib.texi (Function Substitutes): Use new files.
50124         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50125         prior to 1.7.0.
50126         * tests/test-ftello.c (main): Likewise for ftello.
50127         * tests/test-fseeko.sh: New file.
50128         * tests/test-ftello.sh: New file.
50129         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50130         with seekable stdin.
50131         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50133         (gl_REPLACE_FSEEKO): New macro.
50134         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50135         * modules/fseeko (Files): Distribute fseeko.c.
50136         * modules/ftello (Files): Distribute ftello.c.
50137         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50138         mode.
50139         * lib/ftello.c (rpl_ftello): New file.
50140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50141         fseeko, ftello.
50142         (gl_STDIN_LARGE_OFFSET): New macro.
50143         * modules/stdio (Makefile.am): Perform the replacement.
50144         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50145
50146 2007-05-23  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50149         GNULIB_POSIXCHECK is defined.
50150
50151 2007-05-21  Bruno Haible  <bruno@clisp.org>
50152
50153         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50154         Check also the output for NaN arguments. When cross-compiling, guess
50155         no on IRIX.
50156         * lib/vasnprintf.c: Update comments.
50157         * tests/test-vasnprintf-posix.c (strisnan): New function.
50158         (test_function): Use it.
50159         * tests/test-vasprintf-posix.c (strisnan): New function.
50160         (test_function): Use it.
50161         * tests/test-snprintf-posix.h (strisnan): New function.
50162         (test_function): Use it.
50163         * tests/test-sprintf-posix.h (strisnan): New function.
50164         (test_function): Use it.
50165         Reported by Eric Blake.
50166
50167 2007-05-20  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50170         numbers that fails on BeOS.
50171         * doc/functions/frexpl.texi: Update.
50172
50173 2007-05-20  Jim Meyering  <jim@meyering.net>
50174
50175         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50176         forced upon us by glibc-2.6.
50177
50178 2007-05-20  Bruno Haible  <bruno@clisp.org>
50179
50180         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50181         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50182         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50183         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50184         NEED_PRINTF_INFINITE.
50185         (is_infinitel): New function.
50186         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50188         gl_PREREQ_VASNPRINTF_INFINITE.
50189         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50191         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50192         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50193         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50194         gl_PREREQ_VASNPRINTF_INFINITE.
50195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50198         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50199         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50201         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50202         * doc/functions/fprintf.texi: Update.
50203         * doc/functions/printf.texi: Update.
50204         * doc/functions/snprintf.texi: Update.
50205         * doc/functions/sprintf.texi: Update.
50206         * doc/functions/vfprintf.texi: Update.
50207         * doc/functions/vprintf.texi: Update.
50208         * doc/functions/vsnprintf.texi: Update.
50209         * doc/functions/vsprintf.texi: Update.
50210
50211 2007-05-20  Bruno Haible  <bruno@clisp.org>
50212
50213         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50214         was not found in libc.
50215         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50216
50217 2007-05-20  Bruno Haible  <bruno@clisp.org>
50218
50219         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50220         printed as "-nan" instead of "nan".
50221         * tests/test-vasprintf-posix.c (test_function): Likewise.
50222         * tests/test-snprintf-posix.h (test_function): Likewise.
50223         * tests/test-sprintf-posix.h (test_function): Likewise.
50224         Needed for HP-UX 11.
50225
50226 2007-05-20  Jim Meyering  <jim@meyering.net>
50227
50228         Fix buggy test for the fchownat-deref bug.
50229         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50230         symlink required for the run-test.  Without it, this test would
50231         always declare that fchownat doesn't work, and client code would
50232         unnecessarily use the replacement function with fixed libc.
50233         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50234         Reported by Greg Schafer.
50235
50236 2007-05-19  Bruno Haible  <bruno@clisp.org>
50237
50238         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50239         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50240         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50241         Needed for IRIX 6.5 and Solaris 2.5.1.
50242
50243 2007-05-19  Bruno Haible  <bruno@clisp.org>
50244
50245         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50246         (test_function): Skip tests involving -0.0 on platforms where
50247         -0.0 = 0.0.
50248         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50249         (test_function): Skip tests involving -0.0 on platforms where
50250         -0.0 = 0.0.
50251         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50252         (test_function): Skip tests involving -0.0 on platforms where
50253         -0.0 = 0.0.
50254         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50255         (test_function): Skip tests involving -0.0 on platforms where
50256         -0.0 = 0.0.
50257         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50258         tests.
50259         * tests/test-printf-posix.h (test_function): Likewise.
50260         * tests/test-printf-posix.output: Remove all -0.0 related results.
50261         Needed for IRIX 6.5.
50262
50263 2007-05-19  Bruno Haible  <bruno@clisp.org>
50264
50265         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50266         printed as "nan0x7fffffff" instead of "nan".
50267         * tests/test-vasprintf-posix.c (test_function): Likewise.
50268         * tests/test-snprintf-posix.h (test_function): Likewise.
50269         * tests/test-sprintf-posix.h (test_function): Likewise.
50270         * tests/test-fprintf-posix.h (NaN): Remove macro.
50271         (test_function): Remove all NaN related tests.
50272         * tests/test-printf-posix.h (NaN): Remove macro.
50273         (test_function): Remove all NaN related tests.
50274         * tests/test-printf-posix.output: Remove all NaN related results.
50275         Needed for IRIX 6.5.
50276
50277 2007-05-19  Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50280         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50281
50282 2007-05-19  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/float_.h: New file.
50285         * m4/float_h.m4: New file.
50286         * modules/float: New file.
50287         * modules/isnanl (Dependencies): Add float.
50288         * modules/isnanl-nolibm (Dependencies): Likewise.
50289         * modules/mathl (Dependencies): Likewise.
50290         * modules/printf-frexpl (Dependencies): Likewise.
50291         * modules/signbit (Dependencies): Likewise.
50292         * modules/vasnprintf (Dependencies): Likewise.
50293         * doc/headers/float.texi: Update.
50294
50295 2007-05-19  Jim Meyering  <jim@meyering.net>
50296
50297         * lib/utimens.c (gl_futimens): Rename from futimens,
50298         now that glibc-2.6 declares futimens.
50299         * lib/utimens.h: Likewise.
50300
50301 2007-05-19  Bruno Haible  <bruno@clisp.org>
50302
50303         Avoid test failures on mingw.
50304         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50305         * tests/test-printf-posix.sh: Likewise.
50306         * tests/test-vfprintf-posix.sh: Likewise.
50307         * tests/test-vprintf-posix.sh: Likewise.
50308
50309 2007-05-19  Bruno Haible  <bruno@clisp.org>
50310
50311         Fix *printf result for NaN, Inf, -0.0 on mingw.
50312         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50313         * lib/vasnprintf.c: Include math.h and isnan.h.
50314         (is_infinite_or_zero): New function.
50315         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50316         values in the %f, %F, %e, %E, %g, %G directives.
50317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50319         gl_PRINTF_INFINITE and test its result. Invoke
50320         gl_PREREQ_VASNPRINTF_INFINITE.
50321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50328         * doc/functions/fprintf.texi: Update.
50329         * doc/functions/printf.texi: Update.
50330         * doc/functions/snprintf.texi: Update.
50331         * doc/functions/sprintf.texi: Update.
50332         * doc/functions/vfprintf.texi: Update.
50333         * doc/functions/vprintf.texi: Update.
50334         * doc/functions/vsnprintf.texi: Update.
50335         * doc/functions/vsprintf.texi: Update.
50336
50337 2007-05-19  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50340         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50341         Instead of multiplying with 10^k, set extra_zeroes to k.
50342         (scale10_round_long_double): Remove function.
50343
50344 2007-05-18  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50347         introduced on 2007-05-06.
50348
50349 2007-05-18  Bruno Haible  <bruno@clisp.org>
50350
50351         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50352         %g directives.
50353         * tests/test-vasprintf-posix.c (test_function): Likewise.
50354         * tests/test-snprintf-posix.h (test_function): Likewise.
50355         * tests/test-sprintf-posix.h (test_function): Likewise.
50356
50357 2007-05-18  Bruno Haible  <bruno@clisp.org>
50358
50359         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50360         (strmatch): New function.
50361         (test_function): Test the %f directive on numbers of various exponents.
50362         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50363         (strmatch): New function.
50364         (test_function): Test the %f directive on numbers of various exponents.
50365         * tests/test-snprintf-posix.h (strmatch): New function.
50366         (test_function): Test the %f directive on numbers of various exponents.
50367         * tests/test-sprintf-posix.h (strmatch): New function.
50368         (test_function): Test the %f directive on numbers of various exponents.
50369         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50370         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50371         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50372         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50373
50374 2007-05-18  Bruno Haible  <bruno@clisp.org>
50375
50376         Add support for 'long double' number output.
50377         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50378         * lib/vasnprintf.c: Include math.h and float+.h.
50379         (mp_limb_t): New type.
50380         (GMP_LIMB_BITS): New macro.
50381         (mp_twolimb_t): New type.
50382         (GMP_TWOLIMB_BITS): New macro.
50383         (mpn_t): New type.
50384         (multiply, divide, convert_to_decimal, decode_long_double,
50385         scale10_round_long_double, scale10_round_decimal_long_double,
50386         floorlog10l): New functions.
50387         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50388         for the %f, %F, %e, %E, %g, %G directives.
50389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50391         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50392         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50400         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50401         * modules/snprintf-posix (Depends-on): Likewise.
50402         * modules/sprintf-posix (Depends-on): Likewise.
50403         * modules/vasnprintf-posix (Depends-on): Likewise.
50404         * modules/vasprintf-posix (Depends-on): Likewise.
50405         * modules/vfprintf-posix (Depends-on): Likewise.
50406         * modules/vsnprintf-posix (Depends-on): Likewise.
50407         * modules/vsprintf-posix (Depends-on): Likewise.
50408         * modules/vasnprintf (Files): Add lib/float+.h.
50409         * doc/functions/fprintf.texi: Update.
50410         * doc/functions/printf.texi: Update.
50411         * doc/functions/snprintf.texi: Update.
50412         * doc/functions/sprintf.texi: Update.
50413         * doc/functions/vfprintf.texi: Update.
50414         * doc/functions/vprintf.texi: Update.
50415         * doc/functions/vsnprintf.texi: Update.
50416         * doc/functions/vsprintf.texi: Update.
50417
50418 2007-05-18  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50421
50422 2007-05-18  Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50425         for printing 64-bit integers. Needed for mingw.
50426
50427 2007-05-18  Bruno Haible  <bruno@clisp.org>
50428
50429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50430         gl_FUNC_FREXPL_WORKS.
50431         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50432
50433 2007-05-18  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/frexpl-nolibm-tests: New file.
50436
50437         * modules/frexpl-nolibm: New file.
50438         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50439
50440 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50441
50442         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50443         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50444         GCC 4.2, which otherwise issues a lot of warnings.
50445         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50446         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50447         Likewise.
50448         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50449         * modules/iconv_open (iconv.h): Likewise.
50450         * modules/locale (locale.h): Likewise.
50451         * modules/netinet_in (netinet/in.h): Likewise.
50452         * modules/sys_select (sys_select.h): Likewise.
50453         * modules/sys_socket (sys/socket.h): Likewise.
50454         * modules/sys_stat (sys/stat.h): Likewise.
50455         * modules/sysexits (sysexits.h): Likewise.
50456         * modules/unistd (unistd.h): Likewise.
50457
50458 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50459
50460         * modules/closein-tests (Makefile.am): Distribute
50461         `test-closein.sh'.
50462
50463 2007-05-17  Bruno Haible  <bruno@clisp.org>
50464
50465         * tests/test-printf-posix.output: Renamed from
50466         tests/test-fprintf-posix.out.
50467         * modules/fprintf-posix-tests: Update.
50468         * modules/printf-posix-tests: Update.
50469         * modules/vfprintf-posix-tests: Update.
50470         * modules/vprintf-posix-tests: Update.
50471         * tests/test-fprintf-posix.sh: Update.
50472         * tests/test-printf-posix.sh: Update.
50473         * tests/test-vfprintf-posix.sh: Update.
50474         * tests/test-vprintf-posix.sh: Update.
50475         Reported by Ralf Wildenhues.
50476
50477 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50480         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50481         GCC 4.2, which otherwise issues a lot of warnings.
50482         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50483         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50484         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50485         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50486         it should no longer be needed.
50487         * lib/string_.h: Likewise.
50488         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50489         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50490         * modules/inttypes (inttypes.h): Likewise.
50491         * modules/math (math.h): Likewise.
50492         * modules/search (search.h): Likewise.
50493         * modules/signal (signal.h): Likewise.
50494         * modules/stdint (stdint.h): Likewise.
50495         * modules/stdio (stdio.h): Likewise.
50496         * modules/stdlib (stdlib.h): Likewise.
50497         * modules/string (string.h): Likewise.
50498         * modules/sys_time (sys/time.h): Likewise.
50499         * modules/time (time.h): Likewise.
50500         * modules/wchar (wchar.h): Likewise.
50501         * modules/wctype (wtype.h): Likewise.
50502
50503 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50504
50505         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50506
50507 2007-05-13  Bruno Haible  <bruno@clisp.org>
50508
50509         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50510         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50511         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50512         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50513         (gl_PREREQ_STRTOK_R): Don't require it here.
50514
50515 2007-05-13  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50518         when used in C++ mode.
50519
50520 2007-05-12  Bruno Haible  <bruno@clisp.org>
50521
50522         * lib/linebuffer.h: Tweak doc.
50523         * lib/linebuffer.c: Likewise.
50524
50525 2007-05-12  James Youngman  <jay@gnu.org>
50526
50527         * lib/linebuffer.c (readlinebuffer_delim): New function,
50528         like readlinebuffer, but use a caller-specified delimiter.
50529         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50530         as the delimiter.
50531         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50532
50533 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50534
50535         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50536         * modules/openat (Files): Remove openat-die.c.
50537         (Depends-on): Add openat-die.
50538         * modules/openat-die: New module.
50539
50540 2007-05-06  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50543         Update with info about Cygwin.
50544         * doc/functions/fprintf.texi: Update.
50545         * doc/functions/printf.texi: Update.
50546         * doc/functions/snprintf.texi: Update.
50547         * doc/functions/sprintf.texi: Update.
50548         * doc/functions/vfprintf.texi: Update.
50549         * doc/functions/vprintf.texi: Update.
50550         * doc/functions/vsnprintf.texi: Update.
50551         * doc/functions/vsprintf.texi: Update.
50552         Reported by Eric Blake.
50553
50554 2007-05-06  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50557         padding ourselves for the floating-point directives.
50558         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50561         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50562         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50570         * tests/test-snprintf-posix.h (test_function): Also check the width
50571         and some flags in the %f directive.
50572         * tests/test-sprintf-posix.h (test_function): Likewise.
50573         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50574         * tests/test-vasprintf-posix.c (test_function): Likewise.
50575         * doc/functions/fprintf.texi: Update.
50576         * doc/functions/printf.texi: Update.
50577         * doc/functions/snprintf.texi: Update.
50578         * doc/functions/sprintf.texi: Update.
50579         * doc/functions/vfprintf.texi: Update.
50580         * doc/functions/vprintf.texi: Update.
50581         * doc/functions/vsnprintf.texi: Update.
50582         * doc/functions/vsprintf.texi: Update.
50583
50584 2007-05-06  Bruno Haible  <bruno@clisp.org>
50585
50586         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50587         pass the ' flag character to sprintf or snprintf.
50588         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50591         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50592         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50600         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50601         flag.
50602         * tests/test-sprintf-posix.h (test_function): Likewise.
50603         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50604         * tests/test-vasprintf-posix.c (test_function): Likewise.
50605         * doc/functions/fprintf.texi: Update.
50606         * doc/functions/printf.texi: Update.
50607         * doc/functions/snprintf.texi: Update.
50608         * doc/functions/sprintf.texi: Update.
50609         * doc/functions/vfprintf.texi: Update.
50610         * doc/functions/vprintf.texi: Update.
50611         * doc/functions/vsnprintf.texi: Update.
50612         * doc/functions/vsprintf.texi: Update.
50613
50614 2007-05-01  Bruno Haible  <bruno@clisp.org>
50615
50616         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50617
50618 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50619
50620         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50621         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50622
50623 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50626         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50628
50629 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50630
50631         * lib/argp-help.c (struct hol_entry): New member `ord'.
50632         (HOL_ENTRY_PTRCMP): Use ord for comparison
50633         (hol_sort): Initialize ord.
50634
50635 2007-05-01  Bruno Haible  <bruno@clisp.org>
50636
50637         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50638         Reported by Eric Blake.
50639         * doc/gnulib.texi (Function Substitutes): Update.
50640
50641 2007-05-01  Bruno Haible  <bruno@clisp.org>
50642
50643         * doc/functions.texi: Remove file, now redundant through
50644         doc/functions/*.texi.
50645
50646 2007-05-01  Bruno Haible  <bruno@clisp.org>
50647
50648         * modules/argp (Depends-on): Add sleep.
50649
50650 2007-05-01  Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/sleep-tests: New file.
50653         * tests/test-sleep.c: New file.
50654
50655         * modules/sleep: New file.
50656         * lib/sleep.c: New file.
50657         * m4/sleep.m4: New file.
50658         * lib/unistd_.h (sleep): New declaration.
50659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50660         HAVE_SLEEP.
50661         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50662         * doc/functions/sleep.texi: Document the sleep module.
50663
50664 2007-05-01  Bruno Haible  <bruno@clisp.org>
50665
50666         * lib/sigprocmask.h: Remove file.
50667         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50668         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50669         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50670         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50671         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50672         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50673         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50674         HAVE_SIGSET_T as a shell variable.
50675         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50676         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50677         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50678         (Depends-on): Add signal. Remove verify.
50679         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50680         (Include): Mention <signal.h> instead of sigprocmask.h.
50681         * NEWS: Mention the change.
50682         * lib/fatal-signal.c: Don't include sigprocmask.h.
50683
50684 2007-05-01  Bruno Haible  <bruno@clisp.org>
50685
50686         * modules/signal: New file.
50687         * lib/signal_.h: New file.
50688         * m4/signal_h.m4: New file.
50689
50690 2007-05-01  Bruno Haible  <bruno@clisp.org>
50691
50692         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50693         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50694         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50695         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50696
50697 2007-05-01  Bruno Haible  <bruno@clisp.org>
50698
50699         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50700         configure time.
50701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50702         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50703         * modules/sys_stat (Makefile.am): Substitute their values into
50704         sys/stat.h.
50705
50706 2007-05-01  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50709         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50710         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50711
50712 2007-05-01  Bruno Haible  <bruno@clisp.org>
50713
50714         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50715         'assert' module here.
50716
50717 2007-05-01  Bruno Haible  <bruno@clisp.org>
50718
50719         * doc/functions/*.texi: New files.
50720         * doc/functions/google-ranking.txt: New file.
50721         * doc/gnulib.texi (Function Substitutes): New chapter.
50722         (ctime, inet_ntoa): Remove sections.
50723         * doc/ctime.texi: Remove file.
50724         * doc/inet_ntoa.texi: Remove file.
50725         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50726         dependencies.
50727         (%.info): New rule, specifying a --reference-limit.
50728
50729 2007-05-01  Bruno Haible  <bruno@clisp.org>
50730
50731         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50732
50733 2007-05-01  Bruno Haible  <bruno@clisp.org>
50734
50735         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50736         the portability of 'mkdir' to mingw systems.
50737
50738 2007-05-01  Bruno Haible  <bruno@clisp.org>
50739
50740         * doc/headers/google-ranking.txt: New file.
50741
50742 2007-04-30  Eric Blake  <ebb9@byu.net>
50743
50744         Prefer fseeko to fseek.
50745         * modules/getpass (Depends-on): Add fseeko.
50746         * lib/getpass.c (getpass): Use fseeko, not fseek.
50747
50748 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50749
50750         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50751         assumes the sorting is stable, while most qsort implementations
50752         are not.  Use argument addresses to ensure they never compare as
50753         equal.
50754
50755         * tests/test-argp-2.sh (usage-indent test): Fix output
50756         (func_compare): Restore diff options
50757         * tests/test-argp.c: Restore #include "progname.h"
50758
50759 2007-04-29  Bruno Haible  <bruno@clisp.org>
50760
50761         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50762         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50763         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50765         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50766         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50767         (TESTS, check_PROGRAMS): Add test-snprintf.
50768         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50769         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50770         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50771         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50772         assertions that fail on HP-UX, OSF/1, or IRIX.
50773         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50774
50775 2007-04-29  Bruno Haible  <bruno@clisp.org>
50776
50777         * MODULES.html.sh (posix_functions): Remove 'contents'.
50778
50779 2007-04-29  Karl Berry  <karl@gnu.org>
50780
50781         * config/srclist.txt (gendocs_template_min): new entry.
50782
50783 2007-04-29  Bruno Haible  <bruno@clisp.org>
50784
50785         Work around fpurge bug on BSD systems.
50786         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50787         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50788         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50789         fpurge to rpl_fpurge if the system already has this function.
50790         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50791         the case where the system already has this function. Correct invariants
50792         on BSD systems.
50793         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50794         BSD systems.
50795
50796 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50797
50798         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50799         proposed by Sven Verdoolaege.
50800
50801         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50802         options.
50803         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50804         (usage and help tests): Update
50805
50806 2007-04-29  Bruno Haible  <bruno@clisp.org>
50807
50808         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50809         Print more information in case of failure. Disable a test on BeOS.
50810
50811 2007-04-29  Bruno Haible  <bruno@clisp.org>
50812
50813         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50814         This helps debugging on systems on which no gdb is available.
50815
50816 2007-04-29  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/freading.h: Improve comments.
50819         * lib/fwriting.h: Likewise.
50820         * tests/test-freading.c (main): Don't check freading immediately after
50821         repositioning. Needed for glibc.
50822
50823 2007-04-29  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/freading.c (freading): Trivial simplification.
50826
50827 2007-04-28  Bruno Haible  <bruno@clisp.org>
50828
50829         * tests/test-fwriting.c (main): Also test the interaction between
50830         fflush and fwriting.
50831         * modules/fwriting-tests (Depends-on): Add fflush.
50832
50833         * tests/test-freading.c (main): Also test the interaction between
50834         fflush and freading.
50835         * modules/freading-tests (Depends-on): Add fflush.
50836
50837 2007-04-28  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50840         fseeko and ftello.
50841         Suggested by Eric Blake.
50842
50843 2007-04-28  Jim Meyering  <jim@meyering.net>
50844
50845         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50846         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50847         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50848
50849 2007-04-27  Eric Blake  <ebb9@byu.net>
50850
50851         * doc/headers/assert.texi (assert.h): Document assert module use.
50852
50853 2007-04-27  Bruno Haible  <bruno@clisp.org>
50854
50855         * doc/headers/*.texi: New files.
50856         * doc/gnulib.texi (Header File Substitutes): New chapter.
50857         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50858         dependencies.
50859         (standards.info ,standards.html, standards.dvi): Update dependencies.
50860         (mostlyclean, clean): New targets.
50861
50862 2007-04-27  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50865         * modules/sysexits (Files, Makefile.am): Update.
50866
50867         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50868         * modules/sys_socket (Files, Makefile.am): Update.
50869
50870         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50871         * modules/sys_stat (Files, Makefile.am): Update.
50872
50873 2007-04-27  Eric Blake  <ebb9@byu.net>
50874
50875         * lib/freading.h: Improve comments.
50876         * lib/fwriting.h: Likewise.
50877         * lib/fflush.c: Likewise.
50878
50879         Fix closein for mingw.
50880         * modules/closein-tests: Add tests for closein.
50881         * tests/test-closein.c: New file.
50882         * tests/test-closein.sh: Likewise.
50883         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50884         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50885
50886 2007-04-27  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50889         version is < 6.
50890         * lib/math_.h [__DECC]: Likewise.
50891         * lib/stdio_.h [__DECC]: Likewise.
50892         * lib/stdlib_.h [__DECC]: Likewise.
50893         * lib/string_.h [__DECC]: Likewise.
50894         * lib/time_.h [__DECC]: Likewise.
50895         * lib/wchar_.h [__DECC]: Likewise.
50896         * lib/wctype_.h [__DECC]: Likewise.
50897
50898 2007-04-27  Bruno Haible  <bruno@clisp.org>
50899
50900         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50901
50902 2007-04-27  Bruno Haible  <bruno@clisp.org>
50903
50904         * lib/fflush.c: Add comments.
50905         * modules/fpurge-tests (Depends-on): Add fflush.
50906         * modules/freadable-tests (Depends-on): Likewise.
50907         * modules/fwritable-tests (Depends-on): Likewise.
50908
50909 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50910
50911         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50912         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50913         Report by Bruno Haible <bruno@clisp.org>.
50914
50915 2007-04-26  Eric Blake  <ebb9@byu.net>
50916
50917         Fix fflush on mingw.
50918         * modules/fflush (Depends-on): Add freading.
50919         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50920         but unread data.
50921
50922 2007-04-26  Eric Blake  <ebb9@byu.net>
50923         and Bruno Haible  <bruno@clisp.org>
50924
50925         Implement freading and fwriting.
50926         * lib/freading.c: New file.
50927         * lib/freading.h: Likewise.
50928         * m4/freading.m4: Likewise.
50929         * modules/freading: Likewise.
50930         * modules/freading-tests: Likewise.
50931         * tests/test-freading.c: Likewise.
50932         * lib/fwriting.c: New file.
50933         * lib/fwriting.h: Likewise.
50934         * m4/fwriting.m4: Likewise.
50935         * modules/fwriting: Likewise.
50936         * modules/fwriting-tests: Likewise.
50937         * tests/test-fwriting.c: Likewise.
50938         * MODULES.html.sh (File stream based Input/Output): Mention them.
50939
50940 2007-04-26  Bruno Haible  <bruno@clisp.org>
50941
50942         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50943         'long' when we assume it.
50944         Suggested by Eric Blake.
50945
50946 2007-04-26  Bruno Haible  <bruno@clisp.org>
50947
50948         Ensure fseeko, ftello are declared on glibc systems.
50949         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50950         * modules/fseeko (configure.ac-early): Likewise.
50951         * modules/ftello (configure.ac-early): Likewise.
50952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50953         AC_FUNC_FSEEKO for this.
50954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50955         (gl_CHECK_FSEEKO): Remove macro.
50956
50957 2007-04-26  Bruno Haible  <bruno@clisp.org>
50958
50959         * tests/test-fflush.c (main): Also check the ftell result after
50960         fflush and fseek/fseeko.
50961         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50962         file descriptor position cache in the stream.
50963         * lib/fseeko.c (rpl_fseeko): Likewise.
50964
50965 2007-04-26  Bruno Haible  <bruno@clisp.org>
50966
50967         * modules/fflush-tests (Depends-on): Add fseeko.
50968
50969 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50970             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50971
50972         * lib/argz_.h: ensure error_t definition is obtained in same
50973         mechanism system argz.h would have.
50974         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50975         argz facilities are known bad.  Err on the side of caution if
50976         cross-compiling.
50977
50978 2007-04-25  Eric Blake  <ebb9@byu.net>
50979
50980         * lib/fpurge.c (includes): Use stdlib.h for free.
50981         * tests/test-fflush.c (main): Also test fflush-fseeko.
50982
50983 2007-04-25  Bruno Haible  <bruno@clisp.org>
50984
50985         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50986         * lib/fseeko.c: New file.
50987         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50988         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50989         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50990         gl_FUNC_FSEEKO.
50991         (gl_FUNC_FSEEKO): Invoke it.
50992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50993         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50994         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50995
50996 2007-04-25  Bruno Haible  <bruno@clisp.org>
50997
50998         * modules/fflush (Depends-on): Add ftello.
50999
51000 2007-04-25  Bruno Haible  <bruno@clisp.org>
51001
51002         * modules/ftello-tests: New file.
51003         * tests/test-ftello.c: New file.
51004
51005         * modules/ftello: New file.
51006         * m4/ftello.m4: New file.
51007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51008         HAVE_FTELLO.
51009         * lib/stdio_.h (ftello): New declaration.
51010         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51011         HAVE_FTELLO.
51012
51013 2007-04-25  Bruno Haible  <bruno@clisp.org>
51014
51015         * modules/fseeko-tests: New file.
51016         * tests/test-fseeko.c: New file.
51017
51018         * modules/fseeko: New file.
51019         * m4/fseeko.m4: New file.
51020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51021         HAVE_FSEEKO.
51022         * lib/stdio_.h (fseeko): New declaration.
51023         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51024         HAVE_FSEEKO.
51025
51026 2007-04-25  Bruno Haible  <bruno@clisp.org>
51027
51028         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51029
51030 2007-04-25  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51033         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51034         * tests/test-unistd.c: Likewise.
51035         * tests/test-fcntl.c: Likewise.
51036
51037 2007-04-23  Eric Blake  <ebb9@byu.net>
51038
51039         * lib/fflush.c: Fix missing include.
51040         Reported by Bruno Haible.
51041
51042 2007-04-23  Bruno Haible  <bruno@clisp.org>
51043
51044         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51045         Reported by Eric Blake.
51046
51047 2007-04-23  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51050
51051 2007-04-23  Bruno Haible  <bruno@clisp.org>
51052
51053         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51054
51055 2007-04-23  Bruno Haible  <bruno@clisp.org>
51056
51057         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51058         Needed on HP-UX 11.
51059
51060 2007-04-16  Eric Blake  <ebb9@byu.net>
51061
51062         Make fflush rely on fpurge.
51063         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51064         open coding all variants.
51065         * modules/fflush (Depends-on): Add fpurge and unistd.
51066         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51068
51069         Fix --with-tests compilation on cygwin.
51070         * modules/argmatch-tests (Makefile.am): List gnulib library first
51071         in LDADD.
51072         * modules/argp-tests (Makefile.am): Likewise.
51073         * modules/array-list-tests (Makefile.am): Likewise.
51074         * modules/array-oset-tests (Makefile.am): Likewise.
51075         * modules/avltree-list-tests (Makefile.am): Likewise.
51076         * modules/avltree-oset-tests (Makefile.am): Likewise.
51077         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51078         * modules/carray-list-tests (Makefile.am): Likewise.
51079         * modules/dirname-tests (Makefile.am): Likewise.
51080         * modules/frexp-tests (Makefile.am): Likewise.
51081         * modules/isnanl-tests (Makefile.am): Likewise.
51082         * modules/linked-list-tests (Makefile.am): Likewise.
51083         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51084         * modules/lock-tests (Makefile.am): Likewise.
51085         * modules/rbtree-list-tests (Makefile.am): Likewise.
51086         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51087         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51088         * modules/tls-tests (Makefile.am): Likewise.
51089         * modules/tsearch-tests (Makefile.am): Likewise.
51090         * modules/xvasprintf-tests (Makefile.am): Likewise.
51091
51092         Fix fpurge for cygwin.
51093         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51094         value.
51095         * modules/fpurge-tests (Depends-on): Clean up trash.
51096
51097 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51098
51099         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51100
51101         * m4/autobuild.m4: Re-indent.
51102
51103 2007-04-13  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/fpurge-tests: New file.
51106         * tests/test-fpurge.c: New file.
51107
51108         * modules/fpurge: New file.
51109         * lib/fpurge.h: New file.
51110         * lib/fpurge.c: New file.
51111         * m4/fpurge.m4: New file.
51112
51113 2007-04-13  Bruno Haible  <bruno@clisp.org>
51114
51115         * modules/fbufmode-tests: New file.
51116         * tests/test-fbufmode.c: New file.
51117
51118         * modules/fbufmode: New file.
51119         * lib/fbufmode.h: New file.
51120         * lib/fbufmode.c: New file.
51121         * m4/fbufmode.m4: New file.
51122
51123 2007-04-13  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/fwritable-tests: New file.
51126         * tests/test-fwritable.c: New file.
51127
51128         * modules/fwritable: New file.
51129         * lib/fwritable.h: New file.
51130         * lib/fwritable.c: New file.
51131         * m4/fwritable.m4: New file.
51132
51133 2007-04-13  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/freadable-tests: New file.
51136         * tests/test-freadable.c: New file.
51137
51138         * modules/freadable: New file.
51139         * lib/freadable.h: New file.
51140         * lib/freadable.c: New file.
51141         * m4/freadable.m4: New file.
51142
51143 2007-04-13  Bruno Haible  <bruno@clisp.org>
51144
51145         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51146         MOSTLYCLEANFILES.
51147
51148 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51151         gzip bootstrap.conf to avoid dragging in i18n machinery.
51152         (gnulib_tool_option): Use it.
51153
51154 2007-04-13  Bruno Haible  <bruno@clisp.org>
51155
51156         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51157         %F directives.
51158         * tests/test-vasprintf-posix.c (test_function): Likewise.
51159         * tests/test-snprintf-posix.h (test_function): Likewise.
51160         * tests/test-sprintf-posix.h (test_function): Likewise.
51161         * tests/test-fprintf-posix.h (test_function): Likewise.
51162         * tests/test-printf-posix.h (test_function): Likewise.
51163         * tests/test-fprintf-posix.out: Likewise.
51164
51165 2007-04-13  Bruno Haible  <bruno@clisp.org>
51166
51167         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51168         * modules/tls-tests (configure.ac): Likewise.
51169         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51170
51171 2007-04-13  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/tls.c (glthread_tls_get): Fix return type.
51174         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51175
51176 2007-04-12  Eric Blake  <ebb9@byu.net>
51177
51178         * modules/gettime (Depends-on): Remove gettime.
51179         Reported by Dmitry V. Levin.
51180
51181 2007-04-12  Bruno Haible  <bruno@clisp.org>
51182
51183         * modules/fflush (Include): Mention <stdio.h>.
51184         * modules/strtoimax (Include): Mention <inttypes.h>.
51185         * modules/strtoumax (Include): Likewise.
51186
51187 2007-04-12  Eric Blake  <ebb9@byu.net>
51188
51189         * .cvsignore: New file.
51190         * .gitignore: Likewise.
51191
51192 2007-04-12  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51195         not before, since $(LDADD) often contains libgnu.a.
51196         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51197         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51198         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51199         Needed on Cygwin.
51200
51201 2007-04-12  Eric Blake  <ebb9@byu.net>
51202
51203         Work around glibc's failure to flush stdin on fclose.
51204         * lib/closein.c (close_stdin): Flush stdin before closing.
51205
51206         Work around glibc's failure to reset seekable stdin on exit.
51207         * modules/closein: New module.
51208         * lib/closein.c: New file.
51209         * lib/closein.h: Likewise.
51210         * m4/closein.m4: Likewise.
51211         * MODULES.html.sh (File stream based Input/Output): Document it.
51212
51213 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51214
51215         * gnulib-tool: Rename generated 'autobuild' script to
51216         'do-autobuild' in --create-megatestdir output.
51217
51218         * doc/gnulib.texi (Build robot for gnulib): Fix.
51219
51220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51221
51222         * modules/sysexits (Depends-on): Add absolute-header.
51223
51224 2007-04-12  Eric Blake  <ebb9@byu.net>
51225
51226         No need to preserve errno on success.
51227         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51228         Reported by Bruno Haible.
51229
51230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51231
51232         * MODULES.html.sh (Support for maintaining and releasing
51233         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51234
51235 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51236
51237         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51238
51239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51240
51241         * modules/autobuild: New module.
51242
51243         * m4/autobuild.m4: New file.
51244
51245 2007-04-11  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51248         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51267         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51268         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51270         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51271         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51273         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51274         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51275         Reported by Eric Blake.
51276
51277 2007-04-11  Bruno Haible  <bruno@clisp.org>
51278
51279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51280
51281 2007-04-10  Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51284         for NaN and Infinity. Needed on FreeBSD 6.1.
51285         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51286         regarding results for "%010a" of Infinity and NaN.
51287         * tests/test-vasprintf-posix.c (test_function): Likewise.
51288         * tests/test-snprintf-posix.h (test_function): Likewise.
51289         * tests/test-sprintf-posix.h (test_function): Likewise.
51290         * tests/test-fprintf-posix.h (test_function): Likewise.
51291         * tests/test-printf-posix.h (test_function): Likewise.
51292         * tests/test-fprintf-posix.out: Likewise.
51293
51294 2007-04-10  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/locale-tests: New file.
51297         * tests/test-locale.c: New file.
51298
51299         * modules/locale: New file.
51300         * lib/locale_.h: New file.
51301         * m4/locale_h.m4: New file.
51302
51303 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51304             Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51307         be determined, test for availability of the copysignf, copysign,
51308         copysignl functions.
51309         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51310         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51311         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51312
51313 2007-04-09  Eric Blake  <ebb9@byu.net>
51314
51315         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51316         * modules/stdio (Makefile.am): Support fflush.
51317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51318         * modules/fflush: New file.
51319         * lib/fflush.c: Likewise.
51320         * m4/fflush.m4: Likewise.
51321         * modules/fflush-tests: New test.
51322         * tests/test-fflush.c: Likewise.
51323         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51324
51325 2007-04-06  Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51328         (VASNPRINTF): Use signbit for faster determination whether to print a
51329         minus sign.
51330         * modules/vasnprintf (Files): Remove lib/float+.h.
51331         * modules/fprintf-posix (Depends-on): Add signbit.
51332         * modules/snprintf-posix (Depends-on): Likewise.
51333         * modules/sprintf-posix (Depends-on): Likewise.
51334         * modules/vasnprintf-posix (Depends-on): Likewise.
51335         * modules/vasprintf-posix (Depends-on): Likewise.
51336         * modules/vfprintf-posix (Depends-on): Likewise.
51337         * modules/vsnprintf-posix (Depends-on): Likewise.
51338         * modules/vsprintf-posix (Depends-on): Likewise.
51339
51340 2007-04-06  Bruno Haible  <bruno@clisp.org>
51341
51342         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51343         * tests/test-frexpl.c (main): Likewise.
51344         * tests/test-ldexpl.c (main): Likewise.
51345         * modules/frexp-tests (Depends-on): Add signbit.
51346         * modules/frexpl-tests (Depdends-on): Likewise.
51347         * modules/ldexpl-tests (Depdends-on): Likewise.
51348
51349 2007-04-06  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/signbit-tests: New file.
51352         * tests/test-signbit.c: New file.
51353
51354         * modules/signbit: New file.
51355         * lib/signbitf.c: New file.
51356         * lib/signbitd.c: New file.
51357         * lib/signbitl.c: New file.
51358         * m4/signbit.m4: New file.
51359         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51360         (signbit): New macro.
51361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51362         REPLACE_SIGNBIT.
51363         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51364         REPLACE_FREXPL into math.h.
51365
51366 2007-04-06  Bruno Haible  <bruno@clisp.org>
51367
51368         * modules/isnanf-nolibm-tests: New file.
51369         * tests/test-isnanf.c: New file.
51370
51371         * modules/isnanf-nolibm: New file.
51372         * lib/isnanf.h: New file.
51373         * lib/isnanf.c: New file.
51374         * lib/isnan.c: Consider the USE_FLOAT macro.
51375         * m4/isnanf.m4: New file.
51376
51377 2007-04-06  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51380         (Link): New section.
51381
51382         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51383
51384 2007-04-06  Bruno Haible  <bruno@clisp.org>
51385
51386         Assume the 'long double' type.
51387         * m4/longdouble.m4: Remove file.
51388         * config/srclist.txt: Don't mention longdouble.m4.
51389         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51390         * lib/float+.h: Likewise.
51391         * lib/frexp.c: Likewise.
51392         * lib/printf-args.h: Likewise.
51393         * lib/printf-args.c: Likewise.
51394         * lib/printf-frexp.c: Likewise.
51395         * lib/printf-parse.c: Likewise.
51396         * lib/vasnprintf.c: Likewise.
51397         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51398         * m4/intl.m4: Likewise.
51399         * m4/isnanl.m4: Likewise.
51400         * m4/printf.m4: Likewise.
51401         * m4/printf-frexpl.m4: Likewise.
51402         * m4/vasnprintf.m4: Likewise.
51403         * modules/allocsa (Files): Remove m4/longdouble.m4.
51404         * modules/gettext (Files): Likewise.
51405         * modules/relocatable-prog-wrapper (Files): Likewise.
51406         * modules/vasnprintf (Files): Likewise.
51407         * modules/isnanl (Files): Likewise.
51408         (Include): Simplify.
51409         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51410         (Include): Simplify.
51411         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51412         (Include): Simplify.
51413         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51415         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51417         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51419         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51420         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51421         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51422         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51423         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51424         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51425         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51426         * tests/test-isnanl.c: Likewise.
51427         * tests/test-snprintf-posix.h: Likewise.
51428         * tests/test-sprintf-posix.h: Likewise.
51429         * tests/test-vasnprintf-posix.c: Likewise.
51430         * tests/test-vasnprintf-posix2.c: Likewise.
51431         * tests/test-vasprintf-posix.c: Likewise.
51432
51433 2007-04-06  Bruno Haible  <bruno@clisp.org>
51434
51435         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51436         * lib/math_.h [__DECC]: Include the overridden include file through
51437         #include_next, outside the double-inclusion guard.
51438         * lib/stdio_.h [__DECC]: Likewise.
51439         * lib/stdlib_.h [__DECC]: Likewise.
51440         * lib/string_.h [__DECC]: Likewise.
51441         * lib/time_.h [__DECC]: Likewise.
51442         * lib/wchar_.h [__DECC]: Likewise.
51443         * lib/wctype_.h [__DECC]: Likewise.
51444         * lib/inttypes_.h [__DECC]: Likewise.
51445         Reported by Albert Chin <china@thewrittenword.com> in
51446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51447
51448 2007-04-04  Eric Blake  <ebb9@byu.net>
51449
51450         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51451         1.5.x.
51452
51453 2007-04-04  Bruno Haible  <bruno@clisp.org>
51454
51455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51456         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51457
51458 2007-04-04  Bruno Haible  <bruno@clisp.org>
51459
51460         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51461         results for "%010a" of Infinity and NaN.
51462         * tests/test-vasprintf-posix.c (test_function): Likewise.
51463         * tests/test-snprintf-posix.h (test_function): Likewise.
51464         * tests/test-sprintf-posix.h (test_function): Likewise.
51465         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51466         * tests/test-printf-posix.h (test_function): Likewise.
51467         * tests/test-fprintf-posix.out: Update.
51468         Needed for FreeBSD 6.1.
51469
51470 2007-04-04  Bruno Haible  <bruno@clisp.org>
51471
51472         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51473         directly used by the gnulib modules nor by gnulib-tool.
51474
51475 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         * DEPENDENCIES: Give overall description of version dependency
51478         desirability.  Use more-typical names for apps.
51479         Add shell, coreutils, diffutils, grep, tar, gzip.
51480
51481 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51482
51483         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51484
51485 2007-04-04  Karl Berry  <karl@gnu.org>
51486
51487         * MODULES.html.sh (func_module): missing '.
51488
51489 2007-04-03  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/argmatch-tests (Makefile.am): New variable
51492         test_argmatch_LDADD.
51493         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51494         * modules/array-list-tests (Makefile.am): New variable
51495         test_array_list_LDADD.
51496         * modules/array-oset-tests (Makefile.am): New variable
51497         test_array_oset_LDADD.
51498         * modules/avltree-list-tests (Makefile.am): New variable
51499         test_avltree_list_LDADD.
51500         * modules/avltree-oset-tests (Makefile.am): New variable
51501         test_avltree_oset_LDADD.
51502         * modules/avltreehash-list-tests (Makefile.am): New variable
51503         test_avltreehash_list_LDADD.
51504         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51505         test_canonicalize_lgpl_LDADD.
51506         * modules/carray-list-tests (Makefile.am): New variable
51507         test_carray_list_LDADD.
51508         * modules/dirname-tests (Makefile.am): New variable
51509         test_dirname_LDADD.
51510         * modules/linked-list-tests (Makefile.am): New variable
51511         test_linked_list_LDADD.
51512         * modules/linkedhash-list-tests (Makefile.am): New variable
51513         test_linkedhash_list_LDADD.
51514         * modules/rbtree-list-tests (Makefile.am): New variable
51515         test_rbtree_list_LDADD.
51516         * modules/rbtree-oset-tests (Makefile.am): New variable
51517         test_rbtree_oset_LDADD.
51518         * modules/rbtreehash-list-tests (Makefile.am): New variable
51519         test_rbtreehash_list_LDADD.
51520         * modules/xvasprintf-tests (Makefile.am): New variable
51521         test_xvasprintf_LDADD.
51522         Reported by Eric Blake.
51523
51524 2007-04-03  Eric Blake  <ebb9@byu.net>
51525
51526         * DEPENDENCIES: Weaken m4 requirements.
51527
51528 2007-04-03  Bruno Haible  <bruno@clisp.org>
51529
51530         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51531         * modules/isnanl-tests (configure.ac): Likewise.
51532
51533 2007-04-03  Ben Pfaff  <blp@gnu.org>
51534
51535         * modules/iconv_open: Add $(srcdir)/ to source directory
51536         references in Makefile fragments that call gperf, to fix VPATH
51537         builds.
51538
51539 2007-04-03  Bruno Haible  <bruno@clisp.org>
51540
51541         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51542         * lib/ldexpl.c: Undo last change.
51543
51544 2007-04-03  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/printf-frexpl (Depends-on): Undo last change.
51547         (Files): Add m4/ldexpl.m4.
51548
51549 2007-04-03  Bruno Haible  <bruno@clisp.org>
51550
51551         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51552         * modules/isnanl (Link): New section.
51553
51554         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51555         * modules/frexp (Link): New section.
51556
51557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51558         * modules/frexpl (Link): New section.
51559
51560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51561         * modules/ldexpl (Link): New section.
51562
51563 2007-04-03  Bruno Haible  <bruno@clisp.org>
51564
51565         * modules/TEMPLATE-EXTENDED: New file.
51566         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51567
51568 2007-04-03  Bruno Haible  <bruno@clisp.org>
51569
51570         * DEPENDENCIES: New file.
51571         Suggested by Simon Josefsson.
51572
51573 2007-04-03  Bruno Haible  <bruno@clisp.org>
51574
51575         * doc/gnulib.texi: Escape @.
51576
51577 2007-04-03  James Youngman  <jay@gnu.org>
51578         and Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51581         birthtime on all systems that have birthtime, not just those which
51582         use st_birthtimensec rather than st_birthtim.  Putting zero in
51583         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51584         that the birth time is not available for files on an NFS mount.
51585
51586 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51587
51588         * modules/memxor: Move back from crypto/, suggested by Bruno.
51589         * modules/crypto/hmac-sha1: Fix memxor dependency.
51590
51591         * modules/crypto/gc: Moved from ../.
51592
51593 2007-04-02  Eric Blake  <ebb9@byu.net>
51594
51595         * lib/ldexpl.c (includes): Avoid libm.
51596
51597         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51598
51599 2007-04-02  Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51602         on IRIX.
51603
51604 2007-04-02  Bruno Haible  <bruno@clisp.org>
51605
51606         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51607         x86 or x86_64 platforms running MacOS X.
51608         Reported by Ryan Schmidt <@ryandesign.com>.
51609
51610 2007-04-02  Bruno Haible  <bruno@clisp.org>
51611
51612         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51613         i386.
51614
51615 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51616
51617         * modules/crypto/arcfour: Moved from ../.
51618         * modules/crypto/arcfour-tests: Moved from ../.
51619         * modules/crypto/arctwo: Moved from ../.
51620         * modules/crypto/arctwo-tests: Moved from ../.
51621         * modules/crypto/des: Moved from ../.
51622         * modules/crypto/des-tests: Moved from ../.
51623         * modules/crypto/gc-arcfour: Moved from ../.
51624         * modules/crypto/gc-arcfour-tests: Moved from ../.
51625         * modules/crypto/gc-arctwo: Moved from ../.
51626         * modules/crypto/gc-arctwo-tests: Moved from ../.
51627         * modules/crypto/gc-des: Moved from ../.
51628         * modules/crypto/gc-des-tests: Moved from ../.
51629         * modules/crypto/gc-hmac-md5: Moved from ../.
51630         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51631         * modules/crypto/gc-hmac-sha1: Moved from ../.
51632         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51633         * modules/crypto/gc-md2: Moved from ../.
51634         * modules/crypto/gc-md2-tests: Moved from ../.
51635         * modules/crypto/gc-md4: Moved from ../.
51636         * modules/crypto/gc-md4-tests: Moved from ../.
51637         * modules/crypto/gc-md5: Moved from ../.
51638         * modules/crypto/gc-md5-tests: Moved from ../.
51639         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51640         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51641         * modules/crypto/gc-random: Moved from ../.
51642         * modules/crypto/gc-rijndael: Moved from ../.
51643         * modules/crypto/gc-rijndael-tests: Moved from ../.
51644         * modules/crypto/gc-sha1: Moved from ../.
51645         * modules/crypto/gc-sha1-tests: Moved from ../.
51646         * modules/crypto/gc-tests: Moved from ../.
51647         * modules/crypto/hmac-md5: Moved from ../.
51648         * modules/crypto/hmac-md5-tests: Moved from ../.
51649         * modules/crypto/hmac-sha1: Moved from ../.
51650         * modules/crypto/hmac-sha1-tests: Moved from ../.
51651         * modules/crypto/md2: Moved from ../.
51652         * modules/crypto/md2-tests: Moved from ../.
51653         * modules/crypto/md4: Moved from ../.
51654         * modules/crypto/md4-tests: Moved from ../.
51655         * modules/crypto/md5: Moved from ../.
51656         * modules/crypto/md5-tests: Moved from ../.
51657         * modules/crypto/memxor: Moved from ../.
51658         * modules/crypto/rijndael: Moved from ../.
51659         * modules/crypto/rijndael-tests: Moved from ../.
51660         * modules/crypto/sha1: Moved from ../.
51661
51662 2007-03-30  James Youngman  <jay@gnu.org>
51663
51664         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51665         rename() to change the ctime of a file (because ctime is unaffected
51666         by rename on jfs2 on AIX 5.1).
51667         (main): Start by doing cleanup, in case a previous run failed leaving
51668         test files behind.
51669
51670 2007-03-31  Bruno Haible  <bruno@clisp.org>
51671
51672         Support old proprietary implementations of iconv.
51673         * modules/iconv_open: New file.
51674         * lib/iconv_.h: New file.
51675         * m4/iconv_h.m4: New file.
51676         * lib/iconv_open.c: New file.
51677         * lib/iconv_open-aix.gperf: New file.
51678         * lib/iconv_open-hpux.gperf: New file.
51679         * lib/iconv_open-irix.gperf: New file.
51680         * lib/iconv_open-osf.gperf: New file.
51681         * m4/iconv_open.m4: New file.
51682         * modules/linebreak (Depends-on): Add iconv_open.
51683         * modules/striconv (Depends-on): Likewise.
51684         * modules/striconveh (Depends-on): Likewise.
51685         * modules/unicodeio (Depends-on): Likewise.
51686         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51687         (iconv_t)(-1).
51688         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51689         conversion if cd is (iconv_t)(-1).
51690         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51691         is not possible.
51692
51693 2007-03-31  Bruno Haible  <bruno@clisp.org>
51694
51695         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51696         work on Solaris either. Protect also second use of "autodetect_jp".
51697
51698 2007-03-31  Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51701         the function is not present.
51702
51703 2007-03-31  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51706         the function is not present.
51707
51708 2007-03-31  Bruno Haible  <bruno@clisp.org>
51709
51710         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51711         a bug in HP-UX iconv_open().
51712
51713 2007-03-31  Bruno Haible  <bruno@clisp.org>
51714
51715         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51716         (Mathematics <math.h>): New section, add fpieee.
51717         (Input/output <stdio.h>): Add fseterr.
51718         (Mathematics <math.h>): New section, add printf-frexp.
51719         (Container data structures): Add sublist.
51720         (Core language properties): Add fpucw, inline.
51721         (Functions for greatest-width integer types <inttypes.h>): Add
51722         imaxabs, imaxdiv, inttypes.
51723         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51724         isnanl-nolibm, ldexp.
51725         (Mathematics <math.h>): New section, add printf-frexpl.
51726         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51727         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51728         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51729         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51730         (Unicode string functions): Add unistr/u*-mbtoucr.
51731         (Java): Add javacomp-script, javaexec-script.
51732         (C#): Add csharpcomp-script, csharpexec-script.
51733         (Support for building libraries and executables): Add havelib,
51734         relocatable-*.
51735         (Support for maintaining and releasing projects): Renamed from
51736         'Support for maintaining and release projects'. Add announce-gen.
51737
51738 2007-03-31  Bruno Haible  <bruno@clisp.org>
51739
51740         * README: Talk primarily about git.
51741         (git and CVS): Renamed from CVS.
51742         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51743         gnulib is available through git.
51744         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51745
51746 2007-03-30  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51749         * lib/poll_.h: Likewise.
51750         * lib/stat_.h: Likewise.
51751         * lib/sys_time_.h: Likewise.
51752         * lib/sysexit_.h: Likewise.
51753         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51754         * lib/stdbool_.h: Likewise.
51755         * lib/byteswap_.h: Add double-inclusion guard.
51756
51757 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51758
51759         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51760
51761 2007-03-30  Karl Berry  <karl@gnu.org>
51762
51763         * config/srclist-update: double space after USA in the license
51764         substitution, since that's how it's usually (?) written.
51765
51766 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51769         reported by Bruno Haible.
51770
51771 2007-03-29  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51774         a bug in AIX iconv().
51775
51776 2007-03-29  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/ldexpl-tests: New file.
51779         * tests/test-ldexpl.c: New file.
51780
51781 2007-03-29  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/ldexpl.c: Include fpucw.h.
51784         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51785         multiplication.
51786         * modules/ldexpl (Depends-on): Add fpucw.
51787
51788 2007-03-29  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/ldexpl: New file.
51791         * m4/ldexpl.m4: New file.
51792         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51793         set.
51794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51795         REPLACE_LDEXPL.
51796         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51797         REPLACE_LDEXPL.
51798         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51799         gl_FUNC_LDEXPL_WORKS.
51800         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51801         * modules/mathl (Files): Remove lib/ldexpl.c.
51802         (Depends-on): Add ldexpl.
51803
51804 2007-03-29  Bruno Haible  <bruno@clisp.org>
51805
51806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51807
51808 2007-03-29  Bruno Haible  <bruno@clisp.org>
51809
51810         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51811         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51812         and possibly also HP-UX.
51813         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51814         work on AIX, IRIX, HP-UX, OSF/1.
51815         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51816         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51817         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51818         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51819         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51820         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51821
51822 2007-03-29  Bruno Haible  <bruno@clisp.org>
51823
51824         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51825
51826 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51829         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51830
51831 2007-03-29  Eric Blake  <ebb9@byu.net>
51832
51833         * lib/acl-internal.h: Remove redundant include.
51834         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51835         Cygwin when a file is locked.
51836
51837 2007-03-29  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51840         file.
51841         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51842
51843 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51846         try to remove a parent directory if the child couldn't be removed
51847         (except for the first rmdir, which could fail because the child
51848         doesn't exist).  Problem reported by Jeff Blaine in
51849         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51850
51851 2007-03-28  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/striconveh.c (utf8conv_carefully): New function.
51854         (mem_cd_iconveh_internal): Invoke it.
51855
51856 2007-03-28  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51859         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51860         input.
51861         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51862         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51863         unistr/u8-uctomb.
51864
51865 2007-03-28  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/unistr/u8-mbtoucr: New file.
51868         * lib/unistr/u8-mbtoucr.c: New file.
51869         * modules/unistr/u16-mbtoucr: New file.
51870         * lib/unistr/u16-mbtoucr.c: New file.
51871         * modules/unistr/u16-mbtoucr: New file.
51872         * lib/unistr/u16-mbtoucr.c: New file.
51873         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51874
51875 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51876             Bruno Haible  <bruno@clisp.org>
51877
51878         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51879         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51880         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51881
51882         * m4/stdio_h.m4: Add stubs for vasprintf too.
51883
51884         * modules/stdio: Support vasprintf in sed command.
51885
51886         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51887         vasprintf.h.  Add stdio module indicator.
51888
51889         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51890         vasprintf.h.
51891
51892         * lib/vasprintf.h: File removed.
51893
51894         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51895         * lib/vasprintf.c: Ditto.
51896         * lib/xvasprintf.c: Ditto.
51897         * tests/test-vasprintf-posix.c: Ditto.
51898         * tests/test-vasprintf.c: Ditto.
51899
51900 2007-03-27  Bruno Haible  <bruno@clisp.org>
51901
51902         Make vasnprintf multithread-safe.
51903         * lib/vasnprintf.c (decimal_point_char): New function.
51904         (VASNPRINTF): Use it.
51905         Suggested by Simon Josefsson.
51906
51907 2007-03-27  Eric Blake  <ebb9@byu.net>
51908
51909         Support sub-second birthtime on cygwin.
51910         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51911         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51912         (get_stat_birthtime): Also work with st_birthtim.
51913
51914 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51917         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51918         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51919         (get_stat_birthtime_ns): Simplify compile-time tests.
51920         (get_stat_birthtime): Change the API to look like
51921         get_stat_mtime etc., except return a negative tv_nsec on error.
51922         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51923         Don't check for "spare" fields.
51924         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51925         or for struct stat.st_birthtime, as these tests aren't used.
51926         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51927
51928 2007-03-27  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/stat-time.h: Include <sys/stat.h>.
51931
51932 2007-03-27  James Youngman  <jay@gnu.org>
51933
51934         * lib/stat-time.h (get_stat_birthtime): New function for
51935           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51936         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51937           and its variants.
51938         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51939         * modules/stat-time-test: New file.
51940         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51941
51942 2007-03-26  Bruno Haible  <bruno@clisp.org>
51943
51944         Better support of signalling NaNs.
51945         * lib/atanl.c: Include isnanl.h.
51946         (atanl): Perform test for NaN at the beginning of the function and
51947         through a call to isnanl.
51948         * lib/cosl.c: Include isnanl.h.
51949         (cosl): Perform test for NaN at the beginning of the function and
51950         through a call to isnanl.
51951         * lib/ldexpl.c: Include isnanl.h.
51952         (ldexpl): Perform test for NaN through a call to isnanl.
51953         * lib/logl.c: Include isnanl.h.
51954         (logl): Perform test for NaN at the beginning of the function and
51955         through a call to isnanl.
51956         * lib/sinl.c: Include isnanl.h.
51957         (sinl): Perform test for NaN at the beginning of the function and
51958         through a call to isnanl.
51959         * lib/sqrtl.c: Include isnanl.h.
51960         (sqrtl): Perform test for NaN at the beginning of the function and
51961         through a call to isnanl.
51962         * lib/tanl.c: Include isnanl.h.
51963         (tanl): Perform test for NaN at the beginning of the function and
51964         through a call to isnanl.
51965         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51966         * modules/mathl (Depends-on): Add isnanl.
51967
51968 2007-03-26  Eric Blake  <ebb9@byu.net>
51969
51970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51971         regression in logic sense of previous patch.
51972
51973 2007-03-26  Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51976         unportable shell command "if ! ...".
51977         Reported by Ralf Wildenhues.
51978
51979 2007-03-25  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51982         <sysexits.h> file, and only add EX_CONFIG.
51983         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51984         absolute file name and whether it is sufficient. Substitute also
51985         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51986         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51987         ABSOLUTE_SYSEXITS_H into sysexits.h.
51988
51989 2007-03-25  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51992         hints is NULL.
51993
51994 2007-03-25  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51997         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51998
51999 2007-03-25  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/vasnprintf.c: Include langinfo.h.
52002         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52003         multithread-safe.
52004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52005         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52012         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52013         Reported by Simon Josefsson.
52014
52015 2007-03-25  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52018         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52019         * modules/vasnprintf (Depends-on): Add stdint.
52020
52021 2007-03-25  Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/fpieee: New file.
52024         * m4/fpieee.m4: New file.
52025         * modules/isnan-nolibm (Depends-on): Add fpieee.
52026         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52027         * modules/isnanl (Depends-on): Add fpieee.
52028
52029 2007-03-25  Bruno Haible  <bruno@clisp.org>
52030
52031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52032
52033 2007-03-25  Bruno Haible  <bruno@clisp.org>
52034
52035         Avoid test failures on IRIX 6.5.
52036         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52037         (main): Use it.
52038         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52039         macros.
52040         (main): Use them.
52041
52042 2007-03-25  Bruno Haible  <bruno@clisp.org>
52043
52044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52045         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52046         exists but doesn't work.
52047         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52048         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52050         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52051         math.h.
52052
52053 2007-03-25  Bruno Haible  <bruno@clisp.org>
52054
52055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52056         returns inf. Needed on IRIX 6.5.
52057
52058 2007-03-25  Bruno Haible  <bruno@clisp.org>
52059
52060         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52061         (main): Use isnanl instead of x != x idiom.
52062         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52063
52064         * tests/test-frexp.c: Include isnan.h.
52065         (main): Use isnan instead of x != x idiom.
52066         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52067
52068 2007-03-25  Bruno Haible  <bruno@clisp.org>
52069
52070         * tests/test-frexp.c (NaN): New function/macro.
52071         (main): Use it instead of 0.0 / 0.0.
52072         * tests/test-isnan.c (NaN): New function/macro.
52073         (main): Use it instead of 0.0 / 0.0.
52074         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52075         (test_function): Use it instead of 0.0 / 0.0.
52076         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52077         (test_function): Use it instead of 0.0 / 0.0.
52078         * tests/test-snprintf-posix.h (NaN): New function/macro.
52079         (test_function): Use it instead of 0.0 / 0.0.
52080         * tests/test-sprintf-posix.h (NaN): New function/macro.
52081         (test_function): Use it instead of 0.0 / 0.0.
52082         * tests/test-fprintf-posix.h (NaN): New function/macro.
52083         (test_function): Use it instead of 0.0 / 0.0.
52084         * tests/test-printf-posix.h (NaN): New function/macro.
52085         (test_function): Use it instead of 0.0 / 0.0.
52086
52087         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52088
52089 2007-03-25  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52092
52093 2007-03-25  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/regexec.c (merge_state_with_log): Make static.
52096
52097 2007-03-25  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/trigl.c (kernel_rem_pio2): Make static.
52100
52101 2007-03-25  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/sincosl.c (sincosl_table): Make static.
52104
52105 2007-03-25  Bruno Haible  <bruno@clisp.org>
52106
52107         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52108         if the compiler does not support C99.
52109
52110 2007-03-25  Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/time (Makefile.am): Ensure all rule action lines start with a
52113         tab.
52114
52115 2007-03-24  Bruno Haible  <bruno@clisp.org>
52116
52117         * modules/tsearch-tests: New file.
52118         * tests/test-tsearch.sh: New file.
52119         * tests/test-tsearch.c: New file, mostly copied from glibc.
52120
52121         * modules/search-tests: New file.
52122         * tests/test-search.c: New file.
52123
52124         * modules/search: New file.
52125         * lib/search_.h: New file, incorporating lib/tsearch.h.
52126         * m4/search_h.m4: New file.
52127         * lib/tsearch.h: Remove file.
52128         * lib/tsearch.c: Include search.h instead of tsearch.h.
52129         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52130         HAVE_TSEARCH.
52131         * modules/tsearch (Files): Remove lib/tsearch.h.
52132         (Depends-on): Add search.
52133         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52134         (Include): Change tsearch.h into search.h.
52135
52136 2007-03-24  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/fpucw: New file.
52139         * lib/fpucw.h: New file.
52140         * lib/frexp.c: Include fpucw.h.
52141         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52142         (FUNC): Use them.
52143         * lib/printf-frexp.c: Include fpucw.h.
52144         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52145         (FUNC): Use them.
52146         * lib/vasnprintf.c: Include fpucw.h.
52147         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52148         'long double' calculations.
52149         * tests/test-frexpl.c: Include fpucw.h.
52150         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52151         * tests/test-printf-frexpl.c: Include fpucw.h.
52152         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52153         * modules/frexpl (Depends-on): Add fpucw.
52154         * modules/printf-frexpl (Depends-on): Likewise.
52155         * modules/fprintf-posix (Depends-on): Likewise.
52156         * modules/snprintf-posix (Depends-on): Likewise.
52157         * modules/sprintf-posix (Depends-on): Likewise.
52158         * modules/vasnprintf-posix (Depends-on): Likewise.
52159         * modules/vasprintf-posix (Depends-on): Likewise.
52160         * modules/vfprintf-posix (Depends-on): Likewise.
52161         * modules/vsnprintf-posix (Depends-on): Likewise.
52162         * modules/vsprintf-posix (Depends-on): Likewise.
52163         * modules/frexpl-tests (Depends-on): Likewise.
52164         * modules/printf-frexpl-tests (Depends-on): Likewise.
52165
52166 2007-03-24  Bruno Haible  <bruno@clisp.org>
52167
52168         * lib/float+.h: New file.
52169         * lib/isnan.c: Include float+.h.
52170         (SIZE): New macro.
52171         (FUNC): Compare only SIZE bytes of the value.
52172         * lib/vasnprintf.c: Include float+.h.
52173         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52174         SIZEOF_LDBL or SIZEOF_DBL bytes.
52175         * modules/isnan-nolibm (Files): Add lib/float+.h.
52176         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52177         * modules/isnanl (Files): Add lib/float+.h.
52178         * modules/vasnprintf (Files): Add lib/float+.h.
52179
52180 2007-03-24  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52183         include isnanl-nolibm.h.
52184
52185 2007-03-24  Bruno Haible  <bruno@clisp.org>
52186
52187         * tests/test-read-file.c (main): Don't produce spurious output for
52188         expected situations. Make the test fail if it encountered unexpected
52189         results.
52190
52191 2007-03-24  Bruno Haible  <bruno@clisp.org>
52192
52193         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52194         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52195
52196 2007-03-24  Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52199
52200 2007-03-24  Bruno Haible  <bruno@clisp.org>
52201
52202         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52203         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52204
52205         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52206         * modules/utf8-ucs4: Turn into a symbolic link to module
52207         unistr/u8-mbtouc.
52208
52209         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52210         utf8-ucs4-unsafe.
52211         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52212         unistr/u8-mbtouc-unsafe.
52213
52214         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52215         * modules/utf16-ucs4: Turn into a symbolic link to module
52216         unistr/u16-mbtouc.
52217
52218         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52219         utf16-ucs4-unsafe.
52220         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52221         unistr/u16-mbtouc-unsafe.
52222
52223         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52224         * modules/ucs4-utf8: Turn into a symbolic link to module
52225         unistr/u8-ubtomb.
52226
52227         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52228         * modules/ucs4-utf16: Turn into a symbolic link to module
52229         unistr/u16-ubtomb.
52230
52231 2007-03-24  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52234         Enable the function only if HAVE_INLINE.
52235         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52236         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52237         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52238         Enable the function only if HAVE_INLINE.
52239         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52240         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52241         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52242         Enable the function only if HAVE_INLINE.
52243         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52244         Enable the function only if HAVE_INLINE.
52245         * modules/utf8-ucs4: Update.
52246         * modules/utf8-ucs4-unsafe: Update.
52247         * modules/utf16-ucs4: Update.
52248         * modules/utf16-ucs4-unsafe: Update.
52249         * modules/ucs4-utf8: Update.
52250         * modules/ucs4-utf16: Update.
52251
52252 2007-03-24  Bruno Haible  <bruno@clisp.org>
52253
52254         * lib/utf8-ucs4.h: Remove file.
52255         * lib/utf8-ucs4-unsafe.h: Remove file.
52256         * lib/utf16-ucs4.h: Remove file.
52257         * lib/utf16-ucs4-unsafe.h: Remove file.
52258         * lib/ucs4-utf8.h: Remove file.
52259         * lib/ucs4-utf16.h: Remove file.
52260         * lib/unistr.h: Include their previous contents.
52261         * m4/utf-ucs4.m4: Remove file.
52262         * m4/ucs4-utf.m4: Remove file.
52263         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52264         (Depends-on): Add unistr/base.
52265         (configure.ac): Remove gl_UTF_UCS4.
52266         (Makefile.am): Update.
52267         (Include): Change to unistr.h.
52268         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52269         (Depends-on): Add unistr/base.
52270         (configure.ac): Remove gl_UTF_UCS4.
52271         (Makefile.am): Update.
52272         (Include): Change to unistr.h.
52273         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52274         (Depends-on): Add unistr/base.
52275         (configure.ac): Remove gl_UTF_UCS4.
52276         (Makefile.am): Update.
52277         (Include): Change to unistr.h.
52278         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52279         (Depends-on): Add unistr/base.
52280         (configure.ac): Remove gl_UTF_UCS4.
52281         (Makefile.am): Update.
52282         (Include): Change to unistr.h.
52283         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52284         (Depends-on): Add unistr/base.
52285         (configure.ac): Remove gl_UCS4_UTF.
52286         (Makefile.am): Update.
52287         (Include): Change to unistr.h.
52288         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52289         (Depends-on): Add unistr/base.
52290         (configure.ac): Remove gl_UCS4_UTF.
52291         (Makefile.am): Update.
52292         (Include): Change to unistr.h.
52293         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52294         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52295         utf8-ucs4-unsafe.h.
52296         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52297         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52298         utf16-ucs4-unsafe.h.
52299         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52300         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52301         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52302         * lib/unistr/u8-strchr.c: Likewise.
52303         * lib/unistr/u8-strrchr.c: Likewise.
52304         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52305         * lib/unistr/u16-strchr.c: Likewise.
52306         * lib/unistr/u16-strrchr.c: Likewise.
52307         * lib/striconveh.c: Update.
52308         * lib/linebreak.c: Update.
52309
52310 2007-03-24  Bruno Haible  <bruno@clisp.org>
52311
52312         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52313         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52314
52315 2007-03-22  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52318
52319 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * MODULES.html.sh (File system functions): New module write-any-file.
52322         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52323         * m4/write-any-file.m4: New files.
52324
52325 2007-03-23  Eric Blake  <ebb9@byu.net>
52326
52327         * gnulib-tool: Rearrange space-tab sequences, since some editors
52328         like to eat them.
52329
52330 2007-03-23  Eric Blake  <ebb9@byu.net>
52331
52332         * lib/version-etc.c (version_etc_va): Update license wording to
52333         be more concise.  Recommended by Richard Stallman.
52334
52335 2007-03-22  Bruno Haible  <bruno@clisp.org>
52336
52337         * lib/poll.c (MSG_PEEK): New fallback definition.
52338
52339 2007-03-22  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52342         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52343         (main): Update.
52344         Fixes a compilation error on BeOS.
52345
52346 2007-03-22  Bruno Haible  <bruno@clisp.org>
52347
52348         * modules/frexpl-tests: New file.
52349         * tests/test-frexpl.c: New file.
52350
52351         * modules/frexpl: New file.
52352         * m4/frexpl.m4: New file.
52353         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52354         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52356         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52357         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52358         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52359
52360 2007-03-22  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/frexpl.c: Share code with lib/frexp.c.
52363         * modules/mathl (Files): Add lib/frexp.c.
52364         (Depends-on): Add isnanl-nolibm.
52365
52366 2007-03-22  Bruno Haible  <bruno@clisp.org>
52367
52368         * modules/printf-frexp (Files): Add m4/frexp.m4.
52369         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52370         only if the found frexp function actually works.
52371
52372 2007-03-22  Bruno Haible  <bruno@clisp.org>
52373
52374         * lib/frexp.c: Remove older implementation that uses divisions.
52375
52376 2007-03-21  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/frexp-tests: New file.
52379         * tests/test-frexp.c: New file.
52380
52381         * modules/frexp: New file.
52382         * lib/frexp.c: New file.
52383         * m4/frexp.m4: New file.
52384         * lib/math_.h (frexp): New declaration.
52385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52386         REPLACE_FREXP.
52387         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52388
52389 2007-03-21  Bruno Haible  <bruno@clisp.org>
52390
52391         * modules/isnanl-tests: New file.
52392         * tests/test-isnanl.c: New file.
52393
52394         * modules/isnanl: New file.
52395         * lib/isnanl.h: New file.
52396         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52397         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52398         gl_FUNC_ISNANL_WORKS.
52399         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52400         New macros.
52401
52402 2007-03-21  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52405         lib/isnanl.h.
52406         (Include): Update.
52407         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52408         * lib/vasnprintf.c: Update.
52409         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52410         tests/test-isnanl.h, remove tests/test-isnanl.c.
52411         (Makefile.am): Update.
52412         * tests/test-isnanl-nolibm.c: New file.
52413         * tests/test-isnanl.h: New file.
52414         * tests/test-isnanl.c: Remove file.
52415
52416 2007-03-21  Jim Meyering  <jim@meyering.net>
52417
52418         When trying to open ".", treat ESTALE like EACCES.
52419         * lib/savewd.c (savewd_save): Resort to forking not just upon
52420         failure with EACCES, but also when errno is ESTALE.
52421
52422 2007-03-20  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52425         Needed on AIX 5.1. Reported by Matthew Woehlke.
52426
52427 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         Suggestions by Bruno Haible:
52430         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52431         our own.
52432         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52433         * modules/acl (Depends-on): Add gettext.
52434
52435 2007-03-19  Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/iconvme: Remove file.
52438         * lib/iconvme.h: Remove file.
52439         * lib/iconvme.c: Remove file.
52440         * m4/iconvme.m4: Remove file.
52441
52442 2007-03-19  Bruno Haible  <bruno@clisp.org>
52443
52444         * doc/relocatable-maint.texi: Break long shell script line.
52445         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52446
52447 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52450         handle file_has_acl.
52451         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52452         * lib/acl.c: Move header inclusions and related macro defns into
52453         lib/acl-internal.h.
52454         (S_ISLNK): Remove defn, since that's now done for us.
52455         (file_has_acl): Move to lib/file-has-acl.c.
52456         Call acl_trivial if available.  This is the crucial part of the fix.
52457         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52458         shared within the library.  Rewrite a bit, partly to make it compatible
52459         with the GNU coding style.
52460         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52461         Remove unnecessary double-quotes.
52462         Don't test for acl_to_text; the build will catch that.
52463         Replace acl_entries if it doesn't exist and it is needed.
52464         Check for -lsec and acl_trivial (as used on Solaris 10).
52465         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52466         lib/file-has-acl.c.
52467         (Depends-on): Add sys_stat, for S_ISLNK.
52468
52469 2007-03-19  Ben Pfaff  <blp@gnu.org>
52470
52471         * doc/gnulib.texi: Fix typos.
52472         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52473
52474 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52477         If size is zero here, buf must be zero.
52478
52479 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52480
52481         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52482         <bruno@clisp.org>.
52483
52484 2007-03-18  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52487         Suggested by Eric Blake.
52488
52489 2007-03-18  Ben Pfaff  <blp@gnu.org>
52490
52491         * doc/relocatable.texi: Recommend using as prefix a directory
52492         that does not exist and will never be created.  Based on
52493         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52494         and others.
52495
52496 2007-03-17  Bruno Haible  <bruno@clisp.org>
52497
52498         * lib/fchownat.c: Include lchown.h.
52499
52500 2007-03-17  Bruno Haible  <bruno@clisp.org>
52501
52502         Fix endless loop when the given allocated size was > INT_MAX.
52503         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52504         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52505         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52506         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52507         * lib/sprintf.c (sprintf): Likewise.
52508
52509 2007-03-17  Bruno Haible  <bruno@clisp.org>
52510
52511         * tests/test-argp-2.sh (func_compare): Output a context diff.
52512
52513 2007-03-17  Bruno Haible  <bruno@clisp.org>
52514
52515         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52516         locale's decimal-point character.
52517
52518 2007-03-17  Bruno Haible  <bruno@clisp.org>
52519
52520         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52521         before comparing it. Needed because on some platforms (e.g. x86) a
52522         'long double' occupies less bytes than sizeof (long double).
52523
52524 2007-03-17  Bruno Haible  <bruno@clisp.org>
52525
52526         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52527         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52528         * tests/test-getaddrinfo.c (simple): Likewise.
52529         * tests/test-read-file.c (main): Likewise.
52530
52531 2007-03-17  Bruno Haible  <bruno@clisp.org>
52532
52533         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52534
52535 2007-03-17  Bruno Haible  <bruno@clisp.org>
52536
52537         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52538         unused variable.
52539
52540 2007-03-17  Bruno Haible  <bruno@clisp.org>
52541
52542         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52543         * tests/test-c-strncasecmp.c: Likewise.
52544
52545 2007-03-17  Bruno Haible  <bruno@clisp.org>
52546
52547         * modules/stdlib (Depends-on): Add unistd.
52548         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52549         Needed for MacOS X 10.3.
52550
52551 2007-03-17  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52554
52555 2007-03-17  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52558
52559 2007-03-17  Bruno Haible  <bruno@clisp.org>
52560
52561         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52562         to reflect files copied from gnulib (with or without modifications).
52563         Suggested by Jim Meyering.
52564
52565 2007-03-17  Eric Blake  <ebb9@byu.net>
52566
52567         * NEWS: Document stdlib change from 2007-02-18.
52568
52569 2007-03-17  Jim Meyering  <jim@meyering.net>
52570
52571         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52572         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52573         someone uses a name containing shell meta-characters.
52574         Reported by Alfred M. Szmidt.
52575
52576         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52577
52578 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52579
52580         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52581         and copy gettext configuration files only if configure.ac contains
52582         a use of AM_GNU_GETTEXT_VERSION.
52583
52584 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52585
52586         * build-aux/bootstrap (gnulib_name): New variable.
52587         (gnulib_tool_options): Use it.
52588
52589 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52590
52591         * tests/test-des.c: Use new namespace.
52592
52593 2007-03-15  Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52596         Reported by James Youngman <jay@gnu.org>.
52597
52598 2007-03-15  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52601         declared prototype. Needed with cc on OSF/1 5.1.
52602
52603 2007-03-15  Bruno Haible  <bruno@clisp.org>
52604
52605         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52606         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52607         (struct gl_list_implementation): Add dispose_fn argument to the
52608         'create_empty', 'create' methods.
52609         (struct gl_list_impl_base): Add field 'dispose_fn'.
52610         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52611         argument.
52612         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52613         dispose_fn argument.
52614         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52615         dispose_fn on the dropped values.
52616         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52617         dispose_fn argument.
52618         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52619         dropped values.
52620         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52621         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52622         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52623         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52624         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52625         argument.
52626         (gl_tree_list_free): Call dispose_fn on the dropped values.
52627         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52628         the dropped values.
52629         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52630         Add dispose_fn argument.
52631         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52632         Call dispose_fn on the dropped values.
52633         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52634         Add dispose_fn argument.
52635         (gl_sublist_create): Initialize the 'dispose_fn' field.
52636         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52637         * tests/test-array_list.c (main): Update.
52638         * tests/test-carray_list.c (main): Update.
52639         * tests/test-avltree_list.c (main): Update.
52640         * tests/test-rbtree_list.c (main): Update.
52641         * tests/test-avltreehash_list.c (main): Update.
52642         * tests/test-rbtreehash_list.c (main): Update.
52643         * tests/test-linked_list.c (main): Update.
52644         * tests/test-linkedhash_list.c (main): Update.
52645         * tests/test-array_oset.c (main): Update.
52646
52647 2007-03-15  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52650         (gl_oset_create_empty): Add dispose_fn argument.
52651         (struct gl_oset_implementation): Add dispose_fn argument to
52652         'create_empty' method.
52653         (struct gl_oset_impl_base): Add dispose_fn field.
52654         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52655         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52656         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52657         values.
52658         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52659         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52660         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52661         dropped value.
52662         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52663         dropped value.
52664         * tests/test-array_oset.c (main): Update.
52665         * tests/test-avltree_oset.c (main): Update.
52666         * tests/test-rbtree_oset.c (main): Update.
52667         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52668
52669 2007-03-13  Bruno Haible  <bruno@clisp.org>
52670
52671         * tests/test-stdbool.c (i): Update after last patch.
52672
52673 2007-03-12  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52676         the iswprint macro. Needed on Solaris 2.5.1.
52677
52678 2007-03-12  Bruno Haible  <bruno@clisp.org>
52679
52680         * tests/test-printf-frexp.c (main): Declare x as volatile.
52681
52682 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52683
52684         * doc/gnulib.texi (Build robot for gnulib): New section.
52685
52686 2007-03-12  Jim Meyering  <jim@meyering.net>
52687
52688         * build-aux/bootstrap: New file.
52689         * build-aux/bootstrap.conf: New file, from coreutils.
52690
52691 2007-03-11  Bruno Haible  <bruno@clisp.org>
52692
52693         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52694
52695 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52696
52697         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52698         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52699         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52700
52701 2007-03-11  Bruno Haible  <bruno@clisp.org>
52702
52703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52704         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52705
52706 2007-03-11  Bruno Haible  <bruno@clisp.org>
52707
52708         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52709         formula. Needed for SunPRO C 5.0.
52710
52711 2007-03-11  Bruno Haible  <bruno@clisp.org>
52712
52713         * modules/long-options (Depends-on): Add getopt.
52714
52715 2007-03-11  Bruno Haible  <bruno@clisp.org>
52716
52717         * modules/modechange (Depends-on): Add stdbool.
52718
52719 2007-03-11  Bruno Haible  <bruno@clisp.org>
52720
52721         * modules/i-ring (Depends-on): Add stdbool.
52722
52723 2007-03-11  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/gc-des (Depends-on): Add stdbool.
52726
52727 2007-03-11  Bruno Haible  <bruno@clisp.org>
52728
52729         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52730
52731 2007-03-11  Bruno Haible  <bruno@clisp.org>
52732
52733         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52734
52735 2007-03-11  Bruno Haible  <bruno@clisp.org>
52736
52737         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52738
52739 2007-03-11  Bruno Haible  <bruno@clisp.org>
52740
52741         * lib/vasnprintf.c (sprintf): Undefine.
52742
52743 2007-03-11  Bruno Haible  <bruno@clisp.org>
52744
52745         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52746         initializers in SunPRO C and Compaq C compilers.
52747
52748 2007-03-11  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52751         decrementing code ANSI C compliant.
52752
52753 2007-03-11  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52756         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52757
52758 2007-03-11  Bruno Haible  <bruno@clisp.org>
52759
52760         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52761         <stdbool.h> substitute doesn't pass.
52762
52763 2007-03-11  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52766
52767 2007-03-11  Bruno Haible  <bruno@clisp.org>
52768
52769         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52770         script, for submission to autobuild.josefsson.org.
52771
52772 2007-03-10  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/canonicalize-lgpl-tests: New file.
52775         * tests/test-canonicalize-lgpl.sh: New file.
52776         * tests/test-canonicalize-lgpl.c: New file.
52777
52778         * modules/c-strcase-tests: New file.
52779         * tests/test-c-strcase.sh: New file.
52780         * tests/test-c-strcasecmp.c: New file.
52781         * tests/test-c-strncasecmp.c: New file.
52782
52783         * modules/atexit-tests: New file.
52784         * tests/test-atexit.sh: New file.
52785         * tests/test-atexit.c: New file.
52786
52787 2007-03-10  Bruno Haible  <bruno@clisp.org>
52788
52789         * tests/test-binary-io.sh: Use temporary filenames that are not so
52790         likely to clash with those of other tests (in a parallel make).
52791         * tests/test-binary-io.c: Likewise.
52792
52793 2007-03-10  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52796         fallback; use #error instead.
52797         Suggested by Simon Josefsson.
52798
52799 2007-03-10  Bruno Haible  <bruno@clisp.org>
52800
52801         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52802         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52803         first and the last.
52804
52805 2007-03-10  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52808
52809 2007-03-10  Bruno Haible  <bruno@clisp.org>
52810
52811         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52812         "make distcheck".
52813         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52814         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52815         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52816
52817 2007-03-10  Bruno Haible  <bruno@clisp.org>
52818
52819         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52820         variable.
52821         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52822         variable.
52823
52824 2007-03-09  Eric Blake  <ebb9@byu.net>
52825         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52826
52827         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52828         types are not being provided by gnulib.
52829         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52830         types are supported.
52831
52832 2007-03-10  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/stdio_.h (__attribute__): New macro.
52835         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52836         vsprintf): Specify __attribute__ __format__ for GCC.
52837         Suggested by Eric Blake.
52838
52839 2007-03-09  Bruno Haible  <bruno@clisp.org>
52840
52841         * modules/printf-posix-tests: New file.
52842         * tests/test-printf-posix.sh: New file.
52843         * tests/test-printf-posix.c: New file.
52844
52845         * modules/printf-posix: New file.
52846         * lib/printf.c: New file.
52847         * m4/printf-posix-rpl.m4: New file.
52848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52849         REPLACE_PRINTF.
52850         * lib/stdio_.h (printf): New declaration.
52851         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52852         ____strfmon____): New macros.
52853         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52854         REPLACE_PRINTF.
52855
52856 2007-03-09  Bruno Haible  <bruno@clisp.org>
52857
52858         * tests/test-vasnprintf-posix2.sh: New file.
52859         * tests/test-vasnprintf-posix2.c: New file.
52860         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52861         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52862         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52863
52864         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52865         a locale dependent decimal point, rather than always '.'.
52866
52867 2007-03-09  Eric Blake  <ebb9@byu.net>
52868
52869         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52870         spite of platforms like Tandem/NSK that define it to -1.
52871
52872 2007-03-08  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/vprintf-posix-tests: New file.
52875         * tests/test-vprintf-posix.sh: New file.
52876         * tests/test-vprintf-posix.c: New file.
52877         * tests/test-printf-posix.h: New file.
52878
52879         * modules/vprintf-posix: New file.
52880         * lib/vprintf.c: New file.
52881         * m4/vprintf-posix.m4: New file.
52882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52883         REPLACE_VPRINTF.
52884         * lib/stdio_.h (vprintf): New declaration.
52885         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52886         REPLACE_VPRINTF.
52887
52888 2007-03-08  Bruno Haible  <bruno@clisp.org>
52889
52890         * modules/fprintf-posix-tests: New file.
52891         * tests/test-fprintf-posix.sh: New file.
52892         * tests/test-fprintf-posix.c: New file.
52893
52894         * modules/fprintf-posix: New file.
52895         * lib/fprintf.c: New file.
52896         * m4/fprintf-posix.m4: New file.
52897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52898         REPLACE_FPRINTF.
52899         * lib/stdio_.h (fprintf): New declaration.
52900         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52901         REPLACE_FPRINTF.
52902
52903 2007-03-08  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/vfprintf-posix-tests: New file.
52906         * tests/test-vfprintf-posix.sh: New file.
52907         * tests/test-vfprintf-posix.c: New file.
52908         * tests/test-fprintf-posix.h: New file.
52909         * tests/test-fprintf-posix.out: New file.
52910
52911         * modules/vfprintf-posix: New file.
52912         * lib/vfprintf.c: New file.
52913         * m4/vfprintf-posix.m4: New file.
52914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52915         REPLACE_VFPRINTF.
52916         * lib/stdio_.h (vfprintf): New declaration.
52917         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52918         REPLACE_VFPRINTF.
52919
52920 2007-03-08  Bruno Haible  <bruno@clisp.org>
52921
52922         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52923
52924 2007-03-08  Bruno Haible  <bruno@clisp.org>
52925
52926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52927         instead of 'expr' invocations.
52928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52933         Suggested by Paul Eggert.
52934
52935 2007-03-08  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/fseterr-tests: New file.
52938         * tests/test-fseterr.c: New file.
52939
52940         * modules/fseterr: New file.
52941         * lib/fseterr.h: New file.
52942         * lib/fseterr.c: New file.
52943
52944 2007-03-08  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52947         * lib/getopt_.h: Likewise.
52948         * lib/mbswidth.h: Likewise.
52949         * lib/setenv.h: Likewise.
52950         * lib/vasnprintf.h: Likewise.
52951         * lib/vasprintf.h: Likewise.
52952         * lib/verror.h: Likewise.
52953         * lib/xsetenv.h: Likewise.
52954         * lib/xvasprintf.h: Likewise.
52955
52956 2007-03-08  Jim Meyering  <jim@meyering.net>
52957
52958         * users.txt: Add parted.
52959
52960         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52961
52962 2007-03-07  Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/printf.m4: Make the shell script snippets copy&pastable.
52965
52966 2007-03-02  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/netinet_in_.h: New file.
52969         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52970         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52971         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52972         (Depends-on): Add absolute-header.
52973         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52974         into netinet/in.h.
52975
52976 2007-03-03  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/sys_select_.h: New file.
52979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52980         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52981         * modules/sys_select (Files): Add lib/sys_select_.h.
52982         (Depends-on): Add absolute-header.
52983         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52984         into sys/select.h.
52985
52986 2007-03-02  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52989         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52990         values.
52991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52992         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52993         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52994         * modules/sys_socket (Depends-on): Add absolute-header.
52995         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52996         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52997         (Include): Remove requirement of inclusion of <sys/types.h>.
52998
52999 2007-03-02  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/byteswap_.h (bswap_32): Fix formula.
53002
53003 2007-03-06  Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/sprintf-posix-tests: New file.
53006         * tests/test-sprintf-posix.c: New file.
53007
53008         * modules/sprintf-posix: New file.
53009         * lib/sprintf.c: New file.
53010         * m4/sprintf-posix.m4: New file.
53011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53012         REPLACE_SPRINTF.
53013         * lib/stdio_.h (sprintf): New declaration.
53014         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53015         REPLACE_SPRINTF.
53016
53017 2007-03-06  Bruno Haible  <bruno@clisp.org>
53018
53019         * modules/vsprintf-posix-tests: New file.
53020         * tests/test-vsprintf-posix.c: New file.
53021         * tests/test-sprintf-posix.h: New file.
53022
53023         * modules/vsprintf-posix: New file.
53024         * lib/vsprintf.c: New file.
53025         * m4/vsprintf-posix.m4: New file.
53026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53027         REPLACE_VSPRINTF.
53028         * lib/stdio_.h (vsprintf): New declaration.
53029         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53030         REPLACE_VSPRINTF.
53031
53032 2007-03-06  Bruno Haible  <bruno@clisp.org>
53033
53034         * modules/vsnprintf (Depend-on): Remove minmax.
53035
53036 2007-03-06  Bruno Haible  <bruno@clisp.org>
53037
53038         * modules/snprintf-posix-tests: New file.
53039         * tests/test-snprintf-posix.c: New file.
53040
53041         * modules/snprintf-posix: New file.
53042         * m4/snprintf-posix.m4: New file.
53043         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53044         gl_FUNC_SNPRINTF.
53045         (gl_FUNC_SNPRINTF): Invoke it.
53046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53047         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53048         is set.
53049         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53050
53051 2007-03-06  Bruno Haible  <bruno@clisp.org>
53052
53053         * modules/vsnprintf-posix-tests: New file.
53054         * tests/test-vsnprintf-posix.c: New file.
53055         * tests/test-snprintf-posix.h: New file.
53056
53057         * modules/vsnprintf-posix: New file.
53058         * m4/vsnprintf-posix.m4: New file.
53059         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53060         gl_FUNC_VSNPRINTF.
53061         (gl_FUNC_VSNPRINTF): Invoke it.
53062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53063         * lib/stdio_.h (vsnprintf): Define as a replacement if
53064         REPLACE_VSNPRINTF is set.
53065         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53066
53067 2007-03-06  Bruno Haible  <bruno@clisp.org>
53068
53069         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53071
53072 2007-03-06  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53075         (asinl): Declare also if HAVE_DECL_ASINL is set.
53076         (atanl): Declare also if HAVE_DECL_ATANL is set.
53077         (ceill): Declare also if HAVE_DECL_CEILL is set.
53078         (cosl): Declare also if HAVE_DECL_COSL is set.
53079         (expl): Declare also if HAVE_DECL_EXPL is set.
53080         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53081         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53082         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53083         (logl): Declare also if HAVE_DECL_LOGL is set.
53084         (sinl): Declare also if HAVE_DECL_SINL is set.
53085         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53086         (tanl): Declare also if HAVE_DECL_TANL is set.
53087         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53090         declaration of frexpl, ldexpl.
53091         * modules/printf-frexpl (Depends-on): Add math.
53092         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53093
53094 2007-03-05  Bruno Haible  <bruno@clisp.org>
53095
53096         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53097         frexpl and ldexpl are declared.
53098         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53099
53100 2007-03-05  Bruno Haible  <bruno@clisp.org>
53101
53102         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53103         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53104
53105 2007-03-05  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/stdio_.h: Include <stddef.h>.
53108
53109 2007-03-05  Bruno Haible  <bruno@clisp.org>
53110
53111         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53112
53113 2007-03-05  Bruno Haible  <bruno@clisp.org>
53114
53115         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53116         NetBSD 4, from Ralf Wildenhues.
53117
53118 2007-03-04  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/vasprintf.h: Update #if logic for the case when the functions
53121         exist but are overridden.
53122
53123 2007-03-04  Bruno Haible  <bruno@clisp.org>
53124
53125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53126         implementations: glibc-2.4 and MacOS X 10.3.
53127         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53128         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53129         * tests/test-vasprintf-posix.c (test_function): Likewise.
53130
53131 2007-03-04  Bruno Haible  <bruno@clisp.org>
53132
53133         * modules/vasprintf-posix-tests: New file.
53134         * tests/test-vasprintf-posix.c: New file.
53135
53136         * modules/vasprintf-posix: New file.
53137         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53138         defined.
53139         * m4/vasprintf-posix.m4: New file.
53140         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53141         gl_FUNC_VASPRINTF.
53142         (gl_FUNC_VASPRINTF): Invoke it.
53143         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53144         here.
53145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53146
53147 2007-03-04  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53150         REPLACE_GETTIMEOFDAY.
53151         * modules/sys_time (Makefile.am): Likewise.
53152         * m4/sys_time_h.m4: Likewise.
53153         * m4/gettimeofday.m4: Likewise.
53154
53155 2007-03-04  Bruno Haible  <bruno@clisp.org>
53156
53157         * modules/vasnprintf-posix-tests: New file.
53158         * tests/test-vasnprintf-posix.c: New file.
53159
53160         * modules/vasnprintf-posix: New file.
53161         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53162         printf-frexpl.h.
53163         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53164         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53165         REPLACE_VASNPRINTF is defined.
53166         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53167         gl_FUNC_VASNPRINTF.
53168         (gl_FUNC_VASNPRINTF): Invoke it.
53169         * m4/vasnprintf-posix.m4: New file.
53170         * m4/printf.m4: New file.
53171
53172 2007-03-04  Bruno Haible  <bruno@clisp.org>
53173
53174         Compile progreloc.c only if --enable-relocatable is specified.
53175         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53176         if --enable-relocatable was specified.
53177         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53178         lib_SOURCES.
53179
53180 2007-03-04  Jim Meyering  <jim@meyering.net>
53181
53182         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53183         Use it consistently, rather than enumerating errno constants.
53184
53185 2007-03-04  Bruno Haible  <bruno@clisp.org>
53186
53187         * modules/xvasprintf-tests: New file.
53188         * tests/test-xvasprintf.c: New file.
53189
53190         * modules/vasprintf-tests: New file.
53191         * tests/test-vasprintf.c: New file.
53192
53193         * modules/vasnprintf-tests: New file.
53194         * tests/test-vasnprintf.c: New file.
53195
53196         * modules/vsnprintf-tests: New file.
53197         * tests/test-vsnprintf.c: New file.
53198
53199         * modules/snprintf-tests: New file.
53200         * tests/test-snprintf.c: New file.
53201
53202 2007-03-04  Bruno Haible  <bruno@clisp.org>
53203
53204         Compile relocatable.c only if --enable-relocatable is specified.
53205         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53206         gl_RELOCATABLE_LIBRARY.
53207         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53208         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53209         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53210         gl_RELOCATABLE_LIBRARY.
53211         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53212         (Makefile.am): Remove lib_SOURCES.
53213         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53214         gl_RELOCATABLE_LIBRARY.
53215         (Makefile.am): Remove lib_SOURCES.
53216         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53217         always.
53218         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53219         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53220
53221 2007-03-04  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/argmatch-tests: New file.
53224         * tests/test-argmatch.c: New file.
53225
53226         * tests/test-allocsa.c (main): Halve the number of loop runs.
53227
53228         * modules/alloca-opt-tests: New file.
53229         * tests/test-alloca-opt.c: New file.
53230
53231 2007-03-04  Jim Meyering  <jim@meyering.net>
53232
53233         Work around difference between Linux ACLs and Solaris 10 ZFS.
53234         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53235         for EINVAL.
53236
53237 2007-03-03  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/relocatable-prog (Depends-on): Add back progreloc's
53240         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53241
53242 2007-03-03  Bruno Haible  <bruno@clisp.org>
53243
53244         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53245         * modules/relocatable-lib: New file.
53246
53247 2007-03-03  Bruno Haible  <bruno@clisp.org>
53248
53249         * modules/relocatable-prog: Renamed from modules/relocatable.
53250         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53251
53252 2007-03-03  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53255         m4/relocatable-lib.m4.
53256         (Depends-on): Remove 'relocatable'.
53257         (configure.ac): Add gl_RELOCATABLE_NOP.
53258
53259 2007-03-03  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/relocatable-prog-wrapper: New file.
53262         * modules/relocatable (Depends-on): Add it. Remove all other
53263         dependencies except progname.
53264         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53265
53266         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53267         (gl_FUNC_STRERROR): Nop.
53268         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53269
53270         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53271         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53272
53273         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53274         (gl_FUNC_READLINK): Update.
53275
53276         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53277
53278 2007-03-03  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53281         * modules/xreadlink (Depends-on): Add unistd.
53282         * modules/xreadlink-with-size (Depends-on): Likewise.
53283
53284 2007-03-03  Bruno Haible  <bruno@clisp.org>
53285
53286         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53287         extracted from gt_FUNC_SETENV.
53288         (gt_FUNC_SETENV): Remove macro.
53289         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53290         remove gt_FUNC_SETENV.
53291
53292 2007-03-03  Bruno Haible  <bruno@clisp.org>
53293
53294         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53295         ENABLE_RELOCATABLE here.
53296         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53297
53298 2007-03-03  Bruno Haible  <bruno@clisp.org>
53299
53300         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53301         * tests/test-rbtreehash_list.c: Include progname.h.
53302         (main): Call set_program_name.
53303
53304         * modules/rbtree-oset-tests (Depends-on): Add progname.
53305         * tests/test-rbtree_oset.c: Include progname.h.
53306         (main): Call set_program_name.
53307
53308         * modules/rbtree-list-tests (Depends-on): Add progname.
53309         * tests/test-rbtree_list.c: Include progname.h.
53310         (main): Call set_program_name.
53311
53312         * modules/linked-list-tests (Depends-on): Add progname.
53313         * tests/test-linked_list.c: Include progname.h.
53314         (main): Call set_program_name.
53315
53316 2007-03-03  Bruno Haible  <bruno@clisp.org>
53317
53318         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53319         All uses of __restrict changed to _Restrict_.
53320         * lib/glob_.h (__restrict): Remove macro.
53321
53322 2007-03-02  Bruno Haible  <bruno@clisp.org>
53323
53324         * modules/gettext (configure.ac): Require gettext infrastructure
53325         from version 0.16.1.
53326
53327 2007-03-02  Bruno Haible  <bruno@clisp.org>
53328
53329         * modules/linkedhash-list-tests (Depends-on): Add progname.
53330         * tests/test-linkedhash_list.c: Include progname.h.
53331         (main): Call set_program_name.
53332
53333         * modules/carray-list-tests (Depends-on): Add progname.
53334         * tests/test-carray_list.c: Include progname.h.
53335         (main): Call set_program_name.
53336
53337         * modules/avltreehash-list-tests (Depends-on): Add progname.
53338         * tests/test-avltreehash_list.c: Include progname.h.
53339         (main): Call set_program_name.
53340
53341         * modules/avltree-oset-tests (Depends-on): Add progname.
53342         * tests/test-avltree_oset.c: Include progname.h.
53343         (main): Call set_program_name.
53344
53345         * modules/avltree-list-tests (Depends-on): Add progname.
53346         * tests/test-avltree_list.c: Include progname.h.
53347         (main): Call set_program_name.
53348
53349         * modules/array-oset-tests (Depends-on): Add progname.
53350         * tests/test-array_oset.c: Include progname.h.
53351         (main): Call set_program_name.
53352
53353         * modules/array-list-tests (Depends-on): Add progname.
53354         * tests/test-array_list.c: Include progname.h.
53355         (main): Call set_program_name.
53356
53357         * modules/argp-tests (Depends-on): Add progname.
53358         * tests/test-argp.c: Include argp.h first. Include progname.h.
53359         (main): Call set_program_name.
53360
53361 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53362
53363         * doc/gnulib-tool.texi (Initial import): Reword description of
53364         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53365         limited effect even if defined after the first system include.
53366
53367 2007-03-01  Bruno Haible  <bruno@clisp.org>
53368
53369         * build-aux/config.libpath: Update to libtool-1.5.22.
53370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53371
53372 2007-03-01  Bruno Haible  <bruno@clisp.org>
53373
53374         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53375         foo_CFLAGS.
53376         Reported by Ralf Wildenhues.
53377
53378 2007-03-01  Bruno Haible  <bruno@clisp.org>
53379
53380         * build-aux/install-reloc: Remove object files left over by some
53381         compilers.
53382         Reported by Ralf Wildenhues.
53383
53384 2007-03-01  Bruno Haible  <bruno@clisp.org>
53385
53386         * build-aux/install-reloc: Break long lines.
53387
53388 2007-03-01  Bruno Haible  <bruno@clisp.org>
53389
53390         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53391         Reported by Ralf Wildenhues.
53392
53393 2007-03-01  Bruno Haible  <bruno@clisp.org>
53394
53395         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53396         include ordering constraints.
53397
53398 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53402         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53403         as another example.
53404         * lib/time_.h: Fix misspelling.
53405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53406         Require gl_HEADER_TIME_H_DEFAULTS.
53407         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53408         * m4/time_r.m4 (gl_TIME_R): Likewise.
53409         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53410
53411 2007-03-01  Bruno Haible  <bruno@clisp.org>
53412
53413         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53414         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53415
53416 2007-03-01  Jim Meyering  <jim@meyering.net>
53417
53418         * modules/xreadlink (Maintainer): Add my name.
53419         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53420
53421 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53422             Bruno Haible  <bruno@clisp.org>
53423
53424         * build-aux/install-reloc: Compile also c-ctype.c.
53425         * build-aux/relocatable.sh.in: New file.
53426         * doc/relocatable.texi: New file.
53427         * doc/relocatable-maint.texi: New file.
53428         * doc/gnulib.texi: Include relocatable-maint.texi.
53429         * lib/progreloc.c: Include unistd.h unconditionally.
53430         * lib/relocwrapper.c: Include unistd.h unconditionally.
53431         Include c-ctype.h.
53432         (add_dotbin): Use c_tolower.
53433         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53434         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53435         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53436         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53437         to m4/relocatable-lib.m4.
53438         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53439         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53440         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53441         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53442         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53443         * modules/relocatable: New file.
53444         * modules/relocatable-lib: New file.
53445         * modules/relocatable-script: New file.
53446
53447 2007-02-28  Bruno Haible  <bruno@clisp.org>
53448
53449         Import --enable-relocatable infrastructure.
53450         * build-aux/config.libpath: New file, from GNU gettext.
53451         * build-aux/install-reloc: New file, from GNU gettext.
53452         * build-aux/reloc-ldflags: New file, from GNU gettext.
53453         * lib/relocatable.h: New file, from GNU gettext.
53454         * lib/relocatable.c: New file, from GNU gettext.
53455         * lib/relocwrapper.c: New file, from GNU gettext.
53456         * m4/relocatable.m4: New file, from GNU gettext.
53457
53458 2007-02-28  Bruno Haible  <bruno@clisp.org>
53459
53460         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53461
53462         * modules/xreadlink: New file, from GNU gettext with modifications.
53463         * lib/xreadlink.c: New file, from GNU gettext.
53464         * lib/xreadlink.h: Add comments.
53465         (xreadlink): New declaration.
53466
53467         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53468         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53469         lib/xreadlink-with-size.c.
53470         (configure.ac): Remove gl_XREADLINK invocation.
53471         (Makefile.am): Augment lib_SOURCES.
53472         * m4/xreadlink.m4: Remove file.
53473         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53474         (xreadlink_with_size): Renamed from xreadink.
53475         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53476         * modules/canonicalize (Depends-on): Replace xreadlink with
53477         xreadlink-with-size.
53478         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53479
53480 2007-02-25  Jim Meyering  <jim@meyering.net>
53481
53482         * build-aux/announce-gen: When complaining about excess arguments,
53483         list them.
53484
53485 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53486
53487         * README: Document signed integer overflow situation more
53488         accurately.
53489
53490 2007-02-25  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53493         'a' or 'A' conversion.
53494
53495 2007-02-25  Bruno Haible  <bruno@clisp.org>
53496
53497         * modules/filename: Renamed from modules/pathname.
53498         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53499         lib/concatpath.c with lib/concat-filename.c.
53500         (Makefile.am): Update.
53501         (Include): Replace pathname.h with filename.h.
53502         * lib/filename.h: Renamed from lib/pathname.h.
53503         (concatenated_filename): Renamed from concatenated_pathname.
53504         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53505         (concatenated_filename): Renamed from concatenated_pathname.
53506         * lib/findprog.c: Include filename.h instead of pathname.h.
53507         (find_in_path): Update.
53508         * lib/javacomp.c: Include filename.h instead of pathname.h.
53509         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53510         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53511         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53512         is_oldgcj_14_13_usable, is_javac_usable): Update.
53513         * lib/javaexec.c: Include filename.h instead of pathname.h.
53514         (execute_java_class): Update.
53515         * modules/findprog: Update.
53516         * modules/javacomp: Update.
53517         * modules/javaexec: Update.
53518         * MODULES.html.sh (File system functions): Add 'filename', remove
53519         'pathname'.
53520
53521 2007-02-25  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/printf-frexpl-tests: New file.
53524         * tests/test-printf-frexpl.c: New file.
53525
53526         * modules/printf-frexpl: New file.
53527         * lib/printf-frexpl.h: New file.
53528         * lib/printf-frexpl.c: New file.
53529         * m4/printf-frexpl.m4: New file.
53530
53531 2007-02-25  Bruno Haible  <bruno@clisp.org>
53532
53533         * modules/printf-frexp-tests: New file.
53534         * tests/test-printf-frexp.c: New file.
53535
53536         * modules/printf-frexp: New file.
53537         * lib/printf-frexp.h: New file.
53538         * lib/printf-frexp.c: New file.
53539         * m4/printf-frexp.m4: New file.
53540
53541 2007-02-25  Bruno Haible  <bruno@clisp.org>
53542
53543         Assume automake >= 1.10 for the tests.
53544         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53545         * modules/arctwo-tests: Likewise.
53546         * modules/argp-tests: Likewise.
53547         * modules/avltree-list-tests: Likewise.
53548         * modules/avltree-oset-tests: Likewise.
53549         * modules/avltreehash-list-tests: Likewise.
53550         * modules/carray-list-tests: Likewise.
53551         * modules/crc-tests: Likewise.
53552         * modules/des-tests: Likewise.
53553         * modules/gc-arcfour-tests: Likewise.
53554         * modules/gc-arctwo-tests: Likewise.
53555         * modules/gc-des-tests: Likewise.
53556         * modules/gc-hmac-md5-tests: Likewise.
53557         * modules/gc-hmac-sha1-tests: Likewise.
53558         * modules/gc-md2-tests: Likewise.
53559         * modules/gc-md4-tests: Likewise.
53560         * modules/gc-md5-tests: Likewise.
53561         * modules/gc-pbkdf2-sha1-tests: Likewise.
53562         * modules/gc-rijndael-tests: Likewise.
53563         * modules/gc-sha1-tests: Likewise.
53564         * modules/gc-tests: Likewise.
53565         * modules/getaddrinfo-tests: Likewise.
53566         * modules/hmac-md5-tests: Likewise.
53567         * modules/hmac-sha1-tests: Likewise.
53568         * modules/linked-list-tests: Likewise.
53569         * modules/linkedhash-list-tests: Likewise.
53570         * modules/lock-tests: Likewise.
53571         * modules/md2-tests: Likewise.
53572         * modules/md4-tests: Likewise.
53573         * modules/md5-tests: Likewise.
53574         * modules/rbtree-list-tests: Likewise.
53575         * modules/rbtree-oset-tests: Likewise.
53576         * modules/rbtreehash-list-tests: Likewise.
53577         * modules/read-file-tests: Likewise.
53578         * modules/rijndael-tests: Likewise.
53579         * modules/stdint-tests: Likewise.
53580         * modules/tls-tests: Likewise.
53581
53582 2007-02-24  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53585         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53586         function; instead check whether isnan with a double argument links.
53587         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53588         function; instead check whether isnan with a 'long double' argument
53589         links.
53590         Reported by Eric Blake <ebb9@byu.net>.
53591
53592 2007-02-24  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53595         defined.
53596         * lib/isnanl.c: Remove all code. Just include isnan.c.
53597         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53598
53599 2007-02-25  Jim Meyering  <jim@meyering.net>
53600
53601         Avoid conflicting types for 'unsetenv' on FreeBSD.
53602         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53603         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53604         in stdlib.h.
53605
53606 2007-02-24  Bruno Haible  <bruno@clisp.org>
53607
53608         * modules/isnanl-nolibm-tests: New file.
53609         * tests/test-isnanl.c: New file.
53610
53611         * modules/isnanl-nolibm: New file.
53612         * lib/isnanl.h: New file.
53613         * lib/isnanl.c: New file.
53614         * m4/isnanl.m4: New file.
53615
53616 2007-02-24  Bruno Haible  <bruno@clisp.org>
53617
53618         * modules/isnan-nolibm-tests: New file.
53619         * tests/test-isnan.c: New file.
53620
53621         * modules/isnan-nolibm: New file.
53622         * lib/isnan.h: New file.
53623         * lib/isnan.c: New file.
53624         * m4/isnan.m4: New file.
53625
53626 2007-02-24  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53629         assume that an exponent fits in 20 bits.
53630
53631 2007-02-24  Jim Meyering  <jim@meyering.net>
53632
53633         * m4/regex.m4: Update the description of the configure-time option,
53634         --without-included-regex, to state accurately what the defaults are,
53635         and perhaps to give people an idea why using this option is risky.
53636
53637 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53640         loops on small arguments.  This attempts to avoid the problem
53641         Bruno Haible reported for AIX 4.3.2 in
53642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53643
53644 2007-02-23  Bruno Haible  <bruno@clisp.org>
53645
53646         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53647         Needed for help2man.
53648
53649 2007-02-23  Karl Berry  <karl@gnu.org>
53650
53651         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53652         exists, foo.h should be cvs-ignored, not committed.
53653
53654 2007-02-23  Eric Blake  <ebb9@byu.net>
53655
53656         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53657         * lib/stat-time.h (includes): Likewise.
53658         * lib/utimecmp.c (includes): Likewise.
53659         * lib/utimens.h (includes): Likewise.
53660         * lib/getdate.y (includes): Also include "timespec.h" for use
53661         internal to the module.
53662         * modules/utimens (Depends-on): Revert yesterday's patch.
53663         * modules/nanosleep (Depends-on): Add missing dependency.
53664
53665 2007-02-22  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/glob.c: Don't include getlogin_r.h.
53668
53669 2007-02-22  Jim Meyering  <jim@meyering.net>
53670
53671         * modules/utimens (Depends-on): Add timespec, required for
53672         utimens.h's inclusion of timespec.h.
53673
53674 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53677         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53678         Schwab in
53679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53680         I'll try to think of a better way to fix the Solaris problem.
53681
53682         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53683         like glibc; on Solaris 10, it fails with errno == EINVAL.
53684         POSIX says the behavior is unspecified if the first argument is NULL,
53685         so play it safe and never pass NULL to the system getcwd.
53686
53687 2007-02-21  Jim Meyering  <jim@meyering.net>
53688
53689         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53690         of gettimeofday.  It would conflict with the one now always
53691         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53692         an IRIX 6.5 build failure.
53693
53694 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53695
53696         Minor fixups to port to Solaris 10 with Sun C 5.8.
53697         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53698         * modules/getcwd (Depends-on): Add dirfd.
53699         * lib/putenv.c (putenv): #undef it.
53700         (rpl_putenv): New decl.
53701         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53702
53703 2007-02-20  Bruno Haible  <bruno@clisp.org>
53704
53705         * modules/stdio-tests: New file.
53706         * tests/test-stdio.c: New file.
53707
53708         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53709         (Depends-on): Add stdio.
53710         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53711         (Include): Use <stdio.h> instead of vsnprintf.h.
53712         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53713         HAVE_DECL_VSNPRINTF.
53714         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53715
53716         * modules/snprintf (Files): Remove lib/snprintf.h.
53717         (Depends-on): Add stdio.
53718         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53719         (Include): Use <stdio.h> instead of snprintf.h.
53720         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53721         HAVE_DECL_SNPRINTF.
53722         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53723         * lib/getaddrinfo.c: Likewise.
53724
53725         * modules/stdio: New file.
53726         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53727         * lib/snprintf.h: Remove file.
53728         * lib/vsnprintf.h: Remove file.
53729         * lib/.cppi-disable: Remove snprintf.h.
53730         * m4/stdio_h.m4: New file.
53731         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53732
53733 2007-02-20  Jim Meyering  <jim@meyering.net>
53734
53735         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53736         used by e.g., mingw.  From Bruno Haible.
53737
53738 2007-02-19  Bruno Haible  <bruno@clisp.org>
53739
53740         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53741         warnings.
53742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53743
53744 2007-02-19  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53747         from mingw users.
53748
53749 2007-02-19  Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53752         warnings.
53753         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53754
53755 2007-02-19  Jim Meyering  <jim@meyering.net>
53756
53757         Don't use FD after a successful "fdopendir (fd)".
53758         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53759         Reset it by calling dirfd on the just-obtained DIR*.
53760
53761         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53762         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53763
53764 2007-02-18  Bruno Haible  <bruno@clisp.org>
53765
53766         * lib/readlink.c: Include <unistd.h>.
53767         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53768         HAVE_READLINK.
53769         * modules/readlink (Depends-on): Add unistd.
53770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53771         (Include): Add <unistd.h>.
53772
53773         * lib/getlogin_r.h: Remove file.
53774         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53775         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53776         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53777         HAVE_DECL_GETLOGIN_R.
53778         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53780         (Include): Use <unistd.h> instead of getlogin_r.h.
53781
53782         * lib/getcwd.h: Remove file.
53783         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53784         * lib/xgetcwd.c: Likewise.
53785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53786         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53787         * modules/getcwd (Files): Remove lib/getcwd.h.
53788         (Depends-on): Add unistd.
53789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53790         (Include): Use <unistd.h> instad of getcwd.h.
53791
53792         * lib/ftruncate.c: Include <unistd.h> first.
53793         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53794         Set HAVE_FTRUNCATE.
53795         * modules/ftruncate (Depends-on): Add unistd.
53796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53797
53798         * lib/fchdir.c: Include <unistd.h> first.
53799         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53801         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53802         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53803         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53804
53805         * lib/dup2.c: Include <unistd.h> first.
53806         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53807         HAVE_DUP2.
53808         * modules/dup2 (Depends-on): Add unistd.
53809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53810
53811         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53812         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53813         REPLACE_CHOWN. Don't define chown as a macro here.
53814         * modules/chown (Depends-on): Add unistd.
53815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53816
53817         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53818         Add definition for GL_LINK_WARNING.
53819         (chown, dup2): New declarations.
53820         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53821         link warning.
53822         (ftruncate): New declaration.
53823         (getcwd): New declaration, taken from old getcwd.h.
53824         (getlogin_r): New declaration, taken from old getlogin_r.h.
53825         (readlink): New declaration.
53826         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53827         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53828         (gl_PREREQ_UNISTD): Remove macro.
53829         (gl_UNISTD_MODULE_INDICATOR): New macro.
53830         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53831         many new variables. Don't set UNISTD_H.
53832         * modules/unistd (Description): Change.
53833         (Depends-on): Add link-warning.
53834         (configure.ac): Update.
53835         (Makefile.am): Create unistd.h always. Substitute many new variables
53836         into it.
53837
53838 2007-02-18  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53841         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53842         HAVE_GETSUBOPT.
53843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53844         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53845         * lib/getsubopt.h: Remove file.
53846         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53847         (Depends-on): Add stdlib.
53848         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53849         (Includes): Use <stdlib.h> instead of getsubopt.h.
53850         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53851         Set HAVE_GETSUBOPT.
53852         * lib/getsubopt.c: Don't include getsubopt.h.
53853
53854 2007-02-18  Bruno Haible  <bruno@clisp.org>
53855
53856         * modules/fchdir (Depends-on): Add dup2.
53857
53858 2007-02-18  Bruno Haible  <bruno@clisp.org>
53859
53860         * lib/stdlib_.h: Handle glibc's special invocation convention
53861         specially.
53862
53863 2007-02-18  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/stdlib-tests: New file.
53866         * tests/test-stdlib.c: New file.
53867
53868         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53869         (Depends-on): Add stdlib.
53870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53871         (Includes): Use <stdlib.h> instead of mkstemp.h.
53872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53873         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53874         * lib/mkstemp.c: Don't include mkstemp.h.
53875         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53876         * lib/stdlib--.h: Don't include mkstemp.h.
53877
53878         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53879         (Depends-on): Add stdlib.
53880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53881         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53882         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53883         HAVE_MKDTEMP.
53884         * lib/mkdtemp.c: Don't include mkdtemp.h.
53885         * lib/clean-temp.c: Don't include mkdtemp.h.
53886
53887         * modules/exit (Files): Remove lib/exit.h.
53888         (Depends-on): Add stdlib.
53889         (Makefile.am): Remove lib_SOURCES.
53890         (Include): Use <stdlib.h> instead of exit.h.
53891         * lib/argmatch.c: Don't include exit.h.
53892         * lib/execute.c: Likewise.
53893         * lib/pagealign_alloc.c: Likewise.
53894         * lib/pipe.c: Likewise.
53895         * lib/wait-process.c: Likewise.
53896         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53897         * lib/exitfail.c: Likewise.
53898         * lib/savewd.c: Likewise.
53899         * lib/xsetenv.c: Likewise.
53900
53901         * modules/stdlib: New file.
53902         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53903         and extra comments about mkstemp().
53904         * lib/exit.h: Remove file.
53905         * lib/mkdtemp.h: Remove file.
53906         * lib/mkstemp.h: Remove file.
53907         * m4/stdlib_h.m4: New file.
53908         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53909
53910 2007-02-18  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/math-tests: New file.
53913         * tests/test-math.c: New file.
53914
53915         * modules/math: New file.
53916         * modules/mathl (Files): Remove lib/mathl.h.
53917         (Depends-on): Add math.
53918         (Makefile.am): Don't mention mathl.h.
53919         (Include): Use <math.h> instead of mathl.h.
53920         * lib/math_.h: New file.
53921         * lib/mathl.h: Remove file.
53922         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53923         mathl.h.
53924         * lib/asinl.c: Likewise.
53925         * lib/atanl.c: Likewise.
53926         * lib/ceill.c: Likewise.
53927         * lib/cosl.c: Likewise.
53928         * lib/expl.c: Likewise.
53929         * lib/floorl.c: Likewise.
53930         * lib/frexpl.c: Likewise.
53931         * lib/ldexpl.c: Likewise.
53932         * lib/logl.c: Likewise.
53933         * lib/sincosl.c: Likewise.
53934         * lib/sinl.c: Likewise.
53935         * lib/sqrtl.c: Likewise.
53936         * lib/tanl.c: Likewise.
53937         * lib/trigl.c: Likewise.
53938         * m4/math_h.m4: New file.
53939         * MODULES.html.sh (Mathematics): Add math.
53940
53941 2007-02-17  Bruno Haible  <bruno@clisp.org>
53942
53943         * modules/wctype-tests: New file.
53944         * tests/test-wctype.c: New file.
53945
53946         * modules/wchar-tests: New file.
53947         * tests/test-wchar.c: New file.
53948
53949         * modules/unistd-tests: New file.
53950         * tests/test-unistd.c: New file.
53951
53952         * modules/time-tests: New file.
53953         * tests/test-time.c: New file.
53954
53955         * modules/sysexits-tests: New file.
53956         * tests/test-sysexits.c: New file.
53957
53958         * modules/sys_time-tests: New file.
53959         * tests/test-sys_time.c: New file.
53960
53961         * modules/sys_stat-tests: New file.
53962         * tests/test-sys_stat.c: New file.
53963
53964         * modules/sys_socket-tests: New file.
53965         * tests/test-sys_socket.c: New file.
53966
53967         * modules/sys_select-tests: New file.
53968         * tests/test-sys_select.c: New file.
53969
53970         * modules/string-tests: New file.
53971         * tests/test-string.c: New file.
53972
53973         * modules/stdbool-tests: New file.
53974         * tests/test-stdbool.c: New file.
53975
53976         * modules/netinet_in-tests: New file.
53977         * tests/test-netinet_in.c: New file.
53978
53979         * modules/inttypes-tests: New file.
53980         * tests/test-inttypes.c: New file.
53981
53982         * modules/fcntl-tests: New file.
53983         * tests/test-fcntl.c: New file.
53984
53985         * modules/byteswap-tests: New file.
53986         * tests/test-byteswap.c: New file.
53987
53988         * modules/arpa_inet-tests: New file.
53989         * tests/test-arpa_inet.c: New file.
53990
53991 2007-02-17  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53994         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53995         if the corresponding module is not enabled. Emit link warnings if
53996         the function is used nevertheless.
53997         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53998         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53999         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54000         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54001         * modules/inttypes (Depends-on): Add link-warning.
54002         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54003         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54004         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54005         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54006         * modules/imaxdiv (configure.ac): Likewise.
54007         * modules/strtoimax (configure.ac): Likewise.
54008         * modules/strtoumax (configure.ac): Likewise.
54009
54010 2007-02-17  Bruno Haible  <bruno@clisp.org>
54011
54012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54013         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54015         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54016
54017 2007-02-17  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/link-warning: New file.
54020         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54021         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54022         * modules/string (Depends-on): Add link-warning.
54023         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54024         string.h.
54025         * MODULES.html.sh (Support for building libraries and executables): Add
54026         link-warning.
54027
54028 2007-02-17  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54031         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54032         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54033         long lines.
54034
54035 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54036             Bruno Haible  <bruno@clisp.org>
54037
54038         * modules/tmpfile: New file.
54039         * lib/tmpfile.c: New file.
54040         * m4/tmpfile.m4: New file.
54041         * MODULES.html.sh (func_all_modules): New section "Input/output".
54042
54043 2007-02-15  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54046         (supports_delete_on_close): New function.
54047         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54048
54049 2007-02-14  Bruno Haible  <bruno@clisp.org>
54050
54051         * modules/mbspcasecmp-tests: New file.
54052         * tests/test-mbspcasecmp.sh: New file.
54053         * tests/test-mbspcasecmp.c: New file.
54054
54055         New module mbspcasecmp.
54056         * modules/mbspcasecmp: New file.
54057         * lib/mbspcasecmp.c: New file.
54058         * lib/string_.h (strncasecmp): Change warning message.
54059         (mbspcasecmp): New declaration.
54060         * m4/mbspcasecmp.m4: New file.
54061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54062         GNULIB_MBSPCASECMP.
54063         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54064         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54065
54066 2007-02-14  Bruno Haible  <bruno@clisp.org>
54067
54068         * modules/mbsncasecmp-tests: New file.
54069         * tests/test-mbsncasecmp.sh: New file.
54070         * tests/test-mbsncasecmp.c: New file.
54071
54072         New module mbsncasecmp.
54073         * modules/mbsncasecmp: New file.
54074         * lib/mbsncasecmp.c: New file.
54075         * lib/string_.h (mbsncasecmp): New declaration.
54076         * m4/mbsncasecmp.m4: New file.
54077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54078         GNULIB_MBSNCASECMP.
54079         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54080         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54081
54082 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54085         Verify that it doesn't overlap with our flags.
54086         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54087         do not have the desired effect in multibyte locales; instead, use
54088         mbscasecmp.
54089         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54090         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54091         we don't require GNU fnmatch ourselves (if our users require it, they
54092         should do so explicitly).
54093
54094         Fix regex code so it doesn't rely on strcasecmp.
54095         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54096         Otherwise, include gnulib's langinfo.h.
54097         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54098         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54099         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54100         * modules/regex (FILES): Remove m4/codeset.m4.
54101         (Depends-on): Add localcharset.  Remove strcase.
54102
54103 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54104
54105         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54107
54108 2007-02-13  Bruno Haible  <bruno@clisp.org>
54109
54110         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54112
54113 2007-02-12  Bruno Haible  <bruno@clisp.org>
54114
54115         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54116         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54117         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54118         time warning rather than a link error.
54119
54120 2007-02-12  Bruno Haible  <bruno@clisp.org>
54121
54122         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54125
54126 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54129         args, not 2.
54130
54131 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         New module 'time', so that apps can include <time.h> as per
54134         POSIX and GNU instead of separate include files like time_r.h
54135         and timegm.h.  This implementation tries out a simpler approach
54136         for replacing decls in standard include files (as compared to
54137         the string module), somewhat as an experiment.
54138
54139         * config/srclist.txt: Comment out mktime.c for now.
54140         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54141         since it doesn't apply any more.  Use generic wording instead.
54142         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54143         'time'.
54144         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54145         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54146         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54147         Don't include <sys/types.h>; no longer needed since we assume C89.
54148         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54149         * lib/strftime.c: Likewise.
54150         * lib/time_r.c: Likewise.
54151         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54152         * lib/nanosleep.c: Include <time.h> first, to check interface.
54153         * lib/strptime.c: Likewise.
54154         * lib/time_r.c: Likewise.
54155         * lib/timegm.c: Likewise.
54156         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54157         needed.
54158         * lib/timegm.c: Don't include timegm.h; no longer needed.
54159         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54160         time.h now handles any problems in that area.
54161         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54162         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54163         that time.h defines struct timespec.
54164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54165         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54166         handles that.
54167         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54168         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54169         needed.  Set REPLACE_LOCALTIME.
54170         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54171         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54172         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54173         nanosleep; time_h.m4 now does that.  Don't require
54174         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54175         module handles this now.
54176         * modules/getdate (Depends-on): Remove timespec.  Add time.
54177         * modules/nanosleep (Depends-on): Likewise.
54178         * modules/stat-time (Depends-on): Likewise.
54179         * modules/nanosleep (Include): Include time.h, not timespec.h.
54180         * modules/strptime (Files): Remove lib/strptime.h.
54181         (Depends-on): Add extensions, time.
54182         (Include): Include time.h, not strptime.h.
54183         * modules/time_r (Files): Remove lib/time_r.h.
54184         (Depends-on): Add time.
54185         (Include): Include time.h, not time_r.h.
54186         * modules/timegm: Likewise.
54187         * modules/timespec (Description): Now does timespec-related decls
54188         of our own, instead of struct timespec itself.
54189         (Depends-on): Add time; remove extensions.
54190         (Maintainer): Add self.
54191         * modules/utimecmp (Depends-on): Add time; remove timespec.
54192         * modules/utimens (Depends-on): Likewise.
54193         * modules/xnanosleep (Depends-on): Likewise.
54194
54195 2007-02-11  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/c-strstr.c: Include allocsa.h.
54198         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54199         * lib/c-strcasestr.c: Include allocsa.h.
54200         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54201         * lib/strcasestr.c: Include allocsa.h.
54202         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54203         * lib/mbsstr.c: Include allocsa.h.
54204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54205         allocsa/freesa instead of malloc/free.
54206         * lib/mbscasestr.c: Include allocsa.h.
54207         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54208         allocsa/freesa instead of malloc/free.
54209         * modules/c-strstr (Depends-on): Add allocsa.
54210         * modules/c-strcasestr (Depends-on): Likewise.
54211         * modules/strcasestr (Depends-on): Likewise.
54212         * modules/mbsstr (Depends-on): Likewise.
54213         * modules/mbscasestr (Depends-on): Likewise.
54214
54215 2007-02-11  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54218
54219         * modules/mbsspn-tests: New file.
54220         * tests/test-mbsspn.sh: New file.
54221         * tests/test-mbsspn.c: New file.
54222
54223 2007-02-11  Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54226
54227         * modules/mbspbrk-tests: New file.
54228         * tests/test-mbspbrk.sh: New file.
54229         * tests/test-mbspbrk.c: New file.
54230
54231 2007-02-11  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54234         unneeded cast.
54235
54236         * modules/mbscspn-tests: New file.
54237         * tests/test-mbscspn.sh: New file.
54238         * tests/test-mbscspn.c: New file.
54239
54240 2007-02-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * modules/mbscasecmp-tests: New file.
54243         * tests/test-mbscasecmp.sh: New file.
54244         * tests/test-mbscasecmp.c: New file.
54245
54246 2007-02-11  Bruno Haible  <bruno@clisp.org>
54247
54248         Ensure O(n) worst-case complexity of mbscasestr.
54249         * lib/mbscasestr.c: Include stdbool.h.
54250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54251         functions.
54252         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54253         the bookkeeping indicates that it's worth it.
54254         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54255
54256         * modules/mbscasestr-tests: New file.
54257         * tests/test-mbscasestr1.c: New file.
54258         * tests/test-mbscasestr2.sh: New file.
54259         * tests/test-mbscasestr2.c: New file.
54260         * tests/test-mbscasestr3.sh: New file.
54261         * tests/test-mbscasestr3.c: New file.
54262         * tests/test-mbscasestr4.sh: New file.
54263         * tests/test-mbscasestr4.c: New file.
54264         * m4/locale-tr.m4: New file.
54265
54266 2007-02-11  Bruno Haible  <bruno@clisp.org>
54267
54268         Ensure O(n) worst-case complexity of mbsstr.
54269         * lib/mbsstr.c: Include stdbool.h.
54270         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54271         functions.
54272         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54273         bookkeeping indicates that it's worth it.
54274         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54275
54276         * modules/mbsstr-tests: New file.
54277         * tests/test-mbsstr1.c: New file.
54278         * tests/test-mbsstr2.sh: New file.
54279         * tests/test-mbsstr2.c: New file.
54280         * tests/test-mbsstr3.sh: New file.
54281         * tests/test-mbsstr3.c: New file.
54282         * m4/locale-fr.m4: New file.
54283
54284 2007-02-11  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/mbsrchr.c (mbsrchr): Fix bug.
54287
54288         * modules/mbsrchr-tests: New file.
54289         * tests/test-mbsrchr.sh: New file.
54290         * tests/test-mbsrchr.c: New file.
54291
54292 2007-02-11  Bruno Haible  <bruno@clisp.org>
54293
54294         * lib/mbschr.c (mbschr): Fix bug.
54295
54296         * modules/mbschr-tests: New file.
54297         * tests/test-mbschr.sh: New file.
54298         * tests/test-mbschr.c: New file.
54299         * m4/locale-zh.m4: New file.
54300
54301 2007-02-11  Bruno Haible  <bruno@clisp.org>
54302
54303         Support for copying multibyte string iterators.
54304         * lib/mbiter.h: Include <string.h>.
54305         (mbiter_multi_copy): New function.
54306         (mbi_copy): New macro.
54307         * lib/mbuiter.h: Include <string.h>.
54308         (mbuiter_multi_copy): New function.
54309         (mbui_copy): New macro.
54310
54311 2007-02-11  Bruno Haible  <bruno@clisp.org>
54312
54313         New module mbslen.
54314         * modules/mbslen: New file.
54315         * lib/mbslen.c: New file.
54316         * lib/string_.h (mbslen): New declaration.
54317         * m4/mbslen.m4: New file.
54318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54319         GNULIB_MBSLEN.
54320         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54321         * MODULES.html.sh (Internationalization functions): Add mbslen.
54322
54323 2007-02-11  Bruno Haible  <bruno@clisp.org>
54324
54325         Ensure O(n) worst-case complexity of strcasestr substitute.
54326         * lib/strcasestr.c: Include stdbool.h.
54327         (knuth_morris_pratt): New function.
54328         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54329         bookkeeping indicates that it's worth it.
54330         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54331
54332         * modules/strcasestr-tests: New file.
54333         * tests/test-strcasestr.c: New file.
54334
54335 2007-02-11  Bruno Haible  <bruno@clisp.org>
54336
54337         Ensure O(n) worst-case complexity of c_strcasestr.
54338         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54339         (knuth_morris_pratt): New function.
54340         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54341         the bookkeeping indicates that it's worth it.
54342         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54343
54344         * modules/c-strcasestr-tests: New file.
54345         * tests/test-c-strcasestr.c: New file.
54346
54347 2007-02-11  Bruno Haible  <bruno@clisp.org>
54348
54349         Ensure O(n) worst-case complexity of c_strstr.
54350         * lib/c-strstr.c: Include stdbool.h, string.h.
54351         (knuth_morris_pratt): New function.
54352         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54353         bookkeeping indicates that it's worth it.
54354         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54355
54356         * lib/c-strstr.c: Complete rewrite for maintainability.
54357
54358         * modules/c-strstr-tests: New file.
54359         * tests/test-c-strstr.c: New file.
54360
54361 2007-02-11  Bruno Haible  <bruno@clisp.org>
54362
54363         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54364         5.2.1 and earlier, whereby \055 was treated just like the range
54365         delimiter '-'.
54366         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54367
54368 2007-02-08  Bruno Haible  <bruno@clisp.org>
54369
54370         * modules/regex (Depends-on): Add stdbool.
54371         Reported by Dalibor Topic <robilad@kaffe.org>.
54372
54373 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54376         Prefer returning from main to exiting from it.
54377         Remove unnecessary parens after sizeof.
54378
54379 2007-02-05  Bruno Haible  <bruno@clisp.org>
54380
54381         New module mbssep.
54382         * modules/mbssep: New file.
54383         * lib/mbssep.c: New file.
54384         * lib/string_.h (strsep): Add a conditional link warning.
54385         (mbssep): New declaration.
54386         * m4/mbssep.m4: New file.
54387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54388         GNULIB_MBSSEP.
54389         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54390         * MODULES.html.sh (Internationalization functions): Add mbssep.
54391
54392 2007-02-05  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54395         Optimize search in case of 1 delimiter.
54396
54397 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54398
54399         * lib/acl.h: Include sys/types.h before sys/acl.h.
54400
54401 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54402
54403         Merge upstream fix for glibc bugzilla #3957:
54404
54405         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54406
54407         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54408         bit for RE_HAT_LISTS_NOT_NEWLINE.
54409         (build_charclass_op): Remove bogus comment.
54410
54411 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54412
54413         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54414
54415 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54416
54417         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54418         * lib/memmem.c [!defined _LIBC]: Include config.h.
54419
54420 2007-02-04  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54423         warning message.
54424
54425 2007-02-04  Bruno Haible  <bruno@clisp.org>
54426
54427         New module mbstok_r.
54428         * modules/mbstok_r: New file.
54429         * lib/mbstok_r.c: New file.
54430         * lib/string_.h (strtok_r): Change argument names to match the
54431         comments. Add a conditional link warning.
54432         (mbstok_r): New declaration.
54433         * m4/mbstok_r.m4: New file.
54434         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54435         GNULIB_MBSTOK_R.
54436         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54437         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54438
54439 2007-02-04  Bruno Haible  <bruno@clisp.org>
54440
54441         New module mbsspn.
54442         * modules/mbsspn: New file.
54443         * lib/mbsspn.c: New file.
54444         * lib/string_.h (strspn): Add a conditional link warning.
54445         (mbsspn): New declaration.
54446         * m4/mbsspn.m4: New file.
54447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54448         GNULIB_MBSSPN.
54449         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54450         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54451
54452 2007-02-04  Bruno Haible  <bruno@clisp.org>
54453
54454         New module mbspbrk.
54455         * modules/mbspbrk: New file.
54456         * lib/mbspbrk.c: New file.
54457         * lib/string_.h (strpbrk): Add a conditional link warning.
54458         (mbspbrk): New declaration.
54459         * m4/mbspbrk.m4: New file.
54460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54461         GNULIB_MBSPBRK.
54462         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54463         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54464
54465 2007-02-04  Bruno Haible  <bruno@clisp.org>
54466
54467         New module mbscspn.
54468         * modules/mbscspn: New file.
54469         * lib/mbscspn.c: New file.
54470         * lib/string_.h (strcspn): Add a conditional link warning.
54471         (mbscspn): New declaration.
54472         * m4/mbscspn.m4: New file.
54473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54474         GNULIB_MBSCSPN.
54475         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54476         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54477
54478 2007-02-04  Bruno Haible  <bruno@clisp.org>
54479
54480         New module mbscasestr, reduced goal of strcasestr.
54481         * modules/mbscasestr: New file.
54482         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54483         (mbscasestr): Renamed from strcasestr.
54484         * lib/strcasestr.c: Don't include mbuiter.h.
54485         (strcasestr): Remove support for multibyte locales.
54486         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54487         Change the conditional link warning.
54488         (mbscasestr): New declaration.
54489         * m4/mbscasestr.m4: New file.
54490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54491         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54492         REPLACE_STRCASESTR.
54493         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54495         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54497         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54498         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54499         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54500         (Depends-on): Remove mbuiter.
54501         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54502
54503 2007-02-04  Bruno Haible  <bruno@clisp.org>
54504
54505         Simplify handling of strncasecmp.
54506         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54507         the conditional link warning.
54508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54509         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54510         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54511         * modules/strcase (configure.ac): Don't invoke
54512         gl_STRING_MODULE_INDICATOR.
54513         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54514
54515 2007-02-04  Bruno Haible  <bruno@clisp.org>
54516
54517         New module mbscasecmp, reduced goal of strcasecmp.
54518         * modules/mbscasecmp: New file.
54519         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54520         (mbscasecmp): Renamed from strcasecmp.
54521         * lib/strcasecmp.c: Don't include mbuiter.h.
54522         (strcasecmp): Remove support for multibyte locales.
54523         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54524         Change the conditional link warning.
54525         (mbscasecmp): New declaration.
54526         * m4/mbscasecmp.m4: New file.
54527         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54528         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54529         REPLACE_STRCASECMP.
54530         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54532         GNULIB_MBSCASECMP.
54533         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54534         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54535         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54536         (Depends-on): Remove mbuiter.
54537         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54538
54539 2007-02-04  Bruno Haible  <bruno@clisp.org>
54540
54541         New module mbsstr. Remove module strstr.
54542         * modules/mbsstr: New file.
54543         * modules/strstr: Remove file.
54544         * lib/mbsstr.c: Renamed from lib/strstr.c.
54545         (mbsstr): Renamed from strstr.
54546         * lib/string_.h (strstr): Remove declaration. Change the conditional
54547         link warning.
54548         (mbsstr): New declaration.
54549         * m4/mbsstr.m4: New file.
54550         * m4/strstr.m4: Remove file.
54551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54552         REPLACE_STRSTR.
54553         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54554         Don't initialize GNULIB_STRSTR.
54555         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54556         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54557         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54558         (Support for systems lacking ANSI C 89): Remove strstr.
54559
54560 2007-02-04  Bruno Haible  <bruno@clisp.org>
54561
54562         New module mbsrchr.
54563         * modules/mbsrchr: New file.
54564         * lib/mbsrchr.c: New file.
54565         * lib/string_.h (strrchr): Add a conditional link warning.
54566         (mbsrchr): New declaration.
54567         * m4/mbsrchr.m4: New file.
54568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54569         GNULIB_MBSRCHR.
54570         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54571         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54572
54573 2007-02-04  Bruno Haible  <bruno@clisp.org>
54574
54575         New module mbschr.
54576         * modules/mbschr: New file.
54577         * lib/mbschr.c: New file.
54578         * lib/string_.h (strchr): Add a conditional link warning.
54579         (mbschr): New declaration.
54580         * m4/mbschr.m4: New file.
54581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54582         GNULIB_MBSCHR.
54583         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54584         * MODULES.html.sh (Internationalization functions): Add mbschr.
54585
54586 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54587
54588         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54589
54590         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54591
54592 2007-02-04  Bruno Haible  <bruno@clisp.org>
54593
54594         New module description section 'configure.ac-early'.
54595         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54596         (func_get_autoconf_early_snippet): New function.
54597         (func_import, func_create_testdir): Use it. Remove special cases for
54598         modules 'extensions' and 'lock'.
54599         * modules/extensions (configure.ac-early): Require
54600         gl_USE_SYSTEM_EXTENSIONS.
54601         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54602
54603 2007-02-04  Bruno Haible  <bruno@clisp.org>
54604
54605         Make use of gcj-4.3's -fsource and -ftarget option.
54606         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54607         and if so try the options -fsource and -ftarget.
54608         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54609         source_version, ftarget_option, target_version arguments.
54610         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54611         (is_envjavac_oldgcj_14_14_usable): Renamed from
54612         is_envjavac_gcj_14_14_usable.
54613         (is_envjavac_oldgcj_14_13_usable): Renamed from
54614         is_envjavac_gcj_14_13_usable.
54615         (is_gcj_present): Update.
54616         (is_gcj_43, is_gcj43_usable): New functions.
54617         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54618         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54619         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54620         try the options -fsource and -ftarget.
54621
54622 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54625         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54626         larger value.
54627
54628 2007-02-03  Jim Meyering  <jim@meyering.net>
54629
54630         Give tools a better chance to allocate space for very large buffers.
54631         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54632
54633         Make pwd and readlink work also when run with an unreadable parent dir
54634         on systems with openat support.
54635         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54636         provided getcwd function, even when we have openat support.
54637         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54638
54639 2007-02-02  Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54642         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54643         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54644         portability problems if one of these functions is only used on specific
54645         platforms.
54646         Reported by Paul Eggert.
54647
54648 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54651         is causing more trouble than it's curing.
54652         * lib/regex_internal.h (__mempcpy): Remove.
54653         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54654         (and make the code a tad smaller to boot).
54655         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54656
54657 2007-02-02  Jim Meyering  <jim@meyering.net>
54658
54659         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54660         section, not in the Makefile.am: one.
54661
54662 2007-02-02  Eric Blake  <ebb9@byu.net>
54663
54664         * lib/strchrnul.c: Always include config.h first.
54665
54666         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54667         gnulib strstr is not necessary here.
54668
54669 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54670
54671         * m4/socklen.m4: Fix typo.
54672
54673 2007-02-02  Eric Blake  <ebb9@byu.net>
54674
54675         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54676         * modules/netinet_in (Makefile.am): Likewise.
54677
54678 2007-02-01  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/string_.h (GL_LINK_WARNING): New macro.
54681         (strcasecmp, strstr, strcasestr): If provided by the system,
54682         conditionally define as a macro that leads to a warning instead of to
54683         an error.
54684         (strncasecmp): Conditionally define as a macro that leads to a warning.
54685
54686 2007-02-01  Karl Berry  <karl@gnu.org>
54687
54688         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54689
54690 2007-02-01  Bruno Haible  <bruno@clisp.org>
54691
54692         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54693         renamings.
54694
54695 2007-02-01  Eric Blake  <ebb9@byu.net>
54696
54697         * modules/regex (Depends-on): Revert dependence on mempcpy.
54698         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54699         module's definition of mempcpy.
54700         Reported by Paul Eggert.
54701
54702 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54703
54704         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54705         the symbol XYZ before redefining it.  This fixes a problem with
54706         programs that don't use XYZ, when compiled on systems that define
54707         XYZ to something else.
54708
54709 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54712         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54713         writeable to group or other and (2) is intended to have a special
54714         mode bit that is set or cleared.  In such a case, the directory
54715         should be neither group- nor other-writeable until the special
54716         mode bits are right.
54717
54718 2007-01-31  Eric Blake  <ebb9@byu.net>
54719
54720         * modules/mountlist (Depends-on): Add strstr.
54721
54722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54723         bug.
54724         * modules/string (Makefile.am): Remove redundant replacement.
54725         * modules/regex (Depends-on): Add mempcpy.
54726
54727 2007-01-31  Bruno Haible  <bruno@clisp.org>
54728
54729         New module description field 'Link'.
54730         * gnulib-tool (func_usage): Document --extract-link-directive.
54731         (sed_extract_prog): Recognize 'Link' directive.
54732         (func_get_link_directive): New function.
54733         (func_import): Show summary of link directives.
54734         Handle --extract-link-directive option.
54735         * modules/acl (Link): New section.
54736         * modules/clock-time (Link): New section.
54737         * modules/euidaccess (Link): New section.
54738         * modules/gettext (Link): New section.
54739         * modules/iconv (Link): New section.
54740         * modules/lock (Link): New section.
54741         * modules/nanosleep (Link): New section.
54742         * modules/readline (Link): New section.
54743
54744 2007-01-27  Bruno Haible  <bruno@clisp.org>
54745
54746         Enforce the use of gnulib modules for unportable <string.h> functions.
54747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54749         (gl_HEADER_STRING_H_BODY): Require it.
54750         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54751         the symbol XYZ to one that gives a link error.
54752         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54753         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54754         * modules/mempcpy (configure.ac): Likewise.
54755         * modules/memrchr (configure.ac): Likewise.
54756         * modules/stpcpy (configure.ac): Likewise.
54757         * modules/stpncpy (configure.ac): Likewise.
54758         * modules/strcase (configure.ac): Likewise.
54759         * modules/strcasestr (configure.ac): Likewise.
54760         * modules/strchrnul (configure.ac): Likewise.
54761         * modules/strdup (configure.ac): Likewise.
54762         * modules/strndup (configure.ac): Likewise.
54763         * modules/strnlen (configure.ac): Likewise.
54764         * modules/strpbrk (configure.ac): Likewise.
54765         * modules/strsep (configure.ac): Likewise.
54766         * modules/strstr (configure.ac): Likewise.
54767         * modules/strtok_r (configure.ac): Likewise.
54768
54769 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54770
54771         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54772
54773 2007-01-30  Jim Meyering  <jim@meyering.net>
54774
54775         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54776
54777 2007-01-29  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54780         * lib/execute.c: Likewise.
54781         * lib/pipe.c: Likewise.
54782         * lib/printf-args.h: Likewise.
54783         * lib/printf-args.c: Likewise.
54784         * lib/printf-parse.c: Likewise.
54785         * lib/vasnprintf.c: Likewise.
54786
54787 2007-01-29  Eric Blake  <ebb9@byu.net>
54788
54789         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54790         declaration.
54791
54792 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * lib/strptime.h (strptime): Use 'restrict' for args where
54795         POSIX requires this.
54796         * lib/strptime.c (strptime): Likewise.
54797         Change license notice from LGPL to GPL, since gnulib-tool will
54798         change this as needed.
54799         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54800         defined.
54801         Include "strptime.h" first, to check interface.
54802         Do not #undef _LIBC and _NL_CURRENT.
54803         Do not include <stdlib.h>; no longer needed.
54804         Include "time_r.h" and declare ptime_locale_status
54805         only if _LIBC is not defined.
54806         (__P): Remove unused macro.
54807         (match_string): Bring back glibc version, but use it only if _LIBC
54808         is defined.
54809         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54810         Remove unnecessary assertion and abort() call.
54811         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54812         * m4/strptime.m4: Fix serial number comment.
54813         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54814         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54815         (Depends-on): Add time_r.
54816
54817 2007-01-29  Bruno Haible  <bruno@clisp.org>
54818
54819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54820         strptime.
54821         * modules/strptime (Depends-on): Add stdbool.
54822         * lib/strptime.h: Include <time.h> always. Add comments.
54823
54824 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54825
54826         * modules/strptime: New file.
54827         * lib/strptime.h: New file.
54828         * lib/strptime.c: New file.
54829         * m4/strptime.m4: New file.
54830
54831 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54832
54833         * MODULES.html.sh: New module mpsort.
54834         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54835
54836         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54837         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54839         All uses changed.
54840         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54841         All uses changed.
54842         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54843         to _Restrict_.
54844         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54845         the parameter matches the prototype.
54846
54847 2007-01-28  Jim Meyering  <jim@meyering.net>
54848
54849         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54850         sys/time.h here, reverting that part of the previous patch:
54851         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54852
54853 2007-01-28  Bruno Haible  <bruno@clisp.org>
54854
54855         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54856         value of $(SYS_TIME_H).
54857         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54858         remove it conditionally, too. [added by Jim Meyering]
54859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54861         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54862         GETTIMEOFDAY_REPLACEMENT to 1.
54863
54864 2007-01-28  Bruno Haible  <bruno@clisp.org>
54865
54866         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54867         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54869         Set UNISTD_H instead of UNISTD_H2.
54870         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54871
54872 2007-01-28  Bruno Haible  <bruno@clisp.org>
54873
54874         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54875         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54876
54877 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54878
54879         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54880         (func_create_testdir): Ensure C locale for `grep' and `tr'
54881         character ranges.
54882         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54883         ACLOCAL_AMFLAGS parsing state machine.
54884
54885 2007-01-27  Bruno Haible  <bruno@clisp.org>
54886
54887         * modules/unistr/base: Update.
54888
54889 2007-01-27  Bruno Haible  <bruno@clisp.org>
54890
54891         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54892         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54893         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54894         modules/unistr/u32-mbtouc.
54895         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54896         * lib/unistr.h: Update.
54897         * lib/linebreak.c: Update.
54898         * modules/unistr/u32-mbtouc: Renamed from
54899         modules/unistr/u32-mbtouc-safe.
54900         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54901         * lib/unistr.h: Update.
54902         * lib/unistr/u32-to-u8.c: Update.
54903         * lib/unistr/u32-to-u16.c: Update.
54904
54905 2007-01-27  Bruno Haible  <bruno@clisp.org>
54906
54907         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54908         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54909         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54910         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54911         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54912         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54913         modules/unistr/u16-mbtouc.
54914         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54915         * lib/unistr.h: Update.
54916         * lib/linebreak.c: Update.
54917         * modules/linebreak: Update.
54918         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54919         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54920         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54921         * modules/unistr/u16-mbtouc: Renamed from
54922         modules/unistr/u16-mbtouc-safe.
54923         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54924         * lib/unistr.h: Update.
54925         * lib/unistr/u16-to-u8.c: Update.
54926         * modules/unistr/u16-to-u8: Update.
54927         * lib/unistr/u16-to-u32.c: Update.
54928         * modules/unistr/u16-to-u32: Update.
54929
54930 2007-01-27  Bruno Haible  <bruno@clisp.org>
54931
54932         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54933         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54934         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54935         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54936         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54937         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54938         modules/unistr/u8-mbtouc.
54939         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54940         * lib/unistr.h: Update.
54941         * lib/striconveh.c: Update.
54942         * modules/striconveh: Update.
54943         * lib/linebreak.c: Update.
54944         * modules/linebreak: Update.
54945         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54946         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54947         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54948         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54949         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54950         * lib/unistr.h: Update.
54951         * lib/striconveh.c: Update.
54952         * modules/striconveh: Update.
54953         * lib/unistr/u8-to-u16.c: Update.
54954         * modules/unistr/u8-to-u16: Update.
54955         * lib/unistr/u8-to-u32.c: Update.
54956         * modules/unistr/u8-to-u32: Update.
54957
54958 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54959
54960         Sync from Libtool.
54961         * lib/argz.c: Do not include strings.h nor memory.h, include
54962         string.h unconditionally.  Patch by Simon Josefsson.
54963
54964 2007-01-27  Bruno Haible  <bruno@clisp.org>
54965
54966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54967         from gl_HEADER_STRING_H_BODY.
54968         (gl_HEADER_STRING_H_BODY): Require it.
54969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54970         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54971         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54972         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54974         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54977         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54980         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54981         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54982         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54983         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54984
54985 2007-01-27  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54988         check_PROGRAMS into noinst_PROGRAMS.
54989         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54990         check_PROGRAMS in this case.
54991         (func_import): Set for_test to false.
54992         (func_create_testdir): Set for_test to true.
54993
54994 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54995             Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54998         (Depends-on): Add string.
54999         (Includes): Use <string.h> instead of strcasestr.h.
55000         * modules/string (Makefile.am): Also substitute the value of
55001         REPLACE_STRCASESTR.
55002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55003         assume strcasestr is declared in <string.h> not <strings.h>. Also
55004         set REPLACE_STRCASESTR.
55005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55006         REPLACE_STRCASESTR.
55007         * lib/strcasestr.h: Remove file.
55008         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55009         * lib/string_.h (strcasestr): New declaration.
55010
55011 2007-01-27  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/string_.h: Use 'extern'.
55014
55015 2007-01-27  Jim Meyering  <jim@meyering.net>
55016
55017         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55018         of set-but-not-used local, "q".
55019
55020         * lib/mempcpy.c: Include <config.h> before <string.h>.
55021         This fixes a compilation error on HP-UX, due to the system's
55022         "restrict"-using mempcpy prototype.
55023
55024 2007-01-26  Bruno Haible  <bruno@clisp.org>
55025
55026         Small optimization.
55027         * lib/javacomp.c: Include c-strstr.h.
55028          (is_envjavac_gcj): Use c_strstr instead of strstr.
55029         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55030
55031 2007-01-26  Bruno Haible  <bruno@clisp.org>
55032
55033         * MODULES.html.sh (Unicode string functions): Add the new modules.
55034
55035         * modules/uniconv/u32-strconv-to-locale: New file.
55036         * lib/uniconv/u32-strconv-to-locale.c: New file.
55037
55038         * modules/uniconv/u16-strconv-to-locale: New file.
55039         * lib/uniconv/u16-strconv-to-locale.c: New file.
55040
55041         * modules/uniconv/u8-strconv-to-locale: New file.
55042         * lib/uniconv/u8-strconv-to-locale.c: New file.
55043
55044         * modules/uniconv/u32-strconv-from-locale: New file.
55045         * lib/uniconv/u32-strconv-from-locale.c: New file.
55046
55047         * modules/uniconv/u16-strconv-from-locale: New file.
55048         * lib/uniconv/u16-strconv-from-locale.c: New file.
55049
55050         * modules/uniconv/u8-strconv-from-locale: New file.
55051         * lib/uniconv/u8-strconv-from-locale.c: New file.
55052
55053         * modules/uniconv/u32-strconv-to-enc: New file.
55054         * lib/uniconv/u32-strconv-to-enc.c: New file.
55055         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55056         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55057
55058         * modules/uniconv/u16-strconv-to-enc: New file.
55059         * lib/uniconv/u16-strconv-to-enc.c: New file.
55060         * lib/uniconv/u-strconv-to-enc.h: New file.
55061         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55062         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55063
55064         * modules/uniconv/u8-strconv-to-enc: New file.
55065         * lib/uniconv/u8-strconv-to-enc.c: New file.
55066         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55067         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55068
55069         * modules/uniconv/u32-strconv-from-enc: New file.
55070         * lib/uniconv/u32-strconv-from-enc.c: New file.
55071         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55072         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55073
55074         * modules/uniconv/u16-strconv-from-enc: New file.
55075         * lib/uniconv/u16-strconv-from-enc.c: New file.
55076         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55077         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55078
55079         * modules/uniconv/u8-strconv-from-enc: New file.
55080         * lib/uniconv/u8-strconv-from-enc.c: New file.
55081         * lib/uniconv/u-strconv-from-enc.h: New file.
55082         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55083         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55084
55085         * modules/uniconv/u32-conv-from-enc: New file.
55086         * lib/uniconv/u32-conv-from-enc.c: New file.
55087         * modules/uniconv/u32-conv-from-enc-tests: New file.
55088         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55089
55090         * modules/uniconv/u16-conv-from-enc: New file.
55091         * lib/uniconv/u16-conv-from-enc.c: New file.
55092         * lib/uniconv/u-conv-from-enc.h: New file.
55093         * modules/uniconv/u16-conv-from-enc-tests: New file.
55094         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55095
55096         * modules/uniconv/u8-conv-from-enc: New file.
55097         * lib/uniconv/u8-conv-from-enc.c: New file.
55098         * modules/uniconv/u8-conv-from-enc-tests: New file.
55099         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55100
55101         * modules/uniconv/base: New file.
55102         * lib/uniconv.h: New file.
55103
55104 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * doc/gnulib-tool.texi (Initial import): Update to match current
55107         behavior with strdup module.
55108         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55109         * lib/memmem.h: Remove; all uses removed.  This is now done
55110         by <string.h>.
55111         * lib/mempcpy.h: Likewise.
55112         * lib/memrchr.h: Likewise.
55113         * lib/stpcpy.h: Likewise.
55114         * lib/stpncpy.h: Likewise.
55115         * lib/strcase.h: Likewise.
55116         * lib/strchrnul.h: Likewise.
55117         * lib/strdup.h: Likewise.
55118         * lib/strndup.h: Likewise.
55119         * lib/strnlen.h: Likewise.
55120         * lib/strpbrk.h: Likewise.
55121         * lib/strsep.h: Likewise.
55122         * lib/strstr.h: Likewise.
55123         * lib/strtok_r.h: Likewise.
55124         * lib/string_.h: New file.
55125         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55126         Rely on <string.h> instead.
55127         * lib/canon-host.c: Likewise.
55128         * lib/chdir-long.c: Likewise.
55129         * lib/concatpath.c: Likewise.
55130         * lib/exclude.c: Likewise.
55131         * lib/fchdir.c: Likewise.
55132         * lib/getaddrinfo.c: Likewise.
55133         * lib/getcwd.c: Likewise.
55134         * lib/getsubopt.c: Likewise.
55135         * lib/glob.c: Likewise.
55136         * lib/hard-locale.c: Likewise.
55137         * lib/iconvme.c: Likewise.
55138         * lib/javacomp.c: Likewise.
55139         * lib/mempcpy.c: Likewise.
55140         * lib/memrchr.c: Likewise.
55141         * lib/regex_internal.h: Likewise.
55142         * lib/stpncpy.c: Likewise.
55143         * lib/strcasecmp.c: Likewise.
55144         * lib/strchrnul.c: Likewise.
55145         * lib/strdup.c: Likewise.
55146         * lib/striconv.c: Likewise.
55147         * lib/striconveh.c: Likewise.
55148         * lib/striconveha.c: Likewise.
55149         * lib/strncasecmp.c: Likewise.
55150         * lib/strndup.c: Likewise.
55151         * lib/strnlen.c: Likewise.
55152         * lib/strsep.c: Likewise.
55153         * lib/strstr.c: Likewise.
55154         * lib/strtok_r.c: Likewise.
55155         * lib/userspec.c: Likewise.
55156         * lib/w32spawn.h: Likewise.
55157         * lib/xstrndup.c: Likewise.
55158         * lib/mountlist.c (strstr): Remove decl.
55159         * m4/string_h.m4: New file.
55160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55163         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55164         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55165         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55166         Set REPLACE_STRCASECMP if necessary.
55167         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55168         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55169         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55171         HAVE_DECL_STRDUP if necessary.
55172         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55173         since gl_FUNC_STRNDUP does that now.
55174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55175         Check for decl here...
55176         (gl_PREREQ_STRNLEN): ... not here.
55177         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55178         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55179         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55180         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55181         necessary.
55182         * modules/string: New file.
55183         * modules/memmem (Files): Remove special-purpose include file.
55184         (Depends-on): Add string.
55185         (Include): Include <string.h>, not the removed file.
55186         * modules/mempcpy: Likewise.
55187         * modules/memrchr: Likewise.
55188         * modules/stpcpy: Likewise.
55189         * modules/stpncpy: Likewise.
55190         * modules/strcase: Likewise.
55191         * modules/strchrnul: Likewise.
55192         * modules/strdup: Likewise.
55193         * modules/strndup: Likewise.
55194         * modules/strnlen: Likewise.
55195         * modules/strpbrk: Likewise.
55196         * modules/strsep: Likewise.
55197         * modules/strstr: Likewise.
55198         * modules/strtok_r: Likewise.
55199         * tests/test-dirname.c: Don't include "strdup.h", since
55200         <string.h> now suffices.
55201         * tests/test-memmem.c: Don't include "memmem.h", since
55202         <string.h> now suffices.
55203
55204 2007-01-25  Bruno Haible  <bruno@clisp.org>
55205
55206         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55207         *resultp is 0.
55208
55209         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55210         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55211         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55212         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55213
55214         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55215         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55216         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55217         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55218         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55219         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55220
55221 2007-01-24  Bruno Haible  <bruno@clisp.org>
55222
55223         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55225         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55226         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55227         gl_FUNC_FTS_CORE.
55228         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55229         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55230         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55231         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55232         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55233         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55234         gl_FUNC_FCHOWNAT.
55235         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55236         gl_FUNC_STRFTIME.
55237         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55238         Reported by Ralf Wildenhues.
55239
55240 2007-01-24  Bruno Haible  <bruno@clisp.org>
55241
55242         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55243         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55244         gl_GETADDRINFO.
55245         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55246         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55247         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55248
55249 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55252         Don't use 'exit'; just return from 'main'.
55253         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55254
55255         * lib/fnmatch_.h: Readjust white space and comments to match
55256         glibc, to avoid spurious diffs.
55257
55258 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55261         2004-12-01 change by Jakub Jelinek, since this code won't compile
55262         if !LIBC.  Problem reported by Bob Proulx.
55263
55264 2007-01-23  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/striconveh.c: Include c-strcaseeq.h.
55267         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55268         * modules/striconveh (Depends-on): Add c-strcaseeq.
55269
55270 2007-01-23  Bruno Haible  <bruno@clisp.org>
55271
55272         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55273
55274         * modules/c-strcaseeq: New file.
55275         * lib/c-strcaseeq.h: New file.
55276
55277         * modules/streq: New file.
55278         * lib/streq.h: New file.
55279
55280 2007-01-23  Bruno Haible  <bruno@clisp.org>
55281
55282         * modules/striconveha-tests: New file.
55283         * tests/test-striconveha.c: New file.
55284
55285         * lib/striconveha.h: Include <stdbool.h>.
55286         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55287         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55288         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55289         (mem_iconveha): New function.
55290         (str_iconveha_notranslit): Renamed from str_iconveha.
55291         (str_iconveha): New function.
55292         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55293         c-strcase.
55294
55295 2007-01-23  Bruno Haible  <bruno@clisp.org>
55296
55297         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55298         encodings without forgiving before trying any encoding with handler.
55299         (str_iconveha): Try all encodings without forgiving before trying any
55300         encoding with handler.
55301
55302 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55303
55304         Import the following changes from libc.
55305
55306         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55307
55308         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55309
55310         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55311
55312         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55313         normal_bracket label.
55314
55315         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55316
55317         [BZ #361]
55318         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55319         to normal_bracket after fetching the next character.
55320
55321 2007-01-22  Bruno Haible  <bruno@clisp.org>
55322
55323         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55324         argument.
55325         * lib/striconveh.c (iconv_carefully_1): New function.
55326         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55327         argument.
55328         (str_cd_iconveh): Update.
55329         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55330         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55331         * tests/test-striconveh.c (MAGIC): New macro.
55332         (new_offsets): New function.
55333         (main): Test call with and without offsets.
55334
55335 2007-01-22  Bruno Haible  <bruno@clisp.org>
55336
55337         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55338         * modules/sys_select (Makefile.am): Likewise.
55339         * modules/sys_socket (Makefile.am): Likewise.
55340         * modules/sys_time (Makefile.am): Likewise.
55341
55342 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * modules/gettimeofday (License): Change from GPL to LGPL, since
55345         gettimeofday is a library function.
55346
55347 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55348
55349         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55350
55351 2007-01-21  Bruno Haible  <bruno@clisp.org>
55352
55353         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55354
55355 2007-01-21  Bruno Haible  <bruno@clisp.org>
55356
55357         * modules/striconveha: New file.
55358         * lib/striconveha.h: New file.
55359         * lib/striconveha.c: New file.
55360         * MODULES.html.sh (Internationalization functions): Add striconveha.
55361         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55362         string.
55363         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55364
55365 2007-01-21  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55368         * lib/striconveh.c (str_iconveh): Likewise.
55369
55370 2007-01-21  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/striconveh.h (mem_iconveh): New declaration.
55373         * lib/striconveh.c (mem_iconveh): New function.
55374         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55375
55376 2007-01-21  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55379
55380         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55381         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55382         original result buffer.
55383         (str_cd_iconveh): Update.
55384         * tests/test-striconveh.c (main): Update.
55385
55386         * lib/striconv.h (mem_cd_iconv): Change specification.
55387         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55388         result buffer.
55389         (str_cd_iconv): Update.
55390         * tests/test-striconv.c (main): Update.
55391
55392 2007-01-21  Bruno Haible  <bruno@clisp.org>
55393
55394         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55395
55396 2007-01-20  Jim Meyering  <jim@meyering.net>
55397
55398         * lib/userspec.c (parse_with_separator): If a user or group string
55399         starts with "+", skip the corresponding name-to-ID look-up, since
55400         such a look-up must fail: user and group names may not include "+".
55401
55402 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55403
55404         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55405         since we now assume the sys_time module.
55406         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55407         check for sys/time.h; no longer needed.
55408         * modules/poll (Depends-on): Depend on sys_time.
55409
55410 2007-01-18  Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55413         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55414
55415         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55416         gettimeofday.
55417
55418         * tests/test-gettimeofday.c: Include <time.h>.
55419         (dummy): Remove variable.
55420
55421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55422         gl_HEADER_SYS_TIME_H.
55423         (gl_HEADER_SYS_TIME_H): New macro.
55424
55425         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55426         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55428         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55429         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55431         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55432         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55433         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55434         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55435         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55436
55437         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55438         last change; it caused a compilation error when cross-compiling to
55439         Cygwin.
55440
55441 2007-01-18  Jim Meyering  <jim@meyering.net>
55442
55443         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55444         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55445         than the race-prone "test -d sys || mkdir sys".
55446         (configure.ac): Use AC_PROG_MKDIR_P.
55447         * modules/sys_select: Likewise.
55448         * modules/sys_socket: Likewise.
55449         * modules/sys_time: Likewise.
55450
55451 2007-01-18  Eric Blake  <ebb9@byu.net>
55452
55453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55454         replace gettimeofday.
55455         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55456         name, to avoid infinite recursion.
55457
55458 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55461         module sys_time.
55462         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55463         assume timespec.h defines struct timeval.
55464         * lib/settime.c: Likewise.
55465         * lib/utimens.c: Likewise.
55466         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55467         since we now assume the gettimeofday module.
55468         * lib/tempname.c (__gen_tempname): Likewise.
55469         * lib/gettimeofday.h: Remove.
55470         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55471         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55472         Include <time.h>, for 'time()'.
55473         (localtime_buffer_addr): Also use this workaround if
55474         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55475         to simplify the uses.  All uses changed.
55476         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55477         that #undef is inside {}, and 'const' follows type name consistently.
55478         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55479         (gettimeofday): Do not use the maximum possible value for
55480         tv->tv_usec, since that might break usages other than ls.c.
55481         Instead, we'll leave ls.c alone.  This undoes today's patch
55482         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55483         we've never observed the problem but might as well keep the
55484         canary.
55485         * lib/nanosleep.c: Include timespec.h first, for interface check.
55486         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55487         now assume the sys_time module.
55488         * lib/tempname.c: Likewise.
55489         * lib/timespec.h: Likewise.
55490         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55491         needed.
55492         * lib/strftime.c: Likewise.
55493         * lib/timespec.h: Likewise.
55494         * lib/posixtm.c: Include posixtm.h first, for interface check.
55495         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55496         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55497         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55498         * lib/sys_time_.h: New file.
55499         * lib/timespec.h (struct timespec): Use long int, not long.
55500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55501         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55502         Remove obsolescent call to AC_HEADER_TIME.
55503         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55505         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55506         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55507         Likewise.
55508         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55509         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55511         into the sys_time module.  Check for gettimeofday just once.
55512         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55513         for gettimeofday signature to just check the signature.  Merely
55514         compile it, since linking doesn't test signature.  Improve test for
55515         whether gettimeofday.o is actually needed.
55516         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55517         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55518         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55519         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55520         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55521         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55522         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55523         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55524         than worrying about sys/time.h.
55525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55526         Don't bother worrying about TIME_WITH_SYS_TIME.
55527         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55528         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55529         * m4/sys_time_h.m4: New file.
55530         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55531         Don't include sys/time.h.  Return from main rather than exiting.
55532         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55533         all uses changed.
55534         * modules/gethrxtime (Depends-on): Add sys_time.
55535         * modules/gettime (Depends-on): Likewise.
55536         * modules/gettimeofday (Depends-on): Likewise.
55537         * modules/nanosleep (Depends-on): Likewise.
55538         * modules/settime (Depends-on): Likewise.
55539         * modules/tempname (Depends-on): Likewise.
55540         * modules/utimens (Depends-on): Likewise.
55541         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55542         (Include): Change back to <sys/time.h>.
55543         (Maintainer): Add self.
55544         * modules/sys_time: New file.
55545         * modules/tempname (Depends-on): Add gettimeofday.
55546         * tests/test-gettimeofday.c: Include <sys/time.h>
55547         rather than gettimeofday.h.
55548
55549 2007-01-17  Bruno Haible  <bruno@clisp.org>
55550
55551         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55552         the license default to GPL.
55553         (func_create_testdir): Don't complain if a module is LGPL and its
55554         tests module depends on GPLed modules.
55555
55556 2007-01-17  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/gettimeofday.c (gettimeofday): Add code for the case
55559         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55560         maximum possible value for tv->tv_usec, rather than the minimum one.
55561
55562 2005-10-08  Martin Lambers  <marlam@marlam.de>
55563 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55564 2007-01-16  Bruno Haible  <bruno@clisp.org>
55565
55566         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55567         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55568         gl_FUNC_GETTIMEOFDAY.
55569         (Include): Add gettimeofday.h.
55570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55571         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55572         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55573         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55574         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55575         * lib/gettimeofday.h: New file.
55576         * lib/gettimeofday.c: Include <sys/timeb.h>.
55577         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55578         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55579         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55580         fall back on time().
55581
55582         * tests/test-gettimeofday.c: New file.
55583         * modules/gettimeofday-tests: New file.
55584
55585 2007-01-16  Eric Blake  <ebb9@byu.net>
55586
55587         * modules/fnmatch (Depends-on): Depend on wchar.
55588         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55589         * m4/fnmatch.m4: Likewise.
55590         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55591         * m4/mbchar.m4: Likewise.
55592         * modules/mbswidth (Depends-on): Depend on wchar.
55593         * lib/mbswidth.c: Assume <wchar.h>.
55594         * m4/mbswidth.m4: Likewise.
55595         * modules/quotearg (Depends-on): Depend on wchar.
55596         * lib/quotearg.c: Assume <wchar.h>.
55597         * m4/quotearg.m4: Likewise.
55598         * modules/regex (Depends-on): Depend on wchar.
55599         * lib/regex_internal.h: Assume <wchar.h>.
55600         * m4/regex.m4: Likewise.
55601         * modules/stdint (Depends-on): Depend on wchar.
55602         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55603         * m4/stdint.m4: Likewise.
55604         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55605         * modules/strftime (Depends-on): Depend on wchar.
55606         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55607         * modules/strtol (Depends-on): Depend on wchar.
55608         * lib/strtol.c: Assume <wchar.h>.
55609         * modules/wcwidth (Depends-on): Depend on wchar.
55610         * lib/wcwidth.h: Assume <wchar.h>.
55611         * m4/wcwidth.m4: Likewise.
55612
55613 2007-01-16  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/csharpexec-script: New, created from...
55616         * modules/csharpexec: ... this.
55617
55618 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55619
55620         * modules/javaexec-script: New, created from...
55621         * modules/javaexec: ... this.
55622
55623 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55624
55625         * modules/poll (Dependencies): Add sys_select.
55626
55627 2007-01-15  Jim Meyering  <jim@meyering.net>
55628
55629         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55630         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55631         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55632         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55633
55634 2007-01-15  Bruno Haible  <bruno@clisp.org>
55635
55636         * modules/striconveh: New file.
55637         * lib/striconveh.h: New file.
55638         * lib/striconveh.c: New file.
55639         * MODULES.html.sh (Internationalization functions): Add striconveh.
55640
55641         * modules/striconveh-tests: New file.
55642         * tests/test-striconveh.c: New file.
55643
55644 2007-01-15  Bruno Haible  <bruno@clisp.org>
55645
55646         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55647         not from GNU libiconv or GNU libc.
55648
55649 2007-01-15  Bruno Haible  <bruno@clisp.org>
55650
55651         * doc/gnulib-intro.texi (Copyright): Explain the different license
55652         terms for module descriptions, autoconf macros, tests, documentation.
55653
55654 2007-01-14  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/striconv-tests: New file.
55657         * tests/test-striconv.c: New file.
55658
55659 2007-01-14  Bruno Haible  <bruno@clisp.org>
55660
55661         * modules/iconv-tests: New file.
55662         * tests/test-iconv.c: New file.
55663
55664 2007-01-14  Bruno Haible  <bruno@clisp.org>
55665
55666         * gnulib-tool (func_get_license): For test modules, use the license of
55667         the main module.
55668
55669 2007-01-14  Bruno Haible  <bruno@clisp.org>
55670
55671         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55672         if iconv is found to exist.
55673
55674 2007-01-14  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/c-ctype-tests: New file.
55677         * tests/test-c-ctype.c: New file.
55678
55679 2007-01-14  Bruno Haible  <bruno@clisp.org>
55680
55681         * modules/binary-io-tests: New file.
55682         * tests/test-binary-io.sh: New file.
55683         * tests/test-binary-io.c: New file.
55684
55685 2007-01-14  Bruno Haible  <bruno@clisp.org>
55686
55687         * modules/array-oset-tests: New file.
55688         * tests/test-array_oset.c: New file.
55689
55690 2007-01-14  Bruno Haible  <bruno@clisp.org>
55691
55692         * modules/array-list-tests: New file.
55693         * tests/test-array_list.c: New file.
55694
55695 2007-01-14  Bruno Haible  <bruno@clisp.org>
55696
55697         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55698         and make.
55699         Reported by Simon Josefsson in
55700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55701
55702 2007-01-14  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/allocsa-tests: New file.
55705         * tests/test-allocsa.c: New file.
55706
55707 2007-01-14  Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/fchdir (Depends-on): Add absolute-header.
55710         * modules/unistd (Depends-on): Likewise.
55711
55712 2006-12-30  Bruno Haible  <bruno@clisp.org>
55713
55714         * modules/fchdir: New file.
55715         * modules/unistd (Files): Add lib/unistd_.h.
55716         (Makefile.am): Generate unistd.h from unistd_.h.
55717         * lib/fchdir.c: New file.
55718         * lib/dirent_.h: New file.
55719         * lib/unistd_.h: New file.
55720         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55721         * m4/fchdir.m4: New file.
55722         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55723         (gl_HEADER_UNISTD): Invoke it.
55724         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55725         function.
55726         * lib/backupfile.c (opendir, closedir): Undefine.
55727         * lib/chown.c (open, close): Undefine.
55728         * lib/clean-temp.c (open, close): Undefine.
55729         * lib/copy-file.c (open, close): Undefine.
55730         * lib/execute.c (open, close): Undefine.
55731         * lib/fsusage.c (open, close): Undefine.
55732         * lib/gc-gnulib.c (open, close): Undefine.
55733         * lib/getcwd.c (opendir, closedir): Undefine.
55734         * lib/glob.c (opendir, closedir): Undefine.
55735         * lib/javacomp.c (open, close): Undefine.
55736         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55737         * lib/openat-proc.c (open, close): Undefine.
55738         * lib/pagealign_alloc.c (open, close): Undefine.
55739         * lib/pipe.c (open, close): Undefine.
55740         * lib/progreloc.c (open, close): Undefine.
55741         * lib/savedir.c (opendir, closedir): Undefine.
55742         * lib/utime.c (open, close): Undefine.
55743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55744
55745 2007-01-10  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55748
55749 2007-01-12  Eric Blake  <ebb9@byu.net>
55750
55751         Provide a robust <wchar.h>.  Further simplifications are now
55752         possible in other modules, but not included here.
55753         * modules/wchar: New module.
55754         * m4/wchar.m4: New file.
55755         * lib/wchar_.h: Likewise.
55756         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55757         of the new module.
55758         * MODULES.html.sh (Extended multibyte and wide character utilities):
55759         New section.
55760
55761 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55764         to a reasonable default for memory allocation.
55765         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55766         file system that reports garbage st_size values for symlinks.
55767         Problem reported by Liyang Hu.
55768
55769 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55770
55771         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55772         Emacs .#* auto-save files).
55773
55774 2007-01-11  Bruno Haible  <bruno@clisp.org>
55775
55776         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55777         directory.
55778
55779 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55780
55781         Use @...@ consistently in lib/wctype_.h.
55782         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55783         on it being set to 1 or 0.
55784         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55785         go back to AC_SUBSTing it.
55786         * modules/wctype (Makefile.am): Undo previous change.
55787
55788 2007-01-10  Eric Blake  <ebb9@byu.net>
55789
55790         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55791         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55792         * modules/wctype (Makefile.am): Likewise.
55793         Reported by Chris McGuire.
55794
55795 2007-01-10  Jim Meyering  <jim@meyering.net>
55796
55797         fts.c: a small readability/maintainability improvement
55798         * lib/fts.c (fts_read): Make this code slightly more readable and
55799         maintainable by hoisting the "sp->fts_cur = p" assignments to
55800         immediately follow the statements that set P.  Derived from
55801         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55802
55803 2007-01-10  Eric Blake  <ebb9@byu.net>
55804
55805         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55806         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55808         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55809         Reported by Chris McGuire.
55810
55811 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55812
55813         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55814         in sed script.
55815
55816 2007-01-09  Bruno Haible  <bruno@clisp.org>
55817
55818         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55819         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55820         variables.
55821         (func_module): Use them.
55822
55823 2007-01-09  Bruno Haible  <bruno@clisp.org>
55824
55825         * modules/unistr/base: New file.
55826         * lib/unistr.h: New file.
55827
55828         * modules/unistr/u8-to-u16: New file.
55829         * lib/unistr/u8-to-u16.c: New file.
55830
55831         * modules/unistr/u8-to-u32: New file.
55832         * lib/unistr/u8-to-u32.c: New file.
55833
55834         * modules/unistr/u16-to-u8: New file.
55835         * lib/unistr/u16-to-u8.c: New file.
55836
55837         * modules/unistr/u16-to-u32: New file.
55838         * lib/unistr/u16-to-u32.c: New file.
55839
55840         * modules/unistr/u32-to-u8: New file.
55841         * lib/unistr/u32-to-u8.c: New file.
55842
55843         * modules/unistr/u32-to-u16: New file.
55844         * lib/unistr/u32-to-u16.c: New file.
55845
55846         * modules/unistr/u8-check: New file.
55847         * modules/unistr/u16-check: New file.
55848         * modules/unistr/u32-check: New file.
55849         * lib/unistr/u8-check.c: New file.
55850         * lib/unistr/u16-check.c: New file.
55851         * lib/unistr/u32-check.c: New file.
55852
55853         * modules/unistr/u8-chr: New file.
55854         * modules/unistr/u16-chr: New file.
55855         * modules/unistr/u32-chr: New file.
55856         * lib/unistr/u8-chr.c: New file.
55857         * lib/unistr/u16-chr.c: New file.
55858         * lib/unistr/u32-chr.c: New file.
55859
55860         * modules/unistr/u8-cmp: New file.
55861         * modules/unistr/u16-cmp: New file.
55862         * modules/unistr/u32-cmp: New file.
55863         * lib/unistr/u8-cmp.c: New file.
55864         * lib/unistr/u16-cmp.c: New file.
55865         * lib/unistr/u32-cmp.c: New file.
55866
55867         * modules/unistr/u8-cpy: New file.
55868         * modules/unistr/u16-cpy: New file.
55869         * modules/unistr/u32-cpy: New file.
55870         * lib/unistr/u8-cpy.c: New file.
55871         * lib/unistr/u16-cpy.c: New file.
55872         * lib/unistr/u32-cpy.c: New file.
55873         * lib/unistr/u-cpy.h: New file.
55874
55875         * modules/unistr/u8-cpy-alloc: New file.
55876         * modules/unistr/u16-cpy-alloc: New file.
55877         * modules/unistr/u32-cpy-alloc: New file.
55878         * lib/unistr/u8-cpy-alloc.c: New file.
55879         * lib/unistr/u16-cpy-alloc.c: New file.
55880         * lib/unistr/u32-cpy-alloc.c: New file.
55881         * lib/unistr/u-cpy-alloc.h: New file.
55882
55883         * modules/unistr/u8-endswith: New file.
55884         * modules/unistr/u16-endswith: New file.
55885         * modules/unistr/u32-endswith: New file.
55886         * lib/unistr/u8-endswith.c: New file.
55887         * lib/unistr/u16-endswith.c: New file.
55888         * lib/unistr/u32-endswith.c: New file.
55889         * lib/unistr/u-endswith.h: New file.
55890
55891         * modules/unistr/u8-mblen: New file.
55892         * modules/unistr/u16-mblen: New file.
55893         * modules/unistr/u32-mblen: New file.
55894         * lib/unistr/u8-mblen.c: New file.
55895         * lib/unistr/u16-mblen.c: New file.
55896         * lib/unistr/u32-mblen.c: New file.
55897
55898         * modules/unistr/u8-mbtouc: New file.
55899         * modules/unistr/u16-mbtouc: New file.
55900         * modules/unistr/u32-mbtouc: New file.
55901         * lib/unistr/u8-mbtouc.c: New file.
55902         * lib/unistr/u16-mbtouc.c: New file.
55903         * lib/unistr/u32-mbtouc.c: New file.
55904
55905         * modules/unistr/u8-mbtouc-safe: New file.
55906         * modules/unistr/u16-mbtouc-safe: New file.
55907         * modules/unistr/u32-mbtouc-safe: New file.
55908         * lib/unistr/u8-mbtouc-safe.c: New file.
55909         * lib/unistr/u16-mbtouc-safe.c: New file.
55910         * lib/unistr/u32-mbtouc-safe.c: New file.
55911
55912         * modules/unistr/u8-move: New file.
55913         * modules/unistr/u16-move: New file.
55914         * modules/unistr/u32-move: New file.
55915         * lib/unistr/u8-move.c: New file.
55916         * lib/unistr/u16-move.c: New file.
55917         * lib/unistr/u32-move.c: New file.
55918         * lib/unistr/u-move.h: New file.
55919
55920         * modules/unistr/u8-next: New file.
55921         * modules/unistr/u16-next: New file.
55922         * modules/unistr/u32-next: New file.
55923         * lib/unistr/u8-next.c: New file.
55924         * lib/unistr/u16-next.c: New file.
55925         * lib/unistr/u32-next.c: New file.
55926
55927         * modules/unistr/u8-prev: New file.
55928         * modules/unistr/u16-prev: New file.
55929         * modules/unistr/u32-prev: New file.
55930         * lib/unistr/u8-prev.c: New file.
55931         * lib/unistr/u16-prev.c: New file.
55932         * lib/unistr/u32-prev.c: New file.
55933
55934         * modules/unistr/u8-set: New file.
55935         * modules/unistr/u16-set: New file.
55936         * modules/unistr/u32-set: New file.
55937         * lib/unistr/u8-set.c: New file.
55938         * lib/unistr/u16-set.c: New file.
55939         * lib/unistr/u32-set.c: New file.
55940         * lib/unistr/u-set.h: New file.
55941
55942         * modules/unistr/u8-startswith: New file.
55943         * modules/unistr/u16-startswith: New file.
55944         * modules/unistr/u32-startswith: New file.
55945         * lib/unistr/u8-startswith.c: New file.
55946         * lib/unistr/u16-startswith.c: New file.
55947         * lib/unistr/u32-startswith.c: New file.
55948         * lib/unistr/u-startswith.h: New file.
55949
55950         * modules/unistr/u8-stpcpy: New file.
55951         * modules/unistr/u16-stpcpy: New file.
55952         * modules/unistr/u32-stpcpy: New file.
55953         * lib/unistr/u8-stpcpy.c: New file.
55954         * lib/unistr/u16-stpcpy.c: New file.
55955         * lib/unistr/u32-stpcpy.c: New file.
55956         * lib/unistr/u-stpcpy.h: New file.
55957
55958         * modules/unistr/u8-stpncpy: New file.
55959         * modules/unistr/u16-stpncpy: New file.
55960         * modules/unistr/u32-stpncpy: New file.
55961         * lib/unistr/u8-stpncpy.c: New file.
55962         * lib/unistr/u16-stpncpy.c: New file.
55963         * lib/unistr/u32-stpncpy.c: New file.
55964         * lib/unistr/u-stpncpy.h: New file.
55965
55966         * modules/unistr/u8-strcat: New file.
55967         * modules/unistr/u16-strcat: New file.
55968         * modules/unistr/u32-strcat: New file.
55969         * lib/unistr/u8-strcat.c: New file.
55970         * lib/unistr/u16-strcat.c: New file.
55971         * lib/unistr/u32-strcat.c: New file.
55972         * lib/unistr/u-strcat.h: New file.
55973
55974         * modules/unistr/u8-strchr: New file.
55975         * modules/unistr/u16-strchr: New file.
55976         * modules/unistr/u32-strchr: New file.
55977         * lib/unistr/u8-strchr.c: New file.
55978         * lib/unistr/u16-strchr.c: New file.
55979         * lib/unistr/u32-strchr.c: New file.
55980
55981         * modules/unistr/u8-strcmp: New file.
55982         * modules/unistr/u16-strcmp: New file.
55983         * modules/unistr/u32-strcmp: New file.
55984         * lib/unistr/u8-strcmp.c: New file.
55985         * lib/unistr/u16-strcmp.c: New file.
55986         * lib/unistr/u32-strcmp.c: New file.
55987
55988         * modules/unistr/u8-strcpy: New file.
55989         * modules/unistr/u16-strcpy: New file.
55990         * modules/unistr/u32-strcpy: New file.
55991         * lib/unistr/u8-strcpy.c: New file.
55992         * lib/unistr/u16-strcpy.c: New file.
55993         * lib/unistr/u32-strcpy.c: New file.
55994         * lib/unistr/u-strcpy.h: New file.
55995
55996         * modules/unistr/u8-strcspn: New file.
55997         * modules/unistr/u16-strcspn: New file.
55998         * modules/unistr/u32-strcspn: New file.
55999         * lib/unistr/u8-strcspn.c: New file.
56000         * lib/unistr/u16-strcspn.c: New file.
56001         * lib/unistr/u32-strcspn.c: New file.
56002         * lib/unistr/u-strcspn.h: New file.
56003
56004         * modules/unistr/u8-strdup: New file.
56005         * modules/unistr/u16-strdup: New file.
56006         * modules/unistr/u32-strdup: New file.
56007         * lib/unistr/u8-strdup.c: New file.
56008         * lib/unistr/u16-strdup.c: New file.
56009         * lib/unistr/u32-strdup.c: New file.
56010         * lib/unistr/u-strdup.h: New file.
56011
56012         * modules/unistr/u8-strlen: New file.
56013         * modules/unistr/u16-strlen: New file.
56014         * modules/unistr/u32-strlen: New file.
56015         * lib/unistr/u8-strlen.c: New file.
56016         * lib/unistr/u16-strlen.c: New file.
56017         * lib/unistr/u32-strlen.c: New file.
56018         * lib/unistr/u-strlen.h: New file.
56019
56020         * modules/unistr/u8-strmblen: New file.
56021         * modules/unistr/u16-strmblen: New file.
56022         * modules/unistr/u32-strmblen: New file.
56023         * lib/unistr/u8-strmblen.c: New file.
56024         * lib/unistr/u16-strmblen.c: New file.
56025         * lib/unistr/u32-strmblen.c: New file.
56026
56027         * modules/unistr/u8-strmbtouc: New file.
56028         * modules/unistr/u16-strmbtouc: New file.
56029         * modules/unistr/u32-strmbtouc: New file.
56030         * lib/unistr/u8-strmbtouc.c: New file.
56031         * lib/unistr/u16-strmbtouc.c: New file.
56032         * lib/unistr/u32-strmbtouc.c: New file.
56033
56034         * modules/unistr/u8-strncat: New file.
56035         * modules/unistr/u16-strncat: New file.
56036         * modules/unistr/u32-strncat: New file.
56037         * lib/unistr/u8-strncat.c: New file.
56038         * lib/unistr/u16-strncat.c: New file.
56039         * lib/unistr/u32-strncat.c: New file.
56040         * lib/unistr/u-strncat.h: New file.
56041
56042         * modules/unistr/u8-strncmp: New file.
56043         * modules/unistr/u16-strncmp: New file.
56044         * modules/unistr/u32-strncmp: New file.
56045         * lib/unistr/u8-strncmp.c: New file.
56046         * lib/unistr/u16-strncmp.c: New file.
56047         * lib/unistr/u32-strncmp.c: New file.
56048
56049         * modules/unistr/u8-strncpy: New file.
56050         * modules/unistr/u16-strncpy: New file.
56051         * modules/unistr/u32-strncpy: New file.
56052         * lib/unistr/u8-strncpy.c: New file.
56053         * lib/unistr/u16-strncpy.c: New file.
56054         * lib/unistr/u32-strncpy.c: New file.
56055         * lib/unistr/u-strncpy.h: New file.
56056
56057         * modules/unistr/u8-strnlen: New file.
56058         * modules/unistr/u16-strnlen: New file.
56059         * modules/unistr/u32-strnlen: New file.
56060         * lib/unistr/u8-strnlen.c: New file.
56061         * lib/unistr/u16-strnlen.c: New file.
56062         * lib/unistr/u32-strnlen.c: New file.
56063         * lib/unistr/u-strnlen.h: New file.
56064
56065         * modules/unistr/u8-strpbrk: New file.
56066         * modules/unistr/u16-strpbrk: New file.
56067         * modules/unistr/u32-strpbrk: New file.
56068         * lib/unistr/u8-strpbrk.c: New file.
56069         * lib/unistr/u16-strpbrk.c: New file.
56070         * lib/unistr/u32-strpbrk.c: New file.
56071         * lib/unistr/u-strpbrk.h: New file.
56072
56073         * modules/unistr/u8-strrchr: New file.
56074         * modules/unistr/u16-strrchr: New file.
56075         * modules/unistr/u32-strrchr: New file.
56076         * lib/unistr/u8-strrchr.c: New file.
56077         * lib/unistr/u16-strrchr.c: New file.
56078         * lib/unistr/u32-strrchr.c: New file.
56079
56080         * modules/unistr/u8-strspn: New file.
56081         * modules/unistr/u16-strspn: New file.
56082         * modules/unistr/u32-strspn: New file.
56083         * lib/unistr/u8-strspn.c: New file.
56084         * lib/unistr/u16-strspn.c: New file.
56085         * lib/unistr/u32-strspn.c: New file.
56086         * lib/unistr/u-strspn.h: New file.
56087
56088         * modules/unistr/u8-strstr: New file.
56089         * modules/unistr/u16-strstr: New file.
56090         * modules/unistr/u32-strstr: New file.
56091         * lib/unistr/u8-strstr.c: New file.
56092         * lib/unistr/u16-strstr.c: New file.
56093         * lib/unistr/u32-strstr.c: New file.
56094         * lib/unistr/u-strstr.h: New file.
56095
56096         * modules/unistr/u8-strtok: New file.
56097         * modules/unistr/u16-strtok: New file.
56098         * modules/unistr/u32-strtok: New file.
56099         * lib/unistr/u8-strtok.c: New file.
56100         * lib/unistr/u16-strtok.c: New file.
56101         * lib/unistr/u32-strtok.c: New file.
56102         * lib/unistr/u-strtok.h: New file.
56103
56104         * modules/unistr/u8-uctomb: New file.
56105         * modules/unistr/u16-uctomb: New file.
56106         * modules/unistr/u32-uctomb: New file.
56107         * lib/unistr/u8-uctomb.c: New file.
56108         * lib/unistr/u16-uctomb.c: New file.
56109         * lib/unistr/u32-uctomb.c: New file.
56110
56111         * MODULES.html.sh (Unicode string functions): Add the new modules.
56112
56113 2007-01-08  Bruno Haible  <bruno@clisp.org>
56114
56115         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56116         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56117         subdirectories.
56118
56119 2007-01-08  Karl Berry  <karl@gnu.org>
56120
56121         * doc/error.texi: mention that main() fns must set program_name
56122         when progname is used.
56123
56124 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56127         WCTYPE_H is empty, for the benefit of builds from non-distclean
56128         directories.  Problem reported by Eric Blake in
56129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56130
56131 2007-01-08  Bruno Haible  <bruno@clisp.org>
56132
56133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56134         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56135         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56136         PROVIDE_CANONICALIZE_FILENAME_MODE.
56137         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56138
56139 2007-01-08  Bruno Haible  <bruno@clisp.org>
56140
56141         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56142         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56143         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56144         * lib/fts.c: Likewise.
56145         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56146
56147 2006-12-25  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/utf8-ucs4-safe: New file.
56150         * lib/utf8-ucs4-safe.h: New file.
56151         * lib/unistr/utf8-ucs4-safe.c: New file.
56152
56153         * modules/utf16-ucs4-safe: New file.
56154         * lib/utf16-ucs4-safe.h: New file.
56155         * lib/unistr/utf16-ucs4-safe.c: New file.
56156
56157         * MODULES.html.sh (Unicode string functions): Add the new modules.
56158
56159 2007-01-08  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56162         (Depends-on): Add unitypes.
56163         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56164         (u8_mbtouc_aux): Move out to separate file.
56165         (u8_mbtouc): Use ucs4_t, uint8_t types.
56166         * lib/unistr/utf8-ucs4.c: New file.
56167
56168         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56169         (Depends-on): Add unitypes.
56170         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56171         (u16_mbtouc_aux): Move out to separate file.
56172         (u16_mbtouc): Use ucs4_t, uint16_t types.
56173         * lib/unistr/utf16-ucs4.c: New file.
56174
56175         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56176         (Depends-on): Add unitypes.
56177         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56178         (u8_uctomb_aux): Move out to separate file.
56179         (u8_uctomb): Use ucs4_t, uint8_t types.
56180         * lib/unistr/ucs4-utf8.c: New file.
56181
56182         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56183         (Depends-on): Add unitypes.
56184         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56185         (u16_uctomb_aux): Move out to separate file.
56186         (u16_uctomb): Use ucs4_t, uint16_t types.
56187         * lib/unistr/ucs4-utf16.c: New file.
56188
56189 2006-12-25  Bruno Haible  <bruno@clisp.org>
56190
56191         * modules/unitypes: New file.
56192         * lib/unitypes.h: New file.
56193         * MODULES.html.sh (func_all_modules): New section "Unicode string
56194         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56195         this section. Add unitypes.
56196
56197 2007-01-08  Bruno Haible  <bruno@clisp.org>
56198
56199         Avoid variable names that conflict with those from libtool.
56200         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56201         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56202         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56203         library_names_spec to acl_library_names_spec, hardcode_* to
56204         acl_hardcode_*.
56205         Reported by Ralf Wildenhues.
56206
56207 2007-01-08  Bruno Haible  <bruno@clisp.org>
56208
56209         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56210         definition.
56211         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56212         definition.
56213         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56214         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56215         definition.
56216         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56217         definition.
56218         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56219         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56220         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56221         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56222         definition.
56223         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56224         definition.
56225         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56226         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56227         GC_USE_<algorithm>.
56228         * lib/gc-libgcrypt.c: Likewise.
56229         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56230         * modules/gc-arctwo (configure.ac): Likewise.
56231         * modules/gc-des (configure.ac): Likewise.
56232         * modules/gc-hmac-md5 (configure.ac): Likewise.
56233         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56234         * modules/gc-md2 (configure.ac): Likewise.
56235         * modules/gc-md4 (configure.ac): Likewise.
56236         * modules/gc-md5 (configure.ac): Likewise.
56237         * modules/gc-random (configure.ac): Likewise.
56238         * modules/gc-rijndael (configure.ac): Likewise.
56239         * modules/gc-sha1 (configure.ac): Likewise.
56240
56241 2007-01-08  Bruno Haible  <bruno@clisp.org>
56242
56243         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56244         macro definition.
56245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56246         definition.
56247         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56248         definition.
56249         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56250         * modules/fcntl-safer (configure.ac): Likewise.
56251         * modules/fopen-safer (configure.ac): Likewise.
56252         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56253         GNULIB_FWRITEERROR macro definition.
56254
56255 2007-01-08  Bruno Haible  <bruno@clisp.org>
56256
56257         * m4/gnulib-common.m4: New file.
56258         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56259         (func_get_filelist): Add m4/gnulib-common.m4.
56260
56261 2007-01-08  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56264         command.
56265
56266 2007-01-08  Jim Meyering  <jim@meyering.net>
56267
56268         Use a more robust test for a "can't happen" condition.
56269         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56270         narrowed the st_size value.  Presuming the "can't happen" condition
56271         is true, that narrowing could conceivably convert an invalid st_size
56272         value into a valid one.  Instead, use a change based on Matthew
56273         Woehlke's original patch.
56274
56275         Slight readability improvement: use an assert-like macro
56276         in place of literal "abort ()" uses.
56277         * lib/fts.c (fts_assert): Define.
56278         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56279         Use this macro instead of a bare 'abort'.
56280
56281 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56284         simply work around them.
56285         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56286         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56287         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56288         declaring.
56289         Don't bother to define as macros, since the standard doesn't require it.
56290         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56291         longer worry about IRIX 5.3.
56292         (HAVE_WCTYPE_CTMP_BUG): Remove.
56293
56294 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56297         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56298         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56299         Problems reported by Georg Schwarz for IRIX 5.3.
56300
56301         * gnulib-tool (autoconf_minversion): Take the maximum version number
56302         found, not the minimum.  Problem reported by James Youngman.
56303
56304 2007-01-03  Karl Berry  <karl@gnu.org>
56305
56306         * doc/error.texi: new file, explaining interaction with progname.
56307         * doc/gnulib.texi: include it.  Update copyright.
56308
56309 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56310
56311         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56312         AC_CANONICAL_HOST, to improve autobuild outputs.
56313
56314 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56315             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56316
56317         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56318         sockets, server sockets, and other file descriptors.  Count errors
56319         to compute the return value.  Reorder the code a bit to be easier
56320         to follow.  Don't set event bits that were not requested (except
56321         POLLERR and POLLHUP).
56322
56323 2007-01-01  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56326
56327 2007-01-03  Jim Meyering  <jim@meyering.net>
56328
56329         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56330
56331 2007-01-02  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/settime (Include): Require timespec.h.
56334         * modules/nanosleep (Include): Likewise.
56335
56336 2007-01-01  Bruno Haible  <bruno@clisp.org>
56337
56338         * gnulib-tool (func_emit_copyright_notice): Bump year.
56339         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56340
56341 2007-01-01  Bruno Haible  <bruno@clisp.org>
56342
56343         Improve support for OpenBSD.
56344         * build-aux/config.rpath (libname_spec): Export.
56345         (library_names_spec): New variable. Export.
56346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56347         library_names_spec from the config.rpath output. Locate shared library
56348         through the name pattern in library_names_spec.
56349
56350 2007-01-01  Eric Blake  <ebb9@byu.net>
56351
56352         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56353
56354 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56355
56356         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56357         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56358         assume the C locale, and avoid an "eval" that could cause trouble.
56359         Problem with SORT reported by Bob Proulx.
56360
56361         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56362         Define.  Trivial patch from Henning Nielsen Lund, originally
56363         sent to bug-grep@gnu.org today.
56364
56365 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56368         struct stat.  Problem reported by Henning Nielsen Lund.
56369         * lib/acl.c: Include acl.h first, to check interface.  Don't
56370         bother to include sys/types.h and sys/stat.h again.
56371
56372 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         Import the following change from libc; problem reported by
56375         Sven Verdoolaege.
56376
56377         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56378
56379         [BZ #1373]
56380         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56381
56382 2006-12-28  Jim Meyering  <jim@meyering.net>
56383
56384         * build-aux/announce-gen: Do not assume that the package
56385         builds any of tar.gz, tar.bz2, and .xdelta files.
56386         Suggestion from Simon Josefsson.
56387
56388 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56389
56390         * modules/announce-gen: New file.
56391
56392 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56393
56394         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56395         handles its gotchas now.
56396         * lib/mbswidth.c: Likewise.
56397         * lib/wcwidth.h: Likewise.
56398         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56399         and iswcntrl; the wctype module does this stuff now.
56400         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56402         * modules/mbchar (Depends-on): Add wctype.
56403         * modules/mbswidth (Depends-on): Likewise.
56404         * modules/wcwidth (Depends-on): Likewise.
56405
56406 2006-12-27  Eric Blake  <ebb9@byu.net>
56407
56408         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56409         module uses more than what <wctype.h> is required to provide.
56410
56411 2006-12-26  Eric Blake  <ebb9@byu.net>
56412
56413         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56414
56415 2006-12-26  Eric Blake  <ebb9@byu.net>
56416
56417         * modules/absolute-header: New module.
56418         * modules/fcntl (Depends-on): Depend on it.
56419         * modules/inttypes (Depends-on): Likewise.
56420         * modules/stdint (Depends-on): Likewise.
56421         * modules/sys_stat (Depends-on): Likewise.
56422         * modules/wctype (Depends-on): Likewise.
56423         * MODULES.html.sh (Support for building libraries and
56424         executables): Document it.
56425
56426 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * gnulib-tool (SED): Remove, undoing previous change.
56429         The problem was that it broke coreutils on Solaris, because
56430         "sed --posix" leaked into a makefile.
56431         (sed): New alias, if 'alias' and GNU sed.
56432
56433 2006-12-24  Jim Meyering  <jim@meyering.net>
56434
56435         Work around an fchownat bug in glibc-2.4:
56436         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56437         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56438         in spite of the -P option.
56439         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56440         New macros.
56441         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56442         * modules/openat (Files): Add lib/fchownat.c.
56443         * lib/openat.c (fchownat): Don't define here.  Move to...
56444         * lib/fchownat.c: ...this new file.
56445
56446 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56447
56448         Fix bug reported by Bruno Haible in
56449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56450         where quotearg.c didn't compile on Mac OS X 10.2 because it
56451         lacks <wchar.h> and wint_t.
56452         * lib/wctype_.h (__wctype_wint_t): New type.
56453         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56455         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56456         Arg is now of type __wctype_wint_t, not wint_t.
56457         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56458         substitute HAVE_WINT_T.
56459         * modules/wctype (Files): Add m4/wint_t.m4.
56460         (wctype.h): Substitute HAVE_WINT_T.
56461
56462 2006-12-23  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56465
56466 2006-12-23  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56469         S_ISLNK.
56470         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56471         mingw.
56472
56473 2006-12-22  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/copy-file.c: Include acl.h.
56476         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56477         Close the file descriptors only after being done with copy_acl.
56478         * modules/copy-file (Depends-on): Add acl.
56479
56480 2006-12-22  Bruno Haible  <bruno@clisp.org>
56481
56482         * gnulib-tool (SED): New variable.
56483         Use $SED instead of sed everywhere.
56484
56485 2006-12-22  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/no-c++: New file.
56488         * m4/no-c++.m4: New file.
56489         * MODULES.html.sh (Support for building libraries and executables):
56490         Add no-c++.
56491
56492 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56493
56494         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56495         Include <limits.h>, and use its INT_MAX to rewrite the
56496         j loop so that it does not overflow 'int'.  Problem reported by
56497         Ralf Wildenhues in
56498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56499         Play it safe by shifting left by 1 rather than multiplying by 2,
56500         as GCC is less likely to optimize this away when the value
56501         is signed (when it assumes overflow leads to undefined behavior).
56502         Also, don't assume time_t uses two's complement.
56503
56504 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56505
56506         * MODULES.html.sh: New module wctype.
56507         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56508         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56509         <wctype.h>, since the new wctype module should fix this.
56510         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56511         the wctype module should arrange for it.
56512         * lib/regex_internal.h: Likewise.
56513         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56514         since the wctype module should handle this now.
56515         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56516         * modules/fnmatch (Depends-on): Add wctype.
56517         * modules/quotearg (Depends-on): Likewise.
56518         * modules/regex (Depends-on): Likewise.
56519
56520 2006-12-19  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56523         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56524
56525 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56526
56527         * modules/savewd (Depends-on): Fix dependency on fcntl.
56528
56529 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56530
56531         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56532         conforms to C99, rather than relying on the user's environment
56533         setting of STDINT_H.
56534
56535 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56536         and Eric Blake  <ebb9@byu.net>
56537
56538         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56539         This is more consistent with the other defines here.
56540         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56541         Port to z/OS.  Problem reported by Paul Gilmartin.
56542         Change local vars to use gl_ prefix rather than ac_.
56543         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56544         with other defines.
56545         * modules/double-slash-root: New module.
56546         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56547         (Depends-on): Add double-slash-root.
56548         * MODULES.html.sh (File system functions): Mention new module.
56549
56550 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56553         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56554         This is for the benefit of gzip, which doesn't do i18n.
56555
56556 2006-12-12  Jim Meyering  <jim@meyering.net>
56557
56558         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56559         Reported by Andreas Schwab <schwab@suse.de>.
56560
56561 2006-12-12  Bruno Haible  <bruno@clisp.org>
56562
56563         Merge these changes.
56564         2006-09-05  Bruno Haible  <bruno@clisp.org>
56565         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56566         iconv_alloc succeeded.
56567         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56568         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56569         test for " && dest " at the end - dest is always != NULL there. Call
56570         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56571         with 2xNULL arguments, also to flush the state storage. Handle the
56572         IRIX iconv behaviour. Realloc the final result, to throw away unused
56573         memory.
56574
56575 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56578         and fchmodat unconditionally, since glibc 2.4 has them.
56579         Problem reported by Arkadiusz Miskiewicz.
56580
56581 2006-12-10  Bruno Haible  <bruno@clisp.org>
56582
56583         * gnulib-tool (func_import): Show the include files only for those
56584         modules that are copied and specified.
56585         Reported by Karl Berry.
56586
56587 2006-12-08  Jim Meyering  <jim@meyering.net>
56588
56589         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56590         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56591
56592         * build-aux/announce-gen: Add two new options, both optional:
56593         --bootstrap-tools=TOOL_LIST
56594               a comma-separated list of tools, e.g.,
56595               autoconf,automake,bison,gnulib
56596         --gnulib-snapshot-date=DATE
56597               if gnulib is in the bootstrap tool list,
56598               then report this as the snapshot date.
56599               If not specified, use the current date/time.
56600               If you specify a date here, be sure it's UTC.
56601
56602 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56603
56604         * tests/test-argp-2.sh: Fix test to match actual output.
56605         (func_compare): Fix sed script to be portable.
56606
56607 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56608
56609         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56610         workaround for this case.  It is not autoconfigured now; offhand
56611         it's hard to see how to autoconfigure it.
56612
56613 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56616         a directory that is about to be chowned.  Such a directory's
56617         initial file permissions should permit the owner only and this
56618         should not be changed until after the chown, since the group and
56619         other bits would be incorrect if they granted permission before
56620         the chown.
56621
56622         Fix porting problem for iswctype reported by Georg Schwarz in:
56623         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56624         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56625         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56626         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56627         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56628
56629 2006-12-03  Jim Meyering  <jim@meyering.net>
56630
56631         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56632         p->fts_statp may not yet be defined.
56633         (fts_read): Instead, set it in the caller, once p->fts_statp is
56634         sure to be defined, and corresponds to a top-level directory.
56635         This bug made du -x fail.  Here's the coreutils test case:
56636         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56637         Reported by Mike Frysinger.
56638
56639 2006-12-01  Jim Meyering  <jim@meyering.net>
56640
56641         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56642         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56643         Reported by Simon Josefsson.
56644
56645 2006-11-30  Jim Meyering  <jim@meyering.net>
56646
56647         * m4/warning.m4: Use the all-permissive copyright notice
56648         recommended by RMS (rather than LGPL).
56649         * m4/vararrays.m4: Likewise.
56650         * m4/flexmember.m4: Likewise.
56651
56652 2006-11-29  Bruno Haible  <bruno@clisp.org>
56653
56654         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56655         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56656         using +=.
56657         Reported by Simon Josefsson <simon@josefsson.org>.
56658
56659 2006-11-28  James Youngman <jay@gnu.org>
56660
56661         * README: Advise users that they might find the bug-gnulib@gnu.org
56662         and autotools-announce@gnu.org mailing lists useful.
56663
56664 2006-11-28  Bruno Haible  <bruno@clisp.org>
56665
56666         * m4/ptrdiff_max.m4: Remove file.
56667
56668 2006-11-21  Bruno Haible  <bruno@clisp.org>
56669
56670         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56671         _AC_COMPUTE_INT.
56672         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56673         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56674         _AC_COMPUTE_INT.
56675         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56676         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56677         _AC_COMPUTE_INT.
56678         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56679
56680 2006-11-28  Jim Meyering  <jim@meyering.net>
56681
56682         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56683         warning from "gcc -Wshadow" about shadowing the builtin.
56684
56685 2006-11-27  Bruno Haible  <bruno@clisp.org>
56686
56687         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56688         _AC_COMPUTE_INT.
56689         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56690
56691 2006-11-27  Bruno Haible  <bruno@clisp.org>
56692             Paul Eggert  <eggert@cs.ucla.edu>
56693
56694         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56695
56696 2006-11-26  Bruno Haible  <bruno@clisp.org>
56697
56698         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56699         noinst_LTLIBRARIES.
56700
56701 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56702             Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56705         if compiling with "gcc -ansi".
56706
56707 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56708
56709         Fix some incompatibilities with gcc -ansi -pedantic.
56710         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56711         if compiling pedantically with GCC, unless it's C99 or later.
56712         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56713         it mishandles gcc -ansi -pedantic as well.
56714         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56715         if gcc -pedantic.
56716         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56717         initializers for struct if -pedantic, unless it's C99 or later.
56718
56719 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56720
56721         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56722         Don't close an fd more than once. Identical atimes indicate
56723         success, not failure.
56724
56725 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56726
56727         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56728
56729 2006-11-23  Jim Meyering  <jim@meyering.net>
56730
56731         * build-aux/announce-gen: New file.  From coreutils.
56732
56733 2006-11-22  Jim Meyering  <jim@meyering.net>
56734
56735         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56736         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56737         (fts_read): Use a temporary to narrow the overused st_size member
56738         before using it in a switch statement.  Reported by Matthew Woehlke.
56739
56740         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56741         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56742
56743 2006-11-20  Bruno Haible  <bruno@clisp.org>
56744
56745         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56746         changequote instead of pairs of brackets.
56747         Reported by Andreas Schwab <schwab@suse.de>.
56748
56749 2006-11-21  Jim Meyering  <jim@meyering.net>
56750
56751         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56752         so as to remain compatible with older compilers.
56753         Patch from Michael Deutschmann.
56754
56755 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * MODULES.html.sh (File system functions): Add openat.
56758
56759         * lib/openat.h (rpl_fstatat): New macro, if
56760         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56761         (fstatat): Define to rpl_fstatat under the same conditions,
56762         unless COMPILING_FSTATAT.
56763         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56764         seems to have the bug.
56765         * lib/fstatat.c: New file.
56766         * modules/openat (Files): Add it.
56767
56768 2006-11-20  Bruno Haible  <bruno@clisp.org>
56769
56770         * Makefile: New file.
56771
56772 2006-11-20  Jim Meyering  <jim@meyering.net>
56773
56774         The beginnings of syntax-related checks for gnulib.
56775         * lib/Makefile: New file.
56776         * lib/t-idcache: New script.  Ensure that the two halves of
56777         idcache.c stay in sync.
56778
56779         * lib/idcache.c: Adjust comments in user- and group- portions to
56780         be more accurate, and to be consistent with one another.
56781
56782 2006-11-20  Jim Meyering  <jim@meyering.net>
56783
56784         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56785         continue using the flexible array member (thus, this module performs
56786         half as many malloc calls), with the addition that...
56787         (getgroup, getuser): Consistently record a non-match via an empty
56788         "name" string, and map an empty string match to a NULL return value.
56789         * modules/idcache (Depends-on): Re-add flexmember.
56790
56791         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56792         (getuidbyname, getgroup, getgidbyname): Likewise.
56793
56794         Use cleaner syntax: NULL rather than 0.
56795         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56796
56797 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56800         It mishandled the case where the group was missing.
56801         Problem reported by Greg Schafer.
56802         * modules/idcache: Likewise.
56803
56804 2006-11-18  Jim Meyering  <jim@meyering.net>
56805
56806         * check-module (%exempt_header): Add exception for some
56807         conditionally-included headers.
56808
56809         * modules/i-ring (Depends-on): Add verify.
56810         (License): Change to LGPL.
56811
56812 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56813
56814         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56815         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56816         and inttostr.h.  Use snprintf rather than uinttostr, so that
56817         LGPLed code doesn't depend on GPLed.
56818
56819 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * modules/inline (License): Change from GPL to LGPL.
56822
56823 2006-11-17  Jim Meyering  <jim@meyering.net>
56824
56825         * modules/d-type (License): Switch to LGPL.
56826
56827 2006-11-15  Bruno Haible  <bruno@clisp.org>
56828
56829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56830
56831 2006-11-15  Eric Blake  <ebb9@byu.net>
56832
56833         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56834         the module dependency.
56835
56836 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56837             Bruno Haible  <bruno@clisp.org>
56838
56839         * gnulib-tool (func_create_testdir): Add license consistency check.
56840
56841 2006-11-15  Eric Blake  <ebb9@byu.net>
56842
56843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56844         random "(cached)" in configure output.
56845
56846 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56847
56848         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56849         test for conforming inttypes.h is both announced and cached.
56850
56851         * MODULES.html.sh (seen_modules, seen_files): New variables.
56852         (func_module): Rewrite to use a few less gnulib-tool and sed
56853         invocations.  Avoid a couple of quadratic algorithms for ...
56854         (missed_modules, missed_files): ... these, with ...
56855         (func_append, func_tmpdir): ... these new functions, from
56856         gnulib-tool.  Analogously, install traps for cleanup.
56857
56858         * tests/test-gc.c (main): Remove unused variables.
56859         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56860
56861 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56862
56863         * modules/inttostr (License): Change to LGPL.
56864
56865 2006-11-14  Eric Blake  <ebb9@byu.net>
56866
56867         * modules/tempname (License): Change to LGPL.
56868
56869 2006-11-14  Eric Blake  <ebb9@byu.net>
56870
56871         * doc/functions.texi (Function Portability): *printf functions on
56872         Cygwin now understand all POSIX size specifiers.
56873
56874 2006-11-14  Bruno Haible  <bruno@clisp.org>
56875
56876         * modules/c-ctype (License): Change to LGPL.
56877
56878 2006-11-12  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56881         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56882         for GNOME libraries, for which the include files are installed in
56883         subdirectories of $prefix/include.
56884
56885 2006-11-12  Bruno Haible  <bruno@clisp.org>
56886
56887         * m4/lib-link.m4: Require at least autoconf-2.54.
56888         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56889         name to underscores for the --with option.
56890
56891 2006-11-13  Bruno Haible  <bruno@clisp.org>
56892
56893         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56894         the tests directory.
56895         Reported by Ralf Wildenhues.
56896
56897 2006-11-13  Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56900         (func_emit_initmacro_end): Undo the override here.
56901         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56902         Works around the famous automake error in coreutils.
56903
56904 2006-11-13  Eric Blake  <ebb9@byu.net>
56905
56906         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56907         element, not its node.
56908
56909 2006-11-12  Bruno Haible  <bruno@clisp.org>
56910
56911         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56912         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56913
56914 2006-11-12  Bruno Haible  <bruno@clisp.org>
56915
56916         * gnulib-tool: New option --local-symlink.
56917         (func_usage): Document it.
56918         (lsymbolic): New variable.
56919         (func_import, func_create_testdir): If --symlink was not specified,
56920         test whether --local-symlink was specified and the file comes from
56921         the local_gnulib_dir.
56922
56923 2006-11-12  Bruno Haible  <bruno@clisp.org>
56924
56925         * gnulib-tool (func_ln): New function.
56926         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56927
56928 2006-11-12  Bruno Haible  <bruno@clisp.org>
56929
56930         Finish support for source files in subdirectories.
56931         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56932         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56933         AUTOMAKE_OPTIONS.
56934         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56935
56936 2006-11-12  Bruno Haible  <bruno@clisp.org>
56937
56938         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56939         EXTRA_lib_SOURCES augmentation.
56940         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56941
56942 2006-11-12  Jim Meyering  <jim@meyering.net>
56943
56944         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56945         file descriptors.  This also averts a failure on systems with
56946         native openat support when a traversed directory lacks "x" access.
56947         * lib/fts_.h: Include "i-ring.h"
56948         (struct FTS) [fts_fd_ring]: New member.
56949         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56950         (FCHDIR): Add parentheses.
56951         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56952         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56953         When descending, rather than simply closing the previous
56954         fts_cwd_fd value, push that file descriptor onto the ring.
56955         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56956         (fts_open): Initialize the new fd_ring member.
56957         (fts_close): Clear the ring.
56958         (fts_safe_changedir): When possible, use our new fd_ring to skip
56959         the diropen and fstat and dev/ino comparison that would normally
56960         accompany a virtual `chdir ("..")'.
56961
56962         * modules/fts (Depends-on): Add i-ring.
56963         * modules/i-ring: New module.
56964         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56965         * m4/i-ring.m4: New file.
56966
56967 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56968
56969         * gnulib-tool (func_create_testdir): Fix replacement of
56970         `build-aux' in configure.ac.  Run autotools in gltests
56971         subdirectory.
56972         (func_create_testdir, func_create_megatestdir, test): There is
56973         no need for '--force' in most autotool invocations in a new
56974         tree.  Actually fail the whole test if any of the tools, or the
56975         configure or make stages fail.
56976
56977         Sync from Automake.
56978         * build-aux/gnupload: Revert last change.  Add pointer to upload
56979         instructions of the GNU Maintenance Instructions.
56980         Suggestion by Karl Berry.
56981
56982 2006-11-10  Jim Meyering  <jim@meyering.net>
56983
56984         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56985
56986 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56987
56988         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56989         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56990         (bind_textdomain_codeset) [! ENABLE_NLS]:
56991         Evaluate all the arguments.  That way, callers get compatible behavior
56992         if the arguments have side effects.  Also, it avoids some GCC
56993         diagnostics in some cases; Joel E. Denny reported problems when Bison
56994         was configured with --enable-gcc-warnigs.
56995
56996 2006-11-10  Jim Meyering  <jim@meyering.net>
56997
56998         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56999         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57000         account.
57001
57002 2006-11-10  Jim Meyering  <jim@meyering.net>
57003
57004         * modules/inline: New file/module.
57005         * modules/xalloc (Files): Remove m4/inline.m4.
57006         (Depends-on): Add inline, instead.
57007         * modules/oset: Likewise.
57008         * modules/list: Likewise.
57009
57010 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57011
57012         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57013         Problem reported by Matthew Woehlke.
57014
57015 2006-11-09  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/tempname.c (gen_tempname): Remove variant that invokes
57018         __gen_tempname.
57019         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57020         __gen_tempname.
57021
57022 2006-11-08  Bruno Haible  <bruno@clisp.org>
57023
57024         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57025         to 'yes' instead of 'cross-compiling'.
57026
57027 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * lib/quotearg.h (quotearg_free): New decl.
57030         * lib/quotearg.c (quotearg_free): New function.
57031         (slot0, nslots, slotvec0, slotvec):
57032         Now file-scope so that quotearg_free can get at them.
57033
57034 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57035
57036         Sync from Automake.
57037         * build-aux/gnupload: Add missing 'gnu' to example URL.
57038         Report by Karl Berry.
57039
57040 2006-11-08  Bruno Haible  <bruno@clisp.org>
57041
57042         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57043         Suggested by Paul Eggert.
57044
57045 2006-11-08  Jim Meyering  <jim@meyering.net>
57046
57047         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57048         It's already included if !_LIBC.
57049         (fts_safe_changedir): Add a comment.
57050
57051 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57054         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57055         Matthew Woehlke.
57056
57057         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57058         definitions up, to avoid colliding with change below.
57059         (static_inline) [HAVE_INLINE]: New macro.
57060         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57061         Provide extern decls when !HAVE_INLINE.  Do not define unless
57062         static_inline is defined, either by us or by xmalloc.c.  Use
57063         static_inline rather than static inline.
57064         (XCALLOC): Optimize sizeof(T) = 1 case.
57065         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57066
57067 2006-11-07  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57070         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57071         AC_C_INLINE.
57072         * modules/xalloc (Files): Add m4/inline.m4.
57073
57074 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57075
57076         * README: Fix typo.
57077         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57078         (Miscellanous Notes): ...from this.
57079
57080 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57083         Mention that offsetof should be used instead of sizeof.
57084         From Bruno Haible.
57085
57086 2006-11-07  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57089
57090 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57093         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57094         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57095         (gl_tree_add_before, gl_tree_add_after):
57096         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57097         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57098         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57099         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57100         (gl_linked_add_after, gl_linked_add_at): Likewise.
57101         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57102         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57103         (gl_tree_add_before, gl_tree_add_after): Likewise.
57104         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57105         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57106         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57107
57108 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57109
57110         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57111
57112 2006-11-06  Bruno Haible  <bruno@clisp.org>
57113
57114         * m4/inline.m4: New file.
57115         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57116         * modules/list (Files): Add m4/inline.m4.
57117         * modules/oset (Files): Likewise.
57118
57119 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/idcache.c: Include <stddef.h>, for offsetof.
57122         (struct userid.name): Change from char * to a flexible array member.
57123         All uses changed.
57124         * modules/idcache (Depends-on): Add flexmember.
57125
57126         * MODULES.html.sh (Core language properties): New module flexmember.
57127         * modules/flexmember, m4/flexmember.m4: New files.
57128
57129         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57130         inline functions that are identical with the old xnmalloc_inline,
57131         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57132         that we can avoid some unnecessary integer multiplications and
57133         divisions in the common case where the element size is known at
57134         compile time.
57135         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57136         needed.
57137         (xnboundedmalloc): Remove.
57138         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57139         arguments, for consistency with rest of this header.
57140         (xcharalloc): Rewrite using XNMALLOC.
57141         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57142         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57143         versions have been moved to lib/xalloc.h and renamed to be the
57144         non-*_inline versions.
57145         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57146         and xnrealloc functions, since those functions are now inline and
57147         now call us.
57148         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57149         renaming described above.
57150         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57151         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57152         captures the dependency in AC_C_INLINE.
57153
57154         New module canonicalize-lgpl, proposed by Charles Wilson in
57155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57156         with a few small changes afterwards.
57157         * MODULES.html.sh (File system functions): New module
57158         canonicalize-lgpl.
57159         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57160         and canonicalize_file_name.
57161         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57162         * modules/canonicalize-lgpl: New files.
57163
57164 2006-11-05  Bruno Haible  <bruno@clisp.org>
57165
57166         * gnulib-tool (func_import, func_create_testdir): Create directories
57167         also for files in subdirectories of lib/.
57168
57169 2006-11-05  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57172         ANSI C compliant.
57173
57174 2006-11-03  Bruno Haible  <bruno@clisp.org>
57175
57176         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57177         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57178         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57179         (xnboundedmalloc): New inline function.
57180         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57181         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57182         xmalloc.
57183         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57184         xmalloc.
57185         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57186         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57187         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57188         xmalloc.
57189         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57190         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57191         xmalloc.
57192         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57193         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57194         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57195         xmalloc.
57196         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57197         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57198         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57199         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57200         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57201         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57202         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57203
57204 2006-11-03  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/c-ctype.h [C++]: Define functions without name mangling.
57207         * lib/fwriteerror.h [C++]: Likewise.
57208         * lib/gcd.h [C++]: Likewise.
57209         * lib/linebreak.h [C++]: Likewise.
57210
57211 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57212
57213         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57214         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57215         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57217         Check for functions and headers just once.
57218         Check for declaration of canonicalize_file_name.
57219         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57220
57221 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57222
57223         * gnulib-tool (func_import): Fix typo in actioncmd.
57224
57225 2006-11-02  Bruno Haible  <bruno@clisp.org>
57226
57227         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57228         newline sequence in the Makefile.am snippet as a space, like "make"
57229         does.
57230         Reported by Roger Persson <perrog@gmail.com>.
57231
57232 2006-11-01  Bruno Haible  <bruno@clisp.org>
57233
57234         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57235         already declared in <string.h>.
57236         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57237
57238 2006-11-01  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57241         * lib/strcase.h: Include <string.h>.
57242         (strcasecmp): Define to rpl_strcasecmp here.
57243
57244 2006-11-01  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57247
57248 2006-11-01  Eric Blake  <ebb9@byu.net>
57249
57250         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57251
57252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57253
57254 2006-10-29  Bruno Haible  <bruno@clisp.org>
57255
57256         Make it compile in C++ mode.
57257         * lib/full-write.c (full_rw): Add a cast.
57258
57259 2006-11-01  Bruno Haible  <bruno@clisp.org>
57260
57261         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57262         be POSIX compliant.
57263         Reported by Roger Persson <perrog@gmail.com>.
57264
57265 2006-11-01  Eric Blake  <ebb9@byu.net>
57266
57267         * lib/getopt_.h: Fix comments.
57268
57269 2006-10-31  Eric Blake  <ebb9@byu.net>
57270
57271         * modules/tmpdir (Depends-on): Add sys_stat.
57272         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57273         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57274         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57275         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57276         tempname.
57277
57278 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57279
57280         Avoid some C++ diagnostics reported by Bruno Haible.
57281         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57282         xmalloc.
57283         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57284         (struct slotvec): Move to top level.
57285         (quotearg_n_options): Rewrite to avoid xmalloc.
57286         * lib/xalloc.h (xcharalloc): New function.
57287         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57288         [defined __cplusplus]: Add function template that provides result
57289         type propagation.  This part of the change is from Bruno Haible.
57290
57291 2006-10-29  Bruno Haible  <bruno@clisp.org>
57292
57293         Make it compile in C++ mode.
57294         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57295         * lib/strnlen1.c (strnlen1): Cast memchr result.
57296         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57297         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57298         (create_temp_dir): Rename local variable 'template'.
57299         (compile_csharp_using_sscli): Add cast.
57300         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57301         * lib/findprog.c (find_in_path): Likewise.
57302         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57303         * lib/wait-process.c (register_slave_subprocess): Likewise.
57304
57305 2006-10-22  Bruno Haible  <bruno@clisp.org>
57306
57307         * modules/tsearch: New file.
57308         * lib/tsearch.h: New file.
57309         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57310         * m4/tsearch.m4: New file.
57311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57312
57313 2006-10-29  Eric Blake  <ebb9@byu.net>
57314
57315         * lib/arcfour.c: Assume config.h.
57316         * lib/arctwo.c: Likewise.
57317         * lib/base64.c: Likewise.
57318         * lib/check-version.c: Likewise.
57319         * lib/crc.c: Likewise.
57320         * lib/des.c: Likewise.
57321         * lib/gc-gnulib.c: Likewise.
57322         * lib/gc-libgcrypt.c: Likewise.
57323         * lib/gc-pbkdf2-sha1.c: Likewise.
57324         * lib/getaddrinfo.c: Likewise.
57325         * lib/getdelim.c: Likewise.
57326         * lib/getline.c: Likewise.
57327         * lib/hmac-md5.c: Likewise.
57328         * lib/hmac-sha1.c: Likewise.
57329         * lib/iconvme.c: Likewise.
57330         * lib/md2.c: Likewise.
57331         * lib/md4.c: Likewise.
57332         * lib/memxor.c: Likewise.
57333         * lib/read-file.c: Likewise.
57334         * lib/readline.c: Likewise.
57335         * lib/rijndael-alg-fst.c: Likewise.
57336         * lib/rijndael-api-fst.c: Likewise.
57337         * lib/xgetdomainname.c: Likewise.
57338
57339 2006-10-28  Eric Blake  <ebb9@byu.net>
57340
57341         * lib/xstrndup.c: Assume config.h.
57342
57343 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57344
57345         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57346         stat-macros.h is now for our own macros, whereas stat_h is for
57347         macros in the <sys/stat.h> name space.
57348         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57349         (STAT_MACROS_H): Remove.
57350         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57351         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57352         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57353         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57354         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57355         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57356         Move these macros to ...
57357         * lib/stat_.h: here.  Don't include stat-macros.h.
57358         * lib/canonicalize.c: Don't include stat-macros.h.
57359         * lib/chown.c: Likewise.
57360         * lib/euidaccess.c: Likewise.
57361         * lib/file-type.c: Likewise.
57362         * lib/filemode.c: Likewise.
57363         * lib/glob.c: Likewise.
57364         * lib/isapipe.c: Likewise.
57365         * lib/lchown.c: Likewise.
57366         * lib/lstat.c: Likewise.
57367         * lib/mkdir-p.c: Likewise.
57368         * lib/rmdir.c: Likewise.
57369         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57370         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57371         unless mkdir isn't declared, to speed up 'configure'.
57372         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57373         would define all the S_* symbols.
57374         * modules/canonicalize (Depends-on):
57375         Depend on sys_stat, not stat-macros.
57376         * modules/chown: Likewise.
57377         * modules/euidaccess: Likewise.
57378         * modules/filemode: Likewise.
57379         * modules/file-type: Likewise.
57380         * modules/glob: Likewise.
57381         * modules/isapipe: Likewise.
57382         * modules/lchown: Likewise.
57383         * modules/lstat: Likewise.
57384         * modules/mkancesdirs: Likewise.
57385         * modules/rmdir: Likewise.
57386         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57387         * modules/modechange: Likewise.
57388         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57389         (configure.ac): Remove gl_STAT_MACROS.
57390         * modules/sys_stat (Depends-on): Remove stat-macros.
57391
57392 2006-10-27  Bruno Haible  <bruno@clisp.org>
57393
57394         * m4/signed.m4: Remove file.
57395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57396         invocation.
57397         * modules/vasnprintf (Files): Remove m4/signed.m4.
57398
57399 2006-10-27  Bruno Haible  <bruno@clisp.org>
57400
57401         Update to GNU gettext 0.16.
57402         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57403         m4/inttypes-h.m4, m4/signed.m4.
57404         * m4/gettext.m4: Update to GNU gettext 0.16.
57405         * m4/intl.m4: New file, from GNU gettext.
57406         * m4/intldir.m4: New file, from GNU gettext.
57407         * config/srclist.txt: Update
57408
57409 2006-10-27  Eric Blake  <ebb9@byu.net>
57410
57411         * MODULES.html.sh: Document tempname.
57412         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57413         dependencies.
57414         (Files): Move lib/tempname.c...
57415         * modules/tempname: ...to this new module.
57416         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57417         (gl_PREREQ_TEMPNAME): Move...
57418         * m4/tempname.m4: ...to this new file.
57419         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57420         * modules/sys_stat (Depends-on): Add stat-macros.
57421         * lib/stat_.h (includes): Pick up stat macros.
57422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57423         if stat macros are broken.
57424         * lib/tempname.c (includes): No need to include "stat-macros.h".
57425         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57426         (direxists, __path_search) [!_LIBC]: Don't compile these in
57427         gnulib; the tmpdir module covers that.
57428         * lib/tempname.h: New file.
57429
57430 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57431
57432         * COPYING: Explain how gnulib-tool converts licence headers.
57433         Almost all wording by Eric Blake.
57434
57435 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * lib/mbchar.h (is_basic_table): Make read-only.
57438         * lib/mbchar.c (is_basic_table): Likewise.
57439         Reported by John Darrington.
57440
57441 2006-10-25  Bruno Haible  <bruno@clisp.org>
57442
57443         * lib/progname.h (set_program_name): Undefine before defining.
57444
57445 2006-10-25  Bruno Haible  <bruno@clisp.org>
57446
57447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57448         false for non-gcc C++ compilers.
57449         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57450
57451 2006-10-24  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57454         iconv implementations like Irix iconv.
57455
57456 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57457
57458         * modules/vararrays: New file.
57459         * m4/vararrays.m4: New file, taken from diffutils.
57460         * MODULES.html.sh: New module vararrays.
57461
57462 2006-10-24  Karl Berry  <karl@gnu.org>
57463
57464         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57465         Don't call GNU Unix.
57466
57467 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57468
57469         * users.txt: Add Libtool.
57470
57471         Sync from Libtool:
57472
57473         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57474
57475         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57476         to gnulib's policy of including config.h unconditionally.
57477
57478 2006-10-24  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/wcwidth (Files): Add m4/wint_t.m4.
57481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57482         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57483
57484 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57487         to pacify GCC with some -W flags enabled.  Problem reported by
57488         Bruno Haible.
57489
57490 2006-10-24  Jim Meyering  <jim@meyering.net>
57491
57492         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57493         Reported by Karl Berry.
57494
57495 2006-10-23  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57498
57499 2006-10-24  Bruno Haible  <bruno@clisp.org>
57500
57501         * lib/gl_list.h: Use C comment style, not C++ comment style.
57502
57503 2006-10-23  Eric Blake  <ebb9@byu.net>
57504
57505         * lib/getaddrinfo.c (includes): Add missing include.
57506
57507 2006-10-23  Bruno Haible  <bruno@clisp.org>
57508             Paul Eggert  <eggert@cs.ucla.edu>
57509
57510         Ability to rename obstack_free.
57511         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57512         obstack_free.
57513         (obstack_free): Invoke the __obstack_free macro.
57514         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57515
57516 2006-10-23  Bruno Haible  <bruno@clisp.org>
57517             Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57520         __argc, __argv from the declaration. (They are defined as macros on
57521         mingw.)
57522
57523 2006-10-22  Bruno Haible  <bruno@clisp.org>
57524
57525         * doc/gnulib-intro.texi: New file.
57526         * doc/gnulib.texi: Include it.
57527
57528 2006-10-21  Bruno Haible  <bruno@clisp.org>
57529
57530         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57531         "Introduction", "Miscellanous Notes", "Particular Modules".
57532
57533 2006-10-21  Bruno Haible  <bruno@clisp.org>
57534
57535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57536         Change mostlyclean-local rule to avoid sh syntax error from bash
57537         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57538
57539 2006-10-23  Jim Meyering  <jim@meyering.net>
57540
57541         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57542         in place of snprintf.
57543
57544         * modules/inttostr (Files): Add lib/uinttostr.c.
57545         * lib/uinttostr.c (inttostr): New file/function.
57546         * lib/inttostr.h (uinttostr): Declare.
57547         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57548         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57549         Add uinttostr.
57550         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57551
57552 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57553
57554         * lib/canonicalize.c (ELOOP): Define if not already defined.
57555         Problem reported by Bruno Haible in
57556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57557
57558 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57559
57560         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57561         Problem reported by Perry Smith and Ville Laurikari.
57562
57563         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57564         uses.
57565
57566 2006-10-19  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57569         for mingw.
57570
57571 2006-10-19  Bruno Haible  <bruno@clisp.org>
57572
57573         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57574         Needed for mingw.
57575
57576 2006-10-19  Bruno Haible  <bruno@clisp.org>
57577
57578         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57579
57580 2006-10-19  Bruno Haible  <bruno@clisp.org>
57581
57582         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57583         it.
57584
57585 2006-10-19  Bruno Haible  <bruno@clisp.org>
57586
57587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57588         invocation.
57589
57590 2006-10-19  Bruno Haible  <bruno@clisp.org>
57591
57592         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57593         mountlist by default.
57594
57595 2006-10-16  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/c-strstr.c: Include c-strstr.h.
57598
57599 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57600
57601         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57602         in a slash.
57603
57604 2006-10-18  Bruno Haible  <bruno@clisp.org>
57605
57606         * lib/lock.h [C++]: Wrap definitions in extern "C".
57607
57608 2006-10-18  Bruno Haible  <bruno@clisp.org>
57609
57610         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57611         gl_LIBOBJS list.
57612
57613 2006-10-18  Bruno Haible  <bruno@clisp.org>
57614
57615         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57616
57617 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * lib/xstrtol.h: Include gettext.h.
57620         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57621         Problem reported by Eric Blake.
57622         * modules/xstrtol (Depends-on): Add gettext-h.
57623
57624 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57625
57626         * lib/strftime.c (advance): New macro.
57627         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57628         incomplete type, so you can't add 0 to it.  Problem and patch
57629         reported by Eelco Dolstra for dietlibc.
57630
57631 2006-10-18  Jim Meyering  <jim@meyering.net>
57632
57633         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57634         type for a local, and rename it: s/up/user_proc/.
57635
57636 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57637
57638         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57639         READ_UTMP_USER_PROCESS.
57640         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57641
57642 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57645         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57646
57647 2006-10-17  Eric Blake  <ebb9@byu.net>
57648
57649         * lib/sigprocmask.c (sigprocmask): Fix typo.
57650
57651         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57652
57653         * modules/clean-temp (Makefile.am): Don't add to make output...
57654         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57655         config.h.
57656
57657 2006-10-17  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57660         differently if DEFAULT_TEXT_DOMAIN is set.
57661
57662 2006-10-16  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/clean-temp.c: Include fwriteerror.h.
57665
57666 2006-10-16  Bruno Haible  <bruno@clisp.org>
57667
57668         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57669
57670 2006-10-16  Bruno Haible  <bruno@clisp.org>
57671
57672         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57673         * lib/sigprocmask.h: Include <sys/types.h>.
57674         (sigset_t): Use the system's definition if present.
57675
57676 2006-10-17  Eric Blake  <ebb9@byu.net>
57677
57678         * lib/xvasprintf.c (includes): Assume config.h.
57679         * lib/xasprintf.c (includes): Likewise.
57680
57681 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57682
57683         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57684         at least as wide as intmax_t.
57685
57686 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57687
57688         (Imported from Automake.)
57689         * build-aux/gnupload: Update to version 1.1 of directive file.
57690
57691 2006-10-16  Eric Blake  <ebb9@byu.net>
57692
57693         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57694         match Automake 1.10a.
57695
57696 2006-10-14  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/sigprocmask: New file.
57699         * lib/sigprocmask.h: New file.
57700         * lib/sigprocmask.c: New file.
57701         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57702         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57703         request sigprocmask.o.
57704         (gl_PREREQ_SIGPROCMASK): New macro.
57705         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57706         (Depends-on): Add sigprocmask.
57707         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57708         gt_SIGNALBLOCKING. Test for 'raise' only once.
57709         * lib/fatal-signal.c: Include sigprocmask.h.
57710         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57711         unblock_fatal_signals): Define always.
57712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57713         sigprocmask.
57714
57715 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         Sync from Automake.
57718         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57719         which incorrectly sets the mode of an existing destination
57720         directory.  In some cases the unpatched install-sh could do the
57721         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57722         system.  We hope this is rare in practice, but it's clearly worth
57723         fixing.  Problem reported by Alex Unleashed in
57724         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57725         Also, don't bother to check for -m bugs unless we're using -m;
57726         suggested by Stepan Kasal.
57727
57728 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57729
57730         Sync from Automake.
57731         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57732         `-c' flag, so they appear at the same position as in %FASTDEP%
57733         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57734         which ignores unknown options only after the first non-option.
57735         Bug report against M4 by Nelson H. F. Beebe.
57736
57737 2006-10-13  Jim Meyering  <jim@meyering.net>
57738
57739         Fix a bug in yesterday's change.
57740         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57741         p->fts_statp->st_dev would be used uninitialized.
57742         Ensures that we always call fts_stat on the very first entry.
57743         Miklos Szeredi reported that find -xdev stopped working.
57744
57745 2006-10-12  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_get_automake_snippet): Append an automatically
57748         computed EXTRA_DIST augmentation.
57749         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57750         * modules/alloca-opt (Makefile.am): Likewise.
57751         * modules/allocsa (Makefile.am): Likewise.
57752         * modules/arcfour (Makefile.am): Likewise.
57753         * modules/arctwo (Makefile.am): Likewise.
57754         * modules/argmatch (Makefile.am): Likewise.
57755         * modules/argz (Makefile.am): Likewise.
57756         * modules/atexit (Makefile.am): Likewise.
57757         * modules/backupfile (Makefile.am): Likewise.
57758         * modules/byteswap (Makefile.am): Likewise.
57759         * modules/c-strtod (Makefile.am): Likewise.
57760         * modules/c-strtold (Makefile.am): Likewise.
57761         * modules/calloc (Makefile.am): Likewise.
57762         * modules/canon-host (Makefile.am): Likewise.
57763         * modules/canonicalize (Makefile.am): Likewise.
57764         * modules/chdir-long (Makefile.am): Likewise.
57765         * modules/chdir-safer (Makefile.am): Likewise.
57766         * modules/check-version (Makefile.am): Likewise.
57767         * modules/chown (Makefile.am): Likewise.
57768         * modules/cloexec (Makefile.am): Likewise.
57769         * modules/close-stream (Makefile.am): Likewise.
57770         * modules/closeout (Makefile.am): Likewise.
57771         * modules/crc (Makefile.am): Likewise.
57772         * modules/csharpexec (Makefile.am): Likewise.
57773         * modules/cycle-check (Makefile.am): Likewise.
57774         * modules/des (Makefile.am): Likewise.
57775         * modules/dev-ino (Makefile.am): Likewise.
57776         * modules/dirfd (Makefile.am): Likewise.
57777         * modules/dirname (Makefile.am): Likewise.
57778         * modules/dup2 (Makefile.am): Likewise.
57779         * modules/eealloc (Makefile.am): Likewise.
57780         * modules/error (Makefile.am): Likewise.
57781         * modules/euidaccess (Makefile.am): Likewise.
57782         * modules/exclude (Makefile.am): Likewise.
57783         * modules/exitfail (Makefile.am): Likewise.
57784         * modules/fcntl-safer (Makefile.am): Likewise.
57785         * modules/fcntl (Makefile.am): Likewise.
57786         * modules/file-type (Makefile.am): Likewise.
57787         * modules/fileblocks (Makefile.am): Likewise.
57788         * modules/filemode (Makefile.am): Likewise.
57789         * modules/filenamecat (Makefile.am): Likewise.
57790         * modules/fnmatch (Makefile.am): Likewise.
57791         * modules/fopen-safer (Makefile.am): Likewise.
57792         * modules/fpending (Makefile.am): Likewise.
57793         * modules/fprintftime (Makefile.am): Likewise.
57794         * modules/free (Makefile.am): Likewise.
57795         * modules/fsusage (Makefile.am): Likewise.
57796         * modules/ftruncate (Makefile.am): Likewise.
57797         * modules/fts (Makefile.am): Likewise.
57798         * modules/gc-arcfour (Makefile.am): Likewise.
57799         * modules/gc-des (Makefile.am): Likewise.
57800         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57801         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57802         * modules/gc-md4 (Makefile.am): Likewise.
57803         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57804         * modules/gc-sha1 (Makefile.am): Likewise.
57805         * modules/gc (Makefile.am): Likewise.
57806         * modules/getaddrinfo (Makefile.am): Likewise.
57807         * modules/getcwd (Makefile.am): Likewise.
57808         * modules/getdelim (Makefile.am): Likewise.
57809         * modules/getdomainname (Makefile.am): Likewise.
57810         * modules/getgroups (Makefile.am): Likewise.
57811         * modules/gethostname (Makefile.am): Likewise.
57812         * modules/gethrxtime (Makefile.am): Likewise.
57813         * modules/getline (Makefile.am): Likewise.
57814         * modules/getloadavg (Makefile.am): Likewise.
57815         * modules/getlogin_r (Makefile.am): Likewise.
57816         * modules/getndelim2 (Makefile.am): Likewise.
57817         * modules/getopt (Makefile.am): Likewise.
57818         * modules/getpagesize (Makefile.am): Likewise.
57819         * modules/getpass-gnu (Makefile.am): Likewise.
57820         * modules/getpass (Makefile.am): Likewise.
57821         * modules/getsubopt (Makefile.am): Likewise.
57822         * modules/gettime (Makefile.am): Likewise.
57823         * modules/gettimeofday (Makefile.am): Likewise.
57824         * modules/getugroups (Makefile.am): Likewise.
57825         * modules/getusershell (Makefile.am): Likewise.
57826         * modules/glob (Makefile.am): Likewise.
57827         * modules/group-member (Makefile.am): Likewise.
57828         * modules/hard-locale (Makefile.am): Likewise.
57829         * modules/hash (Makefile.am): Likewise.
57830         * modules/hmac-md5 (Makefile.am): Likewise.
57831         * modules/hmac-sha1 (Makefile.am): Likewise.
57832         * modules/human (Makefile.am): Likewise.
57833         * modules/idcache (Makefile.am): Likewise.
57834         * modules/imaxabs (Makefile.am): Likewise.
57835         * modules/imaxdiv (Makefile.am): Likewise.
57836         * modules/inet_ntop (Makefile.am): Likewise.
57837         * modules/inet_pton (Makefile.am): Likewise.
57838         * modules/intprops (Makefile.am): Likewise.
57839         * modules/inttostr (Makefile.am): Likewise.
57840         * modules/inttypes (Makefile.am): Likewise.
57841         * modules/isapipe (Makefile.am): Likewise.
57842         * modules/javaversion (Makefile.am): Likewise.
57843         * modules/lchmod (Makefile.am): Likewise.
57844         * modules/lchown (Makefile.am): Likewise.
57845         * modules/localcharset (Makefile.am): Likewise.
57846         * modules/long-options (Makefile.am): Likewise.
57847         * modules/lstat (Makefile.am): Likewise.
57848         * modules/malloc (Makefile.am): Likewise.
57849         * modules/mathl (Makefile.am): Likewise.
57850         * modules/mbchar (Makefile.am): Likewise.
57851         * modules/md2 (Makefile.am): Likewise.
57852         * modules/md4 (Makefile.am): Likewise.
57853         * modules/md5 (Makefile.am): Likewise.
57854         * modules/memcasecmp (Makefile.am): Likewise.
57855         * modules/memchr (Makefile.am): Likewise.
57856         * modules/memcmp (Makefile.am): Likewise.
57857         * modules/memcoll (Makefile.am): Likewise.
57858         * modules/memcpy (Makefile.am): Likewise.
57859         * modules/memmem (Makefile.am): Likewise.
57860         * modules/memmove (Makefile.am): Likewise.
57861         * modules/mempcpy (Makefile.am): Likewise.
57862         * modules/memrchr (Makefile.am): Likewise.
57863         * modules/memset (Makefile.am): Likewise.
57864         * modules/memxor (Makefile.am): Likewise.
57865         * modules/mkancesdirs (Makefile.am): Likewise.
57866         * modules/mkdir-p (Makefile.am): Likewise.
57867         * modules/mkdir (Makefile.am): Likewise.
57868         * modules/mkdtemp (Makefile.am): Likewise.
57869         * modules/mkstemp (Makefile.am): Likewise.
57870         * modules/mktime (Makefile.am): Likewise.
57871         * modules/modechange (Makefile.am): Likewise.
57872         * modules/mountlist (Makefile.am): Likewise.
57873         * modules/nanosleep (Makefile.am): Likewise.
57874         * modules/obstack (Makefile.am): Likewise.
57875         * modules/openat (Makefile.am): Likewise.
57876         * modules/pagealign_alloc (Makefile.am): Likewise.
57877         * modules/pathmax (Makefile.am): Likewise.
57878         * modules/physmem (Makefile.am): Likewise.
57879         * modules/poll (Makefile.am): Likewise.
57880         * modules/posixtm (Makefile.am): Likewise.
57881         * modules/posixver (Makefile.am): Likewise.
57882         * modules/putenv (Makefile.am): Likewise.
57883         * modules/quote (Makefile.am): Likewise.
57884         * modules/quotearg (Makefile.am): Likewise.
57885         * modules/raise (Makefile.am): Likewise.
57886         * modules/read-file (Makefile.am): Likewise.
57887         * modules/readline (Makefile.am): Likewise.
57888         * modules/readlink (Makefile.am): Likewise.
57889         * modules/readtokens (Makefile.am): Likewise.
57890         * modules/readutmp (Makefile.am): Likewise.
57891         * modules/realloc (Makefile.am): Likewise.
57892         * modules/regex (Makefile.am): Likewise.
57893         * modules/rename-dest-slash (Makefile.am): Likewise.
57894         * modules/rename (Makefile.am): Likewise.
57895         * modules/rijndael (Makefile.am): Likewise.
57896         * modules/rmdir (Makefile.am): Likewise.
57897         * modules/rpmatch (Makefile.am): Likewise.
57898         * modules/safe-read (Makefile.am): Likewise.
57899         * modules/safe-write (Makefile.am): Likewise.
57900         * modules/same-inode (Makefile.am): Likewise.
57901         * modules/same (Makefile.am): Likewise.
57902         * modules/save-cwd (Makefile.am): Likewise.
57903         * modules/savedir (Makefile.am): Likewise.
57904         * modules/setenv (Makefile.am): Likewise.
57905         * modules/settime (Makefile.am): Likewise.
57906         * modules/sha1 (Makefile.am): Likewise.
57907         * modules/sig2str (Makefile.am): Likewise.
57908         * modules/snprintf (Makefile.am): Likewise.
57909         * modules/stat-macros (Makefile.am): Likewise.
57910         * modules/stat-time (Makefile.am): Likewise.
57911         * modules/stdbool (Makefile.am): Likewise.
57912         * modules/stdint (Makefile.am): Likewise.
57913         * modules/stdlib-safer (Makefile.am): Likewise.
57914         * modules/stpcpy (Makefile.am): Likewise.
57915         * modules/stpncpy (Makefile.am): Likewise.
57916         * modules/strcase (Makefile.am): Likewise.
57917         * modules/strcasestr (Makefile.am): Likewise.
57918         * modules/strchrnul (Makefile.am): Likewise.
57919         * modules/strcspn (Makefile.am): Likewise.
57920         * modules/strdup (Makefile.am): Likewise.
57921         * modules/strerror (Makefile.am): Likewise.
57922         * modules/strftime (Makefile.am): Likewise.
57923         * modules/strndup (Makefile.am): Likewise.
57924         * modules/strnlen (Makefile.am): Likewise.
57925         * modules/strpbrk (Makefile.am): Likewise.
57926         * modules/strsep (Makefile.am): Likewise.
57927         * modules/strstr (Makefile.am): Likewise.
57928         * modules/strtod (Makefile.am): Likewise.
57929         * modules/strtoimax (Makefile.am): Likewise.
57930         * modules/strtok_r (Makefile.am): Likewise.
57931         * modules/strtol (Makefile.am): Likewise.
57932         * modules/strtoll (Makefile.am): Likewise.
57933         * modules/strtoul (Makefile.am): Likewise.
57934         * modules/strtoull (Makefile.am): Likewise.
57935         * modules/strtoumax (Makefile.am): Likewise.
57936         * modules/strverscmp (Makefile.am): Likewise.
57937         * modules/sys_socket (Makefile.am): Likewise.
57938         * modules/sys_stat (Makefile.am): Likewise.
57939         * modules/sysexits (Makefile.am): Likewise.
57940         * modules/time_r (Makefile.am): Likewise.
57941         * modules/timegm (Makefile.am): Likewise.
57942         * modules/timespec (Makefile.am): Likewise.
57943         * modules/tmpfile-safer (Makefile.am): Likewise.
57944         * modules/trim (Makefile.am): Likewise.
57945         * modules/unistd-safer (Makefile.am): Likewise.
57946         * modules/unlinkdir (Makefile.am): Likewise.
57947         * modules/unlocked-io (Makefile.am): Likewise.
57948         * modules/userspec (Makefile.am): Likewise.
57949         * modules/utime (Makefile.am): Likewise.
57950         * modules/utimecmp (Makefile.am): Likewise.
57951         * modules/utimens (Makefile.am): Likewise.
57952         * modules/vasnprintf (Makefile.am): Likewise.
57953         * modules/vasprintf (Makefile.am): Likewise.
57954         * modules/vsnprintf (Makefile.am): Likewise.
57955         * modules/xalloc (Makefile.am): Likewise.
57956         * modules/xgetcwd (Makefile.am): Likewise.
57957         * modules/xnanosleep (Makefile.am): Likewise.
57958         * modules/xreadlink (Makefile.am): Likewise.
57959         * modules/xstrtod (Makefile.am): Likewise.
57960         * modules/xstrtol (Makefile.am): Likewise.
57961         * modules/xstrtold (Makefile.am): Likewise.
57962         * modules/yesno (Makefile.am): Likewise.
57963         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57964
57965 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         * modules/error (Makefile.am): Distribute files through
57968         EXTRA_DIST, not lib_SOURCES.
57969
57970 2006-10-12  Eric Blake  <ebb9@byu.net>
57971
57972         * modules/error (Makefile.am): Distribute files in /lib.
57973         * modules/obstack (Makefile.am): Likewise.
57974
57975 2006-10-12  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/acl (Makefile.am): Distribute all files in lib/ through
57978         EXTRA_DIST.
57979         * modules/arcfour (Makefile.am): Likewise.
57980         * modules/arctwo (Makefile.am): Likewise.
57981         * modules/argmatch (Makefile.am): Likewise.
57982         * modules/argz (Makefile.am): Likewise.
57983         * modules/atexit (Makefile.am): Likewise.
57984         * modules/backupfile (Makefile.am): Likewise.
57985         * modules/c-strtod (Makefile.am): Likewise.
57986         * modules/c-strtold (Makefile.am): Likewise.
57987         * modules/calloc (Makefile.am): Likewise.
57988         * modules/canon-host (Makefile.am): Likewise.
57989         * modules/canonicalize (Makefile.am): Likewise.
57990         * modules/chdir-long (Makefile.am): Likewise.
57991         * modules/chdir-safer (Makefile.am): Likewise.
57992         * modules/check-version (Makefile.am): Likewise.
57993         * modules/chown (Makefile.am): Likewise.
57994         * modules/cloexec (Makefile.am): Likewise.
57995         * modules/close-stream (Makefile.am): Likewise.
57996         * modules/closeout (Makefile.am): Likewise.
57997         * modules/crc (Makefile.am): Likewise.
57998         * modules/cycle-check (Makefile.am): Likewise.
57999         * modules/des (Makefile.am): Likewise.
58000         * modules/dirfd (Makefile.am): Likewise.
58001         * modules/dirname (Makefile.am): Likewise.
58002         * modules/dup2 (Makefile.am): Likewise.
58003         * modules/euidaccess (Makefile.am): Likewise.
58004         * modules/exclude (Makefile.am): Likewise.
58005         * modules/exitfail (Makefile.am): Likewise.
58006         * modules/fcntl-safer (Makefile.am): Likewise.
58007         * modules/file-type (Makefile.am): Likewise.
58008         * modules/fileblocks (Makefile.am): Likewise.
58009         * modules/filemode (Makefile.am): Likewise.
58010         * modules/filenamecat (Makefile.am): Likewise.
58011         * modules/fnmatch (Makefile.am): Likewise.
58012         * modules/fopen-safer (Makefile.am): Likewise.
58013         * modules/fpending (Makefile.am): Likewise.
58014         * modules/fprintftime (Makefile.am): Likewise.
58015         * modules/free (Makefile.am): Likewise.
58016         * modules/fsusage (Makefile.am): Likewise.
58017         * modules/ftruncate (Makefile.am): Likewise.
58018         * modules/fts (Makefile.am): Likewise.
58019         * modules/gc (Makefile.am): Likewise.
58020         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58021         * modules/getaddrinfo (Makefile.am): Likewise.
58022         * modules/getcwd (Makefile.am): Likewise.
58023         * modules/getdelim (Makefile.am): Likewise.
58024         * modules/getdomainname (Makefile.am): Likewise.
58025         * modules/getgroups (Makefile.am): Likewise.
58026         * modules/gethostname (Makefile.am): Likewise.
58027         * modules/gethrxtime (Makefile.am): Likewise.
58028         * modules/getline (Makefile.am): Likewise.
58029         * modules/getloadavg (Makefile.am): Likewise.
58030         * modules/getlogin_r (Makefile.am): Likewise.
58031         * modules/getopt (Makefile.am): Likewise.
58032         * modules/getpass (Makefile.am): Likewise.
58033         * modules/getpass-gnu (Makefile.am): Likewise.
58034         * modules/getsubopt (Makefile.am): Likewise.
58035         * modules/gettime (Makefile.am): Likewise.
58036         * modules/gettimeofday (Makefile.am): Likewise.
58037         * modules/getugroups (Makefile.am): Likewise.
58038         * modules/getusershell (Makefile.am): Likewise.
58039         * modules/glob (Makefile.am): Likewise.
58040         * modules/group-member (Makefile.am): Likewise.
58041         * modules/hard-locale (Makefile.am): Likewise.
58042         * modules/hash (Makefile.am): Likewise.
58043         * modules/hmac-md5 (Makefile.am): Likewise.
58044         * modules/hmac-sha1 (Makefile.am): Likewise.
58045         * modules/human (Makefile.am): Likewise.
58046         * modules/idcache (Makefile.am): Likewise.
58047         * modules/imaxabs (Makefile.am): Likewise.
58048         * modules/imaxdiv (Makefile.am): Likewise.
58049         * modules/inet_ntop (Makefile.am): Likewise.
58050         * modules/inet_pton (Makefile.am): Likewise.
58051         * modules/inttostr (Makefile.am): Likewise.
58052         * modules/isapipe (Makefile.am): Likewise.
58053         * modules/lchown (Makefile.am): Likewise.
58054         * modules/long-options (Makefile.am): Likewise.
58055         * modules/lstat (Makefile.am): Likewise.
58056         * modules/malloc (Makefile.am): Likewise.
58057         * modules/mathl (Makefile.am): Likewise.
58058         * modules/mbchar (Makefile.am): Likewise.
58059         * modules/md2 (Makefile.am): Likewise.
58060         * modules/md4 (Makefile.am): Likewise.
58061         * modules/md5 (Makefile.am): Likewise.
58062         * modules/memcasecmp (Makefile.am): Likewise.
58063         * modules/memchr (Makefile.am): Likewise.
58064         * modules/memcmp (Makefile.am): Likewise.
58065         * modules/memcoll (Makefile.am): Likewise.
58066         * modules/memcpy (Makefile.am): Likewise.
58067         * modules/memmem (Makefile.am): Likewise.
58068         * modules/memmove (Makefile.am): Likewise.
58069         * modules/mempcpy (Makefile.am): Likewise.
58070         * modules/memrchr (Makefile.am): Likewise.
58071         * modules/memset (Makefile.am): Likewise.
58072         * modules/memxor (Makefile.am): Likewise.
58073         * modules/mkancesdirs (Makefile.am): Likewise.
58074         * modules/mkdir (Makefile.am): Likewise.
58075         * modules/mkdir-p (Makefile.am): Likewise.
58076         * modules/mkdtemp (Makefile.am): Likewise.
58077         * modules/mkstemp (Makefile.am): Likewise.
58078         * modules/mktime (Makefile.am): Likewise.
58079         * modules/modechange (Makefile.am): Likewise.
58080         * modules/mountlist (Makefile.am): Likewise.
58081         * modules/nanosleep (Makefile.am): Likewise.
58082         * modules/openat (Makefile.am): Likewise.
58083         * modules/pagealign_alloc (Makefile.am): Likewise.
58084         * modules/physmem (Makefile.am): Likewise.
58085         * modules/poll (Makefile.am): Likewise.
58086         * modules/posixtm (Makefile.am): Likewise.
58087         * modules/posixver (Makefile.am): Likewise.
58088         * modules/putenv (Makefile.am): Likewise.
58089         * modules/quote (Makefile.am): Likewise.
58090         * modules/quotearg (Makefile.am): Likewise.
58091         * modules/raise (Makefile.am): Likewise.
58092         * modules/read-file (Makefile.am): Likewise.
58093         * modules/readline (Makefile.am): Likewise.
58094         * modules/readlink (Makefile.am): Likewise.
58095         * modules/readtokens (Makefile.am): Likewise.
58096         * modules/readutmp (Makefile.am): Likewise.
58097         * modules/realloc (Makefile.am): Likewise.
58098         * modules/regex (Makefile.am): Likewise.
58099         * modules/rename (Makefile.am): Likewise.
58100         * modules/rename-dest-slash (Makefile.am): Likewise.
58101         * modules/rijndael (Makefile.am): Likewise.
58102         * modules/rmdir (Makefile.am): Likewise.
58103         * modules/rpmatch (Makefile.am): Likewise.
58104         * modules/safe-read (Makefile.am): Likewise.
58105         * modules/safe-write (Makefile.am): Likewise.
58106         * modules/same (Makefile.am): Likewise.
58107         * modules/save-cwd (Makefile.am): Likewise.
58108         * modules/savedir (Makefile.am): Likewise.
58109         * modules/setenv (Makefile.am): Likewise.
58110         * modules/settime (Makefile.am): Likewise.
58111         * modules/sha1 (Makefile.am): Likewise.
58112         * modules/sig2str (Makefile.am): Likewise.
58113         * modules/snprintf (Makefile.am): Likewise.
58114         * modules/stdlib-safer (Makefile.am): Likewise.
58115         * modules/stpcpy (Makefile.am): Likewise.
58116         * modules/stpncpy (Makefile.am): Likewise.
58117         * modules/strcase (Makefile.am): Likewise.
58118         * modules/strcasestr (Makefile.am): Likewise.
58119         * modules/strchrnul (Makefile.am): Likewise.
58120         * modules/strcspn (Makefile.am): Likewise.
58121         * modules/strdup (Makefile.am): Likewise.
58122         * modules/strerror (Makefile.am): Likewise.
58123         * modules/strftime (Makefile.am): Likewise.
58124         * modules/strndup (Makefile.am): Likewise.
58125         * modules/strnlen (Makefile.am): Likewise.
58126         * modules/strpbrk (Makefile.am): Likewise.
58127         * modules/strsep (Makefile.am): Likewise.
58128         * modules/strstr (Makefile.am): Likewise.
58129         * modules/strtod (Makefile.am): Likewise.
58130         * modules/strtoimax (Makefile.am): Likewise.
58131         * modules/strtok_r (Makefile.am): Likewise.
58132         * modules/strtol (Makefile.am): Likewise.
58133         * modules/strtoll (Makefile.am): Likewise.
58134         * modules/strtoul (Makefile.am): Likewise.
58135         * modules/strtoull (Makefile.am): Likewise.
58136         * modules/strtoumax (Makefile.am): Likewise.
58137         * modules/strverscmp (Makefile.am): Likewise.
58138         * modules/time_r (Makefile.am): Likewise.
58139         * modules/timegm (Makefile.am): Likewise.
58140         * modules/tmpfile-safer (Makefile.am): Likewise.
58141         * modules/unistd-safer (Makefile.am): Likewise.
58142         * modules/unlinkdir (Makefile.am): Likewise.
58143         * modules/userspec (Makefile.am): Likewise.
58144         * modules/utime (Makefile.am): Likewise.
58145         * modules/utimecmp (Makefile.am): Likewise.
58146         * modules/utimens (Makefile.am): Likewise.
58147         * modules/vasnprintf (Makefile.am): Likewise.
58148         * modules/vasprintf (Makefile.am): Likewise.
58149         * modules/vsnprintf (Makefile.am): Likewise.
58150         * modules/xalloc (Makefile.am): Likewise.
58151         * modules/xgetcwd (Makefile.am): Likewise.
58152         * modules/xnanosleep (Makefile.am): Likewise.
58153         * modules/xreadlink (Makefile.am): Likewise.
58154         * modules/xstrtod (Makefile.am): Likewise.
58155         * modules/xstrtol (Makefile.am): Likewise.
58156         * modules/xstrtold (Makefile.am): Likewise.
58157         * modules/yesno (Makefile.am): Likewise.
58158
58159 2006-10-12  Jim Meyering  <jim@meyering.net>
58160
58161         * m4/getloadavg.m4: Revert the change below.
58162
58163         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58164         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58165         fail with a symlink, which is what coreutils' ./bootstrap now
58166         creates by default.
58167
58168 2006-10-12  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58171         mingw.
58172         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58173         MSVC and mingw explicitly.
58174
58175 2006-10-11  Simon Josefsson  <jas@extundo.com>
58176             Bruno Haible  <bruno@clisp.org>
58177
58178         Add support for multiple gnulib-tool invocations in the scope of a
58179         single configure.ac file.
58180         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58181         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58182         with the same contents as the _LIBADD variable.
58183         (func_emit_initmacro_start, func_emit_initmacro_end,
58184         func_emit_initmacro_done): New functions.
58185         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58186         gl_LIBOBJS and gl_LTLIBOBJS.
58187
58188 2006-10-11  Bruno Haible  <bruno@clisp.org>
58189
58190         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58191         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58192         autoreconf. Instead, invoke autopoint explicitly but move back the
58193         *.m4 files from gnulib.
58194
58195 2006-10-11  Bruno Haible  <bruno@clisp.org>
58196
58197         * gnulib-tool (func_usage): Make module names after --create-testdir
58198         optional.
58199         (func_create_testdir): If no module was specified, use nearly all
58200         modules.
58201
58202 2006-10-12  Jim Meyering  <jim@meyering.net>
58203
58204         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58205         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58206         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58207         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58208         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58209         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58210         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58211         (fts_set_stat_required): New function.
58212         (fts_open): Defer the calls to fts_stat, if possible or requested.
58213         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58214         into fts_stat itself.
58215         (fts_read): Perform any required (deferred) fts_stat call.
58216         (fts_build): Likewise, for the directory we're about to open and read.
58217         In the readdir loop, carefully decide whether each entry will require
58218         an eventual call to fts_stat, using dirent.d_type info if available.
58219         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58220         a command line argument into this function.  Update all callers.
58221         Map a return value of FTS_DOT to FTS_D for a command line argument.
58222         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58223         Thanks to Miklos Szeredi for his tenacity and for the initial
58224         bug report about "find" failing on a FUSE-based file system.
58225
58226         * lib/fts.c (fts_open): Use consistent indentation.
58227
58228 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58229
58230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58231         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58232         reported by Jim Meyering.  All uses of cache variables renamed
58233         to match Autoconf's.
58234         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58235         the other one.
58236
58237         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58238         Fix misspelling in diagnostic.
58239
58240 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58243         defined.  Problem reported by Matthew Woehlke.
58244
58245         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58246         Add support for Tandem NonStop R series.
58247         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58248         Use new macro.
58249
58250         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58251         (has_trailing_slash): Omit size arg; all callers changed.
58252         Omit 'inline', since it doesn't help performance and we'd
58253         need to configure it.
58254         Don't count //, ///, etc. as having a trailing slash.
58255         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58256         (rpl_rename_dest_slash): On failure, use rename's errno rather
58257         than (in some cases) an incorrect or junk errno.
58258         Simplify code by removing need to compute length; this does
58259         cause it to make two passes instead of one over the file name,
58260         but it's worth it.
58261
58262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58263         change, since Autoconf's version may no longer be appropriate now
58264         that we are using CVS Autoconf's version.  Add support for Tandem.
58265
58266 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58267             Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58270         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58271         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58272         gl_AC_TYPE_LONG_LONG.
58273
58274         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58275         instead of HAVE_LONG_LONG.
58276         * lib/printf-args.c (printf_fetchargs): Likewise.
58277         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58278         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58279         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58280         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58281         gl_AC_TYPE_LONG_LONG.
58282
58283 2006-10-11  Bruno Haible  <bruno@clisp.org>
58284
58285         * m4/longlong.m4: Add comments.
58286         * m4/ulonglong.m4: Likewise.
58287
58288 2006-10-10  Bruno Haible  <bruno@clisp.org>
58289
58290         Make it possible to #define stpcpy, strdup to aliases.
58291         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58292         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58293
58294 2006-10-10  Bruno Haible  <bruno@clisp.org>
58295
58296         Make it possible to #define gcd to an alias.
58297         * lib/gcd.c: Include config.h.
58298
58299 2006-10-10  Bruno Haible  <bruno@clisp.org>
58300
58301         Make it possible to #define c_isascii to an alias.
58302         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58303         defined. Undefine the macros before defining them, to avoid gcc
58304         warnings.
58305         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58306         define NO_C_CTYPE_MACROS early.
58307
58308 2006-10-10  Bruno Haible  <bruno@clisp.org>
58309
58310         Make it possible to #define set_program_name to an alias.
58311         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58312         ENABLE_RELOCATABLE early.
58313
58314 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58315
58316         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58317         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58318         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58319         More generally, don't assume that 64-bit signed int is available
58320         if unsigned int is, and vice versa.
58321         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58322         unsigned symbols, not on their signed counterparts.
58323         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58324         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58325         (UINT64_C, UINTMAX_C):
58326         Likewise.
58327         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58328         unsigned counterparts.
58329         (Have_long_long, Unsigned): New macros.
58330         (Int): Renamed from INT.
58331         (strtoimax): Use the new macros.
58332         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58333         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58334         * modules/inttypes (inttypes.h): Substitute
58335         HAVE_UNSIGNED_LONG_LONG_INT.
58336         * modules/stdint (stdint.h): Likewise.
58337         (Files): Add m4/ulonglong.m4.
58338
58339 2006-10-10  Bruno Haible  <bruno@clisp.org>
58340
58341         Fix a gcc -Wshadow warning.
58342         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58343         to 'bucket'.
58344         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58345         gl_linked_indexof_from_to): Likewise.
58346         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58347         Likewise.
58348         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58349         Likewise.
58350         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58351         Reported by Eric Blake.
58352
58353 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58354
58355         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58356         for NetBSD.  Problem reported by Bruno Haible.
58357
58358 2006-10-09  Jim Meyering  <jim@meyering.net>
58359
58360         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58361         Patch from Bruno Haible.
58362
58363 2006-10-09  Jim Meyering  <jim@meyering.net>
58364
58365         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58366         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58367         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58368
58369 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         Don't include <config.h> twice; this doesn't work in some cases,
58372         e.g., when config.h has "#define intmax_t long long int" and
58373         we include <config.h>, <inttypes.h>, <config.h> in that order.
58374         Problem reported by Matthew Woehlke in:
58375         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58376         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58377         * lib/fts-cycle.c: Don't include config.h.
58378         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58379         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58380         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58381         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58382         inttypes.h.
58383         * lib/xstrtoumax.c: Likewise.
58384         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58385         __strtol and the like, so that this module is more like its siblings.
58386         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58387         Remove; no longer needed now that we assume gnulib inttypes.h.
58388
58389 2006-10-08  Bruno Haible  <bruno@clisp.org>
58390
58391         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58392         option.
58393
58394 2006-10-07  Jim Meyering  <jim@meyering.net>
58395
58396         * modules/inttypes (inttypes.h): Revert what seems to have been
58397         an inadvertent part of today's change: use "|", not "/" in the
58398         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58399
58400 2006-10-07  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/sublist: New file.
58403
58404 2006-10-07  Bruno Haible  <bruno@clisp.org>
58405
58406         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58407         * modules/argz (argz.h): Likewise.
58408         * modules/arpa_inet (arpa/inet.h): Likewise.
58409         * modules/byteswap (byteswap.h): Likewise.
58410         * modules/configmake (configmake.h): Likewise.
58411         * modules/fcntl (fcntl.h): Likewise.
58412         * modules/fnmatch (fnmatch.h): Likewise.
58413         * modules/getopt (getopt.h): Likewise.
58414         * modules/glob (glob.h): Likewise.
58415         * modules/inttypes (inttypes.h): Likewise.
58416         * modules/netinet_in (netinet/in.h): Likewise.
58417         * modules/poll (poll.h): Likewise.
58418         * modules/stdbool (stdbool.h): Likewise.
58419         * modules/stdint (stdint.h): Likewise.
58420         * modules/sys_select (sys/select.h): Likewise.
58421         * modules/sys_socket (sys/socket.h): Likewise.
58422         * modules/sys_stat (sys/stat.h): Likewise.
58423         * modules/sysexits (sysexits.h): Likewise.
58424         * modules/unistd (unistd.h): Likewise.
58425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58426         Add a "DO NOT EDIT" comment to the generated file.
58427         (func_import): Likewise for gnulib-comp.m4.
58428
58429 2006-10-07  Bruno Haible  <bruno@clisp.org>
58430
58431         * lib/gl_sublist.h: New file.
58432         * lib/gl_sublist.c: New file.
58433
58434 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58437         name (relative to the original working directory) and the file
58438         name component (relative to the temporary working directory).  All
58439         callers changed.
58440         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58441         * lib/mkdir-p.c (make_dir_parents): Likewise.
58442         * lib/mkdir-p.h (make_dir_parents): Likewise.
58443
58444 2006-10-06  Eric Blake  <ebb9@byu.net>
58445
58446         Define several macros for use by the clean-temp module.
58447         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58449         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58450
58451         * lib/clean-temp.h (close_stream_temp): New declaration.
58452         * lib/clean-temp.c (includes): Pull in headers according to what
58453         other modules are in use.
58454         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58455
58456 2006-10-06  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58459         instead of fopen, fwriteerror.
58460
58461 2006-10-06  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58464         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58465         int.
58466         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58467         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58468         Return an error indicator.
58469         Suggested by Eric Blake.
58470
58471 2006-10-06  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58474         Reported by Eric Blake.
58475
58476 2006-10-06  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/closeout (Description): Mention stderr too.
58479
58480 2006-10-06  Bruno Haible  <bruno@clisp.org>
58481         and Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/closeout.c (close_stdout): Also close stderr.
58484         * lib/closeout.h: Update comment.
58485
58486 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58489         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58490         * lib/dirchownmod.c: Include lchown.h.
58491         * lib/lchown.c: Don't include files that lchown.h now includes.
58492         Don't declare chown, since lchown.h now does that.
58493         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58494         (lchown): Define to rpl_chown if lchown is declared but
58495         does not exist.  Declare using a prototype if lchown is not
58496         declared.  Add a copyright notice.
58497         * lib/mkstemp.h: Include <unistd.h>.
58498         * lib/openat.c: Include lchown.h.
58499
58500         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58501         we now test for that separately.
58502         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58503         rather than O_NOFOLLOW, when testing whether it's possible to
58504         avoid a race condition reliably.
58505         * lib/savewd.c (savewd_chdir): Likewise.
58506
58507         Remove macros that are no longer needed now that stdint.h is
58508         reliable.
58509         * lib/fsusage.c (UINTMAX_MAX): Remove.
58510         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58511         * lib/utimecmp.c (SIZE_MAX): Remove.
58512
58513         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58514
58515         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58516         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58517         O_NOATIME works.
58518
58519 2006-10-05  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/gl_list.h (gl_sortedlist_search_from_to,
58522         gl_sortedlist_indexof_from_to): New declarations.
58523         (gl_list_implementation): New fields sortedlist_search_from_to,
58524         sortedlist_indexof_from_to.
58525         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58526         inline functions.
58527         * lib/gl_list.c (gl_sortedlist_search_from_to,
58528         gl_sortedlist_indexof_from_to): New functions.
58529         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58530         function.
58531         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58532         (gl_array_sortedlist_search_from_to): New function.
58533         (gl_array_list_implementation): Update.
58534         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58535         function.
58536         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58537         (gl_carray_sortedlist_search_from_to): New function.
58538         (gl_carray_list_implementation): Update.
58539         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58540         gl_linked_sortedlist_indexof_from_to): New functions.
58541         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58542         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58543         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58544         gl_tree_sortedlist_indexof_from_to): New functions.
58545         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58546         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58547         Update.
58548         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58549         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58550         Update.
58551
58552 2006-10-05  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58555         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58556         (struct gl_list_implementation): Add fields search_from_to,
58557         indexof_from_to. Remove fields search, indexof.
58558         (gl_list_search): Use the search_from_to method.
58559         (gl_list_search_from, gl_list_search_from_to): New functions.
58560         (gl_list_indexof): Use the indexof_from_to method.
58561         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58562         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58563         (gl_list_search_from, gl_list_search_from_to): New functions.
58564         (gl_list_indexof): Use the indexof_from_to method.
58565         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58566         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58567         gl_array_indexof. Add start_index, end_index arguments.
58568         (gl_array_search_from_to): Renamed from gl_array_search. Add
58569         start_index, end_index arguments.
58570         (gl_array_remove, gl_array_list_implementation): Update.
58571         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58572         gl_carray_indexof. Add start_index, end_index arguments.
58573         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58574         start_index, end_index arguments.
58575         (gl_carray_remove, gl_carray_list_implementation): Update.
58576         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58577         gl_linked_search. Add start_index, end_index arguments.
58578         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58579         start_index, end_index arguments.
58580         (gl_linked_remove): Update.
58581         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58582         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58583         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58584         field to 'size_t'.
58585         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58586         gl_tree_search. Add start_index, end_index arguments.
58587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58588         start_index, end_index arguments.
58589         (gl_tree_remove): Update.
58590         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58591         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58592         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58593         function.
58594         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58595         gl_tree_search. Add start_index, end_index arguments.
58596         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58597         start_index, end_index arguments.
58598         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58599         Update.
58600         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58601
58602 2006-10-05  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58605
58606         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58607         fwriteerror_temp): New declarations.
58608         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58609         (descriptors): New variable.
58610         (cleanup): First, close the descriptors.
58611         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58612         fclose_temp, fwriteerror_temp): New functions.
58613
58614 2006-10-04  Jim Meyering  <jim@meyering.net>
58615
58616         * lib/fts.c (fts_open): Tiny comment change.
58617
58618 2006-10-04  Bruno Haible  <bruno@clisp.org>
58619
58620         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58621         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58622         gl_LOCK_BODY.
58623         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58624         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58625         gl_LOCK_EARLY_BODY.
58626         (gl_LOCK): Require gl_LOCK_BODY.
58627
58628 2006-10-04  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58631         (gl_oset_search_atleast): New declaration.
58632         (struct gl_oset_implementation): Add field 'search_atleast'.
58633         (gl_oset_search_atleast): New inline function.
58634         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58635         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58636         (gl_array_oset_implementation): Update.
58637         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58638         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58639         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58640
58641 2006-10-04  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58644
58645 2006-10-03  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58648         from gl_avltreehash_list_implementation.
58649
58650 2006-10-03  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/gl_oset.c (gl_oset_add): Fix return type.
58653
58654 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58655
58656         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58657
58658 2006-10-02  Eric Blake  <ebb9@byu.net>
58659
58660         * modules/strnlen (Depends-on): Add extensions.
58661
58662 2006-10-02  Eric Blake  <ebb9@byu.net>
58663
58664         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58665         definition in 2.60+.
58666
58667 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58668
58669         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58670         checks.
58671
58672 2006-10-02  Bruno Haible  <bruno@clisp.org>
58673
58674         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58675         to the AUTOMAKE_OPTIONS.
58676         Reported by Jim Meyering.
58677
58678 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         Work around bug in Solaris 10 /proc file system:
58681         /proc/self/fd/NNN/.. isn't the parent directory of
58682         the directory whose file descriptor is NNN.  This needs to
58683         be worked around at run time, not compile time, since a
58684         program might be built on Solaris 8, where things work, and
58685         run on Solaris 10.
58686         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58687         to use the following interface instead:
58688         (OPENAT_BUFFER_SIZE): New macro.
58689         (openat_proc_name): New function.
58690         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58691         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58692         Likewise.
58693         * lib/openat-proc.c: New file.
58694         * modules/openat (Files): Add lib/openat-proc.c.
58695         (Depends-on): Add same-inode, stdbool.
58696         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58697
58698 2006-09-29  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58701         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58702         argument. Set stdout_closed before testing for ferror, not after.
58703         (fwriteerror, fwriteerror_no_ebadf): New functions.
58704
58705 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58706
58707         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58708
58709 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58710
58711         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58712         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58713
58714 2006-09-28  Jim Meyering  <jim@meyering.net>
58715
58716         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58717         Include <unistd.h>.
58718
58719 2006-09-28  Bruno Haible  <bruno@clisp.org>
58720
58721         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58722         * modules/linkedhash-list (Depends-on): Likewise.
58723         * modules/rbtreehash-list (Depends-on): Likewise.
58724
58725 2006-09-28  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/strndup.h: Simplify the redefinition of strndup.
58728         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58729         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58730
58731 2006-09-28  Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58734         * lib/gl_linkedhash_list.c: Likewise.
58735         * lib/gl_rbtreehash_list.c: Likewise.
58736
58737 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58740         getaddrinfo.
58741
58742         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58743         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58744         it causes <stdio_ext.h> to cause a compile-time error.
58745         Problem reported by Nelson H. F. Beebe.
58746         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58747         of HAVE_DECL___PENDING.
58748
58749         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58751         declaration.
58752
58753 2006-09-27  Jim Meyering  <jim@meyering.net>
58754
58755         This file could end up with a definition for a function
58756         named __strndup, rather than rpl_strndup on a system with
58757         incomplete weak_alias support.
58758         * lib/strndup.c (strndup): Rename from __strndup.
58759         Remove #defines that used to map __strndup to strndup.
58760         Don't use K&R prototypes.
58761         Remove LIBC-related code, since this file is not sync'd with glibc.
58762         * lib/strndup.h: Revamp, accordingly.
58763         * m4/strndup.m4: Modernize.
58764
58765 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * modules/savewd (Depends-on): Add 'raise'.
58768         * lib/savewd.c: Include <signal.h>, for 'raise'.
58769
58770 2006-09-26  Jim Meyering  <jim@meyering.net>
58771
58772         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58773         when we detect Darwin 8.7.0's acl_get_file bug.
58774         Rearrange to perform the new (below) run-test while $LIBS
58775         contains any acl-related library.  Set USE_ACL at the end.
58776         (gl_ACL_GET_FILE): New function.
58777
58778 2006-09-26  Eric Blake  <ebb9@byu.net>
58779
58780         * lib/verror.c: Include <config.h> unconditionally.
58781
58782 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         * modules/clock-time (Maintainer): Add self.
58785         * modules/getlogin_r (Depends-on): Add extensions.
58786
58787 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58788
58789         * modules/clock-time: New module.
58790         * modules/nanosleep (Depends-on): Add clock-time.
58791         * modules/gethrxtime (Depends-on): Likewise.
58792         * modules/gettime (Depends-on): Likewise.
58793         * modules/settime (Depends-on): Likewise.
58794
58795         * modules/fts-lgpl: Depend on openat.
58796         * modules/mkancesdirs: Depend on savewd.
58797         * modules/mkdir-p: Likewise.
58798
58799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58800
58801         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58802
58803         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58804         `gl_have_arbitrary_file_name_length_limit' to
58805         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58806         actually works between configure runs.
58807
58808 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58809             Bruno Haible  <bruno@clisp.org>
58810
58811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58812
58813 2006-09-25  Jim Meyering  <jim@meyering.net>
58814
58815         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58816         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58817
58818 2006-09-25  Eric Blake  <ebb9@byu.net>
58819
58820         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58821         exec's in 2006-09-18 patch when shuffling fds.
58822
58823 2006-09-25  Bruno Haible  <bruno@clisp.org>
58824
58825         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58826         Reported by Jim Meyering.
58827
58828 2006-09-24  Jim Meyering  <jim@meyering.net>
58829
58830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58831         compare a pointer against a literal "0".  That caused failures with
58832         at least HP-UX's hpcc.
58833
58834 2006-09-22  Simon Josefsson  <jas@extundo.com>
58835
58836         * modules/gc-sha1:
58837         * modules/gc-md4:
58838         * modules/gc-hmac-sha1:
58839         * modules/gc-hmac-md5:
58840         * modules/gc-des:
58841         * modules/gc-arcfour: Distribute more files.
58842
58843 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58844
58845         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58846         (gl_linked_iterator_from_to): Initialize struct completely.
58847         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58848         (gl_tree_iterator_from_to): Likewise
58849         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58850         * lib/gl_array_list.c [lint] (gl_array_iterator)
58851         (gl_array_iterator_from_to): Likewise.
58852         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58853         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58854         (gl_carray_iterator_from_to): Likewise.
58855
58856         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58857         * lib/md4.c (md4_process_block): Remove unused variable.
58858         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58859         parentheses for clarity.
58860
58861 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58862
58863         * modules/bison-i18n (Depends-on): Add gettext.
58864
58865 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58866
58867         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58868         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58869         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58870         also add missing comma that caused broken test.
58871         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58872         stdlib.h, for `abort'.
58873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58874         variables.
58875         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58876         include unistd.h if present, for `rmdir'.
58877         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58878         variables.
58879         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58880         in the process include standard headers for prototypes.
58881         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58882         gets declared on GNU/Linux.
58883         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58884         unistd.h, for `rmdir'.
58885         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58886
58887         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58888         always true.
58889         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58890
58891         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58892
58893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58894
58895         * gnulib-tool (func_version): Create output all at once.  This
58896         may help avoid triggering unnecessary SIGPIPEs, and at any
58897         rate it doesn't hurt.
58898
58899 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58900             Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58903         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58904         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58905
58906         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58907         (gl_FUNC_VASPRINTF): Invoke it.
58908
58909 2006-09-22  Bruno Haible  <bruno@clisp.org>
58910
58911         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58912         getloadavg.c as first argument.
58913
58914 2006-09-22  Bruno Haible  <bruno@clisp.org>
58915
58916         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58917         at the beginning of the gl_INIT macro.
58918         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58919         gl_GETLOADAVG.
58920
58921 2006-09-22  Bruno Haible  <bruno@clisp.org>
58922
58923         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58924         module.
58925         Suggested by Ralf Wildenhues.
58926
58927 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         Import this patch from libc:
58930
58931         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58932
58933         * lib/regex_internal.c (re_string_reconstruct): Handle
58934         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58935         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58936         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58937         re_string_context_at.
58938
58939         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58940         now requires it.
58941         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58942         gl_REGEX now does it for us.
58943         (gl_REGEX): Add test taken from
58944         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58945
58946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58947         Check that large offsets work.  Modernize Autoconf usages.
58948         Prefer "yes" to mean a good thing rather than a bad.
58949         Don't put "#define mkstemp" in config.h, as this might interfere
58950         with standard system headers that "#define mkstemp mkstemp64".
58951
58952         * modules/mkstemp (Depends-on): Add extensions, so that
58953         mkstemp is visible on some platforms.
58954         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58955         (Include): Change to "mkstemp.h" from <stdlib.h>.
58956         (Files): Add mkstemp.h.
58957
58958         * lib/mkstemp.h: New file, since some standard headers
58959         #define mkstemp.
58960         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58961         Include "mkstemp.h".
58962         Make the _LIBC code resemble glibc original more,
58963         e.g., use K&R style.
58964         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58965         (mkstemp): Remove, since mkstemp.h does this for us.
58966         * lib/stdlib--.h: Include mkstemp.h.
58967
58968         Import this patch from libc:
58969
58970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58971
58972         * lib/tempname.c (__gen_tempname): Change attempts_min
58973         into a macro.  Use preprocessor to decide how to initialize
58974         attempts [Coverity CID 67].
58975
58976 2006-09-20  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/mkdtemp.c: Import from libc.
58979         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58980                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58981                 attempts_min into a macro.  Use preprocessor to decide how to
58982                 initialize attempts [Coverity CID 67].
58983         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58984                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58985                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58986
58987 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58988
58989         * gnulib-tool (func_exit): New function, to allow to pass the
58990         exit status portably through the trap.  Use everywhere.
58991         (--help, --version): Signal a write error.
58992         (trap): catch SIGPIPE, for write errors.
58993         Exit at the end of the trap, with the correct exit status.
58994
58995 2006-09-19  Karl Berry  <karl@gnu.org>
58996
58997         * doc/gnulib.texi: note about the license texinfo files.
58998
58999 2006-09-19  Eric Blake  <ebb9@byu.net>
59000
59001         * gnulib-tool: Avoid space-tab.
59002
59003 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59006         that prevented coreutils 6.1 from building.  Problem reported
59007         by Petter Reinholdtsen.
59008
59009 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * gnulib-tool (avoidlist): Fix typo that broke options like
59012         --avoid=lock that are used by coreutils bootstrap.
59013
59014 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59015
59016         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59017         more systematically.
59018
59019 2006-09-18  Jim Meyering  <jim@meyering.net>
59020
59021         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59022
59023 2006-09-18  Bruno Haible  <bruno@clisp.org>
59024
59025         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59026
59027 2006-09-18  Bruno Haible  <bruno@clisp.org>
59028
59029         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59030         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59031         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59032         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59033         * m4/gettext.m4: Require autoconf >= 2.52.
59034         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59035         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59036         of gl_cv_header_inttypes_h.
59037
59038 2006-09-18  Bruno Haible  <bruno@clisp.org>
59039
59040         * lib/javaversion.c: Include configmake.h.
59041
59042 2006-09-18  Bruno Haible  <bruno@clisp.org>
59043
59044         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59045         avoid that the while loops be executed in a subshell.
59046
59047 2006-09-18  Bruno Haible  <bruno@clisp.org>
59048
59049         * MODULES.html.sh (func_module): Break long lines.
59050         Suggested by Bruce Korb <bkorb@gnu.org>.
59051
59052 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59053
59054         Speed up by a factor of 1.12.
59055         * gnulib-tool (nl): New variable.
59056         (func_import): Rewrite include directive extraction to only read each
59057         directive once.
59058
59059 2006-09-17  Bruno Haible  <bruno@clisp.org>
59060
59061         * modules/javaversion (Makefile.am): Remove DEFS setting.
59062         (Depends-on): Add configmake, for PKGDATADIR definition.
59063
59064 2006-09-17  Bruno Haible  <bruno@clisp.org>
59065
59066         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59067
59068 2006-09-17  Bruno Haible  <bruno@clisp.org>
59069
59070         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59071         (func_modules_transitive_closure, func_modules_add_dummy,
59072         func_modules_to_filelist, func_import, func_create_testdir,
59073         func_create_megatestdir, ...): Use it wherever possible.
59074         Suggested by Ralf Wildenhues.
59075
59076 2006-09-16  Karl Berry  <karl@gnu.org>
59077
59078         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59079         to avoid sectioning errors.
59080         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59081         [ifinfo]: blank line after @center-ed titles.
59082         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59083         Spell FSF address consistently with others.
59084         (These changes approved by rms.)
59085
59086 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59087
59088         Speed up by a factor of 1.61.
59089         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59090         already checked module names again.
59091
59092 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59093
59094         Speed up by a factor of 1.13.
59095         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59096         for new_files, and the input to func_add_or_update.
59097
59098 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59099
59100         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59101         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59102
59103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * modules/mkancesdirs (Depends-on): Add fcntl.
59106         * modules/savewd: New file.
59107         * MODULES.html.sh (File system functions): Add savewd.
59108
59109         * modules/configmake (Makefile.am): Add support for the
59110         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59111
59112 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * m4/savewd.m4: New file.
59115
59116 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59119         (dirchownmod): New arg FD.  All callers changed.
59120         Use FD rather than opening the directory ourself, as opening is
59121         now the caller's responsibility.
59122         * lib/dirchownmod.h: Likewise.
59123         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59124         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59125         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59126         (test_dir): Remove.
59127         (mkancesdirs): Return length of prefix of FILE that has already
59128         been made, or -2 if there is a child doing the work.  Redo
59129         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59130         ".", and treat ".." specially since it might stray back into
59131         already-created areas.  Use a subprocess if necessary.  New arg
59132         WD; all users changed.  MAKE_DIR function should now return 1
59133         if it creates a directory that is not readable.  Return -2 if
59134         a child process is spun off.
59135         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59136         Adjust signature to match code.
59137         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59138         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59139         all users changed.
59140         * lib/savewd.c, lib/savewd.h: New files.
59141
59142 2006-09-15  Jim Meyering  <jim@meyering.net>
59143
59144         * modules/rename-dest-slash: New module.
59145         * MODULES.html.sh (posix_compat): Add it here.
59146
59147         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59148
59149 2006-09-15  Jim Meyering  <jim@meyering.net>
59150
59151         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59152         file.
59153
59154         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59155
59156 2006-09-15  Jim Meyering  <jim@meyering.net>
59157
59158         * lib/rename-dest-slash.c (has_trailing_slash): Use
59159         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59160         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59161         test before testing whether SRC is a directory.
59162         Suggestions from Bruno Haible.
59163
59164         Avoid a warning about an unused variable.
59165         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59166         into the #ifdef block where it's used.
59167
59168         * lib/rename-dest-slash.c: New file.
59169
59170 2006-09-14  Bruno Haible  <bruno@clisp.org>
59171
59172         * lib/allocsa.c: Include <config.h> unconditionally.
59173         * lib/asnprintf.c: Likewise.
59174         * lib/asprintf.c: Likewise.
59175         * lib/c-strcasecmp.c: Likewise.
59176         * lib/c-strcasestr.c: Likewise.
59177         * lib/c-strncasecmp.c: Likewise.
59178         * lib/c-strstr.c: Likewise.
59179         * lib/classpath.c: Likewise.
59180         * lib/clean-temp.c: Likewise.
59181         * lib/concatpath.c: Likewise.
59182         * lib/copy-file.c: Likewise.
59183         * lib/csharpcomp.c: Likewise.
59184         * lib/csharpexec.c: Likewise.
59185         * lib/execute.c: Likewise.
59186         * lib/fatal-signal.c: Likewise.
59187         * lib/findprog.c: Likewise.
59188         * lib/fwriteerror.c: Likewise.
59189         * lib/gl_array_list.c: Likewise.
59190         * lib/gl_array_oset.c: Likewise.
59191         * lib/gl_avltree_list.c: Likewise.
59192         * lib/gl_avltree_oset.c: Likewise.
59193         * lib/gl_avltreehash_list.c: Likewise.
59194         * lib/gl_carray_list.c: Likewise.
59195         * lib/gl_linked_list.c: Likewise.
59196         * lib/gl_linkedhash_list.c: Likewise.
59197         * lib/gl_list.c: Likewise.
59198         * lib/gl_oset.c: Likewise.
59199         * lib/gl_rbtree_list.c: Likewise.
59200         * lib/gl_rbtree_oset.c: Likewise.
59201         * lib/gl_rbtreehash_list.c: Likewise.
59202         * lib/imaxabs.c: Likewise.
59203         * lib/imaxdiv.c: Likewise.
59204         * lib/javacomp.c: Likewise.
59205         * lib/javaexec.c: Likewise.
59206         * lib/javaversion.c: Likewise.
59207         * lib/linebreak.c: Likewise.
59208         * lib/localcharset.c: Likewise.
59209         * lib/lock.c: Likewise.
59210         * lib/mbchar.c: Likewise.
59211         * lib/mbswidth.c: Likewise.
59212         * lib/mkdtemp.c: Likewise.
59213         * lib/pipe.c: Likewise.
59214         * lib/printf-args.c: Likewise.
59215         * lib/printf-parse.c: Likewise.
59216         * lib/progname.c: Likewise.
59217         * lib/progreloc.c: Likewise.
59218         * lib/readlink.c: Likewise.
59219         * lib/sh-quote.c: Likewise.
59220         * lib/stpcpy.c: Likewise.
59221         * lib/stpncpy.c: Likewise.
59222         * lib/strcasecmp.c: Likewise.
59223         * lib/strcasestr.c: Likewise.
59224         * lib/strcspn.c: Likewise.
59225         * lib/striconv.c: Likewise.
59226         * lib/strncasecmp.c: Likewise.
59227         * lib/strnlen1.c: Likewise.
59228         * lib/strstr.c: Likewise.
59229         * lib/strtok_r.c: Likewise.
59230         * lib/tls.c: Likewise.
59231         * lib/tmpdir.c: Likewise.
59232         * lib/unicodeio.c: Likewise.
59233         * lib/unsetenv.c: Likewise.
59234         * lib/vasnprintf.c: Likewise.
59235         * lib/vasprintf.c: Likewise.
59236         * lib/wait-process.c: Likewise.
59237         * lib/xallocsa.c: Likewise.
59238         * lib/xsetenv.c: Likewise.
59239         * lib/xstriconv.c: Likewise.
59240
59241 2006-09-13  Simon Josefsson  <jas@extundo.com>
59242
59243         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59244         that internally, suggested by Ralf Wildenhues
59245         <Ralf.Wildenhues@gmx.de>.
59246
59247 2006-09-13  Simon Josefsson  <jas@extundo.com>
59248
59249         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59250         @LIBOBJS@.
59251         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59252
59253 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59256         longer worry about uses that don't define HAVE_CONFIG_H.
59257         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59258         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59259         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59260         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59261         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59262         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59263         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59264         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59265         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59266         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59267         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59268         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59269         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59270         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59271         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59272         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59273         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59274         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59275         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59276         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59277         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59278         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59279         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59280         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59281         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59282         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59283         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59284         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59285         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59286         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59287         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59288         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59289         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59290         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59291         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59292         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59293         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59294         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59295         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59296         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59297         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59298         Likewise.
59299
59300 2006-09-13  Eric Blake  <ebb9@byu.net>
59301
59302         * lib/getopt.c: Fix typo in last commit.
59303
59304 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59305
59306         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59307         dgettext.
59308
59309 2006-09-12  Jim Meyering  <jim@meyering.net>
59310
59311         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59312         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59313         Reported by Nelson H. F. Beebe.
59314
59315 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59316
59317         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59318         program_invocation_name and program_invocation_short_name are
59319         initialized.
59320         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59321         and program_invocation_short_name to argp.h, so they are visible
59322         to user programs.
59323         * lib/argp.h: Likewise
59324
59325 2006-09-10  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59328         m4/inttypes_h.m4, m4/uintmax_t.m4.
59329
59330 2006-09-10  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59333         gl_AC_TYPE_UINTMAX_T.
59334
59335 2006-09-10  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59338
59339 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59340
59341         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59342         convention.  Text proposed by Bruno Haible.
59343         (struct argp_option): Document the use of N_() wrappers.
59344
59345         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59346         '\v', and translate the two parts separately, instead of feeding
59347         the whole string to gettext.  This allows to exclude
59348         '\v' from the strings visible to the translator by writing doc
59349         strings as N_("..") "\v" N_("..").
59350
59351 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * config/srclist.txt: Undo latest change; the bug was fixed.
59354
59355 2006-09-09  Bruno Haible  <bruno@clisp.org>
59356
59357         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59358         assignments if building a library without libtool.
59359         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59360         in func_emit_lib_Makefile_am.
59361         (func_import): When building a static library libfoo.a, arrange to
59362         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59363         (func_create_testdir): Likewise.
59364         * modules/gc (configure.ac, Makefile.am): If building statically,
59365         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59366         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59367         * modules/striconv (configure.ac, Makefile.am): Likewise.
59368         Based on a suggestion by Ralf Wildenhues.
59369
59370 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59373         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59374         Also:
59375
59376         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59377         Add year_2050_test to catch glibc bug 2821
59378         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59379
59380         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59381         Prefer #ifdef to #if.
59382
59383         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59384         Return from 'main' instead of calling 'exit'.
59385
59386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59389         returned the maximum time_t value rather than (time_t) -1.
59390         Problem originally reported by William Bardwell
59391         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59392
59393         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59394         Moved to here ...
59395         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59396         ... from here.
59397
59398 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59401         2821 is fixed.
59402
59403 2006-09-08  Jim Meyering  <jim@meyering.net>
59404
59405         Don't make generated files read-only.  That would bother too many
59406         people.  However, do retain the ability to work when targets are
59407         read-only: remove the destination and temporary files before writing
59408         them (when generated via sed or echo), or by using the -f option for
59409         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59410         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59411         * modules/byteswap, modules/configmake, modules/fcntl:
59412         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59413         * modules/localcharset, modules/netinet_in, modules/poll:
59414         * modules/stdbool, modules/stdint, modules/sys_select:
59415         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59416
59417 2006-09-08  Jim Meyering  <jim@meyering.net>
59418
59419         Avoid new build failure on FreeBSD 6.0.
59420         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59421         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59422         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59423
59424 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59425
59426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59427
59428 2006-09-07  Jim Meyering  <jim@meyering.net>
59429
59430         Fix global typo in last change: use chmod u-w, not chmod u-x.
59431         Spotted by Paul Eggert and Bruce Korb.
59432         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59433         * modules/byteswap, modules/configmake, modules/fcntl:
59434         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59435         * modules/localcharset, modules/netinet_in, modules/poll:
59436         * modules/stdbool, modules/stdint, modules/sys_select:
59437         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59438
59439 2006-09-06  Jim Meyering  <jim@meyering.net>
59440
59441         Make generated files be read-only.
59442         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59443         Ensure that each generated file is now read-only.
59444         * modules/argz: Likewise.
59445         * modules/arpa_inet: Likewise.
59446         * modules/byteswap: Likewise.
59447         * modules/configmake: Likewise.
59448         * modules/fcntl: Likewise.
59449         * modules/fnmatch: Likewise.
59450         * modules/getopt: Likewise.
59451         * modules/glob: Likewise.
59452         * modules/inttypes: Likewise.
59453         * modules/netinet_in: Likewise.
59454         * modules/poll: Likewise.
59455         * modules/stdbool: Likewise.
59456         * modules/stdint: Likewise.
59457         * modules/sys_select: Likewise.
59458         * modules/sys_socket: Likewise.
59459         * modules/sys_stat: Likewise.
59460         * modules/sysexits: Likewise.
59461         * modules/localcharset: Same as above, but continue using temporary
59462         file named "t-$@" (why different?) rather than the "$@-t" used
59463         everywhere else.
59464
59465         * modules/sysexits (Makefile.am): Replace literal occurrences
59466         of "sysexit.h" more readable, and more consistent, "$@".
59467
59468 2006-09-06  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/striconv: New file.
59471         * modules/xstriconv: New file.
59472         * MODULES.html.sh (Internationalization functions): Add striconv,
59473         xstriconv.
59474
59475 2006-09-06  Bruno Haible  <bruno@clisp.org>
59476
59477         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59478         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59479         not using libtool correctly.
59480
59481 2006-09-06  Bruno Haible  <bruno@clisp.org>
59482
59483         * lib/striconv.h: New file.
59484         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59485         iconvstring.c.
59486         * lib/xstriconv.h: New file.
59487         * lib/xstriconv.c: New file.
59488
59489 2006-09-06  Bruno Haible  <bruno@clisp.org>
59490
59491         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59492         lib_..._LDFLAGS.
59493
59494 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59495
59496         * lib/argz_.h: Sync from Libtool.
59497
59498         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59499                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59500
59501         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59502
59503 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59504
59505         * modules/trim: New file.
59506
59507 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59508
59509         * lib/trim.h: New file.
59510         * lib/trim.c: New file.
59511
59512 2006-09-05  Bruno Haible  <bruno@clisp.org>
59513
59514         * MODULES.html.sh (String handling): Add trim.
59515
59516 2006-09-04  Karl Berry  <karl@gnu.org>
59517
59518         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59519         until next release.
59520
59521 2006-09-03  Bruno Haible  <bruno@clisp.org>
59522
59523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59524         correctly.
59525
59526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59529         not gl_GETLOADAVG.  Omit unneeded semicolons.
59530         Problems reported by Ralf Wildenhues in
59531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59532         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59533         at the end, which is the usual gnulib style.
59534
59535         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59536         of doing all the work ourselves.
59537         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59538         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59539
59540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59543         Problem reported by Ralf Wildenhues in
59544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59545
59546         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59547         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59548
59549 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59552         yesterday's patch by changing test -n to test -z.
59553
59554 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59557         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59558         the former is now obsolescent.
59559
59560         * modules/chdir-long (Depends-on): Add fcntl.
59561
59562 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59563
59564         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59565         obsolescent, and programs should use gnulib instead.
59566         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59567         but with prefixes changed.
59568
59569 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59572         or stdbool.h, because they might not exist while configuring.
59573
59574         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59575         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59576         does that for us.
59577         (O_DIRECTORY): Remove.
59578
59579 2006-08-31  Eric Blake  <ebb9@byu.net>
59580
59581         * gnulib-tool: Don't let emacs change spaces to TAB.
59582
59583 2006-08-31  Bruno Haible  <bruno@clisp.org>
59584
59585         * gnulib-tool: When calling func_import more than once, do it in a
59586         subshell.
59587         Reported by Eric Blake <ebb9@byu.net>.
59588
59589 2006-08-31  Bruno Haible  <bruno@clisp.org>
59590
59591         * gnulib-tool (nl): Remove variable.
59592         (sed_transform_lib_file): Use more robust test for config-h module.
59593         (func_import): Fix typo in 2006-08-25 patch.
59594
59595 2006-08-31  Bruno Haible  <bruno@clisp.org>
59596
59597         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59598         specified, augment Makefile.am variables instead of assigning them.
59599
59600 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         Work around a bug in both the Linux and SunOS 64-bit kernels:
59603         nanosleep mishandles sleeps for longer than 2**31 seconds.
59604         Problem reported by Frank v Waveren in
59605         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59607         Check for nanosleep bug.
59608         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59609
59610 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         Work around a bug in both the Linux and SunOS 64-bit kernels:
59613         nanosleep mishandles sleeps for longer than 2**31 seconds.
59614         Problem reported by Frank v Waveren in
59615         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59616         * lib/nanosleep.c (BILLION): New constant.
59617         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59618         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59619         implementation.
59620
59621 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * modules/nanosleep (Depends-on): Add gettime.
59624
59625 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59626         and Simon Josefsson  <jas@extundo.com>
59627         and Oskar Liljeblad  <oskar@osk.mine.nu>
59628
59629         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59630         * gnulib-tool (func_import): New license type 'unmodifiable license
59631         text'.
59632         * modules/fdl: Use it.  Longer description.
59633         * module/gpl, module/lgpl: New files.
59634
59635 2006-08-30  Jim Meyering  <jim@meyering.net>
59636
59637         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59638         shadowing the parameter.
59639
59640 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59641
59642         Sync from Libtool:
59643
59644         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59645
59646         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59647         sharing with gnulib.  Report by Eric Blake.
59648
59649 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         * modules/isapipe: New file.
59652         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59653
59654 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * modules/configmake (Makefile.am): Add a comment, and omit
59657         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59658         by Bruno Haible.
59659
59660 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59661
59662         * m4/isapipe.m4: New file.
59663
59664 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * lib/isapipe.c, lib/isapipe.h: New files.
59667
59668 2006-08-29  Jim Meyering  <jim@meyering.net>
59669
59670         * modules/configmake (Makefile.am): Make configmake.h depend on
59671         Makefile.  Otherwise, a stale configmake.h could hang around.
59672
59673 2006-08-29  Eric Blake  <ebb9@byu.net>
59674
59675         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59676         resolution of upstream bug 3044.
59677
59678 2006-08-29  Bruno Haible  <bruno@clisp.org>
59679
59680         * modules/localcharset (Depends-on): Add configmake.
59681         (Makefile.am): Remove setting of LIBDIR through DEFS.
59682
59683 2006-08-29  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59686         defined.
59687
59688 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * modules/fcntl: New file.
59691         * modules/chdir-safer (Depends-on): Add fcntl.
59692         * modules/fts: Likewise.
59693         * modules/mkdir-p: Likewise.
59694
59695         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59696         This undoes the most recent change, since we're now addressing the
59697         problem in a different way.
59698
59699         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59700         into output, since the output might be called Makefile.am even
59701         if $makefile_name is something different.
59702         (func_import): Use $makefile_am rather than
59703         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59704         empty.
59705
59706         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59707
59708 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59711         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59712         recent change to stdint.m4, since we're now addressing the problem in a
59713         different way.
59714
59715 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * m4/fcntl_h.m4: New file.
59718
59719 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * lib/fcntl_.h: New file.
59722         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59723         the fcntl module.
59724         * lib/dirchownmod.c: Likewise.
59725         * lib/fts.c: Likewise.
59726
59727         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59728         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59729         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59730         just before including <inttypes.h>, to avoid circular inclusion.
59731
59732 2006-08-28  Jim Meyering  <jim@meyering.net>
59733
59734         * doc/visibility.texi: Actually read and correct the grammar of the
59735         sentence affected by yesterday's change.
59736
59737 2006-08-28  Eric Blake  <ebb9@byu.net>
59738
59739         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59740         needs wrapper.
59741
59742 2006-08-28  Eric Blake  <ebb9@byu.net>
59743
59744         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59745
59746 2006-08-28  Eric Blake  <ebb9@byu.net>
59747
59748         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59749
59750 2006-08-28  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/c-strstr: New file, from GNU gettext.
59753         * MODULES.html.sh (String handling): Add c-strstr.
59754
59755 2006-08-28  Bruno Haible  <bruno@clisp.org>
59756
59757         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59758         macros.
59759         Reported by Eric Blake.
59760
59761 2006-08-28  Bruno Haible  <bruno@clisp.org>
59762
59763         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59764         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59765         * lib/vasprintf.c: Include errno.h, limits.h.
59766         (EOVERFLOW): New fallback definition.
59767         (vasprintf): Test here whether the string length is > INT_MAX.
59768         * lib/vsnprintf.c: Include errno.h, limits.h.
59769         (EOVERFLOW): New fallback definition.
59770         (vsnprintf): Fix bug when generated string was too long for the buffer.
59771         Test here whether the string length is > INT_MAX.
59772
59773 2006-08-28  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/inttypes_.h (SCNX*): Remove definitions.
59776         Reported by Eric Blake.
59777
59778 2006-08-28  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/c-strstr.h: New file, from GNU gettext.
59781         * lib/c-strstr.c: New file, from GNU gettext.
59782
59783 2006-08-28  Bruno Haible  <bruno@clisp.org>
59784
59785         * gnulib-tool: Reorder some statements.
59786
59787 2006-08-28  Bruno Haible  <bruno@clisp.org>
59788
59789         * gnulib-tool: New option --makefile-name.
59790         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59791         $makefile_name.
59792         (func_import): Write $makefile_name to the cache file, and read it from
59793         there unless explicitly specified. Use $makefile_name as file name
59794         instead of Makefile.am. Adjust the recommendations accordingly.
59795
59796 2006-08-28  Bruno Haible  <bruno@clisp.org>
59797
59798         * gnulib-tool (func_verify_module): Check against misapplying patch.
59799
59800 2006-08-28  Bruno Haible  <bruno@clisp.org>
59801
59802         * gnulib-tool (func_relativize, func_relconcat): New functions.
59803         Give an error if --local-dir is given with --update.
59804         Remove trailing slashes from $local_gnulib_dir.
59805         (func_import): Store the relativized $local_gnulib_dir in
59806         gnulib-cache.m4, and read it from there if not specified explicitly.
59807
59808 2006-08-28  Bruno Haible  <bruno@clisp.org>
59809
59810         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59811         is the current directory. Respect also $local_gnulib_dir.
59812
59813 2006-08-28  Bruno Haible  <bruno@clisp.org>
59814             Simon Josefsson  <jas@extundo.com>
59815
59816         BeOS portability.
59817         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59818
59819 2006-08-27  Jim Meyering  <jim@meyering.net>
59820
59821         * doc/visibility.texi: Remove duplicate word: "pointer".
59822
59823 2006-08-26  Bruno Haible  <bruno@clisp.org>
59824
59825         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59826         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59827         (Makefile.am): Create inttypes.h from inttypes_.h.
59828         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59829
59830         * modules/imaxabs: New file.
59831
59832         * modules/imaxdiv: New file.
59833
59834 2006-08-26  Bruno Haible  <bruno@clisp.org>
59835
59836         * m4/inttypes.m4: New file.
59837         * m4/_inttypes_h.m4: Remove file.
59838         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59839         PRI_MACROS_BROKEN.
59840         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59841
59842         * m4/imaxabs.m4: New file.
59843
59844         * m4/imaxdiv.m4: New file.
59845
59846 2006-08-26  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/inttypes_.h: New file.
59849         * lib/inttypes.h: Remove file.
59850         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59851
59852         * lib/imaxabs.c: New file.
59853
59854         * lib/imaxdiv.c: New file.
59855
59856 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         New config-h module, so that "make" output needn't be cluttered
59859         by -DHAVE_CONFIG_H.
59860         * MODULES.html.sh (Support for building libraries and executables):
59861         Add config-h.
59862         * modules/config-h: New file.
59863         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59864         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59865         the config-h module is used.
59866
59867         New configmake module, so that "make" output needn't be cluttered
59868         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59869         * MODULES.html.sh (Support for building libraries and executables):
59870         Add configmake.
59871         * modules/configmake: New file.
59872
59873 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59874
59875         * m4/config-h.m4: New file.
59876
59877 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59878
59879         * config/srclist.txt: Add elisp-comp.
59880
59881 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * MODULES.html.sh (Support for building libraries and executables):
59884         Add elisp-comp.
59885         * build-aux/elisp-comp: New file.
59886         * modules/elisp-comp: New file.
59887
59888 2006-08-24  Bruno Haible  <bruno@clisp.org>
59889
59890         * gnulib-tool (func_create_testdir): Use non-default values of
59891         sourcebase and m4base.
59892
59893 2006-08-24  Bruno Haible  <bruno@clisp.org>
59894
59895         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59896         HTML structure.
59897
59898 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * modules/openat (Depends-on): Add lchown.
59901
59902 2006-08-23  Bruno Haible  <bruno@clisp.org>
59903
59904         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59905         of gl_LOCK_EARLY instead of gl_LOCK.
59906
59907 2006-08-23  Bruno Haible  <bruno@clisp.org>
59908
59909         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59910         on OSF/1 to no.
59911         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59912
59913 2006-08-23  Bruno Haible  <bruno@clisp.org>
59914
59915         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59916         as unusable.
59917
59918         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59919         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59920         (gl_LOCK): New macro.
59921
59922 2006-08-22  Simon Josefsson  <jas@extundo.com>
59923
59924         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59925         to md5 module.
59926
59927 2006-08-22  Simon Josefsson  <jas@extundo.com>
59928
59929         * MODULES.html.sh: Add "Support for maintaining and release
59930         projects".
59931
59932         * build-aux/gnupload: New file, from coreutils.
59933
59934 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         Avoid the need for AC_LIBSOURCES in m4 macros.
59937         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59938         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59939         * modules/check-version (EXTRA_DIST): Add check-version.h.
59940         * modules/crc (EXTRA_DIST): Add crc.h.
59941         * modules/des (EXTRA_DIST): Add des.h.
59942         * modules/gc (EXTRA_DIST): Add gc.h.
59943         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59944         * modules/getline (EXTRA_DIST): Add getline.h.
59945         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59946         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59947         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59948         * modules/md2 (EXTRA_DIST): Add md2.h.
59949         * modules/md4 (EXTRA_DIST): Add md4.h.
59950         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59951         * modules/read-file (EXTRA_DIST): Add read-file.h.
59952         * modules/readline (EXTRA_DIST): Add readline.h.
59953         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59954         rijndael-api-fst.h.
59955
59956 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * m4/rijndael.m4 (gl_ARCFOUR):
59959         * m4/arctwo.m4 (gl_ARCTWO):
59960         * m4/check-version.m4 (gl_CHECK_VERSION):
59961         * m4/crc.m4 (gl_CRC):
59962         * m4/des.m4 (gl_DES):
59963         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59964         * m4/gc.m4 (gl_GC):
59965         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59966         * m4/getline.m4 (gl_FUNC_GETLINE):
59967         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59968         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59969         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59970         * m4/md2.m4 (gl_MD2):
59971         * m4/md4.m4 (gl_MD4):
59972         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59973         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59974         * m4/readline.m4 (gl_FUNC_READLINE):
59975         * m4/rijndael.m4 (gl_RIJNDAEL):
59976         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59977         to get the necessary .h files and whatnot.
59978
59979 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59982         gnulib rather than the other way around.
59983         * config/srclistvars.sh (COREUTILS): Remove.
59984
59985 2006-08-22  Jim Meyering  <jim@meyering.net>
59986
59987         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59988
59989         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59990
59991 2006-08-22  Eric Blake  <ebb9@byu.net>
59992
59993         * modules/regexprops-generic: New file.
59994         * MODULES.html.sh (Support for building documentation): List it.
59995
59996 2006-08-22  Eric Blake  <ebb9@byu.net>
59997
59998         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59999         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60001         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60002
60003 2006-08-22  Bruno Haible  <bruno@clisp.org>
60004
60005         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60006         and lib_LTLIBRARIES like the other lib_* variables.
60007
60008 2006-08-22  Bruno Haible  <bruno@clisp.org>
60009
60010         * build-aux/x-to-1.in: New file, from GNU gettext.
60011
60012 2006-08-22  Bruno Haible  <bruno@clisp.org>
60013
60014         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60015         <utmpx.h> exists.
60016
60017 2006-08-22  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60020         <utmpx.h> exists.
60021
60022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         BeOS portability.
60025         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60026         exist.
60027         Problem reported by Bruno Haible.
60028
60029 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         Avoid the need for AC_LIBSOURCES in m4 macros.
60032         * modules/acl (EXTRA_DIST): Add acl.h.
60033         * modules/argmatch (Files): Add m4/argmatch.m4.
60034         (configure.ac): Add gl_ARGMATCH.
60035         (EXTRA_DIST): Renamed from lib_SOURCES, for
60036         consistency with the other modules.  Remove argmatch.c.
60037         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60038         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60039         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60040         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60041         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60042         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60043         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60044         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60045         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60046         * modules/closeout (EXTRA_DIST): Add closeout.h.
60047         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60048         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60049         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60050         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60051         dirname.h; remove basename.c and stripslash.c.
60052         * modules/exclude (EXTRA_DIST): Add exclude.h.
60053         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60054         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60055         * modules/file-type (EXTRA_DIST): Add file-type.h.
60056         * modules/filemode (EXTRA_DIST): Add filemode.h.
60057         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60058         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60059         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60060         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60061         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60062         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60063         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60064         * modules/getdate (EXTRA_DIST): Add getdate.c.
60065         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60066         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60067         * modules/getpass (EXTRA_DIST): Add getpass.h.
60068         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60069         * modules/group-member (EXTRA_DIST): Add group-member.h.
60070         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60071         * modules/hash (EXTRA_DIST): Add hash.h.
60072         * modules/human (EXTRA_DIST): Add human.h.
60073         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60074         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60075         * modules/lchown (EXTRA_DIST): Add lchown.h.
60076         * modules/long-options (EXTRA_DIST): Add long-options.h.
60077         * modules/lstat (EXTRA_DIST): Add lstat.h.
60078         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60079         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60080         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60081         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60082         * modules/memxor (EXTRA_DIST): Add memxor.h.
60083         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60084         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60085         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60086         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60087         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60088         * modules/physmem (EXTRA_DIST): Add physmem.h.
60089         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60090         * modules/posixver (EXTRA_DIST): Add posixver.h.
60091         * modules/quote (EXTRA_DIST): Add quote.h.
60092         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60093         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60094         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60095         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60096         regex_internal.h regexec.c.
60097         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60098         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60099         * modules/same (EXTRA_DIST): Add same.h.
60100         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60101         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60102         * modules/savedir (EXTRA_DIST): Add savedir.h.
60103         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60104         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60105         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60106         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60107         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60108         * modules/strdup (EXTRA_DIST): Add strdup.h.
60109         * modules/strftime (EXTRA_DIST): Add strftime.h.
60110         * modules/strndup (EXTRA_DIST): Add strndup.h.
60111         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60112         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60113         * modules/time_r (EXTRA_DIST): Add time_r.h.
60114         * modules/timespec (EXTRA_DIST): Add timespec.h.
60115         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60116         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60117         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60118         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60119         * modules/userspec (EXTRA_DIST): Add userspec.h.
60120         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60121         * modules/utimens (EXTRA_DIST): Add utimens.h.
60122         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60123         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60124         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60125         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60126         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60127         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60128         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60129         * modules/yesno (EXTRA_DIST): Add yesno.h.
60130
60131 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60134
60135         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60136         * m4/dev-ino.m4, same-inode.m4: Remove.
60137
60138         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60139         * m4/acl.m4 (AC_FUNC_ACL):
60140         * m4/backupfile.m4 (gl_BACKUPFILE):
60141         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60142         * m4/canon-host.m4 (gl_CANON_HOST):
60143         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60144         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60145         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60146         * m4/cloexec.m4 (gl_CLOEXEC):
60147         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60148         * m4/closeout.m4 (gl_CLOSEOUT):
60149         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60150         * m4/dirname.m4 (gl_DIRNAME):
60151         * m4/exclude.m4 (gl_EXCLUDE):
60152         * m4/exitfail.m4 (gl_EXITFAIL):
60153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60154         * m4/file-type.m4 (gl_FILE_TYPE):
60155         * m4/filemode.m4 (gl_FILEMODE):
60156         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60157         * m4/fpending.m4 (gl_FUNC_FPENDING):
60158         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60159         * m4/fts.m4 (gl_FUNC_FTS):
60160         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60161         * m4/getdate.m4 (gl_GETDATE):
60162         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60163         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60164         * m4/getpass.m4 (gl_FUNC_GETPASS):
60165         * m4/gettime.m4 (gl_GETTIME):
60166         * m4/getugroups.m4 (gl_GETUGROUPS):
60167         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60168         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60169         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60170         * m4/hash.m4 (gl_HASH):
60171         * m4/idcache.m4 (gl_IDCACHE):
60172         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60173         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60174         * m4/long-options.m4 (gl_LONG_OPTIONS):
60175         * m4/lstat.m4 (gl_FUNC_LSTAT):
60176         * m4/md5.m4 (gl_MD5):
60177         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60178         * m4/memcoll.m4 (gl_MEMCOLL):
60179         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60180         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60181         * m4/memxor.m4 (gl_MEMXOR):
60182         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60183         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60184         * m4/modechange.m4 (gl_MODECHANGE):
60185         * m4/mountlist.m4 (gl_MOUNTLIST):
60186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60187         * m4/openat.m4 (gl_FUNC_OPENAT):
60188         * m4/pathmax.m4 (gl_PATHMAX):
60189         * m4/physmem.m4 (gl_PHYSMEM):
60190         * m4/posixtm.m4 (gl_POSIXTM):
60191         * m4/posixver.m4 (gl_POSIXVER):
60192         * m4/quote.m4 (gl_QUOTE):
60193         * m4/quotearg.m4 (gl_QUOTEARG):
60194         * m4/readtokens.m4 (gl_READTOKENS):
60195         * m4/readutmp.m4 (gl_READUTMP):
60196         * m4/regex.m4 (gl_REGEX):
60197         * m4/safe-read.m4 (gl_SAFE_READ):
60198         * m4/safe-write.m4 (gl_SAFE_WRITE):
60199         * m4/same.m4 (gl_SAME):
60200         * m4/save-cwd.m4 (gl_SAVE_CWD):
60201         * m4/savedir.m4 (gl_SAVEDIR):
60202         * m4/settime.m4 (gl_SETTIME):
60203         * m4/sha1.m4 (gl_SHA1):
60204         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60205         * m4/stat-macros.m4 (gl_STAT_MACROS):
60206         * m4/stat-time.m4 (gl_STAT_TIME):
60207         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60208         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60209         * m4/strdup.m4 (gl_FUNC_STRDUP):
60210         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60211         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60212         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60213         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60214         * m4/time_r.m4 (gl_TIME_R):
60215         * m4/timespec.m4 (gl_TIMESPEC):
60216         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60217         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60218         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60219         * m4/userspec.m4 (gl_USERSPEC):
60220         * m4/utimecmp.m4 (gl_UTIMECMP):
60221         * m4/utimens.m4 (gl_UTIMENS):
60222         * m4/xalloc.m4 (gl_XALLOC):
60223         * m4/xgetcwd.m4 (gl_XGETCWD):
60224         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60225         * m4/xreadlink.m4 (gl_XREADLINK):
60226         * m4/xstrtod.m4 (gl_XSTRTOD):
60227         * m4/yesno.m4 (gl_YESNO):
60228         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60229         to get the necessary .h files and whatnot.
60230
60231 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60232             Bruno Haible  <bruno@clisp.org>
60233
60234         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60235         /bin/sh understanding of '!' conditional negation.
60236
60237 2006-08-21  Jim Meyering  <jim@meyering.net>
60238
60239         * modules/openat (Depends-on): Really alphabetize.
60240
60241         * modules/acl (Depends-on): Add error and quote.
60242
60243         * check-module (find_included_lib_files): Add at-func.c to the
60244         ok-to-include-more-than-once white list.
60245
60246         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60247
60248 2006-08-21  Bruno Haible  <bruno@clisp.org>
60249
60250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60251         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60252         Reported by Martin Lambers <marlam@marlam.de>.
60253
60254 2006-08-21  Bruno Haible  <bruno@clisp.org>
60255
60256         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60257         specify an installation location, don't emit a noinst_LIBRARIES or
60258         noinst_LTLIBRARIES assignment.
60259
60260 2006-08-21  Bruno Haible  <bruno@clisp.org>
60261
60262         BeOS portability.
60263         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60264         BeOS has mbrtowc() but no <wctype.h>.
60265
60266 2006-08-21  Bruno Haible  <bruno@clisp.org>
60267
60268         BeOS portability.
60269         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60270         exist.
60271
60272 2006-08-21  Bruno Haible  <bruno@clisp.org>
60273
60274         BeOS portability.
60275         * lib/mbchar.h: Include <wctype.h> only if it exists.
60276
60277 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60278
60279         Remove files that are no longer needed by their respective modules.
60280         * m4/obstack.m4: Remove.
60281         * m4/strerror_r.m4: Remove.
60282         * m4/uint32_t.m4: Remove.
60283         * m4/uintptr_t.m4: Remove.
60284         * m4/ullong_max.m4: Remove.
60285         * m4/xstrtoimax.m4: Remove.
60286         * m4/xstrtoumax.m4: Remove.
60287
60288         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60289         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60290         dependencies now capture this.
60291
60292         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60293         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60294         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60295         * m4/human.m4 (gl_HUMAN): Likewise.
60296         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60297         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60298
60299         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60300
60301         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60302         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60303         stdint.
60304         * m4/human.m4 (gl_HUMAN): Likewise.
60305         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60306         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60307         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60308         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60309         * m4/xstrtol (gl_XSTRTOL): Likewise.
60310
60311         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60312         AC_TYPE_LONG_LONG_INT.
60313         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60314         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60315         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60316         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60317
60318         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60319         on stdbool.
60320
60321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60322         (gl_PREREQ_XSTRTOUL): Remove.
60323
60324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60325
60326         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60327         mode.
60328
60329 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         Add and change modules to make it easier for coreutils to use
60332         gnulib-tool.
60333         * modules/backupfile (Files): Remove m4/d-ino.m4.
60334         (Depends-on): Add d-ino.
60335         * modules/cycle-check (Depends-on): Add stdint.
60336         (lib_SOURCES): Add cycle-check.h.
60337         * modules/d-ino: New module.
60338         * modules/d-type: New module.
60339         * modules/error (Files): Remove m4/strerror_r.m4.
60340         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60341         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60342         m4/inttypes_h.m4, m4/uintmax_t.m4.
60343         (Depends-on): Add stdint.
60344         (lib_SOURCES): Add fsusage.h.
60345         * modules/getcwd (Files): Remove d-ino.m4.
60346         (Depends-on): Add d-ino.
60347         * modules/getndelim2 (Depends-on): Add stdint.
60348         * modules/glob (Files): Remove m4/d-type.m4.
60349         (Depends-on): Add d-type.
60350         * modules/host-os: New module.
60351         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60352         m4/inttypes_h.m4, m4/uintmax_t.m4.
60353         * Depends-on: Add stdint.
60354         (lib_SOURCES): Add human.h.
60355         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60356         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60357         m4/uintmax_t.m4, m4/ulonglong.m4.
60358         (Depends-on): Add stdint.
60359         (EXTRA_DIST): Add inttostr.h.
60360         * modules/lchmod: New module.
60361         * modules/link-follow: New module.
60362         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60363         (Depends-on): Add lchmod.
60364         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60365         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60366         (Depends-on): Add stdint.
60367         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60368         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60369         (Depends-on): Add stdint.
60370         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60371         * modules/perl: New module.
60372         * modules/regex (Depends-on): Add stdint.
60373         * modules/rmdir-errno: New module.
60374         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60375         m4/intmax_t.m4.
60376         (Depends-on): Add stdint.
60377         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60378         m4/uintmax_t.m4.
60379         (Depends-on): Add stdint.
60380         * modules/unlink-busy: New module.
60381         * modules/utimecmp (Depends-on): Add stdint.
60382         * modules/uptime: New module.
60383         * modules/winsz-ioctl: New module.
60384         * modules/winsz-termios: New module.
60385         * modules/xnanosleep (Depends-on): Add nanosleep.
60386         * modules/ullong_max: Remove.
60387         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60388         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60389         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60390         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60391         (Depends-on): Add inttypes.
60392         (lib_SOURCES): Add xstrtol.h.
60393         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60394         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60395         * MODULES.html.sh: Move 'assert' into the assert section.
60396         Move 'dummy' into the linking section.
60397         Remove ullong_max.
60398         Add section for compatibility checks for POSIX:2001 functions,
60399         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60400         winsz-ioctl, and winsz-termios into it.
60401         Add lchmod.
60402         Add top-level Misc section and put host-os, perl, and uptime
60403         into it.
60404
60405 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60408         now assume the stdint module.  Do not include inttypes.h.
60409         * lib/fsusage.h: Likewise.
60410         * lib/getndelim2.c: Likewise.
60411         * lib/human.h: Likewise.
60412         * lib/inttostr.h: Likewise.
60413         * lib/obstack.c: Likewise.
60414         * lib/regex_internal.h: Likewise.
60415         * lib/tempname.c: Likewise.
60416         * lib/utimecmp.c: Likewise.
60417         * lib/xstrtol.h: Likewise.
60418
60419         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60420
60421         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60422         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60423         * lib/xtime.h: Likewise.
60424
60425 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * modules/openat (Files): Add lib/fchmodat.c.
60428         Fixes problem reported by Jay Youngman.
60429
60430 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60433         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60434
60435 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60436             Bruno Haible  <bruno@clisp.org>
60437
60438         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60439         and is a script that invokes bison. Tighten the code. Add comments.
60440
60441 2006-08-18  Jim Meyering  <jim@meyering.net>
60442
60443         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60444         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60445         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60446         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60447
60448 2006-08-18  Bruno Haible  <bruno@clisp.org>
60449
60450         * modules/bison-i18n: New file.
60451         * MODULES.html.sh (Internationalization functions): Add it.
60452
60453 2006-08-18  Bruno Haible  <bruno@clisp.org>
60454
60455         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60456         sys/statvfs.h. When getmntinfo was found, check its declaration and
60457         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60458
60459 2006-08-18  Bruno Haible  <bruno@clisp.org>
60460
60461         * m4/bison-i18n.m4: New file, from bison.
60462
60463 2006-08-18  Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60466         (ME_DUMMY): Treat "kernfs" as a dummy.
60467         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60468
60469 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         Update from coreutils.
60472
60473         2006-08-15  Jim Meyering  <jim@meyering.net>
60474
60475         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60476
60477         2006-01-17  Jim Meyering  <jim@meyering.net>
60478
60479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60480
60481         2006-01-11  Jim Meyering  <jim@meyering.net>
60482
60483         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60484         Check for the lchmod function.
60485
60486 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60487
60488         Update from coreutils.
60489
60490         * lib/__fpending.h: Add copyright notice.
60491         * lib/fprintftime.h: Likewise.
60492         * lib/savedir.c: Use (C) in copyright notice.
60493         * lib/savedir.h: Likewise.
60494
60495         2006-08-15  Jim Meyering  <jim@meyering.net>
60496
60497         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60498         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60499         in support of the EXPECTED_ERRNO macro.
60500         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60501         definitions.  Instead, define the appropriate symbols and include
60502         "at-func.c".
60503         * lib/mkdirat.c (mkdirat): Likewise.
60504         * lib/fchmodat.c (fchmodat): Likewise.
60505         (ENOSYS): Remove definition.
60506         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60507         it.  Don't include "unistd--.h" -- it wasn't ever used.
60508
60509         2006-01-17  Jim Meyering  <jim@meyering.net>
60510
60511         Rewrite fts.c not to change the current working directory,
60512         by using openat, fstatat, fdopendir, etc..
60513
60514         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60515         (HAVE_OPENAT_SUPPORT): Define.
60516         [_LIBC] (fchdir): Don't undef or define; no longer used.
60517         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60518         Now, this `function' always succeeds, and consumes its file descriptor
60519         parameter -- so callers must not close such FDs.  Update callers.
60520         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60521         (diropen): Add parameter, SP.  Adjust all callers.
60522         Implement using diropen_fd, rather than open.
60523         (fts_open): Initialize new member, fts_cwd_fd.
60524         Remove fts_rft-setting code.
60525         (fts_close): Close fts_cwd_fd, if necessary.
60526         (__opendir2): Define in terms of opendir or opendirat,
60527         depending on whether the FST_NOCHDIR flag is set.
60528         (fts_build): Since fts_safe_changedir consumes its FD, and since
60529         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60530         and close the dup'd file descriptor upon failure.
60531         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60532         (fts_safe_changedir): Tweak semantics to reflect that this function
60533         now calls cwd_advance_fd and hence consumes its FD argument.
60534         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60535         [struct FTS] (fts_rft): Remove now-unused member.
60536         [struct FTS] (fts_cycle.state): Improve comment.
60537
60538         * lib/openat.c (openat_needs_fchdir): New function.
60539         * lib/openat.h (openat_needs_fchdir): Declare it.
60540
60541 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60542
60543         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60544         Problem and fix reported by Pádraig Brady in
60545         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60546
60547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60550
60551 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60552
60553         * lib/memcoll.c (memcoll): Optimize for the common case where the
60554         arguments are bytewise equal.
60555
60556 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * doc/regexprops-generic.texi: Add a copyright notice.
60559
60560 2006-08-15  Bruno Haible  <bruno@clisp.org>
60561
60562         * modules/tmpdir (License): Change to LGPL.
60563
60564 2006-08-15  Bruno Haible  <bruno@clisp.org>
60565
60566         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60567         module.
60568
60569 2006-08-14  Simon Josefsson  <jas@extundo.com>
60570
60571         * config/srclist.txt: Add gnupload.
60572
60573 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         Change copyright notice from LGPL 2 to GPL 2, since that's the
60576         standard form used in the gnulib repository.
60577         * tests/test-lock.c: Likewise.
60578         * tests/test-stdint.c: Likewise.
60579         * tests/test-tls.c: Likewise.
60580
60581         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60582         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60583         Add copyright notice.
60584
60585         * check-module: Add copyright notice.  Output a copyright
60586         notice if "--version" is specified.
60587         * modules/COPYING: New file.
60588         * tests/test-getaddrinfo.c: Add copyright notice.
60589         * tests/test-verify.c: Likewise.
60590
60591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         Change copyright notice from LGPL 2 to GPL 2, since that's the
60594         standard form used in the gnulib repository.
60595         * lib/lock.c: LGPL -> GPL.
60596         * lib/lock.h: Likewise.
60597         * lib/strnlen1.c: Likewise.
60598         * lib/strnlen1.h: Likewise.
60599         * lib/tls.c: Likewise.
60600         * lib/tls.h: Likewise.
60601         * lib/tmpdir.c: Likewise.
60602
60603         * lib/TODO: Remove; this belongs only in coreutils.
60604
60605 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         Add copyright notices to long-enough files that lack them, since
60608         otherwise the files aren't clearly free.  Use the same notice that
60609         getdate.texi already uses.
60610         * doc/alloca-opt.texi: Add copyright notice.
60611         * doc/alloca.texi: Likewise.
60612         * doc/ctime.texi: Likewise.
60613         * doc/functions.texi: Likewise.
60614         * doc/gcd.texi: Likewise.
60615         * doc/gnulib-tool.texi: Likewise.
60616         * doc/inet_ntoa.texi: Likewise.
60617         * doc/visibility.texi: Likewise.
60618
60619         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60620         * doc/quote.texi: Add copyright notice.
60621
60622         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60623         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60624         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60625         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60626         is now obsolete, and give a pointer to the Sun list.
60627         Add copyright notice.
60628
60629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         * config/srclistvars.sh: Add copyright notice.
60632
60633 2006-08-14  Eric Blake  <ebb9@byu.net>
60634
60635         Import the following change from libc:
60636
60637         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60638
60639         Upstream bug 2997.
60640         * lib/misc/error.c: Add space between program name and message if file
60641         name is missing.
60642
60643 2006-08-12  Karl Berry  <karl@gnu.org>
60644
60645         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60646         remove, these originate in gnulib now.
60647
60648 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60649
60650         * doc/Makefile (standards.info standards.html standards.dvi):
60651         Also depend on make-stds.texi.
60652
60653 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60656         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60657
60658         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60659         in wchar_t.  Problem reported by Eric Blake.
60660
60661         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60662         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60663         Also, help the compiler to keep LEN in a register.
60664
60665 2006-08-11  Eric Blake  <ebb9@byu.net>
60666
60667         * users.txt: Sort.  Add tar.
60668
60669 2006-08-11  Bruno Haible  <bruno@clisp.org>
60670
60671         * users.txt: New file.
60672
60673 2006-08-11  Bruno Haible  <bruno@clisp.org>
60674
60675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60676         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60677
60678 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         * modules/snprintf (Depends-on): Remove minmax.
60681         (Maintainer): Add self and Bruno.
60682
60683 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60686         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60687         (EOVERFLOW): Define if the system does not.
60688         Do not include "minmax.h"; it wasn't used.
60689         (snprintf): Don't assume size_t promotes to an unsigned type.
60690         Fix bug when generated string was too long for the buffer: the
60691         buffer's contents are supposed to be the initial prefix of the
60692         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60693         exceeds INT_MAX; do the check ourselves.
60694
60695         Import the following changes from libc:
60696
60697         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60698
60699         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60700         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60701         set wc to the byte which couldn't be converted.
60702         (re_string_reconstruct): Don't clear valid_raw_len before calling
60703         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60704         tip_context using re_string_context_at.
60705
60706         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60707
60708         * lib/posix/regex.h: g++ still cannot handled [restrict].
60709
60710         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60711
60712         * lib/posix/regex.h: Remove special handling for VMS.
60713
60714 2006-08-10  Jim Meyering  <jim@meyering.net>
60715
60716         * modules/same-inode: New module.
60717         * modules/dev-ino: New module.
60718         * modules/cycle-check: Depend on these modules, rather than simply
60719         including their .h files.
60720         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60721         required via m4/cycle-check.m4.
60722         * modules/same: Depend on new same-inode module, rather than
60723         including same-inode.h.
60724         * modules/chdir-safer: New file.
60725
60726         * modules/chown (Depends-on): Add stat-macros.
60727
60728 2006-08-10  Jim Meyering  <jim@meyering.net>
60729
60730         * m4/cycle-check.m4: New file.
60731         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60732         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60733
60734 2006-08-10  Eric Blake  <ebb9@byu.net>
60735
60736         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60737         in from original proposal.
60738
60739 2006-08-10  Eric Blake  <ebb9@byu.net>
60740         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60741
60742         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60743         namespace.
60744
60745 2006-08-10  Bruno Haible  <bruno@clisp.org>
60746
60747         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60748         as well.
60749
60750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         Sync from coreutils.
60753
60754         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60755
60756         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60757         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60758
60759 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60760
60761         * modules/restrict: Remove; no longer needed now that we assume
60762         Autoconf 2.59 or later.
60763         * MODULES.html.sh: Remove 'restrict'.
60764         * modules/argp (Depends-on): Remove 'restrict'.
60765         * modules/base64 (Depends-on): Likewise.
60766         * modules/gc (Depends-on): Likewise.
60767         * modules/getaddrinfo (Depends-on): Likewise.
60768         * modules/glob (Depends-on): Likewise.
60769         * modules/inet_ntop (Depends-on): Likewise.
60770         * modules/inet_pton (Depends-on): Likewise.
60771         * modules/memxor (Depends-on): Likewise.
60772         * modules/regex (Depends-on): Likewise.
60773         * modules/strtok_r (Depends-on): Likewise.
60774         * modules/time_r (Depends-on): Likewise.
60775
60776 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60777
60778         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60779         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60780         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60781         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60782         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60783         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60784         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60785         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60786
60787         Merge from coreutils.
60788         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60789         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60791         * m4/time_r.m4 (gl_TIME_R): Likewise.
60792
60793 2006-08-09  Karl Berry  <karl@gnu.org>
60794
60795         * config/srclist.txt: no more gettext-tools, per Bruno.
60796
60797 2006-08-08  Eric Blake  <ebb9@byu.net>
60798
60799         * modules/verror: New module.
60800         * MODULES.html.sh: Document it.
60801
60802 2006-08-08  Eric Blake  <ebb9@byu.net>
60803
60804         * lib/verror.h, lib/verror.c: New files.
60805
60806 2006-08-08  Eric Blake  <ebb9@byu.net>
60807
60808         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60809         verror_at_line output complies with GNU Coding Standards even when
60810         file is NULL.
60811
60812 2006-08-07  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60815         versions of AIX.
60816         Reported by Ralf Wildenhues.
60817
60818 2006-08-07  Bruno Haible  <bruno@clisp.org>
60819
60820         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60821         in an AC_DEFUN. Needed so that the autoconf snippets can use
60822         AC_REQUIRE.
60823
60824 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60825
60826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60827         Initialize pkgdata_DATA.
60828         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60829         overriding it.
60830
60831 2006-08-06  Eric Blake  <ebb9@byu.net>
60832
60833         * lib/error.h: Fold in some upstream changes from glibc.
60834         * lib/error.c: Likewise.
60835
60836 2006-08-04  Bruno Haible  <bruno@clisp.org>
60837
60838         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60839         Make the mostlyclean-local rule depend on mostlyclean-generic.
60840         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60841
60842 2006-07-31  Bruno Haible  <bruno@clisp.org>
60843
60844         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60845         <stdlib.h>, <string.h>.
60846
60847 2006-07-30  Bruno Haible  <bruno@clisp.org>
60848
60849         * modules/readlink (License): Change to LGPL.
60850
60851 2006-07-30  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60854         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60855         set PKGDATADIR to point to it.
60856
60857 2006-07-30  Bruno Haible  <bruno@clisp.org>
60858
60859         * modules/csharpexec (configure.ac): Comment out macro invocation.
60860         * modules/javaexec (configure.ac): Likewise.
60861         * modules/javacomp-script (configure.ac): Likewise.
60862
60863         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60864
60865 2006-07-30  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60868         linked-list.
60869
60870 2006-07-30  Bruno Haible  <bruno@clisp.org>
60871
60872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60873
60874 2006-07-30  Bruno Haible  <bruno@clisp.org>
60875
60876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60877         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60878         get removed.
60879
60880 2006-07-29  Bruno Haible  <bruno@clisp.org>
60881
60882         Make it possible for gnulib-tool to work with locally modified or
60883         augmented gnulib repositories.
60884         * gnulib-tool (func_usage): Document --local-dir option.
60885         (local_gnulib_dir): New variable.
60886         Handle --local-dir option.
60887         (func_lookup_file): New function.
60888         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60889         (func_get_description, func_get_filelist, func_get_description,
60890         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60891         func_get_automake_snippet, func_get_include_directive,
60892         func_get_license, func_get_maintainer): Use func_lookup_file.
60893         (func_import, func_create_testdir): Use func_lookup_file.
60894
60895 2006-07-29  Bruno Haible  <bruno@clisp.org>
60896
60897         * modules/setenv (Depends-on): Add unistd.
60898
60899 2006-07-29  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60902
60903 2006-07-29  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60906
60907 2006-07-29  Bruno Haible  <bruno@clisp.org>
60908
60909         * gnulib-tool (import, update): If there is no Makefile.am, look at
60910         aclocal.m4, instead of bailing out.
60911
60912 2006-07-29  Bruno Haible  <bruno@clisp.org>
60913
60914         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60915         Categorize the options by when they are useful.
60916
60917 2006-07-29  Bruno Haible  <bruno@clisp.org>
60918
60919         * gnulib-tool (func_usage): Document option --no-libtool.
60920         Handle option --no-libtool.
60921         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60922         for changed semantics of $libtool variable.
60923         (func_import): Likewise. If libtool is not used, show this through
60924         an option --no-libtool.
60925         (func_create_testdir): Update.
60926
60927 2006-07-29  Bruno Haible  <bruno@clisp.org>
60928
60929         * gnulib-tool (func_import): Extend error message about missing
60930         --doc-base.
60931
60932 2006-07-29  Bruno Haible  <bruno@clisp.org>
60933
60934         * gnulib-tool (func_import): Don't create the $docbase directory if
60935         there is no file to store there.
60936
60937 2006-07-29  Bruno Haible  <bruno@clisp.org>
60938
60939         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60940         relevant, look for configure.ac there, not in the current directory.
60941         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60942
60943 2006-07-29  Bruno Haible  <bruno@clisp.org>
60944
60945         * gnulib-tool (SORT): New variable.
60946         (func_usage): Undocument --assume-autoconf option.
60947         Remove --assume-autoconf option handling.
60948         (autoconf_minversion): Determine from the contents of configure.ac.
60949         (func_import): Remove autoconf_minversion handling.
60950         Suggested by Eric Blake.
60951
60952 2006-07-29  Bruno Haible  <bruno@clisp.org>
60953
60954         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60955
60956 2006-07-29  Bruno Haible  <bruno@clisp.org>
60957
60958         * config/srclist.txt (*setenv.[ch]): Remove rules.
60959
60960 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60961
60962         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60963
60964 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60965
60966         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60967         arpa/inet.h.
60968
60969 2006-07-28  Simon Josefsson  <jas@extundo.com>
60970
60971         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60972         * modules/inet_pton (Depends-on): Likewise.
60973
60974 2006-07-28  Simon Josefsson  <jas@extundo.com>
60975
60976         * m4/netinet_in_h.m4: New file.
60977
60978 2006-07-28  Simon Josefsson  <jas@extundo.com>
60979
60980         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60981         #include's.
60982
60983 2006-07-28  Simon Josefsson  <jas@extundo.com>
60984
60985         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60986         #include's.
60987
60988 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60989
60990         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60991         setgid on directories only if they set these bits.
60992         * lib/modechange.h: Remove obsolete comment about masks.
60993
60994 2006-07-28  Eric Blake  <ebb9@byu.net>
60995
60996         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60997         macro expansion.
60998
60999 2006-07-28  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61002
61003 2006-07-28  Bruno Haible  <bruno@clisp.org>
61004
61005         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61006
61007 2006-07-28  Bruno Haible  <bruno@clisp.org>
61008
61009         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61010         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61011         Define fallbacks.
61012         Avoids link error on FreeBSD 4.x.
61013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61014
61015         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61016         encoding.
61017         * lib/mbswidth.c (iswcntrl): Likewise.
61018
61019 2006-07-27  Bruno Haible  <bruno@clisp.org>
61020
61021         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61022         test.
61023
61024 2006-07-27  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61027         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61028         defined.
61029
61030 2006-07-26  Eric Blake  <ebb9@byu.net>
61031
61032         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61033
61034 2006-07-26  Eric Blake  <ebb9@byu.net>
61035
61036         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61037         like mingw that lack mkstemp.
61038         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61039         avoid compilation warning on mingw.
61040
61041 2006-07-26  Bruno Haible  <bruno@clisp.org>
61042
61043         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61044         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61045         INT_FAST*_MIN, INTPTR_MIN.
61046
61047 2006-07-25  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/version-etc (Depends-on): Add stdarg.
61050
61051 2006-07-25  Bruno Haible  <bruno@clisp.org>
61052
61053         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61054         complex commands.
61055
61056 2006-07-25  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61059         defined in <stdarg.h> or config.h.
61060
61061 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61062
61063         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61064         (gl_STDIO_SAFER): Remove.
61065
61066 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61067
61068         * MODULES.html.sh (File stream based Input/Output):
61069         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61070         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61071         * modules/fopen-safer, modules/tmpfile-safer: New files.
61072         * modules/stdio-safer: Remove.
61073
61074 2006-07-24  Bruno Haible  <bruno@clisp.org>
61075
61076         * modules/tmpdir: New file.
61077         * MODULES.html.sh (File system functions): Add it.
61078
61079 2006-07-24  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61082         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61083
61084 2006-07-24  Bruno Haible  <bruno@clisp.org>
61085
61086         * modules/clean-temp: New file.
61087
61088 2006-07-24  Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/tmpdir.m4: New file, from GNU gettext.
61091
61092 2006-07-24  Bruno Haible  <bruno@clisp.org>
61093
61094         * lib/tmpdir.h: New file, from GNU gettext.
61095         * lib/tmpdir.c: New file, from GNU gettext.
61096
61097 2006-07-24  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/clean-temp.h: New file, from GNU gettext.
61100         * lib/clean-temp.c: New file, from GNU gettext.
61101
61102 2006-07-23  Eric Blake  <ebb9@byu.net>
61103
61104         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61105         (Depends-on): Add binary-io.
61106
61107 2006-07-23  Eric Blake  <ebb9@byu.net>
61108
61109         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61110
61111 2006-07-23  Eric Blake  <ebb9@byu.net>
61112
61113         * lib/tmpfile-safer.c: New file.
61114         * lib/stdio-safer.h (fopen_safer): Add prototype.
61115         * lib/stdio--.h (tmpfile): Make safer.
61116
61117 2006-07-23  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61120         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61121         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61122         gl_linked_remove_at): Use it.
61123
61124 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61125         and Simon Josefsson <jas@extundo.com>
61126
61127         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61128
61129         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61130
61131 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * modules/close-stream: New file.
61134         * modules/closeout (Description): Make it clear that it exits
61135         with a diagnostic on error.
61136         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61137         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61138
61139 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61140
61141         * m4/close-stream.m4: New file.
61142
61143 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * lib/close-stream.c, lib/close-stream.h: New files.
61146
61147 2006-07-22  Bruno Haible  <bruno@clisp.org>
61148
61149         Merge from GNU gettext 0.15.
61150
61151         2006-05-01  Bruno Haible  <bruno@clisp.org>
61152
61153                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61154
61155         2006-07-22  Bruno Haible  <bruno@clisp.org>
61156
61157                 * modules/javaversion: New file.
61158                 * MODULES.html.sh (Java): Add javaversion.
61159
61160         2006-03-12  Bruno Haible  <bruno@clisp.org>
61161
61162                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61163
61164         2005-12-04  Bruno Haible  <bruno@clisp.org>
61165
61166                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61167                 (untested).
61168
61169         2006-06-21  Bruno Haible  <bruno@clisp.org>
61170
61171                 Avoid warnings from recent versions of mcs.
61172                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61173                 -o, -L, -r any more. Use options documented since mcs-1.0
61174                 instead. Similarly for -g.
61175
61176         2005-12-04  Bruno Haible  <bruno@clisp.org>
61177
61178                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61179                 .resources, not .resource.
61180
61181         2005-07-09  Bruno Haible  <bruno@clisp.org>
61182
61183                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61184                 add a .dll suffix.
61185                 Reported by Mark Junker <mjscod@gmx.de>.
61186
61187         2006-07-22  Bruno Haible  <bruno@clisp.org>
61188
61189                 * modules/gettext: Upgrade to gettext-0.15.
61190                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61191                 m4/visibility.m4.
61192                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61193
61194 2006-07-22  Bruno Haible  <bruno@clisp.org>
61195
61196         Merge from GNU gettext 0.15.
61197
61198         2006-03-25  Bruno Haible  <bruno@clisp.org>
61199
61200                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61201
61202         2006-07-21  Bruno Haible  <bruno@clisp.org>
61203
61204                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61205                 "1.1".
61206
61207         2006-05-09  Bruno Haible  <bruno@clisp.org>
61208
61209                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61210                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61211                 for the conftestver execution.
61212
61213         2006-05-01  Bruno Haible  <bruno@clisp.org>
61214
61215                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61216                 optional target-version argument. Verify that the compiler
61217                 groks source of the specified source-version, or add -source
61218                 option as necessary. Verify that the compiler produces
61219                 bytecode in the specified target-version, or add -target and
61220                 -source options as necessary. Make the result of the test
61221                 available as variable CONF_JAVAC. Also log error output in
61222                 config.log.
61223
61224         2006-03-11  Bruno Haible  <bruno@clisp.org>
61225
61226                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61227
61228         2006-05-09  Bruno Haible  <bruno@clisp.org>
61229
61230                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61231                 CLASSPATH_SEPARATOR to a semicolon.
61232
61233         2006-03-12  Bruno Haible  <bruno@clisp.org>
61234
61235                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61236                 available as variable CONF_JAVA, for subsequent autoconf
61237                 tests. Also log error output in config.log.
61238
61239         2006-07-19  Bruno Haible  <bruno@clisp.org>
61240
61241                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61242                 that getline works on glibc2 systems. Needed to avoid trouble
61243                 in relocatable.c.
61244                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61245
61246         2005-12-04  Bruno Haible  <bruno@clisp.org>
61247
61248                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61249                 launcher (untested).
61250
61251         2005-12-04  Bruno Haible  <bruno@clisp.org>
61252
61253                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61254
61255         2006-07-22  Bruno Haible  <bruno@clisp.org>
61256
61257                 * gettext.m4: Update from GNU gettext-0.15.
61258                 * nls.m4: Likewise.
61259                 * po.m4: Likewise.
61260                 * inttypes-pri.m4: Likewise.
61261                 * inttypes-h.m4: Renamed from inttypes.m4.
61262                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61263
61264 2006-07-22  Bruno Haible  <bruno@clisp.org>
61265
61266         Merge from GNU gettext 0.15.
61267
61268         2005-07-05  Bruno Haible  <bruno@clisp.org>
61269
61270                 * printf-args.c (printf_fetchargs): Work around broken
61271                 definition of wint_t on mingw.
61272
61273         2005-02-12  Bruno Haible  <bruno@clisp.org>
61274
61275                 * xallocsa.h: Add extern "C" for C++.
61276
61277         2006-05-17  Bruno Haible  <bruno@clisp.org>
61278
61279                 Cygwin portability.
61280                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61281
61282         2006-04-30  Bruno Haible  <bruno@clisp.org>
61283
61284                 * progreloc.c: Include <mach-o/dyld.h> if available.
61285                 (find_executable): Use _NSGetExecutablePath when possible.
61286
61287         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61288
61289                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61290                 function.
61291
61292         2005-12-29  Bruno Haible  <bruno@clisp.org>
61293
61294                 * progreloc.c (set_program_name_and_installdir): Fix
61295                 compilation error.
61296
61297         2005-12-04  Bruno Haible  <bruno@clisp.org>
61298
61299                 Cygwin portability.
61300                 * progreloc.c: Include <windows.h> also on Cygwin.
61301                 (find_executable): Add support for Cygwin.
61302                 (set_program_name_and_installdir): Handle also platforms with
61303                 nonempty EXEEXT.
61304
61305         2006-07-11  Bruno Haible  <bruno@clisp.org>
61306
61307                 * javacomp.c: Fix a comment.
61308                 Reported by Jim Meyering.
61309
61310         2006-04-30  Bruno Haible  <bruno@clisp.org>
61311
61312                 * javacomp.h (compile_java_class): Add source_version,
61313                 target_version arguments.
61314                 * javacomp.c: Rewritten to choose only a compiler that
61315                 respects the specified source_version and target_version.
61316
61317         2006-06-27  Bruno Haible  <bruno@clisp.org>
61318
61319                 Assume correct S_ISDIR macro.
61320                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61321
61322         2006-07-22  Bruno Haible  <bruno@clisp.org>
61323
61324                 * javaversion.h: New file, from GNU gettext.
61325                 * javaversion.c: New file, from GNU gettext.
61326                 * javaversion.java: New file, from GNU gettext.
61327                 * javaversion.class: New file, from GNU gettext.
61328
61329         2006-05-17  Bruno Haible  <bruno@clisp.org>
61330
61331                 Cygwin portability.
61332                 * javaexec.c (execute_java_class): Test for jview program
61333                 also on Cygwin.
61334
61335         2006-04-09  Bruno Haible  <bruno@clisp.org>
61336
61337                 * fatal-signal.c: Don't include string.h.
61338                 (at_fatal_signal): Use a copying loop instead of memcpy.
61339
61340         2005-12-04  Bruno Haible  <bruno@clisp.org>
61341
61342                 * csharpexec.c: Add support for 'clix' launcher (untested).
61343                 (execute_csharp_using_sscli): New function.
61344                 (execute_csharp_program): Call it.
61345
61346         2006-06-21  Bruno Haible  <bruno@clisp.org>
61347
61348                 Avoid warnings from recent versions of mcs.
61349                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61350                 -o, -L, -r any more. Use options documented since mcs-1.0
61351                 instead. Similarly for -g.
61352
61353         2005-07-09  Bruno Haible  <bruno@clisp.org>
61354
61355                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61356                 add a .dll suffix.
61357                 Reported by Mark Junker <mjscod@gmx.de>.
61358
61359         2006-06-17  Bruno Haible  <bruno@clisp.org>
61360
61361                 * config.charset: Update for NetBSD 3.0.
61362
61363         2006-05-17  Bruno Haible  <bruno@clisp.org>
61364
61365                 Cygwin portability.
61366                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61367
61368         2006-05-16  Bruno Haible  <bruno@clisp.org>
61369
61370                 * localcharset.c [CYGWIN]: Include <windows.h>.
61371                 (get_charset_aliases): For Cygwin, return the same CPxxx
61372                 aliases list as under WIN32.
61373                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61374                 the environment variables. Fall back to GetACP().
61375
61376         2006-04-05  Bruno Haible  <bruno@clisp.org>
61377
61378                 * config.charset: Update Juan Manuel Guerrero's address.
61379
61380         2005-02-12  Bruno Haible  <bruno@clisp.org>
61381
61382                 * allocsa.h: Add extern "C" for C++.
61383
61384         2005-02-10  Bruno Haible  <bruno@clisp.org>
61385
61386                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61387                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61388
61389         2006-07-22  Bruno Haible  <bruno@clisp.org>
61390
61391                 * gettext.h: Update to GNU gettext-0.15.
61392
61393 2006-07-22  Bruno Haible  <bruno@clisp.org>
61394
61395         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61396         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61397         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61398
61399 2006-07-21  Eric Blake  <ebb9@byu.net>
61400
61401         * modules/stdlib-safer: New file.
61402         * MODULES.html.sh (File stream based Input/Output): Add
61403         stdlib-safer.
61404
61405 2006-07-21  Eric Blake  <ebb9@byu.net>
61406
61407         * lib/stdlib-safer.h: New file from coreutils, required by
61408         stdlib--.h.
61409
61410 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61413
61414 2006-07-20  Bruno Haible  <bruno@clisp.org>
61415
61416         * gnulib-tool: Recognize new option --assume-autoconf.
61417         (autoconf_minversion): New variable.
61418         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61419
61420 2006-07-20  Bruno Haible  <bruno@clisp.org>
61421
61422         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61423
61424 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61425
61426         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61427         Reindent and repaginate.
61428
61429 2006-07-19  Derek Price  <derek@ximbiot.com>
61430
61431         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61432         Correct grammar.
61433
61434 2006-07-17  Bruno Haible  <bruno@clisp.org>
61435
61436         * modules/list: New file.
61437         * modules/array-list: New file.
61438         * modules/carray-list, modules/carray-list-tests: New files.
61439         * modules/linked-list, modules/linked-list-tests: New files.
61440         * modules/avltree-list, modules/avltree-list-tests: New files.
61441         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61442         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61443         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61444         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61445         * modules/oset: New file.
61446         * modules/array-oset: New file.
61447         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61448         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61449         * tests/test-carray_list.c: New file.
61450         * tests/test-linked_list.c: New file.
61451         * tests/test-avltree_list.c: New file.
61452         * tests/test-rbtree_list.c: New file.
61453         * tests/test-linkedhash_list.c: New file.
61454         * tests/test-avltreehash_list.c: New file.
61455         * tests/test-rbtreehash_list.c: New file.
61456         * tests/test-avltree_oset.c: New file.
61457         * tests/test-rbtree_oset.c: New file.
61458         * MODULES.html.sh (Container data structures): New section.
61459
61460 2006-07-17  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/gl_list.m4: New file.
61463
61464 2006-07-17  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/gl_list.h: New file.
61467         * lib/gl_list.c: New file.
61468         * lib/gl_array_list.h: New file.
61469         * lib/gl_array_list.c: New file.
61470         * lib/gl_carray_list.h: New file.
61471         * lib/gl_carray_list.c: New file.
61472         * lib/gl_linked_list.h: New file.
61473         * lib/gl_linked_list.c: New file.
61474         * lib/gl_anylinked_list1.h: New file.
61475         * lib/gl_anylinked_list2.h: New file.
61476         * lib/gl_avltree_list.h: New file.
61477         * lib/gl_avltree_list.c: New file.
61478         * lib/gl_anyavltree_list1.h: New file.
61479         * lib/gl_anyavltree_list2.h: New file.
61480         * lib/gl_rbtree_list.h: New file.
61481         * lib/gl_rbtree_list.c: New file.
61482         * lib/gl_anyrbtree_list1.h: New file.
61483         * lib/gl_anyrbtree_list2.h: New file.
61484         * lib/gl_anytree_list1.h: New file.
61485         * lib/gl_anytree_list2.h: New file.
61486         * lib/gl_linkedhash_list.h: New file.
61487         * lib/gl_linkedhash_list.c: New file.
61488         * lib/gl_anyhash_list1.h: New file.
61489         * lib/gl_anyhash_list2.h: New file.
61490         * lib/gl_avltreehash_list.h: New file.
61491         * lib/gl_avltreehash_list.c: New file.
61492         * lib/gl_rbtreehash_list.h: New file.
61493         * lib/gl_rbtreehash_list.c: New file.
61494         * lib/gl_anytreehash_list1.h: New file.
61495         * lib/gl_anytreehash_list2.h: New file.
61496
61497         * lib/gl_oset.h: New file.
61498         * lib/gl_oset.c: New file.
61499         * lib/gl_array_oset.h: New file.
61500         * lib/gl_array_oset.c: New file.
61501         * lib/gl_avltree_oset.h: New file.
61502         * lib/gl_avltree_oset.c: New file.
61503         * lib/gl_rbtree_oset.h: New file.
61504         * lib/gl_rbtree_oset.c: New file.
61505         * lib/gl_anytree_oset.h: New file.
61506
61507 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         * m4/mkancesdirs.m4: New file.
61510         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61511         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61512         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61513         it.
61514
61515 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61518         * lib/mkancesdirs.h: New files.
61519         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61520         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61521         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61522         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61523         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61524         callers changed.  Revamp internals significantly, by not
61525         attempting to create directories that are temporarily more
61526         permissive than the final results.  Do not attempt to use
61527         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61528         This removes some race conditions, fixes some bugs, and simplifies
61529         things.  Use new dirchownmod function to do owner and mode changes.
61530         * lib/mkdir-p.h: Likewise.
61531         * lib/modechange.c (octal_to_mode): New function.
61532         (struct mode_change): New member mentioned.
61533         (make_node_op_equals): New arg mentioned.  All callers changed.
61534         (mode_compile): Keep track of which mode bits the user has explicitly
61535         mentioned.
61536         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61537         New arg PMODE_BITS, to keep track of which mode bits the user
61538         mentioned; it treats S_ISUID and S_ISGID speciall.
61539         All callers changed.
61540         * lib/modechange.h: Likewise.
61541
61542 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * MODULES.html.sh: Add mkancestors.
61545         * modules/mkancesdirs: New module.
61546         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61547         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61548         The chdir-safer and afs files are now orphans; I'll remove them
61549         unless someone speaks up.
61550         Add lib/dirchownmod.c, lib/dirchownmod.h.
61551         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61552         Add lchown, mkancesdirs.
61553         (Maintainer): Add self.
61554
61555 2006-07-15  Karl Berry  <karl@gnu.org>
61556
61557         * gnulib-tool: help message wording/arrangement.
61558
61559 2006-07-14  Simon Josefsson  <jas@extundo.com>
61560
61561         * doc/gnulib.texi (Libtool and Windows): New section.
61562
61563 2006-07-12  Simon Josefsson  <jas@extundo.com>
61564
61565         * modules/gendocs (License): Fix license, approved by Karl.
61566
61567 2006-07-12  Eric Blake  <ebb9@byu.net>
61568
61569         * MODULES.html.sh: Add gendocs.
61570
61571 2006-07-11  Eric Blake  <ebb9@byu.net>
61572
61573         * modules/fdl: New module, to install doc/fdl.texi.
61574         * MODULES.html.sh: Add new section for documentation modules.
61575         * gnulib-tool: Avoid space-tab.
61576         (--doc-base): New option, to manage files from doc.
61577
61578 2006-07-11  Eric Blake  <ebb9@byu.net>
61579
61580         * m4/absolute-header.m4: Fix comments to match recent change.
61581
61582 2006-07-11  Eric Blake  <ebb9@byu.net>
61583
61584         * gnulib-tool: List --doc-base before --tests-base.
61585
61586 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61587
61588         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61589
61590 2006-07-11  Bruno Haible  <bruno@clisp.org>
61591
61592         * README: Mention where to put documentation.
61593
61594 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61595
61596         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61597
61598 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61601         to stdint.m4.
61602
61603 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61606         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61607         "no/such/file/stdint.h" when there is no such file, so that
61608         the resulting C code can be parsed by dodgy compilers.
61609         Problems reported by Bob Proulx.
61610
61611 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61612
61613         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61614         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61615         macros into the GNU _D_EXACT_NAMLEN.
61616         * lib/savedir.c:  Likewise.
61617         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61618
61619 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61620         and Paul Eggert  <eggert@cs.ucla.edu>
61621
61622         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61623         * m4/savedir.m4:
61624         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61625         macros into the GNU _D_EXACT_NAMLEN.
61626
61627 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61630         around the absolute name, to work around a problem with the HP-UX
61631         11.23 native C compiler, reported by Bob Proulx.
61632
61633 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * doc/maintain.texi, make-stds.texi: Sync from
61636         <http://savannah.gnu.org/projects/gnustandards>.
61637
61638 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61641
61642 2006-07-09  Jim Meyering  <jim@meyering.net>
61643
61644         * m4/glob.m4: Remove a doubled word in a comment.
61645
61646 2006-07-09  Jim Meyering  <jim@meyering.net>
61647
61648         * lib/argp-pv.c: Remove a doubled word in a comment.
61649         * lib/check-version.c (check_version): Likewise.
61650         * lib/javacomp.c (compile_java_class): Likewise.
61651
61652 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61653
61654         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61655         for the benefit of people using Autoconf 2.60.  If you want to
61656         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61657         (or m4/onceonly.m4, if pre-2.57) manually.
61658
61659 2006-07-08  Jim Meyering  <jim@meyering.net>
61660
61661         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61662         comment.
61663         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61664         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61665         comment.
61666
61667 2006-07-08  Jim Meyering  <jim@meyering.net>
61668
61669         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61670
61671 2006-07-07  Simon Josefsson  <jas@extundo.com>
61672
61673         * tests/test-crc.c: Change expected crc value, the test vector
61674         were probably computed using the old broken crc.c?
61675
61676 2006-07-06  Simon Josefsson  <jas@extundo.com>
61677
61678         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61679         now the canonical place for the M4 file).
61680
61681         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61682         from the sys_socket dependency now.
61683
61684         * modules/inet_pton (Files): Ditto.
61685
61686         * modules/inet_ntop (Files): Ditto.
61687
61688 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61689
61690         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61691         not gl_PREREQ_GETUSERSHELL.
61692
61693 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61694
61695         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61696         with only one argument, for Autoconf 2.60.
61697         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61698         expand to nothing, so add a shell command to avoid syntax error.
61699         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61700
61701 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61702
61703         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61704
61705 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61708         no longer needed.  Check for isblank decl.
61709         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61710         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61711         of existence.
61712
61713 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * lib/getloadavg.c: Use __VMS, not VMS.
61716         * lib/getopt.c: Likewise.
61717         * lib/getpagesize.h: Likewise.
61718         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61719         and probably does not work.
61720
61721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * lib/.cppi-disable: Add wcwidth.
61724         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61725         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61726         (ISGRAPH): Remove.  All uses changed to isgraph.
61727         (FOLD) [!defined _LIBC]: Remove special case.
61728         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61729         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61730         HAVE_ISBLANK.
61731         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61732         case.
61733
61734 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61735
61736         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61737         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61738         brackets.  Other minor changes to suppress some compiler
61739         warnings.
61740
61741 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61742         and Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61745         of invoking obsolescent AC_HEADER_DIRENT macro.
61746         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61747         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61750         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61751         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61752         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61753         * m4/readdir.m4: Remove; no longer needed.
61754
61755 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61756         and Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61759         Don't worry about this obsolete case any more.
61760         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61761         directories.
61762         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61763         worry about this obsolete case any more.
61764         * lib/fts.c: Likewise.
61765         * lib/getcwd.c: Likewise.
61766         * lib/glob.h: Likewise.
61767         * lib/savedir.c: Likewise.
61768
61769 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61772         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61773         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61774         needed.
61775         All uses removed.
61776         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61777         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61778         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61779         needed.
61780         * m4/getdate.m4 (gl_GETDATE): Likewise.
61781         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61782         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61783         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61784         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61785         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61787         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61788         needed.
61789
61790 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * lib/memcasecmp.c: Include <limits.h>.
61793         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61794         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61795         Don't assume isdigit succeeds only on '0' through '9'.
61796
61797 2006-07-05  Eric Blake  <ebb9@byu.net>
61798
61799         * modules/getaddrinfo (Depends-on): Add snprintf.
61800
61801 2006-07-05  Eric Blake  <ebb9@byu.net>
61802
61803         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61804         to avoid 'header present but could not be compiled' on cygwin.
61805
61806 2006-07-05  Eric Blake  <ebb9@byu.net>
61807
61808         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61809         missing from netdb.h.
61810         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61811
61812 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61813
61814         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61815         no longer needed.
61816         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61817         * m4/getdate.m4 (gl_GETDATE): Likewise.
61818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61819         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61820         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61821         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61823
61824 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61825
61826         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61827         All uses of is_space replaced by isspace.
61828         * lib/exit.h: Don't talk about STDC_HEADERS.
61829         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61830         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61831         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61832         replaced by isprint etc.
61833         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61834         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61835         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61836         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61837         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61838         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61839
61840 2006-07-05  Bruno Haible  <bruno@clisp.org>
61841
61842         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61843         the function exists, before testing against AIX.
61844         Reported by Martin Lambers <marlam@marlam.de>.
61845
61846 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61849         From Mark D. Baushke.
61850
61851 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61854         to the absolute name, not just one, to bypass Sun C 5.8's
61855         "warning: #include of /usr/include/... may be non-portable".
61856
61857 2006-07-04  Eric Blake  <ebb9@byu.net>
61858
61859         * modules/dirname-tests: New test module.
61860         * tests/test-dirname.c: New file, replacing dirname.c
61861         TEST_DIRNAME section that was recently deleted.
61862
61863 2006-07-04  Bruno Haible  <bruno@clisp.org>
61864
61865         Assume ANSI C header files and <ctype.h> functions.
61866         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61867         (mbsnwidth): Use isprint, iscntrl instead.
61868
61869 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         Merge from coreutils.
61872         * MODULES.html.sh: Add xstrtold.
61873         * modules/xstrtold: New file.
61874         * modules/cycle-check (Files): Add lib/same-inode.h.
61875         * modules/dirname (Files): Add m4/double-slash-root.m4.
61876         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61877         * modules/mkdir-p (Files): Add lib/same-inode.h.
61878         * modules/same (Files): Add lib/same-inode.h.
61879
61880 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61881
61882         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61883         This is to keep the terminology clean; POSIX talks about
61884         "absolute pathnames", not "full pathnames", but the GNU
61885         Coding Standards say to use "path" for something else;
61886         so use "absolute" to keep both sides happy.
61887         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61888         Set gl_absolute_header, not gl_full_header_path.
61889         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61890         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61891         All uses changed.
61892
61893         Merge from coreutils.
61894
61895         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61898         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61899         want to require the building of c-strtod.o.
61900         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61901         needs -lm directly.
61902         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61903
61904         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61905
61906         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61907         --as-needed option if available.  Problem reported by Albert Chin in
61908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61909         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61910         cc merely issues a bunch of annoying warnings for --as-needed
61911         (this problem was reported by Bob Proulx).  Also, try linking with
61912         -lm to detect a bug in binutils 2.16 (this problem was reported
61913         by Ralf Wildenhues).
61914
61915         2006-06-18  Jim Meyering  <jim@meyering.net>
61916
61917         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61918         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61919         macro.
61920         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61921         also check for glibc-2.4's abort-inducing bug.
61922
61923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61924         Low-probability clean-up should be to use rmdir to get rid of
61925         the just-created directory, not unlink.
61926
61927         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61928         configure fail, and request a bug report to inform us about it.
61929         Add a comment that, barring reports to the contrary, in 2007 we'll
61930         assume ftruncate is universally available.
61931
61932         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61935
61936         2006-03-12  Jim Meyering  <jim@meyering.net>
61937
61938         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61939         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61940         * m4/same.m4 (gl_SAME): Likewise.
61941         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61942
61943         2006-03-11  Eric Blake  <ebb9@byu.net>
61944
61945         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61946         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61947         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61948         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61949
61950 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61951
61952         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61953         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61954         reported by Mark D. Baushke, one in
61955         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61956
61957         Merge from coreutils.
61958
61959         * lib/.cppi-disable: Add stdint_.h.
61960         * lib/.cvsignore: Add stdint.h.
61961
61962         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61965         both double and long double versions.
61966         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61967         * lib/xstrtold.c: New file.
61968         * lib/xstrtod.h (xstrtold): New decl.
61969
61970         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * lib/filemode.c (setst): Remove.
61973         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61974         (arguably) clearer, and the generated code is a bit smaller on my
61975         Debian GNU/Linux stable x86 host.
61976
61977         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61980         Assume that filemode.h includes sys/types.h and sys/stat.h.
61981         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61982         (ftypelet): Reorder to put common cases first, for efficiency.
61983         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61984         to do 'M'.
61985         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61986         of 10, for compatibility with FreeBSD.  All callers changed.
61987         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61988         types that can't be deduced solely from st_mode.  First arg is now a
61989         const pointer.
61990         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61991         (strmode): Renamed from mode_string.
61992         (filemodestring): New decl.
61993         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61994         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61995         needed.
61996         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61997
61998         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62001         fsusage.h now does that.  Include fsusage.h first, to test interface.
62002         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62003         at most one method (the old code could have generated decls that
62004         didn't conform to C89, not that this was ever exercised).
62005         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62006
62007         2006-03-19  Jim Meyering  <jim@meyering.net>
62008
62009         Work even in a chroot where d_ino values for entries in "/"
62010         don't match the stat.st_ino values for the same names.
62011         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62012         number, iterate through all entries again, using lstat instead.
62013         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62014         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62015
62016         * lib/getcwd.c (__getcwd): Clarify a comment.
62017         Use memcpy in place of a call to strcpy.
62018
62019         2006-03-12  Jim Meyering  <jim@meyering.net>
62020
62021         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62022         matches that of the current directory (which we're about to chdir ".."
62023         out of), then save the dev-ino of the parent, instead.
62024
62025         * lib/same-inode.h (SAME_INODE): New file/macro.
62026         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62027         Include "same-inode.h", instead.
62028         * lib/same.c: Likewise.
62029         * lib/cycle-check.h: Include "same-inode.h".
62030         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62031         * lib/cycle-check.c (SAME_INODE): Remove definition.
62032         * lib/root-dev-ino.h: Include "same-inode.h".
62033
62034         2006-03-11  Eric Blake  <ebb9@byu.net>
62035
62036         * lib/same.c (same_name): s/base_name/last_component/
62037         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62038         * lib/filenamecat.c (file_name_concat): Likewise.
62039
62040         2006-03-11  Eric Blake  <ebb9@byu.net>,
62041                     Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62044         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62045         drive prefix.
62046         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62047         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62048         (last_component): New method.
62049         * lib/dirname.c (dir_len): Determine when drive letters need a
62050         subsequent slash.  Preserve // when it is special.
62051         (dir_name): Don't append dot when drive letter is absolute.
62052         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62053         * lib/basename.c (base_name): New semantics - malloc the result.
62054         Preserve // when it is special.  Preserve relative files that look
62055         like drive letters.
62056         (base_len): Preserve // when it is special.
62057         (last_component): New method, similar to old base_name semantics.
62058         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62059         base_name.  Strip redundant slashes from ///.
62060
62061 2006-07-03  Jim Meyering  <jim@meyering.net>
62062
62063         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62064         macro is used before the first cycle_check call.
62065
62066 2006-07-03  Eric Blake  <ebb9@byu.net>
62067
62068         * modules/dirname (Depends-on): Add xstrndup.
62069
62070 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62073         test cases, so that config.log is a bit easier to follow.
62074
62075 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62076
62077         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62078         both are 64 bits, since this seems to be the tradition, and this
62079         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62080         we ever run into a host that prefers long long to long in this
62081         case, we'll need another configure-time test.  Problem reported by
62082         Jim Meyering.
62083
62084 2006-07-02  Eric Blake  <ebb9@byu.net>
62085
62086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62087
62088 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * modules/inttypes (Depends-on): No longer depends on stdint.
62091         * modules/stdint (Description): Say more about assumptions.
62092         Say that the fast types might differ.  Say macros are used.
62093         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62094         (Makefile.am): Revise list of substituted symbols to match
62095         new stdint.m4.
62096         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62097         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62098         * tests/test-stdint.c (verify_same_types)
62099         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62100         the code conforms to C99/C89.
62101         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62102         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62103
62104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62107         but fix a bug, by requiring at least 64 bits.
62108         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62109         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62110         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62111         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62112
62113         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62114         changes.  Make 2.59 a prerequisite.  Check and substitute for
62115         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62116         inttypes.h.  Do not use special include files; just use the
62117         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62118         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62119         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62120         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62121         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62122         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62123         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62124         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62125         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62126         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62127         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62128         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62129         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62130         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62131         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62132         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62133         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62134         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62135         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62136         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62137         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62138         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62139         not check for things that C99 does not require, e.g., int8_t.  If
62140         a test isn't needed unless <stdint.h> isn't working, and is
62141         unlikely to be needed for any other reason, then don't do it
62142         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62143         size_t, since we assume C89 freestanding at least.  Do not check
62144         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62145         the right thing even if the types are not defined.  Instead use:
62146         (gl_STDINT_TYPE_PROPERTIES): New macro.
62147         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62148         testing whether <sys/types.h> clashes, as Autoconf does this for
62149         us now.  All uses removed.
62150         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62151         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62152         (gl_CHECK_TYPE_SAME):
62153         Remove; no longer needed.
62154         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62155         exists, since we'll return 0 anyway in that case.
62156         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62157
62158 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62161         possible collision with system files.
62162         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62163         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62164         WCHAR_MIN and WCHAR_MAX in this case.
62165         (<stddef.h>): Do not include; no longer needed.
62166         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62167         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62168         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62169         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62170         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62171         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62172         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62173         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62174         !defined(__c99))]: Include in this case too, since it's harmless
62175         now.
62176         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62177         dangerous to do so.
62178         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62179         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62180         (_STDINT_MIN, _STDINT_MAX): New macros.
62181         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62182         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62183         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62184         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62185         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62186         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62187         macros, not typedefs; this simplifies things quite a bit.
62188         Use long int for all types narrower than int64_t.
62189         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62190         Define in terms of long long int or int64_t or long int,
62191         not int64_t or int32_t.  This saves some compile-time testing.
62192         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62193         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62194         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62195         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62196         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62197         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62198         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62199         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62200         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62201         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62202         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62203         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62204         undef any previous version and define our own version, for
62205         simplicity and consistency with the new macros for types.
62206         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62207         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62208         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62209         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62210         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62211         @WINT_T_SUFFIX@ to keep things simple here.
62212         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62213         Simplify by assuming typical 8/16/32/64 host, since we're
62214         already doing that elsewhere anyway.
62215         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62216         and assume long long int is 64 bits if available.  This
62217         speeds up 'configure'.
62218
62219 2006-07-01  Eric Blake  <ebb9@byu.net>
62220
62221         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62222         Reported by Andreas Buening.
62223
62224 2006-07-01  Eric Blake  <ebb9@byu.net>
62225
62226         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62227
62228 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62229
62230         * lib/getaddrinfo.c: fixed typo
62231
62232 2006-06-29  Jim Meyering  <jim@meyering.net>
62233
62234         * modules/strftime (Maintainer): Add my name, since with the
62235         FPRINTFTIME changes strftime.c has forked from glibc.
62236
62237 2006-06-29  Eric Blake  <ebb9@byu.net>
62238
62239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62240
62241 2006-06-29  Eric Blake  <ebb9@byu.net>
62242
62243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62244
62245 2006-06-29  Eric Blake  <ebb9@byu.net>
62246
62247         * lib/stat_.h: New file.
62248
62249 2006-06-29  Eric Blake  <ebb9@byu.net>
62250
62251         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62252         unused static function.
62253
62254 2006-06-29  Eric Blake  <ebb9@byu.net>
62255
62256         * doc/functions.texi (Function Portability): Document missing lstat
62257         on mingw.
62258
62259 2006-06-29  Eric Blake  <ebb9@byu.net>
62260
62261         * MODULES.html.sh: Add sys_stat.
62262         * modules/sys_stat: New module.
62263         * modules/mkstemp (Depends-on): Add sys_stat.
62264
62265 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62266
62267         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62268
62269 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62270
62271         * m4/c-bs-a.m4: Removed.
62272
62273 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62274
62275         * lib/strftime.c: Assume strftime() exists.
62276
62277 2006-06-29  Derek Price  <derek@ximbiot.com>
62278
62279         * modules/c-bs-a: Removed - \a is C89.
62280         * MODULES.html.sh: Remove c-bs-a.
62281
62282 2006-06-29  Bruno Haible  <bruno@clisp.org>
62283
62284         * modules/wcwidth (License): Change to LGPL.
62285
62286 2006-06-28  Simon Josefsson  <jas@extundo.com>
62287
62288         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62289         on _WIN32.
62290
62291         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62292         getnameinfo.
62293
62294 2006-06-28  Simon Josefsson  <jas@extundo.com>
62295
62296         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62297
62298 2006-06-28  Simon Josefsson  <jas@extundo.com>
62299
62300         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62301         functions there.  It will succeed on Windows XP, but on Windows
62302         2000 and (presumably) earlier, it will fail, and use the internal
62303         re-implementation.
62304         (use_win32_p): New function.
62305         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62306         Support AI_NUMERICSERV to disable getservbyname.
62307         (getnameinfo): New function, only supports
62308         NI_NUMERICHOST|NI_NUMERICSERV for now.
62309
62310         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62311         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62312         getnameinfo.
62313
62314 2006-06-28  Eric Blake  <ebb9@byu.net>
62315
62316         * modules/wcwidth: New file.
62317         * modules/mbchar (Depends-on): Add wcwidth.
62318         * modules/mbswidth (Depends-on): Add wcwidth.
62319         * MODULES.html.sh: Add wcwidth.
62320
62321 2006-06-28  Eric Blake  <ebb9@byu.net>
62322
62323         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62325
62326 2006-06-28  Eric Blake  <ebb9@byu.net>
62327
62328         * lib/xvasprintf.h: Fix comments.
62329
62330 2006-06-28  Eric Blake  <ebb9@byu.net>
62331
62332         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62333         * lib/mbswidth.c (wcwidth): Move from here...
62334         * lib/wcwidth.h: ...to this new file.
62335
62336 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62337
62338         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62339
62340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62341         it's obsolete.
62342         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62343
62344 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62345
62346         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62347         Autoconf 2.60 says this stuff was obsolete.
62348
62349 2006-06-28  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62352
62353 2006-06-28  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62356         gt_TYPE_WCHAR_T.
62357
62358 2006-06-28  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62361         declaration for wcwidth.
62362         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62363
62364 2006-06-28  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62367         (mkdir): Define using _mkdir.
62368
62369 2006-06-28  Bruno Haible  <bruno@clisp.org>
62370
62371         * lib/getaddrinfo.h: Fix POSIX URL.
62372         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62373         _WIN32.
62374         (use_win32_p): Make static.
62375         (getaddrinfo): Reject service name if it is empty or does not consist
62376         solely of decimal digits, or if its value is > 65535.
62377         (getnameinfo): Remove useless casts.
62378
62379 2006-06-27  Simon Josefsson  <jas@extundo.com>
62380
62381         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62382         Eggert and Martin Lambers.
62383
62384 2006-06-27  Simon Josefsson  <jas@extundo.com>
62385
62386         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62387         Eggert and Martin Lambers.
62388
62389 2006-06-27  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62392         result to 0, not to empty.
62393         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62394
62395 2006-06-27  Bruno Haible  <bruno@clisp.org>
62396
62397         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62398
62399 2006-06-26  Simon Josefsson  <jas@extundo.com>
62400
62401         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62402         present.
62403
62404 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62407         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62409
62410 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62411
62412         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62413
62414 2006-06-26  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62417
62418 2006-06-26  Bruno Haible  <bruno@clisp.org>
62419
62420         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62421
62422 2006-06-26  Bruno Haible  <bruno@clisp.org>
62423
62424         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62425         SGI C compiler in pre-C99 mode.
62426         Suggested by Mark D. Baushke and Larry Jones.
62427
62428 2006-06-26  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62431         WCHAR_MAX.
62432         Reported by Mark D. Baushke and Larry Jones.
62433
62434 2006-06-26  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62437         in pre-C99 mode.
62438         Suggested by Mark D. Baushke and Larry Jones.
62439
62440 2006-06-23  Simon Josefsson  <jas@extundo.com>
62441             Bruno Haible  <bruno@clisp.org>
62442
62443         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62444         Emit mostlyclean-local rule.
62445         (func_emit_tests_Makefile_am): Likewise.
62446         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62447
62448 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62449
62450         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62451
62452 2006-06-23  Bruno Haible  <bruno@clisp.org>
62453
62454         * tests/test-stdint.c: Update to match ISO C 99 Technical
62455         Corrigendum 1.
62456
62457 2006-06-23  Bruno Haible  <bruno@clisp.org>
62458
62459         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62460
62461 2006-06-23  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/stdint_.h: Treat IRIX like OpenBSD.
62464
62465 2006-06-23  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62468         ISO C 99 Technical Corrigendum 1.
62469
62470 2006-06-22  Simon Josefsson  <jas@extundo.com>
62471
62472         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62473         MinGW.
62474
62475 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62478         needed.  Some compiler complained about some of them.  Problem reported
62479         by Larry Jones in
62480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62481
62482 2006-06-21  Simon Josefsson  <jas@extundo.com>
62483
62484         * tests/test-getaddrinfo.c: New file.
62485
62486         * modules/getaddrinfo-tests: New file.
62487
62488         * MODULES.html.sh: Add inet_pton.
62489
62490         * modules/inet_pton: New file.
62491
62492 2006-06-21  Simon Josefsson  <jas@extundo.com>
62493
62494         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62495         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62496         of using the (limited) gnulib implementation on Windows XP.
62497
62498         * m4/inet_pton.m4: New file.
62499
62500 2006-06-21  Simon Josefsson  <jas@extundo.com>
62501
62502         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62503         variable.
62504
62505         * lib/socket_.h: Don't define WINVER.
62506
62507         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62508         slightly modified to work in gnulib.
62509
62510 2006-06-21  Simon Josefsson  <jas@extundo.com>
62511
62512         * doc/gnulib.texi (Windows sockets): Add.
62513
62514 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * lib/read-file.c (fread_file): Start with buffer allocation of
62517         0 bytes rather than 1 byte; this simplifies the code.
62518         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62519         code to free buffer and save/restore errno.
62520         (internal_read_file): Remove unused local.
62521
62522 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62525         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62526         Problem reported by Denis Excoffier in
62527         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62528
62529 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62530
62531         * modules/sys_socket, modules/socklen: Include sys/types since
62532         FreeBSD 4.x's sys/socket.h needs it.
62533
62534 2006-06-19  Simon Josefsson  <jas@extundo.com>
62535
62536         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62537
62538 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62539
62540         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62541
62542 2006-06-19  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62545         and FULL_PATH_INTTYPES_H in angle brackets.
62546         Reported by Mark D. Baushke <mdb@gnu.org>.
62547
62548 2006-06-17  Eric Blake  <ebb9@byu.net>
62549
62550         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62551         errno.
62552
62553 2006-06-17  Bruno Haible  <bruno@clisp.org>
62554
62555         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62556         <sys/inttypes.h>.
62557
62558 2006-06-17  Bruno Haible  <bruno@clisp.org>
62559
62560         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62561         whether errno is declared. Assume <errno.h> declares errno.
62562
62563 2006-06-17  Bruno Haible  <bruno@clisp.org>
62564
62565         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62566
62567 2006-06-17  Bruno Haible  <bruno@clisp.org>
62568
62569         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62570         problem on Solaris 2.5.1.
62571
62572 2006-06-16  Eric Blake  <ebb9@byu.net>
62573
62574         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62575         * lib/unicodeio.c [!defined errno]: Likewise.
62576         * lib/strtol.c [!defined errno]: Likewise.
62577         * lib/strtod.c [!defined errno]: Likewise.
62578
62579 2006-06-15  Eric Blake  <ebb9@byu.net>
62580
62581         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62582
62583 2006-06-15  Eric Blake  <ebb9@byu.net>
62584
62585         * config/srclist.txt (ssize_t.m4): Lose sync.
62586
62587 2006-06-15  Bruno Haible  <bruno@clisp.org>
62588
62589         * modules/stdint (Files): Include m4/full-header-path.m4,
62590         m4/size_max.m4, m4/wchar_t.m4.
62591         (Makefile.am): Many more substitutions.
62592         * modules/stdint-tests: New file.
62593         * tests/test-stdint.c: New file.
62594
62595 2006-06-15  Bruno Haible  <bruno@clisp.org>
62596
62597         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62598         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62599         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62600         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62601         gl_CHECK_TYPE_SAME): New macros.
62602
62603 2006-06-15  Bruno Haible  <bruno@clisp.org>
62604
62605         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62606
62607 2006-06-15  Bruno Haible  <bruno@clisp.org>
62608
62609         * lib/stdint_.h: Rewritten to be fully auto-configured.
62610         Fixes bug on HP-UX/IA64.
62611
62612 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * lib/getdate.y (__attribute__): Don't define if already defined.
62615         Problem reported by Larry Jones.
62616         * lib/utimens.c (__attribute__): Likewise.
62617
62618 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62621         reported by Andreas Schwab.
62622
62623 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62624             Bruno Haible  <bruno@clisp.org>
62625
62626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62627         check for the declaration of strnlen and a run test that exposes the
62628         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62629         rpl_strndup.
62630
62631 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62632             Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62635
62636 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62637
62638         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62639         compile test, for Tru64 4.0D.
62640
62641 2006-05-28  Karl Berry  <karl@gnu.org>
62642
62643         * config/srclist.txt (printf-args.c): lose sync.
62644
62645 2006-05-26  Martin Lambers  <marlam@marlam.de>
62646
62647         * lib/getpass.c: Updates the test for the native W32 API, and adds
62648         missing includes, thus fixing compilation warnings.
62649
62650 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62651
62652         * lib/exclude.c (exclude_fnmatch): New function.
62653         (excluded_file_name): Call exclude_fnmatch.
62654         * lib/exclude.h (excluded_file_name): New prototype
62655
62656 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         * lib/tempname.c (small_open, large_open): New macros.
62659         (__open, __open64) [!_LIBC]: Remove.
62660         (__gen_tempname): Use small_open and large_open instead of __open
62661         and __open64.  This fixes a portability bug on HP-UX 11.11i
62662         reported by Simon Wing-Tang in
62663         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62664
62665 2006-05-24  Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62668         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62669         Reported by Thorsten Maerz <torte@netztorte.de> via
62670         Aaron Stone <aaron@serendipity.cx>.
62671
62672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62675         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62676         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62677         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62678         not really conditional on the cache.
62679         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62680
62681 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62684         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62685         (my_usleep): Don't mishandle maximum value.
62686
62687 2006-05-19  Jim Meyering  <jim@meyering.net>
62688
62689         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62690
62691 2006-05-17  Bruno Haible  <bruno@clisp.org>
62692
62693         Cygwin portability.
62694         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62695
62696 2006-05-17  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/stdint_.h: Fix recognition of Cygwin.
62699
62700 2006-05-15  Bruno Haible  <bruno@clisp.org>
62701
62702         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62703         on libtool patch by Ralf Wildenhues.
62704
62705 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62706
62707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62708         test for C99 conformance; (bool) 0.5 is an integer constant
62709         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62710         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62711
62712 2006-05-11  Simon Josefsson  <jas@extundo.com>
62713
62714         * m4/xvasprintf.m4: Fix obvious typo.
62715
62716 2006-05-11  Jim Meyering  <jim@meyering.net>
62717
62718         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62719         James Lemley.
62720
62721 2006-05-10  Simon Josefsson  <jas@extundo.com>
62722
62723         * lib/md4.c: Typo fix, update copyright years.
62724         (K1, K2): Don't use L because it turn computations into 64-bit on
62725         64-bit platforms.
62726
62727 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62730         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62731         unwanted sign propagation, e.g., on hosts with 64-bit int.
62732         There still are some problems with reeelly weird theoretical hosts
62733         (e.g., 33-bit int) but it's not worth worrying about now.
62734         * lib/sha1.c (rol): Likewise.
62735         (K1, K2, K3, K4): Remove unnecessary L suffix.
62736
62737 2006-05-10  Bruno Haible  <bruno@clisp.org>
62738
62739         * lib/des.c: Cast to avoid warnings.
62740
62741 2006-05-09  Bruno Haible  <bruno@clisp.org>
62742
62743         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62744         (Depends-on): Depend also on xsize, stdarg.
62745         (configure.ac): Add gl_XVASPRINTF.
62746
62747 2006-05-09  Bruno Haible  <bruno@clisp.org>
62748
62749         * m4/xvasprintf.m4: New file.
62750
62751 2006-05-09  Bruno Haible  <bruno@clisp.org>
62752
62753         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62754         (EOVERFLOW): Define fallback value.
62755         (xstrcat): New function.
62756         (xvasprintf): Recognize the special case of a string concatenation.
62757
62758 2006-05-08  Eric Blake  <ebb9@byu.net>
62759
62760         * gnulib-tool (func_version): Base copyright year on CVS date.
62761         (func_emit_copyright_notice): New function.
62762         (func_emit_lib_Makefile_am): Use it.
62763         (func_emit_tests_Makefile_am): Likewise.
62764         (func_import): Likewise.
62765
62766 2006-05-08  Bruno Haible  <bruno@clisp.org>
62767
62768         * modules/stdarg: New file.
62769         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62770
62771 2006-05-08  Bruno Haible  <bruno@clisp.org>
62772
62773         * m4/stdarg.m4: New file, from GNU gettext.
62774
62775 2006-05-08  Bruno Haible  <bruno@clisp.org>
62776
62777         * config/srclist.txt (build-aux/config.rpath): different from latest
62778         release.
62779
62780 2006-05-08  Bruno Haible  <bruno@clisp.org>
62781
62782         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62783
62784 2006-05-05  Jim Meyering  <jim@meyering.net>
62785
62786         * m4/warning.m4: New file, derived from bison's file by the same name.
62787
62788 2006-05-03  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/stdint_.h: Shorter URL.
62791         * lib/inttypes.h: Likewise.
62792
62793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62796
62797 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62798
62799         * lib/verify.h: Document the internals better.  Most of this change
62800         was written by Bruno Haible.
62801
62802 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * doc/verify.texi: New file, partly based on a proposal by
62805         Bruno Haible.
62806
62807 2006-05-02  Bruno Haible  <bruno@clisp.org>
62808
62809         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62810         test from here...
62811         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62812
62813 2006-04-29  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62816         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62817
62818 2006-04-29  Bruno Haible  <bruno@clisp.org>
62819
62820         * gnulib-tool: Make --update option actually work.
62821
62822 2006-04-29  Bruno Haible  <bruno@clisp.org>
62823
62824         * doc/gcd.texi: New file.
62825         * doc/gnulib.texi: Include it.
62826
62827 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62828
62829         * lib/getdate.y (get_date): When adding relative date, start with the
62830         initial time, not with the result of the first mktime call.
62831
62832 2006-04-25  Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (func_import): Output the include directives in three
62835         blocks, sorted separately.
62836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62837
62838 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62841         to define main with arguments, for C++.  Reported by Eric Blake.
62842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62843         Prefer 'int main ()' to 'int main (void)', for C++.
62844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62846         for 'main', for C99 and C++.
62847
62848 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62851         Don't assume that exit status -1 is valid.
62852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62853         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62854         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62855         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62856         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62857         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62858         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62859         functions can be used without declaring them, or that you can
62860         exit with status -1.
62861         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62862
62863 2006-04-24  Karl Berry  <karl@gnu.org>
62864
62865         * config/srclist.txt (longdouble.m4): sync lost.
62866
62867 2006-04-24  Eric Blake  <ebb9@byu.net>
62868
62869         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62870
62871 2006-04-24  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62874         poll() implementation in AIX.
62875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62876
62877 2006-04-24  Bruno Haible  <bruno@clisp.org>
62878
62879         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62880         assigned exactly once.
62881
62882 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62883             Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62886         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62887         for AM_CPPFLAGS.
62888
62889 2006-04-23  Bruno Haible  <bruno@clisp.org>
62890
62891         * modules/copy-file: Depend on unistd.
62892         * modules/execute: Likewise.
62893         * modules/fatal-signal: Likewise.
62894         * modules/findprog: Likewise.
62895         * modules/mkdtemp : Likewise.
62896         * modules/pipe: Likewise.
62897         * modules/wait-process: Likewise.
62898
62899 2006-04-23  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62902         condition was already detected.
62903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62904
62905 2006-04-23  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/copy-file.c: Include <unistd.h> unconditionally.
62908         * lib/execute.c: Likewise.
62909         * lib/fatal-signal.c: Likewise.
62910         * lib/findprog.c: Likewise.
62911         * lib/mkdtemp.c: Likewise.
62912         * lib/pipe.h: Likewise.
62913         * lib/pipe.c: Likewise.
62914         * lib/wait-process.h: Likewise.
62915
62916 2006-04-23  Bruno Haible  <bruno@clisp.org>
62917
62918         * gnulib-tool (func_usage): Fix --import description. Document
62919         --update.
62920         (func_import): Create temporary file in a temporary directory, if
62921         --dry-run is specified. Silence errors from 'grep' when there are no
62922         m4 files in $m4dir.
62923         (func_create_testdir): Silence errors from 'grep' when there are no
62924         m4 files in $m4dir.
62925         Reported by Karl Berry <karl@freefriends.org>.
62926
62927 2006-04-20  Bruno Haible  <bruno@clisp.org>
62928
62929         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62930         one argument, so that the code will be portable to Autoconf 2.60.
62931         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62933         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62934
62935 2006-04-19  Derek Price  <derek@ximbiot.com>
62936             Eric Blake  <ebb9@byu.net>
62937
62938         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62939         rather than "/full/path.h".  Update comment to match.  Shorten &
62940         generalize m4_translit call via AS_TR_CPP.
62941
62942 2006-04-19  Derek Price  <derek@ximbiot.com>
62943             Eric Blake  <ebb9@byu.net>
62944
62945         * lib/inttypes.h: Correct grammar in comment.
62946
62947 2006-04-18  Derek Price  <derek@ximbiot.com>
62948             Paul Eggert  <eggert@cs.ucla.edu>
62949
62950         * modules/inttypes: New file.
62951         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62952
62953 2006-04-18  Derek Price  <derek@ximbiot.com>
62954             Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62957         New files.
62958
62959 2006-04-18  Derek Price  <derek@ximbiot.com>
62960             Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         * lib/inttypes.h: New file.
62963         * lib/strtoimax.c: Assume <inttypes.h>.
62964
62965 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62968         isn't mounted.  Problem reported by Kir Kolyshkin.
62969
62970 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62971
62972         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62973         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62974         Derek R. Price.
62975         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62976         implementation.
62977
62978 2006-04-12  Eric Blake  <ebb9@byu.net>
62979
62980         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62981         is now done automatically by the corresponding Autoconf macro.
62982
62983 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62986         time_r.h.
62987
62988 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         Merge regex changes from libc, removing some of our
62991         POSIX-conformance changes that were rejected and redoing them in a
62992         less-intrusive way.
62993
62994         * lib/regcomp.c (re_compile_internal, init_dfa):
62995         Length arg is now size_t, not Idx.  All uses changed.
62996         (peek_token): Forward decl now says internal_function.
62997         (__re_error_msgid, __re_error_msgid_idx):
62998         Now static rather than extern with attribute_hidden.
62999         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63000         For some reason libc prefers K&R style defns for external functions.
63001         (regerror) [!defined _LIBC]: Likewise.
63002         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63003         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63004         (build_range_exp, build_collating_symbol):
63005         Use K&R-style defn.
63006         (re_compile_fastmap): Use '\0' to memset, not 0.
63007         (utf8_sb_map): Make the calculations more obvious.
63008         (init_dfa, parse_bracket_exp, build_charclass_op):
63009         Call calloc and cast result, as glibc does.
63010         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63011         (build_range_exp, build_collating_symbol):
63012         Now internal functions.
63013
63014         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63015
63016         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63017         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63018         Don't depend on VMS; depend on __VMS instead, for POSIX
63019         namespace cleanness.
63020         (regoff_t): Define to ssize_t, not long int.
63021
63022         Remove the REG_ macros named below.  Instead, make the old names
63023         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63024         __USE_GNU_REGEX.
63025         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63026         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63027         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63028         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63029         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63030         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63031         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63032         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63033         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63034         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63035         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63036         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63037         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63038         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63039         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63040         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63041         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63042         (REG_NREGS):
63043         Remove.  All uses replaced by the old RE_* names.
63044         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63045         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63046         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63047         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63048         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63049         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63050         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63051         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63052         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63053         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63054         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63055         Don't bother having these macros be independent of each others'
63056         values, since they no longer exist in the POSIX name space.
63057
63058         Rename the following member names back to their old names,
63059         unless !__USE_GNU_REGEX.  All uses changed back.
63060         (buffer): Renamed from re_buffer.
63061         (allocated): Renamed from re_allocated.
63062         (used): Renamed from re_used.
63063         (syntax): Renamed from re_syntax.
63064         (fastmap): Renamed from re_fastmap.
63065         (translate): Renamed from re_translate.
63066         (can_be_null): Renamed from re_can_be_null.
63067         (regs_allocated): Renamed from re_regs_allocated.
63068         (fastmap_accurate): Renamed from re_fastmap_accurate.
63069         (no_sub): Renamed from re_no_sub.
63070         (not_bol): Renamed from re_not_bol.
63071         (not_eol): Renamed from re_not_eol.
63072         (newline_anchor): Renamed from re_newline_anchor.
63073         (num_regs): Renamed from rm_num_regs.
63074         (start): Renamed from rm_start.
63075         (end): Renamed from rm_end.
63076
63077         (free_state): Move up a bit.
63078
63079         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63080         #define to be empty.
63081         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63082         when that is what is intended.
63083         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63084         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63085         (MAX): New macro.
63086         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63087         All uses changed back to re_malloc, etc.  It's now the caller's
63088         responsibility to check for overflow; all callers changed.
63089         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63090         (re_x2nrealloc): Remove.
63091         (free_state): Remove decl.
63092
63093         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63094         (re_set_registers, re_exec):
63095         Use K&R-style defn.
63096
63097         2006-01-31  Roland McGrath  <roland@redhat.com>
63098
63099         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63100         Reported by Mike Frysinger <vapier@gentoo.org>.
63101
63102         2006-01-15  Andreas Jaeger  <aj@suse.de>
63103
63104         [BZ #1950]
63105         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63106         build_wcs_upper_buffer change.
63107         (build_wcs_upper_buffer): Change return type.
63108
63109         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63110
63111         * lib/regex_internal.h: Include <stdint.h> if available.
63112
63113         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63114
63115         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63116
63117         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63118
63119         * lib/regcomp.c: Adjust for changed secondary hash function.
63120
63121         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63122
63123         * lib/regex.h: Pretty printing.
63124         Clean up namespace a bit.
63125
63126         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63127
63128         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63129         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63130
63131         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63132                     Ulrich Drepper  <drepper@redhat.com>
63133
63134         [BZ #1302]
63135         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63136         changed.
63137         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63138
63139         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63140
63141         [BZ #281]
63142         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63143         * lib/regcomp.c: Remove unnecessary uses of
63144         unsigned RE_TRANSLATE_TYPE.
63145         * lib/regex_internal.h: Likewise.
63146         * lib/regex_internal.c: Likewise.
63147         * lib/regexec.c: Likewise.
63148         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63149
63150         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63151
63152         * lib/regexec.c (find_recover_state): Remove unnecessary
63153         initialization.
63154         (transit_state_bkref): Make DFA a const pointer.
63155         (get_subexp): Likewise.
63156         (check_arrival): Likewise.
63157         (update_cur_sifted_state): Likewise.
63158         (re_search_internal): Likewise.
63159         (prune_impossible_nodes): Likewise.
63160         (acquire_init_state_context): Likewise.
63161         (proceed_next_node): Likewise.
63162         (set_regs): Likewise.
63163         (free_fail_stack_return): Likewise.
63164         (check_arrival_expand_ecl): Mark DFA parameter as const.
63165         (check_arrival_expand_ecl_sub): Likewise.
63166         (check_subexp_limits): Likewise.
63167         (sub_epsilon_src_nodes):  Likewise.
63168         (add_epsilon_src_nodes):  Likewise.
63169         (merge_state_array): Likewise.
63170         (update_regs): Likewise.
63171         (build_trtable): Likewise.
63172         (sift_states_backward): Mark MCTX parameter as const.
63173         (build_sifted_states): Likewise.
63174         (update_cur_sifted_state): Likewise.
63175         (sift_states_mkref): Likewise.
63176         (check_arrival_expand_ecl): Mark eclosure as const.
63177         (check_dst_limits_calc_pos_1): Likewise.
63178         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63179         pointer.
63180
63181         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63182
63183         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63184         (transit_state_sb): Likewise.
63185         (transit_state_mb): Likewise.
63186         (sift_states_iter_mb): Likewise.
63187         (check_arrival_add_next_nodes): Likewise.
63188         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63189         [_LIBC] (re_search_2_stub): Use mempcpy.
63190
63191         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63192         mbrtowc for very simple UTF-8 case.
63193
63194         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63195         a pointer-to-const.
63196         (re_acquire_state_context): Likewise.
63197         * lib/regex_internal.h: Adjust prototypes.
63198
63199         * lib/regex.c: Prevent using C++ compilers.
63200
63201         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63202         (re_acquire_state_context): Likewise.
63203
63204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         * modules/regex (Depends-on): Add ssize_t.
63207
63208 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63209
63210         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63211         translation table.
63212
63213 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63216
63217 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63218             Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63221         <sys/types.h> and <inttypes.h>.
63222
63223 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63224
63225         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63226         `__error_t_defined', so argp.h will not typedef the former.
63227
63228 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63231         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63232         glibc names.  Even if glibc is changed to conform to POSIX, the
63233         traditional names will be available anyway, since regex depends on
63234         the extensions module.  Also, fix a longstanding typo in the
63235         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63236         reported by Emanuele Giaquinta.  Also, change sense of cached
63237         variable, so that the message makes sense.
63238
63239 2006-03-24  Simon Josefsson  <jas@extundo.com>
63240
63241         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63242         including some doc fixes.
63243         (base64_encode_alloc): Fix +1 bug on allocation failures.
63244
63245 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63246
63247         * lib/base64.c (base64_encode): Do not read past end of array with
63248         unsanitized input on systems with CHAR_BIT > 8.
63249
63250 2006-03-24  Eric Blake  <ebb9@byu.net>
63251
63252         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63253
63254 2006-03-22  Karl Berry  <karl@gnu.org>
63255
63256         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63257         * config/srclistvars.sh (COREUTILS): new var.
63258
63259 2006-03-17  Jim Meyering  <jim@meyering.net>
63260
63261         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63262         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63263
63264 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63267         no longer needs it.  Instead, check that regoff_t is as least
63268         as wide as ptrdiff_t.
63269
63270         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63271         so that our regex.h stays compatible with the installed regex.
63272         This is helpful for installers who configure --without-included-regex.
63273         Problem reported by Emanuele Giaquinta.
63274
63275 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63278         Typedef to long int, not to off_, as POSIX will likely change
63279         in that direction.
63280
63281 2006-03-15  Eric Blake  <ebb9@byu.net>
63282
63283         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63284
63285 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63286
63287         * lib/argp-help.c (validate_uparams): Fix typo
63288         * lib/argp-parse.c (argp_default_options): Consistently begin help
63289         messages with a lowercase letter.
63290
63291 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63294         overrun buffers and shouldn't be used (much as gets shouldn't be
63295         used).
63296         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63297
63298 2006-03-08  Simon Josefsson  <jas@extundo.com>
63299
63300         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63301         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63302
63303 2006-03-08  Simon Josefsson  <jas@extundo.com>
63304
63305         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63306         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63307
63308 2006-03-08  Simon Josefsson  <jas@extundo.com>
63309
63310         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63311         signal that configure disabled the device.
63312
63313 2006-03-08  Simon Josefsson  <jas@extundo.com>
63314
63315         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63316         languages.
63317
63318 2006-03-07  Simon Josefsson  <jas@extundo.com>
63319
63320         * modules/getopt (Depends-on): Add unistd.
63321
63322         * modules/unistd: New file.
63323
63324 2006-03-07  Simon Josefsson  <jas@extundo.com>
63325
63326         * modules/gc-random: New file.
63327
63328 2006-03-07  Simon Josefsson  <jas@extundo.com>
63329
63330         * m4/unistd_h.m4: New file.
63331
63332 2006-03-07  Simon Josefsson  <jas@extundo.com>
63333
63334         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63335         test to be side-effect free by storing the result in the cache
63336         variable gl_cv_lib_readline, and moving the assignment of
63337         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63338         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63339
63340 2006-03-07  Simon Josefsson  <jas@extundo.com>
63341
63342         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63343         error on missing devices (the functions will return an error).
63344
63345         * m4/gc.m4: Move random stuff to gc-random.m4
63346
63347 2006-03-07  Simon Josefsson  <jas@extundo.com>
63348
63349         * lib/unistd_.h: New file.
63350
63351 2006-03-07  Simon Josefsson  <jas@extundo.com>
63352
63353         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63354
63355 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63358         Problem reported by Juan Manuel Guerrero.
63359
63360 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63363         the unistd module.
63364         * lib/getlogin_r.c: Likewise.
63365         * lib/getlogin_r.h: Likewise.
63366         * lib/glob.c: Likewise.
63367         * lib/pagealign_alloc.c: Likewise.
63368         * lib/unistd_.h: Remove; no longer needed.
63369
63370 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63373         Add unistd.
63374         * modules/c-stack (Depends-on): Add unistd.
63375         * modules/getlogin_r: Likewise.
63376         * modules/glob: Likewise.
63377         * modules/pagealign_alloc: Likewise.
63378         * modules/unistd (Files): Remove lib/unistd_.h.
63379         (EXTRA_DIST): Remove.
63380         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63381         need unistd_.h.
63382         (MOSTLYCLEANFILES): Remove unistd.h-t.
63383
63384 2006-03-03  Simon Josefsson  <jas@extundo.com>
63385
63386         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63387
63388 2006-03-03  Simon Josefsson  <jas@extundo.com>
63389
63390         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63391         libidn and bison.
63392
63393 2006-03-03  Simon Josefsson  <jas@extundo.com>
63394
63395         * build-aux/maint.mk: Add indent target.
63396
63397 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63398
63399         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63400         our replacement poll.h in any case, to avoid a differing
63401         declaration from a system header.  Seen on AIX.
63402
63403 2006-03-01  Simon Josefsson  <jas@extundo.com>
63404
63405         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63406         <kasal@ucw.cz>.
63407
63408 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * modules/gettime (Depends-on): Add extensions module.
63411         * modules/nanosleep (Depends-on): Likewise.
63412         * modules/settime (Depends-on): Likewise.
63413
63414 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63417         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63418         pedantically.
63419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63420         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63421
63422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63423         not "==".  Reported by Ralf Wildenhues.
63424
63425 2006-03-01  Karl Berry  <karl@gnu.org>
63426
63427         * doc/Copyright/request-*: new files, synced from gnuorg.
63428
63429 2006-03-01  Karl Berry  <karl@gnu.org>
63430
63431         * config/srclist.txt (Copyright/*): new entries.
63432
63433 2006-02-28  Simon Josefsson  <jas@extundo.com>
63434
63435         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63436
63437 2006-02-27  Simon Josefsson  <jas@extundo.com>
63438
63439         * lib/base64.h: Indent #define's.  From Jim Meyering
63440         <jim@meyering.net>.
63441
63442 2006-02-27  Jim Meyering  <jim@meyering.net>
63443
63444         Revert the change of 2006-02-24, so these files can continue
63445         to be sync'd from gettext.
63446         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63447         of `config.h'.
63448
63449 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * modules/intprops: New file.
63452         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63453         Add intprops.
63454         * modules/getloadavg (Files): Remove lib/intprops.h.
63455         (Depends-on): Add intprops.
63456         * modules/human: Likewise.
63457         * modules/inttostr: Likewise.
63458         * modules/openat: Likewise.
63459         * modules/sig2str: Likewise.
63460         * modules/userspec: Likewise.
63461         * modules/utimecmp: Likewise.
63462         * modules/xnanosleep: Likewise.
63463         * modules/xstrtol: Likewise.
63464
63465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63466
63467         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63468         * modules/lock-tests (TESTS): Use $(EXEEXT).
63469         * modules/tls-tests: Likewise.
63470         * modules/argp-tests: Likewise.
63471         (check_PROGRAMS): New var, replacing...
63472         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63473
63474 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63475
63476         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63477         `config.h'.
63478
63479 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63482
63483 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63484
63485         Sync from coreutils.
63486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63487         gl_CHDIR_SAFER.
63488
63489 2006-02-22  Jim Meyering  <jim@meyering.net>
63490
63491         Sync from coreutils.
63492         * m4/chdir-safer.m4: New file.
63493
63494 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63497         AT_FDCWD exceeds INT_MAX.
63498         * lib/openat.h (AT_FDCWD): Likewise.
63499
63500 2006-02-17  Eric Blake  <address@hidden>
63501
63502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63503
63504 2006-02-16  Simon Josefsson  <jas@extundo.com>
63505
63506         * modules/getaddrinfo (Depends-on): Add sys_socket.
63507
63508 2006-02-15  Simon Josefsson  <jas@extundo.com>
63509
63510         * build-aux/maint.mk: Add dsyntax-check rule.
63511
63512 2006-02-15  Eric Blake  <ebb9@byu.net>
63513
63514         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63515         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63516         'present but cannot compile' warnings on cygwin.
63517         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63518         use ws2tcpip.h if sys/socket.h works.
63519         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63520         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63521
63522 2006-02-14  Simon Josefsson  <jas@extundo.com>
63523
63524         * modules/maintainer-makefile (Files): Rename.
63525
63526         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63527         and (the local) Makefile.cfg to maint-cfg.mk.
63528
63529         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63530         to the latter.
63531
63532         * modules/maintainer-makefile: New module.
63533
63534         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63535         severaly stripped to make it possible to build it up from scratch
63536         with reliable tests.
63537
63538         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63539         fixes to permit overriding the default actions when configure and
63540         makefile are not available.
63541
63542 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         Sync from coreutils.
63545         * modules/lstat (Depends-on): Don't depend on xalloc.
63546         (License): Change from GPL to LGPL, since this is now simply a
63547         replacement for a libc function.
63548
63549 2006-02-14  Jim Meyering  <jim@meyering.net>
63550
63551         Sync from coreutils.
63552
63553         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63554         failure on deficient systems, and simplify gnulib lgpl dependencies.
63555         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63556         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63557
63558         * lib/xalloc-die.c: Remove unused definition of N_.
63559
63560 2006-02-14  Jim Meyering  <jim@meyering.net>
63561
63562         Sync from coreutils.
63563         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63564         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63565         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63566         double-quote uses of that variable, to accommodate the rare case in
63567         which getmntent is available in none of the libraries checked.  This
63568         happens at least on FreeBSD 5.0.
63569
63570 2006-02-13  Simon Josefsson  <jas@extundo.com>
63571
63572         * gnulib-tool (Usage): Fix --import, from
63573         karl@freefriends.org (Karl Berry).
63574
63575 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63576
63577         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63578
63579 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63580
63581         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63582         "autoupdate" on 2005-12-12.
63583
63584 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63585
63586         * modules/closeout (Depends-on): Remove atexit.
63587
63588 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63591         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63592
63593 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63596         __EXTENSIONS__ if this causes compilation to fail.  Problem
63597         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63598         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63599
63600 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63603         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63605         All uses changed.
63606
63607 2006-01-26  Simon Josefsson  <jas@extundo.com>
63608
63609         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63610         prototype is visible on mingw32.
63611
63612         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63613         for mingw32.
63614
63615         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63616         mingw32).
63617
63618 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63621         attempt to open for write; this always fails, at least on POSIX
63622         hosts.  This reinstates the 2006-01-09 change, which was
63623         inadvertently removed.
63624
63625 2006-01-26  Bruno Haible  <bruno@clisp.org>
63626
63627         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63628         Reported by Paul Eggert.
63629
63630 2006-01-26  Bruno Haible  <bruno@clisp.org>
63631             Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * lib/stdbool_.h (_Bool)
63634         [(! (defined __cplusplus || defined __BEOS__)
63635           && !defined __GNUC__
63636           && !(defined __HP_cc || defined __xlc__
63637                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63638                || defined __sgi))]:
63639         #define to signed char in these cases too; this simplifies
63640         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63641         etc., separately) and makes it more conservative.
63642
63643 2006-01-25  Simon Josefsson  <jas@extundo.com>
63644
63645         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63646         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63647         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63648
63649 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63650
63651         * lib/argp-namefrob.h: Bugfix. Remove stray #
63652
63653 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63656         so that we test the test.
63657         Check for yet another HP-UX cc bug involving *bool |= bool.
63658
63659 2006-01-25  Karl Berry  <karl@gnu.org>
63660
63661         * config/srclist.txt (vasnprintf.c): sync lost.
63662
63663 2006-01-25  Jim Meyering  <jim@meyering.net>
63664
63665         Sync from the stable (b5) branch of coreutils:
63666
63667         * lib/fts.c (fts_children): Don't let close() clobber errno from
63668         failed fchdir().
63669
63670         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63671         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63672         a dangling symlink.  That can also happen at least for ELOOP.
63673         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63674         FYI, this bug predates the inclusion of fts.c in coreutils.
63675
63676         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63677         in their own block, so pre-c99 compilers don't object.
63678
63679         Avoid the double-free (first in fts_read, second in fts_close) that
63680         would occur when an `active' directory is made inaccessible (e.g.,
63681         via chmod a-x) during a traversal.
63682         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63683         before returning.  Reproduce this failure by
63684         mkdir -p a/b; cd a; chmod a-x . b
63685         Reported by Stavros Passas.
63686
63687 2006-01-25  Jim Meyering  <jim@meyering.net>
63688
63689         * lib/fileblocks.c: Remove more useless parentheses.
63690         * lib/readutmp.h: Likewise.
63691
63692 2006-01-25  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63695         warnings.
63696         Reported by Paul Eggert.
63697
63698 2006-01-25  Bruno Haible  <bruno@clisp.org>
63699
63700         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63701         rid of a trap command. For Solaris sh.
63702         Reported by Mark D. Baushke <mdb@gnu.org>.
63703
63704 2006-01-24  Simon Josefsson  <jas@extundo.com>
63705
63706         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63707         Bruno.
63708
63709 2006-01-24  Karl Berry  <karl@gnu.org>
63710
63711         * config/srclist.txt (argp-namefrob.h): sync lost.
63712
63713 2006-01-24  Jim Meyering  <jim@meyering.net>
63714
63715         * modules/openat (Files): Add lib/intprops.h.
63716         From Mark D. Baushke.
63717
63718 2006-01-24  Jim Meyering  <jim@meyering.net>
63719
63720         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63721         Reported by Mark D. Baushke.
63722
63723 2006-01-24  Jim Meyering  <jim@meyering.net>
63724
63725         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63726
63727 2006-01-24  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/strnlen (Maintainer): Change from glibc to all.
63730
63731 2006-01-24  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63734         Patch by Paul Eggert.
63735
63736 2006-01-24  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63739         already has it.
63740         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63741         2005-11-26.
63742
63743         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63744         'signed char' to avoid problems with the built-in _Bool type.
63745         Reported by Paul Eggert on 2005-11-26.
63746
63747 2006-01-24  Bruno Haible  <bruno@clisp.org>
63748
63749         * gnulib-tool (func_import): Avoid constructing complicated sed
63750         expressions inside backquote.
63751         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63752
63753 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63754
63755         These changes imported from libc.
63756         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63757         test and two separate function calls.
63758         * lib/strndup.c (__strndup): Add libc_hidden_def.
63759
63760 2006-01-23  Simon Josefsson  <jas@extundo.com>
63761
63762         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63763         Remove the test_*_SOURCES variable: automake infers it by default.
63764         * modules/tls-tests: Likewise.
63765
63766 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         Work around porting bugs reported by Dieter in
63769         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63770         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63771         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63772         Include "getopt.h" first, to check interface.
63773         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63774         !HAVE_DECL_GETENV.
63775         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63776         (__strndup): Revert to K&R-style function dfns, the glibc style.
63777         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63778         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63779         Include strnlen.h first, to get prototype properly.
63780         (strnlen): Renamed from __strnlen.
63781         Remove weak alias.
63782
63783 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63786
63787 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63788
63789         * config/srclist.txt: Adjust to reflect glibc reorganization.
63790         This affects only comments.
63791
63792 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63793
63794          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63795          Reported by Bruce Korb <bkorb@gnu.org>.
63796
63797 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63800         to pacify gcc -Wswitch-default.
63801
63802 2006-01-22  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63805         temporary buffer for sprintf, take into account the precision also
63806         for 'd', 'i', 'u', 'o', 'x', 'X'.
63807
63808 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63809
63810         * modules/argp-tests: New module
63811         * tests/test-argp.c: New file
63812         * tests/test-argp-2.sh: New file
63813
63814 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63815
63816         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63817         (__argp_base_name): Removed
63818         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63819         typo.
63820         (__argp_base_name): Provide macro definition or extern declaration
63821         depending on the configuration
63822
63823 2006-01-20  Simon Josefsson  <jas@extundo.com>
63824
63825         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63826
63827 2006-01-20  Simon Josefsson  <jas@extundo.com>
63828
63829         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63830
63831 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63834         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63835         Suggested by Bruno Haible.
63836
63837 2006-01-20  Karl Berry  <karl@gnu.org>
63838
63839         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63840         until changes propagate, I guess.
63841
63842 2006-01-19  Simon Josefsson  <jas@extundo.com>
63843
63844         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63845
63846 2006-01-19  Simon Josefsson  <jas@extundo.com>
63847
63848         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63849
63850 2006-01-19  Simon Josefsson  <jas@extundo.com>
63851
63852         * gnulib-tool: Set check_PROGRAMS.
63853
63854         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63855         modules/des-tests, modules/gc-arcfour-tests,
63856         modules/gc-arctwo-tests, modules/gc-des-tests,
63857         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63858         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63859         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63860         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63861         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63862         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63863         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63864         test_*_SOURCES.
63865
63866 2006-01-18  Simon Josefsson  <jas@extundo.com>
63867
63868         * modules/socklen (Depends-on): Depend on sys_socket.
63869
63870 2006-01-18  Simon Josefsson  <jas@extundo.com>
63871
63872         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63873         modules/des-tests, modules/gc-arcfour-tests,
63874         modules/gc-arctwo-tests, modules/gc-des-tests,
63875         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63876         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63877         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63878         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63879         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63880         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63881         $(EXEEXT) to automake TESTS variable, for mingw32.
63882
63883 2006-01-17  Simon Josefsson  <jas@extundo.com>
63884
63885         * modules/socklen (Include): Need sys/socket.h.
63886
63887 2006-01-17  Bruno Haible  <bruno@clisp.org>
63888
63889         * modules/ssize_t (Include): Add <sys/types.h>.
63890
63891 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63894         it's not portable and it doesn't work with cross-compiles.
63895         Problem reported by Bruno Haible.  Fix missing-$ typo in
63896         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63897         -zignore from being used with Sun's C compiler.
63898
63899 2006-01-12  Simon Josefsson  <jas@extundo.com>
63900
63901         * lib/base64.c: Fix warning, reported by Bruno Haible
63902         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63903
63904 2006-01-12  Bruno Haible  <bruno@clisp.org>
63905
63906         * modules/ldd: New file.
63907         * build-aux/ldd.sh.in: New file.
63908         * MODULES.html.sh (Support for building libraries and executables): Add
63909         ldd.
63910
63911 2006-01-12  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/ldd.m4: New file.
63914
63915 2006-01-12  Bruno Haible  <bruno@clisp.org>
63916
63917         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63918         endless loop while replacing $auxdir with build-aux.
63919
63920 2006-01-11  Simon Josefsson  <jas@extundo.com>
63921
63922         * lib/stdint_.h (SIZE_MAX): Add missing (.
63923
63924 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         Sync from coreutils.
63927         * lib/md5.c: Fix commentary typos.
63928         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63929         * lib/md5.h (__attribute__): Remove; unused.
63930         * lib/sha1.c: Fix commentary to match md5 better.
63931         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63932         so that we don't need to worry about alignment.  All uses changed.
63933         This merges the 2005-10-28 md5 change into sha1.
63934
63935 2006-01-11  Jim Meyering  <jim@meyering.net>
63936
63937         Sync from coreutils.
63938         * lib/md5.c (OP): Fix spacing.
63939
63940 2006-01-11  Bruno Haible  <bruno@clisp.org>
63941
63942         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63943         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63944         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63945
63946 2006-01-11  Bruno Haible  <bruno@clisp.org>
63947
63948         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63949         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63950         the "early" section as well.
63951
63952 2006-01-11  Bruno Haible  <bruno@clisp.org>
63953
63954         Avoid "ar: no archive members specified" error on MacOS X.
63955         * gnulib-tool (func_modules_add_dummy): New function.
63956         (func_import, func_create_testdir): Invoke it.
63957
63958 2006-01-11  Bruno Haible  <bruno@clisp.org>
63959
63960         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63961         with $auxdir in AC_CONFIG_FILES statements.
63962
63963 2006-01-11  Bruno Haible  <bruno@clisp.org>
63964
63965         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63966         Initialize also noinst_HEADERS to empty.
63967
63968 2006-01-11  Bruno Haible  <bruno@clisp.org>
63969
63970         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63971         variables.
63972         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63973         autoreconf.
63974
63975 2006-01-11  Bruno Haible  <bruno@clisp.org>
63976
63977         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63978         overridable by the user.
63979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63980
63981 2006-01-10  Simon Josefsson  <jas@extundo.com>
63982
63983         * modules/sys_socket: New file.
63984
63985 2006-01-10  Simon Josefsson  <jas@extundo.com>
63986
63987         * m4/sys_socket_h.m4: New file.
63988
63989 2006-01-10  Simon Josefsson  <jas@extundo.com>
63990
63991         * lib/socket_.h: New file.
63992
63993 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         * modules/readutmp (Maintainer): Add myself.
63996
63997 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64000         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64001         People who are still concerned with buggy memcmp implementations
64002         can invoke gl_FUNC_MEMCMP themselves.
64003
64004 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * lib/regex_internal.h (BITSET_WORD_BITS):
64007         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64008         preprocessor mishandles large unsigned values as if they were signed.
64009         Problem reported by Claudio Fontana in
64010         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64011
64012 2006-01-10  Jim Meyering  <jim@meyering.net>
64013
64014         Avoid the double-free (first in fts_read, second in fts_close) that
64015         would occur when an `active' directory is made inaccessible (e.g.,
64016         via chmod a-x) during a traversal.
64017         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64018         before returning.  Reproduce this failure by
64019         mkdir -p a/b; cd a; chmod a-x . b
64020         Reported by Stavros Passas.
64021
64022         Sync from coreutils.
64023         * lib/sha1.c: Tweak grammar in a comment.
64024
64025 2006-01-10  Jim Meyering  <jim@meyering.net>
64026
64027         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64028         Patch by Joerg Sonnenberger.
64029
64030 2006-01-10  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/readutmp: Depend on module free.
64033         * modules/strtok_r: Depend on module restrict.
64034
64035 2006-01-10  Bruno Haible  <bruno@clisp.org>
64036
64037         * modules/gettext (configure.ac): Add an invocation of
64038         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64039
64040 2006-01-10  Bruno Haible  <bruno@clisp.org>
64041
64042         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64043         Reported by Werner Lemberg <wl@gnu.org>.
64044
64045 2006-01-10  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/localcharset.c: Update from GNU gettext.
64048
64049 2006-01-10  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/argp.h (__const): Remove macro. Use const instead.
64052         * lib/argp-fmtstream.h (__const): Likewise.
64053         * lib/glob_.h (__const): Remove macro.
64054         * lib/glob-libc.h: Use const instead of __const.
64055
64056 2006-01-10  Bruno Haible  <bruno@clisp.org>
64057
64058         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64059         variable.
64060         Needed to avoid an automake error regarding the 'gettext' module.
64061
64062 2006-01-09  Simon Josefsson  <jas@extundo.com>
64063
64064         * modules/inet_ntop (Depends-on): Add restrict.
64065
64066 2006-01-09  Simon Josefsson  <jas@extundo.com>
64067
64068         * modules/gc-rijndael-tests (License): Put under LGPL.
64069
64070         * modules/gc-des-tests (License): Likewise.
64071
64072         * modules/gc-arcfour-tests (License): Likewise.
64073
64074         * modules/gc-arctwo-tests (License): Likewise.
64075
64076         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64077
64078         * modules/gc-hmac-sha1-tests (Files): Likewise.
64079
64080         * modules/gc-hmac-md5-tests (License): Likewise.
64081
64082         * modules/gc-sha1-tests (License): Likewise.
64083
64084         * modules/gc-md5-tests (License): Likewise.
64085
64086         * modules/gc-md4-tests (License): Likewise.
64087
64088         * modules/gc-md2-tests (License): Likewise.
64089
64090         * modules/gc-tests (License): Likewise.
64091
64092         * modules/des-tests (License): Likewise.
64093
64094         * modules/md4-tests (License): Likewise.
64095
64096         * modules/md2-tests (License): Likewise.
64097
64098 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         Sync from coreutils:
64101
64102         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64103         * modules/lib-ignore: New file.
64104         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64105         chdir-safer.m4, lchmod.m4.
64106         * modules/openat: Add mkdirat.c, openat-priv.h.
64107
64108 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         Sync from coreutils.
64111         * m4/lib-ignore.m4: New file.
64112         * m4/lchmod.m4: New file.
64113
64114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         Sync from coreutils.
64117         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64118         for write access: POSIX says that must fail.
64119         * lib/fts.c (diropen): Likewise.
64120         * lib/save-cwd.c (save_cwd): Likewise.
64121         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64122         well, for minor improvements on hosts that lack O_DIRECTORY.
64123         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64124         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64125         Fall back on chown if open failed with EACCES.
64126
64127         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64128         Report an error at compile-time if only a 1-second nominal clock
64129         resolution is found.
64130
64131         * lib/lchmod.h: New file.
64132         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64133         (make_dir_parents): Use lchown rather than chown, and
64134         lchmod rather than chmod.
64135
64136         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64137         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64138         "proc" reported by n0dalus.
64139
64140         * lib/mountlist.c: Include <limits.h>.
64141         (dev_from_mount_options)
64142         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64143         New function.  It no longer assumes "dev=" has the System V meaning
64144         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64145         (read_file_system_list)
64146         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64147         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64148         dev= in that case.
64149
64150         * lib/posixtm.h (PDS_PRE_2000): New macro.
64151         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64152         allow_century.  All usages changed.  Reject dates outside the range
64153         1969-1999 if PDS_PRE_2000 is used.
64154
64155 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         Sync from coreutils.
64158         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64159         (Time of day items): Mention the possibility of leap seconds.
64160         Problem reported by Dr. David Alan Gilbert.
64161
64162 2006-01-09  Jim Meyering  <jim@meyering.net>
64163
64164         Sync from coreutils.
64165
64166         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64167
64168         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64169
64170         * lib/modechange.c (mode_compile): Reject an invalid mode string
64171         that starts with an octal digit.  From Andreas Gruenbacher.
64172
64173         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64174         and dup to open_safer and dup_safer, respectively.
64175         (openat_permissive): Fix typo in comment.
64176
64177         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64178         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64179         (_): Remove; no longer needed.
64180         (openat): Renamed from rpl_openat; no need for rpl_openat
64181         since openat.h renames openat for us.
64182         Replace most of the body with a call to openat_permissive,
64183         to avoid duplicate code.
64184         Port to (probably hypothetical) environments were mode_t is
64185         wider than int.
64186         (openat_permissive): Require mode arg, so that we can check
64187         types better.  Put it just after flags.  Change cwd failure
64188         indicator from pointer-to-bool to pointer-to-errno-value.
64189         All callers changed.
64190         Invoke openat_save_fail and/or openat_restore_fail if
64191         cwd_errno is null, so that openat can call us.
64192         (openat_permissive, fdopendir, fstatat, unlinkat):
64193         Simplify errno handling to avoid some duplicate code,
64194         as it's OK to set errno on success.
64195         * lib/openat.h: Revamp code so that function macros depend on
64196         __OPENAT_PREFIX only, not also on AT_FDCWD.
64197         (openat_ro): Remove.  Caller changed to use openat_permissive.
64198         (openat_permissive): Now a macro, if not a function.
64199         (openat_restore_fail, openat_save_fail): Now always functions,
64200         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64201
64202         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64203         and openat.c.
64204         * lib/mkdirat.c: Include openat-priv.h.
64205         Remove definitions of macros defined therein.
64206         * lib/openat.c: Likewise.
64207
64208         * lib/mkdirat.c (mkdirat): New file and function.
64209         * lib/openat.h (mkdirat): Declare.
64210
64211         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64212
64213         * lib/openat.h (openat_permissive): Declare.
64214         (openat_ro): Define.
64215
64216         * lib/openat.c (EXPECTED_ERRNO): New macro.
64217         (openat_permissive): New function -- used in remove.c rewrite.
64218         (all functions): Set errno just before returning, only if there
64219         was an actual failure.
64220         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64221
64222         Emulate openat-family functions using Linux's procfs, if possible.
64223         Idea and some code based on Ulrich Drepper's glibc changes.
64224
64225         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64226         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64227         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64228         before falling back on save_cwd and restore_cwd.
64229         (fdopendir, fstatat, unlinkat): Likewise.
64230
64231         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64232         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64233
64234         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64235         as second argument to va_arg.  Otherwise, some versions of gcc
64236         warn that `if this code is reached, the program will abort'.
64237
64238 2006-01-09  Jim Meyering  <jim@meyering.net>
64239
64240         Sync from coreutils.
64241         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64242         Require openat-priv.h.
64243
64244 2006-01-09  Bruno Haible  <bruno@clisp.org>
64245
64246         * modules/strnlen (Include): Use strnlen.h.
64247
64248 2006-01-09  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64251
64252 2006-01-09  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/sysexit_.h (EX_OK): New macro.
64255         Suggested by Martin Lambers <marlam@marlam.de>.
64256
64257 2006-01-09  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64260         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64261
64262 2006-01-09  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64265         numbers.
64266
64267 2006-01-09  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64270         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64271         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64272         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64273
64274 2006-01-09  Bruno Haible  <bruno@clisp.org>
64275
64276         * build-aux/javacomp.sh.in: New file, moved from lib/.
64277         * modules/javacomp-script (Files): Update.
64278         (configure.ac): Add AC_CONFIG_FILES invocation.
64279         (EXTRA_DIST): Remove variable.
64280
64281         * build-aux/javaexec.sh.in: New file, moved from lib/.
64282         * modules/javaexec (Files): Update.
64283         (configure.ac): Add AC_CONFIG_FILES invocation.
64284         (EXTRA_DIST): Remove javaexec.sh.in.
64285
64286         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64287         * modules/csharpcomp-script (Files): Update.
64288         (configure.ac): Add AC_CONFIG_FILES invocation.
64289         (EXTRA_DIST): Remove variable.
64290
64291         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64292         * modules/csharpexec (Files): Update.
64293         (configure.ac): Add AC_CONFIG_FILES invocation.
64294         (EXTRA_DIST): Remove csharpexec.sh.in.
64295
64296 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64297
64298         Sync from coreutils.
64299
64300         Add POSIX ACL support
64301         * lib/acl.h (copy_acl, set_acl): Add declarations.
64302         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64303         systems other than Linux.
64304         (chmod_or_fchmod): New function: use fchmod when possible,
64305         and chmod otherwise.
64306         (file_has_acl): Add a POSIX ACL implementation, with a
64307         Linux-specific subcase.
64308         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64309         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64310         acls are unsupported.
64311         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64312         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64313         are unsupported.
64314
64315 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64316
64317         Sync from coreutils.
64318         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64319
64320 2006-01-07  Bruno Haible  <bruno@clisp.org>
64321
64322         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64323         gl_EARLY.
64324
64325 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64328         Problem reported for Mingw by Mark Junker.
64329
64330 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * README: Gnulib normally doesn't generate a tarball.
64333
64334 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64335
64336         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64337         long int, not int, for nanosecond counts, so that people who are
64338         used to POSIX struct timespec won't be surprised.  Reported by Jim
64339         Meyering.
64340
64341 2005-12-28  Bruno Haible  <bruno@clisp.org>
64342
64343         * build-aux/config.rpath: Update from GNU gettext.
64344
64345 2005-12-16  Jim Meyering  <jim@meyering.net>
64346
64347         * modules/fprintftime: New module.
64348         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64349
64350 2005-12-16  Jim Meyering  <jim@meyering.net>
64351
64352         * m4/fprintftime.m4: New file.
64353
64354 2005-12-16  Jim Meyering  <jim@meyering.net>
64355
64356         * lib/fprintftime.c, lib/fprintftime.h: New files.
64357
64358 2005-12-15  Simon Josefsson  <jas@extundo.com>
64359
64360         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64361         new m4/socklen.m4.
64362
64363 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64364
64365         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64366         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64367
64368 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64369
64370         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64371         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64372         struct uparams is valid. Fall back to the default values if it is
64373         not.
64374
64375 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64376
64377         * modules/argp (Files): Add argp-pin.c
64378         (Depends-on): dirname
64379         (lib_SOURCES): Add argp-pin.c
64380
64381 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64382
64383         * m4/argp.m4:  Check if program_invocation_name and
64384         program_invocation_short_name are declared and define appropriate
64385         macros if they are not.
64386
64387 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64388
64389         * lib/argp-help.c (__argp_base_name): New function
64390         (__argp_short_program_name): Rewrite using __argp_base_name
64391         * lib/argp-namefrob.h: Define program_invocation_name and
64392         program_invocation_short_name if requested
64393         (__argp_base_name): Add prototype
64394         * lib/argp-parse.c (argp_def): Use gettext wrappers
64395         (argp_default_parser): Use __argp_base_name
64396         * lib/argp-pin.c: New file. Defines program_invocation_name and
64397         program_invocation_short_name on systems that lack them.
64398
64399 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64402         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64403         porting problem reported by Georg Schwarz in
64404         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64405
64406 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64407
64408         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64409         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64410         porting problem reported by Georg Schwarz in
64411         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64412
64413 2005-12-05  Bruno Haible  <bruno@clisp.org>
64414
64415         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64416         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64417         Reported by Mark Junker <mjscod@gmx.de>.
64418
64419 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64422         Use implementation from Albert Chin, with some
64423         comments/corrections by Stepan Kasal and myself.
64424
64425 2005-12-02  Bruno Haible  <bruno@clisp.org>
64426
64427         * gnulib-tool (func_import): Accept GPLed build tool modules when
64428         --lgpl is given.
64429         * modules/csharpcomp-script: New file.
64430         * modules/csharpcomp: Depend on it.
64431         * modules/javacomp-script: New file.
64432         * modules/javacomp: Depend on it.
64433         Suggested by Simon Josefsson.
64434
64435 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64438         statement, to work around an HP-UX 10.20 compiler bug reported by
64439         Peter O'Gorman.
64440
64441 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * modules/savedir (Depends-on): Add openat.
64444
64445 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64446
64447         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64448         (uintmax_t) [defined uintmax_t]: Do not declare.
64449         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64450         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64451         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64452         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64453         sake of portability to weird hosts that C allows (though we don't
64454         know of any practical examples).
64455
64456         * lib/savedir.h (fdsavedir): New decl.
64457         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64458         contains most of the former guts of savedir.
64459         (savedir): Use savedirstream.
64460         Include "openat.h".
64461
64462 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * modules/obstack (Files): Add m4/ulonglong.m4.
64465         Problem reported by Davide Angelocola.
64466
64467 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64470         coreutils no longer futzes with rounding modes.
64471
64472 2005-11-14  Jim Meyering  <jim@meyering.net>
64473
64474         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64475         replacement of mkstemp.
64476
64477 2005-11-10  Simon Josefsson  <jas@extundo.com>
64478
64479         * lib/readline.c: Remove EOL.
64480
64481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         * modules/gethrxtime (Depends-on): Add gettime.
64484
64485 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64488         or gettimeofday; no longer needed.
64489
64490 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64493         time business.
64494         (gethrxtime) [! (HAVE_NANOUPTIME
64495         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64496         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64497         our own approximation.
64498
64499 2005-11-08  Eric Blake  <ebb9@byu.net>
64500
64501         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64502
64503 2005-11-08  Eric Blake  <ebb9@byu.net>
64504
64505         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64506
64507 2005-11-04  Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool: Implement --update mode.
64510
64511 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         Fix porting problem reported by Theodoros V. Kalamatianos.
64514         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64515         Don't assume that futimes failing means we must fail.
64516
64517 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64520         variables to suggest the intended function of the PATH_MAX check.
64521
64522 2005-10-30  Kean Johnston  <jkj@sco.com>
64523
64524         Trivial changes to support SCO systems.
64525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64526         as PATH_MAX.
64527         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64528         where __ptr is null when no I/O is pending.
64529
64530 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64531
64532         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64533         leave errno alone.  Problem reported by Dmitry V. Levin.
64534
64535 2005-10-28  Simon Josefsson  <jas@extundo.com>
64536
64537         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64538         Test more.
64539
64540         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64541
64542         * modules/md2, modules/md2-tests: New files.
64543
64544 2005-10-28  Simon Josefsson  <jas@extundo.com>
64545
64546         * m4/inet_ntop.m4: More tests.
64547
64548         * m4/gc-md2.m4, md2.m4: New file.
64549
64550 2005-10-28  Simon Josefsson  <jas@extundo.com>
64551
64552         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64553         "restrict" keywords, as per POSIX.  Protect the function
64554         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64555         Don't use K&R prototypes.  Check the sprintf return values.
64556         Re-define EAFNOSUPPORT if not present.  Indent.
64557
64558         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64559         suggested by Bruno Haible <bruno@clisp.org>.
64560
64561         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64562
64563         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64564
64565         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64566         libgcrypt).
64567
64568         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64569
64570         * lib/md2.h, lib/md2.c: New files.
64571
64572 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64575         errno alone.  Problem reported by Frederic Jolliton.
64576
64577 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * modules/verify (License): Change from GPL to LGPL.  This is a
64580         tiny module and there are apparently near-equivalents that are
64581         under the BSD license.
64582
64583 2005-10-24  Simon Josefsson  <jas@extundo.com>
64584
64585         * modules/sha1: Relicense to LGPL.
64586
64587 2005-10-24  Simon Josefsson  <jas@extundo.com>
64588
64589         * lib/md4.h: Shrink buffer size, now that we changed the type.
64590
64591 2005-10-23  Simon Josefsson  <jas@extundo.com>
64592
64593         * gnulib-tool (func_import): Fix --tests-base.
64594
64595 2005-10-22  Simon Josefsson  <jas@extundo.com>
64596
64597         * modules/arcfour (Depends-on): Need stdint.
64598
64599 2005-10-22  Simon Josefsson  <jas@extundo.com>
64600
64601         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64602         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64603
64604 2005-10-22  Simon Josefsson  <jas@extundo.com>
64605
64606         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64607         suggested by Bruno Haible <bruno@clisp.org>.
64608
64609 2005-10-22  Simon Josefsson  <jas@extundo.com>
64610
64611         * lib/crc.h: Include stddef.h, for size_t.
64612
64613 2005-10-22  Simon Josefsson  <jas@extundo.com>
64614
64615         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64616         arcfour_context struct (simplify test vector testing in GNU
64617         Shishi).
64618
64619 2005-10-21  Simon Josefsson  <jas@extundo.com>
64620
64621         * modules/des, modules/des-tests: New files.
64622
64623         * modules/gc-des, modules/gc-des-tests: New files.
64624
64625         * tests/test-des.c, tests/test-gc-des.c: New file.
64626
64627 2005-10-21  Simon Josefsson  <jas@extundo.com>
64628
64629         * modules/arctwo, modules/arctwo-tests: New files.
64630
64631         * tests/test-arctwo.c: New file.
64632
64633         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64634
64635         * tests/test-gc-arctwo.c: New file.
64636
64637 2005-10-21  Simon Josefsson  <jas@extundo.com>
64638
64639         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64640         Bruno Haible <bruno@clisp.org>.
64641
64642         * m4/gc-des.m4: New file.
64643
64644 2005-10-21  Simon Josefsson  <jas@extundo.com>
64645
64646         * m4/arctwo.m4: New file.
64647
64648         * m4/gc-arctwo.m4: New file.
64649
64650 2005-10-21  Simon Josefsson  <jas@extundo.com>
64651
64652         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64653         block.
64654
64655 2005-10-21  Simon Josefsson  <jas@extundo.com>
64656
64657         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64658         <bruno@clisp.org>.
64659
64660         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64661
64662         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64663         Bruno Haible <bruno@clisp.org>.
64664
64665         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64666         <bruno@clisp.org>.
64667
64668 2005-10-21  Simon Josefsson  <jas@extundo.com>
64669
64670         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64671
64672 2005-10-21  Simon Josefsson  <jas@extundo.com>
64673
64674         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64675
64676 2005-10-21  Simon Josefsson  <jas@extundo.com>
64677
64678         * lib/des.h, lib/des.c: New files.
64679
64680         * lib/gc-gnulib.c: Support DES.c
64681
64682 2005-10-21  Simon Josefsson  <jas@extundo.com>
64683
64684         * lib/arctwo.h, lib/arctwo.c: New files.
64685
64686         * lib/gc-gnulib.c: Support ARCTWO.
64687
64688 2005-10-21  Simon Josefsson  <jas@extundo.com>
64689
64690         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64691         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64692
64693 2005-10-21  Simon Josefsson  <jas@extundo.com>
64694
64695         * gnulib-tool (func_import, func_create_testdir): Define automake
64696         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64697         Makefile.am snippet),
64698         suggested by Bruno Haible <bruno@clisp.org>.
64699
64700         * modules/gc (Makefile.am): Use it.
64701
64702 2005-10-21  Bruno Haible  <bruno@clisp.org>
64703
64704         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64705         patch.
64706
64707 2005-10-19  Simon Josefsson  <jas@extundo.com>
64708
64709         * tests/test-gc-rijndael.c: New file.
64710
64711         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64712
64713 2005-10-19  Simon Josefsson  <jas@extundo.com>
64714
64715         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64716         interface too.
64717
64718 2005-10-19  Simon Josefsson  <jas@extundo.com>
64719
64720         * tests/test-gc-arcfour.c: New file.
64721
64722         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64723
64724 2005-10-19  Simon Josefsson  <jas@extundo.com>
64725
64726         * modules/gc-md4, modules/gc-md4-tests: New file.
64727
64728         * tests/test-gc-md4.c: New file.
64729
64730 2005-10-19  Simon Josefsson  <jas@extundo.com>
64731
64732         * m4/gc-md4.m4: New file.
64733
64734 2005-10-19  Simon Josefsson  <jas@extundo.com>
64735
64736         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64737         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64738         <kasal@ucw.cz>.
64739
64740 2005-10-19  Simon Josefsson  <jas@extundo.com>
64741
64742         * m4/gc-arcfour.m4: New file.
64743
64744         * m4/gc-rijndael.m4: New file.
64745
64746 2005-10-19  Simon Josefsson  <jas@extundo.com>
64747
64748         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64749
64750 2005-10-19  Simon Josefsson  <jas@extundo.com>
64751
64752         * lib/gc-gnulib.c: Support ARCFOUR.
64753
64754 2005-10-19  Simon Josefsson  <jas@extundo.com>
64755
64756         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64757         support.
64758
64759         * lib/gc.h: Add ECB enum type.
64760
64761         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64762
64763 2005-10-18  Simon Josefsson  <jas@extundo.com>
64764
64765         * tests/test-md5.c: New file.
64766
64767         * modules/md5-tests: New file.
64768
64769 2005-10-18  Simon Josefsson  <jas@extundo.com>
64770
64771         * tests/test-md4.c: New file.
64772
64773         * modules/md4, modules/md4-tests: New files.
64774
64775 2005-10-18  Simon Josefsson  <jas@extundo.com>
64776
64777         * m4/md4.m4: New file.
64778
64779 2005-10-18  Simon Josefsson  <jas@extundo.com>
64780
64781         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64782
64783 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64784
64785         * gnulib-tool (func_create_testdir): Omit the second check whether
64786         BUILT_SOURCES in nonempty.
64787
64788 2005-10-17  Simon Josefsson  <jas@extundo.com>
64789
64790         * tests/test-rijndael.c: New file.
64791
64792 2005-10-17  Simon Josefsson  <jas@extundo.com>
64793
64794         * modules/sha1: Depend on stdint instead of md5.
64795
64796         * modules/md5: Depend on stdint, remove uint32_t.
64797
64798 2005-10-17  Simon Josefsson  <jas@extundo.com>
64799
64800         * modules/gc-sha1-tests: New file.
64801
64802         * tests/test-gc-sha1.c: New file.
64803
64804 2005-10-17  Simon Josefsson  <jas@extundo.com>
64805
64806         * m4/md5.m4: Remove call to uint32_t.m4.
64807
64808 2005-10-17  Simon Josefsson  <jas@extundo.com>
64809
64810         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64811
64812         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64813         md5.h.
64814
64815         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64816
64817         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64818
64819 2005-10-17  Simon Josefsson  <jas@extundo.com>
64820
64821         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64822
64823 2005-10-17  Simon Josefsson  <jas@extundo.com>
64824
64825         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64826
64827 2005-10-17  Simon Josefsson  <jas@extundo.com>
64828
64829         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64830
64831         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64832
64833 2005-10-17  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64836         that it can also be used in a test.
64837
64838 2005-10-16  Bruno Haible  <bruno@clisp.org>
64839
64840         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64841         TESTS_ENVIRONMENT, so that individual tests can augment it.
64842
64843         * gnulib-tool (func_create_testdir): Use an intermediate target for
64844         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64845         macros, like $(ALLOCA_H), which cannot be passed through the command
64846         line.
64847
64848 2005-10-15  Simon Josefsson  <jas@extundo.com>
64849
64850         * modules/rijndael-tests: New file.
64851
64852         * modules/rijndael: New file.
64853
64854 2005-10-15  Simon Josefsson  <jas@extundo.com>
64855
64856         * m4/rijndael.m4: New file.
64857
64858 2005-10-15  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64861
64862         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64863
64864 2005-10-14  Simon Josefsson  <jas@extundo.com>
64865
64866         * tests/test-arcfour.c: New file.
64867
64868         * modules/arcfour, modules/arcfour-tests: New files.
64869
64870 2005-10-14  Simon Josefsson  <jas@extundo.com>
64871
64872         * m4/arcfour.m4: New file.
64873
64874 2005-10-14  Simon Josefsson  <jas@extundo.com>
64875
64876         * lib/arcfour.h, lib/arcfour.c: New files.
64877
64878 2005-10-14  Roland McGrath  <roland@redhat.com>
64879
64880         Import from libc.  [BZ #1331]
64881         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64882         macro argument.
64883         Reported by Matej Vela <vela@debian.org>.
64884
64885 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64888         include <wchar.h>; no longer needed.
64889
64890 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64893
64894 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64895         and  Ulrich Drepper  <drepper@redhat.com>
64896
64897         Import from libc.
64898         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64899         instead of inline stream orientation test and two separate
64900         function calls.  Pay no attention to USE_IN_LIBIO.
64901
64902 2005-10-13  Simon Josefsson  <jas@extundo.com>
64903
64904         * modules/gc-hmac-md5-tests: New file.
64905
64906         * tests/test-gc-hmac-sha1.c: New file.
64907
64908         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64909
64910         * modules/gc-hmac-md5-tests: New file.
64911
64912         * tests/test-gc-md5.c: New file.
64913
64914         * modules/gc-md5-tests: New file.
64915
64916 2005-10-13  Simon Josefsson  <jas@extundo.com>
64917
64918         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64919         Move memory allocation outside of loop.
64920
64921 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64922
64923         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64924         intermediate directory is in a read-only file system.  Problem
64925         reported by Eric Blake.
64926
64927 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64928
64929         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64930
64931 2005-10-12  Simon Josefsson  <jas@extundo.com>
64932
64933         * tests/test-hmac-sha1.c: New file.
64934
64935         * modules/hmac-sha1-tests: New file.
64936
64937         * modules/hmac-sha1: New file.
64938
64939 2005-10-12  Simon Josefsson  <jas@extundo.com>
64940
64941         * modules/gc-sha1: New file.
64942
64943 2005-10-12  Simon Josefsson  <jas@extundo.com>
64944
64945         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64946
64947         * tests/test-gc-pbkdf2-sha1.c: New file.
64948
64949 2005-10-12  Simon Josefsson  <jas@extundo.com>
64950
64951         * modules/gc-md5, modules/gc-hmac-md5: New files.
64952
64953         * modules/gc (Files): Remove md5, memxor and hmac files.
64954
64955 2005-10-12  Simon Josefsson  <jas@extundo.com>
64956
64957         * m4/gc-pbkdf2-sha1.m4: New file.
64958
64959         * m4/gc-hmac-sha1.m4: New file.
64960
64961         * m4/gc-sha1: New file.
64962
64963         * m4/hmac-sha1.m4: New file.
64964
64965 2005-10-12  Simon Josefsson  <jas@extundo.com>
64966
64967         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64968
64969         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64970
64971 2005-10-12  Simon Josefsson  <jas@extundo.com>
64972
64973         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64974         suggested by Bruno Haible <bruno@clisp.org>.
64975
64976 2005-10-12  Simon Josefsson  <jas@extundo.com>
64977
64978         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64979
64980 2005-10-12  Simon Josefsson  <jas@extundo.com>
64981
64982         * lib/gc-pbkdf2-sha1.c: New file.
64983
64984         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64985
64986 2005-10-12  Simon Josefsson  <jas@extundo.com>
64987
64988         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64989
64990         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64991
64992 2005-10-12  Simon Josefsson  <jas@extundo.com>
64993
64994         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64995         GC_USE_HMAC_MD5, respectively.
64996
64997         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64998         (gc_md5): Fix typo.
64999
65000         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65001
65002         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65003
65004         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65005
65006 2005-10-12  Bruno Haible  <bruno@clisp.org>
65007
65008         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65009         Reported by Stepan Kasal <kasal@ucw.cz>.
65010
65011 2005-10-11  Simon Josefsson  <jas@extundo.com>
65012
65013         * tests/test-crc.c: New file.
65014
65015         * modules/crc, modules/crc-tests: New files.
65016
65017 2005-10-11  Simon Josefsson  <jas@extundo.com>
65018
65019         * m4/crc.m4: New file.
65020
65021 2005-10-11  Simon Josefsson  <jas@extundo.com>
65022
65023         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65024
65025         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65026
65027         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65028
65029 2005-10-11  Simon Josefsson  <jas@extundo.com>
65030
65031         * lib/crc.h, lib/crc.c: New files.
65032
65033         * lib/gc.h (gc_hash_buffer): Add doc.
65034
65035 2005-10-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * modules/c-strcasestr: New file.
65038         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65039
65040 2005-10-11  Bruno Haible  <bruno@clisp.org>
65041
65042         * modules/c-strcase: New file.
65043         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65044
65045 2005-10-11  Bruno Haible  <bruno@clisp.org>
65046
65047         * lib/strcasecmp.c: Include limits.h.
65048         (strcasecmp): Avoid integer overflow on exotic platforms.
65049         * lib/strncasecmp.c: Include limits.h.
65050         (strncasecmp): Avoid integer overflow on exotic platforms.
65051         Reported by Paul Eggert.
65052
65053 2005-10-11  Bruno Haible  <bruno@clisp.org>
65054
65055         * lib/c-strcasestr.h: New file, from GNU gettext.
65056         * lib/c-strcasestr.c: New file, from GNU gettext.
65057
65058 2005-10-11  Bruno Haible  <bruno@clisp.org>
65059
65060         * lib/c-strcase.h: New file, from GNU gettext.
65061         * lib/c-strcasecmp.c: New file, from GNU gettext.
65062         * lib/c-strncasecmp.c: New file, from GNU gettext.
65063
65064 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * modules/mempcpy (License): GPL -> LGPL.
65067         * modules/strchrnul (License): Likewise.
65068         * modules/sysexits (License): Likewise.
65069
65070 2005-10-08  Simon Josefsson  <jas@extundo.com>
65071
65072         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65073
65074 2005-10-07  Simon Josefsson  <jas@extundo.com>
65075
65076         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65077
65078 2005-10-06  Simon Josefsson  <jas@extundo.com>
65079
65080         * tests/test-hmac-md5.c: New file.
65081
65082         * modules/hmac-md5-tests: New file.
65083
65084         * modules/hmac-md5: New file.
65085
65086 2005-10-06  Simon Josefsson  <jas@extundo.com>
65087
65088         * m4/hmac-md5.m4: New file.
65089
65090         * m4/memxor.m4: Require gl_C_RESTRICT.
65091
65092 2005-10-06  Simon Josefsson  <jas@extundo.com>
65093
65094         * lib/memxor.c (memxor): Avoid casts and warnings.
65095
65096 2005-10-06  Simon Josefsson  <jas@extundo.com>
65097
65098         * lib/hmac-md5.c: New file.
65099
65100         * lib/hmac.h: New file.
65101
65102 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65105         promotes to int, not unsigned int, to catch the AIX 5.3
65106         compiler bug.
65107
65108 2005-10-05  Simon Josefsson  <jas@extundo.com>
65109
65110         * modules/memxor: New file.
65111
65112         * modules/iconv (Files): Move config.rpath to havelib, it is used
65113         there.
65114
65115         * modules/havelib (Files): Add config.rpath.
65116
65117 2005-10-05  Simon Josefsson  <jas@extundo.com>
65118
65119         * m4/memxor.m4: New file.
65120
65121 2005-10-05  Simon Josefsson  <jas@extundo.com>
65122
65123         * lib/memxor.c (memxor): Fix compiler error.
65124
65125         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65126         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65127
65128         * lib/memxor.h, lib/memxor.c: New files.
65129
65130         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65131         we assume all systems have it, suggested by Jim Meyering
65132         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65133         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65134         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65135         same reasons.
65136
65137 2005-10-05  Simon Josefsson  <jas@extundo.com>
65138
65139         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65140
65141 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65144         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65145         needed, since the source code now assumes these .h files.
65146
65147 2005-10-05  Derek Price  <derek@ximbiot.com>
65148
65149         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65150
65151 2005-10-05  Bruno Haible  <bruno@clisp.org>
65152
65153         * modules/stdint (License): Change to LGPL.
65154
65155 2005-10-04  Simon Josefsson  <jas@extundo.com>
65156
65157         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65158         D. Baushke" <mdb@gnu.org>.
65159
65160 2005-10-04  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/verify.h (verify_true): Provide alternative definition for C++.
65163
65164 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65167         (SSIZE_MAX): New macro, if not already defined.
65168         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65169         than 2 GiB.
65170
65171 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         Sync from coreutils.
65174         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65175         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65176         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65177         ULLONG_MAX doesn't work with 2.7.2.1.
65178
65179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65182         From Ben Pfaff.
65183
65184         * modules/exclude (Depends-on): Depend on verify.
65185         * modules/strtoimax (Depends-on): Likewise.
65186         * modules/utimecmp (Depends-on): Likewise.
65187
65188 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/exclude.c: Include verify.h.
65191         (verify): Remove.  All callers changed to use verify.h's version.
65192         * lib/strtoimax.c: Likewise.
65193         * lib/utimecmp.c: Likewis.e
65194
65195         Sync from coreutils.
65196         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65197         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65198         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65199         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65200         bother returning ENOSYS if settimeofday or stime fails; just let
65201         them return whatever errno they want to return.
65202         * lib/utimens.c: Include unistd.h, for dup2.
65203         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65204         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65205
65206 2005-10-02  Jim Meyering  <jim@meyering.net>
65207
65208         Sync from coreutils.
65209         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65210         from glibc-2.2.5 that fails for read-only files.
65211
65212 2005-10-02  Jim Meyering  <jim@meyering.net>
65213
65214         Sync from coreutils.
65215         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65216         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65217         `#if HAVE_CONFIG_H'.
65218         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65219         Remove AT_FDCWD test.
65220         Do not consume the fd unless successful.
65221         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65222         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65223         block, so that we don't even try to compile it if settimeofday is
65224         available.  This works around a compilation failure on OSF1 V5.1,
65225         due to stime requiring a `long int*' while tv_sec is `int'.
65226
65227 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65228
65229         Sync from coreutils.
65230         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65231         against `yes', rather than just testing for nonempty.
65232
65233 2005-10-01  Simon Josefsson  <jas@extundo.com>
65234
65235         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65236         and Darwin.
65237
65238         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65239         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65240         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65241         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65242         Check if struct addrinfo is declared.
65243
65244 2005-10-01  Simon Josefsson  <jas@extundo.com>
65245
65246         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65247         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65248         AI_* and EAI_* definitions.  Protect function declarations.
65249
65250 2005-10-01  Jim Meyering  <jim@meyering.net>
65251
65252         Sync from coreutils.
65253
65254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65255         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65256         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65257         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65258         in the inet and nsl libraries.  Required on Solaris 5.7.
65259
65260 2005-10-01  Jim Meyering  <jim@meyering.net>
65261
65262         Sync from coreutils.
65263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65264         in the inet and nsl libraries.  Required on Solaris 5.7.
65265
65266 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65267
65268         * lib/getdelim.c (getdelim): Remove unused variables.
65269
65270 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65271
65272         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65273         so that the code works even with ancient cpp.  Portability problem
65274         with GCC 2.7.2.1 reported by Thomas M.Ott.
65275
65276 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * modules/regex (Depends-on): Add strcase.
65279
65280         * modules/gethostname (Licence): Change from GPL to LGPL, since
65281         gethostname.c is a trivial implementation of a standard library
65282         function.
65283         * modules/poll (License): Change from GPL to LGPL, since it's
65284         derived from LGPL code.
65285
65286 2005-09-27  Jim Meyering  <jim@meyering.net>
65287
65288         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65289         HAVE_CONFIG_H.
65290
65291         * lib/intprops.h (signed_type_or_expr__): Define.
65292         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65293         for unsigned types.
65294
65295 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * lib/verify.h (verify_expr): Remove, replacing with:
65298         (verify_true): New macro that returns true instead of void.
65299         (verify_type__): Remove.
65300         (verify): Use verify_true rather than verify_type__.
65301
65302 2005-09-26  Bruno Haible  <bruno@clisp.org>
65303
65304         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65305         is necessary.
65306         (lib_SOURCES): Remove mbchar.c.
65307         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65308         (Files): Add m4/mbrtowc.m4.
65309         * modules/mbiter: Likewise.
65310         * modules/mbuiter: Likewise.
65311
65312 2005-09-26  Bruno Haible  <bruno@clisp.org>
65313
65314         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65315         compile mbchar.c if they are not both present.
65316         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65317         * m4/mbiter.m4 (gl_MBITER): Likewise.
65318         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65319         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65320         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65321
65322 2005-09-25  Jim Meyering  <jim@meyering.net>
65323
65324         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65325         also uses socklen_t.
65326
65327 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65328
65329         * lib/utimens.c (ENOSYS): Define if not already defined.
65330         (futimens): Support having a null PATH if the file descriptor
65331         is nonnegative.
65332
65333         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65334         Remove.
65335         (__attribute): Define to empty unless GCC 3.1 or later.
65336         This works around a core dump on OpenBSD 3.4, which has GCC
65337         2.95.3, which dumps core when given __attribute__(()).  It also
65338         simplifies other tests, since we really don't want to bother with
65339         worrying about which ancient version of GCC supported what.
65340         Original problem reported by Yoann Vandoorselaere, with part of
65341         the fix suggested by Derek Price.
65342
65343 2005-09-24  Jim Meyering  <jim@meyering.net>
65344
65345         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65346         so we can once again use a positive bitfield width of 1 -- now we
65347         don't have to explain why we were using a bitfield width of 2.
65348
65349 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65352         and similarly for the other external symbols.  Problem reported
65353         by James Gallager.
65354
65355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65356         bug reported by Jim Meyering.
65357
65358         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65360         not needed, since socklen is a prerequisite module.
65361
65362 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65365         Problem reported by Eric Blake.
65366         (getaddrinfo): Initialize se so that it's not garbage.
65367         Redo internal storage allocation so that it doesn't make unportable
65368         assumptions about alignment.
65369         Fix a memory leak.
65370
65371         * lib/utimens.c (futimens): Use futimesat if available.
65372         Prefer it to futimes since it doesn't have the futimes bug.
65373
65374         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65375         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65376         Instead, declare a function that returns a pointer to an array,
65377         and use verify_type__ to declare the size of the array.
65378         Problem and germ of a solution reported by Bruno Haible.
65379         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65380         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65381
65382 2005-09-23  Jim Meyering  <jim@meyering.net>
65383
65384         Sync from coreutils.
65385         Correct build failure (socklen_t not defined) on at least
65386         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65388
65389 2005-09-23  Jim Meyering  <jim@meyering.net>
65390
65391         * modules/getaddrinfo (Depends-on): Add socklen.
65392
65393 2005-09-23  Bruno Haible  <bruno@clisp.org>
65394
65395         * tests/test-verify.c: New file.
65396
65397 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         Sync from coreutils.
65400
65401         * modules/argmatch (Depends-on): Add verify.
65402         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65403         unistd-safer.
65404         * modules/save-cwd (Depends-on): Likewise.
65405
65406         * modules/openat (Files): Add lib/openat-die.c.
65407         (Depends-on): Remove error, exitfail.
65408         Add dirname.
65409
65410         * modules/verify: New file.
65411         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65412         with "verify" module.
65413
65414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         Sync from coreutils.
65417
65418         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65419         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65420         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65421         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65422         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65423         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65424         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65425         Don't bother checking for string.h, stdlib.h, unistd.h.
65426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65427         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65428         module's job.
65429         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65430         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65431
65432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65433         (gl_GETDATE): Use it.
65434
65435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65436
65437 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         Sync from coreutils.
65440
65441         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65442         stat-time.h.
65443         * lib/argmatch.h: Include verify.h
65444         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65445         (ARGMATCH_ASSERT): Remove; unused.
65446         * lib/canonicalize.c: Assume STDC_HEADERS.
65447         * lib/exclude.c: Include "strcase.h".
65448         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65449         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65450         and stdio-safer.h.
65451         (getusershell): Call fopen, not fopen_safer.
65452         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65453         Do not include unistd-safer.h.
65454         (save_cwd): Don't call fd_safer; no longer needed
65455         now that we include fcntl--.h.
65456
65457         * lib/getdate.y (relative_time): New type.
65458         (RELATIVE_TIME_0): New constant.
65459         (parser_control): Use relative_time instead of doing it ourselves.
65460         (%union): Add new relative_time rel member.
65461         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65462         Now typeless.
65463         (relunit, relunit_snumber): Now of type rel.
65464         (zone, rel, relunit, get_date): Adjust to above changes.
65465
65466         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65467         Do not include unistd-safer.h.
65468         (getloadavg): Don't call fd_safer; no longer needed
65469         now that we include fcntl--.h.
65470
65471         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65472         (make_dir_parents): Treat ENOSYS like EEXIST.
65473
65474         Improve quality of diagnostics on restore_cwd failure.
65475         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65476         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65477         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65478         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65479         each time through the loop.  Do not diagnose restore_cwd failure;
65480         that is the caller's job (and perhaps the caller does not care).
65481
65482         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65483         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65484         If the file already exists but is not a directory, don't bother
65485         to try to make its parents.
65486         Close potential file descriptor leak if we can't chdir("/") (!).
65487         Don't always return true if chdir($PWD) fails; return true only
65488         if the requested action was done successfully (except for the
65489         chdir($PWD)).
65490         Don't log final directory unless we actually made it.
65491         Refactor to avoid duplicate code to fix up permissions.
65492         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65493
65494         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65495         to make it a bit faster and (I hope) clearer.
65496         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65497         Fix bug in formats like %2N.
65498
65499         * lib/verify.h: New file.
65500
65501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65502
65503         Sync from coreutils.
65504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65505
65506 2005-09-22  Jim Meyering  <jim@meyering.net>
65507
65508         Sync from coreutils.
65509
65510         * m4/lstat.m4 (gl_FUNC_LSTAT):
65511         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65512         Remove obsolete comment.
65513         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65514         * m4/xstrtod.m4: Likewise.
65515
65516         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65517
65518 2005-09-22  Jim Meyering  <jim@meyering.net>
65519
65520         Sync from coreutils.
65521
65522         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65523
65524         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65525         the .tm_year member, since otherwise gcc-4.0 would now warn about
65526         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65527
65528         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65529         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65530
65531         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65532         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65533         when run in a time zone for which daylight savings time is in effect
65534         for the starting date.
65535
65536         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65537         stop us from restricting permissions of just-created absolute-named
65538         directories.
65539         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65540         to restore initial working directory.
65541         * lib/mkdir-p.c (make_dir_parents): New parameter:
65542         different_working_dir, to tell caller if/when we change the working
65543         directory and are unable to return to the initial one.
65544         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65545         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65546         `return false'.  This fixes a bug introduced on 2004-07-30.
65547
65548         * lib/openat.c (fdopendir): Be sure to close the supplied
65549         file descriptor before returning.  This makes our replacement
65550         implementation a little closer to Solaris's, where fdopendir
65551         ties the file descriptor to the returned DIR* pointer.
65552         * lib/openat.c (unlinkat): New function.
65553         * lib/openat.h (unlinkat): Add prototype.
65554         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65555         (openat_restore_fail): Rename from openat_restore_die.
65556         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65557
65558         Provide an alternative to exiting immediately upon save_cwd or
65559         restore_cwd failure.  Now, an application can arrange e.g.,
65560         to perform a longjump in that case.
65561         * lib/openat.c: Include dirname.h.
65562         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65563         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65564         and openat_restore_die rather than calling error directly.
65565         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65566
65567         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65568         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65569         define.
65570
65571         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65572         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65573                             int utc, int nanoseconds);
65574         Background:
65575         date should not have to allocate a megabyte of virtual memory to
65576         handle a format argument like +%1048575T.  When implemented with
65577         strftime, it must allocate such a buffer, use strftime to fill it
65578         in, print it, then free it.
65579         With fprintftime, it simply prints everything and exits.
65580         With no need for memory allocation, that's one fewer way to fail.
65581         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65582         optional field width, not before, so we accept %9:z, not %:9z.
65583         (my_strftime): Be sure to use L_('x') for literals.
65584
65585         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65586         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65587         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65588         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65589         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65590         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65591         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65592         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65593         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65594         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65595         * lib/xgethostname.c, lib/xreadlink.c:
65596         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65597
65598         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65599         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65600         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65601         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65602         and don't include <sys/file.h>).
65603
65604 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65605
65606         Sync from coreutils.
65607
65608         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65609         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65610         [!LDAV_DONE]: Avoid unused variable warning.
65611
65612 2005-09-21  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/unicodeio.h (unicode_to_mb): New declaration.
65615
65616 2005-09-20  Derek Price  <derek@ximbiot.com>
65617
65618         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65619         getaddrinfo.h.
65620
65621 2005-09-20  Bruno Haible  <bruno@clisp.org>
65622
65623         * gnulib-tool: Remove trailing slashes from the values specified for
65624         --source-base, --m4-base, --tests-base, --aux-dir.
65625         Suggested by Simon Josefsson <jas@extundo.com>.
65626
65627 2005-09-20  Bruno Haible  <bruno@clisp.org>
65628
65629         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65630         func_modules_to_filelist, func_import, func_create_testdir): Make all
65631         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65632         change when gnulib-tool is invoked in a different locale.
65633
65634 2005-09-19  Simon Josefsson  <jas@extundo.com>
65635
65636         * m4/socklen.m4: Fix typo.
65637
65638 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65639
65640         Use a consistent style for including <config.h>.
65641         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65642         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65643         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65644         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65645         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65646         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65647         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65648         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65649         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65650         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65651         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65652         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65653         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65654         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65655         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65656         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65657         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65658         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65659         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65660         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65661         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65662         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65663         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65664         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65665         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65666         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65667         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65668         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65669         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65670         lib/xstrtoumax.c, lib/yesno.c:
65671         Standardize inclusion of config.h.
65672         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65673         lib/inttostr.h:  Removed inclusion of config.h from header files.
65674         * lib/inttostr.c:  Adjusted in-tree users.
65675         * lib/timespec.h: Remove superfluous warning to include config.h.
65676         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65677         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65678         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65679         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65680         config.h with HAVE_CONFIG_H.
65681
65682 2005-09-19  Jim Meyering  <jim@meyering.net>
65683
65684         * modules/pathmax (License): Change to LGPL.
65685
65686 2005-09-19  Derek Price  <derek@ximbiot.com>
65687
65688         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65689
65690 2005-09-19  Bruno Haible  <bruno@clisp.org>
65691
65692         * gnulib-tool (import): Provide default for --tests-base.
65693
65694 2005-09-19  Bruno Haible  <bruno@clisp.org>
65695
65696         * doc/quote.texi: New file, extracted from gnulib.texi.
65697         * doc/ctime.texi: New file, extracted from gnulib.texi.
65698         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65699         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65700         * doc/gnulib.texi: Include them.
65701
65702 2005-09-18  Bruno Haible  <bruno@clisp.org>
65703
65704         Portability fix.
65705         * gnulib-tool (func_readlink): New function.
65706         (func_ln_if_changed): Use it.
65707
65708 2005-09-18  Bruno Haible  <bruno@clisp.org>
65709
65710         * gnulib-tool: Support --with-tests also with --import.
65711         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65712         (func_import): Use variables $testsbase and $inctests. Emit a
65713         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65714         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65715         SUBDIRS += $testsdir.
65716         (func_create_testdir): Update.
65717
65718 2005-09-18  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65721         instead of $dry_run.
65722         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65723         (func_ln_if_changed): Don't handle dry-run here.
65724         (func_import): In dry-run mode, detect more precisely which actions
65725         would be performed, and don't use "...ing" verbs.
65726
65727 2005-09-18  Bruno Haible  <bruno@clisp.org>
65728
65729         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65730         (func_import): Use join on two temporary files instead of three nested
65731         loops, in order to determine which files are new or old.
65732
65733 2005-09-18  Bruno Haible  <bruno@clisp.org>
65734
65735         * gnulib-tool (func_import): Comment out code that spits out the
65736         new files with --dry-run.
65737
65738 2005-09-18  Bruno Haible  <bruno@clisp.org>
65739
65740         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65741
65742 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * lib/stat-time.h: New file.
65745         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65746         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65747         in a different way.
65748         (timespec_cmp): New function.
65749         * lib/utimecmp.c: Include stat-time.h.
65750         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65751         members exist, not on the obsolescent ST_MTIM_NSEC.
65752         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65753
65754 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65755
65756         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65757
65758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * MODULES.html.sh (File system functions): Add stat-time.
65761         * modules/stat-time: New file.
65762         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65763         is now done in a different way, by the stat-time module.
65764         * modules/utimecmp (Depends-on): Add stat-time.
65765
65766 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * m4/st_mtim.m4: Remove.  Superseded by...
65769         * m4/stat-time.m4: New file.
65770         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65771         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65772
65773 2005-09-15  Derek Price  <derek@ximbiot.com>
65774
65775         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65776
65777 2005-09-15  Derek Price  <derek@ximbiot.com>
65778
65779         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65780         * lib/regex_internal.c: Ditto, using this...
65781         (__GNUC_PREREQ): ...new macro.
65782         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65783         using...
65784         (__GNUC_PREREQ): ...this new macro.
65785
65786         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65787
65788 2005-09-15  Derek Price  <derek@ximbiot.com>
65789             Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65792         changes, consolidating in...
65793         * lib/regex_internal.h: ...this file.
65794
65795 2005-09-13  Jim Meyering  <jim@meyering.net>
65796
65797         * lib/canon-host.c: Filter through gnu indent and reword comments
65798         slightly.
65799         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65800
65801 2005-09-13  Derek Price  <derek@ximbiot.com>
65802
65803         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65804         failure.
65805         Reported by Jim Meyering  <jim@meyering.net>.
65806
65807 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65808
65809         * lib/base64.c: Typo.
65810         (base64_encode): Put b64str in initialized data section.
65811
65812 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65813
65814         Merge glibc and coreutils changes into gnulib, plus a few
65815         extra fixes.
65816         * lib/md5.c: Use #error rather than a string.
65817         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65818         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65819         (__attribute__): Define to empty for non recent-GCC.
65820         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65821         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65822         Renamed from their non-__ counterparts, with new macros replacing
65823         them if not _LIBC.  Add __THROW attribute.
65824         (rol): Remove.
65825         (struct md5_ctx): Align buffer if using GCC.
65826         * lib/sha1.h (struct sha1_ctx): Likewise.
65827         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65828         The old name was backwards.
65829         (NOTSWAP): Remove; not used.
65830         (rol): New macro, moved here from md5.h.
65831         (sha1_process_block): Remove a FIXME that doesn't make sense.
65832
65833 2005-09-12  Derek Price  <derek@ximbiot.com>
65834
65835         Return usable errors from canon-host.
65836         * lib/canon-host.h: New file.
65837         * lib/canon-host.c (canon_host): Wrap...
65838         (canon_host_r): ...this new function, which now relies exclusively on
65839         getaddrinfo.
65840         (ch_strerror): New function.
65841         (last_cherror): New global.
65842         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65843         interface.
65844         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65845         void *.
65846         (freeaddrinfo): Free ai->ai_canonname when set.
65847
65848 2005-09-12  Derek Price  <derek@ximbiot.com>
65849
65850         Make canon-host require getaddrinfo.
65851         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65852         AC_LIBSOURCE canon-host.h.  Call...
65853         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65854         gl_GETADDRINFO.
65855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65856
65857 2005-09-12  Derek Price  <derek@ximbiot.com>
65858
65859         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65860         LGPL.
65861         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65862
65863 2005-09-12  Derek Price  <derek@ximbiot.com>
65864
65865         * lib/gai_strerror.c: Include config.h when available.  Include
65866         getaddrinfo.h before other headers to test interface.
65867         Reported by Larry Jones <lawrence.jones@ugs.com>.
65868
65869 2005-09-12  Derek Price  <derek@ximbiot.com>
65870             Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * modules/glob (Files): Add glob-libc.h.
65873
65874 2005-09-12  Derek Price  <derek@ximbiot.com>
65875             Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65878         glob_.h, glob-libc.h.
65879         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65880
65881 2005-09-12  Derek Price  <derek@ximbiot.com>
65882             Paul Eggert  <eggert@cs.ucla.edu>
65883
65884         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65885         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65886         protecting things that should be done only in gnulib contexts.
65887         * lib/glob_.h: New file, containing only the glob things needed for
65888         gnulib.
65889         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65890         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65891         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65892         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65893         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65894         and to respect the namespace rules better.
65895
65896 2005-09-08  Simon Josefsson  <jas@extundo.com>
65897
65898         * modules/socklen: New file.
65899
65900 2005-09-08  Simon Josefsson  <jas@extundo.com>
65901
65902         * m4/socklen.m4: New file.
65903
65904 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65905
65906         * modules/utimens (Files): Add m4/utimbuf.m4, since
65907         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65908         Reported by Sergey Poznyakoff.
65909
65910 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65911
65912         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65913         definitions, since that's the preferred style in glibc.
65914         Fix a minor spacing issue, and update copyright notice to match
65915         glibc's.
65916
65917 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65920
65921 2005-09-06  Simon Josefsson  <jas@extundo.com>
65922
65923         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65924         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65925
65926 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65929         warning.
65930
65931 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65932
65933         * config/srclist.txt: Add glibc bug 1302.
65934
65935 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65936
65937         Change bitset word type from unsigned int to unsigned long int,
65938         as this has better performance on typical 64-bit hosts.
65939         Port bitset code to hosts with unusual word sizes.
65940         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65941         (build_collating_symbol):
65942         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65943         argument is a bitset.  This is merely a style issue, but it makes
65944         it clearer that an entire array is expected.
65945         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65946         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65947         Port to the case where bitset_word is not the same as unsigned int.
65948         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65949         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65950         Likewise.
65951         * lib/regexec.c (check_dst_limits_calc_pos_1,
65952         check_subexp_matching_top):
65953         (build_trtable, group_nodes_into_DFAstates):
65954         Likewise.
65955         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65956         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65957         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65958         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65959         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65960         * lib/regcomp.c (optimize_subexps, lower_subexp):
65961         Work even if bitset_word has holes in its bitwise representation.
65962         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65963         * lib/regexec.c (check_dst_limits_calc_pos_1,
65964         check_subexp_matching_top):
65965         Likewise.
65966         * lib/regex_internal.c (re_string_reconstruct):
65967         Don't assume UCHAR_MAX == 255.
65968         * lib/regex_internal.h (bitset_set_all): Likewise.
65969         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65970         All uses changed.
65971         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65972         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65973         All uses changed.
65974         (BITSET_WORD_MAX): New macro.
65975         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65976         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65977         (bitset_empty, bitset_copy):
65978         Prefer sizeof (bitset) to multiplying it out ourselves.
65979         (bitset_not_merge): Remove; unused.
65980         (bitset_contain): Return bool, not unsigned int with one bit on.
65981         All callers changed.
65982         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65983         alignment than re_node_set; do this by defining a new internal
65984         type struct dests_alloc and using it to allocate memory.
65985
65986 2005-09-05  Bruno Haible  <bruno@clisp.org>
65987
65988         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65989         links.
65990
65991 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65992
65993         * modules/size_max (Makefile.am): Add size_max.h
65994
65995 2005-09-04  Derek Price  <derek@ximbiot.com>
65996
65997         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65998
65999 2005-09-03  Simon Josefsson  <jas@extundo.com>
66000
66001         * gnulib-tool: Fix typo.
66002
66003 2005-09-03  Simon Josefsson  <jas@extundo.com>
66004
66005         * config/srclist.txt: Add glibc bug 1293.
66006
66007 2005-09-03  Derek Price  <derek@ximbiot.com>
66008
66009         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66010         From Larry Jones <lawrence.jones@ugs.com>.
66011
66012 2005-09-02  Simon Josefsson  <jas@extundo.com>
66013
66014         * modules/socklen: New file.
66015
66016 2005-09-02  Simon Josefsson  <jas@extundo.com>
66017
66018         * modules/havelib: New module.
66019
66020         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66021         Use havelib.
66022
66023 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         Check for arithmetic overflow when calculating sizes, to prevent
66026         some buffer-overflow issues.  These patches are conservative, in the
66027         sense that when I couldn't determine whether an overflow was possible,
66028         I inserted a run-time check.
66029         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66030         macros.
66031         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66032         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66033         (re_xnrealloc, re_x2nrealloc): New inline functions.
66034         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66035         parse_bracket_exp):
66036         (build_equiv_class, build_charclass): Check for arithmetic overflow
66037         in size expression calculations.
66038         * lib/regex_internal.c (re_string_realloc_buffers):
66039         (build_wcs_upper_buffer, re_node_set_add_intersect):
66040         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66041         (re_dfa_add_node, register_state): Likewise.
66042         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66043         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66044         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66045         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66046
66047 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66050         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66051
66052 2005-09-02  Bruno Haible  <bruno@clisp.org>
66053
66054         Support for lib vs. lib64 distinction on biarch platforms.
66055         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66056         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66058
66059 2005-09-02  Bruno Haible  <bruno@clisp.org>
66060
66061         * gnulib-tool (import): In the other first-use case, provide defaults
66062         as well.
66063
66064 2005-09-02  Bruno Haible  <bruno@clisp.org>
66065
66066         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66067         patches not yet found in the latest gettext release.
66068
66069 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66070
66071         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66072         to avoid a collision with bits/local_lim.h in glibc.
66073         All uses changed.  Problem reported by Dmitry V. Levin in
66074         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66075
66076         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66077         bugs in int versus size_t comparisons.
66078         (re_string_context_at): Fix bug where the code assumed that
66079         Idx is signed.
66080
66081         Use bool where appropriate.
66082         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66083         All callers changed.
66084         (calc_eclosure_iter): Likewise, for ROOT arg.
66085         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66086         (build_charclass_op): Likewise, for NON_MATCH arg.
66087         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66088         (re_string_construct_common): Likewise, for ICASE arg.
66089         * lib/regexec.c (re_search_2_stub, re_search_stub):
66090         Likewise, for RET_LEN arg.
66091         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66092         (set_regs): Likewise, for FL_BACKTRACK arg.
66093         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66094         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66095         (calc_eclosure_iter, parse_bracket_exp):
66096         Use bool for internal variables that are booleans.
66097         * lib/regexec.c (re_search_internal, check_matching,
66098         proceed_next_node):
66099         (set_regs, build_sifted_states, sift_states_bkref):
66100         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66101         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66102         (find_collation_sequence_value):
66103         Likewise.
66104         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66105         (re_node_set_compare):
66106         Return bool, not int. All callers changed.
66107         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66108         (build_trtable, check_node_accept): Likewise.
66109         * lib/regex_internal.h: Include stdbool.h.
66110
66111         Fix bugs uncovered when converting to bool.
66112         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66113         failure instead of charging ahead blindly.
66114         * lib/regex_internal.c (register_state): Likewise.
66115         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66116         for freeing internal storage.
66117         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66118         bitset pieces used as boolean, to avoid undefined behavior
66119         on hosts that do int overflow checking.
66120
66121 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66122
66123         * config/srclist.txt: Add glibc bugs 1285-1287.
66124
66125 2005-09-01  Jim Meyering  <jim@meyering.net>
66126
66127         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66128         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66129         Require gl_STAT_MACROS, too.
66130
66131 2005-09-01  Bruno Haible  <bruno@clisp.org>
66132
66133         * gnulib-tool (import): In the first-use case, provide defaults.
66134
66135 2005-09-01  Bruno Haible  <bruno@clisp.org>
66136
66137         * gnulib-tool (func_import): Remove the .tmp files.
66138
66139 2005-09-01  Bruno Haible  <bruno@clisp.org>
66140
66141         * gnulib-tool (func_import): Fix handling of symbolic links.
66142
66143 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66146         old glibc regex code mishandles strings longer than 2**31 bytes.
66147         This patch fixes this when the regex code is used in gnulib
66148         (i.e., outside glibc).
66149
66150         This patch should not affect the use of the regex code inside
66151         glibc.  No doubt this problem also needs to be handled for glibc
66152         as well, but the result will be an incompatible change to the
66153         glibc ABI, and the old ABI will have to be supported too.  That
66154         can be the the subject for another patch.
66155
66156         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66157         governing whether the rest of this patch is active.  By default,
66158         the macro is disabled and the patch has no effect.
66159         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66160         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66161         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66162         (re_match_2, re_set_registers): Use the new types.
66163         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66164         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66165         New macros.
66166         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66167         (re_string_context_at, bin_tree_t, re_dfastate_t):
66168         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66169         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66170         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66171         (re_string_char_size_at, re_string_wchar_at):
66172         (re_string_elem_size_at):
66173         Use the new types and macros to port to 64-bit hosts.
66174         Use unsigned types for internal values, so that the code
66175         mostly works even for arrays larger than SSIZE_MAX.
66176         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66177         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66178         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66179         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66180         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66181         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66182         (calc_inveclosure, parse_dup_op, build_range_exp):
66183         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66184         (fetch_number, create_token_tree, mark_opt_subexp):
66185         Likewise.
66186         * lib/regex_internal.c (re_string_construct_common,
66187         create_ci_newstate):
66188         (create_cd_newstate, re_string_allocate, re_string_construct):
66189         (re_string_realloc_buffers, build_wcs_upper_buffer):
66190         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66191         (re_string_reconstruct, re_string_peek_byte_case):
66192         (re_string_fetch_byte_case, re_string_context_at):
66193         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66194         (re_node_set_init_copy, re_node_set_add_intersect):
66195         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66196         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66197         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66198         (re_acquire_state, re_acquire_state_context, register_state):
66199         Likewise.
66200         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66201         search_cur_bkref_entry):
66202         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66203         (re_search_internal, re_search_2_stub, re_search_stub)
66204         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66205         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66206         (update_cur_sifted_state, check_dst_limits):
66207         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66208         (check_subexp_limits, sift_states_bkref, merge_state_array):
66209         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66210         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66211         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66212         (expand_bkref_cache, check_node_accept_bytes):
66213         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66214         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66215         (acquire_init_state_context, check_halt_node_context):
66216         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66217         (sift_states_backward, clean_state_log_if_needed):
66218         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66219         (find_recover_state, transit_state_sb, transit_state_mb):
66220         (transit_state_bkref, build_trtable, match_ctx_clean):
66221         Likewise.
66222         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66223         to work around an assumption that REG_MISSING is negative.
66224
66225         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66226         (seek_collating_symbol_entry) [defined _LIBC]:
66227         (lookup_collation_sequence_value) [defined _LIBC]:
66228         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66229         Use prototypes rather than old-style function definitions.
66230         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66231         (transit_state_sb) [0]:
66232         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66233
66234         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66235         rm_eo.
66236
66237         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66238         (optimize_subexps, lower_subexp):
66239         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66240         since the signed shift might overflow.  Use 1u<<31 instead.
66241         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66242         Likewise.
66243         * lib/regexec.c (check_dst_limits_calc_pos_1,
66244         check_subexp_matching_top): Likewise.
66245
66246         * lib/regcomp.c (optimize_subexps, lower_subexp):
66247         Use CHAR_BIT rather than 8, for clarity.
66248         * lib/regexec.c (check_dst_limits_calc_pos_1):
66249         (check_subexp_matching_top): Likewise.
66250         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66251         have to worry about portability issues when shifting it left.
66252         Remove no-longer-needed test for table_size > 0.
66253         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66254         in a word, as the resulting behavior is undefined.
66255         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66256         in one case, a <= should have been an <, and in another case the
66257         whole test was missing.
66258         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66259         the standard name CHAR_BIT.
66260         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66261         this is not true on one's complement and signed-magnitude hosts.
66262
66263         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66264         next_last_offset.
66265         (struct re_dfa_t): Remove unused member states_alloc.
66266         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66267
66268 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66271         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66272         and large-file glibc and in 32-bit large-file Solaris.
66273
66274 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66277         lengths fit in regoff_t; this isn't true if regoff_t is the same
66278         width as size_t.
66279         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66280         (= START + RANGE) instead of RANGE.  This avoids overflow
66281         problems when regoff_t is the same width as size_t.
66282         All callers changed.
66283         (re_search_2_stub): Check for overflow when adding the
66284         sizes of the two strings.
66285         (re_search_stub): Check for overflow when adding START
66286         to RANGE; if it occurs, substitute the extreme value.
66287
66288 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66291
66292 2005-08-31  Jim Meyering  <jim@meyering.net>
66293
66294         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66295         a pointer-to-const.
66296         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66297         (register_state): Likewise.
66298         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66299         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66300         (group_nodes_into_DFAstates): Likewise.
66301
66302 2005-08-31  Jim Meyering  <jim@meyering.net>
66303
66304         * check-module: Add a FIXME comment.
66305
66306 2005-08-31  Eric Blake  <ebb9@byu.net>
66307
66308         * modules/unistd-safer (Files): Add unistd--.h.
66309         * modules/stdio-safer (Files): Add stdio--.h.
66310
66311 2005-08-31  Derek Price  <derek@ximbiot.com>
66312
66313         * lib/getdelim.c (getdelim): Return EOF on EOF.
66314         Reported by Larry Jones <lawrence.jones@ugs.com>.
66315
66316 2005-08-31  Bruno Haible  <bruno@clisp.org>
66317
66318         Avoid unnecessary diffs in the generated lib/Makefile.am.
66319         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66320         the generated files.
66321         (func_import): Don't set cmd.
66322
66323 2005-08-31  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/strstr.c: Include <stddef.h>, for NULL.
66326         * lib/strcasestr.c: Likewise.
66327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66328
66329 2005-08-31  Bruno Haible  <bruno@clisp.org>
66330
66331         * gnulib-tool: New option --macro-prefix.
66332         (func_import): Use macro_prefix.
66333         (import): Handle option --macro-prefix.
66334
66335 2005-08-31  Bruno Haible  <bruno@clisp.org>
66336
66337         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66338         Also use new variables cached_lgpl, cached_libtool.
66339
66340 2005-08-31  Bruno Haible  <bruno@clisp.org>
66341
66342         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66343         always instantiating them.
66344
66345 2005-08-31  Bruno Haible  <bruno@clisp.org>
66346
66347         * gnulib-tool (func_import): Read the previous cached settings
66348         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66349         earlier added by gnulib but are now dropped. Warn when a gnulib file
66350         overwrites a non-gnulib file.
66351
66352 2005-08-31  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66355         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66356         projects that don't keep autogenerated files in CVS. Put into
66357         actioncmd only the specified modules, not the transitive closure.
66358
66359 2005-08-31  Bruno Haible  <bruno@clisp.org>
66360
66361         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66362         Create directories that shall be filled.
66363         (import): Don't look for gl_* macros in configure.ac. Recurse across
66364         all directories containing a gnulib-cache.m4 files, if meaningful.
66365
66366 2005-08-31  Bruno Haible  <bruno@clisp.org>
66367
66368         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66369         (import): Set seen_libtool when we see gl_LIBTOOL.
66370
66371 2005-08-31  Bruno Haible  <bruno@clisp.org>
66372
66373         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66374         declaration macro definitions from generated gnulib.m4.
66375
66376 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66377
66378         * lib/iconvme.h: Add prototype for iconv_alloc.
66379
66380 2005-08-29  Simon Josefsson  <jas@extundo.com>
66381
66382         * lib/iconvme.c: Fix errno.
66383
66384 2005-08-29  Bruno Haible  <bruno@clisp.org>
66385
66386         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66387         that it works when the directory contains spaces.
66388
66389 2005-08-29  Bruno Haible  <bruno@clisp.org>
66390
66391         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66392
66393 2005-08-29  Bruno Haible  <bruno@clisp.org>
66394
66395         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66396         Emit more advice.
66397
66398 2005-08-29  Bruno Haible  <bruno@clisp.org>
66399         and Stepan Kasal  <kasal@ucw.cz>
66400
66401         * check-module: If more parameters are given, check each of them
66402         separately; add more exceptions, as noted by Jim Meyering.
66403         (check_module): New procedure.
66404         (%exempt_header): Now contains all exceptions.
66405
66406 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66407
66408         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66409
66410 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66411
66412         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66413
66414 2005-08-28  Bruno Haible  <bruno@clisp.org>
66415
66416         * m4/gnulib-tool.m4: New file.
66417
66418 2005-08-27  Jim Meyering  <jim@meyering.net>
66419
66420         * modules/unistd-safer (Files): Add pipe-safer.c.
66421         * modules/fcntl-safer (Files): Add creat-safer.c.
66422
66423 2005-08-27  Jim Meyering  <jim@meyering.net>
66424
66425         * m4/stdlib-safer.m4: New file.  From coreutils.
66426         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66428         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66429         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66430         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66431
66432 2005-08-27  Jim Meyering  <jim@meyering.net>
66433
66434         * lib/fopen-safer.c: Merge minor changes from coreutils.
66435         * lib/dup-safer.c: Likewise.
66436         * lib/fd-safer.c: Likewise.
66437
66438         Merge from coreutils.
66439         * lib/stdio--.h: New file.
66440         * lib/stdlib--.h: New file.
66441         * lib/mkstemp-safer.c: New file.
66442
66443         GNU tar needs these.
66444         * lib/pipe-safer.c: New file.
66445         * lib/creat-safer.c: New file.
66446         * lib/fcntl--.h (creat): Define to creat_safer.
66447         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66448         * lib/unistd--.h (pipe): Define to pipe_safer.
66449         * lib/unistd-safer.h: Declare pipe_safer.
66450
66451 2005-08-26  Simon Josefsson  <jas@extundo.com>
66452
66453         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66454         Haible <bruno@clisp.org>.
66455
66456 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * lib/regex_internal.h: Remove all references to
66459         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66460         or better.
66461         (bitset_not, bitset_merge, bitset_not_merge):
66462         (bitset_mask, re_string_allocate, re_string_construct):
66463         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66464         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66465         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66466         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66467         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66468         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66469         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66470         (re_acquire_state_context):
66471         Remove unnecessary forward decls.
66472         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66473         Put __attribute at function definition,
66474         now that the function decl has been removed.
66475         * lib/regex_internal.c (re_string_peek_byte_case):
66476         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66477         Likewise.
66478
66479 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66480
66481         * m4/regex.m4: Add AC_PREREQ(2.50).
66482         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66483
66484 2005-08-25  Simon Josefsson  <jas@extundo.com>
66485
66486         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66487         __fsetlocking.
66488
66489 2005-08-25  Simon Josefsson  <jas@extundo.com>
66490
66491         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66492         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66493         GLIBC specific code.
66494
66495 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66496
66497         Make regex safe for g++.  This fixes one real bug (an "err"
66498         that should have been "*err").  g++ problem reported by
66499         Sam Steingold.
66500         * lib/regex_internal.h (re_calloc): New macro, consistent with
66501         re_malloc etc.  All callers of calloc changed to use re_calloc.
66502         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66503         not int.  All callers changed.
66504         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66505         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66506         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66507         (find_recover_state): Change "err" to "*err"; this fixes what
66508         appears to be a real bug.
66509         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66510         versus int.
66511
66512 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * modules/regex (Depends-on): Add malloc, since the code
66515         assumes that !malloc(0) means failure.
66516
66517 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66520
66521         alloca modernization/simplification for regex.
66522         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66523         needs to be at the start of the file, and can be moved into
66524         regex_internal.h and simplified.
66525         * lib/regex_internal.h: Include <alloca.h>.
66526         (__libc_use_alloca) [!defined _LIBC]: New macro.
66527         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66528         now works outside glibc.
66529
66530 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66531
66532         * config/srclist.txt: Add glibc bugs 1241, 1245.
66533
66534 2005-08-25  Jim Meyering  <jim@meyering.net>
66535
66536         * lib/open-safer.c: Include <config.h>.
66537         Otherwise, we'd lose LARGEFILE support in any file using
66538         e.g. "fcntl--.h"
66539
66540 2005-08-25  Bruno Haible  <bruno@clisp.org>
66541
66542         * m4/minmax.m4: Require autoconf 2.52.
66543         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66544         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66545         alternatives of translit over the alphabet.
66546         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66547
66548 2005-08-24  Simon Josefsson  <jas@extundo.com>
66549
66550         * tests/test-getpass.c: New file.
66551
66552 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66555         for GNU regex features.
66556
66557 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66558
66559         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66560         * lib/regex.h (regerror): Likewise.
66561
66562         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66563         requires this.  (The code never needed it.)
66564
66565         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66566         All uses of recently-renamed identifiers changed to use the new,
66567         POSIX-compliant names.  The code will build and run just fine
66568         without these changes, but it's better to eat our own dog food
66569         and use the standard-conforming names.
66570
66571         * lib/regex.h: Fix a multitude of POSIX name space violations.
66572         These changes have an effect only for programs that define
66573         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66574         do not change anything for programs compiled in the normal way.
66575         Also, there is no effect on the ABI.
66576
66577         (_REGEX_SOURCE): New macro.
66578         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66579         defined and _GNU_SOURCE is not; this fixes a name space violation.
66580
66581         Rename the following macros to obey POSIX requirements.
66582         The old names are still visible as macros if _REGEX_SOURCE is defined.
66583         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66584         RE_BACKSLASH_ESCAPE_IN_LISTS.
66585         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66586         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66587         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66588         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66589         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66590         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66591         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66592         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66593         (REG_INTERVALS): renamed from RE_INTERVALS.
66594         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66595         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66596         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66597         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66598         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66599         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66600         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66601         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66602         RE_UNMATCHED_RIGHT_PAREN_ORD.
66603         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66604         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66605         (REG_DEBUG): renamed from RE_DEBUG.
66606         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66607         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66608         unusual, since we can't clash with the POSIX REG_ICASE.
66609         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66610         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66611         (REG_NO_SUB): renamed from RE_NO_SUB.
66612         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66613         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66614         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66615         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66616         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66617         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66618         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66619         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66620         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66621         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66622         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66623         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66624         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66625         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66626         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66627         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66628         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66629         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66630         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66631         (REG_FIXED): Renamed from REGS_FIXED.
66632         (REG_NREGS): Renamed from RE_NREGS.
66633
66634         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66635         of other REG_* macros, since POSIX says the user is allowed to
66636         #undef these macros selectively.
66637
66638         (reg_errcode_t): Update comment stating what other tables need
66639         to be consistent.
66640
66641         Rename the following enum values to obey POSIX requirements.
66642         The old names are still visible as macros.
66643         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66644         is not defined, since GNU is supposed to be a superset of POSIX as
66645         much as possible, and since we want reg_errcode_t to be a signed
66646         type for implementation consistency.
66647         (_REG_NOERROR): Renamed from REG_NOERROR.
66648         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66649         (_REG_BADPAT): Renamed from REG_BADPAT.
66650         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66651         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66652         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66653         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66654         (_REG_EBRACK): Renamed from REG_EBRACK.
66655         (_REG_EPAREN): Renamed from REG_EPAREN.
66656         (_REG_EBRACE): Renamed from REG_EBRACE.
66657         (_REG_BADBR): Renamed from REG_BADBR.
66658         (_REG_ERANGE): Renamed from REG_ERANGE.
66659         (_REG_ESPACE): Renamed from REG_ESPACE.
66660         (_REG_BADRPT): Renamed from REG_BADRPT.
66661         (_REG_EEND): Renamed from REG_EEND.
66662         (_REG_ESIZE): Renamed from REG_ESIZE.
66663         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66664         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66665         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66666         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66667         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66668
66669         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66670         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66671         changed.  But support the old name if the new one is not defined
66672         and if _REGEX_SOURCE.
66673
66674         Change the following member names in struct re_pattern_buffer.
66675         The old names are still supported if !_REGEX_SOURCE.
66676         The new names are always supported, regardless of _REGEX_SOURCE.
66677         (re_buffer): Renamed from buffer.
66678         (re_allocated): Renamed from allocated.
66679         (re_used): Renamed from used.
66680         (re_syntax): Renamed from syntax.
66681         (re_fastmap): Renamed from fastmap.
66682         (re_translate): Renamed from translate.
66683         (re_can_be_null): Renamed from can_be_null.
66684         (re_regs_allocated): Renamed from regs_allocated.
66685         (re_fastmap_accurate): Renamed from fastmap_accurate.
66686         (re_no_sub): Renamed from no_sub.
66687         (re_not_bol): Renamed from not_bol.
66688         (re_not_eol): Renamed from not_eol.
66689         (re_newline_anchor): Renamed from newline_anchor.
66690
66691         Change the following member names in struct re_registers.
66692         The old names are still supported if !_REGEX_SOURCE.
66693         The new names are always supported, regardless of _REGEX_SOURCE.
66694         (rm_num_regs): Renamed from num_regs.
66695         (rm_start): Renamed from start.
66696         (rm_end): Renamed from end.
66697
66698         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66699         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66700         Prepend __ to parameter names.
66701
66702         Undo yesterday's changes.
66703
66704 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66707         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66708         lib/regex.c.
66709
66710 2005-08-24  Jim Meyering  <jim@meyering.net>
66711
66712         Sync from coreutils.
66713         * m4/fcntl-safer.m4: New file.
66714
66715         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66716         and object files for this module.
66717
66718 2005-08-24  Jim Meyering  <jim@meyering.net>
66719
66720         Sync from coreutils.
66721         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66722
66723 2005-08-24  Jim Meyering  <jim@meyering.net>
66724
66725         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66726         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66727
66728 2005-08-24  Jim Meyering  <jim@meyering.net>
66729
66730         * modules/fcntl-safer: New module.
66731         * modules/fts (Depends-on): Add fcntl-safer.
66732         * MODULES.html.sh (File descriptor based Input/Output):
66733         Add fcntl-safer.
66734
66735 2005-08-24  Bruno Haible  <bruno@clisp.org>
66736
66737         Support for unit test modules.
66738         * modules/README: Mention tests modules.
66739         * modules/TEMPLATE-TESTS: New file.
66740         * gnulib-tool: New options --extract-tests-module, --with-tests and
66741         --tests-base (unused for the moment).
66742         (testsbase, inctests): New variables.
66743         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66744         (func_verify_module): Exclude TEMPLATE-TESTS.
66745         (func_verify_nontests_module, func_verify_tests_module): New functions.
66746         (func_get_dependencies): Add implicit dependency for tests modules.
66747         (func_get_tests_module): New function.
66748         (func_modules_transitive_closure): When --with-tests was specified,
66749         include the unit tests as well, unless explicitly avoided.
66750         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66751         (func_emit_tests_Makefile_am): New function.
66752         (func_create_testdir): When --with-tests was specified, emit a
66753         tests/ directory.
66754         * MODULES.html.sh (Future developments): Update.
66755
66756 2005-08-24  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/tls-tests: New file.
66759         * tests/test-tls.c: New file, from GNU gettext.
66760
66761 2005-08-24  Bruno Haible  <bruno@clisp.org>
66762
66763         * modules/lock-tests: New file.
66764         * tests/test-lock.c: New file, from GNU gettext.
66765
66766 2005-08-24  Bruno Haible  <bruno@clisp.org>
66767
66768         * lib/lock.h: Add multiple inclusion guard.
66769         * lib/tls.h: Add multiple inclusion guard.
66770
66771 2005-08-24  Bruno Haible  <bruno@clisp.org>
66772
66773         * gnulib-tool: Add support for the --aux-dir option to
66774         --create-testdir, --create-megatestdir, --test, --megatest.
66775         (func_create_testdir, func_create_megatestdir): Optionally emit a
66776         AC_CONFIG_AUX_DIR directive.
66777         (create-testdir, create-megatestdir, test, megatest): Provide a
66778         default value for $auxdir.
66779
66780 2005-08-24  Bruno Haible  <bruno@clisp.org>
66781
66782         * gnulib-tool (import): Use compound statement instead of subshell
66783         where possible.
66784
66785 2005-08-24  Bruno Haible  <bruno@clisp.org>
66786
66787         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66788
66789 2005-08-24  Bruno Haible  <bruno@clisp.org>
66790
66791         * gnulib-tool (func_version): Update.
66792
66793 2005-08-24  Bruno Haible  <bruno@clisp.org>
66794
66795         * gnulib-tool (func_import, func_create_testdir,
66796         func_create_megatestdir): Quote all autoconf macro arguments.
66797
66798 2005-08-24  Bruno Haible  <bruno@clisp.org>
66799
66800         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66801         option --force, because --force causes the aclocal.m4 of each
66802         subdirectory to be newer than the corresponding config.h.in.
66803
66804 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66805
66806         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66807         All contents moved to gl_REGEX.
66808         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66809         assume that it does.
66810
66811 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/regex.h (REG_NOSYS)
66814         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66815         Define, since POSIX requires it as of 2001.
66816         (_REG_ENOSYS)
66817         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66818         New private symbol, used to keep the enum signed in all cases.
66819         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66820         Youngman in
66821         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66822
66823         * lib/regex_internal.c (re_string_skip_chars, register_state):
66824         (calc_state_hash):
66825         Remove forward decls; no longer needed now that we use prototypes.
66826         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66827         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66828         (clean_state_log_if_needed): Likewise.
66829
66830 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         * config/srclist.txt: Add glibc bugs 1231-1233.
66833
66834 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         Fix problems reported by Sam Steingold in
66837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66838         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66839         assumed that reg_errcode_t is a signed type, which is not
66840         necessarily true if _XOPEN_SOURCE is not defined.
66841         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66842         since some compilers warn about it otherwise.
66843
66844 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66845
66846         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66847         (init_word_char, create_initial_state, duplicate_node_closure):
66848         (fetch_token, peek_token_bracket, build_range_exp):
66849         (build_collating_symbol): Remove forward decls; no longer needed
66850         now that we use prototypes.
66851
66852         * lib/regcomp.c:
66853         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66854         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66855         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66856         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66857         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66858         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66859         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66860         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66861         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66862         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66863         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66864         (build_charclass, build_charclass_op, fetch_number, create_tree):
66865         (create_token_tree, mark_opt_subexp, duplicate_tree):
66866         Use prototypes rather than old-style definitions.
66867
66868         * lib/regex_internal.c:
66869         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66870         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66871         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66872         (re_string_reconstruct, re_string_peek_byte_case):
66873         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66874         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66875         (re_node_set_init_copy, re_node_set_add_intersect):
66876         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66877         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66878         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66879         (re_acquire_state, re_acquire_state_context, register_state):
66880         (create_ci_newstate, create_cd_newstate, free_state):
66881         Likewise.
66882         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66883         re_search_2):
66884         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66885         (re_search_internal, prune_impossible_nodes):
66886         (acquire_init_state_context, check_matching, static):
66887         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66888         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66889         (update_regs, sift_states_backward, build_sifted_states):
66890         (clean_state_log_if_needed, merge_state_array):
66891         (update_cur_sifted_state, add_epsilon_src_nodes):
66892         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66893         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66894         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66895         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66896         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66897         (check_arrival, check_arrival_add_next_nodes):
66898         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66899         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66900         (check_node_accept_bytes, check_node_accept, extend_buffers):
66901         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66902         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66903         (sift_ctx_init):
66904         Likewise.
66905
66906         * lib/regex_internal.h:
66907         (re_string_allocate, re_string_construct, re_string_reconstruct):
66908         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66909         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66910         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66911         (re_string_context_at, re_string_peek_byte_case):
66912         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66913         is defined, since we now use prototypes always.
66914
66915         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66916         C89 or better.  All uses removed.
66917
66918 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * config/srclist.txt: Add glibc bugs 1220-1227.
66921
66922 2005-08-20  Jim Meyering  <jim@meyering.net>
66923
66924         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66925         of unused local, dfa.
66926
66927 2005-08-20  Bruno Haible  <bruno@clisp.org>
66928
66929         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66930
66931 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66934         (re_node_set_insert_last, re_dfa_add_node):
66935         Rename local variables to avoid GCC shadowing warnings.
66936
66937 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66940         [defined lint]: Suppress bogus uninitialized-variable warnings.
66941
66942         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66943         and let the caller return REG_ESPACE if out of space.  This
66944         removes an uninitialied-variable warning with GCC 4.0.1, and also
66945         avoids taking the address of a local variable.  All callers
66946         changed.
66947
66948 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66951         $LIBCSRC/posix/regexec.c.
66952         Add glibc bug 1217 for regcomp.c.
66953
66954 2005-08-19  Jim Meyering  <jim@meyering.net>
66955
66956         * lib/regexec.c (proceed_next_node): Redo local variables to
66957         avoid GCC shadowing warnings.
66958
66959 2005-08-18  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/strstr.c (strstr): Fix return value in multibyte case.
66962         * lib/strcasestr.c (strcasestr): Likewise.
66963
66964 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66967
66968 2005-08-17  Jim Meyering  <jim@meyering.net>
66969
66970         Make the %s format (seconds since the epoch) work for a negative
66971         number and when used with a zero-padded field width, e.g. %015s.
66972
66973         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66974         label so that it precedes the code to set `digits'.  Otherwise,
66975         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66976         print `00-22'.  Now, it prints `-0022', as it should.
66977
66978 2005-08-17  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/strstr (Files): Add m4/mbrtowc.m4.
66981         (Depends-on): Add mbuiter.
66982
66983 2005-08-17  Bruno Haible  <bruno@clisp.org>
66984
66985         * modules/strcasestr: New file.
66986         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66987         strcasestr.
66988
66989 2005-08-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66992
66993 2005-08-17  Bruno Haible  <bruno@clisp.org>
66994
66995         * modules/mbuiter: New file.
66996         * MODULES.html.sh (Extended multibyte and wide character utilities):
66997         Add mbuiter.
66998
66999 2005-08-17  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67002         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67003
67004 2005-08-17  Bruno Haible  <bruno@clisp.org>
67005
67006         * m4/strcasestr.m4: New file.
67007
67008 2005-08-17  Bruno Haible  <bruno@clisp.org>
67009
67010         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67011         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67012
67013 2005-08-17  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/strcasestr.h: New file.
67016         * lib/strcasestr.c: New file.
67017
67018 2005-08-17  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/strcasecmp.c: Use mbuiter.h.
67021
67022 2005-08-17  Bruno Haible  <bruno@clisp.org>
67023
67024         * lib/mbuiter.h: New file.
67025
67026 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67029         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67030         and gl_GETOPT are both invoked via different paths (as happens
67031         with GNU tar CVS because it uses both argp and getopt), the former
67032         wins.
67033
67034 2005-08-16  Bruno Haible  <bruno@clisp.org>
67035
67036         * modules/tls: New file.
67037         * MODULES.html.sh (Multithreading): Add tls.
67038
67039 2005-08-16  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/strnlen1: New file.
67042         * MODULES.html.sh (String handling): Add strnlen1.
67043
67044 2005-08-16  Bruno Haible  <bruno@clisp.org>
67045
67046         * modules/strcase (Files): Add m4/mbrtowc.m4.
67047         (Depends-on): Add strnlen1, mbchar.
67048
67049 2005-08-16  Bruno Haible  <bruno@clisp.org>
67050
67051         * modules/mbiter: New file.
67052         * MODULES.html.sh (Extended multibyte and wide character utilities):
67053         Add mbiter.
67054
67055 2005-08-16  Bruno Haible  <bruno@clisp.org>
67056
67057         * modules/mbfile: New file.
67058         * MODULES.html.sh (Extended multibyte and wide character utilities):
67059         Add mbfile.
67060
67061 2005-08-16  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/mbchar: New file.
67064         * MODULES.html.sh (Extended multibyte and wide character utilities):
67065         New section.
67066
67067 2005-08-16  Bruno Haible  <bruno@clisp.org>
67068
67069         * m4/tls.m4: New file, from GNU gettext.
67070
67071 2005-08-16  Bruno Haible  <bruno@clisp.org>
67072
67073         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67074         always.
67075         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67076
67077 2005-08-16  Bruno Haible  <bruno@clisp.org>
67078
67079         * m4/mbiter.m4: New file.
67080
67081 2005-08-16  Bruno Haible  <bruno@clisp.org>
67082
67083         * m4/mbfile.m4: New file.
67084
67085 2005-08-16  Bruno Haible  <bruno@clisp.org>
67086
67087         * m4/mbchar.m4: New file.
67088
67089 2005-08-16  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/tls.h: New file, from GNU gettext.
67092         * lib/tls.c: New file, from GNU gettext.
67093
67094 2005-08-16  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/strnlen1.h: New file.
67097         * lib/strnlen1.c: New file.
67098
67099 2005-08-16  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67102         (mbi_init): Update.
67103         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67104         NUL byte, not after it.
67105
67106 2005-08-16  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/strcase.h (strcasecmp): Add note in comments.
67109         * lib/strncasecmp.c: Use code from strcasecmp.c.
67110         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67111         (strcasecmp): Work correctly in multibyte locales.
67112
67113 2005-08-16  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/mbiter.h: New file.
67116
67117 2005-08-16  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/mbfile.h: New file.
67120
67121 2005-08-16  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/mbchar.h: New file.
67124         * lib/mbchar.c: New file.
67125
67126 2005-08-16  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67129         the valid ones. Makes the comparison operations transitive:
67130         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67131         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67132
67133 2005-08-15  Simon Josefsson  <jas@extundo.com>
67134
67135         * modules/ssize_t (License): Change to 'unlimited'.
67136
67137         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67138
67139 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67142         Add comments for each pending glibc patch.
67143
67144 2005-08-15  Bruno Haible  <bruno@clisp.org>
67145
67146         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67147         __cplusplus is defined.
67148
67149 2005-08-14  Jim Meyering  <jim@meyering.net>
67150
67151         Sync from coreutils.
67152
67153         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67154         Use the hash-table-based cycle-detection code not just when
67155         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67156         Reported by James Youngman in
67157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67158         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67159         FTS_TIGHT_CYCLE_CHECK.
67160         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67161         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67162         once again.
67163         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67164         * lib/fts.c (fd_safer): Remove decl.
67165         Include fcntl--.h rather than unistd-safer.h
67166         (fts_safe_changedir): Don't call fd_safer; no longer needed
67167         now that we include fcntl--.h.
67168
67169 2005-08-12  Simon Josefsson  <jas@extundo.com>
67170
67171         * modules/getndelim2: Use ssize_t module.
67172         * modules/getnline: Likewise.
67173         * modules/safe-read: Likewise.
67174         * modules/xreadlink: Likewise.
67175
67176         * modules/ssize_t: New file.
67177
67178 2005-08-12  Simon Josefsson  <jas@extundo.com>
67179
67180         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67181
67182 2005-08-12  Simon Josefsson  <jas@extundo.com>
67183
67184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67185         ssize_t.
67186
67187 2005-08-12  Simon Josefsson  <jas@extundo.com>
67188
67189         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67190         readline, getdelim and check_version.
67191         (Support for systems lacking ISO C 99: Sizes of integer types):
67192         Add size_max.
67193
67194 2005-08-12  Bruno Haible  <bruno@clisp.org>
67195
67196         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67197
67198 2005-08-11  Simon Josefsson  <jas@extundo.com>
67199
67200         * modules/readline: New file.
67201
67202         * modules/strnlen (Files): Add strnlen.h.
67203
67204 2005-08-11  Simon Josefsson  <jas@extundo.com>
67205
67206         * m4/readline.m4: New file.
67207
67208 2005-08-11  Simon Josefsson  <jas@extundo.com>
67209
67210         * lib/readline.h, readline.c: New file.
67211
67212 2005-08-11  Simon Josefsson  <jas@extundo.com>
67213
67214         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67215         gl_AVOID.
67216
67217 2005-08-11  Bruno Haible  <bruno@clisp.org>
67218
67219         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67220
67221 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67222
67223         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67224
67225 2005-08-10  Simon Josefsson  <jas@extundo.com>
67226
67227         * tests/test-iconvme.c: New file.
67228
67229 2005-08-10  Simon Josefsson  <jas@extundo.com>
67230
67231         * m4/strnlen.m4: New file.
67232
67233         * m4/strndup.m4: Don't check for strnlen declaration, done in
67234         strnlen.m4.
67235
67236 2005-08-10  Simon Josefsson  <jas@extundo.com>
67237
67238         * lib/strndup.c: Use strnlen.h.
67239
67240         * lib/strnlen.h: New file.
67241
67242 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67243
67244         * README: Typos.
67245
67246 2005-08-02  Simon Josefsson  <jas@extundo.com>
67247
67248         * modules/readline: New file.
67249
67250 2005-08-02  Simon Josefsson  <jas@extundo.com>
67251
67252         * modules/getdelim: New file.
67253
67254         * modules/getline: Rewrite, don't use getndelim2.
67255
67256 2005-08-02  Simon Josefsson  <jas@extundo.com>
67257
67258         * m4/getline.m4: Separate out getdelim stuff into separate module.
67259
67260         * m4/getdelim.m4: New file.
67261
67262 2005-08-02  Simon Josefsson  <jas@extundo.com>
67263
67264         * lib/getline.h, getline.c: Rewrite.
67265
67266         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67267
67268 2005-07-31  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/lock.h (gl_lock_initializer): New macro.
67271         (gl_lock_define_initialized): Use it.
67272         (gl_rwlock_initializer): New macro.
67273         (gl_rwlock_define_initialized): Use it.
67274         (gl_recursive_lock_initializer): New macro.
67275         (gl_recursive_lock_define_initialized): Use it.
67276
67277 2005-07-30  Karl Berry  <karl@gnu.org>
67278
67279         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67280         Report from Ben Pfaff, regarding getopt.
67281
67282 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67285         normal way.
67286         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67287         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67288         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67289         (gl_GETOPT): Use the new macros.  Most of the implementation
67290         is moved to the new macros.  This is for programs like Emacs
67291         that don't want all the functionality of gl_GETOPT.
67292
67293 2005-07-26  Bruno Haible  <bruno@clisp.org>
67294
67295         * m4/lock.m4: Update from GNU gettext.
67296
67297 2005-07-26  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/lock.h: Update from GNU gettext.
67300         * lib/lock.c: Update from GNU gettext.
67301
67302 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67305         obsolescent AC_TRY_RUN.  Include the default includes files, for
67306         'exit'.
67307
67308 2005-07-24  Bruno Haible  <bruno@clisp.org>
67309
67310         * modules/visibility: New file.
67311         * MODULES.html.sh (Misc): Add visibility.
67312
67313 2005-07-24  Bruno Haible  <bruno@clisp.org>
67314
67315         * m4/visibility.m4: New file.
67316
67317 2005-07-24  Bruno Haible  <bruno@clisp.org>
67318
67319         * doc/visibility.texi: New file.
67320
67321 2005-07-22  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67324         $(ALLOCA_H), redundant through BUILT_SOURCES.
67325         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67326         redundant through BUILT_SOURCES.
67327         * modules/byteswap (Makefile.am): Remove explicit dependency on
67328         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67329         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67330         $(FNMATCH_H), redundant through BUILT_SOURCES.
67331         * modules/getopt (Makefile.am): Remove explicit dependency on
67332         $(GETOPT_H), redundant through BUILT_SOURCES.
67333         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67334         redundant through BUILT_SOURCES.
67335         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67336         redundant through BUILT_SOURCES.
67337         * modules/stdbool (Makefile.am): Remove explicit dependency on
67338         $(STDBOOL_H), redundant through BUILT_SOURCES.
67339         * modules/stdint (Makefile.am): Remove explicit dependency on
67340         $(STDINT_H), redundant through BUILT_SOURCES.
67341         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67342         Remove explicit dependency on $(SYSEXITS_H).
67343         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67344
67345 2005-07-18  Simon Josefsson  <jas@extundo.com>
67346
67347         * lib/check-version.c (check_version): Accept identical versions too.
67348
67349 2005-07-18  Bruno Haible  <bruno@clisp.org>
67350
67351         * modules/lock: New file.
67352         * MODULES.html.sh (Multithreading): New section.
67353
67354 2005-07-18  Bruno Haible  <bruno@clisp.org>
67355
67356         * m4/lock.m4: New file, from GNU gettext.
67357
67358 2005-07-18  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/lock.h: New file, from GNU gettext.
67361         * lib/lock.c: New file, from GNU gettext.
67362
67363 2005-07-18  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/lock.h (gl_once_t): New type.
67366         (gl_once_define, gl_once): New macros.
67367         * lib/lock.c (fresh_once): New variable.
67368         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67369         functions.
67370
67371 2005-07-16  Simon Josefsson  <jas@extundo.com>
67372
67373         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67374         workaround, suggested by Bruno.
67375
67376 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * modules/xalloc (Depends-on): Add xalloc-die.
67379         * modules/xvasprintf (Depends-on): Add xalloc-die.
67380
67381 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67384         with a minor change.
67385
67386 2005-07-15  Bruno Haible  <bruno@clisp.org>
67387
67388         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67389         When using lib/poll.c, define poll as rpl_poll.
67390
67391 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * modules/argp (Depends-on): Remove unlocked-io.
67394
67395 2005-07-14  Derek Price  <derek@ximbiot.com>
67396
67397         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67398         for glob symlink bug.
67399
67400 2005-07-14  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67403         Instead, test for *_unlocked function declarations directly.
67404
67405 2005-07-11  Simon Josefsson  <jas@extundo.com>
67406
67407         * modules/size_max: New file.
67408
67409         * modules/xsize: Depend on size_max module for size_max.m4.
67410
67411 2005-07-11  Simon Josefsson  <jas@extundo.com>
67412
67413         * lib/size_max.h: New file.
67414
67415 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67418         copyright symbol and the year.
67419         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67420         (version_etc_va): Use parameterized copyright notice.
67421         Reword to conform to the current GNU coding standards.
67422
67423 2005-07-11  Karl Berry  <karl@gnu.org>
67424
67425         * doc/gnulib.texi (Quoting): new node.
67426         (Initial import): more info, from Patrice.
67427
67428 2005-07-11  Bruno Haible  <bruno@clisp.org>
67429
67430         * gnulib-tool (func_usage): Document option --avoid.
67431         (Command line options): Handle --avoid.
67432         (func_acceptable): New function.
67433         (func_modules_transitive_closure): Use it.
67434
67435 2005-07-11  Bruno Haible  <bruno@clisp.org>
67436
67437         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67438         Reported by Jim Meyering.
67439
67440 2005-07-10  Bruno Haible  <bruno@clisp.org>
67441
67442         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67443         Needed when size_t is smaller than 'unsigned int'.
67444         Reported by Paul Eggert.
67445
67446 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67447
67448         * modules/argp (Depends-on): Add unlocked-io
67449
67450 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67451
67452         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67453         block of defines.
67454
67455 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67456
67457         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67458         fix now.
67459
67460 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67461         and Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67464         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67465
67466 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * modules/regex (Files): Add lib/regex_internal.c,
67469         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67470         (Depends-on): Add extensions.
67471         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67472
67473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67474
67475         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67476         pathconf.
67477         * m4/same.m4 (gl_SAME): Likewise.
67478         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67479
67480         * m4/regex.m4: Adjust to new libc regex implementation.
67481         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67482         all the .c and .h parts of (the new) regex.
67483         Quote the m4 stuff better.
67484         Check for RE_ICASE bug of old gnulib.
67485         Check for REG_STARTEND of recent libc.
67486         Rename local variables from jm_* to gl_*.
67487         Quote operand of "test -f".
67488         Say "recent enough" version of libc, not "version 2".
67489         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67490         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67491         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67492         Remove check for btowc, isascii.
67493         Require AM_LANGINFO_CODESET.
67494
67495 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         * lib/regex.c, regex.h: Sync from libc.
67498         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67499         * lib/regexec.c:
67500         New files, synced from libc, except that regex_internal.h
67501         currently has a small porting fix.
67502
67503 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67504
67505         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67506         regex_internal.c, regexec.c.
67507         Add regex_internal.h too, but as a comment, since the libc version
67508         is currently broken in gnulib mode.
67509
67510 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67511
67512         Support programs like Emacs that use gnulib but not gettext.
67513         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67514         * modules/gettext-h: New file.
67515         * modules/gettext (Files): Remove lib/gettext.h.
67516         (Depends-on): Add gettext-h.
67517         (Makefile.am): Remove lib_SOURCES.
67518         * modules/argmatch, modules/c-stack, modules/closeout:
67519         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67520         * modules/execute, modules/file-type, modules/getaddrinfo:
67521         * modules/getopt, modules/human, modules/javacomp:
67522         * modules/javaexec, modules/mkdir-p, modules/obstack:
67523         * modules/openat, modules/pagealign_alloc, modules/pipe:
67524         * modules/quotearg, modules/regex, modules/rpmatch:
67525         * modules/unicodeio, modules/userspec, modules/version-etc:
67526         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67527         * modules/xsetenv:
67528         Depend on gettext-h, not gettext.
67529
67530 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * gnulib-tool (func_import): Add support for 'public domain' license.
67533         * modules/alloca, modules/atexit, modules/memmove:
67534         Now public domain, not GPL.
67535         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67536         * modules/realloc, modules/strerror, modules/strtod:
67537         Now LGPL, not GPL.
67538
67539 2005-07-05  Bruno Haible  <bruno@clisp.org>
67540
67541         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67542         autoconf CVS. Needed for mingw.
67543
67544 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         Remove the dependency of the strftime module on the tzset module.
67547         * modules/strftime (Depends-on): Remove dependency on tzset.
67548
67549 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         Remove the dependency of the strftime module on the tzset module.
67552         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67553         gl_FUNC_TZSET_CLOBBER.
67554
67555 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         Remove the dependency of the strftime module on the tzset module.
67558         * lib/strftime.c (my_strftime)
67559         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67560         Copy the input structure, to work around some of the bug with
67561         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67562         Solaris releases, you should also use the tzset module, but we won't
67563         require it as a dependency any more since we don't want LGPLed code
67564         to depend on GPLed code.
67565
67566 2005-07-02  Jim Meyering  <jim@meyering.net>
67567
67568         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67569         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67570         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67571         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67572
67573 2005-07-02  Jim Meyering  <jim@meyering.net>
67574
67575         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67576
67577 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67580         declares only 'struct timespec;' (!).
67581
67582 2005-07-01  Jim Meyering  <jim@meyering.net>
67583
67584         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67585         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67586         * lib/save-cwd.c, tempname.c:
67587         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67588         and don't include <sys/file.h>).
67589
67590 2005-06-29  Jim Meyering  <jim@meyering.net>
67591
67592         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67593         type name.  Use the variable name instead.
67594         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67595         Likewise.
67596
67597 2005-06-28  Simon Josefsson  <jas@extundo.com>
67598
67599         * modules/check-version (Files): Add check-version.m4.
67600
67601 2005-06-28  Simon Josefsson  <jas@extundo.com>
67602
67603         * m4/check-version.m4: New file, suggested by Jim Meyering
67604         <jim@meyering.net>.
67605
67606 2005-06-28  Simon Josefsson  <jas@extundo.com>
67607
67608         * lib/check-version.h, lib/check-version.c: New files.
67609
67610 2005-06-28  Simon Josefsson  <jas@extundo.com>
67611
67612         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67613         collision with global variable.  Better indentation.  Don't
67614         increment buffer pointer beyond buffer end.  Based on comments
67615         from Paul Eggert <eggert@cs.ucla.edu>.
67616
67617         * lib/base64.h: Indent.
67618
67619 2005-06-28  Simon Josefsson  <jas@extundo.com>
67620
67621         * doc/gnulib.texi (Library version handling): New section.
67622
67623 2005-06-28  Jim Meyering  <jim@meyering.net>
67624
67625         * check-module (find_included_lib_files): Hard-code another
67626         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67627         but modules/fts-lgpl (correctly) does not list those files.
67628
67629         * modules/canonicalize (Files): Add lib/pathmax.h.
67630
67631 2005-06-25  Simon Josefsson  <jas@extundo.com>
67632
67633         * modules/check-version: New file.
67634
67635 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67638         initializer of struct addrinfo, as an indication that we don't
67639         care how many members the structure has.
67640
67641 2005-06-24  Derek Price  <derek@ximbiot.com>
67642         and Bruno Haible  <bruno@clisp.org>
67643
67644         Remove stat module & update lstat.
67645         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67646         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67647         * m4/stat.m4: Remove this file.
67648
67649 2005-06-24  Derek Price  <derek@ximbiot.com>
67650         and Bruno Haible  <bruno@clisp.org>
67651
67652         Remove stat module & update lstat.
67653         * lib/stat.c: Remove this file...
67654         (slash_aware_lstat): ...moving this content and its support...
67655         * lib/lstat.c (rpl_lstat): ...into here.
67656         * lib/lstat.h: New file.
67657
67658 2005-06-24  Derek Price  <derek@ximbiot.com>
67659         and Bruno Haible  <bruno@clisp.org>
67660
67661         Remove stat module & update lstat.
67662         * config/srclist.txt (libc sources): Remove stat.
67663
67664 2005-06-24  Derek Price  <derek@ximbiot.com>
67665         and Bruno Haible  <bruno@clisp.org>
67666
67667         Remove stat module & update lstat.
67668         * MODULES.html.sh (stat): Remove.
67669         * MODULES.html: Regenerated.
67670         * modules/lstat (Description): Correct function name.
67671         (Files): Add "lstat.h".
67672         (Depends-on): Remove stat, add xalloc, stat-macros.
67673         * modules/stat: Remove this file.
67674         (Include): Add "lstat.h", remove <sys/stat.h>.
67675
67676 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67679         (ranged_convert): Don't save conversion in a temporary struct.
67680         This causes a warning with GCC 4.0.0, and anyway in the typical
67681         case it's not worth the extra 100 bytes or so of code.
67682         (ranged_convert, __mktime_internal): When calling a function via a
67683         pointer P, use P () rather than (*P) (), as we now assume C89 or
67684         better.
67685
67686 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67687
67688         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67689         "who -r" failed to give output.  Problem reported by Tim Waugh.
67690
67691         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67692         (xcalloc): Use it to avoid needless tests.
67693         Problem reported by Jim Meyering.
67694
67695 2005-06-20  Derek Price  <derek@ximbiot.com>
67696
67697         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67698         unnecessary for Autoconfs > 2.59c.
67699
67700 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67701
67702         * lib/argp.h (__option_is_short): Check upper limit of
67703         __key. Isprint() requires its argument to have the value
67704         of an unsigned char or EOF.
67705
67706 2005-06-16  Jim Meyering  <jim@meyering.net>
67707
67708         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67709         when either N or S is zero.
67710
67711 2005-06-16  Derek Price  <derek@ximbiot.com>
67712
67713         * m4/bison.m4: Declare YACC & YFLAGS precious.
67714
67715 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67716
67717         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67718         multibyte string or pattern, fall back on unibyte matching.
67719         Problem reported by James Youngman.
67720
67721 2005-06-08  Bruno Haible  <bruno@clisp.org>
67722
67723         * modules/csharpcomp: New file.
67724         * MODULES.html.sh (C#): Add csharpcomp.
67725
67726 2005-06-08  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/csharpcomp.m4: New file, from GNU gettext.
67729
67730 2005-06-08  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/csharpcomp.h: New file, from GNU gettext.
67733         * lib/csharpcomp.c: New file, from GNU gettext.
67734         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67735
67736 2005-06-08  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67739         warning on mingw.
67740
67741 2005-06-07  Derek Price  <derek@ximbiot.com>
67742
67743         Sync from CVS.
67744         * lib/glob_.h: Indent nested #ifdef.
67745
67746 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         Sync from coreutils.
67749         Use "file name" when talking about file names, instead of "filename"
67750         or "path", as per the GNU coding standards.
67751         * lib/mkdir-p.c: Renamed from makepath.c.
67752         (make_dir_parents): Renamed from make_path.  All callers changed.
67753         * lib/mkdir-p.h: Likewise.  All includers changed.
67754         * lib/filenamecat.c: Renamed from path-concat.c.
67755         (file_name_concat): Renamed from path_concat.  All callers changed.
67756         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67757         * lib/filenamecat.h: Likewise.  All includers changed.
67758         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67759         in comments or local variable names.
67760         * lib/basename.c: Likewise.
67761         * lib/canonicalize.c, canonicalize.h: Likewise.
67762         * lib/dirname.c, dirname.h: Likewise.
67763         * lib/euidaccess.c: Likewise.
67764         * lib/exclude.c: Likewise
67765         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67766         * lib/fsusage.c, fsuage.h: Likewise.
67767         * lib/fts.c, fts_.h: Likewise.
67768         * lib/getcwd.c: Likewise.
67769         * lib/getloadavg.c: Likewise.
67770         * lib/mkstemp.c: Likewise.
67771         * lib/mountlist.c, mountlist.h: Likewise.
67772         * lib/openat.c, openat.h: Likewise.
67773         * lib/readlink-stub.c: Likewise.
67774         * lib/readutmp.c, readutmp.h: Likewise.
67775         * lib/rename.c: Likewise.
67776         * lib/rmdir.c: Likewise.
67777         * lib/same.c: Likewise.
67778         * lib/savedir.c: Likewise.
67779         * lib/stripslash.c: Likewise.
67780         * lib/tempname.c: Likewise.
67781         * lib/xreadlink.c: Likewise.
67782         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67783         All uses changed.
67784         * lib/exclude.h: Likewise.
67785
67786         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67787         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67788         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67789         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67790         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67791         files have been getting away with it for years (MORE/BSD 4.3
67792         is extinct now).
67793         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67794         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67795
67796         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67797         Define to 256, not 255, as per modern POSIX.
67798
67799 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67800
67801         Sync from coreutils.
67802         Use "file name" when talking about file names, instead of "filename"
67803         or "path", as per the GNU coding standards.
67804         * MODULES.html.sh: mkdir-p renamed from makepath.
67805         filenamecat renamed from path-concat.
67806         * modules/filenamecat: Renamed from modules/path-concat.
67807         (Files): filenamecat.h and filenamecat.c renamed from
67808         path-concat.h and path-concat.c.
67809         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67810         (Include): filenamecat.h, not path-concat.h.
67811         * modules/mkdir-p: Renamed from modules/makepath.
67812         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67813         makepath.c.
67814         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67815         (Include): mkdir-p.h, not makepath.h.
67816
67817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         Sync from coreutils.
67820         * m4/mkdir-p.m4: Renamed from makepath.m4.
67821         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67822         Rename files from makepath.c to mkdir-p.c, and from
67823         makepath.h to mkdir-p.h.
67824         * m4/filenamecat.m4: Renamed from path-concat.m4.
67825         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67826         Rename files from path-concat.c to filenamecat.c,
67827         and from path-concat.h to filenamecat.h.
67828         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67829         "file name" in local variables or comments.
67830         * m4/rename.m4: Likewise.
67831
67832 2005-06-01  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/csharpexec: New file.
67835         * MODULES.html.sh (C#): New section.
67836
67837 2005-06-01  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/csharp.m4: New file, from GNU gettext.
67840         * m4/csharpexec.m4: New file, from GNU gettext.
67841
67842 2005-06-01  Bruno Haible  <bruno@clisp.org>
67843
67844         * lib/csharpexec.h: New file, from GNU gettext.
67845         * lib/csharpexec.c: New file, from GNU gettext.
67846         * lib/csharpexec.sh.in: New file, from GNU gettext.
67847
67848 2005-05-31  Derek Price  <derek@ximbiot.com>
67849             Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         Sync from cvs.
67852         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67853
67854 2005-05-31  Derek Price  <derek@ximbiot.com>
67855             Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         Sync from cvs.
67858         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67859
67860 2005-05-29  Derek Price  <derek@ximbiot.com>
67861
67862         * config/srclist.txt (glob_.h, glob.c): Add these files.
67863
67864 2005-05-29  Derek Price  <derek@ximbiot.com>
67865
67866         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67867         * modules/glob: New file.
67868         * modules/getlogin_r: Add link to POSIX spec in description.
67869
67870 2005-05-29  Derek Price  <derek@ximbiot.com>
67871             Paul Eggert  <eggert@cs.ucla.edu>
67872
67873         * m4/glob.m4: New file.
67874
67875 2005-05-29  Derek Price  <derek@ximbiot.com>
67876             Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * lib/glob_.h, lib/glob.c: New files.
67879
67880 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67883         * modules/fts-lgpl (Depends-on): Remove gettext.
67884
67885 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67888         and don't require gt_INTTYPES_PRI.
67889
67890 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67893
67894         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67895         the configuration hassle isn't worth it.
67896         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67897         (LONGEST_MODIFIER, PRIuMAX): Remove.
67898
67899 2005-05-27  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67902
67903 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67906         _POSIX_PTHREAD_SEMANTICS for Solaris.
67907
67908 2005-05-25  Derek Price  <derek@ximbiot.com>
67909
67910         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67911
67912 2005-05-25  Derek Price  <derek@ximbiot.com>
67913             Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67916         * lib/getlogin_r.c, getlogin_r.h: New files.
67917
67918 2005-05-25  Bruno Haible  <bruno@clisp.org>
67919             Derek Price  <derek@ximbiot.com>
67920
67921         * lib/getlogin_r.h: Simplify API documentation.
67922
67923 2005-05-23  Derek Price  <derek@ximbiot.com>
67924
67925         * modules/minmax (Files): Add m4/minmax.m4.
67926         (configure.ac): Add gl_MINMAX.
67927
67928 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67931         so that unistd-safer.h (GPL'ed code) need not be included.
67932
67933 2005-05-22  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/minmax.m4: New file.
67936         Based on a patch by Derek Price <derek@ximbiot.com>.
67937
67938 2005-05-22  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67941         (INT64_MIN): Fix definition.
67942         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67943
67944         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67945         NEED_SIGNED_INT_TYPES.
67946
67947         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67948         HAVE_SYSTEM_INTTYPES.
67949
67950 2005-05-22  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67953         Also include <sys/param.h> if it defines MIN, MAX.
67954         Based on a patch by Derek Price <derek@ximbiot.com>.
67955
67956 2005-05-21  Jim Meyering  <jim@meyering.net>
67957
67958         * modules/fts (Files): Add m4/inttypes-pri.m4.
67959         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67960
67961 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         New fts module.
67964         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67965         (setup_dir, free_dir): New functions.
67966         (enter_dir, leave_dir): Define trivial
67967         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67968         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67969         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67970         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67971         Move to fts-cycle.c.
67972         (fts_open): Use setup_dir.
67973         (fts_close): Use free_dir.
67974         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67975         This adds a label and some gotos, but the alternatives were messier.
67976         Check for memory allocation failure when entering a dir.
67977         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67978         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67979         (FTS): New member fts_cycle, that is a union that contains the
67980         old active_dir_ht and cycle_state.  All uses changed to mention
67981         fts_cycle.ht and fts_cycle.state.
67982         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67983         fts.c, with the following changes:
67984         (setup_dir, free_dir): New functions.
67985         (enter_dir): Now returns bool.  Return true if successful, false
67986         if memory exhausted.  All callers changed.
67987         Do not bother partly cleaning up on
67988         memory allocation failure; that is free_dir's job.
67989         However, free ad if hash_insert fails, to avoid memory leak.
67990         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67991         fts->fts_options to see which union member to use.
67992
67993 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67996         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67997
67998 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68001
68002 2005-05-20  Jim Meyering  <jim@meyering.net>
68003
68004         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68005         Now a macro, to pacify GCC.
68006
68007 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68008
68009         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68010         of -1.
68011
68012 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68013
68014         * lib/chown.c (rpl_chown): Return -1 on failure.
68015
68016 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68019         Don't check for stddef.h.
68020         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68021         don't use its results.
68022         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68023         since we include them unconditionally.  Don't require
68024         AM_STDBOOL_H, since stdbool is a prerequisite.
68025         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68026         since we assume C89 or better.
68027         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68028         as we don't use their results.
68029         Don't check for fchdir, memmove, memset, strrchr, as we use
68030         them unconditionally.
68031         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68032         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68033
68034 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68037         Include <stddef.h> unconditionally, since we assume C89 now.
68038         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68039         * lib/fts.c: Include fts_.h first, to check interface.
68040         Do not include intprops.h; no longer needed.
68041         Include cycle-check.h and hash.h, since fts_.h no longer does.
68042         Remove unnecessary casts of closedir to void.
68043         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68044         decide whether to decrement nlinks.
68045         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68046         (FTS): Use struct hash_table * instead of Hash_table, so that
68047         we no longer need to include hash.h here.
68048
68049 2005-05-18  Jim Meyering  <jim@meyering.net>
68050
68051         * modules/dirfd (License): Change to LGPL.  Most of the code
68052         is already in the public domain.
68053
68054 2005-05-18  Jim Meyering  <jim@meyering.net>
68055
68056         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68057         Reported by Yoann Vandoorselaere.
68058
68059 2005-05-17  Jim Meyering  <jim@meyering.net>
68060
68061         * m4/fts.m4: New file, from coreutils.
68062
68063 2005-05-17  Jim Meyering  <jim@meyering.net>
68064
68065         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68066
68067 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         Sync from coreutils.
68070         * m4/unlinkdir.m4: New file.
68071
68072 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         Sync from coreutils.
68075         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68076         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68077         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68078         White space changes only.
68079         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68080         special.
68081         * lib/yesno.c: Include getline.h, not ctype.h.
68082         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68083         Use getline to remove arbitrary restriction on response length.
68084
68085 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * config/srclist-update: Spell out "Street" in FSF postal
68088         mail address; this is the style the FSF seems to prefer.
68089
68090         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68091         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68092         this updates FSF postal mail address.
68093
68094         Sync from coreutils.
68095         * modules/unlinkdir: New file.
68096         * modules/yesno (Depends-on): Add getline.
68097         * MODULES.html.sh (File system functions): Add unlinkdir.
68098
68099 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68102         lib/strsep.h:
68103         Change the initial comment to refer to GPL, not LGPL.
68104         gnulib-tool will change it to LGPL as needed.
68105
68106         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68107         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68108         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68109         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68110         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68111         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68112         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68113         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68114         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68115         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68116         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68117         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68118         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68119         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68120         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68121         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68122         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68123         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68124         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68125         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68126         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68127         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68128         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68129         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68130         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68131         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68132         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68133         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68134         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68135         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68136         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68137         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68138         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68139         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68140         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68141         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68142         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68143         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68144         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68145         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68146         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68147         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68148         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68149         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68150         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68151         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68152         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68153         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68154         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68155         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68156         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68157         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68158         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68159         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68160         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68161         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68162         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68163         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68164         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68165         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68166         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68167         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68168         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68169         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68170         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68171         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68172         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68173         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68174         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68175         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68176         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68177         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68178         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68179         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68180         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68181         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68182         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68183         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68184         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68185         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68186         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68187         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68188         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68189         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68190         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68191         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68192         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68193         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68194         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68195         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68196         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68197         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68198         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68199         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68200         lib/yesno.c, lib/yesno.h:
68201         Update FSF postal mail address.
68202
68203 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68206         tests/test-memmem.c, tests/test-stpncpy.c:
68207         Update FSF postal mail address.
68208
68209 2005-05-13  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68212         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68213         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68214         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68215         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68216         Add support for 64-bit integers in the MSVC compiler.
68217
68218 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68219
68220         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68221
68222 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68223
68224         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68225
68226 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * doc/getdate.texi (General date syntax): Don't say that date
68229         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68230         Problem reported by Nic Ferrier.
68231
68232 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68233
68234         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68235         specified in ai_socktype. Fix invalid ai_protocol
68236         check. ai_protocol is usually set to 0 or depending on
68237         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68238         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68239         ai_socktype / ai_protocol in the returned addrinfo structure.
68240
68241 2005-05-10  Simon Josefsson  <jas@extundo.com>
68242
68243         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68244         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68245
68246 2005-05-10  Karl Berry  <karl@gnu.org>
68247
68248         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68249         (from http://www.gnu.org/licenses).
68250         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68251         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68252         fdl.texi suffices.
68253
68254 2005-05-10  Karl Berry  <karl@gnu.org>
68255
68256         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68257         (COPYING.DOC): remove.
68258
68259         * config/srclist-update: new FSF address.
68260
68261 2005-05-10  Derek Price  <derek@ximbiot.com>
68262
68263         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68264         possible.
68265
68266 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68267             Bruno Haible  <bruno@clisp.org>
68268
68269         * modules/inet_ntop: New file.
68270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68271         inet_ntop.
68272
68273 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68274             Bruno Haible  <bruno@clisp.org>
68275
68276         * m4/inet_ntop.m4: New file.
68277
68278 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68279             Bruno Haible  <bruno@clisp.org>
68280
68281         * lib/inet_ntop.h: New file.
68282         * lib/inet_ntop.c: New file, from glibc with modifications.
68283
68284 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * modules/time_r (License): Change to LGPL.
68287         * modules/extensions (License): Change to LGPL.  Actually,
68288         the license is more permissive than that, but currently gnulib-tool
68289         doesn't know how to handle more-permissive licenses.
68290
68291         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68292         Problem reported by Dave Love.
68293
68294 2005-05-08  Jim Meyering  <jim@meyering.net>
68295
68296         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68297         blank.
68298
68299 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         * modules/argmatch (Depends-on): Add stdbool.
68302         * modules/backupfile (Depends-on): Likewise.
68303         * modules/chdir-long (Depends-on): Likewise.
68304         * modules/closeout (Depends-on): Likewise.
68305         * modules/cycle-check (Depends-on): Likewise.
68306         * modules/dirname (Depends-on): Likewise.
68307         * modules/fnmatch (Depends-on): Likewise.
68308         * modules/fsusage (Depends-on): Likewise.
68309         * modules/fwriteerror (Depends-on): Likewise.
68310         * modules/getcwd (Depends-on): Likewise.
68311         * modules/getloadavg (Depends-on): Likewise.
68312         * modules/hard-locale (Depends-on): Likewise.
68313         * modules/makepath (Depends-on): Likewise.
68314         * modules/mountlist (Depends-on): Likewise.
68315         * modules/nanosleep (Depends-on): Likewise.
68316         * modules/posixtm (Depends-on): Likewise.
68317         * modules/quotearg (Depends-on): Likewise.
68318         * modules/readtokens (Depends-on): Likewise.
68319         * modules/readtokens0 (Depends-on): Likewise.
68320         * modules/readutmp (Depends-on): Likewise.
68321         * modules/save-cwd (Depends-on): Likewise.
68322         * modules/strftime (Depends-on): Likewise.
68323         * modules/userspec (Depends-on): Likewise.
68324         * modules/utimecmp (Depends-on): Likewise.
68325         * modules/xgetcwd (Depends-on): Likewise.
68326         * modules/xnanosleep (Depends-on): Likewise.
68327         * modules/xstrtod (Depends-on): Likewise.
68328         * modules/yesno (Depends-on): Likewise.
68329
68330 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68333         needless checks.
68334
68335 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         Merge from coreutils.  Among other things,
68338         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68339         * lib/fd-safer.c: New file.
68340         * lib/fcntl-safer.h, open-safer.c: Remove.
68341         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68342         * lib/dup-safer.c: Include unistd-safer.h first.
68343         Don't include errno.h.
68344         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68345         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68346         * lib/file-type.c: Rely on file-type.h change.
68347         * lib/getloadavg.c: Include unistd-safer.h.
68348         (getloadavg): Use safer open.
68349         * lib/getusershell.c: Include "stdio-safer.h".
68350         (getusershell): Use safer fopen.
68351         * lib/long-options.c (long_options): Use NULL rather than 0.
68352         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68353         'free'.
68354         * lib/modechange.c: Likewise.
68355         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68356         (MODE_DONE): New constant.
68357         (struct mode_change): Remove 'next' member.
68358         (make_node_op_equals): New function; like the old one of the
68359         same name, except it allocates an array.
68360         (mode_compile, mode_create_from_ref): Use it.
68361         (mode_compile): Allocate result as an array, not a linked list.
68362         Parse octal string ourself, so that we catch mistakes like "+0".
68363         (mode_adjust): Arg is an array, not a linked list.
68364         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68365         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68366         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68367         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68368         Remove.  This is now stat-macros.h's job.
68369         (talloc): Remove.  All callers replaced by xalloc, so that
68370         our invokers don't have to worry about reporting memory failures.
68371         (make_node_op_equals): Remove.
68372         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68373         New constants.
68374         (struct mode_change): Moved here from modechange.h.
68375         (mode_append_entry): Remove.
68376         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68377         apps to have incorrect behavior.  Use simpler algorithm for head
68378         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68379         Detect more invalid usages rather than having somewhat-random behavior.
68380         Don't insert an "a=" action, as that leads to incorrect behavior.
68381         (mode_compile, mode_create_from_ref): Return NULL on error instead
68382         of an enum, since now there's only one way to have an error.  All
68383         callers changed.
68384         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68385         at the correct time.  Simplify calculation of "+u" and its ilk.
68386         Don't mishandle "+X".
68387         (mode_free): Remove "register" and localize decls.
68388         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68389         (struct mode_change): Move to modechange.c; callers don't
68390         need to see this stuff.
68391         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68392         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68393         (mode_change, mode_adjust): Reflect the new signatures noted above.
68394         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68395         that might redefine system include files.
68396         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68397         (my_usleep): Use NULL rather than (void *) 0.
68398         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68399         Use siginterrupt to specify that system calls should be interrupted.
68400         (rpl_nanosleep): Move initialization of suspended closer to call of
68401         my_usleep.
68402         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68403         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68404         (desirable_utmp_entry): New function.
68405         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68406         using x2nrealloc, to simplify logic.
68407         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68408         size calculation.  Do not assume utmp file is a regular file.
68409         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68410         (READ_UTMP_CHECK_PIDS): New constant.
68411         * lib/save-cwd.c: Include unistd-safer.h.
68412         (save_cwd): Use fd_safer.
68413         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68414         [!_LIBC] Include "stat-macros.h" instead.
68415         * lib/unistd-safer.h (fd_safer): New decl.
68416
68417 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * modules/getloadavg (Depends-on): Add unistd-safer.
68420         * modules/getusershell (Depends-on): Add stdio-safer.
68421         * modules/lstat (Depends-on): Remove xalloc.
68422         * modules/mkstemp (Depends-on): Add stat-macros.
68423         * modules/modechange (Depends-on): Remove xstrtol.
68424         Add stat-macros, xalloc.
68425         * modules/save-cwd (Depends-on): Add unistd-safer.
68426         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68427         * modules/unistd-safer (Files): Add lib/fd-safer.c
68428         (Makefile.am): Remove lib_SOURCES.
68429
68430         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68431         Remove fcntl-safer; unistd-safer supersedes it.
68432
68433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68436         AC_HEADER_STAT.
68437         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68438         (gl_PREREQ_CHOWN): Remove.
68439         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68440         it.  Don't require AC_HEADER_STAT.
68441         (gl_PREREQ_LSTAT): Remove.
68442         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68443         Don't require AC_HEADER_STAT.
68444         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68445         (gl_PREREQ_RMDIR): Remove.
68446         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68447         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68448         the stat-macros module a prerequisite.
68449         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68450         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68451         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68452         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68453         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68454         variable names.
68455         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68456         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68457         variable prefixes.
68458         * m4/fcntl-safer.m4: Remove.
68459         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68460         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68461         Invoke gl_PREREQ_FD_SAFER.
68462         (gl_PREREQ_FD_SAFER): New macro.
68463         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68464         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68465         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68466         Remove duplicate call to AC_LIBOBJ(readutmp).
68467         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68468
68469         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68470         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68471
68472 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * MODULES.html.sh (Misc): Add byteswap.
68475
68476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68477
68478         * modules/getcwd (Depends-on): Add extensions.
68479         * modules/openat (Depends-on): Likewise.
68480
68481 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68482
68483         * modules/byteswap: New file.
68484
68485 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68486
68487         * m4/byteswap.m4: New file.
68488
68489 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68490
68491         * lib/byteswap_.h: New file.
68492
68493 2005-04-25  Karl Berry  <karl@gnu.org>
68494
68495         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68496
68497 2005-04-25  Albert Chin  <china@thewrittenword.com>
68498
68499         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68500         Toolkit C bug.
68501
68502 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68503
68504         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68505         (func_ln_if_changed): Remove forcibly for no error message
68506         in case file does not exist.
68507
68508 2005-04-19  Simon Josefsson  <jas@extundo.com>
68509
68510         * gnulib-tool (Options): Make --symlink mean --symbolic.
68511
68512 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68513
68514         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68515
68516 2005-04-16  Simon Josefsson  <jas@extundo.com>
68517
68518         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68519
68520 2005-04-15  Simon Josefsson  <jas@extundo.com>
68521
68522         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68523
68524 2005-04-15  Simon Josefsson  <jas@extundo.com>
68525
68526         * gnulib-tool: Rename --symlink to --symbolic.
68527
68528 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68529
68530         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68531         symbolic links to files instead of copying/moving.  Add --aux-dir,
68532         specifying directory relative --dir where auxiliary build tools
68533         are placed.
68534
68535 2005-04-14  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/allocsa (License): Change to LGPL.
68538         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68539
68540 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68541
68542         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68543         that "UTC +1 second" continues to work.  Problem reported
68544         by Dmitry V. Levin.
68545         (relunit_snumber): New rule.
68546         (relunit): Use it.
68547
68548 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * lib/getdate.y (universal_time_zone_table): New constant.
68551         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68552         universal_time_zone_table.
68553         (lookup_zone): Prefer universal_time_zone_table to
68554         local_time_zone_table, so that "GMT" time stamps are allowed in
68555         London during the summer.  Problem reported by Ian Abbott.
68556
68557 2005-04-12  Jim Meyering  <jim@meyering.net>
68558
68559         * lib/human.c (humblock): Set *options even when returning due to
68560         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68561         warning from gcc-4.
68562
68563 2005-04-09  Jim Meyering  <jim@meyering.net>
68564
68565         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68566         -Wuninitialized: initialize tm0.tm_year.
68567
68568 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68571         count, since there's no maximum.  All uses changed.
68572         Add member dsts_seen.
68573         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68574         not being INT_MAX.
68575         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68576         Use pc_rels_seen to decide whther a date is absolute.
68577
68578         * lib/getdate.y (number): Don't overwrite year.
68579         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68580         check.
68581
68582 2005-04-02  Simon Josefsson  <jas@extundo.com>
68583
68584         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68585         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68586
68587 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68588
68589         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68590         where no absolute path name can be longer than PATH_MAX.
68591
68592 2005-03-27  Jim Meyering  <jim@meyering.net>
68593
68594         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68595
68596 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68599         "one's complement" -> "ones' complement" in comment, as per Knuth.
68600         "value of type" -> "type or expression" in comment.
68601         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68602
68603 2005-03-26  Jim Meyering  <jim@meyering.net>
68604
68605         Comment nits.
68606         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68607         Correct typos: s/or/of/.
68608
68609 2005-03-26  Jim Meyering  <jim@meyering.net>
68610
68611         * modules/check-include-files: Move to ../ and rename to...
68612         * check-module: ...this.
68613
68614 2005-03-25  Jim Meyering  <jim@meyering.net>
68615
68616         * modules/xvasprintf (Files): Add xalloc.h.
68617
68618 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * modules/gettext (Files): config/config.rpath ->
68621         build-aux/config.rpath
68622         * modules/iconv (Files): Likewise.
68623         Problem reported by Oskar Liljeblad.
68624
68625 2005-03-23  Jim Meyering  <jim@meyering.net>
68626
68627         * modules/check-include-files: New script to check for
68628         missing dependencies, multiple includes, etc.
68629
68630         * modules/c-strtold (Depends-on): Add xalloc.
68631         * modules/c-strtod (Depends-on): Add xalloc.
68632         * modules/hash (Depends-on): Add xalloc.
68633         (Files): Remove lib/xalloc.h.
68634
68635         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68636         * modules/userspec (Files): Add lib/inttostr.h.
68637
68638 2005-03-23  Jim Meyering  <jim@meyering.net>
68639
68640         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68641
68642 2005-03-22  Jim Meyering  <jim@meyering.net>
68643
68644         * modules/stat-macros: New module.
68645         * modules/canonicalize, modules/euidaccess, modules/file-type,
68646         * modules/filemode, modules/lchown, modules/makepath,
68647         * modules/rmdir, modules/stat: Depend on new stat-macros module
68648         rather than listing lib/stat-macros.h manually.
68649         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68650
68651 2005-03-22  Jim Meyering  <jim@meyering.net>
68652
68653         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68654
68655 2005-03-22  Bruno Haible  <bruno@clisp.org>
68656
68657         * config/srclist.txt: Replace target directory 'config' with
68658         'build-aux'.
68659         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68660         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68661         ../build-aux/.
68662
68663 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * modules/chdir-long (Depends-on): Add mempcpy.
68666
68667         * modules/acl, modules/backupfile, modules/c-strtod,
68668         modules/c-strtold, modules/canon-host, modules/canonicalize,
68669         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68670         modules/exclude, modules/exitfail, modules/file-type,
68671         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68672         modules/getdate, modules/getline, modules/getpagesize,
68673         modules/getpass, modules/getugroups, modules/group-member,
68674         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68675         modules/inttostr, modules/long-options, modules/makepath,
68676         modules/md5, modules/memcasecmp, modules/memcoll,
68677         modules/modechange, modules/mountlist, modules/path-concat,
68678         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68679         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68680         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68681         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68682         modules/strftime, modules/strndup, modules/strverscmp,
68683         modules/timespec, modules/unlocked-io, modules/userspec,
68684         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68685         modules/yesno:
68686         Remove lib_SOURCES line from Makefile.am section, as this is now
68687         done automatically by the corresponding Autoconf macro.
68688
68689 2005-03-21  Jim Meyering  <jim@meyering.net>
68690
68691         Changes imported from coreutils.
68692
68693         * lib/cycle-check.c: Don't include xalloc.h.
68694
68695         * lib/path-concat.c: Don't include assert.h.
68696         (path_concat): Remove assertion that would have triggered
68697         for ABASE starting with more than one slash.
68698         Reported by Andreas Schwab.
68699
68700         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68701         properly when ABASE is an absolute file name.
68702         Correct the description of this function.
68703         Include <assert.h>.
68704         Add an assertion and a test driver.
68705         This fixes a bug introduced on 2004-07-02.
68706         Andreas Schwab reported the resulting failure of cp --parents:
68707         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68708
68709 2005-03-21  Jim Meyering  <jim@meyering.net>
68710
68711         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68712         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68713
68714 2005-03-21  Jim Meyering  <jim@meyering.net>
68715         and  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68718         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68719         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68720         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68721         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68722         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68723         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68724         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68725         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68726         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68727         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68728         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68729         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68730         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68731         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68732         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68733         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68734         for these modules.
68735
68736 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68739         (which shouldn't happen), generate nothing instead of returning 0
68740         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68741
68742 2005-03-16  Bruno Haible  <bruno@clisp.org>
68743
68744         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68745         HAVE_LONGLONG_64BIT.
68746
68747 2005-03-16  Bruno Haible  <bruno@clisp.org>
68748
68749         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68750         HAVE_LONGLONG_64BIT.
68751
68752 2005-03-16  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68755         HAVE_LONGLONG_64BIT.
68756
68757 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68760         reliably distinguish strftime failure from empty output on POSIX
68761         hosts.
68762
68763 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68766         (iconv_string): Don't guess a size-zero buffer, as that might cause
68767         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68768         result would be 'too large', where 'too large' is (heuristically)
68769         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68770         overflow concerns.  This will prevent some unwanted malloc failures
68771         when the inputs are very large.
68772
68773 2005-03-15  Karl Berry  <karl@gnu.org>
68774
68775         * config/srclist.txt (config.rpath): from gettext.
68776         * config/config.rpath: update.
68777
68778 2005-03-15  Bruno Haible  <bruno@clisp.org>
68779
68780         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68781         to 'negate'.
68782
68783         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68784         variable.
68785
68786         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68787         results.
68788
68789 2005-03-14  Simon Josefsson  <jas@extundo.com>
68790
68791         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68792         <fx@gnu.org>.
68793
68794 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68797         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68798         intprops.h.
68799         * lib/strtol.c: Likewise.
68800
68801 2005-03-14  Jim Meyering  <jim@meyering.net>
68802
68803         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68804         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68805         to be nonzero so that we (and caller) can detect the difference
68806         between a valid zero-length expansion and an error return, even
68807         when the underlying strftime fails before writing anything into
68808         that location.
68809
68810 2005-03-14  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68813         Update from GNU gettext 0.14.3.
68814
68815 2005-03-10  Jim Meyering  <jim@meyering.net>
68816
68817         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68818
68819 2005-03-10  Jim Meyering  <jim@meyering.net>
68820
68821         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68822         so that this module works on systems without fchdir.
68823
68824 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68825
68826         Factor int-properties macros into a single file, except for
68827         glibc-related files.
68828         * lib/intprops.h: New file.
68829         * lib/getloadavg.c: Include it instead of limits.h.
68830         (INT_STRLEN_BOUND): Remove.
68831         * lib/human.c: Include intprops.h.
68832         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68833         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68834         302/1000.
68835         * lib/inttostr.h: Include intprops.h instead of limits.h.
68836         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68837         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68838         for consistency with intprops.h.
68839         (time_t_is_integer, twos_complement_arithmetic): Use them.
68840         * lib/sig2str.h: Include <signal.h>, intprops.h.
68841         (INT_STRLEN_BOUND): Remove.
68842         * lib/strftime.c (TYPE_SIGNED): Remove.
68843         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68844         * lib/strtol.c: Adjust comments to match intprops.h.
68845         * lib/userspec.c: Include intprops.h.
68846         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68847         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68848         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68849         instead of rolling our own expressions.
68850         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68851
68852         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68853         instead of int.
68854         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68855         the right thing even if adding 1900 would overflow.  Similarly
68856         for tm_mon + 1 and tm_yday + 1.
68857         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68858         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68859         (DO_SIGNED_NUMBER): New macro.
68860         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68861
68862 2005-03-07  Bruno Haible  <bruno@clisp.org>
68863
68864         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68865
68866 2005-03-07  Bruno Haible  <bruno@clisp.org>
68867
68868         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68869
68870 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68871
68872         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68873         (func_import): Only replace files via --import when they have actually
68874         changed.
68875
68876 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68877
68878         * m4/mmap-anon.m4: New file.
68879         * m4/pagealign_alloc.m4: New file.
68880
68881 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68882             Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/pagealign_alloc: New file.
68885         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68886
68887 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68888             Bruno Haible  <bruno@clisp.org>
68889
68890         * lib/pagealign_alloc.h: New file.
68891         * lib/pagealign_alloc.c: New file.
68892
68893 2005-03-03  Bruno Haible  <bruno@clisp.org>
68894
68895         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68896         Use an all-permissive copyright notice, recommended by RMS.
68897
68898 2005-03-02  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68901         of AIX, the replacement has to be done only after <string.h> is
68902         included, therefore not in config.h. stpncpy.h does the replacement,
68903         and stpncpy.c uses it.
68904
68905 2005-03-02  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68908         stpncpy.c uses it.
68909
68910 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68913         The workaround isn't strictly needed for POSIX conformance, and
68914         it's too much of a pain to configure and maintain.  We'll ask
68915         people to fix their kernels instead.
68916         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68917         (NANOSLEEP_BUG_WORKAROUND): Remove.
68918         (xnanosleep): Remove the workaround.
68919
68920 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68923         Reported by Derek Price.
68924         (Include): Add "timespec.h".
68925
68926         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68927
68928 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68931         to detect nanosleep bug.
68932
68933 2005-03-01  Bruno Haible  <bruno@clisp.org>
68934
68935         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68936
68937 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * modules/gethrxtime: New file.
68940         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68941         (Depends-on): Add gethrxtime.
68942         (configure.ac): Add gl_XNANOSLEEP.
68943         (Makefile.am): Remove lib_SOURCES line.
68944
68945 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68948         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68949
68950 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68953         * lib/timespec.h (gettime): Return void, since it always
68954         succeeds now.  All uses changed.
68955         * lib/gettime.c (gettime): Likewise.
68956         [HAVE_NANOTIME]: Prefer nanotime.
68957         Assume gettimeofday succeeds, as POSIX requires.
68958         Assime time () succeeds, since other code already does.
68959         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68960         (timespec_subtract): Remove.
68961         (NANOSLEEP_BUG_WORKAROUND): New constant.
68962         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68963         things considerably.  Use it only on GNU/Linux hosts, since the
68964         workaround shouldn't be needed elsewhere.
68965
68966 2005-02-24  Bruno Haible  <bruno@clisp.org>
68967
68968         * modules/gettext (Files): Add m4/glibc2.m4.
68969
68970 2005-02-24  Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68973         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68974         * m4/progtest.m4:
68975         Update from GNU gettext 0.14.2.
68976         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68977
68978 2005-02-24  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68981         * lib/config.charset: Update from GNU gettext 0.14.2.
68982
68983 2005-02-24  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/gettext.h: Update from GNU gettext 0.14.2.
68986
68987 2005-02-23  Simon Josefsson  <jas@extundo.com>
68988
68989         * m4/iconvme.m4: New file.
68990
68991 2005-02-23  Jim Meyering  <jim@meyering.net>
68992
68993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68994         change.
68995         Thanks to Bruno Haible for catching it.
68996
68997 2005-02-22  Simon Josefsson  <jas@extundo.com>
68998
68999         * modules/iconvme: New file.
69000
69001         * MODULES.html.sh: Add iconvme.
69002
69003 2005-02-22  Simon Josefsson  <jas@extundo.com>
69004
69005         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69006
69007 2005-02-22  Simon Josefsson  <jas@extundo.com>
69008
69009         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69010
69011 2005-02-22  Jim Meyering  <jim@meyering.net>
69012
69013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69014         s/ifndef/ifdef/.
69015
69016 2005-02-20  Neil Conway  <neilc@samurai.com>
69017
69018         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69019         returned by OSX/Darwin if the specified buffer is not large
69020         enough for the hostname.
69021
69022 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69023
69024         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69025         pass it to _help, otherwise the latter coredumps trying to
69026         dereference state.root_argp.
69027
69028 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * modules/chdir-long (Depends-on): Add memrchr.
69031         * modules/memrchr (Files): Add lib/memrchr.h.
69032         (Include): "memrchr.h".
69033
69034 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69037
69038 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * lib/memrchr.h: New file.
69041         * lib/chdir-long.c: Include it.
69042         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69043         Don't bother including stddef.h.
69044
69045 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69048         inclusion.
69049         Include <sys/types.h>, for dev_t.
69050         (ME_DUMMY, ME_REMOTE): Move from here....
69051         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69052         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69053         Dmitry V. Levin.
69054         Include mountlist.h first, to test the interface.
69055
69056 2005-01-29  Bruno Haible  <bruno@clisp.org>
69057
69058         * lib/progname.c (program_name): Initialize.
69059         Needed when linking statically on MacOS X.
69060
69061 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         Sync from coreutils.
69064         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69065         (Depends-on): Add c-strtod.
69066         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69067
69068 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         Sync from coreutils.
69071         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69072
69073         Remove files that are specific to coreutils.
69074         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69075
69076 2005-01-28  Bruno Haible  <bruno@clisp.org>
69077
69078         * modules/javacomp: New file.
69079         * MODULES.html.sh (Java): Add javacomp.
69080
69081 2005-01-28  Bruno Haible  <bruno@clisp.org>
69082
69083         * m4/javacomp.m4: New file, from GNU gettext.
69084
69085 2005-01-28  Bruno Haible  <bruno@clisp.org>
69086
69087         * lib/javacomp.sh.in: New file, from GNU gettext.
69088         * lib/javacomp.h: New file, from GNU gettext.
69089         * lib/javacomp.c: New file, from GNU gettext.
69090
69091 2005-01-26  Simon Josefsson  <jas@extundo.com>
69092
69093         * lib/gai_strerror.c: Use GPL in header.
69094
69095 2005-01-26  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/javaexec: New file.
69098         * MODULES.html.sh (Java): Add javaexec.
69099
69100 2005-01-26  Bruno Haible  <bruno@clisp.org>
69101
69102         * m4/javaexec.m4: New file, from GNU gettext.
69103
69104 2005-01-26  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/javaexec.sh.in: New file, from GNU gettext.
69107         * lib/javaexec.h: New file, from GNU gettext.
69108         * lib/javaexec.c: New file, from GNU gettext.
69109
69110 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69111
69112         * modules/lchown (Depends-on): Remove lchown.h
69113
69114 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69115
69116         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69117         must be defined if the header file was not found, in order
69118         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69119
69120 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69121
69122         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69123         initializers for struct pentry_state.
69124         (__argp_error): Check return value of __asprintf
69125         (__argp_failure): Translate error message
69126
69127         * lib/argp-parse.c: Removed braces around the expansion of N_()
69128
69129 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69132         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69133         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69134         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69135         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69136         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69137         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69138         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69139         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69140         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69141         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69142         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69143         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69144         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69145         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69146         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69147         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69148         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69149         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69150         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69151         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69152         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69153         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69154         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69155         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69156         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69157         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69158         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69159         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69160         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69161         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69162         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69163         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69164         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69165         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69166         Use an all-permissive copyright notice, recommended by RMS.
69167
69168 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * modules/chdir-long (Depends-on): Remove mempcpy.
69171
69172 2005-01-21  Jim Meyering  <jim@meyering.net>
69173
69174         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69175         same value as for Solaris 9.
69176
69177         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69178         component length.  This included changing the parameter to be
69179         of type `char *' rather than `char const *'.
69180         * lib/chdir-long.h (chdir_long): Update prototype.
69181
69182         * lib/openat.c (fdopendir, fstatat): New functions.
69183         * lib/openat.h: Include headers required for use of DIR and struct
69184         stat.
69185         [AT_SYMLINK_NOFOLLOW]: Define.
69186         (fdopendir, fstatat): Add prototypes.
69187
69188 2005-01-21  Bruno Haible  <bruno@clisp.org>
69189
69190         * modules/classpath: New file.
69191         * MODULES.html.sh (Java): Add classpath.
69192
69193 2005-01-21  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/classpath.h: New file, from GNU gettext.
69196         * lib/classpath.c: New file, from GNU gettext.
69197
69198 2005-01-20  Simon Josefsson  <jas@extundo.com>
69199
69200         * modules/version-etc-fsf: New file.
69201
69202 2005-01-20  Simon Josefsson  <jas@extundo.com>
69203
69204         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69205         * lib/version-etc.c: Remove version_etc_copyright.
69206         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69207         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69208
69209 2005-01-20  Simon Josefsson  <jas@extundo.com>
69210
69211         * lib/base64.h (isbase64): Add.
69212
69213         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69214         using a unsigned prototype, don't inline.
69215         (base64_decode): Use it.
69216
69217 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69220         it.
69221
69222 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * lib/save-cwd.c (save_cwd): Remove code to support the case
69225         where fchdir is missing or flaky.
69226
69227 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69230
69231 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69234         AC_LIBSOURCES now does this.
69235         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69236         with new ullong_max module.
69237
69238 2005-01-19  Bruno Haible  <bruno@clisp.org>
69239
69240         * modules/sh-quote: New file.
69241         * MODULES.html.sh (Executing programs): Add sh-quote.
69242
69243 2005-01-19  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/sh-quote.h: New file, from GNU gettext.
69246         * lib/sh-quote.c: New file, from GNU gettext.
69247
69248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         Merge from coreutils.
69251         * m4/ullong_max.m4: New file.
69252         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69253         (gl_MACROS): Assume localeconv exists.
69254
69255 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         Merge changes from coreutils, as described below in several
69258         changelogs dated today.
69259
69260         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69261         (O_DIRECTORY): Remove; not needed here, since "." must be
69262         a directory.  All uses removed.
69263         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69264         universal on Suns, and we also need to test for IRIX.
69265         Revamp code to use 'if' rather than '#if'.
69266         Avoid unnecessary comparison of cwd->desc to 0.
69267
69268         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69269         for known valid error numbers rather than observed invalid ones.
69270
69271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69272
69273         * modules/ullong_max: New file.
69274
69275         * modules/chdir-long, modules/openat: New files.
69276         * modules/save-cwd (Depends-on): Depend on chdir-long.
69277         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69278
69279 2005-01-18  Jim Meyering  <jim@meyering.net>
69280
69281         Merge from coreutils.
69282         * m4/chdir-long.m4, m4/openat.m4: New files.
69283         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69284         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69285         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69286         is sane and DOES follow symlinks.  Besides, testing 20 different
69287         systems found no broken chown implementations.
69288         Prompted by a change in rsync's copy of this macro.
69289         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69290
69291         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69292
69293         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69294         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69295         NULL-means-set-to-current-time semantics.
69296         Remove temporary file immediately, rather than waiting
69297         for configure's at-exit trap code to do it.
69298
69299 2005-01-18  Jim Meyering  <jim@meyering.net>
69300
69301         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69302
69303         * lib/utimens.c (futimens): Account for the fact that futimes
69304         can also fail with errno == ENOSYS or errno == ENOENT.
69305         Patch from Dmitry V. Levin.
69306
69307         Change the name of the robust chdir function from chdir to chdir_long.
69308         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69309         (restore_cwd): Use chdir_long, not chdir.
69310         * lib/chdir-long.c: Renamed from chdir.c.
69311         * lib/chdir-long.h: Renamed from chdir.h.
69312         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69313         Hurd.
69314
69315 2005-01-18  Bruno Haible  <bruno@clisp.org>
69316
69317         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69318         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69319         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69320         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69321         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69322         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69323         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69324         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69325         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69326         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69327         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69328         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69329         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69330         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69331         Use an all-permissive copyright notice, recommended by RMS.
69332
69333 2005-01-18  Bob Proulx  <bob@proulx.com>
69334
69335         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69336         simplify offsetof() macro construct to avoid compile failure with
69337         native HP-UX 11.0 ANSI C compiler.
69338
69339 2005-01-17  Bruno Haible  <bruno@clisp.org>
69340
69341         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69342         redundant because stpncpy.m4 takes care of it.
69343
69344 2005-01-17  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69347
69348 2005-01-17  Bruno Haible  <bruno@clisp.org>
69349
69350         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69351         used.
69352
69353 2005-01-17  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/fwriteerror.h (fwriteerror): Change specification to include
69356         fclose.
69357         * lib/fwriteerror.c: Include <stdbool.h>.
69358         (fwriteerror): At the end, close the file stream. Record whether
69359         stdout was already closed.
69360
69361 2005-01-17  Bruno Haible  <bruno@clisp.org>
69362
69363         * lib/execute.c (environ): Declare if needed.
69364         * lib/pipe.c (environ): Likewise.
69365         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69366
69367 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69368
69369         * modules/argp: Depend on vsnprintf
69370
69371 2005-01-10  Jim Meyering  <jim@meyering.net>
69372
69373         * modules/closeout (Depends-on): Add atexit.
69374
69375 2005-01-06  Bruno Haible  <bruno@clisp.org>
69376
69377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69378
69379 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69382         definitions to be after all include files, to avoid collisions.
69383         Problem reported by Bob Proulx.
69384
69385 2005-01-04  Jim Meyering  <jim@meyering.net>
69386
69387         Changes imported from coreutils.
69388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69389         as the mkstemp template, use a temporary directory and an
69390         8.3-friendly template to avoid trouble on systems like DJGPP.
69391         Reported by Juan M. Guerrero via Stepan Kasal.
69392         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69393         close. Remove the temporary directory right away, rather than waiting
69394         for configure's at-exit trap code to do it.
69395         Suggestion from Stepan Kasal.
69396
69397 2005-01-01  Simon Josefsson  <jas@extundo.com>
69398
69399         * gnulib-tool: Print #include directives when --import'ing.
69400
69401 2004-12-28  Simon Josefsson  <jas@extundo.com>
69402
69403         * tests/test-base64.c: Include required header files.  Remove
69404         unused variables.
69405
69406 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69407
69408         * modules/error (Depends-on): Remove gettext.
69409
69410 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69413         not needed.  This removes a dependency on the gettext module.
69414         [defined _LIBC]: Do not include <libintl.h>; not needed.
69415
69416 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69419         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69420
69421 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69424         HAVE_DECL_STRTOLD.
69425
69426 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * modules/getdate (Depends-on): Remove alloca-opt.
69429
69430 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69433
69434 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * lib/argp-parse.c: Include <stddef.h>.
69437         (alignof, alignto): New macros.
69438         (parser_init): Don't assume that void * is aligned sufficiently
69439         for struct option.
69440
69441         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69442         need to extend the stack.
69443         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69444         large.
69445
69446 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69447
69448         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69449
69450 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69451
69452         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69453         (2004-10-24) change.  Apparently this was a false alarm.
69454
69455         * modules/getdate: Depend on alloca-opt, not alloca.
69456
69457 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69460         Remove now-obsolete comment about AIX.
69461         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69462         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69463         (YYMAXDEPTH): New macro.
69464
69465 2004-12-18  Simon Josefsson  <jas@extundo.com>
69466
69467         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69468
69469 2004-12-18  Bruno Haible  <bruno@clisp.org>
69470
69471         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69472
69473 2004-12-18  Bruno Haible  <bruno@clisp.org>
69474
69475         * lib/fatal-signal.c (fatal_signals): Make non-const.
69476         (init_fatal_signals): New function.
69477         (uninstall_handlers, install_handlers): Ignore signals that were set to
69478         SIG_IGN.
69479         (at_fatal_signal): Call init_fatal_signals.
69480         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69481         SIG_IGN.
69482         Reported by Paul Eggert.
69483
69484 2004-12-18  Bruno Haible  <bruno@clisp.org>
69485
69486         * doc/alloca.texi: New file.
69487         * doc/alloca-opt.texi: New file.
69488
69489 2004-12-17  Jim Meyering  <jim@meyering.net>
69490
69491         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69492         Otherwise, install-sh could exit with improper exit status when
69493         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69494
69495 2004-12-16  Simon Josefsson  <jas@extundo.com>
69496
69497         * tests/test-base64.c: Add license.
69498
69499 2004-12-15  Stepan Kasal  <address@hidden>
69500
69501         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69502
69503 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69504
69505         * modules/getcwd (Files): Add m4/d-ino.m4.
69506         Suggested by Mark D. Baushke.
69507
69508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * lib/getdate.y (textint): New member "negative".
69511         (time_zone_hhmm): New function.
69512         Expect 14 shift-reduce conflicts, not 13.
69513         (o_colon_minutes): New rule.
69514         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69515         (yylex): Set the "negative" member of signed numbers.
69516
69517 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * doc/getdate.texi (Time of day items, Time zone items):
69520         Describe new formats +00:00, UTC+00:00.
69521
69522 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69525         spurious "-l"s.  Problem reported by Stepan Kasal.
69526
69527 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69530         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69531
69532 2004-12-04  Simon Josefsson  <jas@extundo.com>
69533
69534         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69535         Vandoorselaere <yoann@prelude-ids.org>.
69536
69537 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         Changes imported from coreutils.
69540         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69541         exist.
69542         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69543
69544 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         Changes imported from coreutils.
69547         * lib/hard-locale.c: Assume <locale.h> exists.
69548         Include "strdup.h".
69549         (GLIBC_VERSION): New macro.
69550         (hard_locale): Assume setlocale exists.
69551         Rewrite to avoid #ifdef.
69552         Use strdup rather than malloc + strcpy.
69553         * lib/human.c: Assume <locale.h> exists.
69554         (human_readable): Assume localeconv exists.
69555
69556 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * modules/hard-locale (Depends-on): Add strdup.
69559
69560 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69561
69562         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69563         convert T2, not T.  (Imported from libc.)
69564
69565 2004-11-30  Simon Josefsson  <jas@extundo.com>
69566
69567         * modules/restrict (License): Change to LGPL.
69568
69569 2004-11-30  Simon Josefsson  <jas@extundo.com>
69570
69571         * m4/restrict.m4: Add copyright and copying conditions.
69572
69573 2004-11-30  Simon Josefsson  <jas@extundo.com>
69574
69575         * m4/base64.m4: New file.
69576
69577 2004-11-30  Simon Josefsson  <jas@extundo.com>
69578
69579         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69580         base64.
69581
69582         * tests/test-base64.c: New file.
69583
69584         * modules/base64: New file.
69585
69586 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69589         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69590
69591         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69592
69593 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69594
69595         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69596         (__getcwd.c): Don't restore errno; glibc doesn't.
69597         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69598         first, falling back to our code only if its results look suspicious.
69599         Ensure that the resulting buffer is only as large as necessary.
69600
69601         * lib/readutmp.c: Include readutmp.h first.
69602         Include <errno.h>, since readutmp.h no longer does that.
69603         * lib/readutmp.h: Don't include <errno.h>,
69604         <sys/param.h>, <time.h>; not needed to establish interface.
69605         (errno): Remove decl.
69606         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69607         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69608         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69609
69610 2004-11-28  Simon Josefsson  <jas@extundo.com>
69611
69612         * lib/base64.h, base64.c: New file.
69613
69614 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69617
69618 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69621         (Depends-on): Remove pathmax, same.  Add mempcpy.
69622         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69623         (Makefile.am): Append getcwd.h to lib_SOURCES.
69624         (Include): Add getcwd.h.
69625         (Maintainer): Change from Jim Meyering to "all, glibc",
69626         since getdate now uses intended-for-glibc code.
69627         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69628         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69629
69630 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69633         HP's ANSI C compiler.
69634         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69635         Declaring int functions causes warnings on some modern systems and
69636         shouldn't be needed to compile on ancient ones.
69637         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69638         defined.
69639
69640         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69641         with the following changes.
69642         (__set_errno): Parenthesize properly.
69643         Include <stdbool.h>.
69644         (MIN, MAX, MATCHING_INO): New macros.
69645         (__getcwd): Define with prototype, not K&R form.
69646         Use heuristics to allocate default buffer on stack if possible.
69647         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69648         behavior, and to avoid the PATH_MAX limit when computing
69649         ../../../../...
69650         Use MATCHING_INO to compare inode number to file.
69651         Check for arithmetic overflow in size calculations.
69652         Fix bug in reallocation of dot array that caused getcwd to fail
69653         on directories nested deeper than 75.
69654         Be more careful about saving errno on error.
69655         Do not use realloc; use only free+malloc, as this is a bit
69656         more flexible and avoids a needless copy operation.
69657         Do not inspect st_dev and st_ino for symbolic links; POSIX
69658         doesn't specify the latter.
69659         Check for closedir errors.
69660         Avoid needless casts.
69661         Use "#ifdef weak_alias" around weak_alias, to be like other
69662         glibc code.
69663         The following changes to getcwd.c have effect only when used in
69664         gnulib; they have no effect inside glibc proper.
69665         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69666         as alloca isn't used.
69667         (alloca, __alloca): Likewise.
69668         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69669         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69670         unconditionally, as gnulib assumes C89 or better.
69671         Do not include <sys/param.h>.
69672         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69673         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69674         better.
69675         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69676         Include <dirent.h> in a way that is compatible with modern Autoconf.
69677         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69678         New macros, if not already defined.
69679         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69680         Use "_LIBC", not "defined _LIBC", for consistency.
69681         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69682         a mempcpy module.
69683         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69684         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69685         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69686         credit only to Jim Meyering and adjust the copyright dates.
69687         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69688         <stdlib.h>, <unistd.h>, "pathmax.h".
69689         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69690         (INITIAL_BUFFER_SIZE): Remove.
69691         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69692
69693 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69696         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69697         Use the _ONCE methods, for efficiency.
69698         Check for fcntl.h.  In test program, include <errno.h>
69699         and <fcntl.h> if available.  Remove old K&R cruft from
69700         test program.  Check for common errors in GNU/Linux,
69701         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69702         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69703         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69704         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69705         name accordingly.
69706         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69707         accommodate new getcwd.c.
69708         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69709         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69710         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69711         that's all we need now.
69712
69713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69714
69715         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69716         argp-parse.c depends on getopt internals, that means we should
69717         always use our getopt, to be on the safe side.
69718         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69719         order not to spoil the result of an eventual previous invocation
69720         of gl_GETOPT_SUBSTITUTE.
69721
69722 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69723
69724         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69725         redefinition warnings. To avoid them, include the defines
69726         in `#if !defined __need_getopt ... #endif'. The only place
69727         where __getopt_argv_const is used is in definitions
69728         of getopt_long and getopt_long_only below, which are as well
69729         protected by `#ifndef __need_getopt'.
69730         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69731         __need_getopt after including <stdio.h> and <unistd.h> These
69732         headers might have defined it.
69733
69734 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69737
69738 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69741         (futimens): New function, which uses futimes if available.
69742         (futimens, utimens): Support timespec==NULL, with same semantics
69743         as utime and utimens.
69744         * lib/utimens.h (futimens): New decl.
69745
69746 2004-11-23  Jim Meyering  <jim@meyering.net>
69747
69748         * lib/getopt_.h: Remove trailing blanks.
69749
69750 2004-11-23  Jim Meyering  <jim@meyering.net>
69751
69752         * lib/__fpending.c: Add comment.
69753
69754 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * modules/canonicalize (Depends-on): Add xreadlink.
69757         Problem reported by James Youngman.
69758
69759 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69762         New macros.
69763         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69764         optopt): Use them instead of invoking ## directly; otherwise, the
69765         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69766
69767 2004-11-19  Bruno Haible  <bruno@clisp.org>
69768
69769         * lib/strtok_r.c: Move comments from here...
69770         * lib/strtok_r.h: ... to here.
69771
69772 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69775         implementations that mishandle size_t overflow.
69776
69777 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69780         might fail.  Problem reported by Yoann Vandoorselaere.
69781         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69782         implementations that mishandle size_t overflow.
69783
69784 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * modules/canon-host (Depends-on): Add strdup.
69787
69788 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69791
69792 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/canon-host.c: Include "strdup.h".
69795         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69796         Use strdup instead of malloc/strcpy to duplicate strings.
69797
69798         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69799         (human_space_before_unit): New constant.
69800         * lib/human.c (human_readable): Support it.
69801
69802         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69803         (xgetcwd): Set errno correctly when failing.
69804         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69805         the failure is actually due to a PATH_MAX problem.
69806
69807         Further getopt changes to make it more likely that glibc will
69808         buy the changes back.
69809         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69810         (getopt): Use it, so to preserve glibc semantic
69811         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69812         when compiling for libc.
69813         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69814         (getopt_long, getopt_long_only): Use it.
69815
69816         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69817         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69818         (getopt): Argv is now char * const *, as per standard.
69819         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69820         not char *__getopt_argv_const *.
69821         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69822         _getopt_long_only_r): Likewise.
69823         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69824         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69825         _getopt_long_r, _getopt_long_only_r): Likewise.
69826         * lib/getopt_.h (__getopt_argv_const): Remove.
69827         (getopt): Argv is now char * const *, as per standard.
69828
69829         * lib/getdate.y (tORDINAL): New token.
69830         (day, relunit): Allow it for relative times.
69831         (relative_time_table): Use tORDINAL for ordinals.
69832
69833 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69836         Document that "second" isn't allowed as an ordinal number.
69837
69838 2004-11-16  Jim Meyering  <jim@meyering.net>
69839
69840         * modules/closeout (Depends-on): Add fpending.
69841
69842 2004-11-15  Jim Meyering  <jim@meyering.net>
69843
69844         * lib/closeout.c: Include "__fpending.h" once again.
69845         Include <stdbool.h>.
69846         (close_stdout): Don't fail just because stdout was closed initially,
69847         since some programs don't write to stdout in the normal course of
69848         operation (other than --version and --help), and we don't want this
69849         function to make e.g. `touch file >&-' fail.
69850         But do fail if it was closed and someone has tried to write to it.
69851         E.g., `printf foo >&-' must fail.
69852
69853 2004-11-13  Jim Meyering  <jim@meyering.net>
69854
69855         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69856
69857 2004-11-12  Simon Josefsson  <jas@extundo.com>
69858
69859         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69860         small doc fix is still pending.
69861
69862 2004-11-11  Simon Josefsson  <jas@extundo.com>
69863
69864         * modules/strtok_r: New file.
69865
69866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69867         strtok_r.
69868
69869 2004-11-11  Simon Josefsson  <jas@extundo.com>
69870
69871         * m4/strtok_r.m4: New file.
69872
69873         * m4/getopt.m4: Replace opterr.
69874
69875 2004-11-11  Simon Josefsson  <jas@extundo.com>
69876
69877         * lib/strtok_r.h, strtok_r.c: New file.
69878
69879 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69882         of replacing opterr, getopt, etc.  This should handle the
69883         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69884
69885 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69888         we can stop lying to compilers about the constness of argv when we
69889         are compiled outside glibc.
69890         (getopt, getopt_long, getopt_long_only): Use it.
69891         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69892         _getopt_internal, getopt): Likewise.
69893         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69894         _getopt_long_only_r): Likewise.
69895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69896         _getopt_long_r, _getopt_long_only_r): Likewise.
69897
69898         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69899         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69900         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69901         the other external symbols.
69902         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69903         declaration, since the above renaming now works around collisions.
69904
69905 2004-11-11  Jim Meyering  <jim@meyering.net>
69906
69907         * lib/linebreak.c: Remove trailing blanks.
69908         * lib/alloca_.h: Likewise.
69909         * lib/acosl.c: Likewise.
69910         * lib/euidaccess.c: Likewise.
69911         * lib/allocsa.h: Likewise.
69912
69913 2004-11-10  Simon Josefsson  <jas@extundo.com>
69914
69915         * m4/getaddrinfo.m4: New file.
69916
69917 2004-11-10  Simon Josefsson  <jas@extundo.com>
69918
69919         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69920
69921 2004-11-10  Simon Josefsson  <jas@extundo.com>
69922
69923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69924         getaddrinfo.
69925
69926         * modules/getaddrinfo: New file.
69927
69928 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69931
69932 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * lib/mktime.c (SHR): New macro, which is a portable
69935         substitute for >> that should work even on Crays.
69936         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69937         Problem reported by Mark D. Baushke in
69938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69939         * lib/getdate.y (SHR): Likewise.
69940         (tm_diff): Use it.
69941         * lib/strftime.c (SHR): Likewise.
69942         (tm_diff): Use it.
69943         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69944         quote_these_too, so that right shifts are well defined.  All uses
69945         changed.
69946
69947 2004-11-10  Jim Meyering  <jim@meyering.net>
69948
69949         Ensure that no close failure goes unreported.
69950         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69951         return early when it seems there's nothing to flush.
69952         Don't include __fpending.h.
69953
69954 2004-11-10  Jim Meyering  <jim@meyering.net>
69955
69956         * modules/closeout (Depends-on): Remove fpending.
69957
69958 2004-11-10  Jim Meyering  <jim@meyering.net>
69959
69960         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69961
69962 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69965         gl_FUNC_STRFTIME.
69966         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69967         and AC_REQUIRE when possible, to avoid duplicate checks.
69968         Check for <wchar.h>.
69969
69970 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69973
69974 2004-11-09  Bruno Haible  <bruno@clisp.org>
69975
69976         * m4/sockpfaf.m4: New file.
69977
69978 2004-11-05  Bruno Haible  <bruno@clisp.org>
69979
69980         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69981         Reported by Mark D. Baushke <mdb@cvshome.org>.
69982
69983 2004-11-04  Bruno Haible  <bruno@clisp.org>
69984
69985         2004-09-11  Bruno Haible  <bruno@clisp.org>
69986                 * allocsa.valgrind: New file.
69987         2004-02-06  Bruno Haible  <bruno@clisp.org>
69988                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69989                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69990                 Reported by Christopher Seip <chris.seip@hp.com>.
69991
69992 2004-11-04  Bruno Haible  <bruno@clisp.org>
69993
69994         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69995         (Makefile.am): Distribute it.
69996
69997 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70000         with errno == ERANGE if the buffer is too small.
70001         Problem reported by Mark D. Baushke.
70002
70003 2004-11-03  Albert Chin  <china@thewrittenword.com>
70004             Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70007         equivalent, substitute $ac_type for equivalent type rather than
70008         blindly using uint32_t *always* which won't work if uint32_t is not
70009         available.  Define _UINT32_T to work around typedef of uint32_t if
70010         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70011         2.5.1.
70012
70013 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * m4/jm-macros.m4: Sync from coreutils.
70016         (gl_MACROS): Check for mbrlen, for pathchk.
70017         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70018
70019 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * lib/xreadlink.c (MAXSIZE): New macro.
70022         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70023         size does not exceed MAXSIZE.  Avoid cast.
70024         As suggested by Mark D. Baushke in
70025         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70026         if readlink fails with buffer size just under MAXSIZE, try again
70027         with MAXSIZE.
70028
70029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70032
70033 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70034         and  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70037         (get_date): Overparenthesize to avoid GCC warning.
70038
70039 2004-11-02  Bruno Haible  <bruno@clisp.org>
70040
70041         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70042         returns void.
70043
70044 2004-11-02  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70047         function returns void.
70048
70049 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70052         fflush_unlocked, flockfile, funlockfile, funlockfile,
70053         fputs_unlocked, putc_unlocked.
70054
70055 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70058         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70059         already declared.
70060
70061 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * modules/getdate (Files): Add doc/getdate.texi.
70064         (Depends-on): Add setenv, xalloc.
70065
70066 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * lib/getdate.y: Add support for TZ="foo" within a date string.
70069         Fix some bugs near time_t boundaries.  Reject dates with
70070         out-of-range components, e.g., "Sept 31".
70071         Include <stdlib.h>, "setenv.h", "xalloc.h".
70072         (ISDIGIT_LOCALE): Remove; unused.
70073         Note that the TZ and time functions used here are not reentrant.
70074         (mktime_ok, get_tz): New functions.
70075         (TZBUFSIZE): New constant.
70076         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70077         This requires that we sometimes generate our own TZ="XXX..." setting.
70078
70079 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * doc/getdate.texi: New file, from coreutils with modifications for
70082         the new TZ parsing.
70083
70084 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70085
70086         * lib/mktime.c (not_equal_tm): Remove redundant check.
70087
70088 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70089
70090         * modules/regex (lib_SOURCES): Add regex.c.
70091         Reported by James Youngman in
70092         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70093
70094 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * lib/getdate.y: Use Bison 1.875 features, and some minor
70097         code cleanups.  This change does not affect semantics.
70098         Don't include <stdlib.h>; no longer needed.
70099         Don't include unlocked-io.h; only the "#if TEST" code uses
70100         stdio, and performance isn't crucial there.
70101         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70102         Bison 1.875 features as described below.
70103         All uses of "PC." replaced by "pc->".
70104         (YYSTYPE): Add a forward declaration.
70105         (yylex, yyerror): Use full prototypes in forward decls.
70106         Use "%pure-parser" rather than obsolescent "%pure_parser".
70107         Use %parse-param and %lex-param instead of obsolescent
70108         YYPARSE_PARAM and YYLEX_PARAM.
70109         (meridian_table, month_and_day_table, time_units_table,
70110         relative_time_table, time_zone_table, military_table,
70111         lookup_zone, lookup_word, get_date):
70112         Use NULL instead of 0 where appropriate.
70113         (to_hour): Avoid abort (), to avoid a dependency on
70114         stdlib.h.
70115         (yyerror, yylex): Now accepts parser_control * arg.
70116         (main) [TEST]: Use '\0' rather than 0 for char.
70117
70118 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70121
70122 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70123
70124         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70125         It's now the caller's responsibility to handle the case where
70126         !HAVE_GETPAGESIZE && !defined getpagesize.
70127
70128         * lib/mktime.c (leapyear): Arg is long int, not int.
70129
70130 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70133
70134 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70137         missing.  Problem reported by James Youngman.
70138
70139 2004-10-16  Simon Josefsson  <jas@extundo.com>
70140
70141         * gnulib-tool: Fix comments.  Fix parse problem.
70142         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70143
70144 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70147         implementation of getopt_long.  Problem reported by Alexander Taler in:
70148         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70149
70150 2004-10-15  Bruno Haible  <bruno@clisp.org>
70151
70152         * gnulib-tool: Untabify. Initialize supplied_libname.
70153         (func_usage): More homogenous output.
70154         (func_modules_transitive_closure, func_modules_to_filelist,
70155         func_emit_lib_Makefile_am): New functions.
70156         (func_import): New function, extracted from big case statement. Use
70157         func_get_license, func_modules_transitive_closure,
70158         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70159         opt_lgpl. Don't use test -a, as it's not portable.
70160         (func_create_testdir): Use func_modules_transitive_closure,
70161         func_modules_to_filelist, func_emit_lib_Makefile_am.
70162
70163 2004-10-15  Bruno Haible  <bruno@clisp.org>
70164
70165         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70166
70167 2004-10-15  Bruno Haible  <bruno@clisp.org>
70168
70169         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70170         the portions belonging to each module.
70171         Suggested by Derek Robert Price <derek@ximbiot.com>.
70172
70173 2004-10-12  Simon Josefsson  <jas@extundo.com>
70174
70175         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70176         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70177         to real functions.
70178
70179 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70180
70181         * modules/vsnprintf: New file.
70182
70183 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70184
70185         * m4/vsnprintf.m4: New file.
70186
70187 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70188
70189         * lib/vsnprintf.h: New file.
70190         * lib/vsnprintf.c: New file.
70191
70192 2004-10-11  Bruno Haible  <bruno@clisp.org>
70193
70194         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70195         vsnprintf.
70196
70197 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70200
70201 2004-10-07  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70204         fits into the provided buffer.
70205
70206 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * lib/diacrit.c, diacrit.h: Add GPL notice.
70209
70210         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70211         notice.
70212         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70213         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70214         This avoids a potential constant-folding bug.
70215
70216 2004-10-05  Bruno Haible  <bruno@clisp.org>
70217
70218         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70219         for the declaration of strsep.
70220
70221 2004-10-05  Bruno Haible  <bruno@clisp.org>
70222
70223         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70224
70225 2004-10-04  Simon Josefsson  <jas@extundo.com>
70226
70227         * modules/memmem: New file.
70228         * tests/test-memmem.c: New file.
70229         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70230
70231 2004-10-04  Simon Josefsson  <jas@extundo.com>
70232
70233         * m4/memmem.m4: New file.
70234
70235 2004-10-04  Simon Josefsson  <jas@extundo.com>
70236
70237         * lib/memmem.h: New file.
70238         * lib/memmem.c: New file, taken from glibc.
70239
70240 2004-10-04  Simon Josefsson  <jas@extundo.com>
70241
70242         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70243         '#ifdef USE_UNLOCKED_IO'.
70244
70245 2004-10-04  Simon Josefsson  <jas@extundo.com>
70246
70247         * config/srclist.txt: Add memmem from glibc.
70248
70249 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70250
70251         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70252
70253         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70254         modules/exclude, modules/getdate, modules/getline,
70255         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70256         modules/getusershell, modules/linebuffer, modules/md5,
70257         modules/mountlist, modules/posixtm, modules/readtokens,
70258         modules/readutmp, modules/regex, modules/sha1,
70259         modules/version-etc, modules/yesno:
70260         Remove dependency on unlocked-io.
70261
70262 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70263
70264         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70265
70266         * m4/unlocked-io.m4: Add copyright notice.
70267         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70268
70269 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70272         * lib/xmalloc.c (xmemdup): Likewise.
70273         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70274         XFREE): Remove these long-obsolescent macros.
70275         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70276         * lib/xstrdup.c: Remove.
70277
70278         * lib/regex.c (re_comp): Cast gettext return value to char *,
70279         Problem reported by Martin Neitzel via Mark D. Baushke.
70280
70281 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70284         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70285         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70286         regex.c, sha1.c, version-etc.c, yesno.c:
70287         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70288         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70289         the includer's responsibility.
70290
70291         Sync from coreutils.
70292
70293         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70294         points to the start of a string, as the C Standard says the
70295         resulting behavior is undefined.
70296
70297         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70298         simple -> simple_backups, numbered_existing ->
70299         numbered_existing_backups, numbered -> numbered_backups
70300         to avoid shadowing problems.  All uses changed.
70301         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70302         * lib/backupfile.c (check_extension, numbered_backup):
70303         Rename locals to avoid shadowing 'basename'.
70304         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70305         once.
70306
70307         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70308         * lib/.cvsignore: Add getopt.h.
70309
70310 2004-10-04  Bruno Haible  <bruno@clisp.org>
70311
70312         * modules/README: New file.
70313         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70314         not a module.
70315
70316 2004-10-02  Jim Meyering  <jim@meyering.net>
70317
70318         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70319
70320 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70321
70322         * modules/strsep: New file.
70323
70324 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70325
70326         * m4/strsep.m4: New file.
70327
70328 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70329
70330         * lib/strsep.h: New file.
70331         * lib/strsep.c: New file.
70332
70333 2004-10-01  Simon Josefsson  <jas@extundo.com>
70334
70335         * lib/snprintf.c (snprintf): Handle size==0.
70336
70337 2004-10-01  Simon Josefsson  <jas@extundo.com>
70338             Bruno Haible  <bruno@clisp.org>
70339
70340         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70341         (snprintf): Declare 'args'.
70342
70343 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * lib/snprintf.c: Remove comments as to why each header is needed.
70346
70347 2004-10-01  Bruno Haible  <bruno@clisp.org>
70348
70349         * MODULES.html.sh: Add strsep.
70350
70351 2004-09-30  Simon Josefsson  <jas@extundo.com>
70352
70353         * modules/snprintf: New file.
70354
70355 2004-09-30  Simon Josefsson  <jas@extundo.com>
70356
70357         * m4/snprintf.m4: New file.
70358
70359 2004-09-30  Simon Josefsson  <jas@extundo.com>
70360
70361         * lib/snprintf.h, lib/snprintf.c: New files.
70362
70363 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70364
70365         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70366         (hol_entry_help): Never translate an empty string.
70367         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70368         * lib/argp.h (OPTION_NO_TRANS): New option.
70369
70370 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * modules/argp (Maintainer): Replace Simon Josefsson
70373         by Sergey Poznyakoff.
70374
70375 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70378         changes merged back into glibc.
70379
70380 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70383
70384 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70385
70386         * lib/xvasprintf.c: Include xalloc.h.
70387         (xvasprintf): Use xalloc_die, not xmalloc_die.
70388
70389 2004-09-29  Bruno Haible  <bruno@clisp.org>
70390
70391         * modules/alloca-opt: New file, derived from modules/alloca.
70392         * modules/allocsa: Depend on alloca-opt instead of alloca.
70393         * modules/setenv: Likewise.
70394         * modules/vasnprintf: Likewise.
70395         * MODULES.html.sh: Add alloca-opt.
70396
70397 2004-09-28  Simon Josefsson  <jas@extundo.com>
70398
70399         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70400         LGPL, and to replace license template from GPL to LGPL.
70401
70402 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * modules/dummy: Change license to LGPL.
70405
70406 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70409
70410 2004-09-24  Simon Josefsson  <jas@extundo.com>
70411
70412         * modules/minmax (License): Change from GPL to LGPL.
70413
70414 2004-09-23  Simon Josefsson  <jas@extundo.com>
70415
70416         * gnulib-tool (--import): Typo.
70417
70418 2004-09-23  Simon Josefsson  <jas@extundo.com>
70419
70420         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70421
70422 2004-09-22  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/*: Add 'License' field.
70425         * gnulib-tool: Accept --extract-license option.
70426         (func_get_license): New function.
70427
70428 2004-09-21  Bruno Haible  <bruno@clisp.org>
70429
70430         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70431         Reported by Simon Josefsson.
70432
70433 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70436         gl_AC_TYPE_LONG_LONG.
70437
70438 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70441
70442 2004-09-18  Simon Josefsson  <jas@extundo.com>
70443         and  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70446         calls with autoreconf.  Define GL_LIB.
70447
70448 2004-09-14  Karl Berry  <karl@gnu.org>
70449
70450         * config/srclist.txt: unsync setenv.c, sigh.
70451
70452 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70455         Problem reported by Bruno Haible in:
70456         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70457
70458 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * config/srclist.txt: Comment out argp-pvh.c.
70461
70462 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70465         in case some system header has #define'd it.  Problem reported by
70466         Soeren D. Schulze in
70467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70468
70469 2004-09-09  Karl Berry  <karl@gnu.org>
70470
70471         * regex.[ch]: delete from the root.  These were supposed to be
70472                 synced with emacs cvs, but this has not happened for about
70473                 a year, and anyway nothing else uses emacs regex.[ch].
70474                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70475                 lib/regex[.ch] is untouched.
70476
70477 2004-09-09  Bruno Haible  <bruno@clisp.org>
70478
70479         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70480
70481 2004-09-09  Bruno Haible  <bruno@clisp.org>
70482
70483         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70484         modifications.
70485         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70486
70487 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70488
70489         * modules/xvasprintf: New file.
70490         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70491
70492 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70493
70494         * lib/xvasprintf.h: New file.
70495         * lib/xvasprintf.c: New file.
70496         * lib/xasprintf.c: New file.
70497
70498 2004-09-08  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70501
70502 2004-09-08  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70505         length is > INT_MAX.
70506         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70507         more.
70508
70509 2004-09-08  Bruno Haible  <bruno@clisp.org>
70510
70511         * lib/stdint_.h: New file, taken from GNU clisp.
70512
70513 2004-09-08  Bruno Haible  <bruno@clisp.org>
70514             Oskar Liljeblad  <oskar@osk.mine.nu>
70515
70516         * modules/stdint: New file.
70517         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70518
70519 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         Import from coreutils.
70522         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70523         strings on unbounded length.  alloca's performance benefits aren't
70524         that important here.
70525         (V_STRDUP): Remove.
70526         (parse_with_separator): New function, with most of the internals
70527         of the old parse_user_spec.  Allow user to omit both user and group,
70528         for compatibility with FreeBSD.
70529         Clone only the user name, not the entire spec.
70530         Do not set *uid, *gid unless entirely successful.
70531         Avoid memory leak in some failing cases.
70532         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70533         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70534         (parse_user_spec): Rewrite to use parse_with_separator.
70535
70536 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         * modules/userspec: Don't depend on alloca.
70539
70540 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70543
70544 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70547         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70548         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70549
70550 2004-08-16  Simon Josefsson  <jas@extundo.com>
70551
70552         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70553         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70554         Add --dry-run for --import.
70555         Let user provided command line parameters override configure.ac
70556         settings.
70557
70558 2004-08-12  Simon Josefsson  <jas@extundo.com>
70559
70560         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70561         as discussed with Paul Eggert in threads rooted at
70562         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70563         and
70564         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70565         Before, the test was empty, and relied on ELIDE_CODE in source
70566         code.)
70567         (gl_PREREQ_GETOPT): New macro.
70568         (gl_GETOPT): Use them.
70569
70570 2004-08-12  Simon Josefsson  <jas@extundo.com>
70571
70572         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70573         * lib/getopt_.h: Renamed from getopt.h.
70574
70575 2004-08-12  Simon Josefsson  <jas@extundo.com>
70576
70577         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70578         Change default library name from libfoo to libgnu.
70579         Now, if you have a configure.ac that says:
70580                 gl_SOURCE_BASE(gl)
70581                 gl_M4_BASE(gl/m4)
70582                 gl_MODULES(error getopt etcetera)
70583                 gl_INIT
70584         you can import all you need by running:
70585                 ../gnulib/gnulib-tool --import
70586
70587         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70588         (Makefile.am): Rewrite, use logic from argz.
70589         (Include): Use <getopt.h> instead of "getopt.h".
70590
70591 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * modules/argp (Files): Add m4/unlocked-io.m4.
70594         (Depends-on): Add extensions.
70595
70596 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70599         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70600         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70601         Check for program_invocation_name, program_invocation_short_name,
70602         flockfile, funlockfile, features.h, _getopt_long_only_r.
70603
70604 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70607         its complicated substitute.
70608         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70609         and program_invocation_name.
70610         (__argp_basename) [!_LIBC]: Remove; the only use was
70611         replaced by its body.
70612         (__argp_short_program_name): Change condition from
70613         !defined __argp_short_program_name to
70614         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70615         to match argp-namefrob.h.
70616         (__argp_failure): Don't assume strerror_r returns char *.
70617         * lib/argp-parse.c (N_): Define unconditionally.
70618         (argp_default_options): Fill out initializers with 0 to avoid
70619         gcc warnings.
70620
70621 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70624         getopt1.c.
70625
70626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         Merge from coreutils.
70629
70630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70631
70632         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70633         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70634
70635 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         Merge from coreutils.
70638
70639         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70640         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70641         for Reliant Unix 5.43.
70642
70643         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70644         (union fooround): Use uintmax_t, not long int.
70645         The rest is a merge from libc:
70646         [defined _LIBC]: Include <shlib-compat.h>.
70647         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70648
70649         * lib/settime.c (settime): Recode to avoid warning with
70650         Sun Forte C 6U2.
70651
70652         * lib/strverscmp.c: Convert to UTF-8.
70653
70654 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70657         m4/uintmax_t.m4.
70658
70659 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * modules/xalloc-die: New file.
70662         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70663
70664         * modules/md5 (Files): Add m4/uint32_t.m4.
70665         * modules/sha1: Renamed from modules/sha.
70666         (Files):
70667         Rename lib/sha.h to lib/sha1.h.
70668         Rename lib/sha.c to lib/sha1.c.
70669         Rename m4/sha.m4 to m4/sha1.m4.
70670         (lib_SOURCES): Likewise.
70671         (configure.ac): Rename gl_SHA to gl_SHA1.
70672         (Include): sha.h -> sha1.h.
70673
70674 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70677         * m4/sha1.m4: Renamed from sha.m4.
70678         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70679
70680 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * lib/obstack.h (obstack_empty_p):
70683         Don't assume that chunk->contents is suitably aligned.
70684         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70685         Likewise. Problem reported by Benno in
70686         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70687
70688         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70689         readable.  This could be improved further but it'd take some work.
70690
70691 2004-08-08  Simon Josefsson  <jas@extundo.com>
70692
70693         * modules/xgethostname (Depends-on): Remove exit and error (not
70694         used).
70695
70696         * modules/getpass-gnu: Add getpass.h.
70697         (Depends-on): Add stdbool.
70698         * modules/getpass: Add getpass.h.
70699
70700 2004-08-08  Simon Josefsson  <jas@extundo.com>
70701
70702         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70703         Check getpass declaration.
70704
70705 2004-08-08  Simon Josefsson  <jas@extundo.com>
70706
70707         * lib/xgethostname.c: Don't include error.h (not used).
70708
70709         * lib/getpass.h: Add.
70710         * lib/getpass.c: Include getpass.h first.
70711
70712 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * lib/xalloc-die.c: New file.
70715         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70716         All uses removed.
70717         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70718         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70719         xalloc-die.c.
70720         (_, N_, xalloc_die): Move to xalloc-die.c.
70721         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70722         so that we needn't mess with xalloc_msg_memory_exhausted.
70723
70724         * lib/sha1.h: Renamed from sha.h.
70725         (SHA1_H): Renamed from _SHA_H.
70726         (sha1_ctx): Renamed from sha_ctx.
70727         (sha1_init_ctx): Renamed from sha_init_ctx.
70728         (sha1_process_block): Renamed from sha_process_block.
70729         (sha1_process_bytes): Renamed from sha_process_bytes.
70730         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70731         (sha1_read_ctx): Renamed from sha_read_ctx.
70732         (sha1_stream): Renamed from sha_stream.
70733         (sha1_buffer): Renamed from sha_buffer.
70734         * lib/sha1.c: Likewise; renamed from sha.c.
70735         Do not include <sys/types.h>.
70736         Include <stddef.h> rather than <stdlib.h>.
70737
70738 2004-08-08  Bruno Haible  <bruno@clisp.org>
70739
70740         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70741         FILESYSTEM_PREFIX_LEN.
70742         * lib/progreloc.c: Likewise.
70743         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70744
70745 2004-08-06  Simon Josefsson  <jas@extundo.com>
70746
70747         * modules/progname (Depends-on): Don't depend on stdbool.
70748
70749 2004-08-06  Simon Josefsson  <jas@extundo.com>
70750
70751         * modules/getsubopt: New file.
70752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70753         getsubopt.
70754
70755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         More merge from coreutils.
70758
70759         * m4/utimens.m4, m4/utimecmp.m4: New files.
70760         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70761         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70762         prereq.m4, sha.m4: Import changes from coreutils.
70763
70764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70765
70766         More merge from coreutils.
70767         * modules/raise, modules/readtokens0, modules/utimens:
70768         * modules/utimecmp, module/xnanosleep: New files.
70769         * modules/strftime: Add lib/strftime.h.
70770         Change include from <time.h> to "strftime.h".
70771         * modules/yesno: Add lib/yesno.h.
70772         * modules/backupfile: Remove lib/addext.c.
70773         * modules/euidaccess: Add stat-macros.h.
70774         * modules/canonicalize, modules/euidaccess,
70775         modules/filemode, modules/lchown, modules/makepath,
70776         modules/rmdir, modules/stat: Likewise.
70777
70778 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         Merge from tar.
70781         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70782         SIZE_MAX is a valid preprocessor constant.
70783         (__argp_basename): Change from "#ifndef _LIBC"
70784         to "#ifndef __argp_short_program_name", so that
70785         we don't compile these functions for tar.
70786
70787         More merges from coreutils.
70788         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70789         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70790         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70791         * lib/addext.c: Remove; no longer needed.
70792         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70793         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70794         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70795         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70796         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70797         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70798         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70799         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70800         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70801         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70802         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70803         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70804         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70805         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70806         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70807         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70808         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70809         Import changes from coreutils.
70810
70811 2004-08-05  Simon Josefsson  <jas@extundo.com>
70812
70813         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70814
70815 2004-08-05  Simon Josefsson  <jas@extundo.com>
70816
70817         * m4/getsubopt.m4: New file.
70818
70819 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         Merge from coreutils.
70822
70823         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70824         * m4/getcwd-path-max.m4: New files.
70825
70826         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70827         FILESYSTEM_PREFIX_LEN ->
70828         FILE_SYSTEM_PREFIX_LEN.
70829         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70830         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70831         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70832         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70833
70834         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70835         prerequisite modules now handle the DOS stuff.
70836         Don't check for unistd.h.
70837
70838 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         Merge from coreutils.
70841
70842         * lib/.gdb-history: Remove; this doesn't belong here.
70843
70844         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70845         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70846         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70847         * lib/getcwd.c: New files.
70848
70849         * lib/dirname.h: Include <stdbool.h>.
70850         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70851         for consistency with POSIX terminology.  All uses changed.
70852         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70853         (strip_trailing_slashes): Use bool for booleans.
70854         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70855
70856         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70857         sometimes returns a positive errno value even when it succeeds.
70858         (print_errno_message) [!LIBC]: Fall back on strerror if
70859         __strerror_r fails.
70860
70861         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70862         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70863         (longest_relative_suffix): New function.
70864         (path_concat): Use it.  Assume first argument is not NULL.
70865         Port to DOS.  Omit redundant separators.
70866         Report an error instead of returning NULL.
70867         Use mempcpy instead of memcpy.
70868         (xpath_concat): Remove: not declared or used.
70869
70870         * lib/same.h: Include <stdbool.h>
70871         (same_name): Return bool, not int.
70872         * lib/same.c (same_name): Likewise.
70873         (errno): Don't declare; we assume C89 or better now.
70874
70875         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70876         if not already defined.
70877
70878         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70879         * lib/dup-safer.c (errno): Likewise.
70880
70881 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         Merge from coreutils.
70884         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70885         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70886         * modules/path-concat: Don't depend on strdup.
70887
70888 2004-08-03  Simon Josefsson  <jas@extundo.com>
70889
70890         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70891         * lib/progname.h: Don't include stdbool.h.
70892
70893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70896         * MODULES.html.sh (func_all_modules): Remove fatal.
70897
70898 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70901
70902 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70903
70904         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70905         working.
70906
70907 2004-08-02  Simon Josefsson  <jas@extundo.com>
70908
70909         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70910         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70911         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70912
70913 2004-08-01  Simon Josefsson  <jas@extundo.com>
70914
70915         * lib/xgetdomainname.c: Include stdlib.h, for free().
70916
70917 2004-07-19  Bruno Haible  <bruno@clisp.org>
70918
70919         * MODULES.html.sh (func_all_modules): Add dummy.
70920
70921 2004-07-16  Simon Josefsson  <jas@extundo.com>
70922
70923         * modules/dummy: New file.
70924
70925 2004-07-16  Simon Josefsson  <jas@extundo.com>
70926
70927         * lib/dummy.c: New file.
70928
70929 2004-07-16  Bruno Haible  <bruno@clisp.org>
70930
70931         * lib/backupfile.h: Add extern "C" for C++.
70932         * lib/closeout.h: Likewise.
70933         * lib/copy-file.h: Likewise.
70934         * lib/findprog.h: Likewise.
70935         * lib/full-write.h: Likewise.
70936         * lib/pathname.h: Likewise.
70937         * lib/progname.h: Likewise.
70938         * lib/stpcpy.h: Likewise.
70939         * lib/stpncpy.h: Likewise.
70940         * lib/strcase.h: Likewise.
70941         * lib/strstr.h: Likewise.
70942         * lib/xalloc.h: Likewise.
70943
70944         * lib/mbswidth.h: Add extern "C" for C++.
70945         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70946
70947 2004-07-13  Robert Millan  <robertmh@gnu.org>
70948
70949         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70950
70951 2004-07-09  Simon Josefsson  <jas@extundo.com>
70952
70953         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70954         failed without this.)
70955
70956 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * modules/chown (Files): Add lib/fchown-stub.c, since
70959         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70960
70961 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * lib/fchown-stub.c: New file.
70964
70965 2004-06-24  Jim Meyering  <jim@meyering.net>
70966
70967         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70968
70969 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * modules/argz: Omit "#include".
70972
70973         * MODULES.html.sh (func_all_modules): Add calloc, to match
70974         2004-06-01 addition of calloc module.
70975
70976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * m4/argz.m4: New file, which is autoupdated from libtool.
70979
70980 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70983         libtool.
70984
70985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * config/srclist-update: Don't insist on "USA." before the
70988         close-comment, as libtool omits the period and puts the */ on a
70989         separate line.
70990         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70991         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70992
70993 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70994
70995         * modules/argz: New file.
70996         * MODULES.html.sh (func_all_modules): Add argz.
70997
70998 2004-06-12  Jim Meyering  <jim@meyering.net>
70999         and  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * modules/hash (Files): Add lib/xalloc.h.
71002         * modules/pipe (Depends-on): Add wait-process.
71003         * modules/stat (Depends-on): Add xalloc.
71004         * modules/userspec (Files): Add lib/userspec.h.
71005         * modules/xstrto
71006
71007         Upgrade from gettext-0.13.
71008         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71009         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71010         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71011
71012 2004-06-10  Jim Meyering  <jim@meyering.net>
71013
71014         * lib/calloc.c: New file.
71015
71016 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * lib/getdate.y (yylex): Allow space between sign and number.
71019         Problem reported by Dan Jacobson.
71020
71021 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         Merge from coreutils CVS.
71024
71025         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71026         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71027         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71028         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71029         xstrtol.m4: Fix copyright date and/or serial number.
71030
71031         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71032         See if we need an fchown replacement.
71033         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71034         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71035         and use the replacement function if we detect either defect.
71036
71037         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71038         gl_UTIMECMP.
71039
71040 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71041         and  Jim Meyering  <jim@meyering.net>
71042
71043         Merge from coreutils CVS.
71044
71045         * lib/stat-macros.h: New file, with contents from file-type.h
71046         and coreutils' system.h.
71047         * lib/file-type.c: Include "stat-macros.h".
71048         * lib/file-type.h (file_type): Move all macro definitions to new file,
71049         stat-macros.h.
71050
71051         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71052         Wrap old code with this conditional.
71053         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71054         function that does not dereference symlinks.
71055         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71056
71057         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71058         dependency problems.
71059         (xreadlink): Accept new arg SIZE, for efficiency.
71060         All decls and uses changed.
71061         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71062
71063         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71064         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71065
71066         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71067         sysexits.h.
71068
71069 2004-06-01  Jim Meyering  <jim@meyering.net>
71070
71071         * m4/calloc.m4: New file.
71072
71073 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71076         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71077         Also, fix a typo in a diagnostic.
71078
71079 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71082         or AC_FUNC_REALLOC.
71083
71084 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71087         macros to be defined.
71088         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71089         the allocator returns NULL because the requested size is zero.
71090
71091 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71094         var.  Add comment explaining why libc still defines it.  This
71095         merges the following patch from glibc:
71096         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71097
71098 2004-05-20  Andreas Schwab  <schwab@suse.de>
71099
71100         * m4/free.m4: Replace free if it not known to work, not the other
71101         way round.
71102
71103 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71106         present in glibc since revision 1.1 of this file.
71107         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71108         obstack_alignment_mask, obstack_alloc, obstack_base,
71109         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71110         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71111         obstack_grow0, obstack_init, obstack_int_grow,
71112         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71113         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71114         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71115         nonexistent functions.
71116
71117 2004-05-18  Karl Berry  <karl@gnu.org>
71118
71119         * config/srclist.txt: break link for vasnprintf.c.
71120
71121 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         Port obstack to the AS/400, where pointers are 16 bytes wide and
71124         you cannot cast an integer to a valid pointer.  This patch is
71125         currently waiting to be integrated into glibc; see
71126         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71127
71128         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71129         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71130         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71131         (struct obstack): temp member is now a union of a pointer and
71132         an integer, instead of an integer.  All integer uses changed.
71133         This does not affect the physical layout of struct obstack,
71134         except on hosts (like the AS/400) where the size or alignment of
71135         void * is greater than that of ptrdiff_t.
71136         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71137         __STDC__)]: Store temporary in pointer member of union, not
71138         integer member.
71139         * lib/obstack.c: Include <stddef.h>, for offsetof.
71140         (struct fooalign): Remove; it doesn't need a name.
71141         (union fooround): Change double to long double, and add void *.
71142         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71143         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71144         not a macro.  Hence the values are always int; so remove all
71145         casts-to-int in uses.
71146
71147 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71150         we can get this patch merged into glibc.
71151
71152 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71153             Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * m4/argp: Depend on alloca.
71156
71157 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71158             Paul Eggert  <eggert@cs.ucla.edu>
71159
71160         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71161         freecoding.
71162
71163 2004-05-17  Bruno Haible  <bruno@clisp.org>
71164
71165         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71166         precision that consists of a '.' followed by an empty digit string.
71167         Patch by Tor Lillqvist <tml@iki.fi>.
71168
71169 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71172         for backward compatibility with older code.  We need our own
71173         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71174         it under some other name, and our alloca.h will define it.
71175
71176 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71177             Derek Price  <derek@ximbiot.com>
71178
71179         * lib/alloca.c: Include <alloca.h>, to get our interface.
71180         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71181         include <alloca.h> first.  Use C89 prototype for alloca; this
71182         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71183         Use #elif for simplicity, since we can assume C89 now.
71184         Don't try to source the system alloca.h since it will not be found
71185         and to prevent recursively including its replacement.
71186         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71187         * lib/regex.c: Likewise.
71188
71189 2004-05-16  Derek Price  <derek@ximbiot.com>
71190             Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         getline cleanup.  This changes the getndelim2 API: both order of
71193         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71194         no delimiter).
71195
71196         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71197         interface does that.
71198         (getline): Always use getdelim, so that we don't have two
71199         copies of this code.
71200         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71201         if available.
71202         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71203         (GETNDELIM2_MAXIMUM): New macro.
71204         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71205         instead of the old practice of delim2==0.  All callers changed.
71206         Return -1 on overflow, instead of returning junk.
71207         Do not set *linesize unless allocation succeeds.
71208         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71209         that we include sys/types.h.
71210         * lib/getnline.h: Likewise.
71211         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71212         (getndelim2): Reorder arguments.
71213         * lib/getnline.c (getnline, getndelim):
71214         Don't discard the NMAX argument.
71215         (getnline): Invoke getndelim, to avoid code duplication.
71216         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71217         of (size_t) -1 by callers of the getnline family.
71218
71219 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71222         Check for gettimeofday.
71223         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71224         Check for settimeofday, stime.
71225
71226 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * lib/nanosleep.c (suspended): Change its type from int to
71229         sig_atomic_t volatile.
71230         (first_call): Make it private to rpl_nanosleep, and have it
71231         be zero initially as that's a bit faster.
71232         (my_usleep): Round up fractional times instead of truncating them,
71233         as this is the usual meaning for 'sleep'.
71234
71235         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71236         doesn't work.
71237         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71238         (ENOSYS): Define if not defined.
71239         (settime): Fall back on stime if it exists and settimeofday fails.
71240         But don't bother with fallbacks if a method fails with errno == EPERM.
71241
71242 2004-05-11  Jim Meyering  <jim@meyering.net>
71243
71244         Prior to this change, the save_cwd caller required read access to the
71245         current directory on most systems (ones with the fchdir function).
71246
71247         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71248         fails, try write-only, and finally, resort to using xgetcwd.
71249
71250 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * lib/obstack.c, obstack.h: Import changes from libc.
71253
71254 2004-04-28  Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71257         also implicitly appends .exe to executables.
71258         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71259         accepts Windows pathnames.
71260         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71261         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71262         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71263         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71264         Reported by Derek Robert Price <derek@ximbiot.com>.
71265
71266 2004-04-21  Karl Berry  <karl@gnu.org>
71267
71268         * config/srclist.txt (localcharset.c): break sync.
71269
71270 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71271
71272         * m4/host-os.m4: Add a copyright notice.
71273
71274 2004-04-20  Jim Meyering  <jim@meyering.net>
71275
71276         Change UTILS_ to gl_ in AC_DEFINE'd names.
71277         Change utils_- and jm_-prefixed variables, too.
71278         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71279         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71281
71282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71283         Don't emit trailing blanks.
71284         Also rename jm_-prefixed variables to have gl_ prefix.
71285
71286         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71287         Also rename jm_-prefixed variables to have gl_ prefix.
71288
71289         * m4/jm-macros.m4: Reflect the renamings.
71290         * m4/prereq.m4: Likewise.
71291
71292 2004-04-20  Jim Meyering  <jim@meyering.net>
71293
71294         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71295         memory.
71296
71297 2004-04-20  Jim Meyering  <jim@meyering.net>
71298             Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71301         memory when realloc fails.
71302
71303 2004-04-19  Jim Meyering  <jim@meyering.net>
71304
71305         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71306         now that readutmp.c may call `free (0)'.
71307
71308 2004-04-19  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71311         * m4/inttypes_h.m4: Likewise.
71312         * m4/stdint_h.m4: Likewise.
71313         * m4/intmax_t.m4: Likewise.
71314         * m4/uintmax_t.m4: Likewise.
71315
71316 2004-04-18  Jim Meyering  <jim@meyering.net>
71317
71318         * m4/prereq.m4: Don't forbid jm_ prefix.
71319
71320         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71321         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71322         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71323         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71324         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71325         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71326         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71327         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71328         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71329         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71330         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71331         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71332         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71333         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71334         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71335         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71336         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71337         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71338         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71339
71340 2004-04-18  Jim Meyering  <jim@meyering.net>
71341
71342         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71343         failure, don't leak memory and do call END_UTMP_ENT.
71344
71345 2004-04-16  Jim Meyering  <jim@meyering.net>
71346
71347         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71348         coreutils' stat program.
71349         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71350
71351 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71352
71353         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71354         C89.
71355         (CHAR_BIT): Remove, since we assume C89.
71356         Include <stdint.h> if available, as per current Autoconf CVS advice.
71357
71358 2004-03-31  Jim Meyering  <jim@meyering.net>
71359
71360         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71361         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71362         * m4/xalloc.m4: Likewise.
71363
71364 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71365
71366         Merge from coreutils.
71367
71368         * m4/inttostr.m4: New file.
71369         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71370         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71371         Require gl_CLOCK_TIME.
71372         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71373
71374 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71375
71376         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71377         not bool, to be more consistent with Unix conventions.
71378         Suggested by Bruno Haible.
71379
71380         Merge from coreutils.
71381
71382         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71383         * lib/umaxtostr.c: New files.
71384
71385         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71386         the usual <time.h> dance.
71387         (get_date): Change signature to support fractional time stamps.
71388         All callers changed.
71389         * lib/getdate.y: Include "getdate.h" first, as we can now
71390         assume C89 and don't need to worry about 'const'.
71391         Similarly, include "unlocked-io.h" near start, not in middle.
71392         Include <limits.h>.
71393         (textint.value): Use long int rather than int.
71394         (textint.digits): Use size_t rather than int.
71395         (BILLION, LOG10_BILLION): New constants.
71396         (parser_control): New member rel_ns.  Members day_ordinal,
71397         time_zone, month, day, hour, minutes, rel_year, rel_month,
71398         rel_day, rel_hour, rel_minutes, rel_seconds
71399         are now long int, not int.  Member seconds is now struct timespec,
71400         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71401         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71402         not int.
71403         (%union.intval): Now long int, not int.
71404         New member timespec.
71405         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71406         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71407         (spec): Now is a timespec or an item list.
71408         (timespec, items): New nonterminals.
71409         (time, rel, relunit, number, get_date):
71410         Add support for fractional seconds.
71411         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71412         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71413         (to_hour): First arg is now long int, not int.
71414         (to_year): Returns long int, not int.
71415         Don't treat year -70 like 70.
71416         (tm_diff): Returns long int, not int.
71417         (lookup_word): Use bool instead of int when appropriate.
71418         (yylex): Use size_t for count, not int.
71419         Detect overflow when parsing large integer constants.
71420         Add support for fractions.
71421         (get_date): Make pointers 'const' if possible.
71422         Use more-portable code to detect integer overflow.
71423         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71424         Don't use ctime; it's not reliable if the year has >4 digits.
71425
71426         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71427         This is for compatibility with BSD.
71428
71429         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71430         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71431         From coreutils' system.h.
71432
71433         * lib/userspec.c: Don't include "posixver.h".
71434         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71435         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71436         compatible extension.  Simplify code by removing a boolean int
71437         that was always nonzero if a string was nonnull.
71438
71439 2004-03-30  Jim Meyering  <jim@meyering.net>
71440
71441         Merge from coreutils.
71442
71443         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71444         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71445         on some systems one must include <grp.h> before it.
71446         Reported by Christian Krackowizer.
71447
71448 2004-03-30  Jim Meyering  <jim@meyering.net>
71449
71450         Merge from coreutils.
71451
71452         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71453
71454         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71455         an empty input stream.
71456
71457         * lib/readtokens.c: Include <stdbool.h>.
71458         (readtoken): Use `size_t' rather than int/long.
71459         All callers adjusted.
71460         Use `bool' rather than `int' where appropriate.
71461         Use memset rather than an explicit loop.
71462         Use x2nrealloc rather than xrealloc.
71463         Allow the use of `\0' as a delimiter.
71464         (readtokens): Likewise.
71465         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71466
71467 2004-03-30  Jim Meyering  <jim@meyering.net>
71468
71469         * m4/realloc.m4: Remove file, since now it does no more than
71470         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71471         the `configure.ac' section of module/realloc.
71472         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71473
71474 2004-03-30  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71477         nonnull.
71478
71479 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71480
71481         Merge changes to getloadavg.c from coreutils and Emacs.
71482
71483         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71484         Define to an expression, not to the empty string.
71485         Include cloexec.h and xalloc.h.
71486         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71487         Use set_cloexec_flag rather than rolling our own.
71488         * lib/cloexec.c, lib/cloexec.h: New files.
71489
71490 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71491
71492         * m4/cloexec.m4: New file.
71493
71494 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71495
71496         * lib/getopt.h: Sync with libc CVS.
71497
71498 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71499             Bruno Haible  <bruno@clisp.org>
71500
71501         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71502         mbswidth.
71503
71504 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71505             Bruno Haible  <bruno@clisp.org>
71506
71507         * lib/mbswidth.h: Include <wchar.h> only if
71508         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71509         <wchar.h>.
71510         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71511
71512 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71513
71514         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71515         Sync with libc CVS.
71516         * lib/getopt_int.h: New file, also synced from libc.
71517
71518 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71519
71520         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71521         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71522         Bring back getopt.c, getopt.h, getopt1.c.
71523
71524 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71525
71526         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71527         All uses changed.  Check for sa_sigaction member; this fixes
71528         a bug first reported by Jason Andrade in
71529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71530
71531 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71532
71533         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71534         '#if' expressions.  Unlike the code it replaces, it does not
71535         depend on (defined _SC_PAGESIZE).  However, it does depend on
71536         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71537         first reported by Jason Andrade in
71538         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71539
71540 2004-02-25  Simon Josefsson  <jas@extundo.com>
71541
71542         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71543
71544 2004-02-25  Simon Josefsson  <jas@extundo.com>
71545
71546         * lib/strdup.h: New file.
71547         * lib/strdup.c: Include it.
71548         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71549         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71550
71551 2004-02-23  Karl Berry  <karl@gnu.org>
71552
71553         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71554         (from fencepost.gnu.org:/gd/gnuorg).
71555
71556 2004-02-23  Karl Berry  <karl@gnu.org>
71557
71558         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71559         * config/srclist.txt: add maintain/standards documents.
71560
71561 2004-02-18  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71564         Reported by Derek Robert Price <derek@ximbiot.com>.
71565
71566 2004-02-16  Karl Berry  <karl@gnu.org>
71567
71568         * config/mkinstalldirs, install-sh: update from automake.
71569
71570 2004-02-06  Karl Berry  <karl@gnu.org>
71571
71572         * m4/po.m4: update from gettext 0.14.1.
71573
71574 2004-02-06  Karl Berry  <karl@gnu.org>
71575
71576         * lib/config.charset: update from gettext 0.14.1.
71577
71578 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71579
71580         Add comments and code, prompted by suggestions from Bruno Haible
71581         for sh-quote.
71582         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71583         describing the enum quoting_style values.
71584         * lib/quotearg.c (quotearg_alloc): New function.
71585         (quotearg_buffer_restyled): Treat lone { and } as special.
71586         Treat = as special.  Work around bug with older shells
71587         that "see" a '\' that is really the 2nd byte of a multibyte char.
71588         Quote empty string with shell_quoting_style.
71589
71590 2004-02-03  Bruno Haible  <bruno@clisp.org>
71591
71592         * m4/pipe.m4: New file, from GNU gettext.
71593
71594 2004-02-03  Bruno Haible  <bruno@clisp.org>
71595
71596         * lib/pipe.h: New file, from GNU gettext.
71597         * lib/pipe.c: New file, from GNU gettext.
71598
71599 2004-01-27  Bruno Haible  <bruno@clisp.org>
71600
71601         * m4/execute.m4: New file, from GNU gettext.
71602
71603 2004-01-27  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/execute.h: New file, from GNU gettext.
71606         * lib/execute.c: New file, from GNU gettext.
71607         * lib/w32spawn.h: New file, from GNU gettext.
71608
71609 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71610
71611         Merge from diffutils.
71612
71613         * lib/file-type.c (file_type): Add typed memory objects.
71614         * lib/file-type.h (S_TYPEISTMO): New macro.
71615
71616         * lib/c-stack.h (c_stack_action): Remove argv argument.
71617         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71618         (die): Don't calculate message unless segv_action returns.
71619         (get_stack_location, min_address_from_argv, max_address_from_argv,
71620         volatile stack_base, volatile_stack_size): Remove.
71621         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71622         that every segmentation violation is a stack overflow.  (Ouch!)
71623         See Debian bug 136249 (still outstanding) for more info about why
71624         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71625
71626 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71627
71628         Exit-status fix from coreutils.
71629
71630         Use exit_failure consistently in place of EXIT_FAILURE,
71631         so that program exit statuses are consistent on failure.
71632
71633         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71634         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71635         * lib/argmatch.h: Comment fix to match the above.
71636         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71637         Now a macro referring to exit_failure, instead of a separate
71638         variable.  Include "exitfail.h" to get it.
71639         * lib/xstrtol.h: Include "exitfail.h".
71640         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71641
71642         * lib/long-options.c (parse_long_options): Use prototype
71643         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71644         for clarity.
71645
71646 2004-01-21  Jim Meyering  <jim@meyering.net>
71647
71648         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71649         so as not to conflict with a different-sized __mktime_internal
71650         function in GNU libc.
71651         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71652         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71653
71654 2004-01-20  Karl Berry  <karl@gnu.org>
71655
71656         * config/config.guess: update from config.
71657
71658         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71659
71660 2004-01-20  Bruno Haible  <bruno@clisp.org>
71661
71662         Safer stack allocation.
71663         * lib/setenv.c: Include allocsa.h.
71664         (alloca): Remove fallback definition.
71665         (freea): Remove macro.
71666         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71667         instead of freea.
71668
71669 2004-01-20  Bruno Haible  <bruno@clisp.org>
71670
71671         * m4/eealloc.m4: New file, from GNU gettext.
71672
71673 2004-01-20  Bruno Haible  <bruno@clisp.org>
71674
71675         * m4/allocsa.m4: New file, from GNU gettext.
71676
71677 2004-01-20  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/xallocsa.h: New file, from GNU gettext.
71680         * lib/xallocsa.c: New file, from GNU gettext.
71681
71682 2004-01-20  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71685
71686 2004-01-20  Bruno Haible  <bruno@clisp.org>
71687
71688         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71689         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71690         specially.
71691
71692 2004-01-20  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71695         patch.
71696
71697 2004-01-20  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71700
71701 2004-01-20  Bruno Haible  <bruno@clisp.org>
71702
71703         * lib/eealloc.h: New file.
71704
71705 2004-01-20  Bruno Haible  <bruno@clisp.org>
71706
71707         * lib/binary-io.h: Avoid warnings on Cygwin.
71708
71709 2004-01-20  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/allocsa.h: New file, from GNU gettext.
71712         * lib/allocsa.c: New file, from GNU gettext.
71713
71714 2004-01-18  Karl Berry  <karl@gnu.org>
71715
71716         * doc/gpl.texi, doc/lgpl.texi: new files.
71717
71718 2004-01-18  Karl Berry  <karl@gnu.org>
71719
71720         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71721         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71722
71723 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71724
71725         Merge from coreutils.
71726
71727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71728         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71729         (gl_DEFAULT_POSIX2_VERSION): Move
71730         the documentation from 'configure' into 'config.hin',
71731         so that 'configure --help' isn't burdened by it and
71732         we don't have to worry about its formatting there.
71733         Reword the documentation so that it's more succinct
71734         and can be run together into a single paragraph.
71735         * m4/same.m4 (gl_SAME): Check for pathconf.
71736
71737 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71738
71739         Merge from coreutils.
71740
71741         * lib/posixver.c: Include posixver.h.
71742
71743         * lib/same.c: Include <stdbool.h>, <limits.h>.
71744         (_POSIX_NAME_MAX): Define if not defined.
71745         (MIN): New macro.
71746         (same_name): If file names are silently truncated, report
71747         that the file names are the same if they are the same after
71748         the silent truncation.
71749
71750         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71751         conversion function.
71752         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71753         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71754         longer needed.
71755
71756 2004-01-15  Jim Meyering  <jim@meyering.net>
71757
71758         Merge from coreutils.
71759
71760         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71761         if no library is required.
71762         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71763         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71764         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71765         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71766         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71767         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71768         value, $ac_cv_search_crypt, if it's "none required".
71769         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71770         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71771         not gl_FUNC_GETLOADAVG.
71772         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71773         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71774
71775 2004-01-15  Jim Meyering  <jim@meyering.net>
71776
71777         Merge from coreutils.
71778
71779         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71780         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71781         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71782
71783         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71784         optional configure-time default.
71785
71786         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71787
71788         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71789
71790 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71791
71792         Merge from coreutils.
71793
71794         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71795         value, $ac_cv_search_nanosleep, if it's "none required".
71796
71797 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71798
71799         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71800         with like-named macro in fnmatch.c.
71801         (EXT): Use an internal constant instead.
71802
71803         Merge fnmatch patches from glibc.
71804         * lib/fnmatch.c (mbsinit): Remove define.
71805         Add libc_hidden_ver (__fnmatch, fnmatch).
71806         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71807         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71808
71809 2004-01-14  Karl Berry  <karl@gnu.org>
71810
71811         * config/install-sh: update from automake.
71812
71813 2004-01-13  Karl Berry  <karl@gnu.org>
71814
71815         * config/install-sh: update from automake.
71816
71817 2004-01-09  Karl Berry  <karl@gnu.org>
71818
71819         * config/install-sh: update from automake.
71820
71821 2004-01-05  Karl Berry  <karl@gnu.org>
71822
71823         * config/config.{sub,guess}: update from config.
71824
71825 2003-12-31  Karl Berry  <karl@gnu.org>
71826
71827         * config/depcomp: update from automake.
71828
71829 2003-12-14  Karl Berry  <karl@gnu.org>
71830
71831         * lib/config.charset: update from gettext-runtime.
71832
71833 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71834
71835         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71836         Bug reported by Alfred M. Szmidt.
71837
71838 2003-12-03  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/gettext.m4: Upgrade from gettext-0.13.
71841         * m4/po.m4: Upgrade from gettext-0.13.
71842         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71843         * m4/intmax.m4: New file, from gettext-0.13.
71844         * m4/printf-posix.m4: New file, from gettext-0.13.
71845
71846 2003-11-29  Karl Berry  <karl@gnu.org>
71847
71848         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71849
71850 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71851             Bruno Haible  <bruno@clisp.org>
71852
71853         * lib/printf-parse.h: Don't include sys/types.h.
71854         (ARG_NONE): New macro.
71855         (char_directive): Change type of *arg_index fields to size_t.
71856         * lib/printf-parse.c: Don't include sys/types.h.
71857         (SSIZE_MAX): Remove macro.
71858         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71859         Remove unnecessary overflow check.
71860         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71861         fields.
71862
71863 2003-11-25  Bruno Haible  <bruno@clisp.org>
71864
71865         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71866
71867 2003-11-25  Bruno Haible  <bruno@clisp.org>
71868
71869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71870         gt_TYPE_SSIZE_T.
71871
71872 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71873
71874         * modules/alloca: Remove dependency on xalloc.
71875
71876 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71877
71878         * lib/alloca.c: Remove dependency on xalloc module.
71879         (xalloc_die): Remove.
71880         (memory_full) [!defined emacs]: New macro.
71881         [!defined emacs]: Don't include xalloc.h.
71882         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71883         address arithmetic overflows.  Change datatypes a bit to avoid
71884         unnecessary casts.
71885
71886 2003-11-22  Jim Meyering  <jim@meyering.net>
71887
71888         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71889         s/size/size_t/.
71890
71891 2003-11-21  Karl Berry  <karl@gnu.org>
71892
71893         * config/config.{sub,guess}: update from config.
71894
71895 2003-11-18  Karl Berry  <karl@gnu.org>
71896
71897         * config/config.{sub,guess}: update from config.
71898
71899         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71900
71901 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71902
71903         * README: Mention that S+T cannot overflow if S is the size of
71904         an existing object and T is sufficiently small.
71905
71906 2003-11-17  Jim Meyering  <jim@meyering.net>
71907
71908         On systems without utime and without a utimes function capable of
71909         dealing with a NULL struct utimbuf* argument, this utime replacement
71910         could -- in unusual circumstances -- leak a file descriptor.
71911         * lib/utime.c: Include <unistd.h> and <errno.h>.
71912         (utime_null): Be sure to close `fd' and to preserve errno.
71913         Reported by Geoff Collyer via Arnold Robbins.
71914
71915 2003-11-17  Bruno Haible  <bruno@clisp.org>
71916
71917         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71918         (Depends-on): Add xsize.
71919
71920 2003-11-17  Bruno Haible  <bruno@clisp.org>
71921
71922         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71923
71924 2003-11-17  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/vasnprintf.c (alloca): Remove fallback definition.
71927         (freea): Remove definition.
71928         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71929         Reported by Paul Eggert.
71930
71931 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71932             Bruno Haible  <bruno@clisp.org>
71933
71934         Protect against address arithmetic overflow.
71935         * lib/printf-args.h: Include stddef.h.
71936         (arguments): Change type of field 'count' to size_t.
71937         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71938         'unsigned int' where appropriate.
71939         * lib/printf-parse.h: Include sys/types.h.
71940         (char_directive): Change type of *arg_index fields to ssize_t.
71941         (char_directives): Change type of fields 'count', max_*_length to
71942         size_t.
71943         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71944         (SSIZE_MAX): Define fallback value.
71945         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71946         instead of 'int' where appropriate. Check a_allocated, d_allocated
71947         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71948         * lib/vasnprintf.c: Include xsize.h.
71949         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71950         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71951         overflow. Avoid wraparound when converting a width or precision from
71952         decimal to binary.
71953
71954 2003-11-16  Bruno Haible  <bruno@clisp.org>
71955
71956         Update from GNU gettext.
71957         * lib/printf-parse.c: Generalize to it can be compiled for wide
71958         strings.
71959         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71960         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71961         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71962         SNPRINTF): New macros.
71963         Don't include <alloca.h> if the file is used inside libintl.
71964         (local_wcslen): New function, for Solaris 2.5.1.
71965         (VASNPRINTF): Use it instead of wcslen.
71966
71967 2003-11-16  Bruno Haible  <bruno@clisp.org>
71968
71969         * lib/xsize.h (xmax): New function.
71970         (xsum, xsum3, xsum4): Declare as "pure" functions.
71971
71972 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71973
71974         * modules/xalloc (Files): Undo latest change, since xalloc.h
71975         no longer needs SIZE_MAX or PTRDIFF_MAX.
71976
71977 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71978
71979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71980         gl_PTRDIFF_MAX.
71981
71982 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71983
71984         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71985         "return", to pacify some unknown compiler.  Problem reported
71986         by Joerg Schilling.
71987
71988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71989
71990         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71991         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71992         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71993         heuristic is just as accurate as far as we know, and it removes a
71994         dependency on size_max.m4 and ptrdiff_max.m4.
71995
71996 2003-11-11  Bruno Haible  <bruno@clisp.org>
71997
71998         * modules/xsize (Files): Add m4/size_max.m4.
71999         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72000
72001 2003-11-11  Bruno Haible  <bruno@clisp.org>
72002
72003         * m4/size_max.m4: New file.
72004         * m4/ptrdiff_max.m4: New file.
72005         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72006         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72007         (gl_XALLOC): Invoke it.
72008
72009 2003-11-11  Bruno Haible  <bruno@clisp.org>
72010
72011         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72012         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72013         defined.
72014
72015 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72016
72017         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72018         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72019         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72020         From Bruno Haible.
72021         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72022         not (size_t) -1, since it's defined here.
72023
72024 2003-11-09  Karl Berry  <karl@gnu.org>
72025
72026         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72027
72028 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72029
72030         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72031         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72032         Reject sizes of exactly SIZE_MAX bytes.
72033         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72034         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72035
72036 2003-11-05  Bruno Haible  <bruno@clisp.org>
72037
72038         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72039         SIZE_MAX defined in <limits.h> on Solaris.
72040
72041 2003-11-04  Jim Meyering  <jim@meyering.net>
72042
72043         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72044         variable names, rather than @VAR@.
72045         * modules/poll: Likewise.
72046
72047 2003-11-04  Bruno Haible  <bruno@clisp.org>
72048
72049         * modules/xsize: New file.
72050         * modules/linebreak: Depend on xsize.
72051         * MODULES.html.sh (func_all_modules): Add xsize.
72052
72053 2003-11-04  Bruno Haible  <bruno@clisp.org>
72054
72055         * m4/xsize.m4: New file.
72056
72057 2003-11-04  Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/xsize.h: New file.
72060         * lib/linebreak.c: Include xsize.h.
72061         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72062         argument for overflow.
72063         Suggested by Paul Eggert.
72064
72065 2003-11-03  Karl Berry  <karl@gnu.org>
72066
72067         * config/config.{guess,sub}: update from config.
72068
72069 2003-11-03  Jim Meyering  <jim@meyering.net>
72070
72071         * modules/userspec (lib_SOURCES): Add userspec.h.
72072         (Include): Add "userspec.h".
72073         Improve description.
72074
72075 2003-11-03  Jim Meyering  <jim@meyering.net>
72076
72077         * lib/userspec.c: Include "userspec.h".
72078         * lib/userspec.h: New file.
72079
72080 2003-11-03  Bruno Haible  <bruno@clisp.org>
72081
72082         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72083
72084 2003-11-03  Bruno Haible  <bruno@clisp.org>
72085
72086         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72087         available, to avoid (extremely rare) race condition.
72088         Suggested by Paul Eggert.
72089
72090 2003-11-02  Karl Berry  <karl@gnu.org>
72091
72092         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72093
72094 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72095
72096         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72097         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72098         (read_filesystem_list): Set and use me_type_malloced.
72099         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72100         whatever the type happens to be), for brevity and consistency.
72101         Check for size calculation overflow on Alphas running OSF/1.
72102
72103 2003-10-31  Jim Meyering  <jim@meyering.net>
72104
72105         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72106
72107         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72108
72109 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72110             Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72113         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72114
72115 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72118         netbsd*-gnu*.  Suggested by Robert Millan.
72119
72120 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72121
72122         * modules/group-member: Depend on stdbool.
72123
72124 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72125
72126         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72127
72128 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72129
72130         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72131         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72132         after the 'gnu' in these cases.  This fixes some bugs in the
72133         previous change, and is based on suggestions by Robert Millan.
72134
72135 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72136
72137         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72138         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72139         no longer needed.
72140         * lib/quotearg.c (quotearg_n_options): Use it.
72141         * lib/group-member.c: Include <stdbool.h>.
72142         (free_group_info): Arg is now const *; don't free arg.
72143         (get_group_info): Now returns bool and accepts struct group_info *,
72144         rather than returning a malloc'ed struct group_info *.
72145         All uses changed.  Check for overflow in internal size calculation.
72146
72147         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72148         rather than xmalloc/xrealloc.
72149         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72150         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72151         conformance bug: the old code used a pointer after freeing the
72152         storage that it addressed.
72153         * lib/hash.c (hash_initialize): Simplify the code by using
72154         xalloc_oversized rather than doing it by hand.
72155         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72156         the buffer preserved.  Use free and xmalloc instead.
72157         * lib/quotearg.c (quotearg_n_options): Likewise.
72158         Use a simpler test for size overflow.  Don't use xalloc_oversized
72159         because unsigned int might be wider than size_t (!); this suggests
72160         that we should switch from unsigned int to size_t for slot numbers.
72161
72162 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72163
72164         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72165         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72166         NetBSD kernels.  Requested by Richard Stallman.
72167
72168 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72169
72170         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72171         to allocate the returned structure.  Do not allocate a subarray,
72172         as x2nrealloc will do that.
72173         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72174         instead of xnrealloc.
72175         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72176
72177 2003-10-27  Bruno Haible  <bruno@clisp.org>
72178
72179         * lib/stdbool_.h: Better support for BeOS.
72180
72181 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72182
72183         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72184         now uses inline.
72185
72186 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72187
72188         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72189         callers that want to do their own size-overflow checking.  Include
72190         <stdbool.h>, since xalloc_oversized returns bool.
72191         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72192         to use xalloc_oversized.
72193
72194         Add two functions x2realloc, x2nrealloc, for programs that grow
72195         arrays dynamically by doubling their sizes.
72196         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72197         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72198         New functions.
72199
72200         Port to C99 semantics for 'inline' of external functions.
72201         Bug reported by Bruno Haible.
72202         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72203         with the old contents of xnmalloc.
72204         (xnmalloc, xmalloc): Use it.
72205         (xnrealloc_inline): New static inline function,
72206         with the old contents of xnrealloc.
72207         (xnrealloc, xrealloc): Use it.
72208
72209         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72210         that.
72211
72212 2003-10-26  Karl Berry  <karl@gnu.org>
72213
72214         * config/srclist.txt (COPYING.DOC): no longer available from
72215         /gd/gnuorg; don't know where the ultimate source is.
72216
72217 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72218
72219         Fix several address-calculation bugs in the hash modules,
72220         plus some minor code cleanup.
72221
72222         * lib/hash.h: Include <stdbool.h>, for bool.
72223         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72224         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72225         hash_get_n_entries, hash_get_max_bucket_length,
72226         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72227         hash_rehash): Use size_t rather than unsigned.
72228         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72229         hash_get_n_buckets_used, hash_get_n_entries,
72230         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72231         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72232         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72233         Likewise.
72234         (SIZE_MAX): Define if not defined.
72235         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72236         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72237         hash_print):
72238         Use const * when possible.
72239         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72240         (check_tuning): Fix bug: if tuning parameters were very close to
72241         0 or 1, rounding errors could have caused subscript violations.
72242         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72243         (hash_initialize): Add 'fail:' label
72244         to free table and return NULL, and use it to simplify code.
72245         Use calloc rather than clearing the storage ourself.
72246         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72247         buffer size calculations.
72248         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72249         Include <stddef.h>, for size_t.
72250         * lib/hash-pjw.c (hash_pjw): Likewise.
72251         Switch to method described by Bruno Haible.
72252         Include <limits.h>, for CHAR_BIT.
72253         (SIZE_BITS): New macro.
72254
72255 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72256
72257         * m4/getline.m4 (AM_FUNC_GETLINE):
72258         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72259         hosts.  Problem reported by Derek Robert Price in
72260         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72261         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72262         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72263
72264 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72265
72266         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72267         ceiling the allocation at NMAX bytes rather than silently
72268         discarding input bytes before NMAX is reached.  This makes
72269         a difference only if NMAX exceeds SIZE_MAX / 2.
72270
72271         * lib/obstack.c: Merge from glibc.
72272         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72273         Add libc_hidden_def (_obstack_newchunk).
72274         (_obstack_free) [! defined _LIBC]: Remove.
72275         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72276         a clone of the function body.
72277         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72278         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72279
72280         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72281         glibc.
72282         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72283         arg to memcpy.
72284
72285         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72286         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72287         Don't use lvalue casts, as GCC plans to remove support for them
72288         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72289         was also present in the non-GCC version, indicating that this
72290         code had always been buggy and had never been widely used.
72291         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72292         Use the fast variant of each macro, rather than copying the
72293         definiens of the fast variant; that way, we'll be more likely to
72294         catch future bugs in the fast variants.
72295
72296 2003-10-20  Bruno Haible  <bruno@clisp.org>
72297
72298         * modules/wait-process: New file.
72299         * MODULES.html.sh (func_all_modules): Add wait-process.
72300
72301 2003-10-20  Bruno Haible  <bruno@clisp.org>
72302
72303         * m4/wait-process.m4: New file.
72304
72305 2003-10-20  Bruno Haible  <bruno@clisp.org>
72306
72307         * lib/wait-process.h: New file, from GNU gettext.
72308         * lib/wait-process.c: New file, from GNU gettext.
72309
72310 2003-10-19  Jim Meyering  <jim@meyering.net>
72311
72312         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72313         HPUX 10.20.
72314
72315 2003-10-18  Karl Berry  <karl@gnu.org>
72316
72317         * config/config.guess: update from config.
72318
72319 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72320
72321         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72322         (getgroups): First arg is int, not size_t.
72323         Don't let 'free' mangle errno.
72324
72325 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72326
72327         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72328
72329 2003-10-16  Karl Berry  <karl@gnu.org>
72330
72331         * config/config.{guess,sub}: update from config.
72332
72333 2003-10-16  Jim Meyering  <jim@meyering.net>
72334
72335         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72336         memcpy.
72337
72338 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72339
72340         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72341         (SIZE_MAX): Remove.
72342         (new_exclude, add_exclude_file): Initial size no longer needs to
72343         be a power of 2.
72344         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72345         our own address arithmetic overflow checking.
72346
72347         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72348         (fnmatch): Do not alloca more than 2000 wide characters;
72349         instead, use malloc for large buffers.
72350         Check for address arithmetic overflow, and return -1
72351         with errno set to ENOMEM in that case.
72352         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72353         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72354         instead, return -1.  Check for address arithmetic overflow.
72355
72356 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72357
72358         Handle invalid suffixes and overflow independently, so that
72359         callers can treat them independently as needed.  Fix some bugs in
72360         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72361         suffix for a human-readable blocksize.  The major caller-visible
72362         change is the addition of a new
72363         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72364         that both overflow and suffix chars were found.
72365
72366         * lib/human.c (humblock): Don't check separately for invalid suffix
72367         char; that is xstrtoumax's job (now that its bug is fixed).
72368         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72369         INTMAX_MAX]: New macros.
72370         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72371         TYPE_MAXIMUM): New macros.
72372         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72373         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72374         if overflow occurs, as it's what __strtol does and it's more useful
72375         in practice.
72376         (__xstrtol): If __strtol reports some error other than ERANGE,
72377         reflect it to the caller as LONGINT_INVALID.  If it reports
72378         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72379         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72380         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72381         value.
72382         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72383         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72384         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72385         [defined UINTMAX_MAX]: New macros.
72386
72387 2003-10-14  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72390
72391 2003-10-14  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/sig_atomic_t: New file, from GNU gettext.
72394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72395
72396 2003-10-14  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72399         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72400         Also use volatile where needed.
72401
72402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72403
72404         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72405         Change maintainer from Bruno Haible to 'all'.
72406
72407 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72408
72409         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72410
72411 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72412
72413         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72414         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72415         and define in terms of the other primitives.
72416         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72417         (SIZE_MAX): Define if not already defined.
72418         (array_size_overflow): New function.
72419         (xalloc_die): Abort instead of exiting if 'error' returns.
72420         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72421         (xmalloc, xrealloc): Use them.
72422         (xcalloc): Check for address arithmetic overflow.
72423         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72424         a bit faster than strcpy.
72425
72426 2003-10-10  Simon Josefsson  <jas@extundo.com>
72427
72428         * modules/argp (Depends-on): Add restrict and strcase.
72429
72430 2003-10-10  Simon Josefsson  <jas@extundo.com>
72431
72432         * m4/argp.m4: Add AC_C_INLINE.
72433
72434 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72435
72436         Merge getpass from libc, plus a few fixes.
72437
72438         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72439         Include <stdbool.h>.
72440         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72441         __fsetlocking to empty.
72442         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72443         do include <bits/libc-lock.h>.
72444         Do not include <fcntl.h>; not needed.
72445         [_LIBC]: Include <wchar.h>.
72446         (NOTCANCEL_MODE): New macro.
72447         (flockfile, funlockfile) [_LIBC]: New macros.
72448         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72449         [!_LIBC]: New macros.
72450         (call_fclose): New function.
72451         (getpass): Use it.  Save tty stream separately; this simplifies the
72452         code and makes it more reliable if stdin happens to equal stdout.
72453         Invoke __fsetlocking on tty.
72454         Handle thread cancellation if needed.
72455         Namespace cleanup (use __tcgetattr, __getline).
72456         Use bool for Booleans.
72457         [USE_IN_LIBIO]: Handle wide streams.
72458         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72459         stream might go where.
72460
72461         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72462         doesn't have to include <stdio.h> before us.
72463         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72464         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72465         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72466         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72467         if not declared, so that we can use getpass.c code from libc without
72468         rewriting it.
72469         (flockfile, ftrylockfile, funlockfile): New macros.
72470
72471 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72472
72473         * modules/getpass: Depend on stdbool.
72474
72475 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72476
72477         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72478
72479 2003-10-07  Karl Berry  <karl@gnu.org>
72480
72481         * config/config.{guess,sub}: update from config.
72482
72483 2003-10-06  Jim Meyering  <jim@meyering.net>
72484             Bruno Haible  <bruno@clisp.org>
72485
72486         This lets translators provide better translations for the
72487         "Written by ..." part of --version output.
72488         * lib/version-etc.h: Include stdarg.h.
72489         (version_etc_copyright): Declare as readonly.
72490         (version_etc): Make this function variadic with a NULL-terminated list
72491         of author name strings.
72492         (version_etc_va): New declaration.
72493         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72494         (version_etc_copyright): Declare as readonly.
72495         (version_etc_va): New function. Provide a different translatable string
72496         for each possible number of authors < 10. Abbreviate when there are 10
72497         authors or more.
72498         (version_etc): Make this function variadic. Call version_etc_va.
72499         Suggestion from Gary V. Vaughan.
72500
72501         * lib/long-options.h (parse_long_options): Change prototype: the
72502         authors string is moved to the end and becomes variadic.
72503         * lib/long-options.c: Include stdarg.h.
72504         (parse_long_options): Make this function variadic, too.
72505         Call version_etc_va, not version_etc.
72506
72507 2003-10-06  Bruno Haible  <bruno@clisp.org>
72508
72509         * modules/version-etc-2: Remove file.
72510         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72511
72512 2003-10-06  Bruno Haible  <bruno@clisp.org>
72513
72514         * modules/fatal-signal: New file.
72515         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72516
72517 2003-10-06  Bruno Haible  <bruno@clisp.org>
72518
72519         * m4/fatal-signal.m4: New file.
72520         * m4/signalblocking.m4: New file, from GNU gettext.
72521
72522 2003-10-06  Bruno Haible  <bruno@clisp.org>
72523
72524         * lib/version-etc-2.h: Remove file.
72525         * lib/version-etc-2.c: Remove file.
72526
72527 2003-10-06  Bruno Haible  <bruno@clisp.org>
72528
72529         * lib/fatal-signal.h: New file, from GNU gettext.
72530         * lib/fatal-signal.c: New file, from GNU gettext.
72531
72532 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72533
72534         * README: Rework advice for preventing empty .o files.
72535         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72536         not <sys/types.h>.
72537
72538 2003-10-04  Karl Berry  <karl@gnu.org>
72539
72540         * lib/argp*: update from libc.
72541
72542 2003-10-04  Karl Berry  <karl@gnu.org>
72543
72544         * config/config.{guess,sub}: update from config.
72545
72546 2003-10-02  Bruno Haible  <bruno@clisp.org>
72547
72548         * modules/lchown (Include): Add lchown.h.
72549         * modules/time_r (Include): Use "..." syntax.
72550         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72551
72552 2003-10-01  Simon Josefsson  <jas@extundo.com>
72553
72554         * MODULES.html.sh (func_all_modules): Move gethostname from section
72555         'based on' to section 'lacking' POSIX:2001.
72556
72557 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72558
72559         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72560         to output mode on the same stream.
72561
72562 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72563
72564         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72565         Fix arg typo in previous patch.
72566
72567 2003-09-28  Jim Meyering  <jim@meyering.net>
72568
72569         * lib/error.c: Correct cpp indentation.
72570
72571 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72572
72573         * modules/free: New file.
72574
72575 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72576
72577         * m4/free.m4: New file.
72578
72579 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72580
72581         * lib/minmax.h (MIN, MAX)
72582         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72583         Omit the special code that used __typeof__, since we worry that
72584         it could be more trouble than it's worth.  See:
72585         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72586         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72587
72588         * lib/free.c: New file.
72589
72590 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72591
72592         Trivial fixes to Makefile.am parts of module listings.
72593         * modules/strstr: Append strstr.h to lib_SOURCES.
72594         * modules/strcase: Likewise, for strcase.h.
72595
72596 2003-09-27  Karl Berry  <karl@gnu.org>
72597
72598         * config/mkinstalldirs: update from automake.
72599
72600 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72601
72602         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72603         (error_tail): Do not loop, reallocating temporary buffer, since
72604         the output cannot contain more wide characters than the input
72605         contains bytes, the size must be big enough already.  This avoids
72606         one potential size overflow calculation.  Check for size overflow
72607         when calculating temporary buffer size.  Free temporary buffer
72608         when done, if it was allocated with malloc; this plugs a memory
72609         leak.  Remove casts from void * to pointers, that are no longer
72610         needed now that we're assuming C89 or better.
72611
72612         Merge error changes from glibc.
72613
72614         * lib/error.c, error.h: Update copyright notice header to match glibc.
72615         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72616         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72617         Disable cancellation while printing error.
72618         * lib/error.h: Prepend __ to parameter names.
72619
72620 2003-09-26  Jim Meyering  <jim@meyering.net>
72621
72622         * lib/error.c (error_tail): Move some declarations
72623         into inner scope where the local variables are used.
72624
72625 2003-09-26  Bruno Haible  <bruno@clisp.org>
72626
72627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72628         stpncpy().
72629         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72630
72631 2003-09-26  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72634         (stpncpy): Define as alias for gnu_stpncpy.
72635         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72636
72637 2003-09-25  Simon Josefsson  <jas@extundo.com>
72638
72639         * lib/xgetdomainname.h: New file.
72640         * lib/xgetdomainname.c: New file.
72641
72642 2003-09-25  Simon Josefsson  <jas@extundo.com>
72643             Bruno Haible  <bruno@clisp.org>
72644
72645         * modules/getdomainname: New file.
72646         * modules/xgetdomainname: New file.
72647         * MODULES.html.sh (func_all_modules): Add getdomainname,
72648         xgetdomainname.
72649
72650 2003-09-25  Simon Josefsson  <jas@extundo.com>
72651             Bruno Haible  <bruno@clisp.org>
72652
72653         * m4/getdomainname.m4: New file.
72654
72655 2003-09-25  Simon Josefsson  <jas@extundo.com>
72656             Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/getdomainname.h: New file.
72659         * lib/getdomainname.c: New file.
72660
72661 2003-09-25  Karl Berry  <karl@gnu.org>
72662
72663         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72664
72665 2003-09-25  Karl Berry  <karl@gnu.org>
72666
72667         * config/install-sh: update from automake.
72668
72669 2003-09-25  Bruno Haible  <bruno@clisp.org>
72670
72671         * modules/version-etc-2: New file, from modules/version-etc with
72672         modifications.
72673         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72674
72675 2003-09-25  Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72678         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72679
72680 2003-09-24  Simon Josefsson  <jas@extundo.com>
72681
72682         * modules/xgethostname: Add xgethostname.h.
72683
72684 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72685
72686         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72687         the buffer associated with the argument.  Bug reported by
72688         Simon Josefsson.
72689
72690 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72691
72692         * README: Document assumptions that 'int' is at least 32 bits
72693         wide, that integer arithmetic is 2's complement without overflow,
72694         that there are no holes in integer values, that adding sizes of
72695         two nonoverlapping objects can't overflow, and that all-bits-zero
72696         yields scalar zero.  Fix spelling and capitalization typos.
72697
72698 2003-09-19  Karl Berry  <karl@gnu.org>
72699
72700         * lib/argp.h: update from libc.
72701
72702 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72703
72704         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72705         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72706         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72707
72708 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72709
72710         * gnulib-tool: Use "test -h", not "test -L", for portability
72711         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72712         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72713         (sed_extract_prog): Issue s commands one-by-one, rather than
72714         using \| in one s command.
72715
72716 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72717
72718         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72719         input error, instead of returning NULL the next time we are called
72720         (and therefore losing track of errno).
72721
72722 2003-09-16  Bruno Haible  <bruno@clisp.org>
72723
72724         * gnulib-tool (func_create_testdir): Warn about duplicated
72725         dependencies.
72726
72727 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72728
72729         * modules/argmatch, modules/fatal, modules/obstack,
72730         modules/xalloc, modules/xgethostname: Sort dependencies by
72731         importance, not alphabetically.
72732
72733 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72734
72735         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72736         fails, so that the caller gets the proper errno.
72737
72738         * lib/readutmp.c (read_utmp): Likewise.
72739         Check for fstat error.  Close stream and free storage
72740         when failing.
72741
72742 2003-09-14  Karl Berry  <karl@gnu.org>
72743
72744         * config/srclist.txt (strdup.c): disable for c89 changes.
72745
72746 2003-09-14  Jim Meyering  <jim@meyering.net>
72747
72748         * lib/getloadavg.c: Correct cpp indentation.
72749         * lib/strdup.c: Likewise.
72750         * lib/vasnprintf.c: Likewise.
72751
72752 2003-09-14  Bruno Haible  <bruno@clisp.org>
72753
72754         * modules/fwriteerror: New file.
72755         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72756
72757 2003-09-14  Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/fwriteerror.h: New file.
72760         * lib/fwriteerror.c: New file.
72761
72762 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72763
72764         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72765         modules/xgethostname, modules/xalloc: Depend on exit.
72766
72767 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72768
72769         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72770
72771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72772         and AC_MINIX, too, so that their extensions are available.
72773
72774         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72775         This macro has been superseded by gl_BACKUPFILE.
72776
72777         More patches to assume C89 or better.
72778
72779         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72780
72781         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72782         unconditionally.
72783         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72784         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72785         Include <string.h>, <stdlib.h> unconditionally.
72786         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72787         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72788         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72789         headers or for string.h.
72790         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72791         or strtoul.
72792
72793         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72794         headers.
72795         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72796         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72797         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72798         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72801         memcpy, memset.
72802         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72803         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72804         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72805         strtol.
72806         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72807         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72809         strtoul.
72810
72811 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72812
72813         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72814         * lib/obstack.c [!defined _LIBC]: Likewise.
72815         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72816         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72817         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72818
72819         More changes to assume C89 or better.
72820
72821         * lib/error.c (error_tail): Assume vprintf.
72822
72823         * lib/argmatch.c (getenv): Remove decl.
72824         * lib/progreloc.c (get_full_program_name): Define via prototype.
72825         * lib/setenv.c (clearenv): Likewise.
72826         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72827         needed.
72828         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72829         (malloc, memcpy): Remove decls.
72830         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72831         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72832         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72833         (memcpy): Remove macro.
72834         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72835         (__P): Remove.  All uses removed.
72836         (PTR): Remove.  All uses changed to void *.
72837         (CHAR_BIT, NULL): Remove.
72838         (spaces, zeros, memset_space, memset_zero)
72839         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72840         Remove.
72841         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72842         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72843         Define with prototype.
72844         Remove now-unnecessary prototype decl.
72845         (extra_args_spec): Assume ANSI C.  All uses changed.
72846         (extra_args_spec_iso): Remove.
72847         (my_strftime, emacs_strftimeu): Define via prototype.
72848         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72849         unconditionally.
72850         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72851         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72852         (strtoul, strtol): Remove decls.
72853         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72854         LONG_MAX): Remove.
72855         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72856         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72857         (LOCALE_PARAM_PROTO): New macro.
72858         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72859         (INTERNAL (strtol), strtol): Define with a prototype.
72860         (PARAMS): Remove.  All uses removed.
72861         * lib/tempname.c: Include <string.h> unconditionally.
72862         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72863         * lib/xgethostname.c (main): Define with a prototype.
72864         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72865         Include <stdlib.h> unconditionally.
72866         (calloc, malloc, realloc, free): Remove decls.
72867         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72868         Include <stdlib.h> unconditionally.  Sort include file names.
72869         (strtod): Remove.
72870         (xstrtod): Define with a prototype.
72871         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72872         (strtol, strtoul): Remove decls.
72873
72874 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72875
72876         More patches to assume C89 or better.
72877         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72878         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72879         string.h, memchr, STDC_HEADERS.
72880
72881 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72882
72883         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72884         Include <stdlib.h>, <string.h> unconditionally.
72885         Remove now-unnecessary cast to char *.
72886         * lib/strnlen.c: Include <string.h> unconditionally.
72887         * lib/yesno.c (yesno): Define with a prototype.
72888
72889 2003-09-11  Bruno Haible  <bruno@clisp.org>
72890
72891         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72892
72893 2003-09-10  Jim Meyering  <jim@meyering.net>
72894
72895         * lib/error.c: Correct indentation of cpp directives.
72896
72897 2003-09-10  Bruno Haible  <bruno@clisp.org>
72898
72899         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72900         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72901         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72902         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72903         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72904         <stdlib.h> and <string.h> checks.
72905         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72906         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72907
72908 2003-09-10  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/strcspn.c: Include <string.h> unconditionally.
72911         * lib/strpbrk.c: Include <string.h> unconditionally.
72912         * lib/strstr.c: Include <string.h> unconditionally.
72913         * lib/unicodeio.c: Include <string.h> unconditionally.
72914         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72915         * lib/unsetenv.c: Likewise.
72916         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72917         * lib/yesno.c: Include <stdlib.h> unconditionally.
72918         (rpmatch): Add prototype.
72919
72920 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72921
72922         More patches to assume C89 or better.
72923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72924         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72925         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72926         or for string.h.
72927         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72928         stdlib.h.
72929         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72930         C headers.
72931         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72932         string.h.
72933         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72934         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72935         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72936         or for string.h.
72937         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72938         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72939         C headers.
72940         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72941         memcpy.
72942         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72943         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72944         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72945         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72946         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72947         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72948         string.h, free.
72949         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72950         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72951         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72952         C headers, or for string.h.
72953         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72954         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72955         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72956         headers, memory.h, stdlib.h, string.h, strings.h.
72957         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72958         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72959         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72960         strchr.
72961         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72962         headers, memory.h, string.h.
72963         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72964         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72965         free.
72966         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72967         headers.
72968         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72969         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72970         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72971         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72972         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72973
72974 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72975
72976         More K&R removal.
72977
72978         * lib/acosl.c (main): Use a prototype.
72979         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72980         tanl.c: Likewise.
72981
72982         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72983
72984         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72985         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72986         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72987         with a prototype.
72988         * lib/getopt.c (const): Remove macro.
72989         Include <string.h> unconditionally.
72990         (my_index): Remove; all uses changed to strchr.
72991         (strlen): Remove decl.
72992         (exchange): Remove forward decl; no longer needed.
72993         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72994         Define with prototype.
72995         * lib/getopt1.c (const): Remove macro.
72996         (getopt_long, getopt_long_only, main): Define with prototype.
72997
72998         * lib/getugroups.c: Include <string.h> unconditionally.
72999
73000         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73001         (getusershell, setusershell, endusershell, readname, main):
73002         Define with prototypes.
73003
73004         * lib/group-member.c: Include group-member.h first.
73005         Include <stdlib.h> unconditionally.
73006
73007         * lib/hard-locale.c: Include hard-locale.h first.
73008         Include <stdlib.h>, <string.h> unconditionally.
73009
73010         * lib/hash.c (free, malloc): Remove decls.
73011         Include <stdlib.h> unconditionally.
73012
73013         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73014         (getenv): Do not declare.
73015
73016         * lib/idcache.c: Include <string.h> unconditionally.
73017
73018         * lib/long-options.c: Include long-options.h first, to test interface.
73019         Include <stdlib.h> unconditionally.
73020
73021         * lib/makepath.c: Include makepath.h first, to test interface.
73022         Include <stdlib.h> and <string.h> unconditionally.
73023
73024         * lib/linebuffer.c: Include <stdlib.h>.
73025         (free): Remove decl.
73026
73027         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73028         stddef.h. rpl_malloc returns void *, not char *.
73029         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73030         prototype.
73031
73032         * lib/md5.h: Include <limits.h> unconditionally.
73033         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73034         (__P): Remove; all uses removed.
73035         * lib/md5.c: Include "md5.h" first.
73036         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73037         md5_buffer, md5_process_bytes, md5_process_block):
73038         Define with prototypes.
73039         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73040         * lib/sha.c: Include "sha.h" first.
73041         Include <stdlib.h>, <string.h> unconditionally.
73042
73043         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73044         * lib/memcmp.c (__ptr_t): Likewise.
73045         * lib/memrchr.c (__ptr_t): Likewise.
73046         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73047         Include <string.h> unconditionally.
73048         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73049         * lib/memchr.c: Include <stdlib.h> unconditionally.
73050         * lib/memchr.c (LONG_MAX): Remove.
73051         * lib/memrchr.c (LONG_MAX): Likewise.
73052         * lib/memchr.c (__memchr): Define via a prototype.
73053         * lib/memrchr.c (__memrchr): Likewise.
73054         * lib/memcmp.c (__P): Remove, and remove all uses.
73055         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73056         Remove forward decls; no longer needed.
73057         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73058         Use types required by C89 in prototype.
73059
73060         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73061         * lib/savedir.c: Likewise.
73062         * lib/mkdir.c (free): Remove decl.
73063         * lib/rmdir.c (rmdir): Define with a prototype.
73064         * lib/savedir.c: Include savedir.h first, to test interface.
73065
73066         * lib/mktime.c (STDC_HEADERS): Remove.
73067         Include <stdlib.h>, <string.h> unconditionally.
73068
73069         * lib/modechange.c: Include <stdlib.h> unconditionally.
73070         (malloc): Remove decl.
73071
73072         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73073         (free): Remove decl.
73074
73075         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73076         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73077         (This type really should be intptr_t, but that's a C99ism.)
73078         (_obstack_memcpy): Remove: all uses changed to memcpy.
73079         Include <string.h> unconditionally.
73080         (struct obstack): Assume __STDC__ for types of members
73081         chunkfun, freefun, extra_arg.
73082         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73083         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73084         obstack_begin, obstack_specify_allocation,
73085         obstack_specify_allocation_with_arg, obstack_chunkfun,
73086         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73087         Remove unprototyped decls and the macros that use them.
73088         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73089         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73090         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73091         (defined __STDC__ && __STDC__)]:
73092         Remove nonprototyped code.
73093         Include <stdlib.h> unconditionally.
73094         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73095         _obstack_allocated_p, _obstack_free, obstack_free,
73096         _obstack_memory_used, print_and_abort):
73097         Define using prototypes.
73098         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73099         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73100         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73101         obstack_next_free, obstack_object_size, obstack_room) [0]:
73102         Remove unused, unprototyped code.
73103
73104         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73105
73106         * lib/physmem.c (physmem_total, physmem_available, main): Define
73107         with prototypes.
73108
73109         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73110         (main): Define with a prototype.
73111
73112         * lib/posixver.c (getenv): Remove decl.
73113
73114         * lib/putenv.c (malloc): Returns void *, not char *.
73115         Include <string.h> unconditionally.
73116         (strchr, memcpy, NULL): Do not define.
73117
73118         * lib/readtokens.c: Include readtokens.h first, to test interface.
73119         Include <stdlib.h>, <string.h> unconditionally.
73120         (init_tokenbuffer): Define with a prototype.
73121
73122         * lib/regex.c (PARAMS): Remove.  All uses removed.
73123         All uses of _RE_ARGS removed, too.
73124         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73125         unconditionally.
73126         (bzero): Assume memset exists.
73127         (memcmp, memcpy, NULL): Remove.
73128         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73129         char, or assignments to local vars of type signed char.
73130         (init_syntax_once, PREFIX(extract_number_and_incr),
73131         PREFIX(print_partial_compiled_pattern),
73132         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73133         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73134         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73135         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73136         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73137         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73138         wcs_compile_range, byte_compile_range, truncate_wchar,
73139         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73140         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73141         count_mbs_length, wcs_re_match_2_internal,
73142         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73143         PREFIX(alt_match_null_string_p),
73144         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73145         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73146         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73147         now-unnecessary declaration, if any.
73148         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73149         regcomp, regexec):
73150         Remove now-unnecessary casts among pointer types.
73151         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73152
73153         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73154         (free): Remove decl.
73155
73156         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73157
73158         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73159         (free): Remove decl.
73160
73161         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73162         * lib/xgetcwd.c: Likewise.
73163
73164         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73165         (free): Remove decl.
73166
73167         * lib/strchrnul.c (strchrnul): Define with a prototype.
73168         Fix bug: c_in was not converted to char before searching.
73169
73170         The following changes are not K&R related:
73171
73172         * lib/group-member.h: Include <sys/types.h>, so that this file is
73173         self-contained.
73174         * lib/makepath.h: Likewise.
73175
73176         * lib/getusershell.c (readname, default_index, line_size, readname):
73177         Use size_t, not int, for sizes.
73178         (readname): If the size overflows, report an error instead of
73179         looping forever.
73180
73181 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73182
73183         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73184         libc.
73185
73186 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73187
73188         * README: New section: portability guidelines.
73189
73190 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73191
73192         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73193         C89 spec.
73194
73195 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73196
73197         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73198
73199 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73200
73201         Assume C89 or better; remove K&R cruft.
73202         A few of these changes were first proposed by Derek Robert Price
73203         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73204
73205         * lib/addext.c: Include <string.h> unconditionally.
73206         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73207         Don't declare getenv or malloc.
73208
73209         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73210         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73211         (NULL): Remove.
73212         (find_stack_direction, alloca): Use prototypes.
73213
73214         * lib/atexit.c (atexit): Define using a prototype.
73215
73216         * lib/basename.c, dirname.c, stripslash.c:
73217         Include <string.h> unconditionally.
73218
73219         * lib/bcopy.c: Include <stddef.h>.
73220         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73221
73222         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73223
73224         * lib/error.h (error, error_at_line, error_print_progname)
73225         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73226         * lib/error.c: Include error.h first, to check interface.
73227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73228         (VA_START): Remove; all uses changeed to va_start.
73229         (exit, strerror): Remove decls.
73230         (error_print_progname): Prototype uncondionally.
73231         Don't include <errno.h>; no longer needed.
73232         (private_strerror): Remove.
73233         (error_tail): Always define.
73234         (error, error_at_line): Assume C89 or better; always use prototypes.
73235         * lib/fatal.c: Include "fatal.h" first, to test interface.
73236         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73237         (VA_START): Remove; all uses changed to va_start.
73238         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73239         this case.
73240         (exit): Remove decl.
73241         (fatal): Prototype unconditionally.  Assume va_start works.
73242         Abort at end, to pacify gcc.
73243
73244         * lib/euidaccess.c (main): Define with a prototype.
73245
73246         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73247
73248         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73249
73250         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73251         prototypes.
73252         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73253         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73254         (getenv): Remove decl.
73255         (fnmatch): Define using a prototype.
73256         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73257         (FCT): Define using a prototype.
73258
73259         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73260
73261         * lib/gethostname.c: Include <stddef.h>.
73262         (gethostname): Define with prototype.  Length is size_t, not int.
73263
73264 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73265
73266         Assume C89 or better; remove K&R cruft.
73267         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73268         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73269         string.h, getenv, malloc.
73270         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73271         headers.
73272         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73273         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73274         do not check for strerror.
73275         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73276         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73277         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73278         do not check for doprnt or vprintf.
73279         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73280         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73281
73282 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73283
73284         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73285         getversion.c should have been removed then, but was accidentally
73286         preserved.
73287
73288         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73289         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73290
73291 2003-09-08  Karl Berry  <karl@gnu.org>
73292
73293         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73294                 config, forget about prep.
73295
73296         * config/depcomp, missing: update from automake.
73297
73298 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73299
73300         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73301         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73302
73303 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73304
73305         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73306         copy_tm_result.  Bug reported by Simon Josefsson in
73307         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73308
73309 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73310
73311         * m4/time_r.m4: New file.
73312         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73313         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73314         is. Check for timegm declaration.
73315         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73316         Do not check for gmtime_r.
73317         Replace mktime if __mktime_internal does not exist and if mktime
73318         hasn't been replaced already.
73319
73320 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73321
73322         * lib/time_r.c, lib/time_r.h: New files.
73323
73324         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73325         __localtime_r.
73326         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73327         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73328
73329         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73330         __gmtime_r.
73331         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73332         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73333         Include <time_r.h>.
73334
73335         * lib/timegm.c: Switch to glibc implementation, with the following
73336         changes:
73337         [defined HAVE_CONFIG_H]: Include <config.h>.
73338         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73339         (__mktime_internal) [!defined _LIBC]: New decl.
73340         (__gmtime_r) [!defined _LIBC]: New macro and function.
73341         (timegm): Use a prototype, since gnulib assumes C89.
73342         Do not bother declaring tmp to be const, as it's not really usefu.
73343         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73344         (timegm): Declare only if HAVE_DECL_TIMEGM.
73345
73346 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73347
73348         * MODULES.html.sh (func_all_modules): Add time_r.
73349         * modules/time_r: New file.
73350         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73351         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73352
73353 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73354
73355         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73356         Bug reported by Lute Kamstra in
73357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73358
73359         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73360         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73361         course with correspondingly smaller numbers for tomorrow and
73362         yesterday.  From Tadayoshi Funaba.  Originally installed into
73363         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73364         coreutils merge?).
73365
73366 2003-08-31  Simon Josefsson  <jas@extundo.com>
73367
73368         * modules/timegm: New file.
73369         * MODULES.html.sh (func_all_modules): Add timegm.
73370
73371 2003-08-31  Simon Josefsson  <jas@extundo.com>
73372
73373         * m4/timegm.m4: New file.
73374
73375 2003-08-31  Simon Josefsson  <jas@extundo.com>
73376
73377         * lib/timegm.h: New file.
73378         * lib/timegm.c: New file.  Based on
73379         wget-1.8.2/src/http.c:mktime_from_utc.
73380
73381 2003-08-31  Karl Berry  <karl@gnu.org>
73382
73383         * lib/argp.h: update from libc.
73384
73385 2003-08-28  Bruno Haible  <bruno@clisp.org>
73386
73387         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73388         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73389         followed by '#define fnmatch fnmatch_posix' gives an error.
73390
73391 2003-08-28  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73394         warning on QNX, which defines O_BINARY to 000000.
73395
73396 2003-08-27  Jim Meyering  <jim@meyering.net>
73397
73398         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73399         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73400         would fail after 32.  Reported by Danny Levinson.  Details here:
73401         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73402
73403 2003-08-24  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73406         MSVC7 <stdio.h> is included later.
73407
73408 2003-08-22  Simon Josefsson  <jas@extundo.com>
73409
73410         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73411
73412 2003-08-20  Karl Berry  <karl@gnu.org>
73413
73414         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73415
73416 2003-08-20  Bruno Haible  <bruno@clisp.org>
73417
73418         * modules/progname: New file.
73419         * MODULES.html.sh (func_all_modules): Add progname.
73420
73421 2003-08-20  Bruno Haible  <bruno@clisp.org>
73422
73423         * lib/progname.h: New file, from GNU gettext.
73424         * lib/progname.c: New file, from GNU gettext.
73425         * lib/progreloc.c: New file, from GNU gettext.
73426
73427 2003-08-19  Jim Meyering  <jim@meyering.net>
73428
73429         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73430         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73431
73432 2003-08-19  Bruno Haible  <bruno@clisp.org>
73433
73434         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73435         more.
73436
73437 2003-08-19  Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/xstrdup.c: Assume <string.h> exists.
73440
73441 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73442
73443         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73444         in makefile rules.
73445
73446 2003-08-18  Jim Meyering  <jim@meyering.net>
73447
73448         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73449         * m4/lib-ld.m4: Likewise.
73450
73451 2003-08-18  Jim Meyering  <jim@meyering.net>
73452
73453         * lib/setenv.h: Indent nested cpp directive.
73454         * lib/vasnprintf.c: Remove trailing blanks.
73455
73456 2003-08-17  Simon Josefsson  <jas@extundo.com>
73457
73458         * modules/xstrndup: New file.
73459         * MODULES.html.sh (func_all_modules): Add xstrndup.
73460
73461 2003-08-17  Simon Josefsson  <jas@extundo.com>
73462
73463         * modules/argp: Fix autoconf macro name. Add more dependencies.
73464
73465 2003-08-17  Simon Josefsson  <jas@extundo.com>
73466
73467         * m4/xstrndup.m4: New file.
73468
73469 2003-08-17  Simon Josefsson  <jas@extundo.com>
73470
73471         * m4/argp.m4: New file.
73472
73473 2003-08-17  Simon Josefsson  <jas@extundo.com>
73474             Bruno Haible  <bruno@clisp.org>
73475
73476         * lib/xstrndup.h: New file.
73477         * lib/xstrndup.c: New file.
73478
73479 2003-08-17  Bruno Haible  <bruno@clisp.org>
73480
73481         * modules/strndup (Files, Include): Add lib/strndup.h.
73482
73483 2003-08-17  Bruno Haible  <bruno@clisp.org>
73484
73485         * modules/euidaccess (Files): Add lib/euidaccess.h.
73486
73487 2003-08-17  Bruno Haible  <bruno@clisp.org>
73488
73489         * lib/strndup.h: New file.
73490
73491 2003-08-17  Bruno Haible  <bruno@clisp.org>
73492
73493         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73494         like AC_GNU_SOURCE.
73495         * modules/extensions (configure.ac): Comment out the invocation of
73496         gl_USE_SYSTEM_EXTENSIONS.
73497
73498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73499
73500         Merges from coreutils, etc.
73501         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73502         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73503         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73504         fixing a typo.
73505         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73506         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73507
73508 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73509
73510         Document merge from coreutils.
73511         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73512         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73513         * modules/utime: Add m4/utimes-null.m4.
73514
73515 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73516
73517         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73518         space, undoing this 2003-08-12 change:
73519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73520
73521 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73522
73523         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73524         strtoul.c from libc, undoing this 2003-08-12 change:
73525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73526
73527 2003-08-16  Jim Meyering  <jim@meyering.net>
73528
73529         Merges from coreutils.
73530         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73531         prefix.  Adjust cache variables similarly.  Create 500 rather than
73532         just 300 files, to exercise bug on Darwin6.5, too.
73533         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73534         $missing_dir.
73535         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73536         AM_SYS_POSIX_TERMIOS.
73537         Reported by mkc@mathdogs.com.
73538         Also change use of $am_cv_sys_posix_termios
73539         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73540         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73541         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73542         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73543         in /proc/mounts until it finds one with matching device number.  This
73544         is unnecessary when the FILE argument *is* a mount point.  No stat call
73545         is necessary in that case.  So, disable the statvfs-testing code on
73546         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73547         as RedHat bug# 84846.
73548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73549         to 1MB, so as not to render systems with no stack size limit (e.g.,
73550         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73551         Include <unistd.h>.  On some systems,
73552         it is required for the definition of _SC_PAGESIZE.
73553
73554 2003-08-16  Jim Meyering  <jim@meyering.net>
73555
73556         Merge from coreutils.
73557         * lib/xstrtoimax.c: #else #if -> #elif.
73558         * lib/xstrtoumax.c: Likewise.
73559
73560 2003-08-16  Jim Meyering  <jim@meyering.net>
73561
73562         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73563         * m4/utimes.m4: Removed.
73564         * m4/utimes-null.m4: Renamed from utimes.m4.
73565
73566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73567         to 1MB, so as not to render systems with no stack size limit (e.g.,
73568         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73569         Include <unistd.h>.  On some systems,
73570         it is required for the definition of _SC_PAGESIZE.
73571
73572 2003-08-16  Jim Meyering  <jim@meyering.net>
73573         and Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         Merges from coreutils, etc.
73576
73577         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73578         using the latest version from cvs.  This avoids problems with #line
73579         directives using a vendor (Sun) compiler.
73580         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73581         Don't set GETGROUPS_LIB here; now it's
73582         done via getgroups.m4's wrapper function.
73583         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73584         rather than just in sh-util/configure.in, so that the
73585         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73586         same.
73587         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73588         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73589         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73590         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73591         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73592         Remove code that is now done by the newly-required macros.
73593         Append $(EXEEXT) to DF_PROG.
73594         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73595         Do not invoke or require the following here,
73596         since prereq.m4 or some gnulib .m4 now does this for us:
73597         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73598         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73599         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73600         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73601         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73602         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73603         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73604         AC_FUNC_OBSTACK.
73605         Do not replace the following functions, as this is now the job
73606         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73607         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73608         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73609         atexit getpass, strdup, getpagesize.
73610         Replace 'raise'.
73611         Do not check for the following functions, as this is now the job
73612         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73613         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73614         setregid.
73615         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73616         Check for sys/sysctl.h.
73617         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73618         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73619         of checking for ssize_t ourselves.
73620
73621         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73622         Require every macro that gnulib/modules/* suggests for us.
73623         (jm_PREREQ_ADDEXT): New macro.
73624         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73625         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73626
73627         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73628         (gl_PHYSMEM): Use it.
73629         Also check for `table' function.
73630         Check for new headers and functions.
73631         Add check for sys/sysmp.h.
73632         With suggestions from Kaveh Ghazi.
73633         Ignore headers that are present but cannot be compiled.  This
73634         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73635         C 5.4.
73636
73637 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73638
73639         Document merge from coreutils.
73640         * modules/userspec: Depend on posixver.
73641         * modules/strftime: Depend on tzset.
73642
73643 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73644
73645         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73646         rather than tab, after '#' in shell-script copyright notices.
73647         Suggested by Bruno Haible.
73648
73649 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73650
73651         * config/srclist-update: Use three spaces, rather than tab, after '#'
73652         in shell-script copyright notices.  Suggested by Bruno Haible.
73653         Remove unnecessary parenthesization in regular expression.
73654
73655 2003-08-15  Jim Meyering  <jim@meyering.net>
73656
73657         Merge from coreutils.
73658         * lib/xgethostname.c: Include <stdlib.h>.
73659         (xghostname): Don't exit for anything other than memory-related
73660         failure; just return NULL.
73661         * lib/userspec.c: Include "posixver.h".
73662         (parse_user_spec): Accept `.' as a separator only
73663         in pre-POSIX-200112 mode.
73664         * lib/strtoimax.c: Use #elif rather than #else #if.
73665         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73666         Remove function, now that we can rely on a working tzset function.
73667         [!_LIBC]: Ensure that the required autoconf test has been run.
73668         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73669         Use underlying_strftime for %r.
73670         * lib/sha.c: Merge in some clean-up and optimization changes from
73671         glibc.
73672         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73673         Ensure that it is a multiple of 64.
73674         Rearrange loop exit tests so as to avoid performing an
73675         additional fread after encountering an error or EOF.
73676         * lib/realloc.c: Update copyright date.
73677
73678 2003-08-15  Jim Meyering  <jim@meyering.net>
73679         and Paul Eggert  <eggert@twinsun.com>
73680
73681         Merge from coreutils.
73682         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73683         member but strut utmpx does not.  Needed for AIX 4.3.3.
73684         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73685
73686 2003-08-15  Jim Meyering  <jim@meyering.net>
73687         and Paul Eggert  <eggert@cs.ucla.edu>
73688
73689         Merges from coreutils, etc.
73690         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73691         Require gl_FUNC_TZSET_CLOBBER.
73692         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73693         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73694         members.
73695
73696 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73697
73698         Help the merge from coreutils.
73699         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73700         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73701         * m4/tzset.m4: Use it too.
73702
73703 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73704
73705         * modules/tzset: New file.
73706
73707 2003-08-14  Jim Meyering  <jim@meyering.net>
73708
73709         Merges from coreutils.
73710         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73711         variable names, rather than @FNMATCH_H@.
73712         * modules/alloca: Likewise for $(ALLOCA_H).
73713
73714         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73715         the three copies of the literal target, `fnmatch.h'.
73716         * modules/alloca (alloca.h): Likewise.
73717
73718 2003-08-14  Jim Meyering  <jim@meyering.net>
73719
73720         Merge from coreutils.
73721         * m4/tzset.m4: New file.
73722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73723         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73724         otherwise, AIX 5.1 systems would end up using the latter.
73725         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73726         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73727         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73728         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73729
73730 2003-08-14  Jim Meyering  <jim@meyering.net>
73731
73732         Merge from coreutils.
73733         * lib/obstack.h: Whitespace changes.
73734         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73735         and xcalloc return values.
73736         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73737         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73738         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73739         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73740         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73741         error from mntctl.
73742         Use mntctl's return value to drive the entry-processing loop, since
73743         we can't rely on the value of the vmt_length member in the last
73744         entry.  On some systems doing so could result in exhausting
73745         virtual memory.  Based in part on a patch from Mike Jetzer.
73746
73747 2003-08-14  Jim Meyering  <jim@meyering.net>
73748         and Paul Eggert  <eggert@twinsun.com>
73749
73750         Merges from coreutils, plus other fixes.
73751         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73752         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73753         for credits and details.  Thanks to Kaveh Ghazi for helping
73754         to keep these files in sync.
73755         (ARRAY_SIZE): Define it.
73756         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73757         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73758         (memcasecmp): Don't assume size_t fits in unsigned int.
73759         Remove casts and duplicate code.
73760         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73761         (memcpy): Remove definition.
73762         Merge in some clean-up and optimization changes from glibc.
73763         [BLOCKSIZE]: Move definition to top of file.
73764         Ensure that it is a multiple of 64.
73765         Rearrange loop exit tests so as to avoid performing an
73766         additional fread after encountering an error or EOF.
73767         * lib/md5.h (md5_uintptr): Define.
73768         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73769         return to the initial working directory.  Preserve errno
73770         for caller.
73771         * lib/idcache.c: Include "xalloc.h".
73772         (xmalloc, xrealloc): Remove decls.
73773         (getuser): Remove casts no longer required in C89.
73774         * lib/human.c: Include stdio.h, for sprintf.
73775         * lib/group-member.c: Include "xalloc.h".
73776         (xmalloc, xrealloc): Remove decls.
73777         (get_group_info): Remove casts no longer required in C89.
73778         * lib/getusershell.c (readname): Remove casts no longer required in
73779         C89.
73780         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73781         * lib/getline.c: Whitespace fix, from coreutils.
73782
73783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73784
73785         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73786         Check for isascii.
73787
73788         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73789         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73790         Undo previous (whitespace-only) change.
73791
73792 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73793
73794         * lib/exclude.c: Include <ctype.h>
73795         (IN_CTYPE_DOMAIN): New macro.
73796         (is_space): New fn.
73797         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73798         and empty lines.
73799
73800         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73801         Undo previous (whitespace-only) change.
73802
73803 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73804
73805         * config/srclist-update: Change update back to the old behavior,
73806         leaving whitespace alone.  Use one 'sed' command rather than a
73807         pipeline.
73808         (fixlicense): Now a variable, not a function.
73809         (remove_trailing_blanks): Remove.
73810         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73811         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73812         Undo previous (whitespace-only) change.
73813
73814 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73815
73816         Merge from coreutils.
73817         * modules/euidaccess: Add lib_SOURCES, include for new
73818         file euidaccess.h
73819
73820 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73821
73822         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73823         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73824         Normalize leading white space and remove trailing white space.
73825
73826         Merge from coreutils
73827         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73828
73829         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73830         0.12.1.  These files are now being upgraded automatically by
73831         ../config/srclist-update.
73832
73833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73834
73835         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73836         Normalize leading white space and remove trailing white space.
73837         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73838         notice, as per ../config/srclist-update.
73839
73840         Merge from coreutils.
73841         * lib/euidaccess.h: New file.
73842         * lib/euidaccess.c: Include it.
73843         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73844         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73845         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73846
73847 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73848
73849         * config/srclist-update: Add copyright notice.
73850         (remove_id_lines, remove_trailing_blanks): New constants.
73851         (fixfile): Use them to normalize spacing a bit in copied files.
73852         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73853         Normalize leading white space and remove trailing white space.
73854
73855         * config/texinfo.tex: Sync with texinfo.
73856
73857         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73858         strtoul.c from libc, to merge coreutils whitespace changes.
73859
73860         * config/srclist.txt: Get the following m4 files from gettext:
73861         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73862         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73863         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73864         wint_t.m4.
73865
73866 2003-08-12  Karl Berry  <karl@gnu.org>
73867
73868         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73869         been made.
73870
73871 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73872
73873         * modules/gnu-source, m4/gnu-source.m4:
73874         Remove; we're assuming Autoconf 2.54 or later now.
73875         Suggested by Bruno Haible.
73876         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73877
73878 2003-08-11  Bruno Haible  <bruno@clisp.org>
73879
73880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73881
73882 2003-08-11  Bruno Haible  <bruno@clisp.org>
73883
73884         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73885         (vasnprintf): Use it instead of wcslen.
73886
73887 2003-08-11  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73890         value to ensure that _Bool promotes to int. Use #define for _Bool when
73891         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73892
73893 2003-08-10  Karl Berry  <karl@gnu.org>
73894
73895         * lib/regex.h: update from libc (whitespace fix).
73896
73897 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73898
73899         Merge some files from coreutils.  These changes were
73900         originally made by Jim Meyering.
73901         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73902         many older Unixes require this.
73903         * lib/alloca.c (alloca): Remove cast to argument of free;
73904         no longer needed in C89.
73905         * lib/alloca_.h, regex.h: Fix white space to match
73906         what GNU indent does.
73907
73908 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73909
73910         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73911         apparently Emacs's Unicode mode got confused before my 2003-08-05
73912         checkin.
73913
73914 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73915
73916         * m4/extensions.m4: New file.
73917         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73918         Require gl_USE_SYSTEM_EXTENSIONS.
73919         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73920         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73921
73922 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73923
73924         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73925         * modules/extensions, modules/gnu-source: New files.
73926         * modules/timespec, modules/unlocked-io: Depend on extensions.
73927
73928 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73929
73930         * modules/restrict: New file.
73931         * MODULES.html.sh (func_all_modules): Add restrict.
73932         * modules/regex: Depend on restrict.
73933
73934 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73935
73936         * m4/restrict.m4: New file.
73937         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73938
73939 2003-08-07  Bruno Haible  <bruno@clisp.org>
73940
73941         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73942         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73943
73944 2003-08-07  Bruno Haible  <bruno@clisp.org>
73945
73946         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73947         makes the module 'getndelim2' compatible with the module 'getline'.
73948
73949 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73950
73951         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73952         byte with "\201" to avoid glitches when editing that source file
73953         with multi-gnome-terminal.
73954
73955 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73956
73957         * lib/bumpalloc.h: Remove.
73958
73959 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73960
73961         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73962         * modules/bumpalloc: Remove.
73963
73964 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73965
73966         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73967         GNU coding style.
73968
73969         Merge from coreutils.
73970         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73971         1. From glibc.
73972         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73973         from Karl Berry, implemented by Jim Meyering.
73974         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73975         from Dmitry V. Levin.
73976         Remove anachronistic cast of xrealloc.
73977         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73978         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73979         type. Otherwise, it wouldn't compile with at least /bin/cc on
73980         ymp-cray-unicos9.0.2.X.
73981         Combine two mostly-identical uses of alloca into one.
73982         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73983
73984 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73985
73986         [From Emacs.]
73987
73988         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73989         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73990         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73991         obsolete NLIST_NAME_UNION.
73992         [__GNU__]: Undef BSD and FSCALE.
73993         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73994
73995 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73996
73997         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73998         an enum type, so that it's guaranteed to promote to int.  See:
73999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74000
74001 2003-08-03  Karl Berry  <karl@gnu.org>
74002
74003         * config/depcomp: update from automake.
74004
74005 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74006
74007         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74008         (strerror): Don't assume that a printable int fits in 14 bytes.
74009
74010 2003-07-31  Bruno Haible  <bruno@clisp.org>
74011
74012         * modules/getpass-gnu: New file.
74013         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74014
74015 2003-07-31  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74018
74019 2003-07-24  Karl Berry  <karl@gnu.org>
74020
74021         * config/missing: update from automake.
74022
74023 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74024             Bruno Haible  <bruno@clisp.org>
74025
74026         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74027         * lib/getline.c (getline, getdelim): Likewise.
74028         Remove _GNU_SOURCE define; now it's defined in config.h through
74029         m4/getline.m4.
74030
74031 2003-07-23  Karl Berry  <karl@gnu.org>
74032
74033         * config/config.sub: update from prep.
74034
74035 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74036
74037         * modules/xalloc (Depends-on): Add exitfail.
74038         * modules/xmemcoll: Likewise.
74039
74040 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74041
74042         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74043         over-parenthesization in macros.
74044
74045         Sync with coreutils.
74046
74047         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74048         required by C99.
74049
74050         Use `exit_failure' for xalloc and xmemcoll instead of their own
74051         private exit-failure variables.
74052         * lib/xalloc.h (xalloc_exit_failure): Remove.
74053         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74054         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74055         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74056         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74057         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74058
74059 2003-07-20  Jim Meyering  <jim@meyering.net>
74060
74061         * modules/closeout (Depends-on): Add exitfail.
74062         Suggestion from Bruno Haible.
74063
74064 2003-07-19  Karl Berry  <karl@gnu.org>
74065
74066         * config/config.sub: update from prep.
74067
74068 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74071         Remove.
74072         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74073         to test that it can stand by itself.  Include "exitfail.h".
74074         Clients should set exit_failure instead.
74075         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74076
74077 2003-07-18  Bruno Haible  <bruno@clisp.org>
74078
74079         * modules/getndelim2: New file.
74080         * modules/getline: Share files with module getndelim2.
74081         * modules/getnline: Depend on getndelim2 instead of sharing files with
74082         it. Add getnline.c to lib_SOURCES.
74083         * MODULES.html.sh (func_all_modules): Add getndelim2.
74084
74085 2003-07-18  Bruno Haible  <bruno@clisp.org>
74086
74087         * m4/getndelim2.m4: New file.
74088         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74089         invoke gl_PREREQ_GETNDELIM2.
74090         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74091         gl_PREREQ_GETNDELIM2.
74092         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74093         gl_GETNDELIM2.
74094
74095 2003-07-18  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/getndelim2.h: New file.
74098         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74099         getndelim2.h.
74100         (getndelim2): Make non-static. Change return type to ssize_t.
74101         * lib/getline.h: Change argument names.
74102         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74103         * lib/getnline.c: Include getndelim2.h.
74104
74105 2003-07-18  Andreas Schwab  <schwab@suse.de>
74106
74107         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74108
74109 2003-07-17  Karl Berry  <karl@gnu.org>
74110
74111         * config/config.sub: update from prep.
74112
74113 2003-07-17  Bruno Haible  <bruno@clisp.org>
74114
74115         * modules/getnline: New file.
74116         * modules/getline: Add lib/getndelim2.c to source file list.
74117         * MODULES.html.sh (func_all_modules): Add getnline.
74118
74119 2003-07-17  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/getnline.m4: New file.
74122
74123 2003-07-17  Bruno Haible  <bruno@clisp.org>
74124
74125         * m4/Makefile.am.in: Remove file.
74126         * m4/Makefile.am: Remove file.
74127         * m4/Makefile.in: Remove file.
74128
74129 2003-07-17  Bruno Haible  <bruno@clisp.org>
74130
74131         * lib/getnline.h: New file.
74132         * lib/getnline.c: New file.
74133         * lib/getndelim2.c: New file, extracted from getline.c.
74134         (getndelim2): Renamed from getdelim2, with added nmax argument.
74135         * lib/getline.c: Include getndelim2.c.
74136         (getdelim2): Moved out to getndelim2.c.
74137         (getline, getdelim): Update.
74138
74139 2003-07-17  Bruno Haible  <bruno@clisp.org>
74140
74141         * lib/Makefile.am: Remove file.
74142         * lib/Makefile.in: Remove file.
74143
74144 2003-07-17  Bruno Haible  <bruno@clisp.org>
74145
74146         * configure.in: Remove file.
74147         * Makefile.in: Remove file.
74148
74149 2003-07-17  Bruno Haible  <bruno@clisp.org>
74150
74151         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74152
74153 2003-07-16  Karl Berry  <karl@gnu.org>
74154
74155         * config/srclist-update: was running fixlicense twice, which caused
74156                 texinfo.tex to be nullified for some reason.  Simplify,
74157                 $gplsrc is no longer needed as far as I can see?
74158
74159 2003-07-16  Jim Meyering  <jim@meyering.net>
74160
74161         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74162
74163 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74164
74165         * config/srclist.txt: Get the following files from gettext-runtime/intl
74166         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74167         ref-del.sin.  From Bruno Haible.
74168         * config/srclist-update (fixfile): Change grep pattern again, since the
74169         previous fix didn't work (there was another trailing $).  Use
74170         '[$]' to escape the $s.
74171
74172 2003-07-15  Karl Berry  <karl@gnu.org>
74173
74174         * lib/vasnprintf.c: update from gettext.
74175
74176 2003-07-15  Karl Berry  <karl@gnu.org>
74177
74178         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74179         gets expanded when surrounded by '$'.
74180
74181 2003-07-15  Jim Meyering  <jim@meyering.net>
74182
74183         * modules/save-cwd: Don't depend on error.  From Derek Price.
74184
74185 2003-07-15  Jim Meyering  <jim@meyering.net>
74186
74187         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74188
74189 2003-07-14  Simon Josefsson  <jas@extundo.com>
74190
74191         * modules/mempcpy: New file.
74192         * MODULES.html.sh (func_all_modules): Add mempcpy.
74193
74194 2003-07-14  Simon Josefsson  <jas@extundo.com>
74195
74196         * m4/mempcpy.m4: New file.
74197
74198 2003-07-14  Simon Josefsson  <jas@extundo.com>
74199
74200         * lib/mempcpy.h: New file.
74201         * lib/mempcpy.c: New file.
74202
74203 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74204
74205         * modules/getdate, modules/posixtm: Depend on mktime.
74206
74207 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74208
74209         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74210         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74211         unicodeio.c, unicodeio.h, unlocked-io.h:
74212         Switch from LGPL to GPL.
74213
74214 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74215
74216         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74217         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74218         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74219         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74220         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74221         updated automatically by ../config/srclist-update.  This changes
74222         their license from LPGL to GPL.
74223
74224 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74225
74226         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74227         assumed to refer to the root of the most recent stable gettext version.
74228         * config/srclistvars.sh: Add defaults for eggert.
74229         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74230         Match "This program" as well as "The program".  This is needed
74231         for gettext.
74232
74233 2003-07-14  Jim Meyering  <jim@meyering.net>
74234
74235         Don't emit diagnostics.  Let callers do that.
74236         * lib/save-cwd.c: Don't include "error.h".
74237         (save_cwd): Don't call error.  Ensure that errno is valid
74238         when returning nonzero.
74239
74240         * lib/save-cwd.h (restore_cwd): Update prototype.
74241         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74242         Simplify.  Don't call error upon failure.  Let callers do that.
74243         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74244         when auditing is enabled.  But don't bother updating the #if.
74245
74246 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74247
74248         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74249         it breaks C++ compilation.
74250         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74251
74252 2003-07-10  Simon Josefsson  <jas@extundo.com>
74253
74254         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74255
74256 2003-07-10  Jim Meyering  <jim@meyering.net>
74257
74258         * m4/clock_time.m4: Remove trailing blank.
74259         * m4/intmax_t.m4: Likewise.
74260
74261 2003-07-10  Jim Meyering  <jim@meyering.net>
74262
74263         * lib/vasnprintf.c: Remove trailing blanks.
74264         Make cpp indentation consistent.
74265
74266 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74267
74268         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74269         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74270         Switch from LGPL to GPL.
74271
74272 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74273
74274         * config/srclist.txt: Sort sublists.  Add
74275         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74276         that differ from gnulib for one reason or another; we'd like this list
74277         to be smaller but for now let's document what we have.
74278
74279 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74280
74281         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74282         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74283         and sweeter "eval x=$x".
74284         * config/srclist.txt: Get lib/argp* from glibc.
74285
74286 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74287
74288         * lib/mktime.c: Fix some boundary cases and remove need for floating
74289         point.
74290
74291         Issue a compile-time diagnostic if time_t is floating point, or if
74292         two's complement arithmetic is not in effect, or if arithmetic
74293         right shift does not propagate the sign.  These assumptions were
74294         all in the original code but they weren't checked.
74295
74296         (TIME_T_MIDPOINT, verify): New macros.
74297         (__isleap): Remove; it has integer overflow problems.
74298         (leapyear): New function, without those problems.
74299         (ydhms_tm_diff): Remove; splitting into two parts.
74300         (ydhms_diff): New function, containing the arithmetic part of
74301         the old ydhms_tm_diff function.  Issue a compile-time
74302         diagnostic if we are not using C99 integer division.
74303         Avoid casts when possible.
74304         (guess_time_tm): New function, containing the checking part of
74305         the old ydhms_tm_diff function.  Return the new value, rather than
74306         the difference between it and the old.  Accept a new argument T
74307         so that *T specifies the old value.  Check for overflow in the result.
74308
74309         (__mktime_internal): Use a time_t offset, not a long int offset.
74310         This undoes the 2003-06-04 change, which is no longer needed now
74311         that we have better overflow checking.
74312         (localtime_offset): Likewise.
74313
74314         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74315         and long are 64-bit but int is only 32-bit.
74316         (ydhms_diff): Use long int to store year1 and yday1.
74317         Issue a compile-time diagnostic if long int is not wide enough.
74318
74319         (__mktime_internal): Use long int to store adjusted year and yday.
74320         Use plain C rather than preprocessor commands, if that doesn't
74321         affect efficiency.
74322         Check for overflow (and try to repair) after each probe
74323         rather than checking only at the very end.  This avoids some bugs
74324         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74325         does not equal GMT offset at maximum time).
74326         Use integer to check for overflow rather than floating point; this
74327         is more portable to non-IEEE hosts, and is a tad faster.
74328         When we detect that we are oscillating between two values,
74329         don't check whether tm_isdst has the requested value, since
74330         we already know the answer.  When tm_isdst has the wrong value,
74331         use a different heuristic to find the right one, based on the
74332         extreme values actually observed in practice in tz2003a,
74333         rather than the (overly optimistic) "previous 3 calendar quarters".
74334
74335         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74336         "T const" to accommodate glibc style.
74337         (check_result): Use less-confusing report format.  "long" -> "long int.
74338         (main): Likewise.
74339         Don't loop if the iteration overflows time_t.
74340         Allow a negative step in the iteration.
74341
74342 2003-07-06  Karl Berry  <karl@gnu.org>
74343
74344         * config/depcomp: update from automake.
74345         * config/config.sub: update from prep.
74346
74347 2003-07-03  Karl Berry  <karl@gnu.org>
74348
74349         * config/config.guess: update from prep.
74350
74351 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74352
74353         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74354         xreadlink.c now includes it unconditionally.
74355
74356 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74357
74358         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74359         having it depend on HAVE_SYS_TYPES_H.
74360
74361 2003-07-01  Bruno Haible  <bruno@clisp.org>
74362
74363         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74364         <sys/types.h> should be sufficient.
74365         Reported by Paul Eggert.
74366
74367 2003-06-26  Karl Berry  <karl@gnu.org>
74368
74369         * config/depcomp: update from automake.
74370
74371 2003-06-26  Bruno Haible  <bruno@clisp.org>
74372
74373         * modules/human: Depend on module stdbool.
74374
74375 2003-06-25  Bruno Haible  <bruno@clisp.org>
74376
74377         * modules/readlink: New file.
74378         * modules/xreadlink: Depend on it.
74379         * MODULES.html.sh (func_all_modules): Add readlink.
74380
74381 2003-06-25  Bruno Haible  <bruno@clisp.org>
74382
74383         * m4/readlink.m4: New file.
74384
74385 2003-06-25  Bruno Haible  <bruno@clisp.org>
74386
74387         * lib/readlink.c: New file.
74388
74389 2003-06-22  Karl Berry  <karl@gnu.org>
74390
74391         * config/srclist.txt: update mkinstalldirs from automake.
74392         * config/mkinstalldirs: update.
74393
74394 2003-06-22  Bruno Haible  <bruno@clisp.org>
74395
74396         Portability to mingw32.
74397         * m4/ssize_t.m4: New file, from GNU gettext.
74398         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74399         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74400
74401 2003-06-22  Bruno Haible  <bruno@clisp.org>
74402
74403         * modules/safe-read: Add m4/ssize_t.m4.
74404         * modules/xreadlink: Add m4/ssize_t.m4.
74405
74406 2003-06-20  Bruno Haible  <bruno@clisp.org>
74407
74408         Assume C89, so PARAMS isn't needed.
74409         * lib/unicodeio.h (PARAMS): Remove.
74410         * lib/unicodeio.c: Don't use PARAMS.
74411
74412 2003-06-18  Karl Berry  <karl@gnu.org>
74413
74414         * config/config.{guess,sub}: update from prep.
74415
74416 2003-06-18  Jim Meyering  <jim@meyering.net>
74417
74418         Merge changes from coreutils.
74419         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74420         Remove explicit declarations of xmalloc and realloc.
74421         Include xalloc.h.
74422         (read_utmp): Remove anachronistic cast of xmalloc.
74423
74424 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74425
74426         Assume C89, so PARAMS isn't needed.
74427         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74428         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74429         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74430         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74431         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74432         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74433         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74434         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74435         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74436         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74437         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74438         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74439         no longer needed. Anyway, config.h should always be included before any
74440         other file.
74441
74442 2003-06-11  Simon Josefsson  <jas@extundo.com>
74443
74444         * modules/sysexits: New file.
74445         * MODULES.html.sh (func_all_modules): Add sysexits.
74446
74447 2003-06-11  Simon Josefsson  <jas@extundo.com>
74448
74449         * lib/sysexit_.h: New file.
74450
74451 2003-06-11  Derek Price  <derek@ximbiot.com>
74452
74453         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74454         necessary.
74455
74456 2003-06-11  Bruno Haible  <bruno@clisp.org>
74457
74458         * m4/sysexits.m4: New file.
74459
74460 2003-06-10  Simon Josefsson  <jas@extundo.com>
74461
74462         * lib/argp.h: New file, from glibc.
74463         * lib/argp-ba.c: New file, from glibc.
74464         * lib/argp-eexst.c: New file, from glibc.
74465         * lib/argp-fmtstream.c: New file, from glibc.
74466         * lib/argp-fmtstream.h: New file, from glibc.
74467         * lib/argp-fs-xinl.c: New file, from glibc.
74468         * lib/argp-help.c: New file, from glibc.
74469         * lib/argp-namefrob.h: New file, from glibc.
74470         * lib/argp-parse.c: New file, from glibc.
74471         * lib/argp-pv.c: New file, from glibc.
74472         * lib/argp-pvh.c: New file, from glibc.
74473         * lib/argp-xinl.c: New file, from glibc.
74474
74475 2003-06-10  Simon Josefsson  <jas@extundo.com>
74476
74477         * modules/strchrnul: New file.
74478
74479 2003-06-10  Simon Josefsson  <jas@extundo.com>
74480
74481         * modules/argp: New file.
74482
74483 2003-06-10  Simon Josefsson  <jas@extundo.com>
74484
74485         * m4/strchrnul.m4: New file.
74486
74487 2003-06-10  Simon Josefsson  <jas@extundo.com>
74488
74489         * lib/strchrnul.h: New file.
74490         * lib/strchrnul.c: New file.
74491
74492 2003-06-10  Bruno Haible  <bruno@clisp.org>
74493
74494         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74495
74496 2003-06-07  Karl Berry  <karl@gnu.org>
74497
74498         * config/config.{guess,sub}: update from prep.
74499
74500 2003-06-07  Jim Meyering  <jim@meyering.net>
74501
74502         * modules/strtod: Use $(...) notation, not @...@ for
74503         AC_REPLACE'd variables.
74504         * modules/localcharset: Likewise.
74505
74506 2003-06-07  Jim Meyering  <jim@meyering.net>
74507
74508         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74509         in place of my name in the copyright comment.
74510         Remove definition and uses of __P.
74511
74512         From coreutils.
74513         * lib/stat.c: Don't declare xmalloc explicitly.
74514         Instead, include "xalloc.h".
74515         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74516         xrealloc, and xcalloc return values.
74517         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74518         Improve comment.
74519         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74520
74521 2003-06-07  Bruno Haible  <bruno@clisp.org>
74522
74523         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74524         avoid AC_CONFIG_LINKS.
74525         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74526         fnmatch.h, to avoid AC_CONFIG_LINKS.
74527         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74528
74529 2003-06-07  Bruno Haible  <bruno@clisp.org>
74530
74531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74532         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74533         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74534         directory.
74535         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74536         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74537         directory.
74538
74539 2003-06-06  Jim Meyering  <jim@meyering.net>
74540
74541         Merge from coreutils.
74542         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74543         Consolidate declarations and initializations of *_base* locals.
74544
74545         Merge from coreutils.
74546         This avoids a core dump on systems without GNU putenv,
74547         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74548         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74549         (unsetenv): New static function, from GNU libc.
74550         (rpl_putenv): Use it.
74551
74552         * lib/modechange.c: Remove trailing blanks.
74553
74554         Merge from coreutils.
74555         * lib/fsusage.c: Remove declaration of statfs.
74556         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74557
74558         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74559
74560 2003-06-06  Jim Meyering  <jim@meyering.net>
74561
74562         * lib/stdbool_.h: Renamed from stdbool.h.in.
74563
74564 2003-06-06  Jim Meyering  <jim@meyering.net>
74565             Bruno Haible  <bruno@clisp.org>
74566
74567         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74568         Adjust Makefile.am snippet not to redirect directly to target.
74569         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74570
74571 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74572
74573         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74574         mismatch, look in future quarters as well as past.  This fixes a
74575         bug when processing fall-backwards gaps immediately after a long
74576         period of daylight-saving time.
74577
74578         * lib/mktime.c: Assume freestanding C89 or better.
74579         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74580         (__P): Remove; not used.
74581         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74582         (mktime, not_equal_tm, print_tm, check_result,
74583         main): Use prototypes.  Use const * where appropriate.
74584         (main): Fix typo in testing code that uncovered by above changes.
74585         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74586
74587 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74588
74589         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74590         locale.h, localeconv.  This merges changes from coreutils.
74591
74592         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74593         It can be removed after the next Autoconf is released.
74594         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74595         needed.
74596
74597 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74598
74599         * lib/mktime.c: Fix Debian bug 177940
74600         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74601         (localtime_offset): Now long int, not time_t, because we want it
74602         to be guaranteed to be signed.  All uses changed.
74603         (__mktime_internal): If overflow would occur when adding offset,
74604         don't add it.
74605
74606         Merge 'human' changes from coreutils.  Rewrite to support
74607         locale-specific notations like thousands separators.
74608         * lib/human.c: Simplify authorship notice.
74609         Include human.h immediately after config.h.
74610         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74611         <limits.h>: Do not include, since human.h does.
74612         (SIZE_MAX, UINTMAX_MAX): New macros.
74613         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74614         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74615         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74616         (power_letter): Renamed from suffixes.
74617         (generate_suffix_backwards): Remove.
74618         (adjust_value): Now takes int style (because of human.h changes)
74619         and long double value (for greater precision on some platforms).
74620         (group_number): New function.
74621         (human_readable): Use it.  Use integer options, not enum.
74622         Put the options before the sizes in the arg list.
74623         Support all the new options.
74624         The old human_readable function has been removed;
74625         use inttostr.h instead.
74626         (human_readable, default_block_size, humblock):
74627         Use uintmax_t, not int, for block sizes.
74628         (human_readable_inexact, block_size_types): Remove.
74629         (block_size_opts): New constant.
74630         (human_options): Renamed from human_block_size, with new signature
74631         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74632         * lib/human.h: Add copyright and authorship notice.
74633         Include <limits.h> and <stdbool.h> unconditionally.
74634         (PARAMS): Remove.  All uses removed.
74635         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74636         (enum human_inexact_style): Remove tag; now a nameless enum.
74637         (human_floor, human_ceiling, human_round_to_even): Now have
74638         values 2, 0, 1 rather than -1, 1, 0.
74639         (human_group_digits, human_suppress_point_zero, human_autoscale,
74640         human_base_1024, human_SI, human_B): New constants.
74641         (human_readable_inexact, human_block_size): Remove.
74642         (human_readable): Size args are now uintmax_t, not int.
74643         (human_options): New decl.
74644
74645         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74646         unnecessary now that we assume C89 or better.  This change
74647         imported from coreutils.
74648
74649         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74650         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74651         in the 2003-05-30 sync from glibc.
74652
74653         .h files should stand alone, but we shouldn't include <sys/types.h>
74654         if we can get away with just <stddef.h>.
74655
74656         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74657         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74658         rather than <sys/types.h>, as we merely need size_t.
74659         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74660         to get size_t.
74661         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74662         Include <stdio.h>, to get FILE.
74663         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74664         memcasecmp.h has included <stddef.h> and all we need is size_t.
74665         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74666         our interface, instead of including <sys/types.h>
74667
74668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74669
74670         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74671         now, as glibc mktime is buggy on non-glibc systems.
74672
74673 2003-06-03  Karl Berry  <karl@gnu.org>
74674
74675         * config/config.sub: update from prep.
74676
74677 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74678
74679         [from coreutils]
74680         Fix some minor time-related bugs with POSIX time arguments.
74681         Some valid time stamps were being rejected (notably -1, and
74682         time stamps before 1900 on 64-bit hosts).  And some invalid
74683         time stamps were being accepted, e.g. September 31.
74684
74685         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74686         that we can return (time_t) -1 successfully.
74687         * lib/posixtm.c: Likewise.
74688         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74689         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74690         (t): Remove static var.
74691         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74692         of static var.  All uses changed.
74693         (year): Do not reject years before 1900; they can occur with
74694         64-bit time_t.
74695         (posix_time_parse): Do not check for out-of-range components;
74696         that is now the caller's responsibility, since our checks were
74697         only approximations.
74698         (posixtime): Use mktime to check for out-of-range components,
74699         since it knows them exactly.
74700         If mktime returns (time_t) -1, check whether an error actually occurred
74701         by invoking localtime on -1.
74702         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74703         posixtime failures better.
74704         Improve the test data (in comments only).
74705
74706 2003-06-02  Karl Berry  <karl@gnu.org>
74707
74708         * config/mkinstalldirs (version): new variable.
74709         (--version): new option.
74710         (usage): improve message.
74711
74712 2003-05-30  Karl Berry  <karl@gnu.org>
74713
74714         * lib/mktime.c: update from libc.
74715
74716 2003-05-30  Bruno Haible  <bruno@clisp.org>
74717
74718         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74719         * config/config.rpath: Upgrade to gettext-0.12.1.
74720
74721 2003-05-30  Bruno Haible  <bruno@clisp.org>
74722
74723         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74724         * m4/nls.m4: New file, from gettext-0.12.1.
74725         * m4/po.m4: New file, from gettext-0.12.1.
74726         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74727
74728 2003-05-30  Bruno Haible  <bruno@clisp.org>
74729
74730         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74731         * lib/localcharset.h: Likewise.
74732         * lib/localcharset.c: Likewise.
74733
74734 2003-05-29  Karl Berry  <karl@gnu.org>
74735
74736         * config/config.rpath: update from gettext.
74737
74738 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74739
74740         Assume the headers required for C89 freestanding compilers.
74741         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74742         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74743         * m4/human.m4 (gl_HUMAN): Likewise.
74744         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74745         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74746         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74747         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74749         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74750
74751 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74752
74753         Assume the headers required for C89 freestanding compilers.
74754         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74755         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74756         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74757         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74758         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74759         define, since <limits.h> is guaranteed to do that.
74760         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74761         * lib/exclude.c: Include <stdbool.h> unconditionally.
74762         * lib/tempname.c: Include <stddef.h> unconditionally.
74763         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74764         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74765         <stddef.h> does that.
74766         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74767         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74768         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74769         needed.
74770         * lib/xstrtol.c: Likewise.
74771         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74772         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74773
74774         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74775         warnings on some platforms.
74776
74777         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74778         arbitrarily.
74779
74780 2003-05-26  Jim Meyering  <jim@meyering.net>
74781
74782         Merge in a change from coreutils:
74783         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74784         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74785         that condition, rather than `-1' which is slightly misleading.
74786         Change the name of the cache variable to have the gl_ prefix.
74787         Prompted by a patch from Richard Dawe for DJGPP.
74788
74789 2003-05-24  Karl Berry  <karl@gnu.org>
74790
74791         * config/config.guess: update from prep.
74792
74793 2003-05-22  Karl Berry  <karl@gnu.org>
74794
74795         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74796
74797 2003-05-20  Karl Berry  <karl@gnu.org>
74798
74799         * config/config.guess: update from prep.
74800
74801 2003-05-18  Karl Berry  <karl@gnu.org>
74802
74803         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74804         might actually be set by the user.
74805
74806         * config/depcomp, install-sh, mdate-sh: update from automake.
74807
74808 2003-05-17  Bruno Haible  <bruno@clisp.org>
74809
74810         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74811         invalid expansion for AC_EGREP_CPP.
74812         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74813         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74814         Suggested by Akim Demaille <akim@epita.fr> in
74815         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74816
74817 2003-05-12  Jim Meyering  <jim@meyering.net>
74818
74819         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74820         the space-padded-by-default conversion specifiers, %e, %k, %l.
74821
74822 2003-05-12  Bruno Haible  <bruno@clisp.org>
74823
74824         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74825         the string is longer than 4 KB.
74826
74827 2003-05-11  Karl Berry  <karl@gnu.org>
74828
74829         * config/config.{guess,sub}: update from prep.
74830
74831 2003-05-09  Bruno Haible  <bruno@clisp.org>
74832
74833         * modules/error: Add m4/strerror_r.m4 to file list.
74834
74835 2003-05-03  Bruno Haible  <bruno@clisp.org>
74836
74837         Upgrade to Unicode-4.0.
74838         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74839         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74840         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74841         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74842         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74843         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74844         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74845         Change width of U+E0100..U+E01EF from 1 to 0.
74846
74847 2003-04-25  Jim Meyering  <jim@meyering.net>
74848
74849         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74850         of type size_t, not int.
74851
74852 2003-04-25  Bruno Haible  <bruno@clisp.org>
74853
74854         * lib/copy-file.c: Include <stddef.h>, for size_t.
74855
74856 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74857
74858         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74859         code which expansion is under static control.  Patch imported from
74860         Akim Demaille's patch to Bison; see
74861         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74862
74863 2003-04-14  Bruno Haible  <bruno@clisp.org>
74864
74865         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74866
74867 2003-04-11  Jim Meyering  <jim@meyering.net>
74868
74869         Merge changes from Coreutils.
74870
74871         2003-03-22  Jim Meyering  <jim@meyering.net>
74872
74873         * lib/strftime.c (widen): Cast alloca return value to proper type.
74874
74875         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74876
74877         From GNU libc.
74878         * lib/strftime.c (my_strftime): Handle very large width
74879         specifications for numeric values correctly.  Improve checks for
74880         overflow.
74881
74882         2003-01-19  Jim Meyering  <jim@meyering.net>
74883
74884         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74885         definitions.
74886         (nl_get_alt_digit) [! defined my_strftime]: Define.
74887         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74888         _nl_get_alt_digit and _nl_get_walt_digit.
74889
74890         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74891         libc. These changes have no effect outside of _LIBC.
74892
74893 2003-04-10  Bruno Haible  <bruno@clisp.org>
74894
74895         * modules/findprog: New file.
74896         * MODULES.html.sh (func_all_modules): Add it.
74897
74898 2003-04-10  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/findprog.m4: New file.
74901         * m4/eaccess.m4: New file.
74902
74903 2003-04-10  Bruno Haible  <bruno@clisp.org>
74904
74905         * lib/findprog.h: New file, from GNU gettext.
74906         * lib/findprog.c: New file, from GNU gettext.
74907
74908 2003-04-05  Jim Meyering  <jim@meyering.net>
74909
74910         Merge changes from Coreutils.
74911
74912         * lib/exclude.h (PARAMS): Remove definition and uses.
74913         * lib/exclude.c: Remove uses of `PARAMS'.
74914
74915         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74916         Add test-cases for DOS filenames. Declare program_name.
74917         (main): Set up program_name.  Patch by Rich Dawe.
74918
74919         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74920         error from mntctl.
74921         Use mntctl's return value to drive the entry-processing loop, since
74922         we can't rely on the value of the vmt_length member in the last
74923         entry.  On some systems doing so could result in exhausting
74924         virtual memory.  Based in part on a patch from Mike Jetzer.
74925
74926 2003-04-04  Bruno Haible  <bruno@clisp.org>
74927
74928         * modules/linebreak: New file.
74929         * MODULES.html.sh (func_all_modules): Add it.
74930
74931 2003-04-04  Bruno Haible  <bruno@clisp.org>
74932
74933         * m4/linebreak.m4: New file.
74934
74935 2003-04-04  Bruno Haible  <bruno@clisp.org>
74936
74937         * lib/linebreak.h: New file, from GNU gettext.
74938         * lib/linebreak.c: New file, from GNU gettext with slight
74939         modifications.
74940         * lib/lbrkprop.h: New file, from GNU gettext.
74941
74942 2003-04-03  Bruno Haible  <bruno@clisp.org>
74943
74944         * modules/utf8-ucs4: New file.
74945         * modules/utf16-ucs4: New file.
74946         * modules/ucs4-utf8: New file.
74947         * modules/ucs4-utf16: New file.
74948         * MODULES.html.sh (func_all_modules): Add them.
74949
74950 2003-04-03  Bruno Haible  <bruno@clisp.org>
74951
74952         * m4/utf-ucs4.m4: New file.
74953         * m4/ucs4-utf.m4: New file.
74954
74955 2003-04-03  Bruno Haible  <bruno@clisp.org>
74956
74957         * lib/utf8-ucs4.h: New file, from GNU gettext.
74958         * lib/utf16-ucs4.h: New file, from GNU gettext.
74959         * lib/ucs4-utf8.h: New file, from GNU gettext.
74960         * lib/ucs4-utf16.h: New file, from GNU gettext.
74961
74962 2003-04-02  Bruno Haible  <bruno@clisp.org>
74963
74964         * modules/binary-io: New file.
74965         * MODULES.html.sh (func_all_modules): Add it.
74966
74967 2003-04-02  Bruno Haible  <bruno@clisp.org>
74968
74969         * lib/binary-io.h: New file, from GNU gettext.
74970
74971 2003-04-01  Bruno Haible  <bruno@clisp.org>
74972
74973         * modules/pathname: New file.
74974         * MODULES.html.sh (func_all_modules): Add it.
74975
74976 2003-04-01  Bruno Haible  <bruno@clisp.org>
74977
74978         * lib/pathname.h: New file, from GNU gettext.
74979         * lib/concatpath.c: New file, from GNU gettext.
74980
74981 2003-03-30  Bruno Haible  <bruno@clisp.org>
74982
74983         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74984
74985 2003-03-30  Bruno Haible  <bruno@clisp.org>
74986
74987         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74988         function chown() doesn't exist.
74989
74990 2003-03-28  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/copy-file: New file.
74993         * MODULES.html.sh (func_all_modules): Add it.
74994
74995 2003-03-28  Bruno Haible  <bruno@clisp.org>
74996
74997         * m4/copy-file.m4: New file.
74998
74999 2003-03-28  Bruno Haible  <bruno@clisp.org>
75000
75001         * lib/copy-file.h: New file, from GNU gettext.
75002         * lib/copy-file.c: New file, from GNU gettext.
75003
75004 2003-03-18  Jim Meyering  <jim@meyering.net>
75005
75006         * lib/quote.c (quote_n): Fix typo in comment.
75007
75008 2003-03-18  Bruno Haible  <bruno@clisp.org>
75009
75010         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75011         checking.
75012         * m4/onceonly_2_57.m4: Likewise.
75013
75014 2003-03-17  Bruno Haible  <bruno@clisp.org>
75015
75016         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75017         (m4_quote): Remove macro.
75018         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75019
75020 2003-03-14  Jim Meyering  <jim@meyering.net>
75021
75022         Merge changes from Coreutils.
75023         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75024         to be const, in order to avoid warnings.
75025         (obstack_room): Likewise.
75026         (obstack_empty_p): Likewise.
75027
75028 2003-03-14  Bruno Haible  <bruno@clisp.org>
75029
75030         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75031         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75032
75033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75034
75035         Merge changes from Bison.
75036         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75037         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75038         when compiling Bison 1.875's `bitset bset = obstack_alloc
75039         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75040         * lib/hash.c: Include <stdbool.h> unconditionally.
75041
75042 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75043
75044         * m4/onceonly.m4 (m4_quote): New macro.
75045         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75046         Quote AC_FOREACH variable-expansions properly.
75047
75048 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75049
75050         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75051
75052 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75053
75054         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75055         Reported by Bruce Becker; see:
75056         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75057
75058 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75059             Bruno Haible  <bruno@clisp.org>
75060
75061         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75062         Reported by John Hughes, see
75063         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75064
75065 2003-02-20  Bruno Haible  <bruno@clisp.org>
75066
75067         * MODULES.html.sh (func_all_modules): Add poll.
75068
75069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75070
75071         * modules/poll: New file.
75072
75073 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75074
75075         * lib/poll_.h: New file.
75076         * lib/poll.c: New file.
75077
75078 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75079
75080         * m4/poll.m4: New file.
75081
75082 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75083
75084         * modules/mathl: New file.
75085
75086 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75087
75088         * lib/mathl.h: New file.
75089         * lib/acosl.c: New file.
75090         * lib/asinl.c: New file.
75091         * lib/atanl.c: New file.
75092         * lib/ceill.c: New file.
75093         * lib/cosl.c: New file.
75094         * lib/expl.c: New file.
75095         * lib/floorl.c: New file.
75096         * lib/frexpl.c: New file.
75097         * lib/ldexpl.c: New file.
75098         * lib/logl.c: New file.
75099         * lib/sincosl.c: New file.
75100         * lib/sinl.c: New file.
75101         * lib/sqrtl.c: New file.
75102         * lib/tanl.c: New file.
75103         * lib/trigl.c: New file.
75104         * lib/trigl.h: New file.
75105
75106 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75107
75108         * m4/mathl.m4: New file.
75109
75110 2003-02-18  Bruno Haible  <bruno@clisp.org>
75111
75112         * MODULES.html.sh (func_all_modules): Add mathl.
75113
75114 2003-02-17  Bruno Haible  <bruno@clisp.org>
75115
75116         * modules/mkdtemp: New module.
75117         * MODULES.html.sh (func_all_modules): Add it.
75118
75119 2003-02-17  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75122
75123 2003-02-17  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/mkdtemp.h: New file, from GNU gettext.
75126         * lib/mkdtemp.c: New file, from GNU gettext.
75127
75128 2003-02-02  Jim Meyering  <jim@meyering.net>
75129
75130         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75131         e.g. glibc-2.2.93.
75132
75133 2003-01-31  Bruno Haible  <bruno@clisp.org>
75134
75135         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75136         'rpl_rename'.
75137         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75138         'rpl_strnlen'.
75139         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75140         'rpl_strtod'.
75141         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75142         'rpl_utime'.
75143
75144 2003-01-31  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/rename.c: #undef rename before defining rpl_rename.
75147         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75148
75149 2003-01-30  Bruno Haible  <bruno@clisp.org>
75150
75151         * modules/vasnprintf, modules/vasprintf: New modules.
75152         * MODULES.html.sh (func_all_modules): Add them.
75153
75154 2003-01-30  Bruno Haible  <bruno@clisp.org>
75155
75156         * m4/signed.m4: New file, from GNU gettext.
75157         * m4/longdouble.m4: New file, from GNU gettext.
75158         * m4/wchar_t.m4: New file, from GNU gettext.
75159         * m4/wint_t.m4: New file, from GNU gettext.
75160         * m4/vasnprintf.m4: New file.
75161         * m4/vasprintf.m4: New file.
75162
75163 2003-01-30  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/printf-args.h: New file, from GNU gettext.
75166         * lib/printf-args.c: New file, from GNU gettext.
75167         * lib/printf-parse.h: New file, from GNU gettext.
75168         * lib/printf-parse.c: New file, from GNU gettext.
75169         * lib/vasnprintf.h: New file, from GNU gettext.
75170         * lib/vasnprintf.c: New file, from GNU gettext.
75171         * lib/asnprintf.c: New file, from GNU gettext.
75172         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75173         * lib/vasprintf.c: New file, from GNU gettext.
75174         * lib/asprintf.c: New file, from GNU gettext.
75175
75176 2003-01-29  Bruno Haible  <bruno@clisp.org>
75177
75178         * modules/stpncpy: New module.
75179         * MODULES.html.sh (func_all_modules): Add it.
75180
75181 2003-01-29  Bruno Haible  <bruno@clisp.org>
75182
75183         * m4/stpncpy.m4: New file.
75184
75185 2003-01-29  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75188         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75189
75190 2003-01-28  Bruno Haible  <bruno@clisp.org>
75191
75192         * modules/c-ctype: New module.
75193         * MODULES.html.sh (func_all_modules): Add it.
75194
75195 2003-01-28  Bruno Haible  <bruno@clisp.org>
75196
75197         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75198         Paul Eggert.
75199         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75200         Paul Eggert.
75201
75202 2003-01-27  Bruno Haible  <bruno@clisp.org>
75203
75204         * modules/xsetenv: New module.
75205         * MODULES.html.sh (func_all_modules): Add it.
75206
75207 2003-01-27  Bruno Haible  <bruno@clisp.org>
75208
75209         * lib/xsetenv.h: New file, from GNU gettext.
75210         * lib/xsetenv.c: New file, from GNU gettext.
75211
75212 2003-01-23  Jim Meyering  <jim@meyering.net>
75213
75214         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75215         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75216
75217 2003-01-23  Bruno Haible  <bruno@clisp.org>
75218
75219         * modules/minmax: New module.
75220         * MODULES.html.sh (func_all_modules): Add it.
75221
75222 2003-01-23  Bruno Haible  <bruno@clisp.org>
75223
75224         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75225         Eggert.
75226
75227 2003-01-22  Bruno Haible  <bruno@clisp.org>
75228
75229         * modules/exit: New module.
75230         * MODULES.html.sh (func_all_modules): Add it.
75231
75232 2003-01-22  Bruno Haible  <bruno@clisp.org>
75233
75234         * lib/exit.h: New file, from GNU gettext.
75235
75236 2003-01-19  Bruno Haible  <bruno@clisp.org>
75237
75238         * gnulib-tool: Recognize option --extract-maintainer.
75239         (func_get_maintainer): New function.
75240         * modules/*: Add Maintainer entry.
75241
75242 2003-01-16  Jim Meyering  <jim@meyering.net>
75243
75244         * m4/regex.m4: The `regex' struct is both input and output.
75245         Initialize it before each use.  Patch by Tim Waugh.
75246
75247 2003-01-16  Bruno Haible  <bruno@clisp.org>
75248
75249         * MODULES.html.sh: Add a table of contents. Add the module name as
75250         leftmost column. Add hyperlinks.
75251
75252 2003-01-15  Bruno Haible  <bruno@clisp.org>
75253
75254         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75255
75256 2003-01-15  Bruno Haible  <bruno@clisp.org>
75257
75258         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75259         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75260         suffix.
75261
75262 2003-01-15  Bruno Haible  <bruno@clisp.org>
75263
75264         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75265
75266 2003-01-15  Bruno Haible  <bruno@clisp.org>
75267
75268         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75269         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75270
75271 2003-01-14  Jim Meyering  <jim@meyering.net>
75272
75273         * lib/same.c (same_name): Tweak a comment.
75274
75275 2003-01-14  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75278         when a string comparison is sufficient.
75279
75280 2003-01-14  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75283         'unsigned int'.
75284
75285 2003-01-14  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/hash-pjw.c: Add comment about low quality of this function.
75288
75289 2003-01-13  Bruno Haible  <bruno@clisp.org>
75290
75291         * modules/stpcpy: Distribute lib/stpcpy.h.
75292         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75293
75294 2003-01-13  Bruno Haible  <bruno@clisp.org>
75295
75296         * modules/*: Add a description.
75297         * modules/strpbrk: Fix Makefile.am snippet.
75298         * modules/strtoimax: Fix dependencies.
75299         * modules/strtoumax: Likewise.
75300
75301 2003-01-13  Bruno Haible  <bruno@clisp.org>
75302
75303         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75304         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75305         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75306
75307 2003-01-13  Bruno Haible  <bruno@clisp.org>
75308
75309         * gnulib-tool (func_create_testdir): Store config/* files in the main
75310         directory.
75311         * config.rpath: Move to ...
75312         * config/config.rpath: ... here.
75313         * modules/gettext: Contains config/config.rpath, not config.rpath.
75314         * modules/iconv: Likewise.
75315
75316 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75317
75318         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75319         to avoid collisions with libcurses and libreadline.
75320
75321         * m4/getstr.m4: Remove.
75322         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75323
75324 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75325
75326         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75327         to avoid collisions with libcurses and libreadline.
75328
75329         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75330         * lib/getstr.h, getstr.c: Remove.
75331         * lib/getline.c: Include "getline.h", to check interface.
75332         Move body of old getstr.c here: this defines MIN_CHUNK and
75333         declares getdelim2, which is renamed from getstr.
75334         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75335
75336         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75337         All uses changed.
75338         * lib/linebuffer.h: Likewise.
75339         (readline): Remove backward-compatibility macro.
75340
75341 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75342
75343         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75344         to avoid collisions with libcurses and libreadline.
75345         * getstr: Remove.
75346         * MODULES.html.sh: Remove getstr.
75347         * modules/getline: Depend on unlocked-io, not getstr.
75348
75349 2003-01-12  Jim Meyering  <jim@meyering.net>
75350
75351         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75352
75353 2003-01-10  Bruno Haible  <bruno@clisp.org>
75354
75355         * modules/alloca: Change Makefile.am requirements. Simplify Include
75356         requirements. Add lib/alloca_.h to file list.
75357
75358 2003-01-10  Bruno Haible  <bruno@clisp.org>
75359
75360         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75361
75362 2003-01-10  Bruno Haible  <bruno@clisp.org>
75363
75364         * lib/alloca_.h: New file.
75365         * lib/getdate.y: Unconditionally include alloca.h.
75366         * lib/makepath.c: Likewise.
75367         * lib/setenv.c: Likewise.
75368         * lib/userspec.c: Likewise.
75369
75370 2003-01-09  Karl Berry  <karl@gnu.org>
75371
75372         * MODULES.html.sh: include `dirname $0` in PATH, to find
75373         gnulib-tool.
75374
75375 2003-01-09  Bruno Haible  <bruno@clisp.org>
75376
75377         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75378         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75379
75380 2003-01-09  Bruno Haible  <bruno@clisp.org>
75381
75382         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75383
75384 2003-01-09  Bruno Haible  <bruno@clisp.org>
75385
75386         * lib/stdbool.h.in: New file.
75387
75388 2003-01-09  Bruno Haible  <bruno@clisp.org>
75389
75390         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75391         * MODULES.html.sh: Likewise.
75392
75393 2003-01-08  Jim Meyering  <jim@meyering.net>
75394
75395         * lib/full-write.c: Undefine and define-away `const' after inclusion
75396         of errno.h, not before.  Suggestion from Bruno Haible.
75397
75398 2003-01-08  Bruno Haible  <bruno@clisp.org>
75399
75400         * modules/full-read: Depend on full-write.
75401
75402 2003-01-08  Bruno Haible  <bruno@clisp.org>
75403
75404         * lib/safe-read.c: Include specification header first, to ensure its
75405         selfcontainedness.
75406         * lib/full-write.c: Likewise.
75407
75408 2003-01-07  Jim Meyering  <jim@meyering.net>
75409
75410         * lib/full-write.c: Rework so that it may serve to define full_read,
75411         too.
75412         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75413
75414 2003-01-07  Bruno Haible  <bruno@clisp.org>
75415
75416         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75417         <inttypes.h>.
75418         * lib/xstrtol.h: Likewise.
75419         * lib/xstrtoimax.c: Likewise.
75420         * lib/xstrtoumax.c: Likewise.
75421         * lib/human.h: Likewise.
75422
75423         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75424         on systems that have <inttypes.h> but not <stdint.h>.
75425
75426 2003-01-07  Bruno Haible  <bruno@clisp.org>
75427
75428         * MODULES.html.sh: Add copyright notice.
75429         (missed_files): Omit CVS directory entries.
75430         (func_module): Make it work with sed-3.02.
75431         * MODULES.txt: Remove file.
75432
75433 2003-01-06  Jim Meyering  <jim@meyering.net>
75434
75435         * lib/version-etc.c: Update year in translatable copyright string.
75436
75437 2003-01-03  Karl Berry  <karl@gnu.org>
75438
75439         * config/config.{guess,sub}: update from prep.
75440
75441 2003-01-02  Karl Berry  <karl@gnu.org>
75442
75443         * doc/COPYING.DOC: belatedly updated to 1.2.
75444
75445 2003-01-01  Karl Berry  <karl@gnu.org>
75446
75447         * gnulib-tool (func_verify_module): report module name $module in
75448         error message, not $1.
75449         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75450         be created, only if it doesn't exist.
75451         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75452
75453 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75454
75455         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75456
75457 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75458
75459         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75460         memcmp if strcoll doesn't work.
75461
75462 2002-12-31  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75465         nonempty.
75466
75467 2002-12-31  Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/memcoll.c (STRCOLL): New macro.
75470         (memcoll): Use it.
75471
75472 2002-12-31  Bruno Haible  <bruno@clisp.org>
75473
75474         * lib/localcharset.h: New file.
75475         * lib/localcharset.c: Include it.
75476         * lib/unicodeio.c: Likewise.
75477
75478 2002-12-31  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75481         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75482
75483 2002-12-31  Bruno Haible  <bruno@clisp.org>
75484
75485         * lib/getline.h: Include <stddef.h>, for size_t.
75486
75487         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75488         * lib/unicodeio.c: Don't include <stddef.h>.
75489
75490 2002-12-31  Bruno Haible  <bruno@clisp.org>
75491
75492         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75493         HAVE_TM_ZONE.
75494
75495 2002-12-24  Karl Berry  <karl@gnu.org>
75496
75497         * config/config.guess: update from prep.
75498
75499 2002-12-24  Bruno Haible  <bruno@clisp.org>
75500
75501         General infrasructure.
75502         * m4/README: Rewritten.
75503         * m4/onceonly.m4: New file.
75504         * m4/onceonly_2_57.m4: New file.
75505
75506         Module atexit.
75507         * m4/atexit.m4: New file.
75508
75509         Module strtod.
75510         * m4/strtod.m4: New file.
75511
75512         Module strtol.
75513         * m4/strtol.m4: New file.
75514
75515         Module strtoul.
75516         * m4/strtoul.m4: New file.
75517
75518         Module memchr.
75519         * m4/memchr.m4: New file.
75520
75521         Module memcmp.
75522         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75523         (jm_FUNC_MEMCMP): Invoke it.
75524
75525         Module memcpy.
75526         * m4/memcpy.m4: New file.
75527
75528         Module memmove.
75529         * m4/memmove.m4: New file.
75530
75531         Module memset.
75532         * m4/memset.m4: New file.
75533
75534         Module strcspn.
75535         * m4/strcspn.m4: New file.
75536
75537         Module strpbrk.
75538         * m4/strpbrk.m4: New file.
75539
75540         Module strstr.
75541         * m4/strstr.m4: New file.
75542
75543         Module strerror.
75544         * m4/strerror.m4: New file.
75545
75546         Module mktime.
75547         * m4/mktime.m4: Renamed from jm-mktime.m4.
75548         (gl_PREREQ_MKTIME): New macro.
75549         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75550
75551         Module malloc.
75552         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75553         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75554         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75555
75556         Module realloc.
75557         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75558         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75559         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75560
75561         Module strftime.
75562         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75563         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75564         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75565         gl_TM_GMTOFF.
75566         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75567
75568         Module xalloc.
75569         * m4/xalloc.m4: New file.
75570
75571         Module alloca.
75572         * m4/alloca.m4: New file.
75573
75574         Module putenv.
75575         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75576         (jm_FUNC_PUTENV): Invoke it.
75577
75578         Module setenv.
75579         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75580         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75581         when invoked twice.
75582         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75583         gt_FUNC_SETENV.
75584
75585         Module memrchr.
75586         * m4/memrchr.m4: New file.
75587
75588         Module stpcpy.
75589         * m4/stpcpy.m4: New file.
75590
75591         Module strcase.
75592         * m4/strcase.m4: New file.
75593
75594         Module strdup.
75595         * m4/strdup.m4: New file.
75596
75597         Module strnlen.
75598         * m4/strnlen.m4: New file.
75599
75600         Module strndup.
75601         * m4/strndup.m4: New file.
75602
75603         Module xstrtod.
75604         * m4/xstrtod.m4: New file.
75605
75606         Module xstrtol.
75607         * m4/xstrtol.m4: New file.
75608
75609         Module getdate.
75610         * m4/getdate.m4: New file.
75611
75612         Module unlocked-io.
75613         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75614         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75615         * m4/jm-glibc-io.m4n: Remove file.
75616
75617         Module long-options.
75618         * m4/long-options.m4: New file.
75619
75620         Module md5.
75621         * m4/md5.m4: New file.
75622
75623         Module sha.
75624         * m4/sha.m4: New file.
75625
75626         Module getstr.
75627         * m4/getstr.m4: New file.
75628
75629         Module getline.
75630         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75631         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75632         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75633         simply getline. Infoke gl_PREREQ_GETLINE.
75634
75635         Module obstack.
75636         * m4/obstack.m4: New file.
75637
75638         Module hash.
75639         * m4/hash.m4: New file.
75640
75641         Module readtokens.
75642         * m4/readtokens.m4: New file.
75643
75644         Module strverscmp.
75645         * m4/strverscmp.m4: New file.
75646
75647         Module stdbool.
75648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75649         OSF/1.
75650
75651         Module strtoll.
75652         * m4/strtoll.m4: New file.
75653
75654         Module strtoull.
75655         * m4/strtoull.m4: New file.
75656
75657         Module strtoimax.
75658         * m4/strtoimax.m4: New file.
75659
75660         Module strtoumax.
75661         * m4/strtoumax.m4: New file.
75662
75663         Module xstrtoimax.
75664         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75665         jm_AC_PREREQ_XSTRTOIMAX.
75666         Moved the strtol prerequisites to strtol.m4.
75667         Moved the strtoll prerequisites to strtoll.m4.
75668         Moved the strtoimax prerequisites to strtoimax.m4.
75669
75670         Module xstrtoumax.
75671         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75672         jm_AC_PREREQ_XSTRTOUMAX.
75673         Moved the strtoul prerequisites to strtoul.m4.
75674         Moved the strtoull prerequisites to strtoull.m4.
75675         Moved the strtoumax prerequisites to strtoumax.m4.
75676
75677         Module chown.
75678         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75679         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75680
75681         Module dup2.
75682         * m4/dup2.m4: New file.
75683
75684         Module ftruncate.
75685         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75686         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75687
75688         Module getgroups.
75689         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75690         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75691
75692         Module gettimeofday.
75693         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75694         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75695         gl_PREREQ_GETTIMEOFDAY.
75696
75697         Module mkdir.
75698         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75699         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75700
75701         Module mkstemp.
75702         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75703         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75704         jm_AC_TYPE_UINTMAX_T.
75705         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75706
75707         Module stat.
75708         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75709         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75710
75711         Module lstat.
75712         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75713         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75714
75715         Module timespec.
75716         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75717         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75718         * m4/st_mtim.m4: Indentation.
75719
75720         Module nanosleep.
75721         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75722         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75723         gl_PREREQ_NANOSLEEP.
75724
75725         Module regex.
75726         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75727         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75728         (gl_REGEX): New macro.
75729
75730         Module rename.
75731         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75732         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75733
75734         Module rmdir.
75735         * m4/rmdir.m4: New file.
75736
75737         Module utime.
75738         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75739         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75740         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75741
75742         Module dirname.
75743         * m4/dirname.m4: New file.
75744
75745         Module getopt.
75746         * m4/getopt.m4: New file.
75747
75748         Module unistd-safer.
75749         * m4/unistd-safer.m4: New file.
75750
75751         Module fnmatch.
75752         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75753         declaration.
75754         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75755         (gl_FUNC_FNMATCH_POSIX): New macro.
75756         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75757         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75758         simply fnmatch.
75759
75760         Module exclude.
75761         * m4/exclude.m4: New file.
75762
75763         Module human.
75764         * m4/human.m4: New file.
75765
75766         Module acl.
75767         * m4/acl.m4: Nop.
75768
75769         Module backupfile.
75770         * m4/backupfile.m4: New file.
75771         * m4/d-ino.m4: Indentation.
75772
75773         Module fsusage.
75774         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75775         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75776         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75777
75778         Module dirfd.
75779         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75780         requirements.
75781
75782         Module euidaccess.
75783         * m4/euidaccess.m4: New file.
75784
75785         Module file-type.
75786         * m4/file-type.m4: New file.
75787
75788         Module fileblocks.
75789         * m4/fileblocks.m4: New file.
75790
75791         Module filemode.
75792         * m4/filemode.m4: New file.
75793
75794         Module isdir.
75795         * m4/isdir.m4: New file.
75796
75797         Module lchown.
75798         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75799         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75800
75801         Module makepath.
75802         * m4/makepath.m4: New file.
75803
75804         Module modechange.
75805         * m4/modechange.m4: New file.
75806
75807         Module mountlist.
75808         * m4/mountlist.m4: New file.
75809         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75810         Indentation.
75811
75812         Module path-concat.
75813         * m4/path-concat.m4: New file.
75814
75815         Module pathmax.
75816         * m4/pathmax.m4: New file.
75817
75818         Module same.
75819         * m4/same.m4: New file.
75820
75821         Module save-cwd.
75822         * m4/save-cwd.m4: New file.
75823
75824         Module savedir.
75825         * m4/savedir.m4: New file.
75826
75827         Module xgetcwd.
75828         * m4/xgetcwd.m4: New file.
75829         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75830
75831         Module xreadlink.
75832         * m4/xreadlink.m4: New file.
75833
75834         Module safe-read.
75835         * m4/safe-read.m4: New file.
75836
75837         Module safe-write.
75838         * m4/safe-write.m4: New file.
75839
75840         Module closeout.
75841         * m4/closeout.m4: New file.
75842
75843         Module stdio-safer.
75844         * m4/stdio-safer.m4: New file.
75845
75846         Module getpass.
75847         * m4/getpass.m4: New file.
75848
75849         Module getugroups.
75850         * m4/getugroups.m4: New file.
75851
75852         Module group-member.
75853         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75854         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75855
75856         Module idcache.
75857         * m4/idcache.m4: New file.
75858
75859         Module userspec.
75860         * m4/userspec.m4: New file.
75861
75862         Module gettime.
75863         * m4/clock_time.m4: New file.
75864         * m4/gettime.m4: New file.
75865
75866         Module settime.
75867         * m4/settime.m4: New file.
75868
75869         Module posixtm.
75870         * m4/posixtm.m4: New file.
75871
75872         Module gethostname.
75873         * m4/gethostname.m4: New file.
75874
75875         Module canon-host.
75876         * m4/canon-host.m4: New file.
75877
75878         Module gettext.
75879         * m4/codeset.m4: New file, from gettext-0.11.5.
75880         * m4/gettext.m4: New file, from gettext-0.11.5.
75881         * m4/glibc21.m4: New file, from gettext-0.11.5.
75882         * m4/iconv.m4: New file, from gettext-0.11.5.
75883         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75884         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75885         * m4/inttypes.m4: New file, from gettext-0.11.5.
75886         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75887         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75888         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75889         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75890         * m4/lib-link.m4: New file, from gettext-0.11.5.
75891         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75892         * m4/progtest.m4: New file, from gettext-0.11.5.
75893         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75894         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75895         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75896
75897         Module localcharset.
75898         * m4/localcharset.m4: New file.
75899
75900         Module hard-locale.
75901         * m4/hard-locale.m4: New file.
75902
75903         Module mbswidth.
75904         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75905         onceonly macros.
75906         * m4/mbrtowc.m4: Add comment.
75907
75908         Module memcasecmp.
75909         * m4/memcasecmp.m4: New file.
75910
75911         Module memcoll.
75912         * m4/memcoll.m4: New file.
75913
75914         Module unicodeio.
75915         * m4/unicodeio.m4: New file.
75916
75917         Module rpmatch.
75918         * m4/rpmatch.m4: New file.
75919
75920         Module yesno.
75921         * m4/yesno.m4: New file.
75922
75923         Module exitfail.
75924         * m4/exitfail.m4: New file.
75925
75926         Module c-stack.
75927         * m4/c-stack.m4 (gl_C_STACK): New macro.
75928         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75929
75930         Module error.
75931         * m4/error.m4 (gl_ERROR): New macro.
75932         (jm_PREREQ_ERROR): Use onceonly macros.
75933
75934         Module fatal.
75935         * m4/fatal.m4: New file.
75936
75937         Module getloadavg.
75938         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75939         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75940
75941         Module getpagesize.
75942         * m4/getpagesize.m4: New file.
75943
75944         Module getusershell.
75945         * m4/getusershell.m4: New file.
75946
75947         Module physmem.
75948         * m4/physmem.m4: New file.
75949
75950         Module posixver.
75951         * m4/posixver.m4: New file.
75952
75953         Module quotearg.
75954         * m4/quotearg.m4: New file.
75955
75956         Module quote.
75957         * m4/quote.m4: New file.
75958
75959         Module readutmp.
75960         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75961
75962         Module sig2str.
75963         * m4/sig2str.m4: New file.
75964
75965         Other.
75966         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75967         ulonglong.m4.
75968         * m4/intmax_t.m4: New file.
75969         * m4/d-type.m4: Indentation.
75970         * m4/jm-macros.m4: Update.
75971         * m4/prereq.m4 (jm_PREREQ): Update.
75972         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75973         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75974         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75975         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75976         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75977         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75978         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75979         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75980         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75981         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75982         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75983         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75984         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75985         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75986         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75987         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75988         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75989         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75990         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75991
75992 2002-12-24  Bruno Haible  <bruno@clisp.org>
75993
75994         * MODULES.txt: Update according to m4/ changes.
75995
75996         Module gettext.
75997         * config.rpath: New file, from gettext-0.11.5.
75998
75999         * modules/*: New module descriptions.
76000         * gnulib-tool: New file.
76001         * MODULES.html.sh: New file.
76002
76003 2002-12-21  Karl Berry  <karl@gnu.org>
76004
76005         * doc/fdl.texi: update to version 1.2.
76006
76007 2002-12-19  Karl Berry  <karl@gnu.org>
76008
76009         * config/config.guess: update from prep.
76010
76011 2002-12-18  Bruno Haible  <bruno@clisp.org>
76012
76013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76014         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76015
76016 2002-12-17  Bruno Haible  <bruno@clisp.org>
76017
76018         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76019         stdlib.h, string.h.
76020
76021 2002-12-17  Bruno Haible  <bruno@clisp.org>
76022
76023         * lib/canon-host.c (strdup): Remove unused declaration.
76024
76025         * lib/fsusage.c: Include full_read.h.
76026         (get_fs_usage): Use full_read instead of safe_read.
76027
76028         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76029
76030 2002-12-12  Karl Berry  <karl@gnu.org>
76031
76032         * config/config.guess: update from prep.
76033
76034 2002-12-11  Bruno Haible  <bruno@clisp.org>
76035
76036         * m4/setenv.m4: New file, from gettext-0.11.5.
76037
76038 2002-12-11  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76041         not unsetenv().
76042         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76043         modifications:
76044
76045         2002-12-11  Bruno Haible  <bruno@clisp.org>
76046
76047                 * setenv.c (alloca): Fall back to malloc.
76048                 (freea): New macro.
76049                 (setenv): Use freea() to free memory allocated with alloca().
76050
76051         2002-11-13  Bruno Haible  <bruno@clisp.org>
76052
76053                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76054                 function declarations.
76055                 * unsetenv.c (unsetenv): Likewise.
76056
76057         2002-03-04  Bruno Haible  <bruno@clisp.org>
76058
76059                 Portability to AIX 4.3.3.
76060                 * unsetenv.c: New file, extracted from setenv.c.
76061                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76062
76063         2001-12-20  Bruno Haible  <bruno@clisp.org>
76064
76065                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76066                 use malloc instead. For SunOS 4.
76067
76068         2001-12-11  Bruno Haible  <bruno@clisp.org>
76069
76070                 * setenv.c: Declare alloca.
76071                 (compar_fn_t): New typedef.
76072                 (KNOWN_VALUE, STORE_VALUE): Use it.
76073
76074         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76075         setenv.h.
76076
76077 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76078
76079         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76080         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76081         Choose values that are less likely to collide with system fnmatch
76082         options.
76083         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76084         defined (e.g., a pure POSIX system).
76085         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76086         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76087
76088 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76089
76090         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76091         a pain in practice to deal with generated m4 files.  This change
76092         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76093
76094         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76095         and jm-glibc-io.m4, as they are no longer a special case.
76096         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76097         kludge and the auto-generation stuff.  Check only whether the
76098         functions are declared, not whether they exist, since older hosts
76099         that don't declare the functions can't use the optimization anyway.
76100
76101 2002-12-06  Jim Meyering  <jim@meyering.net>
76102
76103         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76104
76105         Merge in changes from libc's misc/error.c, in preparation
76106         for the merge of gnulib's changes back into libc.
76107
76108         * lib/error.c (_): Define only if not already defined.
76109         Move definition to follow all #include directives.
76110         Include unlocked-io.h only if !_LIBC.
76111         [_LIBC]: Include <libio/libioP.h>.
76112         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76113         (fflush): Tweak definition to use INTUSE.
76114         (putc): Define.
76115
76116 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76117
76118         * lib/alloca.c [defined emacs]: Include "lisp.h".
76119         (xalloc_die) [defined emacs]: New macro.
76120         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76121         [! defined emacs]: Include <xalloc.h>.
76122         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76123         (pointer): Typedef to POINTER_TYPE *.
76124         (malloc): Remove decl; we now always use xmalloc.
76125         (alloca): Use old-style definition, since Emacs needs this.
76126         Check for arithmetic overflow when computing combined size.
76127
76128 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76129
76130         Do not generate unlocked-io.h automatically, since it's easier to
76131         maintain it by hand.
76132
76133         * lib/unlocked-io.h: New file, from GNU diffutils,
76134         but with proper copyright notice and attribution.
76135         * lib/gen-uio: Remove.
76136         * lib/Makefile.am: Add copyright notice.
76137         (libfetish_a_SOURCES): Add unlocked-io.h.
76138         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76139         (DISTCLEANFILES, io_functions): Remove macros.
76140         (EXTRA_DIST): Remove gen_uio.
76141         (unlocked-io.h): Remove rule.
76142
76143 2002-12-04  Jim Meyering  <jim@meyering.net>
76144
76145         Reflect the fact that stat.c and lstat.c are no longer generated.
76146         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76147         (DISTCLEANFILES): Likewise.
76148         (EXTRA_DIST): Likewise.
76149         (all_local): Don't depend on stat.c or lstat.c.
76150         (stat.c, lstat.c): Remove rules.
76151         (EXTRA_DIST): Remove xstat.in.
76152
76153         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76154         * lib/stat.c: New file.  Contents mostly from xstat.in.
76155         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76156         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76157
76158         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76159         too.
76160         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76161
76162 2002-12-03  Jim Meyering  <jim@meyering.net>
76163
76164         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76165         but not semantics, to minimize the differences between these two files.
76166         (safe_read): Change comment to mention SAFE_READ_ERROR.
76167
76168         * lib/safe-read.c (IS_EINTR): Define.
76169         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76170
76171 2002-12-02  Jim Meyering  <jim@meyering.net>
76172
76173         * lib/safe-read.c (EINTR): Define.
76174         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76175         (INT_MAX): Provide fallback.
76176         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76177
76178         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76179
76180 2002-12-02  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76183         Define, taken from safe-read.c.
76184         (INT_MAX): Provide fallback.
76185         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76186         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76187
76188         * lib/safe-read.c (EINTR): Remove definition.
76189         (safe_read): Don't use EINTR if it is absent.
76190
76191 2002-12-01  Jim Meyering  <jim@meyering.net>
76192
76193         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76194         zero.
76195         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76196
76197 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76198
76199         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76200         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76201         with `if (! (value < limit)) abort ();', for readability.
76202
76203 2002-11-26  Karl Berry  <karl@gnu.org>
76204
76205         * lib/strdup.c: copy from libc again, with jim's ok.
76206         * lib/.cppi-disable: re-add strdup.c
76207
76208 2002-11-25  Karl Berry  <karl@gnu.org>
76209
76210         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76211         instead of "strtol.c".
76212
76213 2002-11-25  Karl Berry  <karl@gnu.org>
76214
76215         * config/install-sh: update from automake for variable quoting, $0 in
76216         error msgs, etc.
76217
76218         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76219         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76220         entry.
76221
76222 2002-11-25  Jim Meyering  <jim@meyering.net>
76223
76224         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76225
76226 2002-11-24  Karl Berry  <karl@gnu.org>
76227
76228         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76229         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76230
76231 2002-11-24  Jim Meyering  <jim@meyering.net>
76232
76233         Update from coreutils:
76234
76235         * lib/mktime.c: Merge in changes from libc.
76236
76237         Avoid a link-time failure on some Linux systems.
76238         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76239         (otherwise).
76240         (__mon_yday): Declare with the STATIC attribute.
76241         (__mktime_internal): Likewise.
76242         Based on a report from Greg Schafer.
76243
76244 2002-11-23  Jim Meyering  <jim@meyering.net>
76245
76246         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76247         Use `unsigned', not `int', as type of index.
76248
76249         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76250
76251         * lib/fsusage.c: Remove unneeded parentheses around operands of
76252         `defined'.
76253
76254 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76255
76256         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76257         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76258         so that we can be included first.
76259         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76260         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76261         No need to include stddef.h or sys/types.h any more.
76262         Surround local include files with "", not "<>".
76263         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76264         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76265         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76266         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76267         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76268         (ISPRINT): Remove; no longer needed now that we assume C89.
76269
76270         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76271         Preserve errno.
76272
76273         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76274         quotearg_char): Use SIZE_MAX rather than
76275         (size_t) -1 when we are talking about "infinity".
76276
76277         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76278
76279 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76280
76281         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76282         hint that one should use `if (! x) abort ();' rather than `assert
76283         (x);', and anyway it's one less thing to worry about configuring.
76284         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76285         hash_rehash, hash_insert): Use abort rather than assert.
76286
76287 2002-11-22  Bruno Haible  <bruno@clisp.org>
76288
76289         * lib/safe-read.h: Assume C89. Add comments.
76290         (safe_read): Change return type to size_t.
76291         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76292         byte counts > SSIZE_MAX correctly.
76293         * lib/safe-write.h: New file.
76294         * lib/safe-write.c: New file.
76295         * lib/full-read.h: New file.
76296         * lib/full-read.c: New file.
76297         * lib/full-write.h: Assume C89. Add comments.
76298         * lib/full-write.c: Include safe-write.h.
76299         (full_write): Rewritten to use safe_write.
76300         Suggested by Jim Meyering and Paul Eggert.
76301
76302 2002-11-21  Jim Meyering  <jim@meyering.net>
76303
76304         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76305
76306         Merge in changes from the coreutils.
76307
76308         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76309         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76310         <stdint.h>.
76311         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76312         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76313         int.  Work more efficiently if X is the same width as uintmax_t.
76314         Do not compare X to -1, to avoid bogus compiler warning.
76315         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76316         Don't assume that f_frsize and f_bsize are the same type.
76317
76318         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76319         warning on FreeBSD.
76320
76321         * lib/makepath.c (make_path): Restore umask *before* creating the final
76322         component.
76323         (make_path): Minor reformatting.
76324
76325         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76326         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76327         HAVE_MALLOC/HAVE_REALLOC.
76328
76329         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76330         dummy ones.  At least on GNU/Linux systems, `auto' means something
76331         else.
76332         From Michael Stone.
76333
76334 2002-11-21  Bruno Haible  <bruno@clisp.org>
76335
76336         Remove case insensitive option matching.
76337         * lib/argmatch.h (argcasematch): Remove declaration.
76338         (ARGCASEMATCH): Remove macro.
76339         (__xargmatch_internal): Remove case_sensitive argument.
76340         (XARGMATCH): Update.
76341         (XARGCASEMATCH): Remove macro.
76342         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76343         case_sensitive argument.
76344         (argcasematch): Remove function.
76345         (__xargmatch_internal): Remove case_sensitive argument.
76346         (main): Use XARGMATCH instead of XARGCASEMATCH.
76347
76348         * lib/xmalloc.c: Change compile-time error message. Add comment about
76349         required autoconf version.
76350
76351 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76352
76353         Merge argmatch cleanups from Bison.  Assume C89.
76354
76355         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76356         Include stdlib.h, for EXIT_FAILURE.
76357         Always include <string.h>, since we assume C89.
76358         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76359         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76360         Include <stddef.h> instead, since it's all we need for size_t.
76361         (PARAMS): Remove.  All uses removed.
76362         (ARRAY_CARDINALITY): Do not bother to #undef.
76363         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76364         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76365         Remove unnecessary parentheses.
76366         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76367         Insert necessary parentheses.
76368         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76369         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76370
76371 2002-11-19  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76374         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76375
76376         * lib/mbswidth.h (PARAMS): Remove macro.
76377         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76378         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76379
76380         * lib/gcd.h (PARAMS): Remove macro.
76381         (gcd): Use ANSI C function declarations.
76382         * lib/gcd.c (gcd): Likewise.
76383
76384 2002-11-15  Bruno Haible  <bruno@clisp.org>
76385
76386         * lib/strcspn.c: Include <stddef.h>.
76387         (strcspn): Use ANSI C function declaration. Change return type to
76388         size_t. Use NULL.
76389         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76390         (strpbrk): Use NULL.
76391         * lib/strpbrk.h (PARAMS): Remove macro.
76392         (strpbrk): Use ANSI C function declaration.
76393         * lib/strstr.c: Don't include <sys/types.h>.
76394         * lib/strstr.h (PARAMS): Remove macro.
76395         (strstr): Use ANSI C function declarations.
76396
76397 2002-11-14  Karl Berry  <karl@gnu.org>
76398
76399         * config/mkinstalldirs: `do' on separate line, instead of
76400         `for var; do'.
76401
76402 2002-11-06  Bruno Haible  <bruno@clisp.org>
76403
76404         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76405         * lib/gcd.c (gcd): Likewise.
76406
76407 2002-11-05  Bruno Haible  <bruno@clisp.org>
76408
76409         * lib/gcd.h: New file, from gettext-0.11.5.
76410         * lib/gcd.c: New file, from gettext-0.11.5.
76411
76412 2002-11-05  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76415         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76416         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76417         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76418
76419         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76420         <libintl.h>.
76421         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76422         <libintl.h>.
76423
76424         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76425         * lib/human.c: Include gettext.h instead of <libintl.h>.
76426         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76427         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76428         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76429         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76430         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76431         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76432         (textdomain): Remove definition.
76433         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76434
76435         * lib/long-options.c: Remove include of <libintl.h> and definition of
76436         _.
76437         * lib/same.c: Remove include of <libintl.h> and definition of _.
76438
76439 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76440
76441         * lib/config.charset: A few additions for Solaris.
76442
76443 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76444
76445         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76446         * lib/localcharset.c (locale_charset): Declare as extern "C".
76447
76448 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76449
76450         * lib/config.charset: msdos in uk_UA uses CP1125.
76451
76452 2002-11-04  Bruno Haible  <bruno@clisp.org>
76453
76454         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76455         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76456         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76457         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76458         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76459
76460 2002-11-04  Bruno Haible  <bruno@clisp.org>
76461
76462         * lib/localcharset.c (locale_charset): Don't return an empty string.
76463
76464 2002-11-04  Bruno Haible  <bruno@clisp.org>
76465
76466         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76467         aliases.
76468
76469 2002-11-04  Bruno Haible  <bruno@clisp.org>
76470
76471         * lib/config.charset: Update for newest glibc. Add canonical names
76472         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76473
76474 2002-11-04  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/config.charset: Add support for NetBSD.
76477
76478 2002-11-04  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76481
76482 2002-11-01  Bruno Haible  <bruno@clisp.org>
76483
76484         * configure.in: Add AC_CONFIG_AUX_DIR call.
76485         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76486         test/Makefile.
76487         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76488
76489 2002-09-28  Karl Berry  <karl@gnu.org>
76490
76491         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76492         installed automake until the next release, since changes have been
76493         made.
76494
76495 2002-09-25  Karl Berry  <karl@gnu.org>
76496
76497         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76498         * lib/getopt*: copy from libc/posix.
76499         * lib/gettext.h: copy from gettext.
76500         * lib/.cppi-disable: add strdup.c, gettext.h.
76501
76502 2002-09-25  Karl Berry  <karl@gnu.org>
76503
76504         * config/srclist.txt: enable gettext.h check.
76505         * config/config.{guess,sub}: update from prep.
76506         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76507                 from automake 1.6.3.
76508         See srclist*.
76509
76510 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76511
76512         * regex.c (PATFETCH): Remove the translating fetch.
76513         (PATFETCH_RAW): Rename to PATFETCH.
76514         (set_image_of_range): New fun.
76515         (SET_RANGE_TABLE_WORK_AREA): Use it.
76516         (regex_compile): Don't translate the pattern chars so eagerly.
76517         Only do it when inserting an `exactn' bytecode or when handling
76518         a char-range.
76519         (mutually_exclusive_p): Avoid empty statement.
76520
76521 2002-07-06  Jim Meyering  <meyering@lucent.com>
76522
76523         * m4/README: Don't mention Makefile.am.in.
76524         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76525
76526 2002-07-01  Jim Meyering  <meyering@lucent.com>
76527
76528         * lib/c-stack.c: Include sys/time.h.
76529         From Volker Borchert.
76530
76531 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76532
76533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76534
76535 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76536
76537         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76538         New macro.  Use it uniformly instead of
76539         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76540         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76541         reported by Vin Shelton.
76542
76543 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76544
76545         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76546         Do not assume SA_SIGINFO behavior.
76547         Bug reported by Jim Meyering on NetBSD 1.5.2.
76548
76549 2002-06-22  Jim Meyering  <meyering@lucent.com>
76550
76551         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76552         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76553
76554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76555         now that configure.ac uses AC_GNU_SOURCE.
76556         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76557         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76558
76559         Update to latest tools.  Suggestions from Paul Eggert.
76560         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76561         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76562         * m4/fnmatch.m4: Likewise.
76563         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76564         to AC_HEADER_STDBOOL
76565
76566 2002-06-22  Jim Meyering  <meyering@lucent.com>
76567
76568         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76569         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76570
76571 2002-06-22  Jim Meyering  <meyering@lucent.com>
76572
76573         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76574
76575         * lib/exitfail.c, exitfail.h: Likewise.
76576         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76577
76578         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76579         of fnmatch.h.
76580         (EXTRA_DIST): Add fnmatch_loop.c.
76581         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76582
76583         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76584         * lib/fnmatch.c: Update from diffutils-2.8.2.
76585         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76586         * lib/fnmatch.h: Remove file.
76587
76588 2002-06-21  Jim Meyering  <meyering@lucent.com>
76589
76590         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76591         * m4/mbrtowc.m4: Likewise.
76592
76593         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76594         * m4/mbswidth.m4: Reflect name change:
76595         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76597
76598         * m4/lib-link.m4: Update from gettext-0.11.2.
76599         * m4/gettext.m4: Likewise.
76600
76601         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76602         From Alfred M. Szmidt.
76603
76604 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76605
76606         * lib/file-type.h: Report an error if neither S_ISREG nor
76607         S_IFREG is defined, instead of using a test specific to glibc
76608         2.2.  This should be safe, since POSIX requires S_ISREG and
76609         Unix Version 7 had S_IFREG.  We don't need to check for
76610         <sys/types.h> since we don't use any symbols that it defines.
76611
76612 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76613
76614         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76615         $@-t, so that each temporary file name is unique and valid in the first
76616         8 characters, for operation under DOS.
76617
76618 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76619
76620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76621
76622 2002-06-15  Jim Meyering  <meyering@lucent.com>
76623
76624         Work even with DJGPP 2.03, which lacks support for symlinks.
76625         From Richard Dawe.
76626         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76627         is defined.
76628         * lib/lchown.c (S_ISLNK): Likewise.
76629
76630 2002-06-15  Jim Meyering  <meyering@lucent.com>
76631
76632         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76633         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76634         have been included before this file.
76635
76636 2002-06-14  Jim Meyering  <meyering@lucent.com>
76637
76638         * lib/file-type.h: Use the version from diffutils-2.8.2.
76639         * lib/file-type.c: Likewise.
76640
76641 2002-06-07  Jim Meyering  <meyering@lucent.com>
76642
76643         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76644         They're needed at least for NetBSD 1.5.2.
76645         ($statxfs_includes): Include those same headers.
76646         ($statxfs_includes): Include sys/vfs.h if available.
76647         ($statxfs_includes): Likewise for sys/statvfs.h.
76648         Check for the following members in both structs statfs and statvfs:
76649         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76650
76651 2002-06-01  Jim Meyering  <meyering@lucent.com>
76652
76653         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76654         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76655
76656 2002-05-28  Jim Meyering  <meyering@lucent.com>
76657
76658         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76659         Reported by Volker Borchert.
76660
76661 2002-05-27  Jim Meyering  <meyering@lucent.com>
76662
76663         Fix a problem seen only on nonconforming systems whereby ls.c's
76664         use of localtime, and then of gettimeofday would cause trouble:
76665         the localtime call used to initialize rpl_gettimeofday's save
76666         mechanism would clobber ls's current local time information so
76667         that in any long listing the first file would always be listed
76668         with date 1970-01-01.  Analysis by Volker Borchert.
76669
76670         * lib/gettimeofday.c (localtime): Undefine.
76671         (rpl_localtime): New function.
76672
76673 2002-05-27  Jim Meyering  <meyering@lucent.com>
76674
76675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76676         localtime.
76677
76678         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76679         use the replacement function; it wouldn't resolve at link time.
76680         Reported by Volker Borchert.
76681
76682 2002-05-22  Jim Meyering  <meyering@lucent.com>
76683
76684         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76685         file-type.h.
76686         * lib/file-type.h: New file.
76687         * lib/file-type.c (file_type): New file/function.  Extracted from
76688         diffutils.
76689
76690 2002-04-30  Jim Meyering  <meyering@lucent.com>
76691
76692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76693
76694 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76695
76696         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76697
76698 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76699
76700         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76701         Do not check for alloca.h (no longer used) or stdbool.h (was never
76702         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76703
76704 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76705
76706         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76707
76708 2002-04-29  Jim Meyering  <meyering@lucent.com>
76709
76710         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76711         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76712         Use AC_FUNC_STRNLEN here instead.
76713
76714         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76715         With autoconf-2.53a, it's part of AC_PROG_CC.
76716
76717 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76718
76719         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76721
76722 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76723
76724         * lib/sig2str.h, lib/sig2str.c: New files.
76725         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76726
76727 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76728
76729         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76730         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76731         of 127, since 64 is the largest conceivable number for ancient
76732         nonstandard hosts.
76733         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76734
76735 2002-04-28  Jim Meyering  <meyering@lucent.com>
76736
76737         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76738
76739 2002-04-24  Jim Meyering  <meyering@lucent.com>
76740
76741         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76742         (jm_PREREQ): Use it.
76743
76744         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76745         mach/mach.h fcntl.h.
76746         Check for this function: setlocale.
76747
76748 2002-04-24  Jim Meyering  <meyering@lucent.com>
76749
76750         * lib/gettext.h: New file, from Gettext.
76751         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76752         (libfetish_a_SOURCES): Add gettext.h.
76753
76754 2002-04-16  Jim Meyering  <meyering@lucent.com>
76755
76756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76757         ut_pid, ut_id, ut_exit.
76758
76759 2002-04-16  Jim Meyering  <meyering@lucent.com>
76760
76761         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76762         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76763         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76764
76765 2002-04-12  Jim Meyering  <meyering@lucent.com>
76766
76767         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76768         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76769         existence of the getmntinfo function.  Needed for Darwin 5.3.
76770
76771         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76772         This is necessary at least on Darwin 5.3.
76773
76774         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76775         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76776         strnlen.o in the library, and that makes some versions of ranlib
76777         object.
76778
76779 2002-04-12  Jim Meyering  <meyering@lucent.com>
76780
76781         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76782
76783 2002-04-09  Jim Meyering  <meyering@lucent.com>
76784
76785         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76786         to be more precise.  Rather than saying we're checking whether the
76787         function `works', say what we're testing.
76788         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76789         Reported by Bruno Haible.
76790
76791 2002-03-10  Jim Meyering  <meyering@lucent.com>
76792
76793         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76794         Suggestion from Santiago Vila.
76795
76796 2002-03-08  Jim Meyering  <meyering@lucent.com>
76797
76798         * lib/rename.c: Mention that this wrapper is needed also on
76799         mips-dec-ultrix4.4 systems.
76800
76801 2002-03-02  Jim Meyering  <meyering@lucent.com>
76802
76803         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76804         not HAVE_CLOCK_SETTIME.
76805
76806 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76807
76808         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76809         Check for clock_settime.
76810
76811 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76812
76813         * lib/nanosleep.h: Rename to....
76814         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76815
76816         * lib/gettime.c: New file.
76817         * lib/settime.c: New file.
76818         * lib/stime.c: Remove.
76819
76820         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76821         timespec.h.  Remove nanosleep.h.
76822
76823 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76824
76825         * m4/acl.m4: New file.
76826         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76827         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76828
76829 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76830
76831         * lib/acl.c, lib/acl.h: New files.
76832         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76833
76834 2002-02-24  Jim Meyering  <meyering@lucent.com>
76835
76836         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76837         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76838         cause trouble.  Reported by Nelson Beebe.
76839
76840 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76841
76842         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76843         compilers that don't know that xalloc_die never returns.
76844
76845 2002-02-20  Jim Meyering  <meyering@lucent.com>
76846
76847         * lib/getdate.c: Regenerate using bison-1.33.
76848
76849 2002-02-17  Jim Meyering  <meyering@lucent.com>
76850
76851         * config/config.guess (main): Don't use `head -1'; it's no longer
76852         portable. Use `sed 1q' instead.
76853
76854 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76855
76856         * m4/codeset.m4: Upgrade to gettext-0.11.
76857         * m4/gettext.m4: Upgrade to gettext-0.11.
76858         * m4/glibc21.m4: Upgrade to gettext-0.11.
76859         * m4/iconv.m4: Upgrade to gettext-0.11.
76860         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76861         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76862         * m4/lib-ld.m4: New file, from gettext-0.11.
76863         * m4/lib-link.m4: New file, from gettext-0.11.
76864         * m4/lib-prefix.m4: New file, from gettext-0.11.
76865         * m4/progtest.m4: Upgrade to gettext-0.11.
76866
76867 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76868
76869         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76870         (jm_PREREQ): Use it.
76871
76872 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76873
76874         * lib/posixver.c, lib/posixver.h: New files.
76875         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76876
76877 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76878             Bruno Haible  <bruno@clisp.org>
76879
76880         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76881         (fwrite_success_callback): New declaration.
76882         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76883         print_unicode_char. Call failure callback instead of error.
76884         (fwrite_success_callback): New function.
76885         (exit_failure_callback): New function.
76886         (fallback_failure_callback): New function.
76887         (print_unicode_char): Call unicode_to_mb.
76888
76889 2002-01-26  Jim Meyering  <meyering@lucent.com>
76890
76891         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76892         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76893
76894 2002-01-26  Jim Meyering  <meyering@lucent.com>
76895
76896         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76897
76898 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76899
76900         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76901
76902 2002-01-22  Jim Meyering  <meyering@lucent.com>
76903
76904         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76905         Otherwise, some versions of automake would omit the rule that makes
76906         Makefile from Makefile.in.
76907
76908 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76909
76910         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76911         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76912         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76913         (memcoll): Set errno to zero if there is no error.
76914
76915         * lib/quotearg.c (quotearg_buffer_restyled):
76916         Fix bug with quoting buffers containing NUL when backslashing escapes.
76917         This bug was exposed by the other changes in this patch.
76918         (quotearg_n_options): New arg ARGSIZE.
76919         All callers changed.
76920         (quoting_options_from_style): New function.
76921         (quotearg_n_style): Use it.
76922         (quotearg_n_style_mem): New function.
76923
76924         * lib/quotearg.h (quotearg_n_style_mem): New function.
76925
76926 2002-01-19  Jim Meyering  <meyering@lucent.com>
76927
76928         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76929         Remove useless quotes: DF_PROG="df".
76930         * m4/strnlen.m4: New file.
76931
76932 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76933
76934         * lib/backupfile.c (ISDIGIT): Comment fix.
76935         * lib/getdate.y (ISDIGIT): Likewise.
76936         * lib/posixtm.c (ISDIGIT, year): Likewise.
76937         * lib/strverscmp.c (ISDIGIT): Likewise.
76938         * lib/userspec.c (ISDIGIT): Likewise.
76939
76940 2002-01-16  Jim Meyering  <meyering@lucent.com>
76941
76942         * lib/getdate.y: Add three semicolons, each just before a closing
76943         brace. Bison (as of version 1.31) no longer papers over that mistake.
76944
76945 2002-01-05  Jim Meyering  <meyering@lucent.com>
76946
76947         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76948
76949 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76950
76951         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76952         not silently exit merely because the output buffer happens to
76953         have nothing pending.
76954
76955 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76956
76957         See the big note in ../ChangeLog.
76958         * lib/human.c (suffixes): Prefer K to k for 1024.
76959         (generate_suffix_backwards): New function.
76960         (human_readable_inexact): Use it.
76961         * lib/xstrtol.c (__xstrtol): If there is no number but there
76962         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76963         Accept 'K' as well as 'k'.
76964
76965 2001-12-15  Jim Meyering  <meyering@lucent.com>
76966
76967         * lib/regex.h (__restrict_arr): Update from libc.
76968
76969         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76970         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76971         (STREQ): Define.
76972
76973 2001-12-14  Jim Meyering  <meyering@lucent.com>
76974
76975         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76976         Suggestion from Bruno Haible.
76977
76978 2001-12-10  Jim Meyering  <meyering@lucent.com>
76979
76980         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76981         xrealloc, Instead, include "xalloc.h".
76982         (initbuffer): Don't cast xmalloc return value to char*.
76983         (readline): Reword comment.
76984         Don't cast xrealloc return value to char*
76985         Return NULL, not 0.
76986
76987 2001-12-09  Jim Meyering  <meyering@lucent.com>
76988
76989         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76990         about `signed and unsigned type in conditional expression'.
76991         * lib/posixtm.c (posix_time_parse): Likewise.
76992
76993         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76994
76995         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76996         to avoid a pedantic warning.
76997
76998         * lib/getstr.c: Don't include assert.h.
76999         (getstr): Remove warning-evoking assertions.
77000         Return -1 if offset parameter is out of bounds.
77001         Change the type of a local from int to size_t.
77002
77003         * lib/strftime.c (my_strftime_localtime_r): Include this function
77004         definition in the `#if ! HAVE_TM_GMTOFF' block.
77005
77006         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77007         Include xalloc.h instead.
77008
77009 2001-12-02  Jim Meyering  <meyering@lucent.com>
77010
77011         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77012         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77013         included.
77014
77015         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77016         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77017
77018 2001-11-30  Akim Demaille  <akim@epita.fr>
77019
77020         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77021         before being defined.
77022
77023 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77024
77025         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77026         First arg is int, not unsigned.
77027         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77028         (SIZE_MAX, UINT_MAX): New macros.
77029         (quotearg_n_options): Abort if N is negative.
77030         Avoid overflow check on hosts where size_t is 64 bits and int
77031         is 32 bits, as overflow is impossible there.
77032         Fix off-by-one typo that caused unnecessary reallocation.
77033
77034 2001-11-27  Jim Meyering  <meyering@lucent.com>
77035
77036         * lib/tempname.c: Merge with version from libc.
77037         * lib/regex.c: Likewise.
77038
77039         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77040         systems for which STDC_HEADERS is 0, it was not included, resulting in
77041         a warning about an integer-to-pointer conversion problem with getenv.
77042         Reported by Volker Borchert.
77043
77044 2001-11-26  Jim Meyering  <meyering@lucent.com>
77045
77046         * lib/gtod.h: Remove file.
77047         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77048         * lib/gettimeofday.c: Don't include gtod.h.
77049         (GTOD_init): Remove function.
77050         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77051         Suggestion from Volker Borchert.
77052
77053 2001-11-23  Jim Meyering  <meyering@lucent.com>
77054
77055         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77056         it.
77057         * lib/hash.c (struct hash_table): Define it here instead.
77058
77059 2001-11-22  Jim Meyering  <meyering@lucent.com>
77060
77061         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77062
77063 2001-11-20  Jim Meyering  <meyering@lucent.com>
77064
77065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77066         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77067
77068 2001-11-19  Jim Meyering  <meyering@lucent.com>
77069
77070         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77071         directory.  Use "conftestXXXXXX" as the template.
77072         Suggestion from Paul Eggert.
77073
77074         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77075         immediately, so the test doesn't mistakenly hit the max-open-files
77076         limit.
77077
77078 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77079
77080         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77081         (TEMPORARIES): New macro.
77082         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77083         removes an artificial limitation (e.g. HP-UX 10.20, where
77084         TMP_MAX is 17576).
77085
77086 2001-11-18  Jim Meyering  <meyering@lucent.com>
77087
77088         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77089
77090 2001-11-18  Jim Meyering  <meyering@lucent.com>
77091
77092         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77093         on SunOS 4.
77094
77095         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77096         files will be created before anything else.
77097
77098 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77099
77100         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77101         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77102
77103 2001-11-17  Jim Meyering  <meyering@lucent.com>
77104
77105         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77106         Prompted by a report from Bob Proulx.
77107
77108         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77109         Instead, require UTILS_FUNC_MKSTEMP.
77110
77111 2001-11-17  Jim Meyering  <meyering@lucent.com>
77112
77113         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77114         Now, that's done as part of AC_FUNC_STRTOD.
77115
77116 2001-11-17  Jim Meyering  <meyering@lucent.com>
77117
77118         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77119         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77120         rather than group writable.  Patch by Juan F. Codagnone.
77121
77122         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77123         xrealloc, Instead, include "xalloc.h".
77124
77125         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77126         Remove explicit declarations of xmalloc, xrealloc,
77127         and xstrdup.  Instead, include "xalloc.h".
77128
77129         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77130         unlocked-io.h.
77131         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77132         Likewise.
77133         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77134
77135         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77136         Reported by Padraig Brady.
77137
77138         * lib/mkstemp.c: #undef mkstemp.
77139         Include config.h.
77140         (rpl_mkstemp): Rename from mkstemp.
77141         Protoize.
77142
77143 2001-11-16  Jim Meyering  <meyering@lucent.com>
77144
77145         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77146         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77147         determine the amount of total physical memory, use pstat_getstatic.
77148         HPUX-11 doesn't define _SC_PHYS_PAGES.
77149         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77150         If sysconf couldn't be used to determine the amount of available
77151         physical memory, use both pstat_getstatic and pstat_getdynamic.
77152         Based on a patch from Bob Proulx.
77153
77154 2001-11-10  Jim Meyering  <meyering@lucent.com>
77155
77156         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77157         (jm_PREREQ): Use it.
77158
77159 2001-11-09  Jim Meyering  <meyering@lucent.com>
77160
77161         * m4/jm-macros.m4: Require autoconf-2.52f.
77162         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77163         Use these AC_-prefixed names, not the AM_-prefixed ones.
77164
77165         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77166
77167 2001-11-05  Jim Meyering  <meyering@lucent.com>
77168
77169         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77170
77171 2001-11-04  Jim Meyering  <meyering@lucent.com>
77172
77173         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77174         $DEFS.
77175
77176 2001-11-03  Jim Meyering  <meyering@lucent.com>
77177
77178         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77179         of AC_DEFUN.
77180
77181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77182         know the name of the variable in the macro definition.
77183
77184 2001-11-03  Jim Meyering  <meyering@lucent.com>
77185
77186         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77187         in argmatch_to_argument call.
77188
77189         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77190         argument.
77191
77192         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77193         e.g., a fault due to an attempt to free a NULL pointer.
77194
77195 2001-11-01  Jim Meyering  <meyering@lucent.com>
77196
77197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77198         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77199
77200 2001-11-01  Jim Meyering  <meyering@lucent.com>
77201
77202         * lib/dirfd.c, lib/dirfd.h: New files.
77203         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77204
77205         * lib/hash.c (hash_print) [TESTING]: Clean up.
77206
77207 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77208
77209         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77210         to avoid a warning if -Wall.
77211
77212 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77213
77214         * README: New file
77215         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77216         (per RMS's instructions, this is now the canonical source)
77217         * lgpl/, gpl/: New directories.
77218
77219 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77220
77221         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77222
77223 2001-10-21  Jim Meyering  <meyering@lucent.com>
77224
77225         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77226         this code would end up calling gettext even in packages built
77227         with --disable-nls.
77228         * lib/getopt.c (_): Likewise.
77229         * lib/regex.c (_): Likewise.
77230
77231 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77232
77233         * m4/error.m4 (jm_PREREQ_ERROR):
77234         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77235         AC_FUNC_STRERROR_R does that.
77236         Check for strerror declaration.
77237
77238         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77239         are supposed to have them these days.
77240         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77241         Merge changes from latest Autoconf CVS.
77242         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77243         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77244         POSIX decided to standardize on the int flavor of strerror_r.
77245
77246 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77247
77248         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77249         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77250         Use strerror_r that is only a macro, even if it is not a function.
77251         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77252         (private_strerror): Use prototypes, not old-style function definition.
77253         (print_errno_message): New function.
77254         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77255         char*-flavored one.
77256         (error_tail, error, error_at_line): Use it.
77257
77258 2001-10-11  Jim Meyering  <meyering@lucent.com>
77259
77260         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77261         and quote_n (1, ... to avoid clobbering a buffer.
77262
77263 2001-10-05  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77266         hash-pjw.h.
77267         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77268         * lib/hash-pjw.h: New file.
77269
77270 2001-09-30  Jim Meyering  <meyering@lucent.com>
77271
77272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77273         `struct fsstat' has the `f_fstypename' member.
77274         Use that to define FS_TYPE, which is now used to make
77275         the getfsstat link test tighter.
77276
77277 2001-09-30  Jim Meyering  <meyering@lucent.com>
77278
77279         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77280         Include <sys/ucred.h>, for Apple Darwin.
77281         Include sys/mount.h and sys/fs_types.h only if available.
77282         (FS_TYPE): Define.
77283         (read_filesystem_list): Use FS_TYPE.
77284
77285 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77286
77287         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77288         a boolean context.
77289
77290 2001-09-29  Jim Meyering  <meyering@lucent.com>
77291
77292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77293         [one-argument getmntent function]): Include stdio.h before mntent.h.
77294         SunOS 4.1.x needs it for the declaration of `FILE'.
77295         Patch by Volker Borchert.
77296
77297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77298         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77299         sys/fs_types.h, and make the link-test for getfsstat guard #include
77300         directives with appropriate #if HAVE_*_H tests so that we can
77301         detect getfsstat on Apple Darwin1.3.7 systems.
77302         Reported by Nelson Beebe.
77303         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77304
77305 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77306
77307         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77308         #defines strtoimax.  Also treat the other strto* functions
77309         like strtoimax.
77310
77311         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77312         Check for strtoul and strtoumax,
77313         as those declarations are made even in the signed case.
77314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77315         Likewise, for strtol and strtoimax.
77316
77317 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77318
77319         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77320         #defines strtoimax.  Also treat the other strto* functions
77321         like strtoimax.
77322
77323         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77324         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77325         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77326
77327 2001-09-26  Jim Meyering  <meyering@lucent.com>
77328
77329         Most macros in unlocked-io.h had the wrong number of arguments.
77330         * lib/gen-uio: New script.
77331         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77332         * lib/unlocked-io.hin: Remove file.
77333         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77334         rather than trying to embed it here.
77335         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77336         Reported by Padraig Brady.
77337
77338 2001-09-25  Volker Borchert  <bt@teknon.de>
77339
77340         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77341         `result'.
77342
77343 2001-09-24  Jim Meyering  <meyering@lucent.com>
77344
77345         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77346
77347 2001-09-23  Jim Meyering  <meyering@lucent.com>
77348
77349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77350         instead of the mere test for existence of mntent.h.  The latter
77351         would get a false-positive on AIX 3.4 systems.
77352         In the outer getmntent if-block, don't die if neither of the getmntent
77353         tests succeeds.  Instead, just fall through and continue with the
77354         remaining tests.
77355
77356 2001-09-23  Jim Meyering  <meyering@lucent.com>
77357
77358         * lib/mountlist.c: Remove useless parentheses in #if directives.
77359         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77360         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77361
77362 2001-09-22  Jim Meyering  <meyering@lucent.com>
77363
77364         * m4/gettext.m4: New file.  From gettext.
77365         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77366         * m4/progtest.m4: Likewise
77367         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77368         * m4/glibc21.m4: Likewise.
77369
77370         * m4/libintl.m4: Remove.  No longer used.
77371
77372 2001-09-22  Jim Meyering  <meyering@lucent.com>
77373
77374         * lib/localcharset.c: Update from latest gettext.
77375         * lib/config.charset: Likewise.
77376
77377 2001-09-20  Jim Meyering  <meyering@lucent.com>
77378
77379         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77380         strtoimax.
77381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77382         strtoumax.
77383
77384 2001-09-20  Jim Meyering  <meyering@lucent.com>
77385
77386         * lib/xstrtol.c (strtoimax): Guard declaration with
77387         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77388         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77389         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77390         (strtoumax): Likewise, for completeness (it wasn't necessary).
77391
77392 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77393
77394         * lib/strtoimax.c (HAVE_LONG_LONG):
77395         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77396         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77397         to work around bug in IBM C compiler.
77398
77399 2001-09-17  Jim Meyering  <meyering@lucent.com>
77400
77401         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77402         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77403         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77404         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77405         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77406         whenever the right hand side need not be expanded by the shell.
77407
77408 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77409
77410         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77411         library.  It's not correct, as some older glibcs are buggy.
77412         fnmatch wasn't fixed until glibc 2.2.
77413
77414         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77415         special shell magic here.
77416
77417 2001-09-16  Jim Meyering  <meyering@lucent.com>
77418
77419         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77420         * m4/jm-macros.m4: Require it.
77421
77422 2001-09-16  Jim Meyering  <meyering@lucent.com>
77423
77424         * lib/mkdir.c: New file.
77425
77426 2001-09-15  Jim Meyering  <meyering@lucent.com>
77427
77428         * m4/jm-macros.m4: Check for help2man.
77429
77430 2001-09-11  Jim Meyering  <meyering@lucent.com>
77431
77432         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77433         The body, by Paul Eggert, was moved here from configure.in.
77434         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77435
77436 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77437
77438         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77439         (jm_PREREQ): Use it.
77440
77441 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77442
77443         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77444         Use ssize_t, not int, to store result of readlink.
77445         Check for ssize_t overflow as well as size_t overflow,
77446         as POSIX says the result of readlink is implementation-defined
77447         when ssize_t overflows.
77448         Remove unnecessary cast to char*.
77449         Use free+malloc instead of realloc, as the storage doesn't need
77450         to be preserved and it's clearer and can be more efficient that way.
77451         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77452         * lib/xreadlink.h (xreadlink): Update prototype.
77453
77454 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77455
77456         * lib/xgetcwd.c: Revert some of the previous change; intead,
77457         fix the HAVE_GETCWD_NULL code to behave more like the
77458         !HAVE_GETCWD_NULL code used to.
77459
77460         Include "xalloc.h".
77461         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77462         invoke xalloc_die.
77463
77464 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77465
77466         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77467         sys/param.h, as pathmax.h includes them.
77468
77469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77470
77471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77472         (jm_PREREQ_XGETCWD): New macro.
77473
77474         * m4/getcwd.m4: New file.
77475
77476 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77477
77478         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77479         like the HAVE_GETCWD_NULL code.
77480         Include pathmax.h if not HAVE_GETCWD.
77481         Do not include xalloc.h.
77482         (INITIAL_BUFFER_SIZE): New symbol.
77483         Do not use xmalloc / xrealloc, since the caller is responsible for
77484         handling errors.  Preserve errno around `free' during failure.
77485         Do not overrun buffer when using getwd.
77486
77487 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77488
77489         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77490         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77491         getcwd (NULL, 0).
77492
77493 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77494
77495         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77496         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77497         spotted by Jim Meyering.
77498
77499 2001-09-03  Jim Meyering  <meyering@lucent.com>
77500
77501         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77502         failure.
77503
77504 2001-09-02  Jim Meyering  <meyering@lucent.com>
77505
77506         * lib/error.c: Update from GNU libc.
77507
77508 2001-09-01  Jim Meyering  <meyering@lucent.com>
77509
77510         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77511         Used by df.
77512
77513 2001-09-01  Jim Meyering  <meyering@lucent.com>
77514
77515         * lib/xreadlink.c: New file.
77516         * lib/xreadlink.h: New file.
77517         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77518         xreadlink.h.
77519
77520         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77521         doesn't conflict with sparc Solaris 7's definition in
77522         /usr/include/sys/int_types.h.
77523
77524         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77525         files.
77526         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77527         and strncasecmp as r-values.  Unixware didn't have declarations.
77528
77529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77530
77531         * lib/xstrtol.h: Add copyright notice.
77532         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77533         LONGINT_INVALID_SUFFIX_CHAR.
77534
77535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77536
77537         * lib/xstrtol.c (strtoimax): New decl.
77538
77539 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77540
77541         * lib/xgetcwd.c: Don't include pathmax.h.
77542         Include stdlib.h and unistd.h if available.
77543         Include xalloc.h.
77544         (xmalloc, xstrdup, free): Remove decls.
77545         (xgetcwd): Don't assume sizes fit in unsigned.
77546         Check for overflow when computing sizes.
77547         Simplify reallocation code.
77548
77549 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77550
77551         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77552         a directory's st_size can have an arbitrary value, so the old
77553         usage could waste an arbitrary amount of memory.  All uses
77554         changed.
77555         * lib/savedir.h: Update prototype.
77556
77557 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77558
77559         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77560
77561         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77562         old strtoimax.c.
77563
77564         Also, make the following further changes to make this file's
77565         configuration more similar to that of strtol.c:
77566         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77567         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77568         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77569         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77570         changed to signed values.
77571
77572         And make the following changes as well:
77573         Fix copyright notice, as 1999 was missing.
77574         (verify): New macro.
77575         (strtoimax): Check sizes at compile-time, not run-time.
77576         Prefer strtol to strtoll if both work.
77577         (main): Remove; it was not that useful and was a pain to maintain.
77578
77579         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77580
77581 2001-08-31  Jim Meyering  <meyering@lucent.com>
77582
77583         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77584         Use an initial, malloc'd, buffer of length 128 rather than
77585         a statically allocated one of length 1024.
77586
77587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77588
77589         Simplify code, partly by assuming autoconf 2.52 semantics.
77590
77591         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77592
77593         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77594         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77595         All uses removed.
77596         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77597         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77598         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77599         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77600         jm_AC_HEADER_INTTYPES_H.
77601         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77602
77603         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77604
77605         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77606         Quote first arg of AC_DEFUN.
77607         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77608         since they are needed to parse the include file even if we need
77609         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77610         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77611         but with opposite signedness.
77612
77613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77614
77615         Merge 'exclude' changes from tar 1.13.22.
77616         This fixes one or two unlikely storage allocation overflow bugs,
77617         but doesn't change user-visible behavior otherwise.
77618
77619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77620
77621         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77622         (jm_PREREQ_EXCLUDE): New macro.
77623
77624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77625
77626         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77627         tm to be declared.
77628
77629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77630
77631         * lib/hash.c: Remove '2001' from copyright notice.
77632
77633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77634
77635         * lib/full-write.h: New file.
77636         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77637         * lib/full-write.c: Correct credits, as cccp.c no longer
77638         exists and anyway it was so heavily changed from the old cccp
77639         code as to be unrecognizable.  Include full-write.h.
77640         (full_write): Return size_t, with short writes meaning failure.
77641         All callers changed.  This fixes a bug with large buffers
77642         on 64-bit hosts.
77643         * lib/utime.c: Include full-write.h.
77644
77645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77646
77647         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77648         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77649         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77650         Include if available.
77651         (<xalloc.h>): Include
77652         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77653         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77654         collide with FNM macros.
77655         (struct patopts): New struct.
77656         (struct exclude): Use it, as exclude patterns now come with options.
77657         (new_exclude): Support above changes.
77658         (new_exclude, add_exclude_file):
77659         Initial size must now be a power of two to simplify overflow checking.
77660         (free_exclude, fnmatch_no_wildcards): New function.
77661         (excluded_filename): No longer requires options arg, as the options
77662         are determined by add_exclude.  Now returns bool, not int.
77663         (excluded_filename, add_exclude):
77664         Add support for the fancy new exclusion options.
77665         (add_exclude, add_exclude_file): Now takes int options arg.
77666         Check for arithmetic overflow when computing sizes.
77667         (add_exclude_file): xrealloc might modify errno, so don't
77668         realloc until after errno might be used.
77669
77670         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77671         New macros.
77672         (free_exclude): New decl.
77673         (add_exclude, add_exclude_file): Now takes int options arg.
77674         (excluded_filename): No longer requires options arg, as the options
77675         are determined by add_exclude.  Now returns bool, not int.
77676
77677 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77678
77679         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77680
77681 2001-08-27  Jim Meyering  <meyering@lucent.com>
77682
77683         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77684
77685         * lib/version-etc.c (N_): Remove definition.
77686         Revert most of last change.
77687         Instead, simply don't mark the `Copyright...' string for translation.
77688         Based on advice from Paul Eggert.
77689
77690         * lib/strtoxmax.c: Tweak comment.
77691
77692 2001-08-26  Jim Meyering  <meyering@lucent.com>
77693
77694         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77695
77696         * m4/xstrtoimax.m4: New file.
77697         * m4/xstrtoumax.m4: Add comments explaining why we
77698         AC_REPLACE_FUNCS(strtol).
77699
77700 2001-08-26  Jim Meyering  <meyering@lucent.com>
77701
77702         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77703         of copyright with `%s' so translators don't get an untranslated
77704         message in 2002.
77705         (COPYRIGHT_YEAR): Define.
77706         (version_etc): Use fprintf rather than fputs.
77707         Suggestion from Ulrich Drepper.
77708
77709         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77710
77711         * lib/strtoll.c: New file, from GNU libc.
77712         * lib/xstrtoimax.c: New file.
77713
77714         * lib/xstrtol.h: Add xstrtoimax.
77715         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77716         * lib/strtoimax.c: New file.  Likewise, but first define
77717         STRTOUXMAX_SIGNED.
77718
77719         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77720         ...
77721         * lib/strtoxmax.c: ... then renamed to this.
77722
77723 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77724
77725         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77726         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77727         (jm_AC_TYPE_INTMAX_T): New macro.
77728         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77729
77730         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77731
77732         * m4/longlong.m4: Renamed from ulonglong.m4.
77733         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77734         * m4/uintmax_t.m4: Removed.
77735
77736 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77737
77738         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77739         Port to Solaris 8, where 'sed' requires a space after the 'r'
77740         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77741         Redirect output to $tmp just once.
77742
77743 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77744
77745         * lib/addext.c (<errno.h>): Include.
77746         (errno): Declare if not defined.
77747         (addext): Work correctly when pathconf returns -1 and leaves
77748         errno alone because there is no limit.  Also, work even if
77749         pathconf returns a value greater than SIZE_MAX.
77750
77751 2001-08-12  Jim Meyering  <meyering@lucent.com>
77752
77753         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77754         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77755         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77756         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77757         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77758         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77759         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77760         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77761         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77762         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77763         utime.m4, utimes.m4, xstrtoumax.m4:
77764         Quote the first argument in each use of AC_DEFUN.
77765
77766 2001-08-12  Jim Meyering  <meyering@lucent.com>
77767
77768         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77769         Simply `return getcwd (NULL, 0);'.
77770         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77771         Use 1300 as initial value for length, not PATH_MAX.
77772
77773         * lib/pathmax.h: Clean up cpp syntax.
77774
77775 2001-08-12  Jim Meyering  <meyering@lucent.com>
77776
77777         * lib/gettimeofday.c: New file.
77778         * lib/gtod.h: New file.
77779         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77780
77781 2001-08-05  Jim Meyering  <meyering@lucent.com>
77782
77783         * m4/jm-macros.m4: Require autoconf-2.52.
77784
77785 2001-08-04  Jim Meyering  <meyering@lucent.com>
77786
77787         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77788         stmt, to get in sync with glibc.
77789
77790 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77791
77792         The following changes are from gettext 0.10.39 as maintained by
77793         Bruno Haible.
77794
77795         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77796         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77797         with inverted sense.  All uses changed.
77798
77799         * lib/mbswidth.c: Don't include <limits.h>.
77800         Include <stdlib.h> and <string.h> unconditionally.
77801         (iswcntrl, mbsinit, ISCNTRL): New macros.
77802         (mbsnwidth): Use K&R style function declarations.
77803         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77804         can optimize it when MB_CUR_MAX == 1.
77805         The width of control characters is zero, not 1.
77806
77807 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77808
77809         The following changes are from gettext 0.10.39 as maintained by
77810         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77811
77812         * m4/codeset.m4: Upgrade to serial AM1.
77813         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77814         all uses changed.  Quote first arg of AC_DEFUN.
77815         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77816
77817         * m4/iconv.m4: Upgrade to serial AM2.
77818         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77819         Add --with-libconv-prefix.
77820         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77821         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77822         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77823         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77824         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77825
77826         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77827         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77828         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77829         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77830         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77831         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77832         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77833         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77834         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77835
77836         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77837         string.h any more.
77838
77839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77840         not the default value.
77841
77842         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77843         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77844         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77845         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77846         Also check for iswcntrl, used for wcwidth fallback.
77847         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77848         to Autoconf 2.13.
77849
77850 2001-08-03  Jim Meyering  <meyering@lucent.com>
77851
77852         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77853         as it was in the original.  Reported by Paul Eggert.
77854
77855 2001-07-16  Jim Meyering  <meyering@lucent.com>
77856
77857         * m4/gettimeofday.m4: New file.
77858         Prompted by a report from Bernhard Baehr.
77859
77860 2001-07-15  Jim Meyering  <meyering@lucent.com>
77861
77862         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77863         stuff. Now it's in ../Makefile.cfg.
77864
77865 2001-07-15  Jim Meyering  <meyering@lucent.com>
77866
77867         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77868         (BUILT_SOURCES): Add unlocked-io.h.
77869         (io_functions): Define.
77870         (unlocked-io.h): New rule.
77871         (DISTCLEANFILES): Add unlocked-io.h.
77872         (all-local): Depend on unlocked-io.h, to ensure it is created.
77873
77874         * lib/unlocked-io.hin: New file
77875
77876         * lib/regex.c: Update from glibc.
77877
77878 2001-07-05  Jim Meyering  <meyering@lucent.com>
77879
77880         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77881         recommendation.
77882         (libfetish_a_SOURCES): Put all .h files here instead.
77883         Remove a thus-exposed (better checks in automake) duplicate and
77884         two unnecessary .h files.
77885
77886 2001-07-04  Jim Meyering  <meyering@lucent.com>
77887
77888         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77889         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77890         distcheck failure.
77891
77892 2001-07-02  Jim Meyering  <meyering@lucent.com>
77893
77894         The following changes were prompted by suggestions from Bruno Haible.
77895
77896         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77897         is now generated.
77898         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77899         definition of EXTRA_DIST.
77900         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77901         ensure that the generated file is created/updated whenever the list
77902         of $(unlocked_functions) is changed.
77903         (jm-glibc-io.m4): New rule.
77904         (unlocked-io.h): New rule -- currently unused.
77905
77906 2001-06-24  Jim Meyering  <meyering@lucent.com>
77907
77908         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77909         unmatched right bracket, rather than kludging it with an extra,
77910         falsely-matching quote in a comment.  Patch by Akim Demaille.
77911
77912 2001-06-11  Jim Meyering  <meyering@lucent.com>
77913
77914         * lib/regex.c: Update from GNU libc.
77915
77916 2001-05-27  Jim Meyering  <meyering@lucent.com>
77917
77918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77919         Check for ut_type in struct utmp.
77920
77921 2001-05-27  Jim Meyering  <meyering@lucent.com>
77922
77923         * lib/readutmp.h (UT_TYPE): Define.
77924
77925 2001-05-24  Jim Meyering  <meyering@lucent.com>
77926
77927         * lib/argmatch.c: Include "quote.h".
77928         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77929         quote function.  Reported by Göran Uddeborg.
77930
77931 2001-05-22  Jim Meyering  <meyering@lucent.com>
77932
77933         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77934         now that we use the package-supplied version unconditionally.
77935         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77936
77937 2001-05-21  Jim Meyering  <meyering@lucent.com>
77938
77939         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77940         shell syntax errors.
77941
77942 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77943
77944         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77945
77946 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77947
77948         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77949         Don't bother to check library strftime, since
77950         we'll be using our own my_strftime function anyway.
77951         Define my_strftime instead of strftime.
77952
77953 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77954
77955         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77956         which is not yet declared.
77957
77958 2001-05-15  Jim Meyering  <meyering@lucent.com>
77959
77960         * m4/regex.m4: Use proper quoting so brackets appear in the test
77961         program.
77962         Reported by, and with help from, Bruno Haible.
77963
77964 2001-05-13  Jim Meyering  <meyering@lucent.com>
77965
77966         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77967         undefined.
77968
77969 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77970
77971         dirname code cleanup.  base_name now behaves more compatibly
77972         with POSIX basename when given file names that have trailing
77973         slashes, and similarly for dir_name.  Add new primitives
77974         base_len and dir_len.  Put the directory-name-related decls
77975         into dirname.h.
77976
77977         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77978         * lib/backupfile.c (base_name): Likewise.
77979         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77980         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77981         * lib/makepath.c (strip_trailing_slashes): Likewise.
77982         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77983         ISSLASH): Likewise.
77984         * lib/rename.c (strip_trailing_slashes): Likewise.
77985         * lib/same.c (base_name): Likewise.
77986         * lib/stripslash.c (ISSLASH): Likewise.
77987
77988         * lib/addext.c: Include <dirname.h> after size_t is defined.
77989         * lib/backupfile.c: Likewise.
77990
77991         * lib/addext.c (addext): Use base_len to trim redundant
77992         trailing slashes instead of doing it ourselves.
77993         But do not trim the last slash if it is not redundant.
77994
77995         * lib/backupfile.c (find_backup_file_name,
77996         max_backup_version): Use base_len instead of rolling it ourselves.
77997         Handle the case of "" and (on DOS) "C:" correctly.
77998
77999         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78000         needed. Include <string.h>, <dirname.h>.
78001         (base_name): Allow file names ending in slashes, other than names
78002         that are all slashes.  In this case, return the basename followed
78003         by the slashes.  This is more general, and can be used in places
78004         where the original base_name purposely had an assertion failure.
78005         (base_len): New function.
78006
78007         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78008         Do not include <assert.h>; no longer needed.
78009         Include xalloc.h.
78010         (memrchr): Remove decl.
78011         (dir_name_r): Remove.
78012         (dir_len): Renamed from dirlen.  All callers changed.
78013         Rewrite in terms of base_name, for simplicity and consistency.
78014         (dir_name): Never return NULL.  All callers changed.
78015         Do not include <stdlib.h> in test program; no longer needed.
78016         return 0; is fine for test program.
78017
78018         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78019         New macros.
78020         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78021
78022         * lib/path-concat.c (path_concat): Use base_len to compute
78023         base length, not strlen; this means we cannot rely on memcpy
78024         to null-terminate.
78025
78026         * lib/same.c (STREQ): Remove.
78027         (same_name): Handle the case where the basename ends in trailing '/'.
78028
78029         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78030         a slash was stripped.  Do not strip the last slash after a
78031         file system prefix.
78032
78033 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/Makefile.am (libfetish_a_SOURCES):
78036         Add strftime.c, since we now compile it on all hosts.
78037
78038         * lib/strftime.c (my_strftime):
78039         Define to nstrftime if emacs, but only if my_strftime is not defined.
78040         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78041         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78042         Add one more extra argument: a nanoseconds value.
78043         All uses changed.
78044         (ns): New macro.
78045         (my_strftime function): Add %N format.
78046         (emacs_strftimeu): Renamed from emacs_strftime,
78047         with extra ut argument.
78048
78049 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78050
78051         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78052
78053 2001-04-21  Jim Meyering  <meyering@lucent.com>
78054
78055         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78056         doesn't interfere.
78057
78058 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78059
78060         * m4/ftruncate.m4: Check for chsize.
78061         Link with ftruncate.o unconditionally if ftruncate is missing.
78062         This was required when cross-compiling to i586-mingw32msvc.
78063
78064 2001-04-08  Jim Meyering  <meyering@lucent.com>
78065
78066         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78067         recomputed; that's necessary when the offset spans a DST transition.
78068         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78069
78070 2001-04-02  Jim Meyering  <meyering@lucent.com>
78071
78072         * lib/regex.h, regex.c: Update from GNU libc.
78073
78074 2001-03-24  Jim Meyering  <meyering@lucent.com>
78075
78076         * m4/jm-macros.m4: Require autoconf-2.49d.
78077
78078 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78079
78080         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78081
78082 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78083
78084         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78085
78086 2001-03-17  Jim Meyering  <meyering@lucent.com>
78087
78088         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78089         now that the version in autoconf is equivalent.
78090         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78091
78092         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78093         Suggestion from Akim Demaille.
78094
78095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78096         (jm_PREREQ_TEMPNAME): New function.
78097
78098 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78099
78100         * lib/tempname.c (uint64_t): Define to uintmax_t if
78101         not defined, and if UINT64_MAX is not defined.
78102         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78103         Reported by John David Anglin.
78104
78105 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78106
78107         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78108         resolve alias if codeset is empty.
78109         * lib/config.charset (BeOS): Use wildcard syntax.
78110
78111 2001-03-13  Jim Meyering  <meyering@lucent.com>
78112
78113         * lib/path-concat.c (path_concat)
78114         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78115         concatenating e.g., `C:' and `foo'.
78116         From Bruno Haible.
78117
78118 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78119
78120         * lib/localcharset.c (locale_charset): Don't use
78121         setlocale(LC_CTYPE,NULL). Don't return NULL.
78122         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78123
78124 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78125
78126         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78127         support for DOS/DJGPP.
78128
78129 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78130
78131         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78132         lacks mkstemp.  Compile our own tempname.c if we compile our own
78133         mkstemp.c, as mkstemp relies on tempname.
78134
78135 2001-03-01  Jim Meyering  <meyering@lucent.com>
78136
78137         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78138         AH_VERBATIM really does output its argument verbatim.
78139
78140 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78141
78142         * lib/Makefile.am (libfetish_a_SOURCES):
78143         Add dup-safer.c, fopen-safer.c.
78144         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78145
78146         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78147         * lib/unistd-safer.h: New files.
78148
78149 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78150
78151         The mkstemp replacement is taken from glibc 2.2.2, with some
78152         portability fixes for use outside glibc, as follows:
78153
78154         * lib/tempname.c (struct_stat64): New macro.
78155         (direxists, __gen_tempname): Use it.
78156         This avoids a portability problem with Solaris 8.
78157
78158         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78159         (<stddef.h>, <stdint.h>, <string.h>):
78160         Include only if STDC_HEADERS || _LIBC.
78161         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78162         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78163         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78164         (__set_errno): Define this macro if <errno.h> doesn't.
78165         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78166         Define these macros if <stdio.h> doesn't.
78167         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78168         Define these macros if <sys/stat.h>
78169         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78170         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78171         __xstat64): Define if not _LIBC.
78172         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78173         (__gen_tempname): Invoke gettimeofday only if
78174         HAVE_GETTIMEOFDAY || _LIBC;
78175         otherwise, fall back on plain "time".
78176         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78177
78178         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78179
78180         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78181
78182 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78183
78184         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78185
78186 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78187
78188         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78190         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78191         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78192
78193 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78194
78195         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78196         Remove workaround macros for hosts that have mbrtowc but not
78197         mbstate_t, as we now insist on proper declarations for both
78198         before using mbrtowc.
78199
78200 2001-02-17  Jim Meyering  <meyering@lucent.com>
78201
78202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78203         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78204         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78205         UnixWare 7.1.1.
78206
78207         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78208         rather than AC_CACHE_VAL.
78209
78210 2001-02-17  Jim Meyering  <meyering@lucent.com>
78211
78212         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78213         around included file name.
78214
78215         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78216
78217         * lib/strftime.c: Update from GNU libc (the only changes were to
78218         comments).
78219
78220 2001-02-17  Jim Meyering  <meyering@lucent.com>
78221
78222         * lib/regex.c: Update from libc.
78223
78224 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78225
78226         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78227         clash.
78228
78229 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78232         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78233         Reported by Mark Hounschell via Paul Eggert.
78234
78235 2001-02-07  Jim Meyering  <meyering@lucent.com>
78236
78237         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78238
78239 2001-02-05  Jim Meyering  <meyering@lucent.com>
78240
78241         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78242         it includes the patch required for `large file' support with at least
78243         HP-UX's 10.20 /bin/cc.
78244
78245 2001-02-03  Jim Meyering  <meyering@lucent.com>
78246
78247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78248         AS_IF, now that it works once again (mysteriously).
78249         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78250
78251 2001-01-30  Jim Meyering  <meyering@lucent.com>
78252
78253         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78254         * m4/chown.m4: Rename conftestchown to conftest.chown.
78255         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78256         s/conftestdir2/conftest.d2/.
78257         * m4/utimes.m4: s/conftestdata/conftest.data/
78258         Inspired by Pavel Roskin's change in autoconf.
78259
78260 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78261
78262         * lib/config.charset: Update for FreeBSD 4.2.
78263
78264 2001-01-27  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78267         a use of AS_IF.
78268         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78269
78270 2001-01-26  Jim Meyering  <meyering@lucent.com>
78271
78272         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78273         quotearg.c includes it.
78274
78275 2001-01-26  Jim Meyering  <meyering@lucent.com>
78276
78277         * lib/quotearg.c: Include stddef.h.
78278         * lib/quote.c: Include stddef.h.
78279         Reported by Axel Kittenberger.
78280
78281         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78282         line in double quotes so that it evokes a better diagnostic.
78283         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78284         Reported by Axel Kittenberger.
78285
78286 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78287
78288         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78289         as if it was a `charset'.
78290
78291 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78292
78293         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78294         has const.
78295
78296 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78297
78298         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78299         to avoid a warning.  Add back 'const' to inptr.
78300
78301 2001-01-20  Jim Meyering  <meyering@lucent.com>
78302
78303         Be sure that headers are checked before used in code compiled
78304         for the type checks.
78305         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78306         In place of that, invoke jm_CHECK_ALL_TYPES.
78307         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78308         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78309         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78310         The check for ssize_t was mistakenly run before the test for unistd.h.
78311
78312         The configure-time check for stdbool.h was missing.
78313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78314         (jm_PREREQ_HASH): New function.
78315
78316 2001-01-17  Jim Meyering  <meyering@lucent.com>
78317
78318         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78319         for autoconf-2.49c.
78320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78321
78322 2001-01-16  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78325         From Bruno Haible.
78326
78327 2001-01-14  Jim Meyering  <meyering@lucent.com>
78328
78329         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78330         foo and bar.  Create conftestdir/ in the script, not in the C code.
78331         Remove directories in the script, not in the C code.
78332         Remove conftestdir{,2} before trying to create the directory.
78333         Make the entire configure script fail if the mkdir fails.
78334
78335 2001-01-14  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/rename.c: New file.  From Volker Borchert.
78338         Include stdlib.h, string.h or strings.h, and xalloc.h.
78339         Use strip_trailing_slashes rather than open-coding it.
78340
78341 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78342
78343         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78344
78345 2001-01-03  Jim Meyering  <meyering@lucent.com>
78346
78347         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78348         of local `inptr' to avoid warning with some system declarations of
78349         iconv.
78350
78351 2001-01-02  Volker Borchert  <bt@teknon.de>
78352
78353         * m4/rename.m4: New file.
78354         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78355
78356 2001-01-01  Jim Meyering  <meyering@lucent.com>
78357
78358         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78359         even on systems with utmpx.h.  It's necessary for the declaration of
78360         utmp's ut_user member.  Reported by Andreas Jaeger.
78361
78362         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78363         available. They are required for the declarations of getgrgid and
78364         getpwuid resp.
78365         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78366         Reported by Andreas Jaeger.
78367
78368 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78369
78370         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78371         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78372         so `make install' also works in VPATH builds.
78373
78374 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78375
78376         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78377         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78378         can be used in subdirectories.
78379
78380 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78381
78382         * lib/modechange.c: Do not assume that mode_t uses the
78383         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78384         the other-execute bit of FOO even if S_IXOTH != 1.
78385
78386         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78387         WOTH, XOTH, ALLM): New macros.
78388         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78389          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78390         Use them.
78391         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78392         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78393         (mode_compile):
78394         No need to use uintmax_t; unsigned long is long enough.
78395         Don't bother to get suffix since we don't use it.
78396
78397 2000-12-26  Jim Meyering  <meyering@lucent.com>
78398
78399         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78400         better with autoheader.
78401
78402 2000-12-24  Jim Meyering  <meyering@lucent.com>
78403
78404         * lib/hash.c (is_prime): Return explicit boolean values.
78405         (hash_get_first): Return NULL to appease Irix5.6's 89.
78406         Reported by Nelson Beebe.
78407
78408 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78409
78410         * lib/localcharset.c (locale_charset): Add support for Win32.
78411
78412 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78413
78414         * lib/physmem.h, lib/physmem.c: New files.
78415
78416         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78417         (noinst_HEADERS): Add physmem.h.
78418
78419         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78420         't' for compatibility with Solaris 8 sort.
78421
78422 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78423
78424         * lib/config.charset: Add support for BeOS.
78425
78426 2000-12-17  Jim Meyering  <meyering@lucent.com>
78427
78428         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78429         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78430
78431 2000-12-16  Jim Meyering  <meyering@lucent.com>
78432
78433         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78434         N and M) would have treated it like `chown N:N FILE'.
78435
78436         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78437
78438 2000-12-16  Jim Meyering  <meyering@lucent.com>
78439
78440         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78441         SHELLS_FILE to a file name that's useful on djgpp systems.
78442         Include stdlib.h.
78443         (ADDITIONAL_DEFAULT_SHELLS): Define.
78444         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78445         Based mostly on a patch from Prashant TR.
78446
78447 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78448
78449         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78450         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78451         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78452
78453 2000-12-08  Andreas Schwab  <schwab@suse.de>
78454
78455         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78456         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78457
78458 2000-12-07  Jim Meyering  <meyering@lucent.com>
78459
78460         * lib/stripslash.c (ISSLASH): Define.
78461         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78462         `/'.
78463         From Prashant TR.
78464
78465         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78466         (dir_name_r): Declare this function as static.
78467         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78468         manifest itself on a name containing a mix of slashes and
78469         backslashes.
78470         Make this function work with names starting with a DOS-style
78471         drive letter and colon prefix.
78472         (dir_name): Append `.' if necessary.
78473         Based mostly on patches from Prashant TR and Eli Zaretskii.
78474
78475         * lib/dirname.h (dir_name_r): Remove prototype.
78476
78477 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78478
78479         * m4/off_t-format.m4: Remove this file.
78480         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78481
78482 2000-12-06  Jim Meyering  <meyering@lucent.com>
78483
78484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78485         replacement strtoull, we may well need the replacement strtoul, too.
78486         Check for declarations of strtoul and strtoull.
78487         Check for strtol.  Mainly as a cue to cause automake to include
78488         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78489         Check for limits.h -- strtol.c needs it.
78490
78491 2000-12-05  Jim Meyering  <meyering@lucent.com>
78492
78493         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78494
78495 2000-12-04  Jim Meyering  <meyering@lucent.com>
78496
78497         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78498         Also include memory.h, stdlib.h, unistd.h if appropriate.
78499         Reported by Andreas Jaeger (conflicting declaration of malloc).
78500
78501 2000-12-02  Jim Meyering  <meyering@lucent.com>
78502
78503         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78504         * m4/jm-macros.m4 (jm_MACROS): require it.
78505
78506 2000-12-02  Jim Meyering  <meyering@lucent.com>
78507
78508         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78509
78510 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78511
78512         * lib/memrchr.c: Include <config.h> before any system include file.
78513
78514 2000-11-30  Jim Meyering  <meyering@lucent.com>
78515
78516         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78517
78518 2000-11-30  Jim Meyering  <meyering@lucent.com>
78519
78520         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78521
78522 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78523
78524         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78525
78526 2000-11-26  Jim Meyering  <meyering@lucent.com>
78527
78528         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78529
78530 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78531
78532         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78533         size of (size_t) -1; it's not portable.
78534
78535 2000-11-17  Jim Meyering  <meyering@lucent.com>
78536
78537         * lib/strstr.c: Update from GNU libc.
78538
78539 2000-11-17  Akim Demaille  <akim@epita.fr>
78540
78541         * lib/obstack.h: Formatting changes.
78542         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78543         prevent type checking.
78544         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78545         cast the value to (void *): assigning a `foo *' to a `void *'
78546         variable is valid.
78547         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78548
78549 2000-11-16  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78552
78553 2000-11-11  Jim Meyering  <meyering@lucent.com>
78554
78555         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78556
78557 2000-11-10  Jim Meyering  <meyering@lucent.com>
78558
78559         * lib/obstack.h: Update from GNU libc.
78560         * lib/obstack.c: Likewise.
78561
78562 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78563
78564         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78565
78566 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78567
78568         * lib/getusershell.c (setusershell): Use rewind rather than
78569         fseek/fseeko, to avoid configuration hassles with fseeko.
78570         Don't bother opening SHELLS_FILE if shellstream is NULL;
78571         it's not necessary.
78572
78573 2000-11-05  Jim Meyering  <meyering@lucent.com>
78574
78575         * lib/makepath.h (make_dir): Declare.
78576         * lib/makepath.c (make_dir): Remove `static' attribute.
78577         Tweak a comment.
78578
78579 2000-11-04  Jim Meyering  <meyering@lucent.com>
78580
78581         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78582
78583 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78584
78585         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78586         last one in a bucket, advance to the next bucket.
78587
78588 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78589
78590         * lib/fnmatch.c: Do not comment out all the code if we are using
78591         the GNU C library, because in some cases we are replacing buggy
78592         code in the GNU C library itself.
78593
78594 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78595
78596         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78597         (regex_compile): Catch bogus \(\1\).
78598
78599 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78600
78601         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78602         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78603         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78604
78605 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78606
78607         * lib/error.h, getline.h, modechange.h:
78608         Remove "2000" from Copyright line, as the file hasn't been
78609         changed this year other than in the copyright notice.
78610
78611         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78612         was changed this year.
78613
78614 2000-10-29  Jim Meyering  <meyering@lucent.com>
78615
78616         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78617         renaming.
78618         * m4/ls-mntd-fs.m4: Likewise
78619
78620 2000-10-29  Jim Meyering  <meyering@lucent.com>
78621
78622         * lib/xstat.in: Fix grammar in comment.
78623
78624 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78625
78626         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78627         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78628         doesn't define __restrict_arr.
78629
78630 2000-10-28  Jim Meyering  <meyering@lucent.com>
78631
78632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78633         (jm_PREREQ_MEMCHR): New function.
78634
78635 2000-10-28  Jim Meyering  <meyering@lucent.com>
78636
78637         * lib/memchr.c: Update from libc.
78638         Adjust for portability:
78639         [HAVE_STDLIB_H]: Include stdlib.h.
78640         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78641         Undef __memchr, too.
78642         [!weak_alias]: Define __memchr to memchr.
78643
78644         * lib/regex.c: Update from libc.
78645         * lib/regex.h: Likewise.
78646         * lib/getopt1.c: Likewise.
78647         * lib/memcmp.c: Likewise.
78648
78649         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78650         Avoid using fseek, when possible -- it's broken by design.
78651         Patch by Ulrich Drepper.
78652
78653 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78654
78655         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78656         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78657         Giving in to popular pressure to shut up the compiler with casts.
78658
78659 2000-10-26  Jim Meyering  <meyering@lucent.com>
78660
78661         * lib/strftime.c: Update from libc.
78662
78663 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78664
78665         * regex.c: More `unsigned char' -> `re_char' changes.
78666         Also change several `int' into `re_wchar_t'.
78667         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78668         (PUSH_FAILURE_POINTER): Don't cast any more.
78669         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78670         We want GCC to complain, since this piece of code makes
78671         re_match non-reentrant, which *should* be fixed.
78672         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78673         (EXTEND_BUFFER): Use RETALLOC.
78674         (SET_LIST_BIT): Don't cast.
78675         (re_wchar_t): New type.
78676         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78677         that those two functions will always properly return.
78678         (IMMEDIATE_QUIT_CHECK): Cast to void.
78679         (analyse_first): Use recursion rather than an explicit stack.
78680         (re_compile_fastmap): Can't fail anymore.
78681         (re_search_2): Don't check re_compile_fastmap for failure.
78682         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78683         Now also sets the new value (passed in a new argument).
78684         (re_match_2_internal): Use it.
78685         Also, use a new var `reg' of type size_t when looping through regs
78686         rather than reuse the inappropriate `mcnt'.
78687
78688 2000-10-25  Jim Meyering  <meyering@lucent.com>
78689
78690         * lib/obstack.c: Update from libc.
78691
78692 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78693
78694         * regex.c (regex_compile): Change the way of handling a range from
78695         a char less than 256 to a char not less than 256.
78696
78697 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78698
78699         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78700         NT-Emacs only.
78701         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78702         so that re_search functions only quit when callers expect them to.
78703
78704 2000-10-23  Jim Meyering  <meyering@lucent.com>
78705
78706         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78707         wrong.  That set_locale call must not have any side effects.
78708         From Paul Eggert.
78709
78710 2000-10-22  Jim Meyering  <meyering@lucent.com>
78711
78712         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78713         [CYCLIC]: Remove now-unused definition.
78714
78715         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78716         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78717         Suggestion from Ulrich Drepper.
78718
78719 2000-10-21  Jim Meyering  <meyering@lucent.com>
78720
78721         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78722         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78724
78725 2000-10-21  Jim Meyering  <meyering@lucent.com>
78726
78727         * lib/dirname.c (memrchr): Declare if necessary.
78728         (dir_name): Remove the restriction that there be no
78729         trailing slashes.  Now, this code skips past them, effectively
78730         ignoring them.
78731         [TEST_DIRNAME] (main): New unit tests.
78732
78733         * lib/memrchr.c: New file from GNU libc.
78734         Undef __memrchr, too.
78735         [!weak_alias]: Define __memrchr to memrchr.
78736         Guard weak_alias use with `#ifdef weak_alias'.
78737
78738 2000-10-21  Jim Meyering  <meyering@lucent.com>
78739
78740         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78741         (dir_name): Use dir_name_r.
78742         * lib/dirname.h (dir_name_r): Declare it.
78743
78744 2000-10-17  Jim Meyering  <meyering@lucent.com>
78745
78746         * lib/quote.h (PARAMS): Define and use.
78747         Reported by Akim Demaille.
78748
78749         * lib/getopt.c: Update from libc.
78750
78751 2000-10-16  Jim Meyering  <meyering@lucent.com>
78752
78753         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78754         setlocale.
78755         From Jan Fedak.
78756
78757 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78758
78759         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78760
78761 2000-09-25  Jim Meyering  <meyering@lucent.com>
78762
78763         * lib/md5.h (rol): Define (from GnuPG).
78764
78765         * lib/sha.c: Give credit (GnuPG) where due.
78766         (M): Use rol rather than open-coding it.
78767         Add a FIXME comment.
78768
78769 2000-09-21  Jim Meyering  <meyering@lucent.com>
78770
78771         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78772         Reported by Michael Stone.
78773
78774 2000-09-20  Jim Meyering  <meyering@lucent.com>
78775
78776         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78777         (noinst_HEADERS): Add sha.h.
78778         Based on code from Scott G. Miller and from GnuPG.
78779
78780 2000-09-18  Jim Meyering  <meyering@lucent.com>
78781
78782         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78783         LIBS. Otherwise, everyone ends up linking with -lelf for some
78784         configurations.
78785         Reported by Mike Stone.
78786
78787 2000-09-15  Jim Meyering  <meyering@lucent.com>
78788
78789         * lib/regex.c: Update from libc.
78790
78791 2000-09-10  Jim Meyering  <meyering@lucent.com>
78792
78793         * lib/getopt.c (_getopt_internal): Update from glibc.
78794
78795 2000-09-09  Jim Meyering  <meyering@lucent.com>
78796
78797         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78798         think it should be used as a general replacement for isascii.
78799         * lib/fnmatch.c: Likewise.
78800         * lib/mbswidth.c: Likewise
78801         * lib/regex.c: Likewise.
78802
78803         Don't use atoi.
78804         * lib/userspec.c: Include sys/param.h and limits.h.
78805         Include xstrtol.h.
78806         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78807         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78808         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78809         UID, GID.  Check range.
78810
78811 2000-09-06  Jim Meyering  <meyering@lucent.com>
78812
78813         * lib/getopt.c (_getopt_internal): Update from glibc.
78814
78815 2000-08-30  Jim Meyering  <meyering@lucent.com>
78816
78817         * lib/strftime.c: Merge in changes from GNU libc.
78818
78819 2000-08-26  Jim Meyering  <meyering@lucent.com>
78820
78821         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78822         * m4/fpending.m4: New file.
78823
78824 2000-08-26  Jim Meyering  <meyering@lucent.com>
78825
78826         * lib/closeout.c: Include "__fpending.h".
78827         (close_stdout_status): Return right away if there's nothing to flush.
78828
78829         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78830         * lib/__fpending.c: New file.
78831         * lib/__fpending.h: New file.
78832
78833 2000-08-20  Jim Meyering  <meyering@lucent.com>
78834
78835         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78836         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78837         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78838
78839 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78840
78841         Improve fileutils installation on systems where running
78842         programs (like install) can't be unlinked.
78843         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78844         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78845
78846 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78847
78848         Standardize on "memory exhausted" instead of "Memory exhausted"
78849         or "virtual memory exhausted".
78850         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78851         "virtual memory exhausted".
78852         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78853         our own message.
78854         * lib/userspec.c (parse_user_spec): Likewise.
78855         * lib/bumpalloc.h: comment fix
78856         * lib/same.c, userspec.c: Include xalloc.h.
78857
78858         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78859         not char *const and pointing to a constant array.
78860         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78861         (xrealloc): Comment fix.
78862
78863         * lib/userspec.c (parse_user_spec):
78864         Don't translate a message until just before returning,
78865         to avoid unnecessary translation.
78866
78867 2000-08-07  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78870         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78871         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78872         getgroups.c, gethostname.c, getopt.h, group-member.c,
78873         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78874         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78875         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78876         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78877         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78878         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78879         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78880         yesno.c: Back out Copyright date changes for each file with no change
78881         this year.  This eases coordination with other programs using the same
78882         source code modules.  From Paul Eggert.
78883
78884 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78885
78886         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78887         not char, for compatibility with glibc 2.1.3 strftime.c.
78888
78889 2000-08-03  Greg McGary  <greg@mcgary.org>
78890
78891         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78892         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78893         (EXTEND_BUFFER): Use them.
78894
78895 2000-08-01  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/dirname.c (ISSLASH): Define.
78898         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78899         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78900         both `\' and `/' may be use as path separators.
78901         Based on a patch from Prashant TR.
78902
78903 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78904
78905         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78906         slot vector a constant, since it might get modified.
78907
78908 2000-07-31  Jim Meyering  <meyering@lucent.com>
78909
78910         * lib/xmalloc.c: Use `virtual memory exhausted', not
78911         `Memory exhausted'.
78912         * lib/obstack.c (print_and_abort): Likewise.
78913
78914 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78915
78916         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78917         buffer, so that the caller can always quote one small
78918         component of a "memory exhausted" message in slot 0.
78919         From a suggestion by Jim Meyering.
78920
78921 2000-07-30  Jim Meyering  <meyering@lucent.com>
78922
78923         * lib/makepath.c (make_path): Quote the other instance, too.
78924
78925         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78926         (STATIC_BUF_SIZE): Define.
78927         (quotearg_n_options): Use only statically allocated storage when
78928         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78929         than STATIC_BUF_SIZE.
78930
78931 2000-07-29  Jim Meyering  <meyering@lucent.com>
78932
78933         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78934         * lib/dirname.c (dir_name): Likewise.
78935
78936         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78937         `/'.
78938
78939         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78940         (dir_name): Assert that there are no trailing slashes.
78941
78942 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78943
78944         * lib/mbswidth.h (mbswidth): Add a flags argument.
78945         (mbswidth): New declaration.
78946         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78947         * lib/mbswidth.c (mbswidth): Add a flags argument.
78948         (mbsnwidth): New function.
78949
78950 2000-07-24  Jim Meyering  <meyering@lucent.com>
78951
78952         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78953
78954 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78955
78956         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78957
78958 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78959
78960         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78961         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78962         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78963         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78964         invoke multibyte primitives.
78965
78966 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78967
78968         * lib/quotearg.c:
78969         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78970         so that mbstate_t is always defined.
78971
78972         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78973         be 1 in at least one GCC installation, and this configuration
78974         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78975         performance on hosts that have mbrtowc but have only unibyte
78976         locales, but I assume these hosts are rare.
78977
78978 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78979
78980         * lib/mbswidth.c (_XOPEN_SOURCE):
78981         Don't define; this causes problems on Solaris 7.
78982         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78983
78984 2000-07-23  Jim Meyering  <meyering@lucent.com>
78985
78986         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78987         too: getgrgid, getpwuid, getuid.
78988
78989 2000-07-23  Jim Meyering  <meyering@lucent.com>
78990
78991         * lib/basename.c (base_name): Add an assertion.
78992
78993 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78994
78995         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78996         shadow its mbsinit function.
78997
78998 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78999
79000         * lib/mbswidth.h: New file.
79001         * lib/mbswidth.c: New file.
79002         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79003         (noinst_HEADERS): Add mbswidth.h.
79004
79005 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79006
79007         * lib/config.charset: Add support for FreeBSD. Improve support for
79008         HP-UX and IRIX 6.
79009
79010 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79011
79012         * m4/mbswidth.m4: New file.
79013         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79014
79015 2000-07-15  Jim Meyering  <meyering@lucent.com>
79016
79017         * lib/makepath.c: Include quote.h.
79018         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79019         corresponding argument in a `quote (...)' call.
79020         Give better diagnostics.
79021
79022         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79023         (noinst_HEADERS): Add quote.h.
79024
79025         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79026         from tar's src/misc.c.
79027         * lib/quote.h: New file.  Prototypes for same.
79028
79029 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79030
79031         From a suggestion by Bruno Haible.
79032         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79033         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79034         to decide whether to define the BeOS workaround macro;
79035         this adjusts to the change to AC_MBSTATE_T.
79036
79037 2000-07-14  Jim Meyering  <meyering@lucent.com>
79038
79039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79040         jm_AC_TYPE_UINTMAX_T.
79041
79042 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79043
79044         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79045
79046         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79047         quotearg_buffer_restyled): Add support for
79048         clocale_quoting_style.  Undo previous change to
79049         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79050         and "{RIGHT QUOTATION MARK}" msgids.
79051
79052 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79053
79054         From a suggestion by Bruno Haible.
79055         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79056         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79057         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79058         and mbstate_t, to a single-part test that simply defines mbstate_t.
79059         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79060         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79061
79062 2000-07-10  Jim Meyering  <meyering@lucent.com>
79063
79064         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79065
79066         * m4/gnu-source.m4: Output to confdefs.h directly.
79067         Suggestion from Akim Demaille.
79068
79069 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79070
79071         The old behavior of quoting `like this' doesn't look good with
79072         newer, ISO-style fonts.  See:
79073         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79074
79075         Instead, quote "like this" by default.  Let the translator
79076         tailor the locale-specific quoting behavior by providing
79077         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79078
79079         * lib/quotearg.c (N_): New macro.
79080         (gettext_default): New function.
79081         (quotearg_buffer_restyled): Use
79082         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79083         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79084
79085 2000-07-09  Jim Meyering  <meyering@lucent.com>
79086
79087         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79088         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79089
79090         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79092
79093 2000-07-09  Jim Meyering  <meyering@lucent.com>
79094
79095         * lib/Most files: Update copyright dates to include 2000.
79096
79097 2000-07-08  Jim Meyering  <meyering@lucent.com>
79098
79099         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79100         if not defined.
79101         (xgethostname): Remove now-unnecessary #ifdef.
79102         Move declaration of `err' into loop where it's used.
79103
79104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79105         and Bruno Haible  <haible@clisp.cons.org>
79106
79107         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79108         only if the test for an object-type mbstate_t fails.  This
79109         prevents us from mistakenly reporting that mbstate_t is a
79110         system object type after we "#define mbstate_t int" to work
79111         around its lack.
79112
79113 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79114         and Bruno Haible  <haible@clisp.cons.org>
79115
79116         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79117
79118 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79119
79120         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79121         to strerror_r.
79122         Include <ctype.h> for use of isalpha.
79123
79124 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79125
79126         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79127         by allocating a larger buffer. Test the gethostname return value for
79128         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79129         returns an error and ENAMETOOLONG isn't defined.
79130
79131 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79132
79133         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79134         dimension.
79135
79136 2000-07-04  Jim Meyering  <meyering@lucent.com>
79137
79138         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79139         of the deprecated AC_CHECKING.
79140
79141 2000-07-04  Jim Meyering  <meyering@lucent.com>
79142
79143         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79144         Reported by Bruno Haible.
79145
79146 2000-07-04  Jim Meyering  <meyering@lucent.com>
79147
79148         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79149         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79150         lacks mbrtowc.
79151
79152 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79153
79154         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79155         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79156
79157 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79158         and Bruno Haible  <haible@clisp.cons.org>
79159
79160         * lib/quotearg.c (mbrtowc):
79161         Assign to *pwc, and return 1 only if result is nonzero.
79162         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79163
79164 2000-07-03  Jim Meyering  <meyering@lucent.com>
79165
79166         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79167
79168 2000-07-03  Jim Meyering  <meyering@lucent.com>
79169
79170         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79171         This is necessary to get a definition of e.g., UTMP_FILE on
79172         HP-UX 10.20.
79173         From Bob Proulx.
79174
79175 2000-07-02  Jim Meyering  <meyering@lucent.com>
79176
79177         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79178
79179         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79180         AC_LIBOBJ(function_name).
79181         * m4/chown.m4: Likewise.
79182         * m4/fnmatch.m4: Likewise.
79183         * m4/ftruncate.m4: Likewise.
79184         * m4/getgroups.m4: Likewise.
79185         * m4/getline.m4: Likewise.
79186         * m4/group-member.m4: Likewise.
79187         * m4/jm-macros.m4: Likewise.
79188         * m4/lstat.m4: Likewise.
79189         * m4/malloc.m4: Likewise.
79190         * m4/memcmp.m4: Likewise.
79191         * m4/nanosleep.m4: Likewise.
79192         * m4/putenv.m4: Likewise.
79193         * m4/realloc.m4: Likewise.
79194         * m4/regex.m4: Likewise.
79195         * m4/stat.m4: Likewise.
79196         * m4/strftime.m4: Likewise.
79197
79198 2000-07-02  Jim Meyering  <meyering@lucent.com>
79199
79200         * lib/quotearg.c (mbstate_t): Don't define here.
79201
79202 2000-07-02  Jim Meyering  <meyering@lucent.com>
79203
79204         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79205
79206 2000-07-01  Jim Meyering  <meyering@lucent.com>
79207
79208         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79209
79210 2000-07-01  Jim Meyering  <meyering@lucent.com>
79211
79212         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79213         problem.
79214
79215 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79216
79217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79218         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79219
79220 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79221
79222         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79223         per change in ../m4/ls-mntd-fs.m4.
79224         (read_filesystem_list): Ignore symbolic links.
79225
79226 2000-06-29  Jim Meyering  <meyering@lucent.com>
79227
79228         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79229         for declaration of strcmp.
79230
79231         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79232
79233         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79234         Avoid warning by casting result to `char *' to remove `const'.
79235
79236 2000-06-28  Jim Meyering  <meyering@lucent.com>
79237
79238         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79239         included by quotearg.c, for which we perform this test.  From
79240         Bruno Haible.
79241
79242 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79243
79244         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79245         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79246         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79247
79248 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79249
79250         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79251
79252 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79253
79254         savedir now sets errno on failure and invokes xmalloc to get memory.
79255         Fix a couple of other minor bugs while we're at it.
79256
79257         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79258         (NAMLEN): Remove macro.
79259         (malloc, realloc): Remove decls.
79260         (stpcpy): Likewise.
79261         ("xalloc.h"): Include.
79262         (NAME_SIZE_DEFAULT): New macro.
79263         (savedir): Use xmalloc / xrealloc to allocate memory.
79264         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79265         Skip "" directory entries.
79266         Use strlen to calculate directory entry length, since the old method
79267         is rarely used these days and isn't worth supporting.
79268         Don't use a pointer after freeing it.
79269         Check for integer overflow when calculating allocation size.
79270         Use memcpy to copy entries, instead of stpcpy.
79271         Set errno properly when returning NULL.
79272         Check for readdir error.
79273
79274 2000-06-26  Jim Meyering  <meyering@lucent.com>
79275
79276         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79277
79278 2000-06-25  Jim Meyering  <meyering@lucent.com>
79279
79280         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79281         Linux header bug when _XOPEN_SOURCE is defined to 500.
79282
79283 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79284
79285         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79286         deficiency.
79287
79288 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79289
79290         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79291         Include xalloc.h.
79292         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79293
79294 2000-06-24  Jim Meyering  <meyering@lucent.com>
79295
79296         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79297         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79298         for which strerror does return char*, but which lacks a conveniently
79299         accessible declaration of the function.  If the compile-test says
79300         strerror_r doesn't work, then resort to a `run'-test that works on
79301         BeOS and segfaults on DEC Unix.
79302
79303 2000-06-24  Jim Meyering  <meyering@lucent.com>
79304
79305         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79306
79307 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79308
79309         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79310         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79311
79312 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79313
79314         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79315         (mbrtowc, mbstate_t): Define substitutes if
79316         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79317         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79318         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79319
79320 2000-06-23  Jim Meyering  <meyering@lucent.com>
79321
79322         * m4/afs.m4: Add missing AC_MSG_RESULT.
79323         Reported by Bruno Haible.
79324
79325         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79326         Suggestion from Bruno Haible.
79327
79328 2000-06-23  Jim Meyering  <meyering@lucent.com>
79329
79330         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79331
79332 2000-06-21  Jim Meyering  <meyering@lucent.com>
79333
79334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79335
79336 2000-06-21  Jim Meyering  <meyering@lucent.com>
79337
79338         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79339         (noinst_HEADERS): Add getstr.h.
79340
79341         * lib/getline.c (getstr): Move into a separate file.
79342         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79343         the following changes: new parameter, delim2; both delim[12]
79344         parameters have type `int', not `char'.  The latter would lose
79345         with 8-bit delimiters.
79346         * lib/getstr.h: New file.
79347
79348 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79349
79350         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79351         than 1024, return a memory chunk of least possible size, instead
79352         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79353         Use free/xmalloc instead of xrealloc to avoid copying for very long
79354         paths.
79355
79356 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79357
79358         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79359         the empty string.
79360
79361 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79362
79363         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79364         address, not strdup.  Include <stdlib.h> and don't declare free().
79365
79366 2000-06-19  Jim Meyering  <meyering@lucent.com>
79367
79368         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79369
79370 2000-06-18  Jim Meyering  <meyering@lucent.com>
79371
79372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79373
79374         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79375         `checking whether...' message to be consistent with that of the
79376         lstat test.
79377
79378 2000-06-18  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79381         Besides, these days every porting target provides a mkdir function.
79382
79383         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79384         needed. (this snippet comes from src/system.h).
79385
79386 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79387
79388         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79389
79390 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79391
79392         * lib/human.c (adjust_value): New function.
79393         (human_readable_inexact): Apply rounding style even when
79394         printing approximate values.
79395
79396 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79397
79398         * lib/human.c (human_readable_inexact): Allow an input block
79399         size that is not a multiple of the output block size, and vice versa.
79400         Reported by Piergiorgio Sartor.
79401
79402 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79403
79404         * lib/getdate.y (get_date): Apply relative times after time
79405         zone indicator, not before.  Reported by Todd A. Jacobs.
79406
79407 2000-06-13  Jim Meyering  <meyering@lucent.com>
79408
79409         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79410
79411         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79412
79413 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79414
79415         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79416
79417 2000-06-12  Jim Meyering  <meyering@lucent.com>
79418
79419         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79420         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79421         optional argument.
79422         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79423         the optional argument, `lib'.
79424
79425 2000-06-08  Jim Meyering  <meyering@lucent.com>
79426
79427         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79428
79429 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79430
79431         Rewrite largefile configuration so that we don't need to run
79432         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79433         AC_CANONICAL_HOST in configure.in -- jmm]
79434
79435         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79436         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79437         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79438         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79439         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79440         All uses changed.
79441         Instead of inspecting the output of getconf, try to compile the
79442         test program without and with the macro definition.
79443         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79444         for getconf.  Instead, check for the needed flags by compiling
79445         test programs.
79446
79447 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79448
79449         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79450
79451 2000-06-04  Jim Meyering  <meyering@lucent.com>
79452
79453         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79454         SunOS 4.1.4 for which gid_t is an unsigned type.
79455
79456 2000-06-03  Jim Meyering  <meyering@lucent.com>
79457
79458         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79459         now that autoconf requires that.
79460
79461         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79462         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79463         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79464
79465 2000-06-03  Jim Meyering  <meyering@lucent.com>
79466
79467         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79468
79469 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79470
79471         * m4/glibc21.m4: New file.
79472         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79473
79474 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79475
79476         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79477         newer, don't install charset.alias.
79478         * lib/config.charset: Change the Linux/glibc rules so they become empty
79479         on glibc-2.1 or newer.
79480
79481 2000-06-02  Jim Meyering  <meyering@lucent.com>
79482
79483         * lib/mountlist.c: Back out last change.  Instead, do this...
79484         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79485         me_dummy member using the same `ignore'-testing code.
79486         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79487         fs_type strings.
79488         From Mark D. Roth.
79489
79490 2000-05-29  Jim Meyering  <meyering@lucent.com>
79491
79492         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79493         mounts with the `ignore' attribute.  Based on a patch from
79494         Mark D. Roth.
79495
79496 2000-05-28  Jim Meyering  <meyering@lucent.com>
79497
79498         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79499         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79500         * m4/stat.m4: Likewise.
79501         * m4/lstat.m4: Likewise.
79502         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79503
79504         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79505         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79506
79507 2000-05-26  Jim Meyering  <meyering@lucent.com>
79508
79509         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79510
79511 2000-05-24  Jim Meyering  <meyering@lucent.com>
79512
79513         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79514         autoconf requires that.
79515         * m4/lib-check.m4: Likewise.
79516         * m4/jm-macros.m4: Likewise.
79517         * m4/strftime.m4: Likewise.
79518
79519         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79520         AC_CHECK_DECLS, now that autoconf requires that.
79521
79522 2000-05-22  Jim Meyering  <meyering@lucent.com>
79523
79524         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79525         * m4/lstat.m4: Likewise.
79526
79527 2000-05-22  Jim Meyering  <meyering@lucent.com>
79528
79529         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79530
79531 2000-05-20  Jim Meyering  <meyering@lucent.com>
79532
79533         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79534         (jm_PREREQ): Use it.
79535
79536 2000-05-18  Jim Meyering  <meyering@lucent.com>
79537
79538         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79539         back, too, since it may have been modified by allocate_entry.
79540         (hash_delete): Rewrite to use neither the assignment operator
79541         nor the comma operator in an if-expression.
79542
79543 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79544
79545         * lib/closeout.c:
79546         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79547         Remove; no longer needed.
79548         "quotearg.h": Add include.
79549         (file_name): Do not bother to explicitly initialize to NULL; it's less
79550         efficient on some hosts.
79551         (close_stdout_status): Remove test as to whether stdout was already
79552         closed; it breaks for the case "echo x | sort >&-".
79553         Quote file name colons.
79554         Do not assume that _("write error") lacks format strings.
79555
79556 2000-05-15  Jim Meyering  <meyering@lucent.com>
79557
79558         * lib/version-etc.c (version_etc_copyright): Update the copyright
79559         string used in all --version output.
79560
79561 2000-05-14  Jim Meyering  <meyering@lucent.com>
79562
79563         * lib/closeout.c (close_stdout_set_file_name): New function.
79564         (close_stdout_status): Use new file-scoped global.
79565         Return right away if fstat says the stdout file descriptor is invalid.
79566         * lib/closeout.h (close_stdout_set_file_name): Declare.
79567
79568 2000-05-10  Jim Meyering  <meyering@lucent.com>
79569
79570         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79571         (close_stdout_set_status): New function.
79572         * lib/closeout.h (close_stdout_set_status): Declare.
79573
79574 2000-05-09  Jim Meyering  <meyering@lucent.com>
79575
79576         * m4/gettext.m4: Rename this...
79577         * m4/libintl.m4: ...to this.
79578
79579 2000-05-08  Jim Meyering  <meyering@lucent.com>
79580
79581         * lib/long-options.c: Don't include closeout.h.
79582         (parse_long_options): Don't call close_stdout for --version.
79583
79584 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79585
79586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79587         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79588         2.1.3 bug.  This avoids a clash when files like regex.c define
79589         _GNU_SOURCE.
79590
79591 2000-05-06  Jim Meyering  <meyering@lucent.com>
79592
79593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79594         (AC_REPLACE_FUNCS): Add strnlen.
79595
79596         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79597         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79598
79599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79600         AC_SEARCH_LIBS call for nanosleep.
79601         (LIB_NANOSLEEP): Set and AC_SUBST.
79602
79603 2000-05-06  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/strnlen.c: Undefine __strnlen and strnlen.
79606         [!weak_alias]: Define __strnlen to strnlen.
79607
79608         * lib/atexit.c: New file, from libiberty.
79609
79610 2000-05-06  Jim Meyering  <meyering@lucent.com>
79611
79612         * lib/closeout.c (close_stdout_status): Also check for errors on the
79613         stderr stream.
79614
79615 2000-05-05  Jim Meyering  <meyering@lucent.com>
79616
79617         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79618         AC_SEARCH_LIBS call for clock_gettime.
79619         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79620
79621         * m4/search-libs.m4: Update from autoconf.
79622
79623         su doesn't work on Solaris 2.6.
79624         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79625         <shadow.h>.  Reported by Dragos Harabor.
79626
79627 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79628
79629         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79630         memcpy instead of xmalloc, xrealloc, path_concat.
79631         (locale_charset): Treat empty environment variables as absent.
79632         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79633
79634 2000-05-04  Jim Meyering  <meyering@lucent.com>
79635
79636         * lib/getopt.c: Update from glibc.
79637         * lib/obstack.c: Likewise.
79638         * lib/obstack.h: Likewise.
79639         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79640         file
79641
79642         * lib/regex.h: Likewise.
79643         * lib/strndup.c: Likewise.
79644         * lib/strnlen.c: New file, from glibc.
79645
79646 2000-05-03  Jim Meyering  <meyering@lucent.com>
79647
79648         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79649
79650 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79651
79652         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79653         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79654         compile-time test, rather than inspecting host and OS, to
79655         decide whether to define _LARGEFILE_SOURCE.
79656
79657 2000-05-01  Jim Meyering  <meyering@lucent.com>
79658
79659         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79660
79661         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79662         Based on a patch from Bruno Haible.
79663
79664 2000-05-01  Jim Meyering  <meyering@lucent.com>
79665
79666         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79667
79668 2000-04-29  Jim Meyering  <meyering@lucent.com>
79669
79670         * lib/path-concat.c: Declare strdup only if it's not defined.
79671         * lib/canon-host.c: Likewise.
79672
79673 2000-04-28  Jim Meyering  <meyering@lucent.com>
79674
79675         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79676         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79677         is included first, then limits.h is included by locale.h by libintl.h.
79678         From John David Anglin.
79679
79680 2000-04-25  Jim Meyering  <meyering@lucent.com>
79681
79682         * lib/makepath.c (S_IRWXUGO): Define.
79683         (make_path): Always perform explicit chmod if MODE specifies any
79684         of the `special' permission bits.  Prompted by a bug report against
79685         install from Mate Wierdl and Joost van Baal.
79686
79687 2000-04-18  Jim Meyering  <meyering@lucent.com>
79688
79689         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79690         (jm_PREREQ): Use it.
79691
79692 2000-04-18  Jim Meyering  <meyering@lucent.com>
79693
79694         * lib/README: New file.
79695
79696         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79697         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79698
79699 2000-04-17  Jim Meyering  <meyering@lucent.com>
79700
79701         Get it right :-)
79702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79703         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79704         Suggestion from Akim Demaille.
79705
79706 2000-04-17  Jim Meyering  <meyering@lucent.com>
79707
79708         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79709         the definition of it to rpl_strftime also defined-away the system's
79710         declaration.
79711
79712 2000-04-15  Jim Meyering  <meyering@lucent.com>
79713
79714         Use `C' to denote so-called `contiguous' files, the same way
79715         that tar does.
79716         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79717         (ftypelet): Use S_ISCTG.
79718         From Michael Deutschmann.
79719
79720 2000-04-14  Jim Meyering  <meyering@lucent.com>
79721
79722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79723         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79724         clobbered.
79725
79726 2000-04-14  Jim Meyering  <meyering@lucent.com>
79727
79728         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79729
79730 2000-04-13  Jim Meyering  <meyering@lucent.com>
79731
79732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79733         AH_VERBATIM to insert required #ifndef into config.h.in.
79734         Suggestion from Akim Demaille.
79735
79736 2000-04-12  Jim Meyering  <meyering@lucent.com>
79737
79738         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79739         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79740         Christian Krackowizer.
79741
79742         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79743         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79744         (AC_SYS_LARGEFILE): Require.
79745         (AM_C_PROTOTYPES): Require.
79746
79747 2000-04-08  Jim Meyering  <meyering@lucent.com>
79748
79749         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79750         names don't conflict.  Reported by Eli Zaretskii.
79751
79752 2000-04-07  Jim Meyering  <meyering@lucent.com>
79753
79754         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79755         sys/types.h, to work around system header problems on AIX 3.2.5.
79756         From Bruno Haible.
79757
79758 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79759
79760         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79761         bug.  Deal with the different error behavior of Irix iconv.
79762
79763 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79764
79765         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79766         IRIX if the installer said otherwise.
79767
79768 2000-04-05  Jim Meyering  <meyering@lucent.com>
79769
79770         Portability tweaks required for ultrix4.3.
79771         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79772         (jm_CHECK_DECLS): Add getutent to the list of functions.
79773         (_jm_DECL_HEADERS): Add utmpx.h.
79774         From John David Anglin.
79775
79776         * m4/strftime.m4: Back out the 2000-04-02 change.
79777         Instead of that change, simply undefine putenv in the test program.
79778
79779 2000-04-05  Jim Meyering  <meyering@lucent.com>
79780
79781         Portability tweaks required for ultrix4.3.
79782         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79783         getutent.
79784         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79785         * lib/canon-host.c: Declare strdup.
79786         * lib/path-concat.c: Likewise.
79787         From John David Anglin.
79788
79789 2000-04-04  Jim Meyering  <meyering@lucent.com>
79790
79791         Be more DOS 8.3-friendly.
79792         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79793         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79794         * lib/Makefile.am: Reflect renaming.
79795         Reported by Eli Zaretskii.
79796
79797         Use a temporary file name that won't clash with `charset.alias'
79798         in the DOS 8.3 name space.
79799         * lib/Makefile.am (charset_tmp): Define.
79800         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79801         (uninstall-local): Likewise.
79802         Reported by Eli Zaretskii.
79803
79804 2000-04-03  Jim Meyering  <meyering@lucent.com>
79805
79806         * m4/gettext.m4: Fix typo in comment.
79807
79808         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79809         textutils/configure.in).  Suggestion from Paul Eggert.
79810         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79811
79812 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79813
79814         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79815         variable in the shell rather than using putenv, which isn't
79816         portable.  This avoids the configure-time inter-test dependency
79817         on the potentially-renamed putenv function.
79818
79819 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79820
79821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79822         before checking struct stat.st_blksize, so that
79823         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79824
79825 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79826
79827         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79828         since strftime.c uses HAVE_STRFTIME to decide whether to use
79829         the underlying strftime.
79830
79831 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79832
79833         * lib/time/strftime.c (my_strftime): Make sure we call the system
79834         strftime, not ourselves, when invoking the underlying strftime.
79835
79836 2000-03-24  Jim Meyering  <meyering@lucent.com>
79837
79838         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79839         (charset_alias): Define.
79840         (install-exec-local): Factor out common code.
79841         (uninstall-local): Split lines longer than 80.
79842         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79843         (SUFFIXES): Define.
79844         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79845         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79846
79847 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79848
79849         * lib/config.charset: Output a line containing "Packages using this
79850         file".
79851         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79852         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79853         ref-del.sed): New rules.
79854
79855 2000-03-17  Jim Meyering  <meyering@lucent.com>
79856
79857         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79858         Otherwise, include <strings.h>
79859
79860 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79861
79862         * lib/unicodeio.c (utf8_wctomb): New function.
79863         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79864         format instead of in UCS-4 with platform dependent endianness.
79865
79866 2000-03-10  Jim Meyering  <meyering@lucent.com>
79867
79868         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79869         From Marco Franzen.
79870
79871 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79872
79873         * lib/savedir.c (savedir): Work even if directory size is
79874         negative; this can happen with some screwy NFS configurations.
79875
79876 2000-03-06  Jim Meyering  <meyering@lucent.com>
79877
79878         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79879         if it's NULL (because we ran out of memory).  From Bruno Haible.
79880
79881 2000-03-05  Jim Meyering  <meyering@lucent.com>
79882
79883         * lib/localcharset.c ("path-concat.h"): Include.
79884         (get_charset_aliases): Use path_concat instead of ANSI string
79885         concatenation.
79886
79887         * lib/unicodeio.h (PARAMS): Define.
79888         Use it to guard prototype.
79889
79890 2000-03-04  Jim Meyering  <meyering@lucent.com>
79891
79892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79893         for lib/localcharset.c.
79894
79895 2000-03-04  Jim Meyering  <meyering@lucent.com>
79896
79897         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79898         installing into it.
79899         (uninstall-local): Uncomment this rule so `make distcheck' works
79900         once again.
79901
79902         * lib/unicodeio.c (<errno.h>): Include it.
79903         (errno): Declare if not defined.
79904
79905         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79906
79907         * lib/config.charset: New version, incorporating remarks from a linux
79908         i18n mailing list.  From Bruno Haible.
79909
79910 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79911
79912         * m4/codeset.m4: New file.
79913         * m4/iconv.m4: New file.
79914         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79915
79916 2000-03-03  Jim Meyering  <meyering@lucent.com>
79917
79918         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79919
79920 2000-03-02  Jim Meyering  <meyering@lucent.com>
79921
79922         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79923         the messages come out on separate lines.
79924
79925         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79926         rather than jm_CHECK_DECLARATIONS.
79927         * m4/decl.m4: Remove now-unused file.
79928
79929         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79930         geteuid.
79931
79932 2000-03-02  Jim Meyering  <meyering@lucent.com>
79933
79934         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79935
79936 2000-03-01  Jim Meyering  <meyering@lucent.com>
79937
79938         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79939         * lib/unicodeio.c: Likewise.
79940
79941 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79942
79943         * lib/config.charset: New file.
79944         * lib/localcharset.c: New file.
79945         * lib/unicodeio.h, lib/unicodeio.c: New files.
79946         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79947         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79948         (noinst_HEADERS): Add unicodeio.h.
79949         (all-local, install-exec-local, charset.alias): New targets.
79950
79951 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79952
79953         * lib/quotearg.c (ALERT_CHAR): New macro.
79954         (quotearg_buffer_restyled): Use it.
79955
79956 2000-02-27  Jim Meyering  <meyering@lucent.com>
79957
79958         * m4/check-decl.m4: Add getenv to the list.
79959
79960 2000-02-27  Jim Meyering  <meyering@lucent.com>
79961
79962         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79963         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79964
79965         * lib/backupfile.c: Guard inclusion of stdlib.h with
79966         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79967         Declare malloc if needed.
79968
79969         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79970         `#ifndef HAVE_DECL..'
79971         now that autoconf always defines the HAVE_DECL_ symbols.
79972         * lib/human.c: Likewise.
79973         * lib/same.c: Likewise.
79974         * lib/strtoumax.c: Likewise.
79975
79976         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79977         declaration check was not run.
79978         * lib/hash.c: Likewise.
79979         * lib/human.c: Likewise.
79980         * lib/same.c: Likewise.
79981         * lib/strtoumax.c: Likewise.
79982
79983         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79984         `.', then first look up the entire `.'-containing string as a login
79985         name.
79986
79987 2000-02-23  Jim Meyering  <meyering@lucent.com>
79988
79989         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79990         in place of my hack.
79991
79992 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79993
79994         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79995         (textint): New typedef.
79996         (parser_control): Member year changed from int to textint.
79997         All uses changed.
79998         (YYSTYPE): Removed; replaced by %union with int and textint members.
79999         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80000         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80001         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80002         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80003         (date, number, to_year): Use width of number in digits, not its value,
80004         to determine whether it's a 2-digit year, or a 2-digit time.
80005         (yylex): Store number of digits of numeric tokens.
80006         Reported by John Kendall.
80007
80008         (parser_control): Changed from struct parser_control to typedef (for
80009         consistency).  All uses changed.
80010
80011         (tID): Removed; not used.
80012         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80013
80014 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80015
80016         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80017         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80018
80019 2000-02-12  Jim Meyering  <meyering@lucent.com>
80020
80021         * lib/userspec.c (ISDIGIT): Define it.
80022         (isdigit): Remove definition.
80023         (is_number): Use ISDIGIT, not isdigit.
80024         <libintl.h>: Include.
80025         (_ and N_): Define.
80026         (parse_user_spec): Mark translatable strings.
80027
80028 2000-02-10  Jim Meyering  <meyering@lucent.com>
80029
80030         With these changes, nanosleep.[ch] are finally enough like the other
80031         lib/* replacement files to compile on a few more losing systems.
80032
80033         * lib/nanosleep.h: Don't include config.h.
80034         Remove prototype from declaration of nanosleep.
80035         (PARAMS): Remove now-unneeded definition.
80036         * lib/nanosleep.c: #undef nanosleep.
80037         (rpl_nanosleep): Rename from nanosleep.
80038
80039 2000-02-10  Jim Meyering  <meyering@lucent.com>
80040
80041         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80042         gnu_nanosleep to rpl_nanosleep.
80043
80044 2000-02-09  Jim Meyering  <meyering@lucent.com>
80045
80046         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80047         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80048
80049 2000-02-08  Akim Demaille  <akim@epita.fr>
80050
80051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80052         `[' and `]' and remove uses of `changequote'.
80053         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80054         (AC_SYS_LARGEFILE): Likewise.
80055         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80056         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80057         of changequote.
80058         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80059         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80060         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80061         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80062
80063 2000-02-05  Jim Meyering  <meyering@lucent.com>
80064
80065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80066         Remove explicit use of AC_HEADER_TIME.  It is required by
80067         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80068         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80069         in autoconf whereby the expansion of the latter ended up preceding
80070         the expansion of its prerequisite, AC_HEADER_TIME.
80071         Reported by Volker Borchert.
80072
80073 2000-02-03  Jim Meyering  <meyering@lucent.com>
80074
80075         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80076
80077 2000-02-03  Jim Meyering  <meyering@lucent.com>
80078
80079         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80080         rather than with `#if HAVE_UTMPNAME'.
80081
80082 2000-02-02  Jim Meyering  <meyering@lucent.com>
80083
80084         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80085         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80086         Reported by Eli Zaretskii.
80087
80088 2000-02-01  Jim Meyering  <meyering@lucent.com>
80089
80090         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80091
80092 2000-01-31  Jim Meyering  <meyering@lucent.com>
80093
80094         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80095         functions.  Add the time.h and sys/time.h headers along with the
80096         AC_REQUIRE'ment of AC_HEADER_TIME.
80097
80098 2000-01-31  Jim Meyering  <meyering@lucent.com>
80099
80100         * lib/nanosleep.h (nanosleep): Guard declaration with
80101         `#if ! HAVE_DECL_NANOSLEEP'.
80102         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80103         the declaration in that vendor's sys/timers.h.
80104         Reported by Christian Krackowizer.
80105
80106         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80107         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80108         (ISPRINT): Likewise.
80109         Reported by Tom Tromey.
80110
80111 2000-01-30  Jim Meyering  <meyering@lucent.com>
80112
80113         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80114
80115         * m4/prereq.m4 (utmp_includes): Define.
80116         Check for ut_user and ut_name members in both struct utmpx
80117         and struct utmp.
80118
80119 2000-01-30  Jim Meyering  <meyering@lucent.com>
80120
80121         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80122         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80123         header files where only utmpx.ut_user is declared.
80124
80125         * lib/readutmp.h (UT_USER): Define.
80126
80127 2000-01-29  Jim Meyering  <meyering@lucent.com>
80128
80129         * m4/lib-check.m4: New file containing library-related checks from
80130         fileutils and sh-utils (textutils had none).
80131
80132 2000-01-28  Jim Meyering  <meyering@lucent.com>
80133
80134         * m4/perl.m4: Change format of warning message to look more like that
80135         from the missing script.  Suggestion from François Pinard.
80136
80137 2000-01-25  Jim Meyering  <meyering@lucent.com>
80138
80139         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80140         well as time.h in the compile check.
80141         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80142         Fix typo in cross-compiling case: s/yes/no/.
80143
80144 2000-01-23  Jim Meyering  <meyering@lucent.com>
80145
80146         * m4/jm-macros.m4: Move df-related tests here from
80147         fileutils/configure.in
80148
80149         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80150         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80151
80152         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80153         s/space/ac_fsusage_space/.
80154         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80155
80156         * m4/ftruncate.m4: New file (derived from part of
80157         fileutils/configure.in).
80158         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80159         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80160
80161         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80162         AC_SUBST these here, rather than just in sh-util/configure.in, so
80163         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80164         all the same.
80165         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80166         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80167         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80168         (AC_SUBST(POW_LIBM)): Likewise.
80169         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80170
80171 2000-01-23  Jim Meyering  <meyering@lucent.com>
80172
80173         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80174         obstack.c.
80175
80176 2000-01-22  Jim Meyering  <meyering@lucent.com>
80177
80178         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80179
80180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80181
80182         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80183         configure.in
80184         (AC_CHECK_HEADERS): Likewise for sh-utils.
80185         (AC_CHECK_HEADERS): Likewise for textutils.
80186         Merge the three lists of headers.
80187
80188         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80189         from fileutils' configure.in.
80190
80191         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80192         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80193         check-decl.m4.
80194
80195         * m4/check-decl.m4: Use #if rather than #ifdef.
80196         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80197         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80198         (_jm_DECL_HEADERS): Define new function.
80199         (jm_CHECK_DECLARATIONS): Require it.
80200
80201 2000-01-22  Jim Meyering  <meyering@lucent.com>
80202
80203         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80204         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80205         Required for some AIX systems.  Reported by Christian Krackowizer.
80206         [TESTING] (main): New function.
80207
80208         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80209         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80210         letters.
80211
80212         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80213         iswprint.
80214
80215         * lib/strverscmp.c (ISDIGIT): Define.
80216         (strverscmp): Use ISDIGIT, not isdigit.
80217
80218 2000-01-19  Jim Meyering  <meyering@lucent.com>
80219
80220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80221         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80222         defines `struct timespec' in <sys/time.h>
80223
80224         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80225         Thanks to Akim for explaining.
80226
80227 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80228
80229         * lib/nanosleep.c (nanosleep):
80230         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80231         POSIX.1 doesn't require SA_INTERRUPT and some systems
80232         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80233         it's been part of POSIX.1 since day 1 (in 1988).
80234
80235 2000-01-17  Jim Meyering  <meyering@lucent.com>
80236
80237         * lib/interlock: Remove unused file.  Reported by François Pinard.
80238
80239 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80240
80241         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80242         alert, backslash, formfeed, and vertical tab unnecessarily in
80243         shell quoting style.
80244
80245 2000-01-16  Jim Meyering  <meyering@lucent.com>
80246
80247         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80248         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80249         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80250         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80251
80252 2000-01-16  Jim Meyering  <meyering@lucent.com>
80253
80254         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80255         because the latter didn't work.
80256
80257 2000-01-15  Jim Meyering  <meyering@lucent.com>
80258
80259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80260         (AC_REPLACE_FUNCS): Add memcpy and memset.
80261         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80262         Add strpbrk.
80263         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80264
80265 2000-01-12  Jim Meyering  <meyering@lucent.com>
80266
80267         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80268         (jm_PREREQ): Use it.
80269         (jm_PREREQ_READUTMP): New macro.
80270         (jm_PREREQ): Use it.
80271
80272 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80273
80274         Quote multibyte characters correctly.
80275         * m4/c-bs-a.m4: New file.
80276         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80277         (jm_PREREQ): Use it.
80278
80279 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80280
80281         * m4/uintmax_t.m4: Port to autoconf 2.13.
80282
80283 2000-01-08  Jim Meyering  <meyering@ascend.com>
80284
80285         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80286         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80287
80288 2000-01-04  Jim Meyering  <meyering@ascend.com>
80289
80290         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80291         jm_STRUCT_DIRENT_D_TYPE.
80292         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80293         jm_STRUCT_DIRENT_D_INO.
80294         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80295         jm_STRUCT_UTIMBUF.
80296         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80297         renamings.
80298         * m4/utime.m4: Likewise.
80299
80300         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80301         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80302
80303 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80304
80305         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80306         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80307
80308 2000-01-02  Jim Meyering  <meyering@ascend.com>
80309
80310         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80311         remember if this is necessary.
80312
80313 1999-12-26  Jim Meyering  <meyering@ascend.com>
80314
80315         * m4/jm-macros.m4: Use it here.
80316         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80317
80318 1999-12-23  Jim Meyering  <meyering@ascend.com>
80319
80320         * m4/jm-macros.m4: Check for clock_gettime (moved from
80321         fileutils/configure.in)
80322         Check for gettimeofday.
80323
80324 1999-12-20  Jim Meyering  <meyering@ascend.com>
80325
80326         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80327         autoconf-2.14a-1999-12-20.
80328
80329 1999-12-19  Jim Meyering  <meyering@ascend.com>
80330
80331         * m4/lstat-slash.m4: New file.
80332         * m4/jm-macros.m4: Use the new macro:
80333         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80334
80335 1999-12-07  Jim Meyering  <meyering@ascend.com>
80336
80337         * m4/perl.m4: Require that File::Compare be available, too.
80338         Too many systems seem to lack it.
80339
80340         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80341         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80342
80343 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80344
80345         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80346         problem with the QNX 4.25 shell, which doesn't propagate exit
80347         status of failed commands inside shell assignments.
80348
80349 1999-11-17  Jim Meyering  <meyering@ascend.com>
80350
80351         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80352
80353 1999-11-07  Jim Meyering  <meyering@ascend.com>
80354
80355         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80356
80357 1999-11-06  Jim Meyering  <meyering@ascend.com>
80358
80359         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80360         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80361
80362 1999-11-05  Jim Meyering  <meyering@ascend.com>
80363
80364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80365         configure.in of textutils, fileutils, and sh-utils into this one
80366         (shared between those packages) file.
80367         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80368         AC_STRUCT_ST_BLKSIZE.
80369
80370 1999-11-03  Jim Meyering  <meyering@ascend.com>
80371
80372         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80373         of AC_CHECK_TYPE checks includes unistd.h.
80374         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80375         Suggestion from Akim Demaille.
80376
80377 1999-10-30  Jim Meyering  <meyering@ascend.com>
80378
80379         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80380         m4-quoted string.
80381         * m4/ls-mntd-fs.m4: Likewise.
80382         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80383         * m4/jm-winsz1.m4: Likewise.
80384
80385         * m4/const.m4: Remove file, since the fix made it into the experimental
80386         version of autoconf.
80387         * m4/mktime.m4: Likewise.
80388
80389         * m4/check-type.m4: Remove file, now that the latest version of
80390         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80391
80392         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80393         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80394         AC_CHECK_TYPE.
80395
80396 1999-10-04  Jim Meyering  <meyering@ascend.com>
80397
80398         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80399
80400 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80401
80402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80403         2.95.1 bug with HP-UX 10.20.
80404
80405 1999-09-17  Jim Meyering  <meyering@ascend.com>
80406
80407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80408         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80409         due to missing strdup (against sh-utils-2.0).
80410
80411 1999-08-29  Jim Meyering  <meyering@ascend.com>
80412
80413         * m4/jm-macros.m4: Require jm_BISON.
80414         * m4/bison.m4: New file.
80415
80416 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80417
80418         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80419         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80420
80421 1999-08-05  Jim Meyering  <meyering@ascend.com>
80422
80423         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80424         to avoid conflicts with `conftest' on 8+3 filesystems.
80425         Suggestion from Eli Zaretskii.
80426
80427 1999-08-04  Jim Meyering  <meyering@ascend.com>
80428
80429         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80430         fileutils and sh-utils (textutils's getline test was inadequate).
80431         (AM_FUNC_GETLINE): Run this test.
80432         (AC_CHECK_FUNCS): Check for getdelim.
80433         Reported by Bob Proulx.
80434
80435 1999-08-02  Jim Meyering  <meyering@ascend.com>
80436
80437         * m4/jm-macros.m4: Add a comment.
80438
80439 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80440
80441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80442         <inttypes.h> defines strtoumax as a macro (and not as a
80443         function).
80444
80445 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80446
80447         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80448         that we can shift, multiply and divide unsigned long long
80449         values; Ultrix cc can't do it.
80450
80451 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80452
80453         * m4/mktime.m4: New file, which is a preview of what should appear
80454         in the next public autoconf release.
80455
80456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80457
80458         * m4/lfs.m4: Remove this file.
80459         * m4/largefile.m4: New file.  It contains the old contents of
80460         lfs.m4, except that all names with prefix AC_LFS have been
80461         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80462         compatible with future autoconf versions.  Also, some minor m4
80463         quoting problems have been fixed.
80464
80465 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80466
80467         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80468         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80469         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80470         and simplify the shell code.
80471
80472 1999-08-01  Jim Meyering  <meyering@ascend.com>
80473
80474         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80475         m4.
80476
80477 1999-07-20  Jim Meyering  <meyering@ascend.com>
80478
80479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80480
80481 1999-07-15  Jim Meyering  <meyering@ascend.com>
80482
80483         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80484
80485 1999-05-22  Jim Meyering  <meyering@ascend.com>
80486
80487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80488
80489 1999-05-20  Jim Meyering  <meyering@ascend.com>
80490
80491         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80492         Add a colon after each `then' in case $4 is empty.
80493
80494 1999-05-16  Jim Meyering  <meyering@ascend.com>
80495
80496         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80497
80498 1999-05-10  Jim Meyering  <meyering@ascend.com>
80499
80500         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80501
80502         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80503         AC_FUNC_MKTIME.
80504
80505 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80506
80507         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80508
80509 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80510
80511         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80512         not CPPFLAGS, so that linking works correctly in IRIX.
80513
80514 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80515
80516         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80517
80518 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80519
80520         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80521         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80523         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80524         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80525
80526         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80527
80528 1999-04-20  Jim Meyering  <meyering@ascend.com>
80529
80530         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80531         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80532         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80533
80534 1999-04-18  Jim Meyering  <meyering@ascend.com>
80535
80536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80537         * m4/jm-macros.m4: Use it.
80538
80539 1999-04-06  Jim Meyering  <meyering@ascend.com>
80540
80541         * m4/strftime.m4: Remove test for %f.
80542
80543 1999-03-29  Jim Meyering  <meyering@ascend.com>
80544
80545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80546         superset of the AC_TYPE_* checks in the textutils, fileutils,
80547         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80548         AC_TYPE_PID_T.
80549
80550 1999-03-28  Jim Meyering  <meyering@ascend.com>
80551
80552         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80553         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80554         replaced e.g., in the *.sh files of the sh-utils.
80555
80556 1999-03-20  Jim Meyering  <meyering@ascend.com>
80557
80558         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80559         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80560         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80561
80562 1999-03-19  Jim Meyering  <meyering@ascend.com>
80563
80564         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80565
80566 1999-03-12  Jim Meyering  <meyering@ascend.com>
80567
80568         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80569
80570 1999-03-07  Jim Meyering  <meyering@ascend.com>
80571
80572         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80573         declared.
80574
80575 1999-02-17  Jim Meyering  <meyering@ascend.com>
80576
80577         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80578         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80579
80580 1999-02-07  Jim Meyering  <meyering@ascend.com>
80581
80582         * m4/group-member.m4: New file -- extracted from sh-utils'
80583         configure.in.
80584
80585         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80586         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80587
80588 1999-02-06  Jim Meyering  <meyering@ascend.com>
80589
80590         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80591         * m4/fnmatch.m4: Likewise.
80592         * m4/getgroups.m4: Likewise.
80593         * m4/lstat.m4: Likewise.
80594         * m4/malloc.m4: Likewise.
80595         * m4/putenv.m4: Likewise.
80596         * m4/realloc.m4: Likewise.
80597         * m4/regex.m4: Likewise.
80598         * m4/stat.m4: Likewise.
80599         * m4/strftime.m4: Likewise.
80600         Suggestion from Alain Magloire.
80601
80602         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80603         * m4/fnmatch.m4: Likewise.
80604         * m4/getgroups.m4: Likewise.
80605         * m4/getline.m4: Likewise.
80606         * m4/lstat.m4: Likewise.
80607         * m4/malloc.m4: Likewise.
80608         * m4/memcmp.m4: Likewise.
80609         * m4/putenv.m4: Likewise.
80610         * m4/realloc.m4: Likewise.
80611         * m4/regex.m4: Likewise.
80612         * m4/stat.m4: Likewise.
80613         * m4/strftime.m4: Likewise.
80614         Suggestion from Alain Magloire.
80615
80616         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80617         an argument.
80618
80619         * m4/regex.m4: Add a run-time Test for proper operation of
80620         re_compile_pattern.
80621
80622 1999-01-31  Jim Meyering  <meyering@ascend.com>
80623
80624         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80625
80626 1999-01-30  Jim Meyering  <meyering@ascend.com>
80627
80628         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80629
80630         * m4/jm-mktime.m4: Make this a wrapper around the official
80631         AM_FUNC_MKTIME rather than my private copy, now that the official one
80632         is up to date.
80633         * m4/mktime.m4: Remove file.
80634
80635         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80636         * m4/uptime.m4: Likewise.
80637         * m4/uintmax_t.m4: Likewise.
80638
80639 1999-01-28  Jim Meyering  <meyering@ascend.com>
80640
80641         * m4/jm-macros.m4: Use jm_AFS.
80642         * m4/afs.m4: New file (from fileutils' configure.in).
80643
80644         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80645         * m4/chown.m4: Likewise.
80646         * m4/d-ino.m4: Likewise.
80647         * m4/d-type.m4: Likewise.
80648         * m4/fnmatch.m4: Likewise.
80649         * m4/getgroups.m4: Likewise.
80650         * m4/gettext.m4: Likewise.
80651         * m4/jm-mktime.m4: Likewise.
80652         * m4/jm-winsz2.m4: Likewise.
80653         * m4/lcmessage.m4: Likewise.
80654         * m4/ls-mntd-fs.m4: Likewise.
80655         * m4/malloc.m4: Likewise.
80656         * m4/memcmp.m4: Likewise.
80657         * m4/putenv.m4: Likewise.
80658         * m4/realloc.m4: Likewise.
80659         * m4/st_mtim.m4: Likewise.
80660         * m4/strftime.m4: Likewise.
80661
80662 1999-01-16  Jim Meyering  <meyering@ascend.com>
80663
80664         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80665         (ARGMATCH_DIE_DECL): Define.
80666
80667 1999-01-12  Jim Meyering  <meyering@ascend.com>
80668
80669         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80670         Reported by Lars Hecking.
80671
80672 1999-01-10  Jim Meyering  <meyering@ascend.com>
80673
80674         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80675         gross kludge.
80676         * m4/inttypes_h.m4: Likewise.
80677         * m4/lstat.m4: Likewise.
80678         * m4/malloc.m4: Likewise.
80679         * m4/readdir.m4: Likewise.
80680         * m4/realloc.m4: Likewise.
80681         * m4/st_dm_mode.m4: Likewise.
80682         * m4/stat.m4: Likewise.
80683         * m4/utimbuf.m4: Likewise.
80684         * m4/utimes.m4: Likewise.
80685
80686         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80687         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80688         comments in config.h.in are meaningful.
80689
80690         * m4/jm-macros.m4: Require autoconf-2.13 here.
80691
80692         * m4/regex.m4: By default, don't use the included regex.c on systems
80693         with glibc 2.  Suggestion from Uli Drepper.
80694
80695 1999-01-02  Jim Meyering  <meyering@ascend.com>
80696
80697         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80698
80699 1998-12-18  Jim Meyering  <meyering@ascend.com>
80700
80701         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80702         Based on a suggestion from Lars Hecking.
80703
80704 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80705
80706         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80707
80708 1998-11-16  Jim Meyering  <meyering@ascend.com>
80709
80710         * m4/lfs.m4: Double-quote the `uname...` expression.
80711
80712 1998-11-14  Jim Meyering  <meyering@ascend.com>
80713
80714         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80715         * m4/stat.m4: Likewise.
80716
80717 1998-11-03  Jim Meyering  <meyering@ascend.com>
80718
80719         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80720         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80721
80722 1998-10-18  Jim Meyering  <meyering@ascend.com>
80723
80724         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80725
80726 1998-10-17  Jim Meyering  <meyering@ascend.com>
80727
80728         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80729         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80730         calls for those previously hard-coded headers.  Instead, take a new
80731         parameter.
80732         (jm_CHECK_DECLARATIONS): Reflect interface change.
80733         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80734         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80735
80736         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80737
80738 1998-10-14  Jim Meyering  <meyering@ascend.com>
80739
80740         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80741         instead of "TZ=America/Vancouver".  From Paul Eggert.
80742
80743 1998-10-11  Jim Meyering  <meyering@ascend.com>
80744
80745         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80746         This adds a test for a recently added compatibility fix for mktime.c.
80747         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80748
80749 1998-09-27  Jim Meyering  <meyering@ascend.com>
80750
80751         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80752
80753         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80754         ../configure.in, including a change from Gordon Matzigkeit to allow
80755         cross-compiling for the Hurd.
80756
80757         * m4/glibc.m4: New file/macro to test for the GNU C Library
80758         versions 1 and 2.  From Gordon Matzigkeit.
80759         Indent.
80760
80761 1998-09-21  Jim Meyering  <meyering@ascend.com>
80762
80763         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80764
80765 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80766
80767         Port nanosecond-resolution times to UnixWare 2.1.2 and
80768         pedantic Solaris 2.6.
80769
80770         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80771         AC_STRUCT_ST_MTIM.
80772         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80773         Generate name of ns member, instead of just 1 or undef.
80774         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80775
80776 1998-08-15  Jim Meyering  <meyering@ascend.com>
80777
80778         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80779         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80780         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80781         instead of jm_TYPE_SSIZE_T.
80782
80783 1998-08-12  Jim Meyering  <meyering@ascend.com>
80784
80785         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80786
80787 1998-08-02  Jim Meyering  <meyering@ascend.com>
80788
80789         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80790         in acconfig.h manually.
80791
80792 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80793
80794         * m4/st_mtim.m4: New file.
80795
80796 1998-07-28  Jim Meyering  <meyering@ascend.com>
80797
80798         * m4/utimes.m4: Undef stat.
80799
80800 1998-07-25  Jim Meyering  <meyering@ascend.com>
80801
80802         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80803         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80804
80805 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80806
80807         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80808         uid and gid actually remain unchanged.
80809
80810 1998-07-07  Jim Meyering  <meyering@ascend.com>
80811
80812         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80813
80814 1998-07-04  Jim Meyering  <meyering@ascend.com>
80815
80816         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80817         to prove that this macro can be used in packages without regex.c.
80818
80819 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80820
80821         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80822         is to be used.
80823
80824 1998-07-03  Jim Meyering  <meyering@ascend.com>
80825
80826         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80827
80828         * m4/gettext.m4: New file -- from gettext-0.10.35.
80829         * m4/lcmessage.m4: Likewise.
80830         * m4/progtest.m4: Likewise.
80831
80832         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80833         * m4/jm-macros.m4: Require the new macro.
80834
80835 1998-06-29  Jim Meyering  <meyering@ascend.com>
80836
80837         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80838         for the definition of NGROUPS (used in a system header included
80839         by sys/mount.h).
80840
80841 1998-06-28  Jim Meyering  <meyering@ascend.com>
80842
80843         * m4/ls-mntd-fs.m4: New file.
80844         * m4/fstypename.m4: New file.
80845
80846         * m4/jm-macros.m4: Require the new macro.
80847         * m4/jm-glibc-io.m4: New file.
80848
80849 1998-05-19  Jim Meyering  <meyering@ascend.com>
80850
80851         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80852         * m4/lchown.m4: New file.
80853
80854         * m4/Makefile.am.in: New file.
80855         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80856
80857 1998-05-14  Jim Meyering  <meyering@ascend.com>
80858
80859         * m4/Makefile.am (EXTRA_DIST): Add them.
80860         * m4/jm-macros.m4: New file.
80861         * m4/utimbuf.m4: New file.
80862
80863 1998-05-12  Jim Meyering  <meyering@ascend.com>
80864
80865         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80866
80867 1998-05-11  Jim Meyering  <meyering@ascend.com>
80868
80869         * m4/isc-posix.m4: New file.
80870
80871 1998-05-10  Jim Meyering  <meyering@ascend.com>
80872
80873         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80874
80875 1998-05-09  Jim Meyering  <meyering@ascend.com>
80876
80877         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80878         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80879         with automake.
80880
80881         * m4/ssize_t.m4: New file.
80882         * m4/mktime.m4: Remove file -- the new automake has this now.
80883
80884 1998-04-26  Jim Meyering  <meyering@ascend.com>
80885
80886         * m4/assert.m4: New file.
80887         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80888
80889 1998-04-05  Jim Meyering  <meyering@ascend.com>
80890
80891         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80892         (jm_PREREQ): Use it here.
80893
80894 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80895
80896         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80897         in acconfig.h.
80898
80899 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80900
80901         * m4/prereq.m4: New file.
80902         * m4/error.m4: New file.
80903         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80904
80905 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80906
80907         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80908         cache-check for the same variable -- that defeated the purpose of
80909         the test; the test program was never run.  This was a problem only
80910         on systems with losing getline functions -- HP-UX 10.20 is one.
80911         Reported by Bjorn Helgaas.
80912
80913 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80914
80915         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80916
80917 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80918
80919         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80920
80921         * m4/const.m4: New file.  Use an initializer in this declaration
80922         typedef int charset[2]; const charset x;
80923         Reported by Bob Glickstein.
80924
80925 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80926
80927         * m4/chown.m4: Fix reversed types on -1 args to chown.
80928         From Kaveh Ghazi.
80929
80930 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80931
80932         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80933         Add lseek and memchr.
80934
80935         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80936         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80937         have a 20-character limit on names.
80938
80939 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80940
80941         * m4/inttypes_h.m4: New file.
80942         * m4/uintmax_t.m4: New file.
80943         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80944
80945
80946         -----
80947
80948         Local Variables:
80949         coding: utf-8
80950         End:
80951
80952         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80953
80954         Copying and distribution of this file, with or without
80955         modification, are permitted provided the copyright notice
80956         and this notice are preserved.